diff --git a/generation_config.yaml b/generation_config.yaml index 47c301cebb41..001f2af50751 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.68.0 -googleapis_commitish: 7e8511aad98db8480de0fd594c1cfd09a32b1cf3 +googleapis_commitish: 77c78e90aeeb1c4612e9ab772c90bc40748a7a19 libraries_bom_version: 26.78.0 libraries: - api_shortname: accessapproval diff --git a/java-backupdr/README.md b/java-backupdr/README.md index bf2dfff35569..b19513229ec5 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.46.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.46.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.47.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java index b76890b22212..f106698739a0 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java @@ -1770,6 +1770,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-backupdr") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDrProtectionSummaryStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDrProtectionSummaryStubSettings.java index f5a179238d7c..a27af4c0a800 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDrProtectionSummaryStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDrProtectionSummaryStubSettings.java @@ -424,6 +424,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-backupdr") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java index 92d93dd18f0c..fb3fbb1e89a7 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java @@ -807,6 +807,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getManagementServerTransportSettings = @@ -818,6 +819,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createManagementServerTransportSettings = @@ -829,6 +831,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteManagementServerTransportSettings = @@ -840,6 +843,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createBackupVaultTransportSettings = GrpcCallSettings.newBuilder() @@ -850,6 +854,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listBackupVaultsTransportSettings = @@ -861,6 +866,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings fetchUsableBackupVaultsTransportSettings = @@ -873,6 +879,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getBackupVaultTransportSettings = GrpcCallSettings.newBuilder() @@ -883,6 +890,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateBackupVaultTransportSettings = GrpcCallSettings.newBuilder() @@ -904,6 +912,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataSourcesTransportSettings = @@ -915,6 +924,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDataSourceTransportSettings = GrpcCallSettings.newBuilder() @@ -925,6 +935,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateDataSourceTransportSettings = GrpcCallSettings.newBuilder() @@ -946,6 +957,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings fetchBackupsForResourceTypeTransportSettings = @@ -959,6 +971,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getBackupTransportSettings = GrpcCallSettings.newBuilder() @@ -969,6 +982,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateBackupTransportSettings = GrpcCallSettings.newBuilder() @@ -989,6 +1003,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings restoreBackupTransportSettings = GrpcCallSettings.newBuilder() @@ -999,6 +1014,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createBackupPlanTransportSettings = GrpcCallSettings.newBuilder() @@ -1009,6 +1025,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateBackupPlanTransportSettings = GrpcCallSettings.newBuilder() @@ -1030,6 +1047,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listBackupPlansTransportSettings = @@ -1041,6 +1059,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteBackupPlanTransportSettings = GrpcCallSettings.newBuilder() @@ -1051,6 +1070,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getBackupPlanRevisionTransportSettings = @@ -1062,6 +1082,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listBackupPlanRevisionsTransportSettings = @@ -1074,6 +1095,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createBackupPlanAssociationTransportSettings = @@ -1085,6 +1107,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateBackupPlanAssociationTransportSettings = @@ -1109,6 +1132,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listBackupPlanAssociationsTransportSettings = @@ -1121,6 +1145,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings< FetchBackupPlanAssociationsForResourceTypeRequest, @@ -1137,6 +1162,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteBackupPlanAssociationTransportSettings = @@ -1148,6 +1174,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings triggerBackupTransportSettings = GrpcCallSettings.newBuilder() @@ -1158,6 +1185,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataSourceReferenceTransportSettings = @@ -1169,6 +1197,7 @@ protected GrpcBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataSourceReferencesTransportSettings = @@ -1181,6 +1210,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings< FetchDataSourceReferencesForResourceTypeRequest, @@ -1197,6 +1227,7 @@ protected GrpcBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings initializeServiceTransportSettings = GrpcCallSettings.newBuilder() @@ -1237,6 +1268,7 @@ protected GrpcBackupDRStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -1247,6 +1279,7 @@ protected GrpcBackupDRStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -1258,6 +1291,7 @@ protected GrpcBackupDRStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listManagementServersCallable = diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDrProtectionSummaryStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDrProtectionSummaryStub.java index ce4c7a250ff5..04d49081f7bc 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDrProtectionSummaryStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDrProtectionSummaryStub.java @@ -188,6 +188,7 @@ protected GrpcBackupDrProtectionSummaryStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -218,6 +219,7 @@ protected GrpcBackupDrProtectionSummaryStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -228,6 +230,7 @@ protected GrpcBackupDrProtectionSummaryStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -239,6 +242,7 @@ protected GrpcBackupDrProtectionSummaryStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listResourceBackupConfigsCallable = diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java index 74567fea1ecf..f216e57d3693 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java @@ -2043,6 +2043,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getManagementServerTransportSettings = @@ -2055,6 +2056,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createManagementServerTransportSettings = @@ -2067,6 +2069,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteManagementServerTransportSettings = @@ -2079,6 +2082,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createBackupVaultTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2090,6 +2094,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listBackupVaultsTransportSettings = @@ -2102,6 +2107,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings fetchUsableBackupVaultsTransportSettings = @@ -2115,6 +2121,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getBackupVaultTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2126,6 +2133,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateBackupVaultTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2149,6 +2157,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataSourcesTransportSettings = @@ -2161,6 +2170,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDataSourceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2172,6 +2182,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateDataSourceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2195,6 +2206,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings fetchBackupsForResourceTypeTransportSettings = @@ -2209,6 +2221,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getBackupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2220,6 +2233,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateBackupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2242,6 +2256,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings restoreBackupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2253,6 +2268,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createBackupPlanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2264,6 +2280,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateBackupPlanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2287,6 +2304,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listBackupPlansTransportSettings = @@ -2299,6 +2317,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteBackupPlanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2310,6 +2329,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getBackupPlanRevisionTransportSettings = @@ -2322,6 +2342,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listBackupPlanRevisionsTransportSettings = @@ -2335,6 +2356,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createBackupPlanAssociationTransportSettings = @@ -2347,6 +2369,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateBackupPlanAssociationTransportSettings = @@ -2374,6 +2397,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listBackupPlanAssociationsTransportSettings = @@ -2387,6 +2411,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings< FetchBackupPlanAssociationsForResourceTypeRequest, @@ -2404,6 +2429,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteBackupPlanAssociationTransportSettings = @@ -2416,6 +2442,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings triggerBackupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2427,6 +2454,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataSourceReferenceTransportSettings = @@ -2439,6 +2467,7 @@ protected HttpJsonBackupDRStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataSourceReferencesTransportSettings = @@ -2452,6 +2481,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings< FetchDataSourceReferencesForResourceTypeRequest, @@ -2469,6 +2499,7 @@ protected HttpJsonBackupDRStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings initializeServiceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2514,6 +2545,7 @@ protected HttpJsonBackupDRStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2525,6 +2557,7 @@ protected HttpJsonBackupDRStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -2537,6 +2570,7 @@ protected HttpJsonBackupDRStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listManagementServersCallable = diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDrProtectionSummaryStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDrProtectionSummaryStub.java index 7b27112fa318..21aa3cbc569d 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDrProtectionSummaryStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDrProtectionSummaryStub.java @@ -349,6 +349,7 @@ protected HttpJsonBackupDrProtectionSummaryStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -383,6 +384,7 @@ protected HttpJsonBackupDrProtectionSummaryStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -394,6 +396,7 @@ protected HttpJsonBackupDrProtectionSummaryStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -406,6 +409,7 @@ protected HttpJsonBackupDrProtectionSummaryStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listResourceBackupConfigsCallable = diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java new file mode 100644 index 000000000000..33000039558a --- /dev/null +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.backupdr.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-backupdr:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json index c3970fa05ed4..71e41af00302 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json +++ b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -143,6 +197,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -575,6 +638,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.AlloyDBClusterDataSourceProperties", "queryAllDeclaredConstructors": true, diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AlloyDBClusterBackupPlanAssociationProperties.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AlloyDBClusterBackupPlanAssociationProperties.java new file mode 100644 index 000000000000..7d5352a6ec8b --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AlloyDBClusterBackupPlanAssociationProperties.java @@ -0,0 +1,639 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/backupvault_alloydb.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Properties for an AlloyDB cluster backup plan association.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties} + */ +@com.google.protobuf.Generated +public final class AlloyDBClusterBackupPlanAssociationProperties + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AlloyDBClusterBackupPlanAssociationProperties"); + } + + // Use AlloyDBClusterBackupPlanAssociationProperties.newBuilder() to construct. + private AlloyDBClusterBackupPlanAssociationProperties( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AlloyDBClusterBackupPlanAssociationProperties() { + clusterUid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto + .internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto + .internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.class, + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder + .class); + } + + public static final int CLUSTER_UID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterUid_ = ""; + + /** + * + * + *
+   * Output only. The cluster UID of the AlloyDB cluster.
+   * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + @java.lang.Override + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + 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(); + clusterUid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The cluster UID of the AlloyDB cluster.
+   * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterUid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clusterUid_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterUid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clusterUid_); + } + 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.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties other = + (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) obj; + + if (!getClusterUid().equals(other.getClusterUid())) 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) + CLUSTER_UID_FIELD_NUMBER; + hash = (53 * hash) + getClusterUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + 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.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + 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.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Properties for an AlloyDB cluster backup plan association.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto + .internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto + .internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.class, + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder + .class); + } + + // Construct using + // com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterUid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto + .internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties build() { + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + buildPartial() { + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties result = + new com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterUid_ = clusterUid_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) { + return mergeFrom( + (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties other) { + if (other + == com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance()) return this; + if (!other.getClusterUid().isEmpty()) { + clusterUid_ = other.clusterUid_; + bitField0_ |= 0x00000001; + 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: + { + clusterUid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object clusterUid_ = ""; + + /** + * + * + *
+     * Output only. The cluster UID of the AlloyDB cluster.
+     * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The cluster UID of the AlloyDB cluster.
+     * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The cluster UID of the AlloyDB cluster.
+     * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterUid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The cluster UID of the AlloyDB cluster.
+     * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearClusterUid() { + clusterUid_ = getDefaultInstance().getClusterUid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The cluster UID of the AlloyDB cluster.
+     * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + private static final com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties(); + } + + public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDBClusterBackupPlanAssociationProperties 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.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder.java new file mode 100644 index 000000000000..ac2702d2f669 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/backupvault_alloydb.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The cluster UID of the AlloyDB cluster.
+   * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + java.lang.String getClusterUid(); + + /** + * + * + *
+   * Output only. The cluster UID of the AlloyDB cluster.
+   * 
+ * + * + * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + com.google.protobuf.ByteString getClusterUidBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java index d0aa766e903d..f6d34b7eeda3 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java @@ -330,6 +330,7 @@ public enum ResourcePropertiesCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES(10), + ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES(15), RESOURCEPROPERTIES_NOT_SET(0); private final int value; @@ -351,6 +352,8 @@ public static ResourcePropertiesCase forNumber(int value) { switch (value) { case 10: return CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES; + case 15: + return ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES; case 0: return RESOURCEPROPERTIES_NOT_SET; default: @@ -974,6 +977,72 @@ public boolean hasCloudSqlInstanceBackupPlanAssociationProperties() { .getDefaultInstance(); } + public static final int ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER = 15; + + /** + * + * + *
+   * Output only. AlloyDB cluster's backup plan association properties.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the alloydbClusterBackupPlanAssociationProperties field is set. + */ + @java.lang.Override + public boolean hasAlloydbClusterBackupPlanAssociationProperties() { + return resourcePropertiesCase_ == 15; + } + + /** + * + * + *
+   * Output only. AlloyDB cluster's backup plan association properties.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The alloydbClusterBackupPlanAssociationProperties. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + getAlloydbClusterBackupPlanAssociationProperties() { + if (resourcePropertiesCase_ == 15) { + return (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + resourceProperties_; + } + return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. AlloyDB cluster's backup plan association properties.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder + getAlloydbClusterBackupPlanAssociationPropertiesOrBuilder() { + if (resourcePropertiesCase_ == 15) { + return (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + resourceProperties_; + } + return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance(); + } + public static final int BACKUP_PLAN_REVISION_ID_FIELD_NUMBER = 11; @SuppressWarnings("serial") @@ -1146,6 +1215,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlanRevisionName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 12, backupPlanRevisionName_); } + if (resourcePropertiesCase_ == 15) { + output.writeMessage( + 15, + (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + resourceProperties_); + } getUnknownFields().writeTo(output); } @@ -1196,6 +1271,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlanRevisionName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(12, backupPlanRevisionName_); } + if (resourcePropertiesCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, + (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + resourceProperties_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1235,6 +1317,10 @@ public boolean equals(final java.lang.Object obj) { if (!getCloudSqlInstanceBackupPlanAssociationProperties() .equals(other.getCloudSqlInstanceBackupPlanAssociationProperties())) return false; break; + case 15: + if (!getAlloydbClusterBackupPlanAssociationProperties() + .equals(other.getAlloydbClusterBackupPlanAssociationProperties())) return false; + break; case 0: default: } @@ -1282,6 +1368,10 @@ public int hashCode() { hash = (37 * hash) + CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getCloudSqlInstanceBackupPlanAssociationProperties().hashCode(); break; + case 15: + hash = (37 * hash) + ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getAlloydbClusterBackupPlanAssociationProperties().hashCode(); + break; case 0: default: } @@ -1463,6 +1553,9 @@ public Builder clear() { if (cloudSqlInstanceBackupPlanAssociationPropertiesBuilder_ != null) { cloudSqlInstanceBackupPlanAssociationPropertiesBuilder_.clear(); } + if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ != null) { + alloydbClusterBackupPlanAssociationPropertiesBuilder_.clear(); + } backupPlanRevisionId_ = ""; backupPlanRevisionName_ = ""; resourcePropertiesCase_ = 0; @@ -1545,10 +1638,10 @@ private void buildPartial0(com.google.cloud.backupdr.v1.BackupPlanAssociation re if (((from_bitField0_ & 0x00000100) != 0)) { result.dataSource_ = dataSource_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.backupPlanRevisionId_ = backupPlanRevisionId_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.backupPlanRevisionName_ = backupPlanRevisionName_; } result.bitField0_ |= to_bitField0_; @@ -1562,6 +1655,10 @@ private void buildPartialOneofs(com.google.cloud.backupdr.v1.BackupPlanAssociati result.resourceProperties_ = cloudSqlInstanceBackupPlanAssociationPropertiesBuilder_.build(); } + if (resourcePropertiesCase_ == 15 + && alloydbClusterBackupPlanAssociationPropertiesBuilder_ != null) { + result.resourceProperties_ = alloydbClusterBackupPlanAssociationPropertiesBuilder_.build(); + } } @java.lang.Override @@ -1640,12 +1737,12 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupPlanAssociation othe } if (!other.getBackupPlanRevisionId().isEmpty()) { backupPlanRevisionId_ = other.backupPlanRevisionId_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.getBackupPlanRevisionName().isEmpty()) { backupPlanRevisionName_ = other.backupPlanRevisionName_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } switch (other.getResourcePropertiesCase()) { @@ -1655,6 +1752,12 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupPlanAssociation othe other.getCloudSqlInstanceBackupPlanAssociationProperties()); break; } + case ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES: + { + mergeAlloydbClusterBackupPlanAssociationProperties( + other.getAlloydbClusterBackupPlanAssociationProperties()); + break; + } case RESOURCEPROPERTIES_NOT_SET: { break; @@ -1761,15 +1864,24 @@ public Builder mergeFrom( case 90: { backupPlanRevisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 case 98: { backupPlanRevisionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 98 + case 122: + { + input.readMessage( + internalGetAlloydbClusterBackupPlanAssociationPropertiesFieldBuilder() + .getBuilder(), + extensionRegistry); + resourcePropertiesCase_ = 15; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3663,6 +3775,261 @@ public Builder clearCloudSqlInstanceBackupPlanAssociationProperties() { return cloudSqlInstanceBackupPlanAssociationPropertiesBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties, + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder, + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder> + alloydbClusterBackupPlanAssociationPropertiesBuilder_; + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the alloydbClusterBackupPlanAssociationProperties field is set. + */ + @java.lang.Override + public boolean hasAlloydbClusterBackupPlanAssociationProperties() { + return resourcePropertiesCase_ == 15; + } + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The alloydbClusterBackupPlanAssociationProperties. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + getAlloydbClusterBackupPlanAssociationProperties() { + if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) { + if (resourcePropertiesCase_ == 15) { + return (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + resourceProperties_; + } + return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance(); + } else { + if (resourcePropertiesCase_ == 15) { + return alloydbClusterBackupPlanAssociationPropertiesBuilder_.getMessage(); + } + return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAlloydbClusterBackupPlanAssociationProperties( + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties value) { + if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceProperties_ = value; + onChanged(); + } else { + alloydbClusterBackupPlanAssociationPropertiesBuilder_.setMessage(value); + } + resourcePropertiesCase_ = 15; + return this; + } + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAlloydbClusterBackupPlanAssociationProperties( + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder + builderForValue) { + if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) { + resourceProperties_ = builderForValue.build(); + onChanged(); + } else { + alloydbClusterBackupPlanAssociationPropertiesBuilder_.setMessage(builderForValue.build()); + } + resourcePropertiesCase_ = 15; + return this; + } + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAlloydbClusterBackupPlanAssociationProperties( + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties value) { + if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) { + if (resourcePropertiesCase_ == 15 + && resourceProperties_ + != com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance()) { + resourceProperties_ = + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.newBuilder( + (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + resourceProperties_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceProperties_ = value; + } + onChanged(); + } else { + if (resourcePropertiesCase_ == 15) { + alloydbClusterBackupPlanAssociationPropertiesBuilder_.mergeFrom(value); + } else { + alloydbClusterBackupPlanAssociationPropertiesBuilder_.setMessage(value); + } + } + resourcePropertiesCase_ = 15; + return this; + } + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAlloydbClusterBackupPlanAssociationProperties() { + if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) { + if (resourcePropertiesCase_ == 15) { + resourcePropertiesCase_ = 0; + resourceProperties_ = null; + onChanged(); + } + } else { + if (resourcePropertiesCase_ == 15) { + resourcePropertiesCase_ = 0; + resourceProperties_ = null; + } + alloydbClusterBackupPlanAssociationPropertiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder + getAlloydbClusterBackupPlanAssociationPropertiesBuilder() { + return internalGetAlloydbClusterBackupPlanAssociationPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder + getAlloydbClusterBackupPlanAssociationPropertiesOrBuilder() { + if ((resourcePropertiesCase_ == 15) + && (alloydbClusterBackupPlanAssociationPropertiesBuilder_ != null)) { + return alloydbClusterBackupPlanAssociationPropertiesBuilder_.getMessageOrBuilder(); + } else { + if (resourcePropertiesCase_ == 15) { + return (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + resourceProperties_; + } + return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. AlloyDB cluster's backup plan association properties.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties, + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder, + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder> + internalGetAlloydbClusterBackupPlanAssociationPropertiesFieldBuilder() { + if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) { + if (!(resourcePropertiesCase_ == 15)) { + resourceProperties_ = + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + .getDefaultInstance(); + } + alloydbClusterBackupPlanAssociationPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties, + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder, + com.google.cloud.backupdr.v1 + .AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder>( + (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + resourceProperties_, + getParentForChildren(), + isClean()); + resourceProperties_ = null; + } + resourcePropertiesCase_ = 15; + onChanged(); + return alloydbClusterBackupPlanAssociationPropertiesBuilder_; + } + private java.lang.Object backupPlanRevisionId_ = ""; /** @@ -3737,7 +4104,7 @@ public Builder setBackupPlanRevisionId(java.lang.String value) { throw new NullPointerException(); } backupPlanRevisionId_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3758,7 +4125,7 @@ public Builder setBackupPlanRevisionId(java.lang.String value) { */ public Builder clearBackupPlanRevisionId() { backupPlanRevisionId_ = getDefaultInstance().getBackupPlanRevisionId(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3784,7 +4151,7 @@ public Builder setBackupPlanRevisionIdBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); backupPlanRevisionId_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3866,7 +4233,7 @@ public Builder setBackupPlanRevisionName(java.lang.String value) { throw new NullPointerException(); } backupPlanRevisionName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3888,7 +4255,7 @@ public Builder setBackupPlanRevisionName(java.lang.String value) { */ public Builder clearBackupPlanRevisionName() { backupPlanRevisionName_ = getDefaultInstance().getBackupPlanRevisionName(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -3915,7 +4282,7 @@ public Builder setBackupPlanRevisionNameBytes(com.google.protobuf.ByteString val } checkByteStringIsUtf8(value); backupPlanRevisionName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java index cc1f98371490..23a0ebf09a3b 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java @@ -419,6 +419,51 @@ public interface BackupPlanAssociationOrBuilder com.google.cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder getCloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder(); + /** + * + * + *
+   * Output only. AlloyDB cluster's backup plan association properties.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the alloydbClusterBackupPlanAssociationProperties field is set. + */ + boolean hasAlloydbClusterBackupPlanAssociationProperties(); + + /** + * + * + *
+   * Output only. AlloyDB cluster's backup plan association properties.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The alloydbClusterBackupPlanAssociationProperties. + */ + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties + getAlloydbClusterBackupPlanAssociationProperties(); + + /** + * + * + *
+   * Output only. AlloyDB cluster's backup plan association properties.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder + getAlloydbClusterBackupPlanAssociationPropertiesOrBuilder(); + /** * * diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java index 9624b6b99abd..54a7d4a0d653 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java @@ -97,8 +97,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "4google/cloud/backupdr/v1/backupplanassociation.proto\022\030google.cloud.backupdr.v1" + "\032\037google/api/field_behavior.proto\032\033googl" + "e/api/field_info.proto\032\031google/api/resou" - + "rce.proto\0323google/cloud/backupdr/v1/backupvault_cloudsql.proto\032 google/protobuf/" - + "field_mask.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\334\007\n" + + "rce.proto\0322google/cloud/backupdr/v1/back" + + "upvault_alloydb.proto\0323google/cloud/backupdr/v1/backupvault_cloudsql.proto\032 goog" + + "le/protobuf/field_mask.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\027google/rpc/status.proto\"\351\010\n" + "\025BackupPlanAssociation\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\035\n\r" + "resource_type\030\002 \001(\tB\006\340A\005\340A\002\022\030\n" @@ -107,14 +109,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"backupdr.googleapis.com/BackupPlan\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" - + "\005state\030\007" - + " \001(\01625.google.cloud.backupdr.v1.BackupPlanAssociation.StateB\003\340A\003\022H\n" + + "\005state\030\007 \001(\01625.google.cloud.backu" + + "pdr.v1.BackupPlanAssociation.StateB\003\340A\003\022H\n" + "\021rules_config_info\030\010" + " \003(\0132(.google.cloud.backupdr.v1.RuleConfigInfoB\003\340A\003\022\030\n" + "\013data_source\030\t \001(\tB\003\340A\003\022\217\001\n" + "5cloud_sql_instance_backup_plan_association_properties\030\n" - + " \001(\0132I.google" - + ".cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationPropertiesB\003\340A\003H\000\022$\n" + + " \001(\0132I.google.cloud.backupdr.v1.CloudSqlI" + + "nstanceBackupPlanAssociationPropertiesB\003\340A\003H\000\022\212\001\n" + + "2alloydb_cluster_backup_plan_association_properties\030\017 \001(\0132G.google.clou" + + "d.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesB\003\340A\003H\000\022$\n" + "\027backup_plan_revision_id\030\013 \001(\tB\003\340A\003\022&\n" + "\031backup_plan_revision_name\030\014 \001(\tB\003\340A\003\"b\n" + "\005State\022\025\n" @@ -124,9 +128,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\003\022\014\n" + "\010INACTIVE\020\004\022\014\n" + "\010UPDATING\020\005:\274\001\352A\270\001\n" - + "-backupdr.googleapis.com/BackupPlanAssociation\022Xprojects/{pro" - + "ject}/locations/{location}/backupPlanAssociations/{backup_plan_association}*\026bac" - + "kupPlanAssociations2\025backupPlanAssociationB\025\n" + + "-backupdr.googleapis.com/BackupPlanAssociation\022Xprojects/{project}/l" + + "ocations/{location}/backupPlanAssociatio" + + "ns/{backup_plan_association}*\026backupPlanAssociations2\025backupPlanAssociationB\025\n" + "\023resource_properties\"\211\003\n" + "\016RuleConfigInfo\022\024\n" + "\007rule_id\030\001 \001(\tB\003\340A\003\022X\n" @@ -142,15 +146,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSUCCEEDED\020\003\022\n\n" + "\006FAILED\020\004\"\214\002\n" + "\"CreateBackupPlanAssociationRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A" - + "\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\'\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-b" + + "ackupdr.googleapis.com/BackupPlanAssociation\022\'\n" + "\032backup_plan_association_id\030\002 \001(\tB\003\340A\002\022U\n" - + "\027backup_plan_association\030\003" - + " \001(\0132/.google.cloud.backupdr.v1.BackupPlanAssociationB\003\340A\002\022\037\n\n" + + "\027backup_plan_association\030\003 \001(\0132/" + + ".google.cloud.backupdr.v1.BackupPlanAssociationB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\260\001\n" + "!ListBackupPlanAssociationsRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-back" - + "updr.googleapis.com/BackupPlanAssociation\022\026\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\245\001\n" @@ -160,8 +164,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\363\001\n" + "1FetchBackupPlanAssociationsForResourceTypeRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-b" - + "ackupdr.googleapis.com/BackupPlanAssociation\022\032\n\r" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\032\n" + + "\r" + "resource_type\030\002 \001(\tB\003\340A\002\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" @@ -189,11 +194,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-backupdr.googleapis.com/BackupPlanAssociation\022\024\n" + "\007rule_id\030\002 \001(\tB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\312\001\n" - + "\034com.google.cloud.backupdr.v1B\032BackupPlanAssociatio" - + "nProtoP\001Z8cloud.google.com/go/backupdr/a" - + "piv1/backupdrpb;backupdrpb\252\002\030Google.Clou" - + "d.BackupDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1" - + "\352\002\033Google::Cloud::BackupDR::V1b\006proto3" + + "\034com.google.cloud.backupdr.v1B\032BackupPlanAssociationProtoP" + + "\001Z8cloud.google.com/go/backupdr/apiv1/ba" + + "ckupdrpb;backupdrpb\252\002\030Google.Cloud.Backu" + + "pDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Goog" + + "le::Cloud::BackupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -202,6 +207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto.getDescriptor(), com.google.cloud.backupdr.v1.BackupvaultCloudSqlProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -223,6 +229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RulesConfigInfo", "DataSource", "CloudSqlInstanceBackupPlanAssociationProperties", + "AlloydbClusterBackupPlanAssociationProperties", "BackupPlanRevisionId", "BackupPlanRevisionName", "ResourceProperties", @@ -311,6 +318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto.getDescriptor(); com.google.cloud.backupdr.v1.BackupvaultCloudSqlProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultAlloyDBProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultAlloyDBProto.java index 6cdecc00d5fd..428bf4ef26fc 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultAlloyDBProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultAlloyDBProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_backupdr_v1_AlloyDbClusterBackupProperties_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_backupdr_v1_AlloyDbClusterBackupProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -60,7 +64,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "2google/cloud/backupdr/v1/backupvault_a" + "lloydb.proto\022\030google.cloud.backupdr.v1\032\037" - + "google/api/field_behavior.proto\032\031google/api/resource.proto\"Z\n" + + "google/api/field_behavior.proto\032\033google/" + + "api/field_info.proto\032\031google/api/resource.proto\"Z\n" + "\"AlloyDBClusterDataSourceProperties\0224\n" + "\004name\030\001 \001(\tB&\340A\003\372A \n" + "\036alloydb.googleapis.com/Cluster\"\233\001\n" @@ -69,19 +74,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014stored_bytes\030\002 \001(\003B\003\340A\003\022\025\n" + "\010chain_id\030\003 \001(\tB\003\340A\003\022\035\n" + "\020database_version\030\004 \001(\tB\003\340A\003B\016\n" - + "\014_descriptionB\246\002\n" - + "\034com.google.cloud.backupdr.v1B\027BackupvaultAlloyD" - + "BProtoP\001Z8cloud.google.com/go/backupdr/a" - + "piv1/backupdrpb;backupdrpb\252\002\030Google.Clou" - + "d.BackupDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1\352A\\\n" - + "\036alloydb.googleapis.com/Cluster\022:projects/{pro" - + "ject}/locations/{location}/clusters/{cluster}b\006proto3" + + "\014_description\"Q\n" + + "-AlloyDBClusterBackupPlanAssociationProperties\022 \n" + + "\013cluster_uid\030\001 \001(" + + "\tB\013\340A\003\342\214\317\327\010\002\010\001B\246\002\n" + + "\034com.google.cloud.backupdr.v1B\027BackupvaultAlloyDBProtoP\001" + + "Z8cloud.google.com/go/backupdr/apiv1/bac" + + "kupdrpb;backupdrpb\252\002\030Google.Cloud.Backup" + + "DR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1\352A\\\n" + + "\036alloydb.googleapis.com/Cluster\022:projects/{project}/lo" + + "cations/{location}/clusters/{cluster}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), }); internal_static_google_cloud_backupdr_v1_AlloyDBClusterDataSourceProperties_descriptor = @@ -100,12 +109,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Description", "StoredBytes", "ChainId", "DatabaseVersion", }); + internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor, + new java.lang.String[] { + "ClusterUid", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto index 2f97b4c8c179..d1f19c338880 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto @@ -19,6 +19,7 @@ package google.cloud.backupdr.v1; import "google/api/field_behavior.proto"; import "google/api/field_info.proto"; import "google/api/resource.proto"; +import "google/cloud/backupdr/v1/backupvault_alloydb.proto"; import "google/cloud/backupdr/v1/backupvault_cloudsql.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -126,6 +127,11 @@ message BackupPlanAssociation { CloudSqlInstanceBackupPlanAssociationProperties cloud_sql_instance_backup_plan_association_properties = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. AlloyDB cluster's backup plan association properties. + AlloyDBClusterBackupPlanAssociationProperties + alloydb_cluster_backup_plan_association_properties = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The user friendly revision ID of the `BackupPlanRevision`. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_alloydb.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_alloydb.proto index b97d684d911d..e6b39b933b53 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_alloydb.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_alloydb.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.backupdr.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.BackupDR.V1"; @@ -61,3 +62,12 @@ message AlloyDbClusterBackupProperties { // backup was taken. string database_version = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Properties for an AlloyDB cluster backup plan association. +message AlloyDBClusterBackupPlanAssociationProperties { + // Output only. The cluster UID of the AlloyDB cluster. + string cluster_uid = 1 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java index a8cf4a8e8dbc..2555a783c586 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java @@ -1012,8 +1012,10 @@ * * *

ListLocations - *

Lists information about the supported locations for this service.This method can be called in two ways: - *

* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

Lists information about the supported locations for this service. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -1960,6 +1962,8 @@ public final OperationFuture exportAppAsyn * ExportAppRequest.newBuilder() * .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setGcsUri("gcsUri-1251224875") + * .setAppVersion( + * AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) * .build(); * ExportAppResponse response = agentServiceClient.exportAppAsync(request).get(); * } @@ -1990,6 +1994,8 @@ public final OperationFuture exportAppAsyn * ExportAppRequest.newBuilder() * .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setGcsUri("gcsUri-1251224875") + * .setAppVersion( + * AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) * .build(); * OperationFuture future = * agentServiceClient.exportAppOperationCallable().futureCall(request); @@ -2020,6 +2026,8 @@ public final OperationFuture exportAppAsyn * ExportAppRequest.newBuilder() * .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setGcsUri("gcsUri-1251224875") + * .setAppVersion( + * AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) * .build(); * ApiFuture future = agentServiceClient.exportAppCallable().futureCall(request); * // Do something. @@ -7840,13 +7848,20 @@ public final UnaryCallable getChangelogCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *

    * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

    Sample code: * @@ -7879,13 +7894,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

    * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

    Sample code: * @@ -7919,13 +7941,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *

    * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

    Sample code: * diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java index ca2de5bb9dd7..eee67573da6d 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java @@ -24,6 +24,7 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1.stub.SessionServiceStub; import com.google.cloud.ces.v1.stub.SessionServiceStubSettings; @@ -72,7 +73,7 @@ * * *

    RunSession - *

    Initiates a single turn interaction with the CES agent within a session. + *

    Initiates a single-turn interaction with the CES agent within a session. * *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      @@ -85,6 +86,17 @@ * * * + *

      StreamRunSession + *

      Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver incremental results and partial responses as they are generated. + *

      By default, complete responses (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are available. To enable streaming individual text chunks directly from the model, set [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming] to true. + * + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • streamRunSessionCallable() + *

      + * + * + * *

      BidiRunSession *

      Establishes a bidirectional streaming connection with the CES agent. The agent processes continuous multimodal inputs (e.g., text, audio) and generates real-time multimodal output streams. *

      --- Client Request Stream --- The client streams requests in the following order: @@ -106,8 +118,10 @@ * * *

      ListLocations - *

      Lists information about the supported locations for this service.This method can be called in two ways: - *

      * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

      Lists information about the supported locations for this service. + *

      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -241,7 +255,7 @@ public SessionServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Initiates a single turn interaction with the CES agent within a session. + * Initiates a single-turn interaction with the CES agent within a session. * *

        Sample code: * @@ -270,7 +284,7 @@ public final RunSessionResponse runSession(RunSessionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Initiates a single turn interaction with the CES agent within a session. + * Initiates a single-turn interaction with the CES agent within a session. * *

        Sample code: * @@ -297,6 +311,43 @@ public final UnaryCallable runSessionCall return stub.runSessionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver + * incremental results and partial responses as they are generated. + * + *

        By default, complete responses (e.g., messages from callbacks or full LLM responses) are + * sent to the client as soon as they are available. To enable streaming individual text chunks + * directly from the model, set + * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming] to true. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
        +   *   RunSessionRequest request =
        +   *       RunSessionRequest.newBuilder()
        +   *           .setConfig(SessionConfig.newBuilder().build())
        +   *           .addAllInputs(new ArrayList())
        +   *           .build();
        +   *   ServerStream stream =
        +   *       sessionServiceClient.streamRunSessionCallable().call(request);
        +   *   for (RunSessionResponse response : stream) {
        +   *     // Do something when a response is received.
        +   *   }
        +   * }
        +   * }
        + */ + public final ServerStreamingCallable + streamRunSessionCallable() { + return stub.streamRunSessionCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Establishes a bidirectional streaming connection with the CES agent. The agent processes @@ -373,13 +424,20 @@ public final UnaryCallable runSessionCall // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *

        * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

        Sample code: * @@ -412,13 +470,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

        * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

        Sample code: * @@ -452,13 +517,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *

        * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

        Sample code: * diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java index e0c1f945b24b..0f166eb0f27c 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -98,6 +99,12 @@ public UnaryCallSettings runSessionSettin return ((SessionServiceStubSettings) getStubSettings()).runSessionSettings(); } + /** Returns the object with the settings used for calls to streamRunSession. */ + public ServerStreamingCallSettings + streamRunSessionSettings() { + return ((SessionServiceStubSettings) getStubSettings()).streamRunSessionSettings(); + } + /** Returns the object with the settings used for calls to bidiRunSession. */ public StreamingCallSettings bidiRunSessionSettings() { @@ -232,6 +239,12 @@ public UnaryCallSettings.Builder runSessi return getStubSettingsBuilder().runSessionSettings(); } + /** Returns the builder for the settings used for calls to streamRunSession. */ + public ServerStreamingCallSettings.Builder + streamRunSessionSettings() { + return getStubSettingsBuilder().streamRunSessionSettings(); + } + /** Returns the builder for the settings used for calls to bidiRunSession. */ public StreamingCallSettings.Builder bidiRunSessionSettings() { diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java index 611add74a35e..765abe5915aa 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java @@ -113,8 +113,10 @@ * * *

        ListLocations - *

        Lists information about the supported locations for this service.This method can be called in two ways: - *

        * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

        Lists information about the supported locations for this service. + *

        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        *
          @@ -423,13 +425,20 @@ public final UnaryCallable retrieve // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

          * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

          Sample code: * @@ -462,13 +471,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

          * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

          Sample code: * @@ -502,13 +518,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *

          * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

          Sample code: * diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java index 5f0916d87336..0692ae2bd31c 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java @@ -56,6 +56,7 @@ * .setDeployment( * DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) * .setRecaptchaToken("recaptchaToken1978277202") + * .setLiveHandoffEnabled(true) * .build(); * GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); * } @@ -87,8 +88,10 @@ * * *

          ListLocations - *

          Lists information about the supported locations for this service.This method can be called in two ways: - *

          * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. + *

          Lists information about the supported locations for this service. + *

          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            @@ -239,6 +242,7 @@ public WidgetServiceStub getStub() { * .setDeployment( * DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) * .setRecaptchaToken("recaptchaToken1978277202") + * .setLiveHandoffEnabled(true) * .build(); * GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); * } @@ -270,6 +274,7 @@ public final GenerateChatTokenResponse generateChatToken(GenerateChatTokenReques * .setDeployment( * DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) * .setRecaptchaToken("recaptchaToken1978277202") + * .setLiveHandoffEnabled(true) * .build(); * ApiFuture future = * widgetServiceClient.generateChatTokenCallable().futureCall(request); @@ -285,13 +290,20 @@ public final GenerateChatTokenResponse generateChatToken(GenerateChatTokenReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

            * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

            Sample code: * @@ -324,13 +336,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *

            * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

            Sample code: * @@ -364,13 +383,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *

            * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

            Sample code: * diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json index 0754a01df16e..5e690b173af2 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json @@ -180,6 +180,9 @@ }, "RunSession": { "methods": ["runSession", "runSessionCallable"] + }, + "StreamRunSession": { + "methods": ["streamRunSessionCallable"] } } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java index 26a8eb667b37..717f98697cb6 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java @@ -101,6 +101,7 @@ * .setDeployment( * DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) * .setRecaptchaToken("recaptchaToken1978277202") + * .setLiveHandoffEnabled(true) * .build(); * GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); * } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java index acea499bfce4..14a4e43f7c49 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java @@ -1375,6 +1375,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java index e88f2c7c651f..0a93b3a158d4 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java @@ -782,6 +782,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAppTransportSettings = GrpcCallSettings.newBuilder() @@ -792,6 +793,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAppTransportSettings = GrpcCallSettings.newBuilder() @@ -802,6 +804,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAppTransportSettings = GrpcCallSettings.newBuilder() @@ -822,6 +825,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings exportAppTransportSettings = GrpcCallSettings.newBuilder() @@ -832,6 +836,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings importAppTransportSettings = GrpcCallSettings.newBuilder() @@ -842,6 +847,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listAgentsTransportSettings = GrpcCallSettings.newBuilder() @@ -852,6 +858,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAgentTransportSettings = GrpcCallSettings.newBuilder() @@ -862,6 +869,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAgentTransportSettings = GrpcCallSettings.newBuilder() @@ -872,6 +880,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAgentTransportSettings = GrpcCallSettings.newBuilder() @@ -892,6 +901,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listExamplesTransportSettings = GrpcCallSettings.newBuilder() @@ -902,6 +912,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getExampleTransportSettings = GrpcCallSettings.newBuilder() @@ -912,6 +923,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createExampleTransportSettings = GrpcCallSettings.newBuilder() @@ -922,6 +934,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateExampleTransportSettings = GrpcCallSettings.newBuilder() @@ -942,6 +955,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listToolsTransportSettings = GrpcCallSettings.newBuilder() @@ -952,6 +966,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getToolTransportSettings = GrpcCallSettings.newBuilder() @@ -962,6 +977,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listConversationsTransportSettings = @@ -973,6 +989,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getConversationTransportSettings = GrpcCallSettings.newBuilder() @@ -983,6 +1000,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings deleteConversationTransportSettings = GrpcCallSettings.newBuilder() @@ -993,6 +1011,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings batchDeleteConversationsTransportSettings = @@ -1004,6 +1023,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createToolTransportSettings = GrpcCallSettings.newBuilder() @@ -1014,6 +1034,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateToolTransportSettings = GrpcCallSettings.newBuilder() @@ -1034,6 +1055,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listGuardrailsTransportSettings = @@ -1045,6 +1067,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getGuardrailTransportSettings = GrpcCallSettings.newBuilder() @@ -1055,6 +1078,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createGuardrailTransportSettings = GrpcCallSettings.newBuilder() @@ -1065,6 +1089,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateGuardrailTransportSettings = GrpcCallSettings.newBuilder() @@ -1085,6 +1110,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDeploymentsTransportSettings = @@ -1096,6 +1122,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDeploymentTransportSettings = GrpcCallSettings.newBuilder() @@ -1106,6 +1133,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createDeploymentTransportSettings = GrpcCallSettings.newBuilder() @@ -1116,6 +1144,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDeploymentTransportSettings = GrpcCallSettings.newBuilder() @@ -1136,6 +1165,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listToolsetsTransportSettings = GrpcCallSettings.newBuilder() @@ -1146,6 +1176,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getToolsetTransportSettings = GrpcCallSettings.newBuilder() @@ -1156,6 +1187,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createToolsetTransportSettings = GrpcCallSettings.newBuilder() @@ -1166,6 +1198,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateToolsetTransportSettings = GrpcCallSettings.newBuilder() @@ -1186,6 +1219,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAppVersionsTransportSettings = @@ -1197,6 +1231,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAppVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -1207,6 +1242,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAppVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -1217,6 +1253,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteAppVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -1227,6 +1264,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings restoreAppVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -1237,6 +1275,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listChangelogsTransportSettings = @@ -1248,6 +1287,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getChangelogTransportSettings = GrpcCallSettings.newBuilder() @@ -1258,6 +1298,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceStub.java index 6f7f00ffa81f..1404a3a5b32c 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceStub.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1.BidiSessionClientMessage; import com.google.cloud.ces.v1.BidiSessionServerMessage; @@ -59,6 +60,16 @@ public class GrpcSessionServiceStub extends SessionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + streamRunSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName("google.cloud.ces.v1.SessionService/StreamRunSession") + .setRequestMarshaller(ProtoUtils.marshaller(RunSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RunSessionResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor bidiRunSessionMethodDescriptor = MethodDescriptor.newBuilder() @@ -93,6 +104,8 @@ public class GrpcSessionServiceStub extends SessionServiceStub { .build(); private final UnaryCallable runSessionCallable; + private final ServerStreamingCallable + streamRunSessionCallable; private final BidiStreamingCallable bidiRunSessionCallable; private final UnaryCallable listLocationsCallable; @@ -154,6 +167,16 @@ protected GrpcSessionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings streamRunSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(streamRunSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("config.session", String.valueOf(request.getConfig().getSession())); + return builder.build(); + }) + .build(); GrpcCallSettings bidiRunSessionTransportSettings = GrpcCallSettings.newBuilder() @@ -183,6 +206,9 @@ protected GrpcSessionServiceStub( this.runSessionCallable = callableFactory.createUnaryCallable( runSessionTransportSettings, settings.runSessionSettings(), clientContext); + this.streamRunSessionCallable = + callableFactory.createServerStreamingCallable( + streamRunSessionTransportSettings, settings.streamRunSessionSettings(), clientContext); this.bidiRunSessionCallable = callableFactory.createBidiStreamingCallable( bidiRunSessionTransportSettings, settings.bidiRunSessionSettings(), clientContext); @@ -209,6 +235,11 @@ public UnaryCallable runSessionCallable() return runSessionCallable; } + @Override + public ServerStreamingCallable streamRunSessionCallable() { + return streamRunSessionCallable; + } + @Override public BidiStreamingCallable bidiRunSessionCallable() { diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceStub.java index 5b7739312f91..e4f5888eb11c 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceStub.java @@ -166,6 +166,7 @@ protected GrpcToolServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTool()) .build(); GrpcCallSettings retrieveToolSchemaTransportSettings = @@ -177,6 +178,7 @@ protected GrpcToolServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTool()) .build(); GrpcCallSettings retrieveToolsTransportSettings = GrpcCallSettings.newBuilder() @@ -187,6 +189,7 @@ protected GrpcToolServiceStub( builder.add("toolset", String.valueOf(request.getToolset())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getToolset()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceStub.java index 0eb9ec44b92f..46bcbf2d10f5 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceStub.java @@ -138,6 +138,7 @@ protected GrpcWidgetServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceStub.java index a39d504a9185..cc7352f548b1 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceStub.java @@ -2147,6 +2147,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2158,6 +2159,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2169,6 +2171,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2191,6 +2194,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings exportAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2202,6 +2206,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings importAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2213,6 +2218,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listAgentsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2224,6 +2230,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAgentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2235,6 +2242,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAgentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2246,6 +2254,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAgentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2268,6 +2277,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listExamplesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2279,6 +2289,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getExampleTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2290,6 +2301,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createExampleTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2301,6 +2313,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateExampleTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2323,6 +2336,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listToolsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2334,6 +2348,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getToolTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2345,6 +2360,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listConversationsTransportSettings = @@ -2357,6 +2373,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getConversationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2368,6 +2385,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings deleteConversationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2379,6 +2397,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings batchDeleteConversationsTransportSettings = @@ -2391,6 +2410,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createToolTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2402,6 +2422,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateToolTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2424,6 +2445,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listGuardrailsTransportSettings = @@ -2436,6 +2458,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getGuardrailTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2447,6 +2470,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createGuardrailTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2458,6 +2482,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateGuardrailTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2480,6 +2505,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDeploymentsTransportSettings = @@ -2492,6 +2518,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDeploymentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2503,6 +2530,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createDeploymentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2514,6 +2542,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDeploymentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2536,6 +2565,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listToolsetsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2547,6 +2577,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getToolsetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2558,6 +2589,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createToolsetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2569,6 +2601,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateToolsetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2591,6 +2624,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listAppVersionsTransportSettings = @@ -2603,6 +2637,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2614,6 +2649,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2625,6 +2661,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2636,6 +2673,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings restoreAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2647,6 +2685,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listChangelogsTransportSettings = @@ -2659,6 +2698,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getChangelogTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2670,6 +2710,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceStub.java index 189d73442f2e..34227c0b4da8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1.BidiSessionClientMessage; import com.google.cloud.ces.v1.BidiSessionServerMessage; @@ -96,6 +97,44 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + streamRunSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.SessionService/StreamRunSession") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "config.session", request.getConfig().getSession()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunSessionResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -165,6 +204,8 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { .build(); private final UnaryCallable runSessionCallable; + private final ServerStreamingCallable + streamRunSessionCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -223,6 +264,17 @@ protected HttpJsonSessionServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings streamRunSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(streamRunSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("config.session", String.valueOf(request.getConfig().getSession())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -250,6 +302,9 @@ protected HttpJsonSessionServiceStub( this.runSessionCallable = callableFactory.createUnaryCallable( runSessionTransportSettings, settings.runSessionSettings(), clientContext); + this.streamRunSessionCallable = + callableFactory.createServerStreamingCallable( + streamRunSessionTransportSettings, settings.streamRunSessionSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -268,6 +323,7 @@ protected HttpJsonSessionServiceStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(runSessionMethodDescriptor); + methodDescriptors.add(streamRunSessionMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -278,6 +334,11 @@ public UnaryCallable runSessionCallable() return runSessionCallable; } + @Override + public ServerStreamingCallable streamRunSessionCallable() { + return streamRunSessionCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceStub.java index cef1971c408b..c5abf373480f 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceStub.java @@ -299,6 +299,7 @@ protected HttpJsonToolServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTool()) .build(); HttpJsonCallSettings retrieveToolSchemaTransportSettings = @@ -311,6 +312,7 @@ protected HttpJsonToolServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTool()) .build(); HttpJsonCallSettings retrieveToolsTransportSettings = @@ -323,6 +325,7 @@ protected HttpJsonToolServiceStub( builder.add("toolset", String.valueOf(request.getToolset())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getToolset()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceStub.java index 7a9353e653a4..7e7c65bcadde 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceStub.java @@ -220,6 +220,7 @@ protected HttpJsonWidgetServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStub.java index 900962d39040..0374044a1f45 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStub.java @@ -20,6 +20,7 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1.BidiSessionClientMessage; import com.google.cloud.ces.v1.BidiSessionServerMessage; @@ -44,6 +45,10 @@ public UnaryCallable runSessionCallable() throw new UnsupportedOperationException("Not implemented: runSessionCallable()"); } + public ServerStreamingCallable streamRunSessionCallable() { + throw new UnsupportedOperationException("Not implemented: streamRunSessionCallable()"); + } + public BidiStreamingCallable bidiRunSessionCallable() { throw new UnsupportedOperationException("Not implemented: bidiRunSessionCallable()"); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java index 326bcc42a0e6..10d80d99284d 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java @@ -40,6 +40,7 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.StubSettings; @@ -124,6 +125,8 @@ public class SessionServiceStubSettings extends StubSettings runSessionSettings; + private final ServerStreamingCallSettings + streamRunSessionSettings; private final StreamingCallSettings bidiRunSessionSettings; private final PagedCallSettings< @@ -187,6 +190,12 @@ public UnaryCallSettings runSessionSettin return runSessionSettings; } + /** Returns the object with the settings used for calls to streamRunSession. */ + public ServerStreamingCallSettings + streamRunSessionSettings() { + return streamRunSessionSettings; + } + /** Returns the object with the settings used for calls to bidiRunSession. */ public StreamingCallSettings bidiRunSessionSettings() { @@ -316,6 +325,7 @@ protected SessionServiceStubSettings(Builder settingsBuilder) throws IOException super(settingsBuilder); runSessionSettings = settingsBuilder.runSessionSettings().build(); + streamRunSessionSettings = settingsBuilder.streamRunSessionSettings().build(); bidiRunSessionSettings = settingsBuilder.bidiRunSessionSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); @@ -326,6 +336,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } @@ -334,6 +345,8 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder runSessionSettings; + private final ServerStreamingCallSettings.Builder + streamRunSessionSettings; private final StreamingCallSettings.Builder bidiRunSessionSettings; private final PagedCallSettings.Builder< @@ -348,13 +361,13 @@ public static class Builder extends StubSettings.BuildernewArrayList())); - definitions.put( - "retry_policy_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_0_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -379,23 +392,23 @@ public static class Builder extends StubSettings.Builder runSessi return runSessionSettings; } + /** Returns the builder for the settings used for calls to streamRunSession. */ + public ServerStreamingCallSettings.Builder + streamRunSessionSettings() { + return streamRunSessionSettings; + } + /** Returns the builder for the settings used for calls to bidiRunSession. */ public StreamingCallSettings.Builder bidiRunSessionSettings() { diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java index 8f9a0bd4c400..2551c0e379b9 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java @@ -335,6 +335,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java new file mode 100644 index 000000000000..d2141babb3c2 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-ces:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java index b47f4f726928..530d24a3f75d 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java @@ -315,6 +315,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java index 57f915071ab1..f03e53f7e337 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java @@ -1397,6 +1397,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java index 58d41677e655..0be362f784fd 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java @@ -1135,6 +1135,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java index 778ac274437e..43642a27c935 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java @@ -813,6 +813,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAppTransportSettings = GrpcCallSettings.newBuilder() @@ -823,6 +824,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAppTransportSettings = GrpcCallSettings.newBuilder() @@ -833,6 +835,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAppTransportSettings = GrpcCallSettings.newBuilder() @@ -853,6 +856,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings exportAppTransportSettings = GrpcCallSettings.newBuilder() @@ -863,6 +867,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings importAppTransportSettings = GrpcCallSettings.newBuilder() @@ -873,6 +878,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getSecuritySettingsTransportSettings = @@ -884,6 +890,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateSecuritySettingsTransportSettings = @@ -907,6 +914,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAgentTransportSettings = GrpcCallSettings.newBuilder() @@ -917,6 +925,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAgentTransportSettings = GrpcCallSettings.newBuilder() @@ -927,6 +936,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAgentTransportSettings = GrpcCallSettings.newBuilder() @@ -947,6 +957,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listExamplesTransportSettings = GrpcCallSettings.newBuilder() @@ -957,6 +968,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getExampleTransportSettings = GrpcCallSettings.newBuilder() @@ -967,6 +979,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createExampleTransportSettings = GrpcCallSettings.newBuilder() @@ -977,6 +990,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateExampleTransportSettings = GrpcCallSettings.newBuilder() @@ -997,6 +1011,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listToolsTransportSettings = GrpcCallSettings.newBuilder() @@ -1007,6 +1022,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getToolTransportSettings = GrpcCallSettings.newBuilder() @@ -1017,6 +1033,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listConversationsTransportSettings = @@ -1028,6 +1045,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getConversationTransportSettings = GrpcCallSettings.newBuilder() @@ -1038,6 +1056,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings deleteConversationTransportSettings = GrpcCallSettings.newBuilder() @@ -1048,6 +1067,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings batchDeleteConversationsTransportSettings = @@ -1059,6 +1079,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createToolTransportSettings = GrpcCallSettings.newBuilder() @@ -1069,6 +1090,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateToolTransportSettings = GrpcCallSettings.newBuilder() @@ -1089,6 +1111,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listGuardrailsTransportSettings = @@ -1100,6 +1123,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getGuardrailTransportSettings = GrpcCallSettings.newBuilder() @@ -1110,6 +1134,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createGuardrailTransportSettings = GrpcCallSettings.newBuilder() @@ -1120,6 +1145,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateGuardrailTransportSettings = GrpcCallSettings.newBuilder() @@ -1140,6 +1166,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDeploymentsTransportSettings = @@ -1151,6 +1178,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDeploymentTransportSettings = GrpcCallSettings.newBuilder() @@ -1161,6 +1189,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createDeploymentTransportSettings = GrpcCallSettings.newBuilder() @@ -1171,6 +1200,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDeploymentTransportSettings = GrpcCallSettings.newBuilder() @@ -1191,6 +1221,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listToolsetsTransportSettings = GrpcCallSettings.newBuilder() @@ -1201,6 +1232,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getToolsetTransportSettings = GrpcCallSettings.newBuilder() @@ -1211,6 +1243,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createToolsetTransportSettings = GrpcCallSettings.newBuilder() @@ -1221,6 +1254,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateToolsetTransportSettings = GrpcCallSettings.newBuilder() @@ -1241,6 +1275,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAppVersionsTransportSettings = @@ -1252,6 +1287,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAppVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -1262,6 +1298,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAppVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -1272,6 +1309,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteAppVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -1282,6 +1320,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings restoreAppVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -1292,6 +1331,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listChangelogsTransportSettings = @@ -1303,6 +1343,7 @@ protected GrpcAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getChangelogTransportSettings = GrpcCallSettings.newBuilder() @@ -1313,6 +1354,7 @@ protected GrpcAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java index 88b466cbe869..f2567143005a 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java @@ -638,6 +638,7 @@ protected GrpcEvaluationServiceStub( builder.add("app", String.valueOf(request.getApp())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getApp()) .build(); GrpcCallSettings uploadEvaluationAudioTransportSettings = @@ -650,6 +651,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createEvaluationTransportSettings = GrpcCallSettings.newBuilder() @@ -660,6 +662,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings generateEvaluationTransportSettings = GrpcCallSettings.newBuilder() @@ -670,6 +673,7 @@ protected GrpcEvaluationServiceStub( builder.add("conversation", String.valueOf(request.getConversation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getConversation()) .build(); GrpcCallSettings importEvaluationsTransportSettings = GrpcCallSettings.newBuilder() @@ -680,6 +684,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createEvaluationDatasetTransportSettings = @@ -691,6 +696,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEvaluationTransportSettings = GrpcCallSettings.newBuilder() @@ -724,6 +730,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings deleteEvaluationResultTransportSettings = GrpcCallSettings.newBuilder() @@ -734,6 +741,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings deleteEvaluationDatasetTransportSettings = @@ -745,6 +753,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings deleteEvaluationRunTransportSettings = GrpcCallSettings.newBuilder() @@ -755,6 +764,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getEvaluationTransportSettings = GrpcCallSettings.newBuilder() @@ -765,6 +775,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getEvaluationResultTransportSettings = @@ -776,6 +787,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getEvaluationDatasetTransportSettings = @@ -787,6 +799,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getEvaluationRunTransportSettings = GrpcCallSettings.newBuilder() @@ -797,6 +810,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEvaluationsTransportSettings = @@ -808,6 +822,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listEvaluationResultsTransportSettings = @@ -820,6 +835,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listEvaluationDatasetsTransportSettings = @@ -832,6 +848,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listEvaluationRunsTransportSettings = @@ -843,6 +860,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listEvaluationExpectationsTransportSettings = @@ -855,6 +873,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEvaluationExpectationTransportSettings = @@ -866,6 +885,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createEvaluationExpectationTransportSettings = @@ -877,6 +897,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEvaluationExpectationTransportSettings = @@ -901,6 +922,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createScheduledEvaluationRunTransportSettings = @@ -913,6 +935,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getScheduledEvaluationRunTransportSettings = @@ -924,6 +947,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listScheduledEvaluationRunsTransportSettings = @@ -937,6 +961,7 @@ protected GrpcEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateScheduledEvaluationRunTransportSettings = @@ -962,6 +987,7 @@ protected GrpcEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings testPersonaVoiceTransportSettings = @@ -973,6 +999,7 @@ protected GrpcEvaluationServiceStub( builder.add("app", String.valueOf(request.getApp())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getApp()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcToolServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcToolServiceStub.java index ea5a75ecef8f..7f247b1913a9 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcToolServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcToolServiceStub.java @@ -168,6 +168,7 @@ protected GrpcToolServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTool()) .build(); GrpcCallSettings retrieveToolSchemaTransportSettings = @@ -179,6 +180,7 @@ protected GrpcToolServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTool()) .build(); GrpcCallSettings retrieveToolsTransportSettings = GrpcCallSettings.newBuilder() @@ -189,6 +191,7 @@ protected GrpcToolServiceStub( builder.add("toolset", String.valueOf(request.getToolset())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getToolset()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcWidgetServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcWidgetServiceStub.java index 3d243d5efc85..4e296a68144c 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcWidgetServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcWidgetServiceStub.java @@ -140,6 +140,7 @@ protected GrpcWidgetServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java index 896fe037c0e8..6ed1509df366 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java @@ -2231,6 +2231,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2242,6 +2243,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2253,6 +2255,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2275,6 +2278,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings exportAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2286,6 +2290,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings importAppTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2297,6 +2302,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getSecuritySettingsTransportSettings = @@ -2309,6 +2315,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateSecuritySettingsTransportSettings = @@ -2334,6 +2341,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAgentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2345,6 +2353,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAgentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2356,6 +2365,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAgentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2378,6 +2388,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listExamplesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2389,6 +2400,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getExampleTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2400,6 +2412,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createExampleTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2411,6 +2424,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateExampleTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2433,6 +2447,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listToolsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2444,6 +2459,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getToolTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2455,6 +2471,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listConversationsTransportSettings = @@ -2467,6 +2484,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getConversationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2478,6 +2496,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings deleteConversationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2489,6 +2508,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings batchDeleteConversationsTransportSettings = @@ -2501,6 +2521,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createToolTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2512,6 +2533,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateToolTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2534,6 +2556,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listGuardrailsTransportSettings = @@ -2546,6 +2569,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getGuardrailTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2557,6 +2581,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createGuardrailTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2568,6 +2593,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateGuardrailTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2590,6 +2616,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDeploymentsTransportSettings = @@ -2602,6 +2629,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDeploymentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2613,6 +2641,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createDeploymentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2624,6 +2653,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDeploymentTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2646,6 +2676,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listToolsetsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2657,6 +2688,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getToolsetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2668,6 +2700,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createToolsetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2679,6 +2712,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateToolsetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2701,6 +2735,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listAppVersionsTransportSettings = @@ -2713,6 +2748,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2724,6 +2760,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2735,6 +2772,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2746,6 +2784,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings restoreAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2757,6 +2796,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listChangelogsTransportSettings = @@ -2769,6 +2809,7 @@ protected HttpJsonAgentServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getChangelogTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2780,6 +2821,7 @@ protected HttpJsonAgentServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java index ed829759b1d2..82e37383ad70 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java @@ -1574,6 +1574,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("app", String.valueOf(request.getApp())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getApp()) .build(); HttpJsonCallSettings uploadEvaluationAudioTransportSettings = @@ -1587,6 +1588,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createEvaluationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1598,6 +1600,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings generateEvaluationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1609,6 +1612,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("conversation", String.valueOf(request.getConversation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getConversation()) .build(); HttpJsonCallSettings importEvaluationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1620,6 +1624,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createEvaluationDatasetTransportSettings = @@ -1632,6 +1637,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEvaluationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1668,6 +1674,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings deleteEvaluationResultTransportSettings = @@ -1680,6 +1687,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings deleteEvaluationDatasetTransportSettings = @@ -1692,6 +1700,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings deleteEvaluationRunTransportSettings = @@ -1704,6 +1713,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getEvaluationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1715,6 +1725,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getEvaluationResultTransportSettings = @@ -1727,6 +1738,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getEvaluationDatasetTransportSettings = @@ -1739,6 +1751,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getEvaluationRunTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1750,6 +1763,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEvaluationsTransportSettings = @@ -1762,6 +1776,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listEvaluationResultsTransportSettings = @@ -1775,6 +1790,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listEvaluationDatasetsTransportSettings = @@ -1788,6 +1804,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listEvaluationRunsTransportSettings = @@ -1800,6 +1817,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listEvaluationExpectationsTransportSettings = @@ -1813,6 +1831,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEvaluationExpectationTransportSettings = @@ -1826,6 +1845,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createEvaluationExpectationTransportSettings = @@ -1839,6 +1859,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEvaluationExpectationTransportSettings = @@ -1866,6 +1887,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createScheduledEvaluationRunTransportSettings = @@ -1879,6 +1901,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getScheduledEvaluationRunTransportSettings = @@ -1892,6 +1915,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listScheduledEvaluationRunsTransportSettings = @@ -1906,6 +1930,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateScheduledEvaluationRunTransportSettings = @@ -1933,6 +1958,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings testPersonaVoiceTransportSettings = @@ -1945,6 +1971,7 @@ protected HttpJsonEvaluationServiceStub( builder.add("app", String.valueOf(request.getApp())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getApp()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonToolServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonToolServiceStub.java index 3ac543f82b50..688f4bd1d804 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonToolServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonToolServiceStub.java @@ -301,6 +301,7 @@ protected HttpJsonToolServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTool()) .build(); HttpJsonCallSettings retrieveToolSchemaTransportSettings = @@ -313,6 +314,7 @@ protected HttpJsonToolServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTool()) .build(); HttpJsonCallSettings retrieveToolsTransportSettings = @@ -325,6 +327,7 @@ protected HttpJsonToolServiceStub( builder.add("toolset", String.valueOf(request.getToolset())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getToolset()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonWidgetServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonWidgetServiceStub.java index 8cb03b290d29..7399a6f76168 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonWidgetServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonWidgetServiceStub.java @@ -222,6 +222,7 @@ protected HttpJsonWidgetServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java index 77977664393d..5427c3a61d3b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java @@ -337,6 +337,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/ToolServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/ToolServiceStubSettings.java index 047d78e54877..ee8b89d6117d 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/ToolServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/ToolServiceStubSettings.java @@ -336,6 +336,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java new file mode 100644 index 000000000000..eb2d5a0f0829 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.ces.v1beta.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-ces:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/WidgetServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/WidgetServiceStubSettings.java index 06db7631deeb..b7bf22127ed7 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/WidgetServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/WidgetServiceStubSettings.java @@ -316,6 +316,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json index 53250a2f460e..d773618d14ff 100644 --- a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json +++ b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -530,6 +593,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.AgentTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AgentTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.AgentTransfer", "queryAllDeclaredConstructors": true, @@ -2024,6 +2105,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.EndpointControlPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndpointControlPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndpointControlPolicy$EnforcementScope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ErrorHandlingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ErrorHandlingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ErrorHandlingSettings$ErrorHandlingStrategy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds", "queryAllDeclaredConstructors": true, @@ -3869,6 +4004,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.SecuritySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SecuritySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.ServiceAccountAuthConfig", "queryAllDeclaredConstructors": true, @@ -4580,6 +4733,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1.WidgetTool$DataMapping", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WidgetTool$DataMapping$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WidgetTool$DataMapping$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1.WidgetTool$WidgetType", "queryAllDeclaredConstructors": true, diff --git a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json index 0bb95cbaf24e..75b48af12bdc 100644 --- a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json +++ b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java index b82d4910c770..3b092d29458f 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java @@ -211,6 +211,7 @@ public void getAppTest() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -278,6 +279,7 @@ public void getAppTest2() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -345,6 +347,7 @@ public void createAppTest() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -419,6 +422,7 @@ public void createAppTest2() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -493,6 +497,7 @@ public void createAppTest3() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -569,6 +574,7 @@ public void createAppTest4() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -645,6 +651,7 @@ public void updateAppTest() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -674,6 +681,7 @@ public void updateAppTest() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -729,6 +737,7 @@ public void updateAppExceptionTest() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java index 1c2a41b89e6f..fa6df5f5e466 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java @@ -206,6 +206,7 @@ public void getAppTest() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -267,6 +268,7 @@ public void getAppTest2() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -328,6 +330,7 @@ public void createAppTest() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -400,6 +403,7 @@ public void createAppTest2() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -472,6 +476,7 @@ public void createAppTest3() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -547,6 +552,7 @@ public void createAppTest4() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) @@ -622,6 +628,7 @@ public void updateAppTest() throws Exception { .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setErrorHandlingSettings(ErrorHandlingSettings.newBuilder().build()) .setModelSettings(ModelSettings.newBuilder().build()) .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .addAllVariableDeclarations(new ArrayList()) diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionServiceImpl.java index 8da810c2eadf..7a1c4365b236 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionServiceImpl.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionServiceImpl.java @@ -79,6 +79,27 @@ public void runSession( } } + @Override + public void streamRunSession( + RunSessionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RunSessionResponse) { + requests.add(request); + responseObserver.onNext(((RunSessionResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StreamRunSession, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RunSessionResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public StreamObserver bidiRunSession( final StreamObserver responseObserver) { diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientHttpJsonTest.java index b4a76f3a6e33..6391f8115b22 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientHttpJsonTest.java @@ -101,8 +101,10 @@ public void runSessionTest() throws Exception { AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) .setDeployment("deployment1939520197") .setTimeZone("timeZone-2077180903") + .setUseToolFakes(true) .setRemoteDialogflowQueryParameters( SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) + .setEnableTextStreaming(true) .build()) .addAllInputs(new ArrayList()) .build(); @@ -147,8 +149,10 @@ public void runSessionExceptionTest() throws Exception { AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) .setDeployment("deployment1939520197") .setTimeZone("timeZone-2077180903") + .setUseToolFakes(true) .setRemoteDialogflowQueryParameters( SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) + .setEnableTextStreaming(true) .build()) .addAllInputs(new ArrayList()) .build(); @@ -159,6 +163,17 @@ public void runSessionExceptionTest() throws Exception { } } + @Test + public void streamRunSessionTest() throws Exception {} + + @Test + public void streamRunSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } + @Test public void bidiRunSessionUnsupportedMethodTest() throws Exception { // The bidiRunSession() method is not supported in REST transport. diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientTest.java index c88a50de9935..1b48693f4505 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientTest.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ApiStreamObserver; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.StatusCode; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -138,6 +139,54 @@ public void runSessionExceptionTest() throws Exception { } } + @Test + public void streamRunSessionTest() throws Exception { + RunSessionResponse expectedResponse = + RunSessionResponse.newBuilder().addAllOutputs(new ArrayList()).build(); + mockSessionService.addResponse(expectedResponse); + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig(SessionConfig.newBuilder().build()) + .addAllInputs(new ArrayList()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamRunSessionCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamRunSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig(SessionConfig.newBuilder().build()) + .addAllInputs(new ArrayList()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamRunSessionCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void bidiRunSessionTest() throws Exception { BidiSessionServerMessage expectedResponse = BidiSessionServerMessage.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java index 7bb1753da5e2..4dd54b4cde9d 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java @@ -86,7 +86,10 @@ public void tearDown() throws Exception { @Test public void executeToolTest() throws Exception { ExecuteToolResponse expectedResponse = - ExecuteToolResponse.newBuilder().setResponse(Struct.newBuilder().build()).build(); + ExecuteToolResponse.newBuilder() + .setResponse(Struct.newBuilder().build()) + .setVariables(Struct.newBuilder().build()) + .build(); mockService.addResponse(expectedResponse); ExecuteToolRequest request = diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java index df92a8c51e96..b65ac30d8eca 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java @@ -92,7 +92,10 @@ public void tearDown() throws Exception { @Test public void executeToolTest() throws Exception { ExecuteToolResponse expectedResponse = - ExecuteToolResponse.newBuilder().setResponse(Struct.newBuilder().build()).build(); + ExecuteToolResponse.newBuilder() + .setResponse(Struct.newBuilder().build()) + .setVariables(Struct.newBuilder().build()) + .build(); mockToolService.addResponse(expectedResponse); ExecuteToolRequest request = @@ -110,6 +113,8 @@ public void executeToolTest() throws Exception { Assert.assertEquals(request.getTool(), actualRequest.getTool()); Assert.assertEquals(request.getToolsetTool(), actualRequest.getToolsetTool()); + Assert.assertEquals(request.getVariables(), actualRequest.getVariables()); + Assert.assertEquals(request.getContext(), actualRequest.getContext()); Assert.assertEquals(request.getParent(), actualRequest.getParent()); Assert.assertEquals(request.getArgs(), actualRequest.getArgs()); Assert.assertTrue( diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientHttpJsonTest.java index a8e8e747bc32..03b608394bfc 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientHttpJsonTest.java @@ -97,6 +97,7 @@ public void generateChatTokenTest() throws Exception { .setDeployment( DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) .setRecaptchaToken("recaptchaToken1978277202") + .setLiveHandoffEnabled(true) .build(); GenerateChatTokenResponse actualResponse = client.generateChatToken(request); @@ -131,6 +132,7 @@ public void generateChatTokenExceptionTest() throws Exception { .setDeployment( DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) .setRecaptchaToken("recaptchaToken1978277202") + .setLiveHandoffEnabled(true) .build(); client.generateChatToken(request); Assert.fail("No exception raised"); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientTest.java index eab588f7836d..b7083e6c6af8 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientTest.java @@ -103,6 +103,7 @@ public void generateChatTokenTest() throws Exception { .setDeployment( DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) .setRecaptchaToken("recaptchaToken1978277202") + .setLiveHandoffEnabled(true) .build(); GenerateChatTokenResponse actualResponse = client.generateChatToken(request); @@ -115,6 +116,7 @@ public void generateChatTokenTest() throws Exception { Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertEquals(request.getDeployment(), actualRequest.getDeployment()); Assert.assertEquals(request.getRecaptchaToken(), actualRequest.getRecaptchaToken()); + Assert.assertEquals(request.getLiveHandoffEnabled(), actualRequest.getLiveHandoffEnabled()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -133,6 +135,7 @@ public void generateChatTokenExceptionTest() throws Exception { .setDeployment( DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) .setRecaptchaToken("recaptchaToken1978277202") + .setLiveHandoffEnabled(true) .build(); client.generateChatToken(request); Assert.fail("No exception raised"); diff --git a/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceGrpc.java index 25719a3a9315..46e103e6f94f 100644 --- a/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceGrpc.java +++ b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceGrpc.java @@ -73,6 +73,48 @@ private SessionServiceGrpc() {} return getRunSessionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RunSessionRequest, com.google.cloud.ces.v1.RunSessionResponse> + getStreamRunSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamRunSession", + requestType = com.google.cloud.ces.v1.RunSessionRequest.class, + responseType = com.google.cloud.ces.v1.RunSessionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RunSessionRequest, com.google.cloud.ces.v1.RunSessionResponse> + getStreamRunSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RunSessionRequest, com.google.cloud.ces.v1.RunSessionResponse> + getStreamRunSessionMethod; + if ((getStreamRunSessionMethod = SessionServiceGrpc.getStreamRunSessionMethod) == null) { + synchronized (SessionServiceGrpc.class) { + if ((getStreamRunSessionMethod = SessionServiceGrpc.getStreamRunSessionMethod) == null) { + SessionServiceGrpc.getStreamRunSessionMethod = + getStreamRunSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamRunSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RunSessionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RunSessionResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier("StreamRunSession")) + .build(); + } + } + } + return getStreamRunSessionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.ces.v1.BidiSessionClientMessage, com.google.cloud.ces.v1.BidiSessionServerMessage> @@ -187,8 +229,7 @@ public interface AsyncService { * * *

            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ default void runSession( @@ -197,6 +238,27 @@ default void runSession( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunSessionMethod(), responseObserver); } + /** + * + * + *
            +     * Initiates a single-turn interaction with the CES agent. Uses server-side
            +     * streaming to deliver incremental results and partial responses as they are
            +     * generated.
            +     * By default, complete responses (e.g., messages from callbacks or full LLM
            +     * responses) are sent to the client as soon as they are available. To enable
            +     * streaming individual text chunks directly from the model, set
            +     * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming]
            +     * to true.
            +     * 
            + */ + default void streamRunSession( + com.google.cloud.ces.v1.RunSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamRunSessionMethod(), responseObserver); + } + /** * * @@ -303,8 +365,7 @@ protected SessionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ public void runSession( @@ -314,6 +375,29 @@ public void runSession( getChannel().newCall(getRunSessionMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
            +     * Initiates a single-turn interaction with the CES agent. Uses server-side
            +     * streaming to deliver incremental results and partial responses as they are
            +     * generated.
            +     * By default, complete responses (e.g., messages from callbacks or full LLM
            +     * responses) are sent to the client as soon as they are available. To enable
            +     * streaming individual text chunks directly from the model, set
            +     * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming]
            +     * to true.
            +     * 
            + */ + public void streamRunSession( + com.google.cloud.ces.v1.RunSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamRunSessionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -405,8 +489,7 @@ protected SessionServiceBlockingV2Stub build( * * *
            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ public com.google.cloud.ces.v1.RunSessionResponse runSession( @@ -415,6 +498,27 @@ public com.google.cloud.ces.v1.RunSessionResponse runSession( getChannel(), getRunSessionMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Initiates a single-turn interaction with the CES agent. Uses server-side
            +     * streaming to deliver incremental results and partial responses as they are
            +     * generated.
            +     * By default, complete responses (e.g., messages from callbacks or full LLM
            +     * responses) are sent to the client as soon as they are available. To enable
            +     * streaming individual text chunks directly from the model, set
            +     * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming]
            +     * to true.
            +     * 
            + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall + streamRunSession(com.google.cloud.ces.v1.RunSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamRunSessionMethod(), getCallOptions(), request); + } + /** * * @@ -507,8 +611,7 @@ protected SessionServiceBlockingStub build( * * *
            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ public com.google.cloud.ces.v1.RunSessionResponse runSession( @@ -516,6 +619,26 @@ public com.google.cloud.ces.v1.RunSessionResponse runSession( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRunSessionMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Initiates a single-turn interaction with the CES agent. Uses server-side
            +     * streaming to deliver incremental results and partial responses as they are
            +     * generated.
            +     * By default, complete responses (e.g., messages from callbacks or full LLM
            +     * responses) are sent to the client as soon as they are available. To enable
            +     * streaming individual text chunks directly from the model, set
            +     * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming]
            +     * to true.
            +     * 
            + */ + public java.util.Iterator streamRunSession( + com.google.cloud.ces.v1.RunSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamRunSessionMethod(), getCallOptions(), request); + } } /** @@ -541,8 +664,7 @@ protected SessionServiceFutureStub build( * * *
            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture< @@ -554,7 +676,8 @@ protected SessionServiceFutureStub build( } private static final int METHODID_RUN_SESSION = 0; - private static final int METHODID_BIDI_RUN_SESSION = 1; + private static final int METHODID_STREAM_RUN_SESSION = 1; + private static final int METHODID_BIDI_RUN_SESSION = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -579,6 +702,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_STREAM_RUN_SESSION: + serviceImpl.streamRunSession( + (com.google.cloud.ces.v1.RunSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -608,6 +737,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.ces.v1.RunSessionRequest, com.google.cloud.ces.v1.RunSessionResponse>(service, METHODID_RUN_SESSION))) + .addMethod( + getStreamRunSessionMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.ces.v1.RunSessionRequest, + com.google.cloud.ces.v1.RunSessionResponse>( + service, METHODID_STREAM_RUN_SESSION))) .addMethod( getBidiRunSessionMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( @@ -667,6 +803,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SessionServiceFileDescriptorSupplier()) .addMethod(getRunSessionMethod()) + .addMethod(getStreamRunSessionMethod()) .addMethod(getBidiRunSessionMethod()) .build(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java index a77500b2fd27..4cbdf6239c9c 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java @@ -345,13 +345,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020DeleteAppRequest\022,\n" + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022\021\n" - + "\004etag\030\002 \001(\tB\003\340A\001\"\351\001\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"\245\002\n" + "\020ExportAppRequest\022,\n" + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022N\n\r" + "export_format\030\002 \001(\01622.google.c" + "loud.ces.v1.ExportAppRequest.ExportFormatB\003\340A\002\022\024\n" - + "\007gcs_uri\030\003 \001(\tB\003\340A\001\"A\n" + + "\007gcs_uri\030\003 \001(\tB\003\340A\001\022:\n" + + "\013app_version\030\004 \001(\tB%\340A\001\372A\037\n" + + "\035ces.googleapis.com/AppVersion\"A\n" + "\014ExportFormat\022\035\n" + "\031EXPORT_FORMAT_UNSPECIFIED\020\000\022\010\n" + "\004JSON\020\001\022\010\n" @@ -367,13 +369,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\036\340A\002\372A\030\022\026ces.googleapis.com/App\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\001\022\023\n" + "\006app_id\030\003 \001(\tB\003\340A\001\022P\n" - + "\016import_options\030\006 \001(\01323.google.cl" - + "oud.ces.v1.ImportAppRequest.ImportOptionsB\003\340A\001\022\034\n" - + "\017ignore_app_lock\030\007 \001(\010B\003\340A\001\032\362\001\n" - + "\r" + + "\016import_options\030\006" + + " \001(\01323.google.cloud.ces.v1.ImportAppRequest.ImportOptionsB\003\340A\001\022\034\n" + + "\017ignore_app_lock\030\007 \001(\010B\003\340A\001\032\362\001\n\r" + "ImportOptions\022y\n" - + "\034conflict_resolution_strategy\030\001 \001(\0162N.google.cloud.ces.v1.Impor" - + "tAppRequest.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"f\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162N.googl" + + "e.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"f\n" + "\032ConflictResolutionStrategy\022,\n" + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007REPLACE\020\001\022\r\n" @@ -429,8 +430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032ces.googleapis.com/Example\"\227\001\n" + "\024CreateExampleRequest\0222\n" + "\006parent\030\001 \001(" - + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Example\022\027\n" - + "\n" + + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Example\022\027\n\n" + "example_id\030\002 \001(\tB\003\340A\001\0222\n" + "\007example\030\003" + " \001(\0132\034.google.cloud.ces.v1.ExampleB\003\340A\002\"\200\001\n" @@ -473,18 +473,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022=\n" - + "\006source\030\005 \001(\0162(.goog" - + "le.cloud.ces.v1.Conversation.SourceB\003\340A\001\022>\n" - + "\007sources\030\006" - + " \003(\0162(.google.cloud.ces.v1.Conversation.SourceB\003\340A\001\"n\n" + + "\006source\030\005" + + " \001(\0162(.google.cloud.ces.v1.Conversation.SourceB\003\340A\001\022>\n" + + "\007sources\030\006 \003(\0162(." + + "google.cloud.ces.v1.Conversation.SourceB\003\340A\001\"n\n" + "\031ListConversationsResponse\0228\n\r" + "conversations\030\001 \003(\0132!.google.cloud.ces.v1.Conversation\022\027\n" + "\017next_page_token\030\002 \001(\t\"\220\001\n" + "\026GetConversationRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022?\n" - + "\006source\030\002 \001(\0162(.goo" - + "gle.cloud.ces.v1.Conversation.SourceB\005\030\001\340A\001\"\223\001\n" + + "\006source\030\002" + + " \001(\0162(.google.cloud.ces.v1.Conversation.SourceB\005\030\001\340A\001\"\223\001\n" + "\031DeleteConversationRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022?\n" @@ -619,194 +619,195 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034ces.googleapis.com/Changelog2\376C\n" + "\014AgentService\022\222\001\n" - + "\010ListApps\022$.google.cloud.ces.v1.ListAppsRequ" - + "est\032%.google.cloud.ces.v1.ListAppsRespon" - + "se\"9\332A\006parent\202\323\344\223\002*\022(/v1/{parent=projects/*/locations/*}/apps\022\177\n" - + "\006GetApp\022\".google.cloud.ces.v1.GetAppRequest\032\030.google.clo" - + "ud.ces.v1.App\"7\332A\004name\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*/apps/*}\022\304\001\n" - + "\tCreat" - + "eApp\022%.google.cloud.ces.v1.CreateAppRequest\032\035.google.longrunning.Operation\"q\312A\030\n" + + "\010ListApps\022$.google.cloud.ces.v1.ListAppsRequest\032%.google.cloud.c" + + "es.v1.ListAppsResponse\"9\332A\006parent\202\323\344\223\002*\022" + + "(/v1/{parent=projects/*/locations/*}/apps\022\177\n" + + "\006GetApp\022\".google.cloud.ces.v1.GetApp" + + "Request\032\030.google.cloud.ces.v1.App\"7\332A\004na" + + "me\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*/apps/*}\022\304\001\n" + + "\tCreateApp\022%.google.cloud." + + "ces.v1.CreateAppRequest\032\035.google.longrunning.Operation\"q\312A\030\n" + "\003App\022\021OperationMetadata\332A\021parent,app,app_id\332A\n" - + "parent,app\202\323\344\223\002/\"(/v1/{parent=projects/*/locations/*}/apps:\003app\022\231\001\n" - + "\tUpdateApp\022%.google.cloud.ces.v1.UpdateAppReque" - + "st\032\030.google.cloud.ces.v1.App\"K\332A\017app,upd" - + "ate_mask\202\323\344\223\00232,/v1/{app.name=projects/*/locations/*/apps/*}:\003app\022\267\001\n" - + "\tDeleteApp\022" - + "%.google.cloud.ces.v1.DeleteAppRequest\032\035.google.longrunning.Operation\"d\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004n" - + "ame\202\323\344\223\002**(/v1/{name=projects/*/locations/*/apps/*}\022\300\001\n" - + "\tExportApp\022%.google.cloud" - + ".ces.v1.ExportAppRequest\032\035.google.longrunning.Operation\"m\312A&\n" - + "\021ExportAppResponse\022" - + "\021OperationMetadata\332A\004name\202\323\344\223\0027\"2/v1/{na" - + "me=projects/*/locations/*/apps/*}:exportApp:\001*\022\327\001\n" - + "\tImportApp\022%.google.cloud.ces." - + "v1.ImportAppRequest\032\035.google.longrunning.Operation\"\203\001\312A&\n" - + "\021ImportAppResponse\022\021OperationMetadata\332A\032parent,display_name,app" - + "_id\202\323\344\223\0027\"2/v1/{parent=projects/*/locations/*}/apps:importApp:\001*\022\241\001\n\n" - + "ListAgents\022&.google.cloud.ces.v1.ListAgentsRequest\032" - + "\'.google.cloud.ces.v1.ListAgentsResponse" - + "\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*/apps/*}/agents\022\216\001\n" - + "\010GetAgent\022$.google.cloud.ces.v1.GetAgentRequest\032" - + "\032.google.cloud.ces.v1.Agent\"@\332A\004name\202\323\344\223" - + "\0023\0221/v1/{name=projects/*/locations/*/apps/*/agents/*}\022\273\001\n" - + "\013CreateAgent\022\'.google.cloud.ces.v1.CreateAgentRequest\032\032.google." - + "cloud.ces.v1.Agent\"g\332A\025parent,agent,agen" - + "t_id\332A\014parent,agent\202\323\344\223\002:\"1/v1/{parent=p" - + "rojects/*/locations/*/apps/*}/agents:\005agent\022\256\001\n" - + "\013UpdateAgent\022\'.google.cloud.ces.v1.UpdateAgentRequest\032\032.google.cloud.ces." - + "v1.Agent\"Z\332A\021agent,update_mask\202\323\344\223\002@27/v" - + "1/{agent.name=projects/*/locations/*/apps/*/agents/*}:\005agent\022\220\001\n" - + "\013DeleteAgent\022\'.google.cloud.ces.v1.DeleteAgentRequest\032\026." - + "google.protobuf.Empty\"@\332A\004name\202\323\344\223\0023*1/v" - + "1/{name=projects/*/locations/*/apps/*/agents/*}\022\251\001\n" - + "\014ListExamples\022(.google.cloud.ces.v1.ListExamplesRequest\032).google.clou" - + "d.ces.v1.ListExamplesResponse\"D\332A\006parent" - + "\202\323\344\223\0025\0223/v1/{parent=projects/*/locations/*/apps/*}/examples\022\226\001\n\n" - + "GetExample\022&.google.cloud.ces.v1.GetExampleRequest\032\034.goo" - + "gle.cloud.ces.v1.Example\"B\332A\004name\202\323\344\223\0025\022" - + "3/v1/{name=projects/*/locations/*/apps/*/examples/*}\022\313\001\n\r" - + "CreateExample\022).google.cloud.ces.v1.CreateExampleRequest\032\034.goog" - + "le.cloud.ces.v1.Example\"q\332A\031parent,examp" - + "le,example_id\332A\016parent,example\202\323\344\223\002>\"3/v" - + "1/{parent=projects/*/locations/*/apps/*}/examples:\007example\022\274\001\n\r" - + "UpdateExample\022).google.cloud.ces.v1.UpdateExampleRequest\032" - + "\034.google.cloud.ces.v1.Example\"b\332A\023exampl" - + "e,update_mask\202\323\344\223\002F2;/v1/{example.name=p" - + "rojects/*/locations/*/apps/*/examples/*}:\007example\022\226\001\n\r" - + "DeleteExample\022).google.cloud.ces.v1.DeleteExampleRequest\032\026.google." - + "protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{name" - + "=projects/*/locations/*/apps/*/examples/*}\022\235\001\n" - + "\tListTools\022%.google.cloud.ces.v1.ListToolsRequest\032&.google.cloud.ces.v1.Li" - + "stToolsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{p" - + "arent=projects/*/locations/*/apps/*}/tools\022\212\001\n" - + "\007GetTool\022#.google.cloud.ces.v1.Get" - + "ToolRequest\032\031.google.cloud.ces.v1.Tool\"?" - + "\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/apps/*/tools/*}\022\275\001\n" - + "\021ListConversations\022-.google.cloud.ces.v1.ListConversa" - + "tionsRequest\032..google.cloud.ces.v1.ListC" - + "onversationsResponse\"I\332A\006parent\202\323\344\223\002:\0228/" - + "v1/{parent=projects/*/locations/*/apps/*}/conversations\022\252\001\n" - + "\017GetConversation\022+.google.cloud.ces.v1.GetConversationRequest" - + "\032!.google.cloud.ces.v1.Conversation\"G\332A\004" - + "name\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/apps/*/conversations/*}\022\245\001\n" - + "\022DeleteConversation\022..google.cloud.ces.v1.Delete" - + "ConversationRequest\032\026.google.protobuf.Em" - + "pty\"G\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*/locations/*/apps/*/conversations/*}\022\202\002\n" - + "\030BatchDeleteConversations\0224.google.cloud" - + ".ces.v1.BatchDeleteConversationsRequest\032\035.google.longrunning.Operation\"\220\001\312A5\n" - + " BatchDeleteConversationsResponse\022\021Operatio" - + "nMetadata\332A\006parent\202\323\344\223\002I\"D/v1/{parent=pr" - + "ojects/*/locations/*/apps/*}/conversations:batchDelete:\001*\022\263\001\n\n" - + "CreateTool\022&.google.cloud.ces.v1.CreateToolRequest\032\031.googl" - + "e.cloud.ces.v1.Tool\"b\332A\023parent,tool,tool" - + "_id\332A\013parent,tool\202\323\344\223\0028\"0/v1/{parent=pro" - + "jects/*/locations/*/apps/*}/tools:\004tool\022\247\001\n\n" - + "UpdateTool\022&.google.cloud.ces.v1.UpdateToolRequest\032\031.google.cloud.ces.v1.Too" - + "l\"V\332A\020tool,update_mask\202\323\344\223\002=25/v1/{tool." - + "name=projects/*/locations/*/apps/*/tools/*}:\004tool\022\215\001\n\n" - + "DeleteTool\022&.google.cloud.ces.v1.DeleteToolRequest\032\026.google.protob" - + "uf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/apps/*/tools/*}\022\261\001\n" - + "\016ListGuardrails\022*.google.cloud.ces.v1.ListG" - + "uardrailsRequest\032+.google.cloud.ces.v1.L" - + "istGuardrailsResponse\"F\332A\006parent\202\323\344\223\0027\0225" - + "/v1/{parent=projects/*/locations/*/apps/*}/guardrails\022\236\001\n" - + "\014GetGuardrail\022(.google.cloud.ces.v1.GetGuardrailRequest\032\036.googl" - + "e.cloud.ces.v1.Guardrail\"D\332A\004name\202\323\344\223\0027\022" - + "5/v1/{name=projects/*/locations/*/apps/*/guardrails/*}\022\333\001\n" - + "\017CreateGuardrail\022+.google.cloud.ces.v1.CreateGuardrailRequest\032" - + "\036.google.cloud.ces.v1.Guardrail\"{\332A\035pare" - + "nt,guardrail,guardrail_id\332A\020parent,guard" - + "rail\202\323\344\223\002B\"5/v1/{parent=projects/*/locations/*/apps/*}/guardrails:" - + "\tguardrail\022\312\001\n" - + "\017UpdateGuardrail\022+.google.cloud.ces.v1.U" - + "pdateGuardrailRequest\032\036.google.cloud.ces" - + ".v1.Guardrail\"j\332A\025guardrail,update_mask\202" - + "\323\344\223\002L2?/v1/{guardrail.name=projects/*/locations/*/apps/*/guardrails/*}:" - + "\tguardrail\022\234\001\n" - + "\017DeleteGuardrail\022+.google.cloud.ces" - + ".v1.DeleteGuardrailRequest\032\026.google.prot" - + "obuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1/{name=pro" - + "jects/*/locations/*/apps/*/guardrails/*}\022\265\001\n" - + "\017ListDeployments\022+.google.cloud.ces.v1.ListDeploymentsRequest\032,.google.cloud" - + ".ces.v1.ListDeploymentsResponse\"G\332A\006pare" - + "nt\202\323\344\223\0028\0226/v1/{parent=projects/*/locations/*/apps/*}/deployments\022\242\001\n\r" - + "GetDeployment\022).google.cloud.ces.v1.GetDeploymentRe" - + "quest\032\037.google.cloud.ces.v1.Deployment\"E" - + "\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/locations/*/apps/*/deployments/*}\022\344\001\n" - + "\020CreateDeployment\022,.google.cloud.ces.v1.CreateD" - + "eploymentRequest\032\037.google.cloud.ces.v1.D" - + "eployment\"\200\001\332A\037parent,deployment,deploym" - + "ent_id\332A\021parent,deployment\202\323\344\223\002D\"6/v1/{p" - + "arent=projects/*/locations/*/apps/*}/deployments:\n" + + "parent,app\202\323\344\223" + + "\002/\"(/v1/{parent=projects/*/locations/*}/apps:\003app\022\231\001\n" + + "\tUpdateApp\022%.google.cloud.ces.v1.UpdateAppRequest\032\030.google.cloud.ce" + + "s.v1.App\"K\332A\017app,update_mask\202\323\344\223\00232,/v1/" + + "{app.name=projects/*/locations/*/apps/*}:\003app\022\267\001\n" + + "\tDeleteApp\022%.google.cloud.ces.v" + + "1.DeleteAppRequest\032\035.google.longrunning.Operation\"d\312A*\n" + + "\025google.protobuf.Empty\022\021O" + + "perationMetadata\332A\004name\202\323\344\223\002**(/v1/{name=projects/*/locations/*/apps/*}\022\300\001\n" + + "\tExportApp\022%.google.cloud.ces.v1.ExportAppReq" + + "uest\032\035.google.longrunning.Operation\"m\312A&\n" + + "\021ExportAppResponse\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\0027\"2/v1/{name=projects/*/locations/*/apps/*}:exportApp:\001*\022\327\001\n" + + "\tImportApp" + + "\022%.google.cloud.ces.v1.ImportAppRequest\032\035.google.longrunning.Operation\"\203\001\312A&\n" + + "\021ImportAppResponse\022\021OperationMetadata\332A\032par" + + "ent,display_name,app_id\202\323\344\223\0027\"2/v1/{pare" + + "nt=projects/*/locations/*}/apps:importApp:\001*\022\241\001\n\n" + + "ListAgents\022&.google.cloud.ces.v1.ListAgentsRequest\032\'.google.cloud.ces.v" + + "1.ListAgentsResponse\"B\332A\006parent\202\323\344\223\0023\0221/" + + "v1/{parent=projects/*/locations/*/apps/*}/agents\022\216\001\n" + + "\010GetAgent\022$.google.cloud.ces.v1.GetAgentRequest\032\032.google.cloud.ces.v" + + "1.Agent\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=projects/*/locations/*/apps/*/agents/*}\022\273\001\n" + + "\013CreateAgent\022\'.google.cloud.ces.v1.CreateAg" + + "entRequest\032\032.google.cloud.ces.v1.Agent\"g" + + "\332A\025parent,agent,agent_id\332A\014parent,agent\202" + + "\323\344\223\002:\"1/v1/{parent=projects/*/locations/*/apps/*}/agents:\005agent\022\256\001\n" + + "\013UpdateAgent\022\'.google.cloud.ces.v1.UpdateAgentRequest" + + "\032\032.google.cloud.ces.v1.Agent\"Z\332A\021agent,u" + + "pdate_mask\202\323\344\223\002@27/v1/{agent.name=projec" + + "ts/*/locations/*/apps/*/agents/*}:\005agent\022\220\001\n" + + "\013DeleteAgent\022\'.google.cloud.ces.v1.D" + + "eleteAgentRequest\032\026.google.protobuf.Empt" + + "y\"@\332A\004name\202\323\344\223\0023*1/v1/{name=projects/*/locations/*/apps/*/agents/*}\022\251\001\n" + + "\014ListExamples\022(.google.cloud.ces.v1.ListExamplesR" + + "equest\032).google.cloud.ces.v1.ListExample" + + "sResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{parent=" + + "projects/*/locations/*/apps/*}/examples\022\226\001\n\n" + + "GetExample\022&.google.cloud.ces.v1.GetExampleRequest\032\034.google.cloud.ces.v1.Exa" + + "mple\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locations/*/apps/*/examples/*}\022\313\001\n\r" + + "CreateExample\022).google.cloud.ces.v1.CreateE" + + "xampleRequest\032\034.google.cloud.ces.v1.Exam" + + "ple\"q\332A\031parent,example,example_id\332A\016pare" + + "nt,example\202\323\344\223\002>\"3/v1/{parent=projects/*" + + "/locations/*/apps/*}/examples:\007example\022\274\001\n\r" + + "UpdateExample\022).google.cloud.ces.v1.UpdateExampleRequest\032\034.google.cloud.ces.v" + + "1.Example\"b\332A\023example,update_mask\202\323\344\223\002F2" + + ";/v1/{example.name=projects/*/locations/*/apps/*/examples/*}:\007example\022\226\001\n\r" + + "DeleteExample\022).google.cloud.ces.v1.DeleteExam" + + "pleRequest\032\026.google.protobuf.Empty\"B\332A\004n" + + "ame\202\323\344\223\0025*3/v1/{name=projects/*/locations/*/apps/*/examples/*}\022\235\001\n" + + "\tListTools\022%.google.cloud.ces.v1.ListToolsRequest\032&.go" + + "ogle.cloud.ces.v1.ListToolsResponse\"A\332A\006" + + "parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*/apps/*}/tools\022\212\001\n" + + "\007GetTool\022#.google.cloud.ces.v1.GetToolRequest\032\031.google" + + ".cloud.ces.v1.Tool\"?\332A\004name\202\323\344\223\0022\0220/v1/{" + + "name=projects/*/locations/*/apps/*/tools/*}\022\275\001\n" + + "\021ListConversations\022-.google.cloud.ces.v1.ListConversationsRequest\032..googl" + + "e.cloud.ces.v1.ListConversationsResponse" + + "\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=projects/*/locations/*/apps/*}/conversations\022\252\001\n" + + "\017GetConversation\022+.google.cloud.ces.v1.Ge" + + "tConversationRequest\032!.google.cloud.ces." + + "v1.Conversation\"G\332A\004name\202\323\344\223\002:\0228/v1/{nam" + + "e=projects/*/locations/*/apps/*/conversations/*}\022\245\001\n" + + "\022DeleteConversation\022..google.cloud.ces.v1.DeleteConversationRequest\032" + + "\026.google.protobuf.Empty\"G\332A\004name\202\323\344\223\002:*8" + + "/v1/{name=projects/*/locations/*/apps/*/conversations/*}\022\202\002\n" + + "\030BatchDeleteConversations\0224.google.cloud.ces.v1.BatchDeleteC" + + "onversationsRequest\032\035.google.longrunning.Operation\"\220\001\312A5\n" + + " BatchDeleteConversationsResponse\022\021OperationMetadata\332A\006parent\202\323" + + "\344\223\002I\"D/v1/{parent=projects/*/locations/*" + + "/apps/*}/conversations:batchDelete:\001*\022\263\001\n\n" + + "CreateTool\022&.google.cloud.ces.v1.Creat" + + "eToolRequest\032\031.google.cloud.ces.v1.Tool\"" + + "b\332A\023parent,tool,tool_id\332A\013parent,tool\202\323\344" + + "\223\0028\"0/v1/{parent=projects/*/locations/*/apps/*}/tools:\004tool\022\247\001\n\n" + + "UpdateTool\022&.google.cloud.ces.v1.UpdateToolRequest\032\031.goo" + + "gle.cloud.ces.v1.Tool\"V\332A\020tool,update_ma" + + "sk\202\323\344\223\002=25/v1/{tool.name=projects/*/locations/*/apps/*/tools/*}:\004tool\022\215\001\n\n" + + "DeleteTool\022&.google.cloud.ces.v1.DeleteToolReq" + + "uest\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344" + + "\223\0022*0/v1/{name=projects/*/locations/*/apps/*/tools/*}\022\261\001\n" + + "\016ListGuardrails\022*.google.cloud.ces.v1.ListGuardrailsRequest\032+.g" + + "oogle.cloud.ces.v1.ListGuardrailsRespons" + + "e\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/*/locations/*/apps/*}/guardrails\022\236\001\n" + + "\014GetGuardrail\022(.google.cloud.ces.v1.GetGuar" + + "drailRequest\032\036.google.cloud.ces.v1.Guard" + + "rail\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/apps/*/guardrails/*}\022\333\001\n" + + "\017CreateGuardrail\022+.google.cloud.ces.v1.Cre" + + "ateGuardrailRequest\032\036.google.cloud.ces.v" + + "1.Guardrail\"{\332A\035parent,guardrail,guardra" + + "il_id\332A\020parent,guardrail\202\323\344\223\002B\"5/v1/{par" + + "ent=projects/*/locations/*/apps/*}/guardrails:\tguardrail\022\312\001\n" + + "\017UpdateGuardrail\022+.google.cloud.ces.v1.UpdateGuardrailReques" + + "t\032\036.google.cloud.ces.v1.Guardrail\"j\332A\025gu" + + "ardrail,update_mask\202\323\344\223\002L2?/v1/{guardrai" + + "l.name=projects/*/locations/*/apps/*/guardrails/*}:\tguardrail\022\234\001\n" + + "\017DeleteGuardrail\022+.google.cloud.ces.v1.DeleteGuardrailR" + + "equest\032\026.google.protobuf.Empty\"D\332A\004name\202" + + "\323\344\223\0027*5/v1/{name=projects/*/locations/*/apps/*/guardrails/*}\022\265\001\n" + + "\017ListDeployments\022+.google.cloud.ces.v1.ListDeploymentsRe" + + "quest\032,.google.cloud.ces.v1.ListDeployme" + + "ntsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{paren" + + "t=projects/*/locations/*/apps/*}/deployments\022\242\001\n\r" + + "GetDeployment\022).google.cloud.ces.v1.GetDeploymentRequest\032\037.google.cloud" + + ".ces.v1.Deployment\"E\332A\004name\202\323\344\223\0028\0226/v1/{" + + "name=projects/*/locations/*/apps/*/deployments/*}\022\344\001\n" + + "\020CreateDeployment\022,.google.cloud.ces.v1.CreateDeploymentRequest\032\037.g" + + "oogle.cloud.ces.v1.Deployment\"\200\001\332A\037paren" + + "t,deployment,deployment_id\332A\021parent,depl" + + "oyment\202\323\344\223\002D\"6/v1/{parent=projects/*/locations/*/apps/*}/deployments:\n" + "deployment\022\321\001\n" - + "\020UpdateDeployment\022,.google.cloud.ces.v1.UpdateDeployment" - + "Request\032\037.google.cloud.ces.v1.Deployment" - + "\"n\332A\026deployment,update_mask\202\323\344\223\002O2A/v1/{" - + "deployment.name=projects/*/locations/*/apps/*/deployments/*}:\n" + + "\020UpdateDeployment\022,.google.cloud.ces" + + ".v1.UpdateDeploymentRequest\032\037.google.clo" + + "ud.ces.v1.Deployment\"n\332A\026deployment,upda" + + "te_mask\202\323\344\223\002O2A/v1/{deployment.name=proj" + + "ects/*/locations/*/apps/*/deployments/*}:\n" + "deployment\022\237\001\n" - + "\020DeleteDeployment\022,.google.cloud.ces.v1.Dele" - + "teDeploymentRequest\032\026.google.protobuf.Em" - + "pty\"E\332A\004name\202\323\344\223\0028*6/v1/{name=projects/*/locations/*/apps/*/deployments/*}\022\251\001\n" - + "\014ListToolsets\022(.google.cloud.ces.v1.ListTo" - + "olsetsRequest\032).google.cloud.ces.v1.List" - + "ToolsetsResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{" - + "parent=projects/*/locations/*/apps/*}/toolsets\022\226\001\n\n" - + "GetToolset\022&.google.cloud.ces.v1.GetToolsetRequest\032\034.google.cloud.ces" - + ".v1.Toolset\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=pr" - + "ojects/*/locations/*/apps/*/toolsets/*}\022\313\001\n\r" - + "CreateToolset\022).google.cloud.ces.v1.CreateToolsetRequest\032\034.google.cloud.ces." - + "v1.Toolset\"q\332A\031parent,toolset,toolset_id" - + "\332A\016parent,toolset\202\323\344\223\002>\"3/v1/{parent=pro" - + "jects/*/locations/*/apps/*}/toolsets:\007toolset\022\274\001\n\r" - + "UpdateToolset\022).google.cloud.ces.v1.UpdateToolsetRequest\032\034.google.clou" - + "d.ces.v1.Toolset\"b\332A\023toolset,update_mask" - + "\202\323\344\223\002F2;/v1/{toolset.name=projects/*/locations/*/apps/*/toolsets/*}:\007toolset\022\226\001\n", - "\rDeleteToolset\022).google.cloud.ces.v1.Del" - + "eteToolsetRequest\032\026.google.protobuf.Empt" - + "y\"B\332A\004name\202\323\344\223\0025*3/v1/{name=projects/*/l" - + "ocations/*/apps/*/toolsets/*}\022\262\001\n\017ListAp" - + "pVersions\022+.google.cloud.ces.v1.ListAppV" - + "ersionsRequest\032,.google.cloud.ces.v1.Lis" - + "tAppVersionsResponse\"D\332A\006parent\202\323\344\223\0025\0223/" - + "v1/{parent=projects/*/locations/*/apps/*" - + "}/versions\022\237\001\n\rGetAppVersion\022).google.cl" - + "oud.ces.v1.GetAppVersionRequest\032\037.google" - + ".cloud.ces.v1.AppVersion\"B\332A\004name\202\323\344\223\0025\022" - + "3/v1/{name=projects/*/locations/*/apps/*" - + "/versions/*}\022\345\001\n\020CreateAppVersion\022,.goog" - + "le.cloud.ces.v1.CreateAppVersionRequest\032" - + "\037.google.cloud.ces.v1.AppVersion\"\201\001\332A!pa" - + "rent,app_version,app_version_id\332A\022parent" - + ",app_version\202\323\344\223\002B\"3/v1/{parent=projects" - + "/*/locations/*/apps/*}/versions:\013app_ver" - + "sion\022\234\001\n\020DeleteAppVersion\022,.google.cloud" - + ".ces.v1.DeleteAppVersionRequest\032\026.google" - + ".protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{nam" - + "e=projects/*/locations/*/apps/*/versions" - + "/*}\022\341\001\n\021RestoreAppVersion\022-.google.cloud" - + ".ces.v1.RestoreAppVersionRequest\032\035.googl" - + "e.longrunning.Operation\"~\312A.\n\031RestoreApp" - + "VersionResponse\022\021OperationMetadata\332A\004nam" - + "e\202\323\344\223\002@\";/v1/{name=projects/*/locations/" - + "*/apps/*/versions/*}:restore:\001*\022\261\001\n\016List" - + "Changelogs\022*.google.cloud.ces.v1.ListCha" - + "ngelogsRequest\032+.google.cloud.ces.v1.Lis" - + "tChangelogsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v" - + "1/{parent=projects/*/locations/*/apps/*}" - + "/changelogs\022\236\001\n\014GetChangelog\022(.google.cl" - + "oud.ces.v1.GetChangelogRequest\032\036.google." - + "cloud.ces.v1.Changelog\"D\332A\004name\202\323\344\223\0027\0225/" - + "v1/{name=projects/*/locations/*/apps/*/c" - + "hangelogs/*}\032j\312A\022ces.googleapis.com\322ARht" - + "tps://www.googleapis.com/auth/ces,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\306\001\n\027com.google.cloud.ces.v1B\021AgentServi" - + "ceProtoP\001Z)cloud.google.com/go/ces/apiv1" - + "/cespb;cespb\352Aj\n,contactcenterinsights.g" - + "oogleapis.com/Dataset\022:projects/{project" - + "}/locations/{location}/datasets/{dataset" - + "}b\006proto3" + + "\020DeleteDeployment\022,.google.cloud.ces.v1.DeleteDeploymentRequest\032" + + "\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6" + + "/v1/{name=projects/*/locations/*/apps/*/deployments/*}\022\251\001\n" + + "\014ListToolsets\022(.google.cloud.ces.v1.ListToolsetsRequest\032).goog" + + "le.cloud.ces.v1.ListToolsetsResponse\"D\332A" + + "\006parent\202\323\344\223\0025\0223/v1/{parent=projects/*/locations/*/apps/*}/toolsets\022\226\001\n\n" + + "GetToolset\022&.google.cloud.ces.v1.GetToolsetReques" + + "t\032\034.google.cloud.ces.v1.Toolset\"B\332A\004name" + + "\202\323\344\223\0025\0223/v1/{name=projects/*/locations/*/apps/*/toolsets/*}\022\313\001\n\r" + + "CreateToolset\022).google.cloud.ces.v1.CreateToolsetRequest" + + "\032\034.google.cloud.ces.v1.Toolset\"q\332A\031paren" + + "t,toolset,toolset_id\332A\016parent,toolset\202\323\344" + + "\223\002>\"3/v1/{parent=projects/*/locations/*/apps/*}/toolsets:\007toolset\022\274\001\n\r" + + "UpdateToolset\022).google.cloud.ces.v1.UpdateToolsetR" + + "equest\032\034.google.cloud.ces.v1.Toolset\"b\332A" + + "\023toolset,update_mask\202\323\344\223\002F2;/v1/{toolset", + ".name=projects/*/locations/*/apps/*/tool" + + "sets/*}:\007toolset\022\226\001\n\rDeleteToolset\022).goo" + + "gle.cloud.ces.v1.DeleteToolsetRequest\032\026." + + "google.protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v" + + "1/{name=projects/*/locations/*/apps/*/to" + + "olsets/*}\022\262\001\n\017ListAppVersions\022+.google.c" + + "loud.ces.v1.ListAppVersionsRequest\032,.goo" + + "gle.cloud.ces.v1.ListAppVersionsResponse" + + "\"D\332A\006parent\202\323\344\223\0025\0223/v1/{parent=projects/" + + "*/locations/*/apps/*}/versions\022\237\001\n\rGetAp" + + "pVersion\022).google.cloud.ces.v1.GetAppVer" + + "sionRequest\032\037.google.cloud.ces.v1.AppVer" + + "sion\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=projects/" + + "*/locations/*/apps/*/versions/*}\022\345\001\n\020Cre" + + "ateAppVersion\022,.google.cloud.ces.v1.Crea" + + "teAppVersionRequest\032\037.google.cloud.ces.v" + + "1.AppVersion\"\201\001\332A!parent,app_version,app" + + "_version_id\332A\022parent,app_version\202\323\344\223\002B\"3" + + "/v1/{parent=projects/*/locations/*/apps/" + + "*}/versions:\013app_version\022\234\001\n\020DeleteAppVe" + + "rsion\022,.google.cloud.ces.v1.DeleteAppVer" + + "sionRequest\032\026.google.protobuf.Empty\"B\332A\004" + + "name\202\323\344\223\0025*3/v1/{name=projects/*/locatio" + + "ns/*/apps/*/versions/*}\022\341\001\n\021RestoreAppVe" + + "rsion\022-.google.cloud.ces.v1.RestoreAppVe" + + "rsionRequest\032\035.google.longrunning.Operat" + + "ion\"~\312A.\n\031RestoreAppVersionResponse\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\002@\";/v1/{name=p" + + "rojects/*/locations/*/apps/*/versions/*}" + + ":restore:\001*\022\261\001\n\016ListChangelogs\022*.google." + + "cloud.ces.v1.ListChangelogsRequest\032+.goo" + + "gle.cloud.ces.v1.ListChangelogsResponse\"" + + "F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/*" + + "/locations/*/apps/*}/changelogs\022\236\001\n\014GetC" + + "hangelog\022(.google.cloud.ces.v1.GetChange" + + "logRequest\032\036.google.cloud.ces.v1.Changel" + + "og\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/" + + "locations/*/apps/*/changelogs/*}\032j\312A\022ces" + + ".googleapis.com\322ARhttps://www.googleapis" + + ".com/auth/ces,https://www.googleapis.com" + + "/auth/cloud-platformB\306\001\n\027com.google.clou" + + "d.ces.v1B\021AgentServiceProtoP\001Z)cloud.goo" + + "gle.com/go/ces/apiv1/cespb;cespb\352Aj\n,con" + + "tactcenterinsights.googleapis.com/Datase" + + "t\022:projects/{project}/locations/{locatio" + + "n}/datasets/{dataset}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -885,7 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ExportAppRequest_descriptor, new java.lang.String[] { - "Name", "ExportFormat", "GcsUri", + "Name", "ExportFormat", "GcsUri", "AppVersion", }); internal_static_google_cloud_ces_v1_ExportAppResponse_descriptor = getDescriptor().getMessageType(7); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTool.java new file mode 100644 index 000000000000..6948990b89b0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTool.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
            + * Represents a tool that allows the agent to call another agent.
            + * 
            + * + * Protobuf type {@code google.cloud.ces.v1.AgentTool} + */ +@com.google.protobuf.Generated +public final class AgentTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AgentTool) + AgentToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentTool"); + } + + // Use AgentTool.newBuilder() to construct. + private AgentTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentTool() { + name_ = ""; + description_ = ""; + rootAgent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentTool.class, + com.google.cloud.ces.v1.AgentTool.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the agent tool.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the agent tool.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Optional. Description of the tool's purpose.
            +   * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Description of the tool's purpose.
            +   * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROOT_AGENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object rootAgent_ = ""; + + /** + * + * + *
            +   * Optional. The resource name of the root agent that is the entry point of
            +   * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +   * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + @java.lang.Override + public java.lang.String getRootAgent() { + java.lang.Object ref = rootAgent_; + 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(); + rootAgent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The resource name of the root agent that is the entry point of
            +   * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +   * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRootAgentBytes() { + java.lang.Object ref = rootAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootAgent_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, rootAgent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rootAgent_); + } + 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.ces.v1.AgentTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AgentTool other = (com.google.cloud.ces.v1.AgentTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getRootAgent().equals(other.getRootAgent())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + ROOT_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getRootAgent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTool 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.ces.v1.AgentTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTool 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.ces.v1.AgentTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.ces.v1.AgentTool 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a tool that allows the agent to call another agent.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.AgentTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AgentTool) + com.google.cloud.ces.v1.AgentToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentTool.class, + com.google.cloud.ces.v1.AgentTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AgentTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + rootAgent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool build() { + com.google.cloud.ces.v1.AgentTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool buildPartial() { + com.google.cloud.ces.v1.AgentTool result = new com.google.cloud.ces.v1.AgentTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AgentTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rootAgent_ = rootAgent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AgentTool) { + return mergeFrom((com.google.cloud.ces.v1.AgentTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AgentTool other) { + if (other == com.google.cloud.ces.v1.AgentTool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRootAgent().isEmpty()) { + rootAgent_ = other.rootAgent_; + bitField0_ |= 0x00000004; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + rootAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 name_ = ""; + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object rootAgent_ = ""; + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + public java.lang.String getRootAgent() { + java.lang.Object ref = rootAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + public com.google.protobuf.ByteString getRootAgentBytes() { + java.lang.Object ref = rootAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The rootAgent to set. + * @return This builder for chaining. + */ + public Builder setRootAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rootAgent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRootAgent() { + rootAgent_ = getDefaultInstance().getRootAgent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for rootAgent to set. + * @return This builder for chaining. + */ + public Builder setRootAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootAgent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AgentTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AgentTool) + private static final com.google.cloud.ces.v1.AgentTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AgentTool(); + } + + public static com.google.cloud.ces.v1.AgentTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentTool 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.ces.v1.AgentTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolOrBuilder.java new file mode 100644 index 000000000000..d60132cb8817 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AgentToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AgentTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the agent tool.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the agent tool.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. Description of the tool's purpose.
            +   * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Optional. Description of the tool's purpose.
            +   * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Optional. The resource name of the root agent that is the entry point of
            +   * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +   * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + java.lang.String getRootAgent(); + + /** + * + * + *
            +   * Optional. The resource name of the root agent that is the entry point of
            +   * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +   * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + com.google.protobuf.ByteString getRootAgentBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolProto.java new file mode 100644 index 000000000000..e4b904e2bbf5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AgentToolProto extends com.google.protobuf.GeneratedFile { + private AgentToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AgentTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AgentTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n$google/cloud/ces/v1/agent_tool.proto\022\023" + + "google.cloud.ces.v1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\"" + + "n\n\tAgentTool\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descr" + + "iption\030\002 \001(\tB\003\340A\001\0224\n\nroot_agent\030\003 \001(\tB \340" + + "A\001\372A\032\n\030ces.googleapis.com/AgentBV\n\027com.g" + + "oogle.cloud.ces.v1B\016AgentToolProtoP\001Z)cl" + + "oud.google.com/go/ces/apiv1/cespb;cespbb" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_AgentTool_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_AgentTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AgentTool_descriptor, + new java.lang.String[] { + "Name", "Description", "RootAgent", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java index c8d53001eced..9057398ea948 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java @@ -333,7 +333,7 @@ public SourceCase getSourceCase() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -354,7 +354,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -378,7 +378,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -1066,7 +1066,7 @@ public Builder clearSource() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Override @@ -1088,7 +1088,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Override @@ -1113,7 +1113,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @param value The enum numeric value on the wire for prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1138,7 +1138,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The prebuiltAmbientNoise. */ @java.lang.Override @@ -1170,7 +1170,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @param value The prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1199,7 +1199,7 @@ public Builder setPrebuiltAmbientNoise( * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java index 3bfec6d4eb8d..88ba966aad9a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java @@ -39,7 +39,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -58,7 +58,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -77,7 +77,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java index f2827ebabe53..0ab4534defdc 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java @@ -1921,6 +1921,66 @@ public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuil : loggingSettings_; } + public static final int ERROR_HANDLING_SETTINGS_FIELD_NUMBER = 34; + private com.google.cloud.ces.v1.ErrorHandlingSettings errorHandlingSettings_; + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorHandlingSettings field is set. + */ + @java.lang.Override + public boolean hasErrorHandlingSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings getErrorHandlingSettings() { + return errorHandlingSettings_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance() + : errorHandlingSettings_; + } + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder + getErrorHandlingSettingsOrBuilder() { + return errorHandlingSettings_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance() + : errorHandlingSettings_; + } + public static final int MODEL_SETTINGS_FIELD_NUMBER = 13; private com.google.cloud.ces.v1.ModelSettings modelSettings_; @@ -1941,7 +2001,7 @@ public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuil */ @java.lang.Override public boolean hasModelSettings() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2047,7 +2107,7 @@ public com.google.cloud.ces.v1.App.ToolExecutionMode getToolExecutionMode() { */ @java.lang.Override public boolean hasEvaluationMetricsThresholds() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2426,7 +2486,7 @@ public com.google.protobuf.ByteString getGuardrailsBytes(int index) { */ @java.lang.Override public boolean hasDataStoreSettings() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2485,7 +2545,7 @@ public com.google.cloud.ces.v1.DataStoreSettingsOrBuilder getDataStoreSettingsOr */ @java.lang.Override public boolean hasDefaultChannelProfile() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2654,7 +2714,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2706,7 +2766,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -2835,7 +2895,7 @@ public int getDeploymentCount() { */ @java.lang.Override public boolean hasClientCertificateSettings() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -2923,10 +2983,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, rootAgent_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(5, getCreateTime()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(6, getUpdateTime()); } if (((bitField0_ & 0x00000004) != 0)) { @@ -2943,13 +3003,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessage.writeString(output, 12, etag_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(13, getModelSettings()); } for (int i = 0; i < variableDeclarations_.size(); i++) { output.writeMessage(14, variableDeclarations_.get(i)); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(15, getDataStoreSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(globalInstruction_)) { @@ -2958,16 +3018,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(18, getLanguageSettings()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(22, getDefaultChannelProfile()); } if (deploymentCount_ != 0) { output.writeInt32(23, deploymentCount_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(24, getEvaluationMetricsThresholds()); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(25, getClientCertificateSettings()); } if (((bitField0_ & 0x00000002) != 0)) { @@ -2987,6 +3047,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(32, toolExecutionMode_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(34, getErrorHandlingSettings()); + } getUnknownFields().writeTo(output); } @@ -3008,10 +3071,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, rootAgent_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (((bitField0_ & 0x00000004) != 0)) { @@ -3042,7 +3105,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(12, etag_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getModelSettings()); } for (int i = 0; i < variableDeclarations_.size(); i++) { @@ -3050,7 +3113,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, variableDeclarations_.get(i)); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDataStoreSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(globalInstruction_)) { @@ -3059,19 +3122,19 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLanguageSettings()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getDefaultChannelProfile()); } if (deploymentCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(23, deploymentCount_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 24, getEvaluationMetricsThresholds()); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 25, getClientCertificateSettings()); @@ -3095,6 +3158,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(32, toolExecutionMode_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(34, getErrorHandlingSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3131,6 +3198,10 @@ public boolean equals(final java.lang.Object obj) { if (hasLoggingSettings()) { if (!getLoggingSettings().equals(other.getLoggingSettings())) return false; } + if (hasErrorHandlingSettings() != other.hasErrorHandlingSettings()) return false; + if (hasErrorHandlingSettings()) { + if (!getErrorHandlingSettings().equals(other.getErrorHandlingSettings())) return false; + } if (hasModelSettings() != other.hasModelSettings()) return false; if (hasModelSettings()) { if (!getModelSettings().equals(other.getModelSettings())) return false; @@ -3208,6 +3279,10 @@ public int hashCode() { hash = (37 * hash) + LOGGING_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getLoggingSettings().hashCode(); } + if (hasErrorHandlingSettings()) { + hash = (37 * hash) + ERROR_HANDLING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getErrorHandlingSettings().hashCode(); + } if (hasModelSettings()) { hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getModelSettings().hashCode(); @@ -3429,6 +3504,7 @@ private void maybeForceBuilderInitialization() { internalGetTimeZoneSettingsFieldBuilder(); internalGetAudioProcessingConfigFieldBuilder(); internalGetLoggingSettingsFieldBuilder(); + internalGetErrorHandlingSettingsFieldBuilder(); internalGetModelSettingsFieldBuilder(); internalGetEvaluationMetricsThresholdsFieldBuilder(); internalGetVariableDeclarationsFieldBuilder(); @@ -3470,6 +3546,11 @@ public Builder clear() { loggingSettingsBuilder_.dispose(); loggingSettingsBuilder_ = null; } + errorHandlingSettings_ = null; + if (errorHandlingSettingsBuilder_ != null) { + errorHandlingSettingsBuilder_.dispose(); + errorHandlingSettingsBuilder_ = null; + } modelSettings_ = null; if (modelSettingsBuilder_ != null) { modelSettingsBuilder_.dispose(); @@ -3487,14 +3568,14 @@ public Builder clear() { variableDeclarations_ = null; variableDeclarationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); if (predefinedVariableDeclarationsBuilder_ == null) { predefinedVariableDeclarations_ = java.util.Collections.emptyList(); } else { predefinedVariableDeclarations_ = null; predefinedVariableDeclarationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); globalInstruction_ = ""; guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); dataStoreSettings_ = null; @@ -3561,19 +3642,19 @@ public com.google.cloud.ces.v1.App buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.ces.v1.App result) { if (variableDeclarationsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { variableDeclarations_ = java.util.Collections.unmodifiableList(variableDeclarations_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.variableDeclarations_ = variableDeclarations_; } else { result.variableDeclarations_ = variableDeclarationsBuilder_.build(); } if (predefinedVariableDeclarationsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { predefinedVariableDeclarations_ = java.util.Collections.unmodifiableList(predefinedVariableDeclarations_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.predefinedVariableDeclarations_ = predefinedVariableDeclarations_; } else { @@ -3622,67 +3703,74 @@ private void buildPartial0(com.google.cloud.ces.v1.App result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.modelSettings_ = - modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + result.errorHandlingSettings_ = + errorHandlingSettingsBuilder_ == null + ? errorHandlingSettings_ + : errorHandlingSettingsBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.toolExecutionMode_ = toolExecutionMode_; + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000800) != 0)) { + result.toolExecutionMode_ = toolExecutionMode_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { result.evaluationMetricsThresholds_ = evaluationMetricsThresholdsBuilder_ == null ? evaluationMetricsThresholds_ : evaluationMetricsThresholdsBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.globalInstruction_ = globalInstruction_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { guardrails_.makeImmutable(); result.guardrails_ = guardrails_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.dataStoreSettings_ = dataStoreSettingsBuilder_ == null ? dataStoreSettings_ : dataStoreSettingsBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.defaultChannelProfile_ = defaultChannelProfileBuilder_ == null ? defaultChannelProfile_ : defaultChannelProfileBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000100; - } if (((from_bitField0_ & 0x00100000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.etag_ = etag_; + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.deploymentCount_ = deploymentCount_; + result.etag_ = etag_; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.deploymentCount_ = deploymentCount_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { result.clientCertificateSettings_ = clientCertificateSettingsBuilder_ == null ? clientCertificateSettings_ : clientCertificateSettingsBuilder_.build(); - to_bitField0_ |= 0x00000400; + to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.locked_ = locked_; } result.bitField0_ |= to_bitField0_; @@ -3735,6 +3823,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { if (other.hasLoggingSettings()) { mergeLoggingSettings(other.getLoggingSettings()); } + if (other.hasErrorHandlingSettings()) { + mergeErrorHandlingSettings(other.getErrorHandlingSettings()); + } if (other.hasModelSettings()) { mergeModelSettings(other.getModelSettings()); } @@ -3748,7 +3839,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { if (!other.variableDeclarations_.isEmpty()) { if (variableDeclarations_.isEmpty()) { variableDeclarations_ = other.variableDeclarations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureVariableDeclarationsIsMutable(); variableDeclarations_.addAll(other.variableDeclarations_); @@ -3761,7 +3852,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { variableDeclarationsBuilder_.dispose(); variableDeclarationsBuilder_ = null; variableDeclarations_ = other.variableDeclarations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); variableDeclarationsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetVariableDeclarationsFieldBuilder() @@ -3775,7 +3866,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { if (!other.predefinedVariableDeclarations_.isEmpty()) { if (predefinedVariableDeclarations_.isEmpty()) { predefinedVariableDeclarations_ = other.predefinedVariableDeclarations_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensurePredefinedVariableDeclarationsIsMutable(); predefinedVariableDeclarations_.addAll(other.predefinedVariableDeclarations_); @@ -3788,7 +3879,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { predefinedVariableDeclarationsBuilder_.dispose(); predefinedVariableDeclarationsBuilder_ = null; predefinedVariableDeclarations_ = other.predefinedVariableDeclarations_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); predefinedVariableDeclarationsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetPredefinedVariableDeclarationsFieldBuilder() @@ -3801,13 +3892,13 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { } if (!other.getGlobalInstruction().isEmpty()) { globalInstruction_ = other.globalInstruction_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (!other.guardrails_.isEmpty()) { if (guardrails_.isEmpty()) { guardrails_ = other.guardrails_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } else { ensureGuardrailsIsMutable(); guardrails_.addAll(other.guardrails_); @@ -3821,7 +3912,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { mergeDefaultChannelProfile(other.getDefaultChannelProfile()); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -3830,7 +3921,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } if (other.getDeploymentCount() != 0) { @@ -3896,14 +3987,14 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 42 case 50: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 50 case 58: @@ -3936,20 +4027,20 @@ public Builder mergeFrom( internalGetMutableMetadata() .getMutableMap() .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 90 case 98: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 98 case 106: { input.readMessage( internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 106 case 114: @@ -3970,13 +4061,13 @@ public Builder mergeFrom( { input.readMessage( internalGetDataStoreSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 122 case 138: { globalInstruction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 138 case 146: @@ -3990,13 +4081,13 @@ public Builder mergeFrom( { input.readMessage( internalGetDefaultChannelProfileFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 178 case 184: { deploymentCount_ = input.readInt32(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 184 case 194: @@ -4004,7 +4095,7 @@ public Builder mergeFrom( input.readMessage( internalGetEvaluationMetricsThresholdsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 194 case 202: @@ -4012,7 +4103,7 @@ public Builder mergeFrom( input.readMessage( internalGetClientCertificateSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 202 case 218: @@ -4039,7 +4130,7 @@ public Builder mergeFrom( case 232: { locked_ = input.readBool(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 232 case 248: @@ -4051,9 +4142,16 @@ public Builder mergeFrom( case 256: { toolExecutionMode_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 256 + case 274: + { + input.readMessage( + internalGetErrorHandlingSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 274 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5447,6 +5545,221 @@ public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuil return loggingSettingsBuilder_; } + private com.google.cloud.ces.v1.ErrorHandlingSettings errorHandlingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder> + errorHandlingSettingsBuilder_; + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorHandlingSettings field is set. + */ + public boolean hasErrorHandlingSettings() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingSettings. + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings getErrorHandlingSettings() { + if (errorHandlingSettingsBuilder_ == null) { + return errorHandlingSettings_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance() + : errorHandlingSettings_; + } else { + return errorHandlingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setErrorHandlingSettings(com.google.cloud.ces.v1.ErrorHandlingSettings value) { + if (errorHandlingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorHandlingSettings_ = value; + } else { + errorHandlingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setErrorHandlingSettings( + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder builderForValue) { + if (errorHandlingSettingsBuilder_ == null) { + errorHandlingSettings_ = builderForValue.build(); + } else { + errorHandlingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeErrorHandlingSettings(com.google.cloud.ces.v1.ErrorHandlingSettings value) { + if (errorHandlingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && errorHandlingSettings_ != null + && errorHandlingSettings_ + != com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance()) { + getErrorHandlingSettingsBuilder().mergeFrom(value); + } else { + errorHandlingSettings_ = value; + } + } else { + errorHandlingSettingsBuilder_.mergeFrom(value); + } + if (errorHandlingSettings_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearErrorHandlingSettings() { + bitField0_ = (bitField0_ & ~0x00000200); + errorHandlingSettings_ = null; + if (errorHandlingSettingsBuilder_ != null) { + errorHandlingSettingsBuilder_.dispose(); + errorHandlingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings.Builder getErrorHandlingSettingsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetErrorHandlingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder + getErrorHandlingSettingsOrBuilder() { + if (errorHandlingSettingsBuilder_ != null) { + return errorHandlingSettingsBuilder_.getMessageOrBuilder(); + } else { + return errorHandlingSettings_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance() + : errorHandlingSettings_; + } + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder> + internalGetErrorHandlingSettingsFieldBuilder() { + if (errorHandlingSettingsBuilder_ == null) { + errorHandlingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder>( + getErrorHandlingSettings(), getParentForChildren(), isClean()); + errorHandlingSettings_ = null; + } + return errorHandlingSettingsBuilder_; + } + private com.google.cloud.ces.v1.ModelSettings modelSettings_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.ModelSettings, @@ -5470,7 +5783,7 @@ public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuil * @return Whether the modelSettings field is set. */ public boolean hasModelSettings() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -5520,7 +5833,7 @@ public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings value) { } else { modelSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5544,7 +5857,7 @@ public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings.Builder bu } else { modelSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5564,7 +5877,7 @@ public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings.Builder bu */ public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { if (modelSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && modelSettings_ != null && modelSettings_ != com.google.cloud.ces.v1.ModelSettings.getDefaultInstance()) { getModelSettingsBuilder().mergeFrom(value); @@ -5575,7 +5888,7 @@ public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { modelSettingsBuilder_.mergeFrom(value); } if (modelSettings_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -5595,7 +5908,7 @@ public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { * */ public Builder clearModelSettings() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); modelSettings_ = null; if (modelSettingsBuilder_ != null) { modelSettingsBuilder_.dispose(); @@ -5619,7 +5932,7 @@ public Builder clearModelSettings() { * */ public com.google.cloud.ces.v1.ModelSettings.Builder getModelSettingsBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetModelSettingsFieldBuilder().getBuilder(); } @@ -5715,7 +6028,7 @@ public int getToolExecutionModeValue() { */ public Builder setToolExecutionModeValue(int value) { toolExecutionMode_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5760,7 +6073,7 @@ public Builder setToolExecutionMode(com.google.cloud.ces.v1.App.ToolExecutionMod if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; toolExecutionMode_ = value.getNumber(); onChanged(); return this; @@ -5781,7 +6094,7 @@ public Builder setToolExecutionMode(com.google.cloud.ces.v1.App.ToolExecutionMod * @return This builder for chaining. */ public Builder clearToolExecutionMode() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); toolExecutionMode_ = 0; onChanged(); return this; @@ -5808,7 +6121,7 @@ public Builder clearToolExecutionMode() { * @return Whether the evaluationMetricsThresholds field is set. */ public boolean hasEvaluationMetricsThresholds() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -5855,7 +6168,7 @@ public Builder setEvaluationMetricsThresholds( } else { evaluationMetricsThresholdsBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5878,7 +6191,7 @@ public Builder setEvaluationMetricsThresholds( } else { evaluationMetricsThresholdsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5897,7 +6210,7 @@ public Builder setEvaluationMetricsThresholds( public Builder mergeEvaluationMetricsThresholds( com.google.cloud.ces.v1.EvaluationMetricsThresholds value) { if (evaluationMetricsThresholdsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && evaluationMetricsThresholds_ != null && evaluationMetricsThresholds_ != com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance()) { @@ -5909,7 +6222,7 @@ public Builder mergeEvaluationMetricsThresholds( evaluationMetricsThresholdsBuilder_.mergeFrom(value); } if (evaluationMetricsThresholds_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -5927,7 +6240,7 @@ public Builder mergeEvaluationMetricsThresholds( * */ public Builder clearEvaluationMetricsThresholds() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); evaluationMetricsThresholds_ = null; if (evaluationMetricsThresholdsBuilder_ != null) { evaluationMetricsThresholdsBuilder_.dispose(); @@ -5950,7 +6263,7 @@ public Builder clearEvaluationMetricsThresholds() { */ public com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder getEvaluationMetricsThresholdsBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetEvaluationMetricsThresholdsFieldBuilder().getBuilder(); } @@ -6009,11 +6322,11 @@ public Builder clearEvaluationMetricsThresholds() { java.util.Collections.emptyList(); private void ensureVariableDeclarationsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { variableDeclarations_ = new java.util.ArrayList( variableDeclarations_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } @@ -6264,7 +6577,7 @@ public Builder addAllVariableDeclarations( public Builder clearVariableDeclarations() { if (variableDeclarationsBuilder_ == null) { variableDeclarations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { variableDeclarationsBuilder_.clear(); @@ -6412,7 +6725,7 @@ public com.google.cloud.ces.v1.App.VariableDeclaration.Builder addVariableDeclar com.google.cloud.ces.v1.App.VariableDeclaration.Builder, com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder>( variableDeclarations_, - ((bitField0_ & 0x00001000) != 0), + ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); variableDeclarations_ = null; @@ -6424,11 +6737,11 @@ public com.google.cloud.ces.v1.App.VariableDeclaration.Builder addVariableDeclar predefinedVariableDeclarations_ = java.util.Collections.emptyList(); private void ensurePredefinedVariableDeclarationsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { predefinedVariableDeclarations_ = new java.util.ArrayList( predefinedVariableDeclarations_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } @@ -6682,7 +6995,7 @@ public Builder addAllPredefinedVariableDeclarations( public Builder clearPredefinedVariableDeclarations() { if (predefinedVariableDeclarationsBuilder_ == null) { predefinedVariableDeclarations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { predefinedVariableDeclarationsBuilder_.clear(); @@ -6830,7 +7143,7 @@ public Builder removePredefinedVariableDeclarations(int index) { com.google.cloud.ces.v1.App.VariableDeclaration.Builder, com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder>( predefinedVariableDeclarations_, - ((bitField0_ & 0x00002000) != 0), + ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); predefinedVariableDeclarations_ = null; @@ -6909,7 +7222,7 @@ public Builder setGlobalInstruction(java.lang.String value) { throw new NullPointerException(); } globalInstruction_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6929,7 +7242,7 @@ public Builder setGlobalInstruction(java.lang.String value) { */ public Builder clearGlobalInstruction() { globalInstruction_ = getDefaultInstance().getGlobalInstruction(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -6954,7 +7267,7 @@ public Builder setGlobalInstructionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); globalInstruction_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6966,7 +7279,7 @@ private void ensureGuardrailsIsMutable() { if (!guardrails_.isModifiable()) { guardrails_ = new com.google.protobuf.LazyStringArrayList(guardrails_); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } /** @@ -7071,7 +7384,7 @@ public Builder setGuardrails(int index, java.lang.String value) { } ensureGuardrailsIsMutable(); guardrails_.set(index, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7098,7 +7411,7 @@ public Builder addGuardrails(java.lang.String value) { } ensureGuardrailsIsMutable(); guardrails_.add(value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7122,7 +7435,7 @@ public Builder addGuardrails(java.lang.String value) { public Builder addAllGuardrails(java.lang.Iterable values) { ensureGuardrailsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guardrails_); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7144,7 +7457,7 @@ public Builder addAllGuardrails(java.lang.Iterable values) { */ public Builder clearGuardrails() { guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ; onChanged(); return this; @@ -7173,7 +7486,7 @@ public Builder addGuardrailsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureGuardrailsIsMutable(); guardrails_.add(value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7199,7 +7512,7 @@ public Builder addGuardrailsBytes(com.google.protobuf.ByteString value) { * @return Whether the dataStoreSettings field is set. */ public boolean hasDataStoreSettings() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -7245,7 +7558,7 @@ public Builder setDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings va } else { dataStoreSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7268,7 +7581,7 @@ public Builder setDataStoreSettings( } else { dataStoreSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7286,7 +7599,7 @@ public Builder setDataStoreSettings( */ public Builder mergeDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings value) { if (dataStoreSettingsBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && dataStoreSettings_ != null && dataStoreSettings_ != com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance()) { @@ -7298,7 +7611,7 @@ public Builder mergeDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings dataStoreSettingsBuilder_.mergeFrom(value); } if (dataStoreSettings_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -7316,7 +7629,7 @@ public Builder mergeDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings * */ public Builder clearDataStoreSettings() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); dataStoreSettings_ = null; if (dataStoreSettingsBuilder_ != null) { dataStoreSettingsBuilder_.dispose(); @@ -7338,7 +7651,7 @@ public Builder clearDataStoreSettings() { * */ public com.google.cloud.ces.v1.DataStoreSettings.Builder getDataStoreSettingsBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetDataStoreSettingsFieldBuilder().getBuilder(); } @@ -7413,7 +7726,7 @@ public com.google.cloud.ces.v1.DataStoreSettingsOrBuilder getDataStoreSettingsOr * @return Whether the defaultChannelProfile field is set. */ public boolean hasDefaultChannelProfile() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -7459,7 +7772,7 @@ public Builder setDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile v } else { defaultChannelProfileBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7482,7 +7795,7 @@ public Builder setDefaultChannelProfile( } else { defaultChannelProfileBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7500,7 +7813,7 @@ public Builder setDefaultChannelProfile( */ public Builder mergeDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile value) { if (defaultChannelProfileBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && defaultChannelProfile_ != null && defaultChannelProfile_ != com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance()) { @@ -7512,7 +7825,7 @@ public Builder mergeDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile defaultChannelProfileBuilder_.mergeFrom(value); } if (defaultChannelProfile_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -7530,7 +7843,7 @@ public Builder mergeDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile * */ public Builder clearDefaultChannelProfile() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); defaultChannelProfile_ = null; if (defaultChannelProfileBuilder_ != null) { defaultChannelProfileBuilder_.dispose(); @@ -7552,7 +7865,7 @@ public Builder clearDefaultChannelProfile() { * */ public com.google.cloud.ces.v1.ChannelProfile.Builder getDefaultChannelProfileBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return internalGetDefaultChannelProfileFieldBuilder().getBuilder(); } @@ -7624,7 +7937,7 @@ private com.google.protobuf.MapField interna if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return metadata_; } @@ -7722,7 +8035,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); internalGetMutableMetadata().getMutableMap().clear(); return this; } @@ -7749,7 +8062,7 @@ public Builder removeMetadata(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return internalGetMutableMetadata().getMutableMap(); } @@ -7772,7 +8085,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -7789,7 +8102,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { */ public Builder putAllMetadata(java.util.Map values) { internalGetMutableMetadata().getMutableMap().putAll(values); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -7814,7 +8127,7 @@ public Builder putAllMetadata(java.util.Map * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -7860,7 +8173,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7882,7 +8195,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7900,7 +8213,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -7911,7 +8224,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -7929,7 +8242,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -7951,7 +8264,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -8026,7 +8339,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -8072,7 +8385,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -8094,7 +8407,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -8112,7 +8425,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) + if (((bitField0_ & 0x00200000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -8123,7 +8436,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -8141,7 +8454,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -8163,7 +8476,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -8288,7 +8601,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -8308,7 +8621,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -8333,7 +8646,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -8371,7 +8684,7 @@ public int getDeploymentCount() { public Builder setDeploymentCount(int value) { deploymentCount_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -8388,7 +8701,7 @@ public Builder setDeploymentCount(int value) { * @return This builder for chaining. */ public Builder clearDeploymentCount() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); deploymentCount_ = 0; onChanged(); return this; @@ -8415,7 +8728,7 @@ public Builder clearDeploymentCount() { * @return Whether the clientCertificateSettings field is set. */ public boolean hasClientCertificateSettings() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -8462,7 +8775,7 @@ public Builder setClientCertificateSettings( } else { clientCertificateSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -8485,7 +8798,7 @@ public Builder setClientCertificateSettings( } else { clientCertificateSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -8504,7 +8817,7 @@ public Builder setClientCertificateSettings( public Builder mergeClientCertificateSettings( com.google.cloud.ces.v1.ClientCertificateSettings value) { if (clientCertificateSettingsBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) + if (((bitField0_ & 0x01000000) != 0) && clientCertificateSettings_ != null && clientCertificateSettings_ != com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance()) { @@ -8516,7 +8829,7 @@ public Builder mergeClientCertificateSettings( clientCertificateSettingsBuilder_.mergeFrom(value); } if (clientCertificateSettings_ != null) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } return this; @@ -8534,7 +8847,7 @@ public Builder mergeClientCertificateSettings( * */ public Builder clearClientCertificateSettings() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); clientCertificateSettings_ = null; if (clientCertificateSettingsBuilder_ != null) { clientCertificateSettingsBuilder_.dispose(); @@ -8557,7 +8870,7 @@ public Builder clearClientCertificateSettings() { */ public com.google.cloud.ces.v1.ClientCertificateSettings.Builder getClientCertificateSettingsBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return internalGetClientCertificateSettingsFieldBuilder().getBuilder(); } @@ -8647,7 +8960,7 @@ public boolean getLocked() { public Builder setLocked(boolean value) { locked_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -8665,7 +8978,7 @@ public Builder setLocked(boolean value) { * @return This builder for chaining. */ public Builder clearLocked() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); locked_ = false; onChanged(); return this; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java index 97a1842b71f5..dd2450fc0e34 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java @@ -323,6 +323,49 @@ public interface AppOrBuilder */ com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuilder(); + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorHandlingSettings field is set. + */ + boolean hasErrorHandlingSettings(); + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingSettings. + */ + com.google.cloud.ces.v1.ErrorHandlingSettings getErrorHandlingSettings(); + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder getErrorHandlingSettingsOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java index 1fe5006a52c6..916fab4c5127 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java @@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_LoggingSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_LoggingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -151,7 +155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/bigquery_export.proto\032" + " google/cloud/ces/v1/common.proto\032 google/cl" + "oud/ces/v1/schema.proto\032\036google/protobuf" - + "/duration.proto\032\037google/protobuf/timestamp.proto\"\361\r\n" + + "/duration.proto\032\037google/protobuf/timestamp.proto\"\303\016\n" + "\003App\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" @@ -166,13 +170,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027audio_processing_config\030\007" + " \001(\0132*.google.cloud.ces.v1.AudioProcessingConfigB\003\340A\001\022C\n" + "\020logging_settings\030\010" - + " \001(\0132$.google.cloud.ces.v1.LoggingSettingsB\003\340A\001\022?\n" + + " \001(\0132$.google.cloud.ces.v1.LoggingSettingsB\003\340A\001\022P\n" + + "\027error_handling_settings\030\"" + + " \001(\0132*.google.cloud.ces.v1.ErrorHandlingSettingsB\003\340A\001\022?\n" + "\016model_settings\030\r" + " \001(\0132\".google.cloud.ces.v1.ModelSettingsB\003\340A\001\022L\n" - + "\023tool_execution_mode\030 \001(\0162*.google" - + ".cloud.ces.v1.App.ToolExecutionModeB\003\340A\001\022\\\n" - + "\035evaluation_metrics_thresholds\030\030 \001(\0132" - + "0.google.cloud.ces.v1.EvaluationMetricsThresholdsB\003\340A\001\022P\n" + + "\023tool_execution_mode\030 \001(\0162*.goog" + + "le.cloud.ces.v1.App.ToolExecutionModeB\003\340A\001\022\\\n" + + "\035evaluation_metrics_thresholds\030\030 \001(" + + "\01320.google.cloud.ces.v1.EvaluationMetricsThresholdsB\003\340A\001\022P\n" + "\025variable_declarations\030\016" + " \003(\0132,.google.cloud.ces.v1.App.VariableDeclarationB\003\340A\001\022[\n" + " predefined_variable_declarations\030\034" @@ -206,18 +212,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037TOOL_EXECUTION_MODE_UNSPECIFIED\020\000\022\014\n" + "\010PARALLEL\020\001\022\016\n\n" + "SEQUENTIAL\020\002:Z\352AW\n" - + "\026ces.googleapis.co" - + "m/App\0222projects/{project}/locations/{location}/apps/{app}*\004apps2\003app\"*\n" + + "\026ces.googleapis." + + "com/App\0222projects/{project}/locations/{location}/apps/{app}*\004apps2\003app\"*\n" + "\020TimeZoneSettings\022\026\n" - + "\ttime_zone\030\001 \001(\tB\003\340A\001\"\245\001\n" + + "\ttime_zone\030\001 \001(\tB\003\340A\001\"\247\001\n" + "\020LanguageSettings\022\"\n" + "\025default_language_code\030\001 \001(\tB\003\340A\001\022%\n" + "\030supported_language_codes\030\002 \003(\tB\003\340A\001\022(\n" - + "\033enable_multilingual_support\030\003 \001(\010B\003\340A\001\022\034\n" - + "\017fallback_action\030\004 \001(\tB\003\340A\001\"\277\003\n" + + "\033enable_multilingual_support\030\003 \001(\010B\003\340A\001\022\036\n" + + "\017fallback_action\030\004 \001(\tB\005\030\001\340A\001\"\277\003\n" + "\025AudioProcessingConfig\022o\n" - + "\031synthesize_speech_configs\030\001 \003(\0132G.google.cloud.ces" - + ".v1.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022@\n" + + "\031synthesize_speech_configs\030\001 \003(\0132G.google.cloud" + + ".ces.v1.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022@\n" + "\017barge_in_config\030\003" + " \001(\0132\".google.cloud.ces.v1.BargeInConfigB\003\340A\001\022:\n" + "\022inactivity_timeout\030\004" @@ -226,11 +232,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.ces.v1.AmbientSoundConfigB\003\340A\001\032k\n" + "\034SynthesizeSpeechConfigsEntry\022\013\n" + "\003key\030\001 \001(\t\022:\n" - + "\005value\030\002 \001(" - + "\0132+.google.cloud.ces.v1.SynthesizeSpeechConfig:\0028\001\"\325\002\n" + + "\005value\030\002" + + " \001(\0132+.google.cloud.ces.v1.SynthesizeSpeechConfig:\0028\001\"\325\002\n" + "\022AmbientSoundConfig\022e\n" - + "\026prebuilt_ambient_noise\030\001 \001(\0162<.google.cloud" - + ".ces.v1.AmbientSoundConfig.PrebuiltAmbientNoiseB\005\030\001\340A\001H\000\022\026\n" + + "\026prebuilt_ambient_noise\030\001 \001(\0162<.google.c" + + "loud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoiseB\005\030\001\340A\001H\000\022\026\n" + "\007gcs_uri\030\002 \001(\tB\003\340A\001H\000\022%\n" + "\026prebuilt_ambient_sound\030\004 \001(\tB\003\340A\001H\000\022\033\n" + "\016volume_gain_db\030\003 \001(\001B\003\340A\001\"r\n" @@ -257,39 +263,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132+.google.cloud.ces.v1.BigQueryExportSettingsB\003\340A\001\022N\n" + "\026cloud_logging_settings\030\004" + " \001(\0132).google.cloud.ces.v1.CloudLoggingSettingsB\003\340A\001\022\\\n" - + "\035conversation_logging_settings\030\005 \001(\01320.google.cloud" - + ".ces.v1.ConversationLoggingSettingsB\003\340A\001\022Y\n" - + "!evaluation_audio_recording_config\030\006 " - + "\001(\0132).google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022R\n" + + "\035conversation_logging_settings\030\005 \001(\01320.google.c" + + "loud.ces.v1.ConversationLoggingSettingsB\003\340A\001\022Y\n" + + "!evaluation_audio_recording_config\030\006" + + " \001(\0132).google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022R\n" + "\030metric_analysis_settings\030\007" - + " \001(\0132+.google.cloud.ces.v1.MetricAnalysisSettingsB\003\340A\001\"\203\020\n" + + " \001(\0132+.google.cloud.ces.v1.MetricAnalysisSettingsB\003\340A\001\"\363\001\n" + + "\025ErrorHandlingSettings\022f\n" + + "\027error_handling_strategy\030\001 \001(\0162@" + + ".google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\"r\n" + + "\025ErrorHandlingStrategy\022\'\n" + + "#ERROR_HANDLING_STRATEGY_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\025\n" + + "\021FALLBACK_RESPONSE\020\002\022\017\n" + + "\013END_SESSION\020\003\"\203\020\n" + "\033EvaluationMetricsThresholds\022\205\001\n" - + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132R.google.cloud.ces.v1.Eva" - + "luationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022z\n" - + "\035hallucination_metric_behavior\030\003 \001(\0162L.google.cloud.ce" - + "s.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\177\n" - + "$golden_hallucination_metric_behavior\030\005 \001(\0162L.goog" - + "le.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\201\001\n" - + "&scenario_hallucination_metric_behavior\030\004" - + " \001(\0162L.google.cloud.ces.v1.EvaluationMe" - + "tricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\373\010\n" + + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132R.google.cloud." + + "ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022z\n" + + "\035hallucination_metric_behavior\030\003 \001(\0162L.googl" + + "e.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\177\n" + + "$golden_hallucination_metric_behavior\030\005 " + + "\001(\0162L.google.cloud.ces.v1.EvaluationMetr" + + "icsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\201\001\n" + + "&scenario_hallucination_metric_behavior\030\004 \001(\0162L.google.cloud.ces.v1.Ev" + + "aluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\373\010\n" + "!GoldenEvaluationMetricsThresholds\022\231\001\n" - + "\035turn_level_metrics_thresholds\030\001 \001(\0132m.google.cloud.ces.v1.EvaluationM" - + "etricsThresholds.GoldenEvaluationMetrics" - + "Thresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\247\001\n" - + "$expectation_level_metrics_thresholds\030\002 \001(\0132t.google.cloud.ces.v1.Evaluati" - + "onMetricsThresholds.GoldenEvaluationMetr" - + "icsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022j\n" - + "\026tool_matching_settings\030\003 \001(\0132E.google.cloud.ces.v1.EvaluationMet" - + "ricsThresholds.ToolMatchingSettingsB\003\340A\001\032\206\004\n" + + "\035turn_level_metrics_thresholds\030\001 \001(\0132m.google.cloud.ces.v1.E" + + "valuationMetricsThresholds.GoldenEvaluat" + + "ionMetricsThresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\247\001\n" + + "$expectation_level_metrics_thresholds\030\002 \001(\0132t.google.cloud.ces.v" + + "1.EvaluationMetricsThresholds.GoldenEval" + + "uationMetricsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022j\n" + + "\026tool_matching_settings\030\003 \001(\0132E.google.cloud.ces.v1.Eva" + + "luationMetricsThresholds.ToolMatchingSettingsB\003\340A\001\032\206\004\n" + "\032TurnLevelMetricsThresholds\0227\n" + "%semantic_similarity_success_threshold\030\001" + " \001(\005B\003\340A\001H\000\210\001\001\022?\n" + "-overall_tool_invocation_correctness_threshold\030\002" + " \001(\002B\003\340A\001H\001\210\001\001\022\262\001\n" - + "\033semantic_similarity_channel\030\003 \001(\0162\207\001.googl" - + "e.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.Tur" - + "nLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + + "\033semantic_similarity_channel\030\003 \001(" + + "\0162\207\001.google.cloud.ces.v1.EvaluationMetri" + + "csThresholds.GoldenEvaluationMetricsThre" + + "sholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + "\031SemanticSimilarityChannel\022+\n" + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -301,8 +316,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002B\003\340A\001H\000\210\001\001B2\n" + "0_tool_invocation_parameter_correctness_threshold\032\363\001\n" + "\024ToolMatchingSettings\022\202\001\n" - + "\030extra_tool_call_behavior\030\001 \001(\0162[.google.cloud.ces.v1" - + ".EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162[.google.cl" + + "oud.ces.v1.EvaluationMetricsThresholds.T" + + "oolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + "\025ExtraToolCallBehavior\022(\n" + "$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + "\004FAIL\020\001\022\t\n" @@ -330,27 +346,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023deidentify_template\030\003 \001(\tB-\340A\001\372A\'\n" + "%dlp.googleapis.com/DeidentifyTemplate\"\263\002\n" + "\021DataStoreSettings\022C\n" - + "\007engines\030\003 \003(\0132-.go" - + "ogle.cloud.ces.v1.DataStoreSettings.EngineB\003\340A\003\032\330\001\n" + + "\007engines\030\003" + + " \003(\0132-.google.cloud.ces.v1.DataStoreSettings.EngineB\003\340A\003\032\330\001\n" + "\006Engine\022;\n" + "\004name\030\001 \001(\tB-\340A\003\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022E\n" - + "\004type\030\002" - + " \001(\01622.google.cloud.ces.v1.DataStoreSettings.Engine.TypeB\003\340A\003\"J\n" + + "\004type\030\002 \001(\01622.google.cloud.c" + + "es.v1.DataStoreSettings.Engine.TypeB\003\340A\003\"J\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + "\022ENGINE_TYPE_SEARCH\020\001\022\024\n" + "\020ENGINE_TYPE_CHAT\020\002B\364\004\n" - + "\027com.googl" - + "e.cloud.ces.v1B\010AppProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A\310\001\n" - + "\"dlp.googleapis.com/InspectTemplate\022Uorganizat" - + "ions/{organization}/locations/{location}/inspectTemplates/{inspect_template}\022Kpr" - + "ojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/locations/{lo" - + "cation}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/locations/" - + "{location}/deidentifyTemplates/{deidentify_template}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locat" - + "ions/{location}/collections/{collection}/engines/{engine}b\006proto3" + + "\027com.google.cloud.ces.v1B\010AppProtoP\001Z)cl" + + "oud.google.com/go/ces/apiv1/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organization}/locations/" + + "{location}/inspectTemplates/{inspect_template}\022Kprojects/{project}/locations/{lo" + + "cation}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/loc" + + "ations/{location}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/" + + "locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{proj" + + "ect}/locations/{location}/collections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -378,6 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZoneSettings", "AudioProcessingConfig", "LoggingSettings", + "ErrorHandlingSettings", "ModelSettings", "ToolExecutionMode", "EvaluationMetricsThresholds", @@ -492,8 +509,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationAudioRecordingConfig", "MetricAnalysisSettings", }); - internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor = + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor = getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor, + new java.lang.String[] { + "ErrorHandlingStrategy", + }); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor = + getDescriptor().getMessageType(10); internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor, @@ -542,7 +567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExtraToolCallBehavior", }); internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_ces_v1_ClientCertificateSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor, @@ -550,7 +575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TlsCertificate", "PrivateKey", "Passphrase", }); internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_ces_v1_ConversationLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor, @@ -558,7 +583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableConversationLogging", }); internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_ces_v1_CloudLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor, @@ -566,7 +591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableCloudLogging", }); internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_ces_v1_AudioRecordingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor, @@ -574,7 +599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "GcsPathPrefix", }); internal_static_google_cloud_ces_v1_RedactionConfig_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_ces_v1_RedactionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_RedactionConfig_descriptor, @@ -582,7 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableRedaction", "InspectTemplate", "DeidentifyTemplate", }); internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_ces_v1_DataStoreSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor, diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java index c9d77b15bc04..9de7e5847799 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @return The disableBargeIn. */ @java.lang.Override @@ -463,7 +463,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @return The disableBargeIn. */ @java.lang.Override @@ -488,7 +488,7 @@ public boolean getDisableBargeIn() { * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @param value The disableBargeIn to set. * @return This builder for chaining. */ @@ -517,7 +517,7 @@ public Builder setDisableBargeIn(boolean value) { * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java index 794d998e8917..3254270fd167 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java @@ -42,7 +42,7 @@ public interface BargeInConfigOrBuilder * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @return The disableBargeIn. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java index 32242b252003..8de8012d41a4 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java @@ -255,7 +255,7 @@ public com.google.cloud.ces.v1.RecognitionResultOrBuilder getRecognitionResultOr * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -273,7 +273,7 @@ public boolean hasInterruptionSignal() { * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -294,7 +294,7 @@ public com.google.cloud.ces.v1.InterruptionSignal getInterruptionSignal() { * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -1396,7 +1396,7 @@ public com.google.cloud.ces.v1.RecognitionResultOrBuilder getRecognitionResultOr * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1414,7 +1414,7 @@ public boolean hasInterruptionSignal() { * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1442,7 +1442,7 @@ public com.google.cloud.ces.v1.InterruptionSignal getInterruptionSignal() { * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1467,7 +1467,7 @@ public Builder setInterruptionSignal(com.google.cloud.ces.v1.InterruptionSignal * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1490,7 +1490,7 @@ public Builder setInterruptionSignal( * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1525,7 +1525,7 @@ public Builder mergeInterruptionSignal(com.google.cloud.ces.v1.InterruptionSigna * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1553,7 +1553,7 @@ public Builder clearInterruptionSignal() { * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1568,7 +1568,7 @@ public com.google.cloud.ces.v1.InterruptionSignal.Builder getInterruptionSignalB * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1591,7 +1591,7 @@ public com.google.cloud.ces.v1.InterruptionSignalOrBuilder getInterruptionSignal * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java index c6a06a42c9da..e5bf025f7b9c 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java @@ -116,7 +116,7 @@ public interface BidiSessionServerMessageOrBuilder * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -131,7 +131,7 @@ public interface BidiSessionServerMessageOrBuilder * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -146,7 +146,7 @@ public interface BidiSessionServerMessageOrBuilder * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java index 0e2c388a1938..8156f86c3e12 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java @@ -99,7 +99,7 @@ public boolean getEnabled() { * * *
            -   * Optional. The project ID of the BigQuery dataset to export the data to.
            +   * Optional. The **project ID** of the BigQuery dataset to export the data to.
                *
                * Note: If the BigQuery dataset is in a different project from the app,
                * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -127,7 +127,7 @@ public java.lang.String getProject() {
                *
                *
                * 
            -   * Optional. The project ID of the BigQuery dataset to export the data to.
            +   * Optional. The **project ID** of the BigQuery dataset to export the data to.
                *
                * Note: If the BigQuery dataset is in a different project from the app,
                * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -160,7 +160,7 @@ public com.google.protobuf.ByteString getProjectBytes() {
                *
                *
                * 
            -   * Optional. The BigQuery dataset to export the data to.
            +   * Optional. The BigQuery **dataset ID** to export the data to.
                * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -184,7 +184,7 @@ public java.lang.String getDataset() { * * *
            -   * Optional. The BigQuery dataset to export the data to.
            +   * Optional. The BigQuery **dataset ID** to export the data to.
                * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -621,7 +621,7 @@ public Builder clearEnabled() { * * *
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -648,7 +648,7 @@ public java.lang.String getProject() {
                  *
                  *
                  * 
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -675,7 +675,7 @@ public com.google.protobuf.ByteString getProjectBytes() {
                  *
                  *
                  * 
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -701,7 +701,7 @@ public Builder setProject(java.lang.String value) {
                  *
                  *
                  * 
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -723,7 +723,7 @@ public Builder clearProject() {
                  *
                  *
                  * 
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -752,7 +752,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
                  *
                  *
                  * 
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -775,7 +775,7 @@ public java.lang.String getDataset() { * * *
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -798,7 +798,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -820,7 +820,7 @@ public Builder setDataset(java.lang.String value) { * * *
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -838,7 +838,7 @@ public Builder clearDataset() { * * *
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java index 6fe865942f98..d93307e12bb0 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java @@ -43,7 +43,7 @@ public interface BigQueryExportSettingsOrBuilder * * *
            -   * Optional. The project ID of the BigQuery dataset to export the data to.
            +   * Optional. The **project ID** of the BigQuery dataset to export the data to.
                *
                * Note: If the BigQuery dataset is in a different project from the app,
                * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -60,7 +60,7 @@ public interface BigQueryExportSettingsOrBuilder
                *
                *
                * 
            -   * Optional. The project ID of the BigQuery dataset to export the data to.
            +   * Optional. The **project ID** of the BigQuery dataset to export the data to.
                *
                * Note: If the BigQuery dataset is in a different project from the app,
                * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -77,7 +77,7 @@ public interface BigQueryExportSettingsOrBuilder
                *
                *
                * 
            -   * Optional. The BigQuery dataset to export the data to.
            +   * Optional. The BigQuery **dataset ID** to export the data to.
                * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -90,7 +90,7 @@ public interface BigQueryExportSettingsOrBuilder * * *
            -   * Optional. The BigQuery dataset to export the data to.
            +   * Optional. The BigQuery **dataset ID** to export the data to.
                * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java index 644facb97c1a..448dc98b0665 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java @@ -153,6 +153,16 @@ public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { * FIVE9 = 7; */ FIVE9(7), + /** + * + * + *
            +     * Third party contact center integration channel.
            +     * 
            + * + * CONTACT_CENTER_INTEGRATION = 8; + */ + CONTACT_CENTER_INTEGRATION(8), UNRECOGNIZED(-1), ; @@ -243,6 +253,17 @@ public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FIVE9_VALUE = 7; + /** + * + * + *
            +     * Third party contact center integration channel.
            +     * 
            + * + * CONTACT_CENTER_INTEGRATION = 8; + */ + public static final int CONTACT_CENTER_INTEGRATION_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -281,6 +302,8 @@ public static ChannelType forNumber(int value) { return CONTACT_CENTER_AS_A_SERVICE; case 7: return FIVE9; + case 8: + return CONTACT_CENTER_INTEGRATION; default: return null; } @@ -1341,6 +1364,16 @@ public enum Modality implements com.google.protobuf.ProtocolMessageEnum { * CHAT_ONLY = 3; */ CHAT_ONLY(3), + /** + * + * + *
            +       * Widget supports chat, voice, and video input.
            +       * 
            + * + * CHAT_VOICE_AND_VIDEO = 4; + */ + CHAT_VOICE_AND_VIDEO(4), UNRECOGNIZED(-1), ; @@ -1398,6 +1431,17 @@ public enum Modality implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHAT_ONLY_VALUE = 3; + /** + * + * + *
            +       * Widget supports chat, voice, and video input.
            +       * 
            + * + * CHAT_VOICE_AND_VIDEO = 4; + */ + public static final int CHAT_VOICE_AND_VIDEO_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1430,6 +1474,8 @@ public static Modality forNumber(int value) { return VOICE_ONLY; case 3: return CHAT_ONLY; + case 4: + return CHAT_VOICE_AND_VIDEO; default: return null; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java index 8ff5e0154e33..86ab088f74af 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Deployment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\002\022:\n" - + "\013app_version\030\002 \001(\tB%\340A\002\372A\037\n" + + "\013app_version\030\002 \001(\tB%\340A\001\372A\037\n" + "\035ces.googleapis.com/AppVersion\022A\n" + "\017channel_profile\030\003" + " \001(\0132#.google.cloud.ces.v1.ChannelProfileB\003\340A\002\0224\n" diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java index b4ef6f0f3fa4..9e4696cae64f 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java @@ -78,6 +78,7 @@ public enum DataCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT(1), TRANSCRIPT(9), + BLOB(7), PAYLOAD(11), IMAGE(5), TOOL_CALL(2), @@ -108,6 +109,8 @@ public static DataCase forNumber(int value) { return TEXT; case 9: return TRANSCRIPT; + case 7: + return BLOB; case 11: return PAYLOAD; case 5: @@ -284,6 +287,60 @@ public com.google.protobuf.ByteString getTranscriptBytes() { } } + public static final int BLOB_FIELD_NUMBER = 7; + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + @java.lang.Override + public boolean hasBlob() { + return dataCase_ == 7; + } + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Blob getBlob() { + if (dataCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) data_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder() { + if (dataCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) data_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + public static final int PAYLOAD_FIELD_NUMBER = 11; /** @@ -712,6 +769,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataCase_ == 5) { output.writeMessage(5, (com.google.cloud.ces.v1.Image) data_); } + if (dataCase_ == 7) { + output.writeMessage(7, (com.google.cloud.ces.v1.Blob) data_); + } if (dataCase_ == 8) { output.writeMessage(8, (com.google.protobuf.Struct) data_); } @@ -756,6 +816,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.cloud.ces.v1.Image) data_); } + if (dataCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.ces.v1.Blob) data_); + } if (dataCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -797,6 +862,9 @@ public boolean equals(final java.lang.Object obj) { case 9: if (!getTranscript().equals(other.getTranscript())) return false; break; + case 7: + if (!getBlob().equals(other.getBlob())) return false; + break; case 11: if (!getPayload().equals(other.getPayload())) return false; break; @@ -841,6 +909,10 @@ public int hashCode() { hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER; hash = (53 * hash) + getTranscript().hashCode(); break; + case 7: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; case 11: hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); @@ -1010,6 +1082,9 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (blobBuilder_ != null) { + blobBuilder_.clear(); + } if (payloadBuilder_ != null) { payloadBuilder_.clear(); } @@ -1074,6 +1149,9 @@ private void buildPartial0(com.google.cloud.ces.v1.Chunk result) { private void buildPartialOneofs(com.google.cloud.ces.v1.Chunk result) { result.dataCase_ = dataCase_; result.data_ = this.data_; + if (dataCase_ == 7 && blobBuilder_ != null) { + result.data_ = blobBuilder_.build(); + } if (dataCase_ == 11 && payloadBuilder_ != null) { result.data_ = payloadBuilder_.build(); } @@ -1124,6 +1202,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Chunk other) { onChanged(); break; } + case BLOB: + { + mergeBlob(other.getBlob()); + break; + } case PAYLOAD: { mergePayload(other.getPayload()); @@ -1224,6 +1307,12 @@ public Builder mergeFrom( dataCase_ = 5; break; } // case 42 + case 58: + { + input.readMessage(internalGetBlobFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 7; + break; + } // case 58 case 66: { input.readMessage( @@ -1562,6 +1651,219 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder> + blobBuilder_; + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + @java.lang.Override + public boolean hasBlob() { + return dataCase_ == 7; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Blob getBlob() { + if (blobBuilder_ == null) { + if (dataCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) data_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } else { + if (dataCase_ == 7) { + return blobBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setBlob(com.google.cloud.ces.v1.Blob value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setBlob(com.google.cloud.ces.v1.Blob.Builder builderForValue) { + if (blobBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeBlob(com.google.cloud.ces.v1.Blob value) { + if (blobBuilder_ == null) { + if (dataCase_ == 7 && data_ != com.google.cloud.ces.v1.Blob.getDefaultInstance()) { + data_ = + com.google.cloud.ces.v1.Blob.newBuilder((com.google.cloud.ces.v1.Blob) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 7) { + blobBuilder_.mergeFrom(value); + } else { + blobBuilder_.setMessage(value); + } + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (dataCase_ == 7) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 7) { + dataCase_ = 0; + data_ = null; + } + blobBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.Blob.Builder getBlobBuilder() { + return internalGetBlobFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder() { + if ((dataCase_ == 7) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) data_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder> + internalGetBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(dataCase_ == 7)) { + data_ = com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + blobBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder>( + (com.google.cloud.ces.v1.Blob) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 7; + onChanged(); + return blobBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java index fd6a5ef8e5a5..eebacc95c152 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java @@ -104,6 +104,43 @@ public interface ChunkOrBuilder */ com.google.protobuf.ByteString getTranscriptBytes(); + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + boolean hasBlob(); + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + com.google.cloud.ces.v1.Blob getBlob(); + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java index 83f4820021d0..1bbf45244772 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java @@ -152,7 +152,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004cert\030\002 \001(\014B\003\340A\002\"Z\n" + "\026ServiceDirectoryConfig\022@\n" + "\007service\030\001 \001(\tB/\340A\002\372A)\n" - + "\'servicedirectory.googleapis.com/Service\"\211\n\n" + + "\'servicedirectory.googleapis.com/Service\"\303\n\n" + "\016ChannelProfile\022\027\n\n" + "profile_id\030\001 \001(\tB\003\340A\001\022J\n" + "\014channel_type\030\003 \001(\0162/.google.clo" @@ -170,7 +170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007Persona\022\013\n" + "\007UNKNOWN\020\000\022\013\n" + "\007CONCISE\020\001\022\n\n" - + "\006CHATTY\020\002\032\337\004\n" + + "\006CHATTY\020\002\032\371\004\n" + "\017WebWidgetConfig\022S\n" + "\010modality\030\001 \001(\0162<.google.cloud." + "ces.v1.ChannelProfile.WebWidgetConfig.ModalityB\003\340A\001\022M\n" @@ -183,16 +183,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024enable_public_access\030\001 \001(\010B\003\340A\001\022 \n" + "\023enable_origin_check\030\004 \001(\010B\003\340A\001\022\034\n" + "\017allowed_origins\030\002 \003(\tB\003\340A\001\022\035\n" - + "\020enable_recaptcha\030\003 \001(\010B\003\340A\001\"W\n" + + "\020enable_recaptcha\030\003 \001(\010B\003\340A\001\"q\n" + "\010Modality\022\030\n" + "\024MODALITY_UNSPECIFIED\020\000\022\022\n" + "\016CHAT_AND_VOICE\020\001\022\016\n\n" + "VOICE_ONLY\020\002\022\r\n" - + "\tCHAT_ONLY\020\003\"3\n" + + "\tCHAT_ONLY\020\003\022\030\n" + + "\024CHAT_VOICE_AND_VIDEO\020\004\"3\n" + "\005Theme\022\025\n" + "\021THEME_UNSPECIFIED\020\000\022\t\n" + "\005LIGHT\020\001\022\010\n" - + "\004DARK\020\002\"\206\001\n" + + "\004DARK\020\002\"\246\001\n" + "\013ChannelType\022\013\n" + "\007UNKNOWN\020\000\022\n\n" + "\006WEB_UI\020\002\022\007\n" @@ -200,7 +201,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006TWILIO\020\004\022\035\n" + "\031GOOGLE_TELEPHONY_PLATFORM\020\005\022\037\n" + "\033CONTACT_CENTER_AS_A_SERVICE\020\006\022\t\n" - + "\005FIVE9\020\007\"\232\002\n" + + "\005FIVE9\020\007\022\036\n" + + "\032CONTACT_CENTER_INTEGRATION\020\010\"\232\002\n" + "\004Span\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\0223\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" @@ -212,10 +214,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032EXECUTION_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013SYNCHRONOUS\020\001\022\020\n" + "\014ASYNCHRONOUS\020\002B\322\001\n" - + "\027com.google.cl" - + "oud.ces.v1B\013CommonProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojec" - + "ts/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" + + "\027com.google.cloud.ces.v1B\013CommonProt" + + "oP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locations" + + "/{location}/namespaces/{namespace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java index d61fcc0b1bb5..46da739d8088 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { *
            * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The source. */ @java.lang.Override @@ -647,7 +647,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -669,7 +669,7 @@ public int getSourceValue() { *
            * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -694,7 +694,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The source. */ @java.lang.Override @@ -718,7 +718,7 @@ public com.google.cloud.ces.v1.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @param value The source to set. * @return This builder for chaining. */ @@ -746,7 +746,7 @@ public Builder setSource(com.google.cloud.ces.v1.Conversation.Source value) { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java index 7efd6324132b..3c911ef443cc 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java index bc33b1718d76..d3a54a3f9680 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                * Identifier. The resource name of the deployment.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -112,7 +112,7 @@ public java.lang.String getName() { *
                * Identifier. The resource name of the deployment.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -194,13 +194,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
            -   * Required. The resource name of the app version to deploy.
            +   * Optional. The resource name of the app version to deploy.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +   * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +   * the draft app.
                * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The appVersion. @@ -222,13 +224,15 @@ public java.lang.String getAppVersion() { * * *
            -   * Required. The resource name of the app version to deploy.
            +   * Optional. The resource name of the app version to deploy.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +   * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +   * the draft app.
                * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for appVersion. @@ -966,7 +970,7 @@ public Builder mergeFrom( *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -991,7 +995,7 @@ public java.lang.String getName() { *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1016,7 +1020,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1040,7 +1044,7 @@ public Builder setName(java.lang.String value) { *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1060,7 +1064,7 @@ public Builder clearName() { *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1196,13 +1200,15 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The appVersion. @@ -1223,13 +1229,15 @@ public java.lang.String getAppVersion() { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for appVersion. @@ -1250,13 +1258,15 @@ public com.google.protobuf.ByteString getAppVersionBytes() { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The appVersion to set. @@ -1276,13 +1286,15 @@ public Builder setAppVersion(java.lang.String value) { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1298,13 +1310,15 @@ public Builder clearAppVersion() { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for appVersion to set. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java index f261fb983b8e..96dfc70c55ff 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java @@ -32,7 +32,7 @@ public interface DeploymentOrBuilder *
                * Identifier. The resource name of the deployment.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -47,7 +47,7 @@ public interface DeploymentOrBuilder *
                * Identifier. The resource name of the deployment.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -86,13 +86,15 @@ public interface DeploymentOrBuilder * * *
            -   * Required. The resource name of the app version to deploy.
            +   * Optional. The resource name of the app version to deploy.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +   * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +   * the draft app.
                * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The appVersion. @@ -103,13 +105,15 @@ public interface DeploymentOrBuilder * * *
            -   * Required. The resource name of the app version to deploy.
            +   * Optional. The resource name of the app version to deploy.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +   * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +   * the draft app.
                * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for appVersion. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicy.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicy.java new file mode 100644 index 000000000000..47279e40e2b6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicy.java @@ -0,0 +1,1134 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
            + * Defines project/location level endpoint control policy.
            + * 
            + * + * Protobuf type {@code google.cloud.ces.v1.EndpointControlPolicy} + */ +@com.google.protobuf.Generated +public final class EndpointControlPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EndpointControlPolicy) + EndpointControlPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndpointControlPolicy"); + } + + // Use EndpointControlPolicy.newBuilder() to construct. + private EndpointControlPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndpointControlPolicy() { + enforcementScope_ = 0; + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndpointControlPolicy.class, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder.class); + } + + /** + * + * + *
            +   * Defines the scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * Protobuf enum {@code google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope} + */ + public enum EnforcementScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified. This policy will be treated as VPCSC_ONLY.
            +     * 
            + * + * ENFORCEMENT_SCOPE_UNSPECIFIED = 0; + */ + ENFORCEMENT_SCOPE_UNSPECIFIED(0), + /** + * + * + *
            +     * This policy applies only when VPC-SC is active.
            +     * 
            + * + * VPCSC_ONLY = 1; + */ + VPCSC_ONLY(1), + /** + * + * + *
            +     * This policy ALWAYS applies, regardless of VPC-SC status.
            +     * 
            + * + * ALWAYS = 2; + */ + ALWAYS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EnforcementScope"); + } + + /** + * + * + *
            +     * Unspecified. This policy will be treated as VPCSC_ONLY.
            +     * 
            + * + * ENFORCEMENT_SCOPE_UNSPECIFIED = 0; + */ + public static final int ENFORCEMENT_SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * This policy applies only when VPC-SC is active.
            +     * 
            + * + * VPCSC_ONLY = 1; + */ + public static final int VPCSC_ONLY_VALUE = 1; + + /** + * + * + *
            +     * This policy ALWAYS applies, regardless of VPC-SC status.
            +     * 
            + * + * ALWAYS = 2; + */ + public static final int ALWAYS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnforcementScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EnforcementScope forNumber(int value) { + switch (value) { + case 0: + return ENFORCEMENT_SCOPE_UNSPECIFIED; + case 1: + return VPCSC_ONLY; + case 2: + return ALWAYS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnforcementScope findValueByNumber(int number) { + return EnforcementScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.EndpointControlPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final EnforcementScope[] VALUES = values(); + + public static EnforcementScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EnforcementScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope) + } + + public static final int ENFORCEMENT_SCOPE_FIELD_NUMBER = 1; + private int enforcementScope_ = 0; + + /** + * + * + *
            +   * Optional. The scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementScope. + */ + @java.lang.Override + public int getEnforcementScopeValue() { + return enforcementScope_; + } + + /** + * + * + *
            +   * Optional. The scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementScope. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope getEnforcementScope() { + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope result = + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope.forNumber(enforcementScope_); + return result == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope.UNRECOGNIZED + : result; + } + + public static final int ALLOWED_ORIGINS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { + return allowedOrigins_; + } + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + public int getAllowedOriginsCount() { + return allowedOrigins_.size(); + } + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + public java.lang.String getAllowedOrigins(int index) { + return allowedOrigins_.get(index); + } + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { + return allowedOrigins_.getByteString(index); + } + + 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 (enforcementScope_ + != com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope + .ENFORCEMENT_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, enforcementScope_); + } + for (int i = 0; i < allowedOrigins_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, allowedOrigins_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enforcementScope_ + != com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope + .ENFORCEMENT_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, enforcementScope_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedOrigins_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedOrigins_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedOriginsList().size(); + } + 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.ces.v1.EndpointControlPolicy)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EndpointControlPolicy other = + (com.google.cloud.ces.v1.EndpointControlPolicy) obj; + + if (enforcementScope_ != other.enforcementScope_) return false; + if (!getAllowedOriginsList().equals(other.getAllowedOriginsList())) 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) + ENFORCEMENT_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + enforcementScope_; + if (getAllowedOriginsCount() > 0) { + hash = (37 * hash) + ALLOWED_ORIGINS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedOriginsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy 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.ces.v1.EndpointControlPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy 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.ces.v1.EndpointControlPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.ces.v1.EndpointControlPolicy 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Defines project/location level endpoint control policy.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.EndpointControlPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EndpointControlPolicy) + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndpointControlPolicy.class, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.EndpointControlPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enforcementScope_ = 0; + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy build() { + com.google.cloud.ces.v1.EndpointControlPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy buildPartial() { + com.google.cloud.ces.v1.EndpointControlPolicy result = + new com.google.cloud.ces.v1.EndpointControlPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.EndpointControlPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enforcementScope_ = enforcementScope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedOrigins_.makeImmutable(); + result.allowedOrigins_ = allowedOrigins_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.EndpointControlPolicy) { + return mergeFrom((com.google.cloud.ces.v1.EndpointControlPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.EndpointControlPolicy other) { + if (other == com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance()) return this; + if (other.enforcementScope_ != 0) { + setEnforcementScopeValue(other.getEnforcementScopeValue()); + } + if (!other.allowedOrigins_.isEmpty()) { + if (allowedOrigins_.isEmpty()) { + allowedOrigins_ = other.allowedOrigins_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedOriginsIsMutable(); + allowedOrigins_.addAll(other.allowedOrigins_); + } + 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 8: + { + enforcementScope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(s); + 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 int enforcementScope_ = 0; + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementScope. + */ + @java.lang.Override + public int getEnforcementScopeValue() { + return enforcementScope_; + } + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for enforcementScope to set. + * @return This builder for chaining. + */ + public Builder setEnforcementScopeValue(int value) { + enforcementScope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementScope. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope getEnforcementScope() { + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope result = + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope.forNumber( + enforcementScope_); + return result == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enforcementScope to set. + * @return This builder for chaining. + */ + public Builder setEnforcementScope( + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + enforcementScope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnforcementScope() { + bitField0_ = (bitField0_ & ~0x00000001); + enforcementScope_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedOriginsIsMutable() { + if (!allowedOrigins_.isModifiable()) { + allowedOrigins_ = new com.google.protobuf.LazyStringArrayList(allowedOrigins_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { + allowedOrigins_.makeImmutable(); + return allowedOrigins_; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + public int getAllowedOriginsCount() { + return allowedOrigins_.size(); + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + public java.lang.String getAllowedOrigins(int index) { + return allowedOrigins_.get(index); + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { + return allowedOrigins_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The allowedOrigins to set. + * @return This builder for chaining. + */ + public Builder setAllowedOrigins(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedOriginsIsMutable(); + allowedOrigins_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllowedOrigins(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedOrigins(java.lang.Iterable values) { + ensureAllowedOriginsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedOrigins_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedOrigins() { + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllowedOriginsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EndpointControlPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EndpointControlPolicy) + private static final com.google.cloud.ces.v1.EndpointControlPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.EndpointControlPolicy(); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointControlPolicy 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.ces.v1.EndpointControlPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicyOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicyOrBuilder.java new file mode 100644 index 000000000000..492ff03e5d77 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicyOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface EndpointControlPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EndpointControlPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementScope. + */ + int getEnforcementScopeValue(); + + /** + * + * + *
            +   * Optional. The scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementScope. + */ + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope getEnforcementScope(); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + java.util.List getAllowedOriginsList(); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + int getAllowedOriginsCount(); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + java.lang.String getAllowedOrigins(int index); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + com.google.protobuf.ByteString getAllowedOriginsBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java new file mode 100644 index 000000000000..361b858c82cb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java @@ -0,0 +1,789 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
            + * Settings to describe how errors should be handled in the app.
            + * 
            + * + * Protobuf type {@code google.cloud.ces.v1.ErrorHandlingSettings} + */ +@com.google.protobuf.Generated +public final class ErrorHandlingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ErrorHandlingSettings) + ErrorHandlingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ErrorHandlingSettings"); + } + + // Use ErrorHandlingSettings.newBuilder() to construct. + private ErrorHandlingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ErrorHandlingSettings() { + errorHandlingStrategy_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ErrorHandlingSettings.class, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder.class); + } + + /** + * + * + *
            +   * Defines the strategy for handling errors.
            +   * 
            + * + * Protobuf enum {@code google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy} + */ + public enum ErrorHandlingStrategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified error handling strategy.
            +     * 
            + * + * ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0; + */ + ERROR_HANDLING_STRATEGY_UNSPECIFIED(0), + /** + * + * + *
            +     * No specific handling is enabled.
            +     * 
            + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
            +     * A fallback message will be returned to the user in case of
            +     * system errors (e.g. LLM errors).
            +     * 
            + * + * FALLBACK_RESPONSE = 2; + */ + FALLBACK_RESPONSE(2), + /** + * + * + *
            +     * An [EndSession][google.cloud.ces.v1.EndSession] signal will be emitted in
            +     * case of system errors (e.g. LLM errors).
            +     * 
            + * + * END_SESSION = 3; + */ + END_SESSION(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ErrorHandlingStrategy"); + } + + /** + * + * + *
            +     * Unspecified error handling strategy.
            +     * 
            + * + * ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0; + */ + public static final int ERROR_HANDLING_STRATEGY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * No specific handling is enabled.
            +     * 
            + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
            +     * A fallback message will be returned to the user in case of
            +     * system errors (e.g. LLM errors).
            +     * 
            + * + * FALLBACK_RESPONSE = 2; + */ + public static final int FALLBACK_RESPONSE_VALUE = 2; + + /** + * + * + *
            +     * An [EndSession][google.cloud.ces.v1.EndSession] signal will be emitted in
            +     * case of system errors (e.g. LLM errors).
            +     * 
            + * + * END_SESSION = 3; + */ + public static final int END_SESSION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ErrorHandlingStrategy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ErrorHandlingStrategy forNumber(int value) { + switch (value) { + case 0: + return ERROR_HANDLING_STRATEGY_UNSPECIFIED; + case 1: + return NONE; + case 2: + return FALLBACK_RESPONSE; + case 3: + return END_SESSION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorHandlingStrategy findValueByNumber(int number) { + return ErrorHandlingStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ErrorHandlingSettings.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorHandlingStrategy[] VALUES = values(); + + public static ErrorHandlingStrategy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ErrorHandlingStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy) + } + + public static final int ERROR_HANDLING_STRATEGY_FIELD_NUMBER = 1; + private int errorHandlingStrategy_ = 0; + + /** + * + * + *
            +   * Optional. The strategy to use for error handling.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for errorHandlingStrategy. + */ + @java.lang.Override + public int getErrorHandlingStrategyValue() { + return errorHandlingStrategy_; + } + + /** + * + * + *
            +   * Optional. The strategy to use for error handling.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingStrategy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy + getErrorHandlingStrategy() { + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy result = + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy.forNumber( + errorHandlingStrategy_); + return result == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy.UNRECOGNIZED + : result; + } + + 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 (errorHandlingStrategy_ + != com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy + .ERROR_HANDLING_STRATEGY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, errorHandlingStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (errorHandlingStrategy_ + != com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy + .ERROR_HANDLING_STRATEGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorHandlingStrategy_); + } + 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.ces.v1.ErrorHandlingSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ErrorHandlingSettings other = + (com.google.cloud.ces.v1.ErrorHandlingSettings) obj; + + if (errorHandlingStrategy_ != other.errorHandlingStrategy_) 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) + ERROR_HANDLING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + errorHandlingStrategy_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings 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.ces.v1.ErrorHandlingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings 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.ces.v1.ErrorHandlingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.ces.v1.ErrorHandlingSettings 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Settings to describe how errors should be handled in the app.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.ErrorHandlingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ErrorHandlingSettings) + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ErrorHandlingSettings.class, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ErrorHandlingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + errorHandlingStrategy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings build() { + com.google.cloud.ces.v1.ErrorHandlingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings buildPartial() { + com.google.cloud.ces.v1.ErrorHandlingSettings result = + new com.google.cloud.ces.v1.ErrorHandlingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ErrorHandlingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.errorHandlingStrategy_ = errorHandlingStrategy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ErrorHandlingSettings) { + return mergeFrom((com.google.cloud.ces.v1.ErrorHandlingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ErrorHandlingSettings other) { + if (other == com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance()) return this; + if (other.errorHandlingStrategy_ != 0) { + setErrorHandlingStrategyValue(other.getErrorHandlingStrategyValue()); + } + 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 8: + { + errorHandlingStrategy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int errorHandlingStrategy_ = 0; + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for errorHandlingStrategy. + */ + @java.lang.Override + public int getErrorHandlingStrategyValue() { + return errorHandlingStrategy_; + } + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for errorHandlingStrategy to set. + * @return This builder for chaining. + */ + public Builder setErrorHandlingStrategyValue(int value) { + errorHandlingStrategy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingStrategy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy + getErrorHandlingStrategy() { + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy result = + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy.forNumber( + errorHandlingStrategy_); + return result == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The errorHandlingStrategy to set. + * @return This builder for chaining. + */ + public Builder setErrorHandlingStrategy( + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + errorHandlingStrategy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearErrorHandlingStrategy() { + bitField0_ = (bitField0_ & ~0x00000001); + errorHandlingStrategy_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ErrorHandlingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ErrorHandlingSettings) + private static final com.google.cloud.ces.v1.ErrorHandlingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ErrorHandlingSettings(); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorHandlingSettings 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.ces.v1.ErrorHandlingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java new file mode 100644 index 000000000000..b3320490126f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ErrorHandlingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ErrorHandlingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The strategy to use for error handling.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for errorHandlingStrategy. + */ + int getErrorHandlingStrategyValue(); + + /** + * + * + *
            +   * Optional. The strategy to use for error handling.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingStrategy. + */ + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy getErrorHandlingStrategy(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java index 3830c9df095c..ea7568b0df22 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java @@ -4750,7 +4750,7 @@ public boolean hasGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -4772,7 +4772,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5562,7 +5562,7 @@ public Builder clearGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -5584,7 +5584,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5609,7 +5609,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5638,7 +5638,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @param value The hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5667,7 +5667,7 @@ public Builder setHallucinationMetricBehavior( * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java index 045eab77f914..143f99eea5cb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java @@ -84,7 +84,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Deprecated @@ -103,7 +103,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The hallucinationMetricBehavior. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java index 7c166305ebdf..a1cc6e438c30 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java @@ -104,18 +104,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007Message\022\021\n" + "\004role\030\001 \001(\tB\003\340A\001\022/\n" + "\006chunks\030\002 \003(\0132\032.google.cloud.ces.v1.ChunkB\003\340A\001\0223\n\n" - + "event_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\313\003\n" + + "event_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\373\003\n" + "\005Chunk\022\023\n" + "\004text\030\001 \001(\tB\003\340A\001H\000\022\031\n\n" - + "transcript\030\t \001(\tB\003\340A\001H\000\022/\n" + + "transcript\030\t \001(\tB\003\340A\001H\000\022.\n" + + "\004blob\030\007 \001(\0132\031.google.cloud.ces.v1.BlobB\003\340A\001H\000\022/\n" + "\007payload\030\013 \001(\0132\027.google.protobuf.StructB\003\340A\001H\000\0220\n" + "\005image\030\005 \001(\0132\032.google.cloud.ces.v1.ImageB\003\340A\001H\000\0227\n" + "\ttool_call\030\002" + " \001(\0132\035.google.cloud.ces.v1.ToolCallB\003\340A\001H\000\022?\n\r" + "tool_response\030\003" + " \001(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001H\000\022A\n" - + "\016agent_transfer\030\004" - + " \001(\0132\".google.cloud.ces.v1.AgentTransferB\003\340A\001H\000\0224\n" + + "\016agent_transfer\030\004 \001" + + "(\0132\".google.cloud.ces.v1.AgentTransferB\003\340A\001H\000\0224\n" + "\021updated_variables\030\010 \001(\0132\027.google.protobuf.StructH\000\0224\n" + "\021default_variables\030\n" + " \001(\0132\027.google.protobuf.StructH\000B\006\n" @@ -148,8 +149,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014target_agent\030\001 \001(\tB \340A\002\372A\032\n" + "\030ces.googleapis.com/Agent\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\003BT\n" - + "\027com.google.cloud.ces.v1B\014ExampleProtoP\001Z)cloud.g" - + "oogle.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "\027com.google.cloud.ces.v1B\014ExampleProtoP\001Z" + + ")cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -190,6 +191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Text", "Transcript", + "Blob", "Payload", "Image", "ToolCall", diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java index 2f08f2002492..04a987873a98 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java @@ -122,6 +122,56 @@ public ToolIdentifierCase getToolIdentifierCase() { return ToolIdentifierCase.forNumber(toolIdentifierCase_); } + private int toolExecutionContextCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolExecutionContext_; + + public enum ToolExecutionContextCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VARIABLES(5), + CONTEXT(6), + TOOLEXECUTIONCONTEXT_NOT_SET(0); + private final int value; + + private ToolExecutionContextCase(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 ToolExecutionContextCase valueOf(int value) { + return forNumber(value); + } + + public static ToolExecutionContextCase forNumber(int value) { + switch (value) { + case 5: + return VARIABLES; + case 6: + return CONTEXT; + case 0: + return TOOLEXECUTIONCONTEXT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolExecutionContextCase getToolExecutionContextCase() { + return ToolExecutionContextCase.forNumber(toolExecutionContextCase_); + } + public static final int TOOL_FIELD_NUMBER = 1; /** @@ -270,6 +320,120 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); } + public static final int VARIABLES_FIELD_NUMBER = 5; + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return toolExecutionContextCase_ == 5; + } + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + if (toolExecutionContextCase_ == 5) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if (toolExecutionContextCase_ == 5) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int CONTEXT_FIELD_NUMBER = 6; + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return toolExecutionContextCase_ == 6; + } + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Struct getContext() { + if (toolExecutionContextCase_ == 6) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + if (toolExecutionContextCase_ == 6) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + public static final int PARENT_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -407,6 +571,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, parent_); } + if (toolExecutionContextCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Struct) toolExecutionContext_); + } + if (toolExecutionContextCase_ == 6) { + output.writeMessage(6, (com.google.protobuf.Struct) toolExecutionContext_); + } getUnknownFields().writeTo(output); } @@ -430,6 +600,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parent_); } + if (toolExecutionContextCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.protobuf.Struct) toolExecutionContext_); + } + if (toolExecutionContextCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.protobuf.Struct) toolExecutionContext_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -462,6 +642,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getToolExecutionContextCase().equals(other.getToolExecutionContextCase())) return false; + switch (toolExecutionContextCase_) { + case 5: + if (!getVariables().equals(other.getVariables())) return false; + break; + case 6: + if (!getContext().equals(other.getContext())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -491,6 +682,18 @@ public int hashCode() { case 0: default: } + switch (toolExecutionContextCase_) { + case 5: + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariables().hashCode(); + break; + case 6: + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -644,6 +847,12 @@ public Builder clear() { if (toolsetToolBuilder_ != null) { toolsetToolBuilder_.clear(); } + if (variablesBuilder_ != null) { + variablesBuilder_.clear(); + } + if (contextBuilder_ != null) { + contextBuilder_.clear(); + } parent_ = ""; args_ = null; if (argsBuilder_ != null) { @@ -652,6 +861,8 @@ public Builder clear() { } toolIdentifierCase_ = 0; toolIdentifier_ = null; + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; return this; } @@ -689,11 +900,11 @@ public com.google.cloud.ces.v1.ExecuteToolRequest buildPartial() { private void buildPartial0(com.google.cloud.ces.v1.ExecuteToolRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.parent_ = parent_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); to_bitField0_ |= 0x00000001; } @@ -706,6 +917,14 @@ private void buildPartialOneofs(com.google.cloud.ces.v1.ExecuteToolRequest resul if (toolIdentifierCase_ == 3 && toolsetToolBuilder_ != null) { result.toolIdentifier_ = toolsetToolBuilder_.build(); } + result.toolExecutionContextCase_ = toolExecutionContextCase_; + result.toolExecutionContext_ = this.toolExecutionContext_; + if (toolExecutionContextCase_ == 5 && variablesBuilder_ != null) { + result.toolExecutionContext_ = variablesBuilder_.build(); + } + if (toolExecutionContextCase_ == 6 && contextBuilder_ != null) { + result.toolExecutionContext_ = contextBuilder_.build(); + } } @java.lang.Override @@ -722,7 +941,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolRequest other) { if (other == com.google.cloud.ces.v1.ExecuteToolRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasArgs()) { @@ -746,6 +965,22 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolRequest other) { break; } } + switch (other.getToolExecutionContextCase()) { + case VARIABLES: + { + mergeVariables(other.getVariables()); + break; + } + case CONTEXT: + { + mergeContext(other.getContext()); + break; + } + case TOOLEXECUTIONCONTEXT_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -782,7 +1017,7 @@ public Builder mergeFrom( case 18: { input.readMessage(internalGetArgsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 26: @@ -795,9 +1030,22 @@ public Builder mergeFrom( case 34: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 34 + case 42: + { + input.readMessage( + internalGetVariablesFieldBuilder().getBuilder(), extensionRegistry); + toolExecutionContextCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetContextFieldBuilder().getBuilder(), extensionRegistry); + toolExecutionContextCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -829,6 +1077,20 @@ public Builder clearToolIdentifier() { return this; } + private int toolExecutionContextCase_ = 0; + private java.lang.Object toolExecutionContext_; + + public ToolExecutionContextCase getToolExecutionContextCase() { + return ToolExecutionContextCase.forNumber(toolExecutionContextCase_); + } + + public Builder clearToolExecutionContext() { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + onChanged(); + return this; + } + private int bitField0_; /** @@ -1238,6 +1500,458 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { return toolsetToolBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + variablesBuilder_; + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return toolExecutionContextCase_ == 5; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + if (variablesBuilder_ == null) { + if (toolExecutionContextCase_ == 5) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (toolExecutionContextCase_ == 5) { + return variablesBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolExecutionContext_ = value; + onChanged(); + } else { + variablesBuilder_.setMessage(value); + } + toolExecutionContextCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (variablesBuilder_ == null) { + toolExecutionContext_ = builderForValue.build(); + onChanged(); + } else { + variablesBuilder_.setMessage(builderForValue.build()); + } + toolExecutionContextCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (toolExecutionContextCase_ == 5 + && toolExecutionContext_ != com.google.protobuf.Struct.getDefaultInstance()) { + toolExecutionContext_ = + com.google.protobuf.Struct.newBuilder( + (com.google.protobuf.Struct) toolExecutionContext_) + .mergeFrom(value) + .buildPartial(); + } else { + toolExecutionContext_ = value; + } + onChanged(); + } else { + if (toolExecutionContextCase_ == 5) { + variablesBuilder_.mergeFrom(value); + } else { + variablesBuilder_.setMessage(value); + } + } + toolExecutionContextCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearVariables() { + if (variablesBuilder_ == null) { + if (toolExecutionContextCase_ == 5) { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + onChanged(); + } + } else { + if (toolExecutionContextCase_ == 5) { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + } + variablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getVariablesBuilder() { + return internalGetVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if ((toolExecutionContextCase_ == 5) && (variablesBuilder_ != null)) { + return variablesBuilder_.getMessageOrBuilder(); + } else { + if (toolExecutionContextCase_ == 5) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + if (!(toolExecutionContextCase_ == 5)) { + toolExecutionContext_ = com.google.protobuf.Struct.getDefaultInstance(); + } + variablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) toolExecutionContext_, + getParentForChildren(), + isClean()); + toolExecutionContext_ = null; + } + toolExecutionContextCase_ = 5; + onChanged(); + return variablesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + contextBuilder_; + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return toolExecutionContextCase_ == 6; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Struct getContext() { + if (contextBuilder_ == null) { + if (toolExecutionContextCase_ == 6) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (toolExecutionContextCase_ == 6) { + return contextBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolExecutionContext_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + toolExecutionContextCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContext(com.google.protobuf.Struct.Builder builderForValue) { + if (contextBuilder_ == null) { + toolExecutionContext_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + toolExecutionContextCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { + if (toolExecutionContextCase_ == 6 + && toolExecutionContext_ != com.google.protobuf.Struct.getDefaultInstance()) { + toolExecutionContext_ = + com.google.protobuf.Struct.newBuilder( + (com.google.protobuf.Struct) toolExecutionContext_) + .mergeFrom(value) + .buildPartial(); + } else { + toolExecutionContext_ = value; + } + onChanged(); + } else { + if (toolExecutionContextCase_ == 6) { + contextBuilder_.mergeFrom(value); + } else { + contextBuilder_.setMessage(value); + } + } + toolExecutionContextCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + if (toolExecutionContextCase_ == 6) { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + onChanged(); + } + } else { + if (toolExecutionContextCase_ == 6) { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + } + contextBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getContextBuilder() { + return internalGetContextFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + if ((toolExecutionContextCase_ == 6) && (contextBuilder_ != null)) { + return contextBuilder_.getMessageOrBuilder(); + } else { + if (toolExecutionContextCase_ == 6) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetContextFieldBuilder() { + if (contextBuilder_ == null) { + if (!(toolExecutionContextCase_ == 6)) { + toolExecutionContext_ = com.google.protobuf.Struct.getDefaultInstance(); + } + contextBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) toolExecutionContext_, + getParentForChildren(), + isClean()); + toolExecutionContext_ = null; + } + toolExecutionContextCase_ = 6; + onChanged(); + return contextBuilder_; + } + private java.lang.Object parent_ = ""; /** @@ -1312,7 +2026,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1333,7 +2047,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1359,7 +2073,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1384,7 +2098,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the args field is set. */ public boolean hasArgs() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1426,7 +2140,7 @@ public Builder setArgs(com.google.protobuf.Struct value) { } else { argsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1447,7 +2161,7 @@ public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { } else { argsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1464,7 +2178,7 @@ public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeArgs(com.google.protobuf.Struct value) { if (argsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000020) != 0) && args_ != null && args_ != com.google.protobuf.Struct.getDefaultInstance()) { getArgsBuilder().mergeFrom(value); @@ -1475,7 +2189,7 @@ public Builder mergeArgs(com.google.protobuf.Struct value) { argsBuilder_.mergeFrom(value); } if (args_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1492,7 +2206,7 @@ public Builder mergeArgs(com.google.protobuf.Struct value) { * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearArgs() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); args_ = null; if (argsBuilder_ != null) { argsBuilder_.dispose(); @@ -1513,7 +2227,7 @@ public Builder clearArgs() { * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Struct.Builder getArgsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return internalGetArgsFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java index a55a4a9313da..ec2c88d8dc76 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java @@ -123,6 +123,86 @@ public interface ExecuteToolRequestOrBuilder */ com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder(); + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + boolean hasVariables(); + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + com.google.protobuf.Struct getVariables(); + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getVariablesOrBuilder(); + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the context field is set. + */ + boolean hasContext(); + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The context. + */ + com.google.protobuf.Struct getContext(); + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getContextOrBuilder(); + /** * * @@ -196,4 +276,6 @@ public interface ExecuteToolRequestOrBuilder com.google.protobuf.StructOrBuilder getArgsOrBuilder(); com.google.cloud.ces.v1.ExecuteToolRequest.ToolIdentifierCase getToolIdentifierCase(); + + com.google.cloud.ces.v1.ExecuteToolRequest.ToolExecutionContextCase getToolExecutionContextCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java index 6c5816cb96f5..3c79ebf630f2 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java @@ -257,13 +257,13 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return Whether the response field is set. */ @@ -276,13 +276,13 @@ public boolean hasResponse() { * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return The response. */ @@ -295,19 +295,68 @@ public com.google.protobuf.Struct getResponse() { * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; } + public static final int VARIABLES_FIELD_NUMBER = 4; + private com.google.protobuf.Struct variables_; + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -331,6 +380,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toolIdentifierCase_ == 3) { output.writeMessage(3, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getVariables()); + } getUnknownFields().writeTo(output); } @@ -351,6 +403,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVariables()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -371,6 +426,10 @@ public boolean equals(final java.lang.Object obj) { if (hasResponse()) { if (!getResponse().equals(other.getResponse())) return false; } + if (hasVariables() != other.hasVariables()) return false; + if (hasVariables()) { + if (!getVariables().equals(other.getVariables())) return false; + } if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; switch (toolIdentifierCase_) { case 1: @@ -397,6 +456,10 @@ public int hashCode() { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } + if (hasVariables()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariables().hashCode(); + } switch (toolIdentifierCase_) { case 1: hash = (37 * hash) + TOOL_FIELD_NUMBER; @@ -552,6 +615,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetResponseFieldBuilder(); + internalGetVariablesFieldBuilder(); } } @@ -567,6 +631,11 @@ public Builder clear() { responseBuilder_.dispose(); responseBuilder_ = null; } + variables_ = null; + if (variablesBuilder_ != null) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + } toolIdentifierCase_ = 0; toolIdentifier_ = null; return this; @@ -611,6 +680,10 @@ private void buildPartial0(com.google.cloud.ces.v1.ExecuteToolResponse result) { result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.variables_ = variablesBuilder_ == null ? variables_ : variablesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -637,6 +710,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolResponse other) { if (other.hasResponse()) { mergeResponse(other.getResponse()); } + if (other.hasVariables()) { + mergeVariables(other.getVariables()); + } switch (other.getToolIdentifierCase()) { case TOOL: { @@ -702,6 +778,13 @@ public Builder mergeFrom( toolIdentifierCase_ = 3; break; } // case 26 + case 34: + { + input.readMessage( + internalGetVariablesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1108,13 +1191,13 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return Whether the response field is set. */ @@ -1126,13 +1209,13 @@ public boolean hasResponse() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return The response. */ @@ -1148,13 +1231,13 @@ public com.google.protobuf.Struct getResponse() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public Builder setResponse(com.google.protobuf.Struct value) { if (responseBuilder_ == null) { @@ -1174,13 +1257,13 @@ public Builder setResponse(com.google.protobuf.Struct value) { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) { if (responseBuilder_ == null) { @@ -1197,13 +1280,13 @@ public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public Builder mergeResponse(com.google.protobuf.Struct value) { if (responseBuilder_ == null) { @@ -1228,13 +1311,13 @@ public Builder mergeResponse(com.google.protobuf.Struct value) { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public Builder clearResponse() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1251,13 +1334,13 @@ public Builder clearResponse() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public com.google.protobuf.Struct.Builder getResponseBuilder() { bitField0_ |= 0x00000004; @@ -1269,13 +1352,13 @@ public com.google.protobuf.Struct.Builder getResponseBuilder() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { @@ -1289,13 +1372,13 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Struct, @@ -1314,6 +1397,196 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { return responseBuilder_; } + private com.google.protobuf.Struct variables_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + variablesBuilder_; + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return Whether the variables field is set. + */ + public boolean hasVariables() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return The variables. + */ + public com.google.protobuf.Struct getVariables() { + if (variablesBuilder_ == null) { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } else { + return variablesBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public Builder setVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + variables_ = value; + } else { + variablesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public Builder setVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (variablesBuilder_ == null) { + variables_ = builderForValue.build(); + } else { + variablesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public Builder mergeVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && variables_ != null + && variables_ != com.google.protobuf.Struct.getDefaultInstance()) { + getVariablesBuilder().mergeFrom(value); + } else { + variables_ = value; + } + } else { + variablesBuilder_.mergeFrom(value); + } + if (variables_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public Builder clearVariables() { + bitField0_ = (bitField0_ & ~0x00000008); + variables_ = null; + if (variablesBuilder_ != null) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public com.google.protobuf.Struct.Builder getVariablesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if (variablesBuilder_ != null) { + return variablesBuilder_.getMessageOrBuilder(); + } else { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + variablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getVariables(), getParentForChildren(), isClean()); + variables_ = null; + } + return variablesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExecuteToolResponse) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java index 5d2f81877f1d..69cea8c22ec8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java @@ -109,13 +109,13 @@ public interface ExecuteToolResponseOrBuilder * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return Whether the response field is set. */ @@ -125,13 +125,13 @@ public interface ExecuteToolResponseOrBuilder * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return The response. */ @@ -141,15 +141,52 @@ public interface ExecuteToolResponseOrBuilder * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ com.google.protobuf.StructOrBuilder getResponseOrBuilder(); + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return Whether the variables field is set. + */ + boolean hasVariables(); + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return The variables. + */ + com.google.protobuf.Struct getVariables(); + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + */ + com.google.protobuf.StructOrBuilder getVariablesOrBuilder(); + com.google.cloud.ces.v1.ExecuteToolResponse.ToolIdentifierCase getToolIdentifierCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java index 1c3fc4ce260e..896730999b3a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java @@ -56,6 +56,7 @@ private ExportAppRequest() { name_ = ""; exportFormat_ = 0; gcsUri_ = ""; + appVersion_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -401,6 +402,67 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } } + public static final int APP_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object appVersion_ = ""; + + /** + * + * + *
            +   * Optional. The resource name of the app version to export.
            +   * Format:
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +   * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + @java.lang.Override + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + 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(); + appVersion_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The resource name of the app version to export.
            +   * Format:
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +   * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -426,6 +488,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, gcsUri_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, appVersion_); + } getUnknownFields().writeTo(output); } @@ -446,6 +511,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gcsUri_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, appVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -464,6 +532,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (exportFormat_ != other.exportFormat_) return false; if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getAppVersion().equals(other.getAppVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -481,6 +550,8 @@ public int hashCode() { hash = (53 * hash) + exportFormat_; hash = (37 * hash) + GCS_URI_FIELD_NUMBER; hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -625,6 +696,7 @@ public Builder clear() { name_ = ""; exportFormat_ = 0; gcsUri_ = ""; + appVersion_ = ""; return this; } @@ -670,6 +742,9 @@ private void buildPartial0(com.google.cloud.ces.v1.ExportAppRequest result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.gcsUri_ = gcsUri_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.appVersion_ = appVersion_; + } } @java.lang.Override @@ -697,6 +772,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExportAppRequest other) { bitField0_ |= 0x00000004; onChanged(); } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -741,6 +821,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + appVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1114,6 +1200,137 @@ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object appVersion_ = ""; + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppVersion() { + appVersion_ = getDefaultInstance().getAppVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExportAppRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java index b771d020aee7..ae847adcc262 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java @@ -117,4 +117,38 @@ public interface ExportAppRequestOrBuilder * @return The bytes for gcsUri. */ com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
            +   * Optional. The resource name of the app version to export.
            +   * Format:
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +   * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + java.lang.String getAppVersion(); + + /** + * + * + *
            +   * Optional. The resource name of the app version to export.
            +   * Format:
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +   * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + com.google.protobuf.ByteString getAppVersionBytes(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java index f568a91089d7..06f7e42cc905 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java @@ -248,6 +248,25 @@ public com.google.protobuf.ByteString getRecaptchaTokenBytes() { } } + public static final int LIVE_HANDOFF_ENABLED_FIELD_NUMBER = 4; + private boolean liveHandoffEnabled_ = false; + + /** + * + * + *
            +   * Optional. Indicates if live handoff is enabled for the session.
            +   * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The liveHandoffEnabled. + */ + @java.lang.Override + public boolean getLiveHandoffEnabled() { + return liveHandoffEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -271,6 +290,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(recaptchaToken_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, recaptchaToken_); } + if (liveHandoffEnabled_ != false) { + output.writeBool(4, liveHandoffEnabled_); + } getUnknownFields().writeTo(output); } @@ -289,6 +311,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(recaptchaToken_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, recaptchaToken_); } + if (liveHandoffEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, liveHandoffEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -308,6 +333,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDeployment().equals(other.getDeployment())) return false; if (!getRecaptchaToken().equals(other.getRecaptchaToken())) return false; + if (getLiveHandoffEnabled() != other.getLiveHandoffEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,6 +351,8 @@ public int hashCode() { hash = (53 * hash) + getDeployment().hashCode(); hash = (37 * hash) + RECAPTCHA_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getRecaptchaToken().hashCode(); + hash = (37 * hash) + LIVE_HANDOFF_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLiveHandoffEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -469,6 +497,7 @@ public Builder clear() { name_ = ""; deployment_ = ""; recaptchaToken_ = ""; + liveHandoffEnabled_ = false; return this; } @@ -514,6 +543,9 @@ private void buildPartial0(com.google.cloud.ces.v1.GenerateChatTokenRequest resu if (((from_bitField0_ & 0x00000004) != 0)) { result.recaptchaToken_ = recaptchaToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.liveHandoffEnabled_ = liveHandoffEnabled_; + } } @java.lang.Override @@ -544,6 +576,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.GenerateChatTokenRequest other) bitField0_ |= 0x00000004; onChanged(); } + if (other.getLiveHandoffEnabled() != false) { + setLiveHandoffEnabled(other.getLiveHandoffEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -588,6 +623,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + liveHandoffEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -980,6 +1021,62 @@ public Builder setRecaptchaTokenBytes(com.google.protobuf.ByteString value) { return this; } + private boolean liveHandoffEnabled_; + + /** + * + * + *
            +     * Optional. Indicates if live handoff is enabled for the session.
            +     * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The liveHandoffEnabled. + */ + @java.lang.Override + public boolean getLiveHandoffEnabled() { + return liveHandoffEnabled_; + } + + /** + * + * + *
            +     * Optional. Indicates if live handoff is enabled for the session.
            +     * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The liveHandoffEnabled to set. + * @return This builder for chaining. + */ + public Builder setLiveHandoffEnabled(boolean value) { + + liveHandoffEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Indicates if live handoff is enabled for the session.
            +     * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLiveHandoffEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + liveHandoffEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GenerateChatTokenRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java index 61f2208bd1a1..e1705ca7522d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java @@ -119,4 +119,17 @@ public interface GenerateChatTokenRequestOrBuilder * @return The bytes for recaptchaToken. */ com.google.protobuf.ByteString getRecaptchaTokenBytes(); + + /** + * + * + *
            +   * Optional. Indicates if live handoff is enabled for the session.
            +   * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The liveHandoffEnabled. + */ + boolean getLiveHandoffEnabled(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java index 5bf4f86418b7..72223c135539 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The source. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -668,7 +668,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -693,7 +693,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The source. */ @java.lang.Override @@ -717,7 +717,7 @@ public com.google.cloud.ces.v1.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @param value The source to set. * @return This builder for chaining. */ @@ -745,7 +745,7 @@ public Builder setSource(com.google.cloud.ces.v1.Conversation.Source value) { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java index ca56322d747c..cc91ba6382d0 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java index 1cb0bf940bc5..7fcc39165207 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java @@ -230,8 +230,11 @@ public boolean getEnableMultilingualSupport() { * * *
            -   * Optional. The action to perform when an agent receives input in an
            -   * unsupported language.
            +   * Optional. Deprecated: This feature is no longer supported. Use
            +   * `enable_multilingual_support` instead to improve handling of multilingual
            +   * input.
            +   * The action to perform when an agent receives input in an unsupported
            +   * language.
                *
                * This can be a predefined action or a custom tool call.
                * Valid values are:
            @@ -242,11 +245,15 @@ public boolean getEnableMultilingualSupport() {
                * conversation.
                * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The fallbackAction. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getFallbackAction() { java.lang.Object ref = fallbackAction_; if (ref instanceof java.lang.String) { @@ -263,8 +270,11 @@ public java.lang.String getFallbackAction() { * * *
            -   * Optional. The action to perform when an agent receives input in an
            -   * unsupported language.
            +   * Optional. Deprecated: This feature is no longer supported. Use
            +   * `enable_multilingual_support` instead to improve handling of multilingual
            +   * input.
            +   * The action to perform when an agent receives input in an unsupported
            +   * language.
                *
                * This can be a predefined action or a custom tool call.
                * Valid values are:
            @@ -275,11 +285,15 @@ public java.lang.String getFallbackAction() {
                * conversation.
                * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The bytes for fallbackAction. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getFallbackActionBytes() { java.lang.Object ref = fallbackAction_; if (ref instanceof java.lang.String) { @@ -1064,8 +1078,11 @@ public Builder clearEnableMultilingualSupport() { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1076,10 +1093,15 @@ public Builder clearEnableMultilingualSupport() {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The fallbackAction. */ + @java.lang.Deprecated public java.lang.String getFallbackAction() { java.lang.Object ref = fallbackAction_; if (!(ref instanceof java.lang.String)) { @@ -1096,8 +1118,11 @@ public java.lang.String getFallbackAction() { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1108,10 +1133,15 @@ public java.lang.String getFallbackAction() {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The bytes for fallbackAction. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getFallbackActionBytes() { java.lang.Object ref = fallbackAction_; if (ref instanceof String) { @@ -1128,8 +1158,11 @@ public com.google.protobuf.ByteString getFallbackActionBytes() { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1140,11 +1173,16 @@ public com.google.protobuf.ByteString getFallbackActionBytes() {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @param value The fallbackAction to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setFallbackAction(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1159,8 +1197,11 @@ public Builder setFallbackAction(java.lang.String value) { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1171,10 +1212,15 @@ public Builder setFallbackAction(java.lang.String value) {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearFallbackAction() { fallbackAction_ = getDefaultInstance().getFallbackAction(); bitField0_ = (bitField0_ & ~0x00000008); @@ -1186,8 +1232,11 @@ public Builder clearFallbackAction() { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1198,11 +1247,16 @@ public Builder clearFallbackAction() {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @param value The bytes for fallbackAction to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setFallbackActionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java index 6a1731f88dee..dd6947bebbcf 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java @@ -132,8 +132,11 @@ public interface LanguageSettingsOrBuilder * * *
            -   * Optional. The action to perform when an agent receives input in an
            -   * unsupported language.
            +   * Optional. Deprecated: This feature is no longer supported. Use
            +   * `enable_multilingual_support` instead to improve handling of multilingual
            +   * input.
            +   * The action to perform when an agent receives input in an unsupported
            +   * language.
                *
                * This can be a predefined action or a custom tool call.
                * Valid values are:
            @@ -144,18 +147,25 @@ public interface LanguageSettingsOrBuilder
                * conversation.
                * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The fallbackAction. */ + @java.lang.Deprecated java.lang.String getFallbackAction(); /** * * *
            -   * Optional. The action to perform when an agent receives input in an
            -   * unsupported language.
            +   * Optional. Deprecated: This feature is no longer supported. Use
            +   * `enable_multilingual_support` instead to improve handling of multilingual
            +   * input.
            +   * The action to perform when an agent receives input in an unsupported
            +   * language.
                *
                * This can be a predefined action or a custom tool call.
                * Valid values are:
            @@ -166,9 +176,13 @@ public interface LanguageSettingsOrBuilder
                * conversation.
                * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The bytes for fallbackAction. */ + @java.lang.Deprecated com.google.protobuf.ByteString getFallbackActionBytes(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java index 3a2e0fef2770..c041acb02676 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java @@ -64,6 +64,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1_McpTool_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -543,6 +555,135 @@ public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig( : serviceDirectoryConfig_; } + public static final int CUSTOM_HEADERS_FIELD_NUMBER = 9; + + private static final class CustomHeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.McpToolProto + .internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField customHeaders_; + + private com.google.protobuf.MapField + internalGetCustomHeaders() { + if (customHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomHeadersDefaultEntryHolder.defaultEntry); + } + return customHeaders_; + } + + public int getCustomHeadersCount() { + return internalGetCustomHeaders().getMap().size(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomHeaders().getMap().containsKey(key); + } + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomHeaders() { + return getCustomHeadersMap(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomHeadersMap() { + return internalGetCustomHeaders().getMap(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -581,6 +722,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getServiceDirectoryConfig()); } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetCustomHeaders(), CustomHeadersDefaultEntryHolder.defaultEntry, 9); getUnknownFields().writeTo(output); } @@ -615,6 +758,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getServiceDirectoryConfig()); } + for (java.util.Map.Entry entry : + internalGetCustomHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry customHeaders__ = + CustomHeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, customHeaders__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -653,6 +806,7 @@ public boolean equals(final java.lang.Object obj) { if (hasServiceDirectoryConfig()) { if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; } + if (!internalGetCustomHeaders().equals(other.internalGetCustomHeaders())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -690,6 +844,10 @@ public int hashCode() { hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); } + if (!internalGetCustomHeaders().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomHeaders().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -810,6 +968,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1_McpTool_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -871,6 +1051,7 @@ public Builder clear() { serviceDirectoryConfigBuilder_.dispose(); serviceDirectoryConfigBuilder_ = null; } + internalGetMutableCustomHeaders().clear(); return this; } @@ -944,6 +1125,10 @@ private void buildPartial0(com.google.cloud.ces.v1.McpTool result) { : serviceDirectoryConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customHeaders_ = internalGetCustomHeaders(); + result.customHeaders_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -989,6 +1174,8 @@ public Builder mergeFrom(com.google.cloud.ces.v1.McpTool other) { if (other.hasServiceDirectoryConfig()) { mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); } + internalGetMutableCustomHeaders().mergeFrom(other.internalGetCustomHeaders()); + bitField0_ |= 0x00000100; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1069,6 +1256,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + com.google.protobuf.MapEntry customHeaders__ = + input.readMessage( + CustomHeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableCustomHeaders() + .getMutableMap() + .put(customHeaders__.getKey(), customHeaders__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2554,6 +2753,216 @@ public Builder clearServiceDirectoryConfig() { return serviceDirectoryConfigBuilder_; } + private com.google.protobuf.MapField customHeaders_; + + private com.google.protobuf.MapField + internalGetCustomHeaders() { + if (customHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomHeadersDefaultEntryHolder.defaultEntry); + } + return customHeaders_; + } + + private com.google.protobuf.MapField + internalGetMutableCustomHeaders() { + if (customHeaders_ == null) { + customHeaders_ = + com.google.protobuf.MapField.newMapField(CustomHeadersDefaultEntryHolder.defaultEntry); + } + if (!customHeaders_.isMutable()) { + customHeaders_ = customHeaders_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return customHeaders_; + } + + public int getCustomHeadersCount() { + return internalGetCustomHeaders().getMap().size(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomHeaders().getMap().containsKey(key); + } + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomHeaders() { + return getCustomHeadersMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomHeadersMap() { + return internalGetCustomHeaders().getMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomHeaders() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableCustomHeaders().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCustomHeaders().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCustomHeaders() { + bitField0_ |= 0x00000100; + return internalGetMutableCustomHeaders().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putCustomHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableCustomHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllCustomHeaders(java.util.Map values) { + internalGetMutableCustomHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpTool) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java index 4af83056c35d..2506d5c6caf8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java @@ -336,4 +336,92 @@ public interface McpToolOrBuilder * */ com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomHeadersCount(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsCustomHeaders(java.lang.String key); + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCustomHeaders(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getCustomHeadersMap(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getCustomHeadersOrThrow(java.lang.String key); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java index 5288becd8d77..bb1a2478065c 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_McpTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_McpTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -57,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"google/cloud/ces/v1/mcp_tool.proto\022\023go" + "ogle.cloud.ces.v1\032\037google/api/field_beha" + "vior.proto\032\036google/cloud/ces/v1/auth.proto\032" - + " google/cloud/ces/v1/common.proto\032 google/cloud/ces/v1/schema.proto\"\232\003\n" + + " google/cloud/ces/v1/common.proto\032 google/cloud/ces/v1/schema.proto\"\236\004\n" + "\007McpTool\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\0226\n" @@ -70,9 +74,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\0227\n\n" + "tls_config\030\007 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022R\n" + "\030service_directory_config\030\010 \001(\0132+.goog" - + "le.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001BT\n" - + "\027com.google.cloud.ces.v1B\014McpToolProtoP\001Z)cloud.google.com/go/ces/apiv1/ce" - + "spb;cespbb\006proto3" + + "le.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\022L\n" + + "\016custom_headers\030\t \003(\0132/.google.clo" + + "ud.ces.v1.McpTool.CustomHeadersEntryB\003\340A\001\0324\n" + + "\022CustomHeadersEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001BT\n" + + "\027com.google.cloud.ces.v1B\014McpToolProtoP\001Z)cloud.google.com/go/" + + "ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -96,6 +105,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiAuthentication", "TlsConfig", "ServiceDirectoryConfig", + "CustomHeaders", + }); + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor = + internal_static_google_cloud_ces_v1_McpTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java index 4062c419a957..9faa759576ba 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java @@ -61,6 +61,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1_McpToolset_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -321,6 +333,135 @@ public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; } + public static final int CUSTOM_HEADERS_FIELD_NUMBER = 5; + + private static final class CustomHeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField customHeaders_; + + private com.google.protobuf.MapField + internalGetCustomHeaders() { + if (customHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomHeadersDefaultEntryHolder.defaultEntry); + } + return customHeaders_; + } + + public int getCustomHeadersCount() { + return internalGetCustomHeaders().getMap().size(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomHeaders().getMap().containsKey(key); + } + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomHeaders() { + return getCustomHeadersMap(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomHeadersMap() { + return internalGetCustomHeaders().getMap(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -347,6 +488,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getTlsConfig()); } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetCustomHeaders(), CustomHeadersDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @@ -369,6 +512,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTlsConfig()); } + for (java.util.Map.Entry entry : + internalGetCustomHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry customHeaders__ = + CustomHeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, customHeaders__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -397,6 +550,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTlsConfig()) { if (!getTlsConfig().equals(other.getTlsConfig())) return false; } + if (!internalGetCustomHeaders().equals(other.internalGetCustomHeaders())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,6 +576,10 @@ public int hashCode() { hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getTlsConfig().hashCode(); } + if (!internalGetCustomHeaders().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomHeaders().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -541,6 +699,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1_McpToolset_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -589,6 +769,7 @@ public Builder clear() { tlsConfigBuilder_.dispose(); tlsConfigBuilder_ = null; } + internalGetMutableCustomHeaders().clear(); return this; } @@ -646,6 +827,10 @@ private void buildPartial0(com.google.cloud.ces.v1.McpToolset result) { result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customHeaders_ = internalGetCustomHeaders(); + result.customHeaders_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -675,6 +860,8 @@ public Builder mergeFrom(com.google.cloud.ces.v1.McpToolset other) { if (other.hasTlsConfig()) { mergeTlsConfig(other.getTlsConfig()); } + internalGetMutableCustomHeaders().mergeFrom(other.internalGetCustomHeaders()); + bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -729,6 +916,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + com.google.protobuf.MapEntry customHeaders__ = + input.readMessage( + CustomHeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableCustomHeaders() + .getMutableMap() + .put(customHeaders__.getKey(), customHeaders__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1572,6 +1771,216 @@ public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { return tlsConfigBuilder_; } + private com.google.protobuf.MapField customHeaders_; + + private com.google.protobuf.MapField + internalGetCustomHeaders() { + if (customHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomHeadersDefaultEntryHolder.defaultEntry); + } + return customHeaders_; + } + + private com.google.protobuf.MapField + internalGetMutableCustomHeaders() { + if (customHeaders_ == null) { + customHeaders_ = + com.google.protobuf.MapField.newMapField(CustomHeadersDefaultEntryHolder.defaultEntry); + } + if (!customHeaders_.isMutable()) { + customHeaders_ = customHeaders_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return customHeaders_; + } + + public int getCustomHeadersCount() { + return internalGetCustomHeaders().getMap().size(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomHeaders().getMap().containsKey(key); + } + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomHeaders() { + return getCustomHeadersMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomHeadersMap() { + return internalGetCustomHeaders().getMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomHeaders() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableCustomHeaders().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCustomHeaders().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCustomHeaders() { + bitField0_ |= 0x00000010; + return internalGetMutableCustomHeaders().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putCustomHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableCustomHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllCustomHeaders(java.util.Map values) { + internalGetMutableCustomHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpToolset) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java index 29a4e311548f..4587df97f0a4 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java @@ -202,4 +202,92 @@ public interface McpToolsetOrBuilder * */ com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomHeadersCount(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsCustomHeaders(java.lang.String key); + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCustomHeaders(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getCustomHeadersMap(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getCustomHeadersOrThrow(java.lang.String key); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java index 8a30cb88bd69..03c34accbdc7 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_McpToolset_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_McpToolset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -53,19 +57,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n%google/cloud/ces/v1/mcp_toolset.proto\022" + "\n" + + "%google/cloud/ces/v1/mcp_toolset.proto\022" + "\023google.cloud.ces.v1\032\037google/api/field_b" - + "ehavior.proto\032\036google/cloud/ces/v1/auth." - + "proto\032 google/cloud/ces/v1/common.proto\"" - + "\377\001\n\nMcpToolset\022\033\n\016server_address\030\001 \001(\tB\003" - + "\340A\002\022G\n\022api_authentication\030\002 \001(\0132&.google" - + ".cloud.ces.v1.ApiAuthenticationB\003\340A\001\022R\n\030" - + "service_directory_config\030\003 \001(\0132+.google." - + "cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001" - + "\0227\n\ntls_config\030\004 \001(\0132\036.google.cloud.ces." - + "v1.TlsConfigB\003\340A\001BW\n\027com.google.cloud.ce" - + "s.v1B\017McpToolsetProtoP\001Z)cloud.google.co" - + "m/go/ces/apiv1/cespb;cespbb\006proto3" + + "ehavior.proto\032\036google/cloud/ces/v1/auth.proto\032" + + " google/cloud/ces/v1/common.proto\"\206\003\n\n" + + "McpToolset\022\033\n" + + "\016server_address\030\001 \001(\tB\003\340A\002\022G\n" + + "\022api_authentication\030\002" + + " \001(\0132&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\022R\n" + + "\030service_directory_config\030\003 \001(\0132+.google." + + "cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\0227\n\n" + + "tls_config\030\004 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022O\n" + + "\016custom_headers\030\005 \003(" + + "\01322.google.cloud.ces.v1.McpToolset.CustomHeadersEntryB\003\340A\001\0324\n" + + "\022CustomHeadersEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001BW\n" + + "\027com.google.cloud.ces.v1B\017McpToolsetProtoP\001Z)" + + "cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -80,7 +90,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_McpToolset_descriptor, new java.lang.String[] { - "ServerAddress", "ApiAuthentication", "ServiceDirectoryConfig", "TlsConfig", + "ServerAddress", + "ApiAuthentication", + "ServiceDirectoryConfig", + "TlsConfig", + "CustomHeaders", + }); + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor = + internal_static_google_cloud_ces_v1_McpToolset_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java index 2730c970e430..8182e77b9758 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java @@ -257,11 +257,10 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return Whether the inputSchema field is set. */ @@ -274,11 +273,10 @@ public boolean hasInputSchema() { * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return The inputSchema. */ @@ -293,11 +291,10 @@ public com.google.cloud.ces.v1.Schema getInputSchema() { * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ @java.lang.Override public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { @@ -313,11 +310,10 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return Whether the outputSchema field is set. */ @@ -330,11 +326,10 @@ public boolean hasOutputSchema() { * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return The outputSchema. */ @@ -349,11 +344,10 @@ public com.google.cloud.ces.v1.Schema getOutputSchema() { * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ @java.lang.Override public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { @@ -1199,11 +1193,10 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return Whether the inputSchema field is set. */ @@ -1215,11 +1208,10 @@ public boolean hasInputSchema() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return The inputSchema. */ @@ -1237,11 +1229,10 @@ public com.google.cloud.ces.v1.Schema getInputSchema() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public Builder setInputSchema(com.google.cloud.ces.v1.Schema value) { if (inputSchemaBuilder_ == null) { @@ -1261,11 +1252,10 @@ public Builder setInputSchema(com.google.cloud.ces.v1.Schema value) { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { if (inputSchemaBuilder_ == null) { @@ -1282,11 +1272,10 @@ public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForV * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { if (inputSchemaBuilder_ == null) { @@ -1311,11 +1300,10 @@ public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public Builder clearInputSchema() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1332,11 +1320,10 @@ public Builder clearInputSchema() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public com.google.cloud.ces.v1.Schema.Builder getInputSchemaBuilder() { bitField0_ |= 0x00000004; @@ -1348,11 +1335,10 @@ public com.google.cloud.ces.v1.Schema.Builder getInputSchemaBuilder() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { if (inputSchemaBuilder_ != null) { @@ -1368,11 +1354,10 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.Schema, @@ -1402,12 +1387,10 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return Whether the outputSchema field is set. */ @@ -1419,12 +1402,10 @@ public boolean hasOutputSchema() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return The outputSchema. */ @@ -1442,12 +1423,10 @@ public com.google.cloud.ces.v1.Schema getOutputSchema() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema value) { if (outputSchemaBuilder_ == null) { @@ -1467,12 +1446,10 @@ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema value) { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { if (outputSchemaBuilder_ == null) { @@ -1489,12 +1466,10 @@ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderFor * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { if (outputSchemaBuilder_ == null) { @@ -1519,12 +1494,10 @@ public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public Builder clearOutputSchema() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1541,12 +1514,10 @@ public Builder clearOutputSchema() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public com.google.cloud.ces.v1.Schema.Builder getOutputSchemaBuilder() { bitField0_ |= 0x00000008; @@ -1558,12 +1529,10 @@ public com.google.cloud.ces.v1.Schema.Builder getOutputSchemaBuilder() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { if (outputSchemaBuilder_ != null) { @@ -1579,12 +1548,10 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.Schema, diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java index 04dd255917ac..b46547317ebe 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java @@ -109,11 +109,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return Whether the inputSchema field is set. */ @@ -123,11 +122,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return The inputSchema. */ @@ -137,11 +135,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder(); @@ -149,11 +146,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return Whether the outputSchema field is set. */ @@ -163,11 +159,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return The outputSchema. */ @@ -177,11 +172,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java index 3a88143fbc08..8a69121bbfe8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java @@ -80,11 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public java.util.List getToolsList() { @@ -95,11 +94,10 @@ public java.util.List getToolsList() { * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public java.util.List getToolsOrBuilderList() { @@ -110,11 +108,10 @@ public java.util.List getToolsO * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public int getToolsCount() { @@ -125,11 +122,10 @@ public int getToolsCount() { * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public com.google.cloud.ces.v1.Tool getTools(int index) { @@ -140,11 +136,10 @@ public com.google.cloud.ces.v1.Tool getTools(int index) { * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { @@ -526,11 +521,10 @@ private void ensureToolsIsMutable() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public java.util.List getToolsList() { if (toolsBuilder_ == null) { @@ -544,11 +538,10 @@ public java.util.List getToolsList() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public int getToolsCount() { if (toolsBuilder_ == null) { @@ -562,11 +555,10 @@ public int getToolsCount() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.Tool getTools(int index) { if (toolsBuilder_ == null) { @@ -580,11 +572,10 @@ public com.google.cloud.ces.v1.Tool getTools(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder setTools(int index, com.google.cloud.ces.v1.Tool value) { if (toolsBuilder_ == null) { @@ -604,11 +595,10 @@ public Builder setTools(int index, com.google.cloud.ces.v1.Tool value) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder setTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { if (toolsBuilder_ == null) { @@ -625,11 +615,10 @@ public Builder setTools(int index, com.google.cloud.ces.v1.Tool.Builder builderF * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addTools(com.google.cloud.ces.v1.Tool value) { if (toolsBuilder_ == null) { @@ -649,11 +638,10 @@ public Builder addTools(com.google.cloud.ces.v1.Tool value) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addTools(int index, com.google.cloud.ces.v1.Tool value) { if (toolsBuilder_ == null) { @@ -673,11 +661,10 @@ public Builder addTools(int index, com.google.cloud.ces.v1.Tool value) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addTools(com.google.cloud.ces.v1.Tool.Builder builderForValue) { if (toolsBuilder_ == null) { @@ -694,11 +681,10 @@ public Builder addTools(com.google.cloud.ces.v1.Tool.Builder builderForValue) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { if (toolsBuilder_ == null) { @@ -715,11 +701,10 @@ public Builder addTools(int index, com.google.cloud.ces.v1.Tool.Builder builderF * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addAllTools(java.lang.Iterable values) { if (toolsBuilder_ == null) { @@ -736,11 +721,10 @@ public Builder addAllTools(java.lang.Iterable - * Required. The list of tools that are included in the specified toolset. + * The list of tools that are included in the specified toolset. *
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder clearTools() { if (toolsBuilder_ == null) { @@ -757,11 +741,10 @@ public Builder clearTools() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder removeTools(int index) { if (toolsBuilder_ == null) { @@ -778,11 +761,10 @@ public Builder removeTools(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.Tool.Builder getToolsBuilder(int index) { return internalGetToolsFieldBuilder().getBuilder(index); @@ -792,11 +774,10 @@ public com.google.cloud.ces.v1.Tool.Builder getToolsBuilder(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { if (toolsBuilder_ == null) { @@ -810,11 +791,10 @@ public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public java.util.List getToolsOrBuilderList() { if (toolsBuilder_ != null) { @@ -828,11 +808,10 @@ public java.util.List getToolsO * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder() { return internalGetToolsFieldBuilder() @@ -843,11 +822,10 @@ public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder(int index) { return internalGetToolsFieldBuilder() @@ -858,11 +836,10 @@ public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public java.util.List getToolsBuilderList() { return internalGetToolsFieldBuilder().getBuilderList(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java index 498a2b8b5827..06a71142abb9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java @@ -30,11 +30,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ java.util.List getToolsList(); @@ -42,11 +41,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ com.google.cloud.ces.v1.Tool getTools(int index); @@ -54,11 +52,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ int getToolsCount(); @@ -66,11 +63,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ java.util.List getToolsOrBuilderList(); @@ -78,11 +74,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettings.java new file mode 100644 index 000000000000..a9db2454ad5c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettings.java @@ -0,0 +1,1710 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
            + * Project/Location level security settings for CES.
            + * 
            + * + * Protobuf type {@code google.cloud.ces.v1.SecuritySettings} + */ +@com.google.protobuf.Generated +public final class SecuritySettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SecuritySettings) + SecuritySettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecuritySettings"); + } + + // Use SecuritySettings.newBuilder() to construct. + private SecuritySettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SecuritySettings() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SecuritySettings.class, + com.google.cloud.ces.v1.SecuritySettings.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The unique identifier of the security settings.
            +   * Format: `projects/{project}/locations/{location}/securitySettings`
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The unique identifier of the security settings.
            +   * Format: `projects/{project}/locations/{location}/securitySettings`
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_CONTROL_POLICY_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.EndpointControlPolicy endpointControlPolicy_; + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointControlPolicy field is set. + */ + @java.lang.Override + public boolean hasEndpointControlPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointControlPolicy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy getEndpointControlPolicy() { + return endpointControlPolicy_ == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance() + : endpointControlPolicy_; + } + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder + getEndpointControlPolicyOrBuilder() { + return endpointControlPolicy_ == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance() + : endpointControlPolicy_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
            +   * Output only. Etag of the security settings.
            +   * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Etag of the security settings.
            +   * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEndpointControlPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndpointControlPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + 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.ces.v1.SecuritySettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SecuritySettings other = (com.google.cloud.ces.v1.SecuritySettings) obj; + + if (!getName().equals(other.getName())) return false; + if (hasEndpointControlPolicy() != other.hasEndpointControlPolicy()) return false; + if (hasEndpointControlPolicy()) { + if (!getEndpointControlPolicy().equals(other.getEndpointControlPolicy())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasEndpointControlPolicy()) { + hash = (37 * hash) + ENDPOINT_CONTROL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getEndpointControlPolicy().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SecuritySettings 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.ces.v1.SecuritySettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SecuritySettings 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.ces.v1.SecuritySettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.ces.v1.SecuritySettings 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Project/Location level security settings for CES.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.SecuritySettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SecuritySettings) + com.google.cloud.ces.v1.SecuritySettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SecuritySettings.class, + com.google.cloud.ces.v1.SecuritySettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.SecuritySettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEndpointControlPolicyFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + endpointControlPolicy_ = null; + if (endpointControlPolicyBuilder_ != null) { + endpointControlPolicyBuilder_.dispose(); + endpointControlPolicyBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SecuritySettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SecuritySettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SecuritySettings build() { + com.google.cloud.ces.v1.SecuritySettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SecuritySettings buildPartial() { + com.google.cloud.ces.v1.SecuritySettings result = + new com.google.cloud.ces.v1.SecuritySettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.SecuritySettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endpointControlPolicy_ = + endpointControlPolicyBuilder_ == null + ? endpointControlPolicy_ + : endpointControlPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.SecuritySettings) { + return mergeFrom((com.google.cloud.ces.v1.SecuritySettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.SecuritySettings other) { + if (other == com.google.cloud.ces.v1.SecuritySettings.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEndpointControlPolicy()) { + mergeEndpointControlPolicy(other.getEndpointControlPolicy()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetEndpointControlPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 name_ = ""; + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.EndpointControlPolicy endpointControlPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndpointControlPolicy, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder, + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder> + endpointControlPolicyBuilder_; + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointControlPolicy field is set. + */ + public boolean hasEndpointControlPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointControlPolicy. + */ + public com.google.cloud.ces.v1.EndpointControlPolicy getEndpointControlPolicy() { + if (endpointControlPolicyBuilder_ == null) { + return endpointControlPolicy_ == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance() + : endpointControlPolicy_; + } else { + return endpointControlPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndpointControlPolicy(com.google.cloud.ces.v1.EndpointControlPolicy value) { + if (endpointControlPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointControlPolicy_ = value; + } else { + endpointControlPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndpointControlPolicy( + com.google.cloud.ces.v1.EndpointControlPolicy.Builder builderForValue) { + if (endpointControlPolicyBuilder_ == null) { + endpointControlPolicy_ = builderForValue.build(); + } else { + endpointControlPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndpointControlPolicy(com.google.cloud.ces.v1.EndpointControlPolicy value) { + if (endpointControlPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endpointControlPolicy_ != null + && endpointControlPolicy_ + != com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance()) { + getEndpointControlPolicyBuilder().mergeFrom(value); + } else { + endpointControlPolicy_ = value; + } + } else { + endpointControlPolicyBuilder_.mergeFrom(value); + } + if (endpointControlPolicy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndpointControlPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + endpointControlPolicy_ = null; + if (endpointControlPolicyBuilder_ != null) { + endpointControlPolicyBuilder_.dispose(); + endpointControlPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndpointControlPolicy.Builder getEndpointControlPolicyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndpointControlPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder + getEndpointControlPolicyOrBuilder() { + if (endpointControlPolicyBuilder_ != null) { + return endpointControlPolicyBuilder_.getMessageOrBuilder(); + } else { + return endpointControlPolicy_ == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance() + : endpointControlPolicy_; + } + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndpointControlPolicy, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder, + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder> + internalGetEndpointControlPolicyFieldBuilder() { + if (endpointControlPolicyBuilder_ == null) { + endpointControlPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndpointControlPolicy, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder, + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder>( + getEndpointControlPolicy(), getParentForChildren(), isClean()); + endpointControlPolicy_ = null; + } + return endpointControlPolicyBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SecuritySettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SecuritySettings) + private static final com.google.cloud.ces.v1.SecuritySettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.SecuritySettings(); + } + + public static com.google.cloud.ces.v1.SecuritySettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecuritySettings 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.ces.v1.SecuritySettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsOrBuilder.java new file mode 100644 index 000000000000..0464bb781406 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsOrBuilder.java @@ -0,0 +1,205 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SecuritySettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SecuritySettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The unique identifier of the security settings.
            +   * Format: `projects/{project}/locations/{location}/securitySettings`
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The unique identifier of the security settings.
            +   * Format: `projects/{project}/locations/{location}/securitySettings`
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointControlPolicy field is set. + */ + boolean hasEndpointControlPolicy(); + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointControlPolicy. + */ + com.google.cloud.ces.v1.EndpointControlPolicy getEndpointControlPolicy(); + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder getEndpointControlPolicyOrBuilder(); + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Etag of the security settings.
            +   * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
            +   * Output only. Etag of the security settings.
            +   * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsProto.java new file mode 100644 index 000000000000..172caa176945 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsProto.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class SecuritySettingsProto extends com.google.protobuf.GeneratedFile { + private SecuritySettingsProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecuritySettingsProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SecuritySettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SecuritySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EndpointControlPolicy_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/ces/v1/security_settings." + + "proto\022\023google.cloud.ces.v1\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\200\003\n\020SecuritySettings\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "P\n\027endpoint_control_policy\030\002 \001(\0132*.googl" + + "e.cloud.ces.v1.EndpointControlPolicyB\003\340A" + + "\001\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\005 " + + "\001(\tB\003\340A\003:\207\001\352A\203\001\n#ces.googleapis.com/Secu" + + "ritySettings\0228projects/{project}/locatio" + + "ns/{location}/securitySettings*\020security" + + "Settings2\020securitySettings\"\345\001\n\025EndpointC" + + "ontrolPolicy\022[\n\021enforcement_scope\030\001 \001(\0162" + + ";.google.cloud.ces.v1.EndpointControlPol" + + "icy.EnforcementScopeB\003\340A\001\022\034\n\017allowed_ori" + + "gins\030\002 \003(\tB\003\340A\001\"Q\n\020EnforcementScope\022!\n\035E" + + "NFORCEMENT_SCOPE_UNSPECIFIED\020\000\022\016\n\nVPCSC_" + + "ONLY\020\001\022\n\n\006ALWAYS\020\002B]\n\027com.google.cloud.c" + + "es.v1B\025SecuritySettingsProtoP\001Z)cloud.go" + + "ogle.com/go/ces/apiv1/cespb;cespbb\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_SecuritySettings_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_SecuritySettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SecuritySettings_descriptor, + new java.lang.String[] { + "Name", "EndpointControlPolicy", "CreateTime", "UpdateTime", "Etag", + }); + internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_EndpointControlPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor, + new java.lang.String[] { + "EnforcementScope", "AllowedOrigins", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java index ab1a08f23e5c..5f781436a5c3 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java @@ -1957,7 +1957,7 @@ public com.google.cloud.ces.v1.MessageOrBuilder getHistoricalContextsOrBuilder(i * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -1986,7 +1986,7 @@ public java.lang.String getEntryAgent() { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -2128,6 +2128,27 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { } } + public static final int USE_TOOL_FAKES_FIELD_NUMBER = 14; + private boolean useToolFakes_ = false; + + /** + * + * + *
            +   * Optional. Whether to use tool fakes for the session.
            +   * If this field is set, the agent will attempt use tool fakes instead of
            +   * calling the real tools.
            +   * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useToolFakes. + */ + @java.lang.Override + public boolean getUseToolFakes() { + return useToolFakes_; + } + public static final int REMOTE_DIALOGFLOW_QUERY_PARAMETERS_FIELD_NUMBER = 15; private com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remoteDialogflowQueryParameters_; @@ -2202,6 +2223,30 @@ public boolean hasRemoteDialogflowQueryParameters() { : remoteDialogflowQueryParameters_; } + public static final int ENABLE_TEXT_STREAMING_FIELD_NUMBER = 18; + private boolean enableTextStreaming_ = false; + + /** + * + * + *
            +   * Optional. Whether to enable streaming text outputs from the model.
            +   * By default, text outputs from the model are collected before sending to the
            +   * client.
            +   * NOTE: This is only supported for text (non-voice) sessions via
            +   * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +   * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +   * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTextStreaming. + */ + @java.lang.Override + public boolean getEnableTextStreaming() { + return enableTextStreaming_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2237,9 +2282,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 12, entryAgent_); } + if (useToolFakes_ != false) { + output.writeBool(14, useToolFakes_); + } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(15, getRemoteDialogflowQueryParameters()); } + if (enableTextStreaming_ != false) { + output.writeBool(18, enableTextStreaming_); + } getUnknownFields().writeTo(output); } @@ -2271,11 +2322,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(12, entryAgent_); } + if (useToolFakes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, useToolFakes_); + } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 15, getRemoteDialogflowQueryParameters()); } + if (enableTextStreaming_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableTextStreaming_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2304,12 +2361,14 @@ public boolean equals(final java.lang.Object obj) { if (!getEntryAgent().equals(other.getEntryAgent())) return false; if (!getDeployment().equals(other.getDeployment())) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; + if (getUseToolFakes() != other.getUseToolFakes()) return false; if (hasRemoteDialogflowQueryParameters() != other.hasRemoteDialogflowQueryParameters()) return false; if (hasRemoteDialogflowQueryParameters()) { if (!getRemoteDialogflowQueryParameters().equals(other.getRemoteDialogflowQueryParameters())) return false; } + if (getEnableTextStreaming() != other.getEnableTextStreaming()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2341,10 +2400,14 @@ public int hashCode() { hash = (53 * hash) + getDeployment().hashCode(); hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); + hash = (37 * hash) + USE_TOOL_FAKES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseToolFakes()); if (hasRemoteDialogflowQueryParameters()) { hash = (37 * hash) + REMOTE_DIALOGFLOW_QUERY_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getRemoteDialogflowQueryParameters().hashCode(); } + hash = (37 * hash) + ENABLE_TEXT_STREAMING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTextStreaming()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2517,11 +2580,13 @@ public Builder clear() { entryAgent_ = ""; deployment_ = ""; timeZone_ = ""; + useToolFakes_ = false; remoteDialogflowQueryParameters_ = null; if (remoteDialogflowQueryParametersBuilder_ != null) { remoteDialogflowQueryParametersBuilder_.dispose(); remoteDialogflowQueryParametersBuilder_ = null; } + enableTextStreaming_ = false; return this; } @@ -2597,12 +2662,18 @@ private void buildPartial0(com.google.cloud.ces.v1.SessionConfig result) { result.timeZone_ = timeZone_; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.useToolFakes_ = useToolFakes_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.remoteDialogflowQueryParameters_ = remoteDialogflowQueryParametersBuilder_ == null ? remoteDialogflowQueryParameters_ : remoteDialogflowQueryParametersBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enableTextStreaming_ = enableTextStreaming_; + } result.bitField0_ |= to_bitField0_; } @@ -2671,9 +2742,15 @@ public Builder mergeFrom(com.google.cloud.ces.v1.SessionConfig other) { bitField0_ |= 0x00000040; onChanged(); } + if (other.getUseToolFakes() != false) { + setUseToolFakes(other.getUseToolFakes()); + } if (other.hasRemoteDialogflowQueryParameters()) { mergeRemoteDialogflowQueryParameters(other.getRemoteDialogflowQueryParameters()); } + if (other.getEnableTextStreaming() != false) { + setEnableTextStreaming(other.getEnableTextStreaming()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2750,14 +2827,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 98 + case 112: + { + useToolFakes_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 112 case 122: { input.readMessage( internalGetRemoteDialogflowQueryParametersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 122 + case 144: + { + enableTextStreaming_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 144 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3822,7 +3911,7 @@ public com.google.cloud.ces.v1.Message.Builder addHistoricalContextsBuilder(int * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -3850,7 +3939,7 @@ public java.lang.String getEntryAgent() { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -3878,7 +3967,7 @@ public com.google.protobuf.ByteString getEntryAgentBytes() { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -3905,7 +3994,7 @@ public Builder setEntryAgent(java.lang.String value) { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -3928,7 +4017,7 @@ public Builder clearEntryAgent() { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -4206,6 +4295,68 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { return this; } + private boolean useToolFakes_; + + /** + * + * + *
            +     * Optional. Whether to use tool fakes for the session.
            +     * If this field is set, the agent will attempt use tool fakes instead of
            +     * calling the real tools.
            +     * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useToolFakes. + */ + @java.lang.Override + public boolean getUseToolFakes() { + return useToolFakes_; + } + + /** + * + * + *
            +     * Optional. Whether to use tool fakes for the session.
            +     * If this field is set, the agent will attempt use tool fakes instead of
            +     * calling the real tools.
            +     * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useToolFakes to set. + * @return This builder for chaining. + */ + public Builder setUseToolFakes(boolean value) { + + useToolFakes_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether to use tool fakes for the session.
            +     * If this field is set, the agent will attempt use tool fakes instead of
            +     * calling the real tools.
            +     * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseToolFakes() { + bitField0_ = (bitField0_ & ~0x00000080); + useToolFakes_ = false; + onChanged(); + return this; + } + private com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remoteDialogflowQueryParameters_; private com.google.protobuf.SingleFieldBuilder< @@ -4232,7 +4383,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { * @return Whether the remoteDialogflowQueryParameters field is set. */ public boolean hasRemoteDialogflowQueryParameters() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -4289,7 +4440,7 @@ public Builder setRemoteDialogflowQueryParameters( } else { remoteDialogflowQueryParametersBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4317,7 +4468,7 @@ public Builder setRemoteDialogflowQueryParameters( } else { remoteDialogflowQueryParametersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4340,7 +4491,7 @@ public Builder setRemoteDialogflowQueryParameters( public Builder mergeRemoteDialogflowQueryParameters( com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters value) { if (remoteDialogflowQueryParametersBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && remoteDialogflowQueryParameters_ != null && remoteDialogflowQueryParameters_ != com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters @@ -4353,7 +4504,7 @@ public Builder mergeRemoteDialogflowQueryParameters( remoteDialogflowQueryParametersBuilder_.mergeFrom(value); } if (remoteDialogflowQueryParameters_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -4375,7 +4526,7 @@ public Builder mergeRemoteDialogflowQueryParameters( *
            */ public Builder clearRemoteDialogflowQueryParameters() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); remoteDialogflowQueryParameters_ = null; if (remoteDialogflowQueryParametersBuilder_ != null) { remoteDialogflowQueryParametersBuilder_.dispose(); @@ -4402,7 +4553,7 @@ public Builder clearRemoteDialogflowQueryParameters() { */ public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder getRemoteDialogflowQueryParametersBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetRemoteDialogflowQueryParametersFieldBuilder().getBuilder(); } @@ -4466,6 +4617,77 @@ public Builder clearRemoteDialogflowQueryParameters() { return remoteDialogflowQueryParametersBuilder_; } + private boolean enableTextStreaming_; + + /** + * + * + *
            +     * Optional. Whether to enable streaming text outputs from the model.
            +     * By default, text outputs from the model are collected before sending to the
            +     * client.
            +     * NOTE: This is only supported for text (non-voice) sessions via
            +     * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +     * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +     * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTextStreaming. + */ + @java.lang.Override + public boolean getEnableTextStreaming() { + return enableTextStreaming_; + } + + /** + * + * + *
            +     * Optional. Whether to enable streaming text outputs from the model.
            +     * By default, text outputs from the model are collected before sending to the
            +     * client.
            +     * NOTE: This is only supported for text (non-voice) sessions via
            +     * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +     * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +     * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableTextStreaming to set. + * @return This builder for chaining. + */ + public Builder setEnableTextStreaming(boolean value) { + + enableTextStreaming_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether to enable streaming text outputs from the model.
            +     * By default, text outputs from the model are collected before sending to the
            +     * client.
            +     * NOTE: This is only supported for text (non-voice) sessions via
            +     * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +     * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +     * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableTextStreaming() { + bitField0_ = (bitField0_ & ~0x00000200); + enableTextStreaming_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SessionConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java index af56698547db..cf15fb949278 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java @@ -239,7 +239,7 @@ public interface SessionConfigOrBuilder * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -257,7 +257,7 @@ public interface SessionConfigOrBuilder * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` * * * @@ -334,6 +334,21 @@ public interface SessionConfigOrBuilder */ com.google.protobuf.ByteString getTimeZoneBytes(); + /** + * + * + *
            +   * Optional. Whether to use tool fakes for the session.
            +   * If this field is set, the agent will attempt use tool fakes instead of
            +   * calling the real tools.
            +   * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useToolFakes. + */ + boolean getUseToolFakes(); + /** * * @@ -390,4 +405,22 @@ public interface SessionConfigOrBuilder */ com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder getRemoteDialogflowQueryParametersOrBuilder(); + + /** + * + * + *
            +   * Optional. Whether to enable streaming text outputs from the model.
            +   * By default, text outputs from the model are collected before sending to the
            +   * client.
            +   * NOTE: This is only supported for text (non-voice) sessions via
            +   * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +   * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +   * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTextStreaming. + */ + boolean getEnableTextStreaming(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java index ca68163e178e..cdab8c45dfb9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java @@ -615,12 +615,14 @@ public com.google.cloud.ces.v1.EventOrBuilder getEventOrBuilder() { * *
                * Optional. A flag to indicate if the current message is a fragment of a
            -   * larger input in the bidi streaming session. When `true`, the agent will
            -   * defer processing until a subsequent message with `will_continue` set to
            -   * `false` is received.
            +   * larger input in the bidi streaming session.
                *
            -   * Note: This flag has no effect on audio and DTMF inputs, which are always
            -   * processed in real-time.
            +   * When set to `true`, the agent defers processing until it receives a
            +   * subsequent message where `will_continue` is `false`, or until the system
            +   * detects an endpoint in the audio input.
            +   *
            +   * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +   * always processed automatically based on the endpointing signal.
                * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2701,12 +2703,14 @@ public com.google.cloud.ces.v1.EventOrBuilder getEventOrBuilder() { * *
                  * Optional. A flag to indicate if the current message is a fragment of a
            -     * larger input in the bidi streaming session. When `true`, the agent will
            -     * defer processing until a subsequent message with `will_continue` set to
            -     * `false` is received.
            +     * larger input in the bidi streaming session.
            +     *
            +     * When set to `true`, the agent defers processing until it receives a
            +     * subsequent message where `will_continue` is `false`, or until the system
            +     * detects an endpoint in the audio input.
                  *
            -     * Note: This flag has no effect on audio and DTMF inputs, which are always
            -     * processed in real-time.
            +     * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +     * always processed automatically based on the endpointing signal.
                  * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2723,12 +2727,14 @@ public boolean getWillContinue() { * *
                  * Optional. A flag to indicate if the current message is a fragment of a
            -     * larger input in the bidi streaming session. When `true`, the agent will
            -     * defer processing until a subsequent message with `will_continue` set to
            -     * `false` is received.
            +     * larger input in the bidi streaming session.
                  *
            -     * Note: This flag has no effect on audio and DTMF inputs, which are always
            -     * processed in real-time.
            +     * When set to `true`, the agent defers processing until it receives a
            +     * subsequent message where `will_continue` is `false`, or until the system
            +     * detects an endpoint in the audio input.
            +     *
            +     * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +     * always processed automatically based on the endpointing signal.
                  * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2749,12 +2755,14 @@ public Builder setWillContinue(boolean value) { * *
                  * Optional. A flag to indicate if the current message is a fragment of a
            -     * larger input in the bidi streaming session. When `true`, the agent will
            -     * defer processing until a subsequent message with `will_continue` set to
            -     * `false` is received.
            +     * larger input in the bidi streaming session.
            +     *
            +     * When set to `true`, the agent defers processing until it receives a
            +     * subsequent message where `will_continue` is `false`, or until the system
            +     * detects an endpoint in the audio input.
                  *
            -     * Note: This flag has no effect on audio and DTMF inputs, which are always
            -     * processed in real-time.
            +     * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +     * always processed automatically based on the endpointing signal.
                  * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java index fc8113f2f89a..31e660a4a7c7 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java @@ -338,12 +338,14 @@ public interface SessionInputOrBuilder * *
                * Optional. A flag to indicate if the current message is a fragment of a
            -   * larger input in the bidi streaming session. When `true`, the agent will
            -   * defer processing until a subsequent message with `will_continue` set to
            -   * `false` is received.
            +   * larger input in the bidi streaming session.
                *
            -   * Note: This flag has no effect on audio and DTMF inputs, which are always
            -   * processed in real-time.
            +   * When set to `true`, the agent defers processing until it receives a
            +   * subsequent message where `will_continue` is `false`, or until the system
            +   * detects an endpoint in the audio input.
            +   *
            +   * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +   * always processed automatically based on the endpointing signal.
                * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java index c9da874c93a5..316375f6318b 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java @@ -149,7 +149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021OutputAudioConfig\022?\n" + "\016audio_encoding\030\001" + " \001(\0162\".google.cloud.ces.v1.AudioEncodingB\003\340A\002\022\036\n" - + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\254\006\n\r" + + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\355\006\n\r" + "SessionConfig\0223\n" + "\007session\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032ces.googleapis.com/Session\022F\n" @@ -162,12 +162,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013entry_agent\030\014 \001(\tB \340A\001\372A\032\n" + "\030ces.googleapis.com/Agent\022\027\n\n" + "deployment\030\010 \001(\tB\003\340A\001\022\026\n" - + "\ttime_zone\030\013 \001(\tB\003\340A\001\022s\n" - + "\"remote_dialogflow_query_parameters\030\017 \001(\0132B.google.clo" - + "ud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\032\266\002\n" + + "\ttime_zone\030\013 \001(\tB\003\340A\001\022\033\n" + + "\016use_tool_fakes\030\016 \001(\010B\003\340A\001\022s\n" + + "\"remote_dialogflow_query_parameters\030\017 \001(\0132B.google.cloud.ces.v1.S" + + "essionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + + "\025enable_text_streaming\030\022 \001(\010B\003\340A\001\032\266\002\n" + "\037RemoteDialogflowQueryParameters\022t\n" - + "\017webhook_headers\030\001 \003(\0132V.google.cloud.ces.v1.SessionConfig.Re" - + "moteDialogflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + + "\017webhook_headers\030\001 \003(\0132V.google.clou" + + "d.ces.v1.SessionConfig.RemoteDialogflowQ" + + "ueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\0227\n" + "\021end_user_metadata\030\003" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0325\n" @@ -177,8 +180,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tToolCalls\0226\n\n" + "tool_calls\030\001 \003(\0132\035.google.cloud.ces.v1.ToolCallB\003\340A\001\"O\n\r" + "ToolResponses\022>\n" - + "\016tool_responses\030\001 " - + "\003(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001\"\204\001\n" + + "\016tool_responses\030\001" + + " \003(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001\"\204\001\n" + "\tCitations\022?\n" + "\014cited_chunks\030\001 \003(\0132).google.cloud.ces.v1.Citations.CitedChunk\0326\n\n" + "CitedChunk\022\013\n" @@ -199,8 +202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005event\030\t" + " \001(\0132\032.google.cloud.ces.v1.EventB\003\340A\001H\000\022\032\n\r" + "will_continue\030\010 \001(\010B\003\340A\001B\014\n\n" - + "input_type\"\316\004\n" - + "\r" + + "input_type\"\316\004\n\r" + "SessionOutput\022\016\n" + "\004text\030\001 \001(\tH\000\022\017\n" + "\005audio\030\002 \001(\014H\000\0224\n\n" @@ -212,8 +214,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007payload\030\013 \001(\0132\027.google.protobuf.StructH\000\022\022\n\n" + "turn_index\030\006 \001(\005\022\026\n" + "\016turn_completed\030\004 \001(\010\022O\n" - + "\017diagnostic_info\030\007" - + " \001(\01321.google.cloud.ces.v1.SessionOutput.DiagnosticInfoB\003\340A\001\032n\n" + + "\017diagnostic_info\030\007 \001(\01321.google" + + ".cloud.ces.v1.SessionOutput.DiagnosticInfoB\003\340A\001\032n\n" + "\016DiagnosticInfo\022.\n" + "\010messages\030\001 \003(\0132\034.google.cloud.ces.v1.Message\022,\n" + "\troot_span\030\003 \001(\0132\031.google.cloud.ces.v1.SpanB\r\n" @@ -231,18 +233,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022RunSessionResponse\0223\n" + "\007outputs\030\001 \003(\0132\".google.cloud.ces.v1.SessionOutput\"\247\001\n" + "\030BidiSessionClientMessage\0229\n" - + "\006config\030\001 \001" - + "(\0132\".google.cloud.ces.v1.SessionConfigB\003\340A\001H\000\022@\n" + + "\006config\030\001" + + " \001(\0132\".google.cloud.ces.v1.SessionConfigB\003\340A\001H\000\022@\n" + "\016realtime_input\030\002" + " \001(\0132!.google.cloud.ces.v1.SessionInputB\003\340A\001H\000B\016\n" + "\014message_type\"\367\002\n" + "\030BidiSessionServerMessage\022A\n" + "\016session_output\030\001" + " \001(\0132\".google.cloud.ces.v1.SessionOutputB\003\340A\001H\000\022I\n" - + "\022recognition_result\030\002" - + " \001(\0132&.google.cloud.ces.v1.RecognitionResultB\003\340A\001H\000\022K\n" - + "\023interruption_signal\030\003" - + " \001(\0132\'.google.cloud.ces.v1.InterruptionSignalB\003\340A\001H\000\022;\n" + + "\022recognition_result\030\002 \001(\0132&.g" + + "oogle.cloud.ces.v1.RecognitionResultB\003\340A\001H\000\022K\n" + + "\023interruption_signal\030\003 \001(\0132\'.googl" + + "e.cloud.ces.v1.InterruptionSignalB\003\340A\001H\000\022;\n" + "\013end_session\030\005" + " \001(\0132\037.google.cloud.ces.v1.EndSessionB\003\340A\001H\000\0223\n" + "\007go_away\030\006" @@ -252,20 +254,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n" + "\010LINEAR16\020\001\022\t\n" + "\005MULAW\020\002\022\010\n" - + "\004ALAW\020\0032\247\003\n" + + "\004ALAW\020\0032\352\004\n" + "\016SessionService\022\262\001\n\n" - + "RunSession\022&.google.cloud.ces.v1.RunSessionRequest\032\'.google.cloud.c" - + "es.v1.RunSessionResponse\"S\202\323\344\223\002M\"H/v1/{c" - + "onfig.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022t\n" - + "\016BidiRunSession\022-.google.cloud.ces.v1.BidiSessio" - + "nClientMessage\032-.google.cloud.ces.v1.Bid" - + "iSessionServerMessage\"\000(\0010\001\032j\312A\022ces.goog" - + "leapis.com\322ARhttps://www.googleapis.com/" - + "auth/ces,https://www.googleapis.com/auth/cloud-platformB\301\001\n" - + "\027com.google.cloud.ces" - + ".v1B\023SessionServiceProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" - + "\032ces.googleapis.com/Session\022Eprojects/{project}" - + "/locations/{location}/apps/{app}/sessions/{session}b\006proto3" + + "RunSession\022&.google.cloud.ces.v1.RunSessio" + + "nRequest\032\'.google.cloud.ces.v1.RunSessio" + + "nResponse\"S\202\323\344\223\002M\"H/v1/{config.session=p" + + "rojects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\300\001\n" + + "\020StreamRunSession\022&.google.cloud.ces.v1.RunSessionRequest\032\'.go" + + "ogle.cloud.ces.v1.RunSessionResponse\"Y\202\323" + + "\344\223\002S\"N/v1/{config.session=projects/*/loc" + + "ations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022t\n" + + "\016BidiRunSession\022-.google.cloud.ces.v1.BidiSessionClientMessage\032-.goo" + + "gle.cloud.ces.v1.BidiSessionServerMessag" + + "e\"\000(\0010\001\032j\312A\022ces.googleapis.com\322ARhttps:/" + + "/www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\301\001\n" + + "\027com.google.cloud.ces.v1B\023SessionServiceP" + + "rotoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" + + "\032ces.googleapis.com/Session\022Eprojects/{project}/locations/{location" + + "}/apps/{app}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -309,7 +315,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EntryAgent", "Deployment", "TimeZone", + "UseToolFakes", "RemoteDialogflowQueryParameters", + "EnableTextStreaming", }); internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor = internal_static_google_cloud_ces_v1_SessionConfig_descriptor.getNestedType(0); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java index 32dc335a87a2..bbac033c5bfb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java @@ -112,11 +112,14 @@ public interface CaCertOrBuilder * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -243,11 +246,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -717,11 +723,14 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -742,11 +751,14 @@ public com.google.protobuf.ByteString getCert() { * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -773,11 +785,14 @@ public Builder setCert(com.google.protobuf.ByteString value) { * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java index 857b1a1ab353..e9a23a744f01 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java @@ -92,6 +92,7 @@ public enum ToolTypeCase MCP_TOOL(16), FILE_SEARCH_TOOL(17), SYSTEM_TOOL(18), + AGENT_TOOL(23), WIDGET_TOOL(24), TOOLTYPE_NOT_SET(0); private final int value; @@ -130,6 +131,8 @@ public static ToolTypeCase forNumber(int value) { return FILE_SEARCH_TOOL; case 18: return SYSTEM_TOOL; + case 23: + return AGENT_TOOL; case 24: return WIDGET_TOOL; case 0: @@ -688,6 +691,63 @@ public com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder() { return com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); } + public static final int AGENT_TOOL_FIELD_NUMBER = 23; + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTool field is set. + */ + @java.lang.Override + public boolean hasAgentTool() { + return toolTypeCase_ == 23; + } + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool getAgentTool() { + if (toolTypeCase_ == 23) { + return (com.google.cloud.ces.v1.AgentTool) toolType_; + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentToolOrBuilder getAgentToolOrBuilder() { + if (toolTypeCase_ == 23) { + return (com.google.cloud.ces.v1.AgentTool) toolType_; + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + public static final int WIDGET_TOOL_FIELD_NUMBER = 24; /** @@ -757,14 +817,15 @@ public com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder() { * * *
            -   * Identifier. The unique identifier of the tool.
            -   * Format:
            -   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -   * ## standalone tools.
            -   *
            -   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -   * for tools retrieved from a toolset. These tools are dynamic and
            -   * output-only, they cannot be referenced directly where a tool is expected.
            +   * Identifier. The resource name of the tool. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +   * for standalone tools.
            +   * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +   * for tools retrieved from a toolset.
            +   *
            +   * These tools are dynamic and output-only; they cannot be referenced directly
            +   * where a tool is expected.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -788,14 +849,15 @@ public java.lang.String getName() { * * *
            -   * Identifier. The unique identifier of the tool.
            -   * Format:
            -   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -   * ## standalone tools.
            -   *
            -   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -   * for tools retrieved from a toolset. These tools are dynamic and
            -   * output-only, they cannot be referenced directly where a tool is expected.
            +   * Identifier. The resource name of the tool. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +   * for standalone tools.
            +   * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +   * for tools retrieved from a toolset.
            +   *
            +   * These tools are dynamic and output-only; they cannot be referenced directly
            +   * where a tool is expected.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1254,6 +1316,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(20, getToolFakeConfig()); } + if (toolTypeCase_ == 23) { + output.writeMessage(23, (com.google.cloud.ces.v1.AgentTool) toolType_); + } if (toolTypeCase_ == 24) { output.writeMessage(24, (com.google.cloud.ces.v1.WidgetTool) toolType_); } @@ -1336,6 +1401,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getToolFakeConfig()); } + if (toolTypeCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.ces.v1.AgentTool) toolType_); + } if (toolTypeCase_ == 24) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1402,6 +1472,9 @@ public boolean equals(final java.lang.Object obj) { case 18: if (!getSystemTool().equals(other.getSystemTool())) return false; break; + case 23: + if (!getAgentTool().equals(other.getAgentTool())) return false; + break; case 24: if (!getWidgetTool().equals(other.getWidgetTool())) return false; break; @@ -1478,6 +1551,10 @@ public int hashCode() { hash = (37 * hash) + SYSTEM_TOOL_FIELD_NUMBER; hash = (53 * hash) + getSystemTool().hashCode(); break; + case 23: + hash = (37 * hash) + AGENT_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getAgentTool().hashCode(); + break; case 24: hash = (37 * hash) + WIDGET_TOOL_FIELD_NUMBER; hash = (53 * hash) + getWidgetTool().hashCode(); @@ -1661,6 +1738,9 @@ public Builder clear() { if (systemToolBuilder_ != null) { systemToolBuilder_.clear(); } + if (agentToolBuilder_ != null) { + agentToolBuilder_.clear(); + } if (widgetToolBuilder_ != null) { widgetToolBuilder_.clear(); } @@ -1721,31 +1801,31 @@ public com.google.cloud.ces.v1.Tool buildPartial() { private void buildPartial0(com.google.cloud.ces.v1.Tool result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.executionType_ = executionType_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.generatedSummary_ = generatedSummary_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.toolFakeConfig_ = toolFakeConfigBuilder_ == null ? toolFakeConfig_ : toolFakeConfigBuilder_.build(); to_bitField0_ |= 0x00000004; @@ -1783,6 +1863,9 @@ private void buildPartialOneofs(com.google.cloud.ces.v1.Tool result) { if (toolTypeCase_ == 18 && systemToolBuilder_ != null) { result.toolType_ = systemToolBuilder_.build(); } + if (toolTypeCase_ == 23 && agentToolBuilder_ != null) { + result.toolType_ = agentToolBuilder_.build(); + } if (toolTypeCase_ == 24 && widgetToolBuilder_ != null) { result.toolType_ = widgetToolBuilder_.build(); } @@ -1802,12 +1885,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { if (other == com.google.cloud.ces.v1.Tool.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.executionType_ != 0) { @@ -1821,12 +1904,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (!other.getGeneratedSummary().isEmpty()) { generatedSummary_ = other.generatedSummary_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (other.hasToolFakeConfig()) { @@ -1878,6 +1961,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { mergeSystemTool(other.getSystemTool()); break; } + case AGENT_TOOL: + { + mergeAgentTool(other.getAgentTool()); + break; + } case WIDGET_TOOL: { mergeWidgetTool(other.getWidgetTool()); @@ -1917,7 +2005,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 10 case 18: @@ -1945,14 +2033,14 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 50 case 58: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 58 case 66: @@ -1979,25 +2067,25 @@ public Builder mergeFrom( case 96: { executionType_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 96 case 106: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 106 case 114: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 114 case 122: { generatedSummary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 122 case 130: @@ -2024,9 +2112,16 @@ public Builder mergeFrom( { input.readMessage( internalGetToolFakeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 162 + case 186: + { + input.readMessage( + internalGetAgentToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 23; + break; + } // case 186 case 194: { input.readMessage( @@ -4180,6 +4275,239 @@ public com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder() { return systemToolBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTool, + com.google.cloud.ces.v1.AgentTool.Builder, + com.google.cloud.ces.v1.AgentToolOrBuilder> + agentToolBuilder_; + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTool field is set. + */ + @java.lang.Override + public boolean hasAgentTool() { + return toolTypeCase_ == 23; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool getAgentTool() { + if (agentToolBuilder_ == null) { + if (toolTypeCase_ == 23) { + return (com.google.cloud.ces.v1.AgentTool) toolType_; + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 23) { + return agentToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentTool(com.google.cloud.ces.v1.AgentTool value) { + if (agentToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + agentToolBuilder_.setMessage(value); + } + toolTypeCase_ = 23; + return this; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentTool(com.google.cloud.ces.v1.AgentTool.Builder builderForValue) { + if (agentToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + agentToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 23; + return this; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentTool(com.google.cloud.ces.v1.AgentTool value) { + if (agentToolBuilder_ == null) { + if (toolTypeCase_ == 23 + && toolType_ != com.google.cloud.ces.v1.AgentTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.AgentTool.newBuilder( + (com.google.cloud.ces.v1.AgentTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 23) { + agentToolBuilder_.mergeFrom(value); + } else { + agentToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 23; + return this; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentTool() { + if (agentToolBuilder_ == null) { + if (toolTypeCase_ == 23) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 23) { + toolTypeCase_ = 0; + toolType_ = null; + } + agentToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AgentTool.Builder getAgentToolBuilder() { + return internalGetAgentToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentToolOrBuilder getAgentToolOrBuilder() { + if ((toolTypeCase_ == 23) && (agentToolBuilder_ != null)) { + return agentToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 23) { + return (com.google.cloud.ces.v1.AgentTool) toolType_; + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTool, + com.google.cloud.ces.v1.AgentTool.Builder, + com.google.cloud.ces.v1.AgentToolOrBuilder> + internalGetAgentToolFieldBuilder() { + if (agentToolBuilder_ == null) { + if (!(toolTypeCase_ == 23)) { + toolType_ = com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + agentToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTool, + com.google.cloud.ces.v1.AgentTool.Builder, + com.google.cloud.ces.v1.AgentToolOrBuilder>( + (com.google.cloud.ces.v1.AgentTool) toolType_, getParentForChildren(), isClean()); + toolType_ = null; + } + toolTypeCase_ = 23; + onChanged(); + return agentToolBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.WidgetTool, com.google.cloud.ces.v1.WidgetTool.Builder, @@ -4419,14 +4747,15 @@ public com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder() { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4449,14 +4778,15 @@ public java.lang.String getName() { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
            +     *
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4479,14 +4809,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4499,7 +4830,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4508,14 +4839,15 @@ public Builder setName(java.lang.String value) { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4524,7 +4856,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4533,14 +4865,15 @@ public Builder clearName() { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
            +     *
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4554,7 +4887,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4630,7 +4963,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4650,7 +4983,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4675,7 +5008,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4716,7 +5049,7 @@ public int getExecutionTypeValue() { */ public Builder setExecutionTypeValue(int value) { executionType_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4759,7 +5092,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; executionType_ = value.getNumber(); onChanged(); return this; @@ -4779,7 +5112,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { * @return This builder for chaining. */ public Builder clearExecutionType() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); executionType_ = 0; onChanged(); return this; @@ -4806,7 +5139,7 @@ public Builder clearExecutionType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -4852,7 +5185,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4874,7 +5207,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4892,7 +5225,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4903,7 +5236,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4921,7 +5254,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
            */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4943,7 +5276,7 @@ public Builder clearCreateTime() { *
            */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -5018,7 +5351,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5064,7 +5397,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5086,7 +5419,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5104,7 +5437,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -5115,7 +5448,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5133,7 +5466,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
            */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -5155,7 +5488,7 @@ public Builder clearUpdateTime() { *
            */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -5280,7 +5613,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5300,7 +5633,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -5325,7 +5658,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5398,7 +5731,7 @@ public Builder setGeneratedSummary(java.lang.String value) { throw new NullPointerException(); } generatedSummary_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5417,7 +5750,7 @@ public Builder setGeneratedSummary(java.lang.String value) { */ public Builder clearGeneratedSummary() { generatedSummary_ = getDefaultInstance().getGeneratedSummary(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -5441,7 +5774,7 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); generatedSummary_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5467,7 +5800,7 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { * @return Whether the toolFakeConfig field is set. */ public boolean hasToolFakeConfig() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -5513,7 +5846,7 @@ public Builder setToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { } else { toolFakeConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5536,7 +5869,7 @@ public Builder setToolFakeConfig( } else { toolFakeConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5554,7 +5887,7 @@ public Builder setToolFakeConfig( */ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { if (toolFakeConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && toolFakeConfig_ != null && toolFakeConfig_ != com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance()) { getToolFakeConfigBuilder().mergeFrom(value); @@ -5565,7 +5898,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) toolFakeConfigBuilder_.mergeFrom(value); } if (toolFakeConfig_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -5583,7 +5916,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) *
            */ public Builder clearToolFakeConfig() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); toolFakeConfig_ = null; if (toolFakeConfigBuilder_ != null) { toolFakeConfigBuilder_.dispose(); @@ -5605,7 +5938,7 @@ public Builder clearToolFakeConfig() { *
            */ public com.google.cloud.ces.v1.ToolFakeConfig.Builder getToolFakeConfigBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return internalGetToolFakeConfigFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java index 7a4df3054f00..fef461c5ed2b 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java @@ -413,6 +413,46 @@ public interface ToolOrBuilder */ com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder(); + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTool field is set. + */ + boolean hasAgentTool(); + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTool. + */ + com.google.cloud.ces.v1.AgentTool getAgentTool(); + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AgentToolOrBuilder getAgentToolOrBuilder(); + /** * * @@ -460,14 +500,15 @@ public interface ToolOrBuilder * * *
            -   * Identifier. The unique identifier of the tool.
            -   * Format:
            -   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -   * ## standalone tools.
            +   * Identifier. The resource name of the tool. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +   * for standalone tools.
            +   * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +   * for tools retrieved from a toolset.
                *
            -   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -   * for tools retrieved from a toolset. These tools are dynamic and
            -   * output-only, they cannot be referenced directly where a tool is expected.
            +   * These tools are dynamic and output-only; they cannot be referenced directly
            +   * where a tool is expected.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -480,14 +521,15 @@ public interface ToolOrBuilder * * *
            -   * Identifier. The unique identifier of the tool.
            -   * Format:
            -   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -   * ## standalone tools.
            +   * Identifier. The resource name of the tool. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +   * for standalone tools.
            +   * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +   * for tools retrieved from a toolset.
                *
            -   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -   * for tools retrieved from a toolset. These tools are dynamic and
            -   * output-only, they cannot be referenced directly where a tool is expected.
            +   * These tools are dynamic and output-only; they cannot be referenced directly
            +   * where a tool is expected.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java index 8a214a6056e2..2fcba61593bd 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java @@ -56,35 +56,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "\036google/cloud/ces/v1/tool.proto\022\023google" + ".cloud.ces.v1\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/client_function.proto\032" - + " google/cloud/ces/v1/common.proto\032(google/c" - + "loud/ces/v1/connector_tool.proto\032)google" - + "/cloud/ces/v1/data_store_tool.proto\032\037goo" - + "gle/cloud/ces/v1/fakes.proto\032*google/cloud/ces/v1/file_search_tool.proto\032,google" - + "/cloud/ces/v1/google_search_tool.proto\032\"" - + "google/cloud/ces/v1/mcp_tool.proto\032\'goog" - + "le/cloud/ces/v1/open_api_tool.proto\032)google/cloud/ces/v1/python_function.proto\032%" - + "google/cloud/ces/v1/system_tool.proto\032%g" - + "oogle/cloud/ces/v1/widget_tool.proto\032\037google/protobuf/timestamp.proto\"\336\010\n" + + ".proto\032\031google/api/resource.proto\032$googl" + + "e/cloud/ces/v1/agent_tool.proto\032)google/cloud/ces/v1/client_function.proto\032 goog" + + "le/cloud/ces/v1/common.proto\032(google/cloud/ces/v1/connector_tool.proto\032)google/c" + + "loud/ces/v1/data_store_tool.proto\032\037googl" + + "e/cloud/ces/v1/fakes.proto\032*google/cloud/ces/v1/file_search_tool.proto\032,google/c" + + "loud/ces/v1/google_search_tool.proto\032\"go" + + "ogle/cloud/ces/v1/mcp_tool.proto\032\'google" + + "/cloud/ces/v1/open_api_tool.proto\032)google/cloud/ces/v1/python_function.proto\032%go" + + "ogle/cloud/ces/v1/system_tool.proto\032%goo" + + "gle/cloud/ces/v1/widget_tool.proto\032\037google/protobuf/timestamp.proto\"\231\t\n" + "\004Tool\022C\n" + "\017client_function\030\002" + " \001(\0132#.google.cloud.ces.v1.ClientFunctionB\003\340A\001H\000\022>\n\r" + "open_api_tool\030\003 \001(\0132" + " .google.cloud.ces.v1.OpenApiToolB\003\340A\001H\000\022H\n" - + "\022google_search_tool\030\005 \001(\0132" - + "%.google.cloud.ces.v1.GoogleSearchToolB\003\340A\001H\000\022A\n" + + "\022google_search_tool\030\005 \001(\0132%." + + "google.cloud.ces.v1.GoogleSearchToolB\003\340A\001H\000\022A\n" + "\016connector_tool\030\010" + " \001(\0132\".google.cloud.ces.v1.ConnectorToolB\003\340A\001H\000\022B\n" + "\017data_store_tool\030\n" + " \001(\0132\".google.cloud.ces.v1.DataStoreToolB\003\340A\001H\000\022C\n" - + "\017python_function\030\013" - + " \001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001H\000\0225\n" + + "\017python_function\030\013 " + + "\001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001H\000\0225\n" + "\010mcp_tool\030\020" + " \001(\0132\034.google.cloud.ces.v1.McpToolB\003\340A\001H\000\022D\n" + "\020file_search_tool\030\021" + " \001(\0132#.google.cloud.ces.v1.FileSearchToolB\003\340A\001H\000\022;\n" + "\013system_tool\030\022" - + " \001(\0132\037.google.cloud.ces.v1.SystemToolB\003\340A\001H\000\022;\n" + + " \001(\0132\037.google.cloud.ces.v1.SystemToolB\003\340A\001H\000\0229\n\n" + + "agent_tool\030\027" + + " \001(\0132\036.google.cloud.ces.v1.AgentToolB\003\340A\001H\000\022;\n" + "\013widget_tool\030\030" + " \001(\0132\037.google.cloud.ces.v1.WidgetToolB\003\340A\001H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" @@ -99,11 +101,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021generated_summary\030\017 \001(\tB\003\340A\003\022B\n" + "\020tool_fake_config\030\024" + " \001(\0132#.google.cloud.ces.v1.ToolFakeConfigB\003\340A\001:j\352Ag\n" - + "\027ces.googleapis.com/Tool\022?projects/{project}/" - + "locations/{location}/apps/{app}/tools/{tool}*\005tools2\004toolB\013\n" + + "\027ces.googleapis.com/Tool\022?pr" + + "ojects/{project}/locations/{location}/apps/{app}/tools/{tool}*\005tools2\004toolB\013\n" + "\ttool_typeBQ\n" - + "\027com.google.cloud.ces.v1B\tToolProtoP\001Z)cloud.go" - + "ogle.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "\027com.google.cloud.ces.v1B\tToolProtoP\001Z)cloud.google.com/go/ces/apiv1/c" + + "espb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -111,6 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.AgentToolProto.getDescriptor(), com.google.cloud.ces.v1.ClientFunctionProto.getDescriptor(), com.google.cloud.ces.v1.CommonProto.getDescriptor(), com.google.cloud.ces.v1.ConnectorToolProto.getDescriptor(), @@ -139,6 +142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "McpTool", "FileSearchTool", "SystemTool", + "AgentTool", "WidgetTool", "Name", "DisplayName", @@ -153,6 +157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.AgentToolProto.getDescriptor(); com.google.cloud.ces.v1.ClientFunctionProto.getDescriptor(); com.google.cloud.ces.v1.CommonProto.getDescriptor(); com.google.cloud.ces.v1.ConnectorToolProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java index c0db1460e5bb..676b2dc0aec9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java @@ -73,66 +73,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "&google/cloud/ces/v1/tool_service.proto" + "\n&google/cloud/ces/v1/tool_service.proto" + "\022\023google.cloud.ces.v1\032\034google/api/annota" + "tions.proto\032\027google/api/client.proto\032\037go" - + "ogle/api/field_behavior.proto\032\031google/api/resource.proto\032" - + " google/cloud/ces/v1/schema.proto\032\036google/cloud/ces/v1/tool.pro" - + "to\032&google/cloud/ces/v1/toolset_tool.proto\032\034google/protobuf/struct.proto\"\363\001\n" - + "\022ExecuteToolRequest\022/\n" - + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022=\n" - + "\014toolset_tool\030\003 \001(\0132" - + " .google.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022.\n" - + "\006parent\030\004 \001(\tB\036\340A\002\372A\030\n" - + "\026ces.googleapis.com/App\022*\n" - + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n" - + "\017tool_identifier\"\300\001\n" - + "\023ExecuteToolResponse\022,\n" - + "\004tool\030\001 \001(\tB\034\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\0228\n" - + "\014toolset_tool\030\003 \001(\0132 .google.cloud.ces.v1.ToolsetToolH\000\022.\n" - + "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002B\021\n" - + "\017tool_identifier\"\316\001\n" - + "\031RetrieveToolSchemaRequest\022/\n" - + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022=\n" - + "\014toolset_tool\030\002 \001(\0132" - + " .google.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022.\n" - + "\006parent\030\003 \001(\tB\036\340A\002\372A\030\n" - + "\026ces.googleapis.com/AppB\021\n" - + "\017tool_identifier\"\210\002\n" - + "\032RetrieveToolSchemaResponse\022,\n" - + "\004tool\030\001 \001(\tB\034\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\0228\n" - + "\014toolset_tool\030\002 \001(\0132 .google.cloud.ces.v1.ToolsetToolH\000\0226\n" - + "\014input_schema\030\003" - + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\002\0227\n\r" - + "output_schema\030\004 \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\002B\021\n" - + "\017tool_identifier\"b\n" - + "\024RetrieveToolsRequest\0223\n" - + "\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n" - + "\032ces.googleapis.com/Toolset\022\025\n" - + "\010tool_ids\030\003 \003(\tB\003\340A\001\"F\n" - + "\025RetrieveToolsResponse\022-\n" - + "\005tools\030\001 \003(\0132\031.google.cloud.ces.v1.ToolB\003\340A\0022\233\005\n" - + "\013ToolService\022\243\001\n" - + "\013ExecuteTool\022\'.google.cloud.ces.v1.ExecuteToolRequest\032(.goo" - + "gle.cloud.ces.v1.ExecuteToolResponse\"A\202\323" - + "\344\223\002;\"6/v1/{parent=projects/*/locations/*/apps/*}:executeTool:\001*\022\277\001\n" - + "\022RetrieveToolSchema\022..google.cloud.ces.v1.RetrieveToo" - + "lSchemaRequest\032/.google.cloud.ces.v1.Ret" - + "rieveToolSchemaResponse\"H\202\323\344\223\002B\"=/v1/{pa" - + "rent=projects/*/locations/*/apps/*}:retrieveToolSchema:\001*\022\267\001\n\r" - + "RetrieveTools\022).google.cloud.ces.v1.RetrieveToolsRequest\032*" - + ".google.cloud.ces.v1.RetrieveToolsRespon" - + "se\"O\202\323\344\223\002I\"D/v1/{toolset=projects/*/loca" - + "tions/*/apps/*/toolsets/*}:retrieveTools" - + ":\001*\032j\312A\022ces.googleapis.com\322ARhttps://www" - + ".googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformBX\n" - + "\027com.google.cloud.ces.v1B\020ToolServiceProtoP\001Z)" - + "cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032 google/cloud/ces/v1/sc" + + "hema.proto\032\036google/cloud/ces/v1/tool.pro" + + "to\032&google/cloud/ces/v1/toolset_tool.pro" + + "to\032\034google/protobuf/struct.proto\"\361\002\n\022Exe" + + "cuteToolRequest\022/\n\004tool\030\001 \001(\tB\037\340A\001\372A\031\n\027c" + + "es.googleapis.com/ToolH\000\022=\n\014toolset_tool" + + "\030\003 \001(\0132 .google.cloud.ces.v1.ToolsetTool" + + "B\003\340A\001H\000\0221\n\tvariables\030\005 \001(\0132\027.google.prot" + + "obuf.StructB\003\340A\001H\001\022/\n\007context\030\006 \001(\0132\027.go" + + "ogle.protobuf.StructB\003\340A\001H\001\022.\n\006parent\030\004 " + + "\001(\tB\036\340A\002\372A\030\n\026ces.googleapis.com/App\022*\n\004a" + + "rgs\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001B" + + "\021\n\017tool_identifierB\030\n\026tool_execution_con" + + "text\"\347\001\n\023ExecuteToolResponse\022,\n\004tool\030\001 \001" + + "(\tB\034\372A\031\n\027ces.googleapis.com/ToolH\000\0228\n\014to" + + "olset_tool\030\003 \001(\0132 .google.cloud.ces.v1.T" + + "oolsetToolH\000\022)\n\010response\030\002 \001(\0132\027.google." + + "protobuf.Struct\022*\n\tvariables\030\004 \001(\0132\027.goo" + + "gle.protobuf.StructB\021\n\017tool_identifier\"\316" + + "\001\n\031RetrieveToolSchemaRequest\022/\n\004tool\030\001 \001" + + "(\tB\037\340A\001\372A\031\n\027ces.googleapis.com/ToolH\000\022=\n" + + "\014toolset_tool\030\002 \001(\0132 .google.cloud.ces.v" + + "1.ToolsetToolB\003\340A\001H\000\022.\n\006parent\030\003 \001(\tB\036\340A" + + "\002\372A\030\n\026ces.googleapis.com/AppB\021\n\017tool_ide" + + "ntifier\"\376\001\n\032RetrieveToolSchemaResponse\022," + + "\n\004tool\030\001 \001(\tB\034\372A\031\n\027ces.googleapis.com/To" + + "olH\000\0228\n\014toolset_tool\030\002 \001(\0132 .google.clou" + + "d.ces.v1.ToolsetToolH\000\0221\n\014input_schema\030\003" + + " \001(\0132\033.google.cloud.ces.v1.Schema\0222\n\rout" + + "put_schema\030\004 \001(\0132\033.google.cloud.ces.v1.S" + + "chemaB\021\n\017tool_identifier\"b\n\024RetrieveTool" + + "sRequest\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.g" + + "oogleapis.com/Toolset\022\025\n\010tool_ids\030\003 \003(\tB" + + "\003\340A\001\"A\n\025RetrieveToolsResponse\022(\n\005tools\030\001" + + " \003(\0132\031.google.cloud.ces.v1.Tool2\233\005\n\013Tool" + + "Service\022\243\001\n\013ExecuteTool\022\'.google.cloud.c" + + "es.v1.ExecuteToolRequest\032(.google.cloud." + + "ces.v1.ExecuteToolResponse\"A\202\323\344\223\002;\"6/v1/" + + "{parent=projects/*/locations/*/apps/*}:e" + + "xecuteTool:\001*\022\277\001\n\022RetrieveToolSchema\022..g" + + "oogle.cloud.ces.v1.RetrieveToolSchemaReq" + + "uest\032/.google.cloud.ces.v1.RetrieveToolS" + + "chemaResponse\"H\202\323\344\223\002B\"=/v1/{parent=proje" + + "cts/*/locations/*/apps/*}:retrieveToolSc" + + "hema:\001*\022\267\001\n\rRetrieveTools\022).google.cloud" + + ".ces.v1.RetrieveToolsRequest\032*.google.cl" + + "oud.ces.v1.RetrieveToolsResponse\"O\202\323\344\223\002I" + + "\"D/v1/{toolset=projects/*/locations/*/ap" + + "ps/*/toolsets/*}:retrieveTools:\001*\032j\312A\022ce" + + "s.googleapis.com\322ARhttps://www.googleapi" + + "s.com/auth/ces,https://www.googleapis.co" + + "m/auth/cloud-platformBX\n\027com.google.clou" + + "d.ces.v1B\020ToolServiceProtoP\001Z)cloud.goog" + + "le.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -153,7 +151,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ExecuteToolRequest_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Parent", "Args", "ToolIdentifier", + "Tool", + "ToolsetTool", + "Variables", + "Context", + "Parent", + "Args", + "ToolIdentifier", + "ToolExecutionContext", }); internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor = getDescriptor().getMessageType(1); @@ -161,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Response", "ToolIdentifier", + "Tool", "ToolsetTool", "Response", "Variables", "ToolIdentifier", }); internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor = getDescriptor().getMessageType(2); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java index 23ae2c9aaa33..5b0e3308f230 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java @@ -62,24 +62,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tations.proto\032\027google/api/client.proto\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\037google/protobuf/time" - + "stamp.proto\"\245\001\n\030GenerateChatTokenRequest" + + "stamp.proto\"\310\001\n\030GenerateChatTokenRequest" + "\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.googleapis.c" + "om/Session\0229\n\ndeployment\030\002 \001(\tB%\340A\002\372A\037\n\035" + "ces.googleapis.com/Deployment\022\034\n\017recaptc" - + "ha_token\030\003 \001(\tB\003\340A\001\"`\n\031GenerateChatToken" - + "Response\022\022\n\nchat_token\030\001 \001(\t\022/\n\013expire_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp2\302\002" - + "\n\rWidgetService\022\304\001\n\021GenerateChatToken\022-." - + "google.cloud.ces.v1.GenerateChatTokenReq" - + "uest\032..google.cloud.ces.v1.GenerateChatT" - + "okenResponse\"P\202\323\344\223\002J\"E/v1/{name=projects" - + "/*/locations/*/apps/*/sessions/*}:genera" - + "teChatToken:\001*\032j\312A\022ces.googleapis.com\322AR" - + "https://www.googleapis.com/auth/ces,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmBZ\n\027com.google.cloud.ces.v1B\022WidgetSer" - + "viceProtoP\001Z)cloud.google.com/go/ces/api" - + "v1/cespb;cespbb\006proto3" + + "ha_token\030\003 \001(\tB\003\340A\001\022!\n\024live_handoff_enab" + + "led\030\004 \001(\010B\003\340A\001\"`\n\031GenerateChatTokenRespo" + + "nse\022\022\n\nchat_token\030\001 \001(\t\022/\n\013expire_time\030\002" + + " \001(\0132\032.google.protobuf.Timestamp2\302\002\n\rWid" + + "getService\022\304\001\n\021GenerateChatToken\022-.googl" + + "e.cloud.ces.v1.GenerateChatTokenRequest\032" + + "..google.cloud.ces.v1.GenerateChatTokenR" + + "esponse\"P\202\323\344\223\002J\"E/v1/{name=projects/*/lo" + + "cations/*/apps/*/sessions/*}:generateCha" + + "tToken:\001*\032j\312A\022ces.googleapis.com\322ARhttps" + + "://www.googleapis.com/auth/ces,https://w" + + "ww.googleapis.com/auth/cloud-platformBZ\n" + + "\027com.google.cloud.ces.v1B\022WidgetServiceP" + + "rotoP\001Z)cloud.google.com/go/ces/apiv1/ce" + + "spb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -97,7 +98,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_descriptor, new java.lang.String[] { - "Name", "Deployment", "RecaptchaToken", + "Name", "Deployment", "RecaptchaToken", "LiveHandoffEnabled", }); internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_descriptor = getDescriptor().getMessageType(1); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java index 72e57048d7e5..bc909442a981 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java @@ -196,6 +196,26 @@ public enum WidgetType implements com.google.protobuf.ProtocolMessageEnum { * APPOINTMENT_DETAILS = 10; */ APPOINTMENT_DETAILS(10), + /** + * + * + *
            +     * Appointment scheduler widget.
            +     * 
            + * + * APPOINTMENT_SCHEDULER = 11; + */ + APPOINTMENT_SCHEDULER(11), + /** + * + * + *
            +     * Contact form widget.
            +     * 
            + * + * CONTACT_FORM = 12; + */ + CONTACT_FORM(12), UNRECOGNIZED(-1), ; @@ -275,160 +295,2263 @@ public enum WidgetType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRODUCT_COMPARISON_VALUE = 5; - /** - * - * - *
            -     * Advanced product details widget.
            -     * 
            - * - * ADVANCED_PRODUCT_DETAILS = 6; - */ - public static final int ADVANCED_PRODUCT_DETAILS_VALUE = 6; + /** + * + * + *
            +     * Advanced product details widget.
            +     * 
            + * + * ADVANCED_PRODUCT_DETAILS = 6; + */ + public static final int ADVANCED_PRODUCT_DETAILS_VALUE = 6; + + /** + * + * + *
            +     * Short form widget.
            +     * 
            + * + * SHORT_FORM = 7; + */ + public static final int SHORT_FORM_VALUE = 7; + + /** + * + * + *
            +     * Overall satisfaction widget.
            +     * 
            + * + * OVERALL_SATISFACTION = 8; + */ + public static final int OVERALL_SATISFACTION_VALUE = 8; + + /** + * + * + *
            +     * Order summary widget.
            +     * 
            + * + * ORDER_SUMMARY = 9; + */ + public static final int ORDER_SUMMARY_VALUE = 9; + + /** + * + * + *
            +     * Appointment details widget.
            +     * 
            + * + * APPOINTMENT_DETAILS = 10; + */ + public static final int APPOINTMENT_DETAILS_VALUE = 10; + + /** + * + * + *
            +     * Appointment scheduler widget.
            +     * 
            + * + * APPOINTMENT_SCHEDULER = 11; + */ + public static final int APPOINTMENT_SCHEDULER_VALUE = 11; + + /** + * + * + *
            +     * Contact form widget.
            +     * 
            + * + * CONTACT_FORM = 12; + */ + public static final int CONTACT_FORM_VALUE = 12; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WidgetType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static WidgetType forNumber(int value) { + switch (value) { + case 0: + return WIDGET_TYPE_UNSPECIFIED; + case 1: + return CUSTOM; + case 2: + return PRODUCT_CAROUSEL; + case 3: + return PRODUCT_DETAILS; + case 4: + return QUICK_ACTIONS; + case 5: + return PRODUCT_COMPARISON; + case 6: + return ADVANCED_PRODUCT_DETAILS; + case 7: + return SHORT_FORM; + case 8: + return OVERALL_SATISFACTION; + case 9: + return ORDER_SUMMARY; + case 10: + return APPOINTMENT_DETAILS; + case 11: + return APPOINTMENT_SCHEDULER; + case 12: + return CONTACT_FORM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WidgetType findValueByNumber(int number) { + return WidgetType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetTool.getDescriptor().getEnumTypes().get(0); + } + + private static final WidgetType[] VALUES = values(); + + public static WidgetType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private WidgetType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.WidgetType) + } + + public interface DataMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.WidgetTool.DataMapping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. The resource name of the tool that provides the data for the
            +     * widget (e.g., a search tool or a custom function). Format:
            +     * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +     * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceToolName. + */ + java.lang.String getSourceToolName(); + + /** + * + * + *
            +     * Optional. The resource name of the tool that provides the data for the
            +     * widget (e.g., a search tool or a custom function). Format:
            +     * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +     * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceToolName. + */ + com.google.protobuf.ByteString getSourceToolNameBytes(); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFieldMappingsCount(); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsFieldMappings(java.lang.String key); + + /** Use {@link #getFieldMappingsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFieldMappings(); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getFieldMappingsMap(); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getFieldMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getFieldMappingsOrThrow(java.lang.String key); + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + boolean hasPythonFunction(); + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + com.google.cloud.ces.v1.PythonFunction getPythonFunction(); + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder(); + + /** + * + * + *
            +     * Optional. The mode of the data mapping.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
            +     * Optional. The mode of the data mapping.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode getMode(); + + /** + * + * + *
            +     * Deprecated: Use `python_function` instead.
            +     * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The pythonScript. + */ + @java.lang.Deprecated + java.lang.String getPythonScript(); + + /** + * + * + *
            +     * Deprecated: Use `python_function` instead.
            +     * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The bytes for pythonScript. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getPythonScriptBytes(); + } + + /** + * + * + *
            +   * Configuration for mapping data from a source tool to the widget's input
            +   * parameters.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.WidgetTool.DataMapping} + */ + public static final class DataMapping extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.WidgetTool.DataMapping) + DataMappingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataMapping"); + } + + // Use DataMapping.newBuilder() to construct. + private DataMapping(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataMapping() { + sourceToolName_ = ""; + mode_ = 0; + pythonScript_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetFieldMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WidgetTool.DataMapping.class, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder.class); + } + + /** + * + * + *
            +     * The strategy used to map data from the source tool to the widget.
            +     * 
            + * + * Protobuf enum {@code google.cloud.ces.v1.WidgetTool.DataMapping.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified mode.
            +       * 
            + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
            +       * Use the `field_mappings` map for data transformation.
            +       * 
            + * + * FIELD_MAPPING = 1; + */ + FIELD_MAPPING(1), + /** + * + * + *
            +       * Use the `python_script` for data transformation.
            +       * 
            + * + * PYTHON_SCRIPT = 2; + */ + PYTHON_SCRIPT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
            +       * Unspecified mode.
            +       * 
            + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Use the `field_mappings` map for data transformation.
            +       * 
            + * + * FIELD_MAPPING = 1; + */ + public static final int FIELD_MAPPING_VALUE = 1; + + /** + * + * + *
            +       * Use the `python_script` for data transformation.
            +       * 
            + * + * PYTHON_SCRIPT = 2; + */ + public static final int PYTHON_SCRIPT_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return FIELD_MAPPING; + case 2: + return PYTHON_SCRIPT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetTool.DataMapping.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.DataMapping.Mode) + } + + private int bitField0_; + public static final int SOURCE_TOOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceToolName_ = ""; + + /** + * + * + *
            +     * Optional. The resource name of the tool that provides the data for the
            +     * widget (e.g., a search tool or a custom function). Format:
            +     * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +     * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceToolName. + */ + @java.lang.Override + public java.lang.String getSourceToolName() { + java.lang.Object ref = sourceToolName_; + 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(); + sourceToolName_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the tool that provides the data for the
            +     * widget (e.g., a search tool or a custom function). Format:
            +     * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +     * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceToolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceToolNameBytes() { + java.lang.Object ref = sourceToolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceToolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_MAPPINGS_FIELD_NUMBER = 2; + + private static final class FieldMappingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField fieldMappings_; + + private com.google.protobuf.MapField + internalGetFieldMappings() { + if (fieldMappings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldMappingsDefaultEntryHolder.defaultEntry); + } + return fieldMappings_; + } + + public int getFieldMappingsCount() { + return internalGetFieldMappings().getMap().size(); + } + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFieldMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFieldMappings().getMap().containsKey(key); + } + + /** Use {@link #getFieldMappingsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFieldMappings() { + return getFieldMappingsMap(); + } + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getFieldMappingsMap() { + return internalGetFieldMappings().getMap(); + } + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFieldMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFieldMappings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getFieldMappingsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFieldMappings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PYTHON_FUNCTION_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.PythonFunction pythonFunction_; + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + @java.lang.Override + public boolean hasPythonFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunction getPythonFunction() { + return pythonFunction_ == null + ? com.google.cloud.ces.v1.PythonFunction.getDefaultInstance() + : pythonFunction_; + } + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder() { + return pythonFunction_ == null + ? com.google.cloud.ces.v1.PythonFunction.getDefaultInstance() + : pythonFunction_; + } + + public static final int MODE_FIELD_NUMBER = 4; + private int mode_ = 0; + + /** + * + * + *
            +     * Optional. The mode of the data mapping.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
            +     * Optional. The mode of the data mapping.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode getMode() { + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode result = + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.UNRECOGNIZED + : result; + } + + public static final int PYTHON_SCRIPT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pythonScript_ = ""; + + /** + * + * + *
            +     * Deprecated: Use `python_function` instead.
            +     * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The pythonScript. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getPythonScript() { + java.lang.Object ref = pythonScript_; + 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(); + pythonScript_ = s; + return s; + } + } + + /** + * + * + *
            +     * Deprecated: Use `python_function` instead.
            +     * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The bytes for pythonScript. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getPythonScriptBytes() { + java.lang.Object ref = pythonScript_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonScript_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceToolName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sourceToolName_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetFieldMappings(), FieldMappingsDefaultEntryHolder.defaultEntry, 2); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonScript_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pythonScript_); + } + if (mode_ + != com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getPythonFunction()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceToolName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sourceToolName_); + } + for (java.util.Map.Entry entry : + internalGetFieldMappings().getMap().entrySet()) { + com.google.protobuf.MapEntry fieldMappings__ = + FieldMappingsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, fieldMappings__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonScript_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pythonScript_); + } + if (mode_ + != com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPythonFunction()); + } + 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.ces.v1.WidgetTool.DataMapping)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.WidgetTool.DataMapping other = + (com.google.cloud.ces.v1.WidgetTool.DataMapping) obj; + + if (!getSourceToolName().equals(other.getSourceToolName())) return false; + if (!internalGetFieldMappings().equals(other.internalGetFieldMappings())) return false; + if (hasPythonFunction() != other.hasPythonFunction()) return false; + if (hasPythonFunction()) { + if (!getPythonFunction().equals(other.getPythonFunction())) return false; + } + if (mode_ != other.mode_) return false; + if (!getPythonScript().equals(other.getPythonScript())) 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) + SOURCE_TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSourceToolName().hashCode(); + if (!internalGetFieldMappings().getMap().isEmpty()) { + hash = (37 * hash) + FIELD_MAPPINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFieldMappings().hashCode(); + } + if (hasPythonFunction()) { + hash = (37 * hash) + PYTHON_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getPythonFunction().hashCode(); + } + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + PYTHON_SCRIPT_FIELD_NUMBER; + hash = (53 * hash) + getPythonScript().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping 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.ces.v1.WidgetTool.DataMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping 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.ces.v1.WidgetTool.DataMapping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.ces.v1.WidgetTool.DataMapping 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration for mapping data from a source tool to the widget's input
            +     * parameters.
            +     * 
            + * + * Protobuf type {@code google.cloud.ces.v1.WidgetTool.DataMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.WidgetTool.DataMapping) + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetFieldMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableFieldMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WidgetTool.DataMapping.class, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.WidgetTool.DataMapping.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPythonFunctionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceToolName_ = ""; + internalGetMutableFieldMappings().clear(); + pythonFunction_ = null; + if (pythonFunctionBuilder_ != null) { + pythonFunctionBuilder_.dispose(); + pythonFunctionBuilder_ = null; + } + mode_ = 0; + pythonScript_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping getDefaultInstanceForType() { + return com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping build() { + com.google.cloud.ces.v1.WidgetTool.DataMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping buildPartial() { + com.google.cloud.ces.v1.WidgetTool.DataMapping result = + new com.google.cloud.ces.v1.WidgetTool.DataMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.WidgetTool.DataMapping result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceToolName_ = sourceToolName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldMappings_ = internalGetFieldMappings(); + result.fieldMappings_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pythonFunction_ = + pythonFunctionBuilder_ == null ? pythonFunction_ : pythonFunctionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pythonScript_ = pythonScript_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.WidgetTool.DataMapping) { + return mergeFrom((com.google.cloud.ces.v1.WidgetTool.DataMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.WidgetTool.DataMapping other) { + if (other == com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance()) + return this; + if (!other.getSourceToolName().isEmpty()) { + sourceToolName_ = other.sourceToolName_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableFieldMappings().mergeFrom(other.internalGetFieldMappings()); + bitField0_ |= 0x00000002; + if (other.hasPythonFunction()) { + mergePythonFunction(other.getPythonFunction()); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getPythonScript().isEmpty()) { + pythonScript_ = other.pythonScript_; + bitField0_ |= 0x00000010; + 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: + { + sourceToolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry fieldMappings__ = + input.readMessage( + FieldMappingsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFieldMappings() + .getMutableMap() + .put(fieldMappings__.getKey(), fieldMappings__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + pythonScript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 32: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetPythonFunctionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + 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 sourceToolName_ = ""; + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceToolName. + */ + public java.lang.String getSourceToolName() { + java.lang.Object ref = sourceToolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceToolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceToolName. + */ + public com.google.protobuf.ByteString getSourceToolNameBytes() { + java.lang.Object ref = sourceToolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceToolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceToolName to set. + * @return This builder for chaining. + */ + public Builder setSourceToolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceToolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceToolName() { + sourceToolName_ = getDefaultInstance().getSourceToolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sourceToolName to set. + * @return This builder for chaining. + */ + public Builder setSourceToolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.MapField fieldMappings_; + + private com.google.protobuf.MapField + internalGetFieldMappings() { + if (fieldMappings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldMappingsDefaultEntryHolder.defaultEntry); + } + return fieldMappings_; + } + + private com.google.protobuf.MapField + internalGetMutableFieldMappings() { + if (fieldMappings_ == null) { + fieldMappings_ = + com.google.protobuf.MapField.newMapField( + FieldMappingsDefaultEntryHolder.defaultEntry); + } + if (!fieldMappings_.isMutable()) { + fieldMappings_ = fieldMappings_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return fieldMappings_; + } + + public int getFieldMappingsCount() { + return internalGetFieldMappings().getMap().size(); + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFieldMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFieldMappings().getMap().containsKey(key); + } + + /** Use {@link #getFieldMappingsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFieldMappings() { + return getFieldMappingsMap(); + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getFieldMappingsMap() { + return internalGetFieldMappings().getMap(); + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFieldMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFieldMappings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getFieldMappingsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFieldMappings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFieldMappings() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableFieldMappings().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFieldMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFieldMappings().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFieldMappings() { + bitField0_ |= 0x00000002; + return internalGetMutableFieldMappings().getMutableMap(); + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putFieldMappings(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFieldMappings().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllFieldMappings(java.util.Map values) { + internalGetMutableFieldMappings().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private com.google.cloud.ces.v1.PythonFunction pythonFunction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder> + pythonFunctionBuilder_; + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + public boolean hasPythonFunction() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + public com.google.cloud.ces.v1.PythonFunction getPythonFunction() { + if (pythonFunctionBuilder_ == null) { + return pythonFunction_ == null + ? com.google.cloud.ces.v1.PythonFunction.getDefaultInstance() + : pythonFunction_; + } else { + return pythonFunctionBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonFunction(com.google.cloud.ces.v1.PythonFunction value) { + if (pythonFunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pythonFunction_ = value; + } else { + pythonFunctionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonFunction( + com.google.cloud.ces.v1.PythonFunction.Builder builderForValue) { + if (pythonFunctionBuilder_ == null) { + pythonFunction_ = builderForValue.build(); + } else { + pythonFunctionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePythonFunction(com.google.cloud.ces.v1.PythonFunction value) { + if (pythonFunctionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && pythonFunction_ != null + && pythonFunction_ != com.google.cloud.ces.v1.PythonFunction.getDefaultInstance()) { + getPythonFunctionBuilder().mergeFrom(value); + } else { + pythonFunction_ = value; + } + } else { + pythonFunctionBuilder_.mergeFrom(value); + } + if (pythonFunction_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPythonFunction() { + bitField0_ = (bitField0_ & ~0x00000004); + pythonFunction_ = null; + if (pythonFunctionBuilder_ != null) { + pythonFunctionBuilder_.dispose(); + pythonFunctionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.PythonFunction.Builder getPythonFunctionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPythonFunctionFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder() { + if (pythonFunctionBuilder_ != null) { + return pythonFunctionBuilder_.getMessageOrBuilder(); + } else { + return pythonFunction_ == null + ? com.google.cloud.ces.v1.PythonFunction.getDefaultInstance() + : pythonFunction_; + } + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder> + internalGetPythonFunctionFieldBuilder() { + if (pythonFunctionBuilder_ == null) { + pythonFunctionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder>( + getPythonFunction(), getParentForChildren(), isClean()); + pythonFunction_ = null; + } + return pythonFunctionBuilder_; + } - /** - * - * - *
            -     * Short form widget.
            -     * 
            - * - * SHORT_FORM = 7; - */ - public static final int SHORT_FORM_VALUE = 7; + private int mode_ = 0; + + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } - /** - * - * - *
            -     * Overall satisfaction widget.
            -     * 
            - * - * OVERALL_SATISFACTION = 8; - */ - public static final int OVERALL_SATISFACTION_VALUE = 8; + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - /** - * - * - *
            -     * Order summary widget.
            -     * 
            - * - * ORDER_SUMMARY = 9; - */ - public static final int ORDER_SUMMARY_VALUE = 9; + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode getMode() { + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode result = + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.UNRECOGNIZED + : result; + } - /** - * - * - *
            -     * Appointment details widget.
            -     * 
            - * - * APPOINTMENT_DETAILS = 10; - */ - public static final int APPOINTMENT_DETAILS_VALUE = 10; + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + mode_ = value.getNumber(); + onChanged(); + return this; + } - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000008); + mode_ = 0; + onChanged(); + return this; } - return value; - } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WidgetType valueOf(int value) { - return forNumber(value); - } + private java.lang.Object pythonScript_ = ""; + + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The pythonScript. + */ + @java.lang.Deprecated + public java.lang.String getPythonScript() { + java.lang.Object ref = pythonScript_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonScript_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static WidgetType forNumber(int value) { - switch (value) { - case 0: - return WIDGET_TYPE_UNSPECIFIED; - case 1: - return CUSTOM; - case 2: - return PRODUCT_CAROUSEL; - case 3: - return PRODUCT_DETAILS; - case 4: - return QUICK_ACTIONS; - case 5: - return PRODUCT_COMPARISON; - case 6: - return ADVANCED_PRODUCT_DETAILS; - case 7: - return SHORT_FORM; - case 8: - return OVERALL_SATISFACTION; - case 9: - return ORDER_SUMMARY; - case 10: - return APPOINTMENT_DETAILS; - default: - return null; + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The bytes for pythonScript. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getPythonScriptBytes() { + java.lang.Object ref = pythonScript_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonScript_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @param value The pythonScript to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPythonScript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pythonScript_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WidgetType findValueByNumber(int number) { - return WidgetType.forNumber(number); - } - }; + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearPythonScript() { + pythonScript_ = getDefaultInstance().getPythonScript(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @param value The bytes for pythonScript to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPythonScriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pythonScript_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } - return getDescriptor().getValues().get(ordinal()); + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.WidgetTool.DataMapping) } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.WidgetTool.DataMapping) + private static final com.google.cloud.ces.v1.WidgetTool.DataMapping DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.WidgetTool.DataMapping(); } - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.ces.v1.WidgetTool.getDescriptor().getEnumTypes().get(0); + public static com.google.cloud.ces.v1.WidgetTool.DataMapping getDefaultInstance() { + return DEFAULT_INSTANCE; } - private static final WidgetType[] VALUES = values(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataMapping 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 WidgetType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; - - private WidgetType(int value) { - this.value = value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.WidgetType) + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } + private int bitField0_; private int inputCase_ = 0; @SuppressWarnings("serial") @@ -682,6 +2805,117 @@ public com.google.cloud.ces.v1.WidgetTool.WidgetType getWidgetType() { return result == null ? com.google.cloud.ces.v1.WidgetTool.WidgetType.UNRECOGNIZED : result; } + public static final int UI_CONFIG_FIELD_NUMBER = 5; + private com.google.protobuf.Struct uiConfig_; + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the uiConfig field is set. + */ + @java.lang.Override + public boolean hasUiConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uiConfig. + */ + @java.lang.Override + public com.google.protobuf.Struct getUiConfig() { + return uiConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : uiConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getUiConfigOrBuilder() { + return uiConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : uiConfig_; + } + + public static final int DATA_MAPPING_FIELD_NUMBER = 6; + private com.google.cloud.ces.v1.WidgetTool.DataMapping dataMapping_; + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMapping field is set. + */ + @java.lang.Override + public boolean hasDataMapping() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping getDataMapping() { + return dataMapping_ == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder() { + return dataMapping_ == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -709,6 +2943,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputCase_ == 4) { output.writeMessage(4, (com.google.cloud.ces.v1.Schema) input_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getUiConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getDataMapping()); + } getUnknownFields().writeTo(output); } @@ -733,6 +2973,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.ces.v1.Schema) input_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUiConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDataMapping()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -751,6 +2997,14 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (widgetType_ != other.widgetType_) return false; + if (hasUiConfig() != other.hasUiConfig()) return false; + if (hasUiConfig()) { + if (!getUiConfig().equals(other.getUiConfig())) return false; + } + if (hasDataMapping() != other.hasDataMapping()) return false; + if (hasDataMapping()) { + if (!getDataMapping().equals(other.getDataMapping())) return false; + } if (!getInputCase().equals(other.getInputCase())) return false; switch (inputCase_) { case 4: @@ -776,6 +3030,14 @@ public int hashCode() { hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + WIDGET_TYPE_FIELD_NUMBER; hash = (53 * hash) + widgetType_; + if (hasUiConfig()) { + hash = (37 * hash) + UI_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getUiConfig().hashCode(); + } + if (hasDataMapping()) { + hash = (37 * hash) + DATA_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + getDataMapping().hashCode(); + } switch (inputCase_) { case 4: hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; @@ -916,10 +3178,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1.WidgetTool.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUiConfigFieldBuilder(); + internalGetDataMappingFieldBuilder(); + } } @java.lang.Override @@ -932,6 +3204,16 @@ public Builder clear() { name_ = ""; description_ = ""; widgetType_ = 0; + uiConfig_ = null; + if (uiConfigBuilder_ != null) { + uiConfigBuilder_.dispose(); + uiConfigBuilder_ = null; + } + dataMapping_ = null; + if (dataMappingBuilder_ != null) { + dataMappingBuilder_.dispose(); + dataMappingBuilder_ = null; + } inputCase_ = 0; input_ = null; return this; @@ -979,6 +3261,17 @@ private void buildPartial0(com.google.cloud.ces.v1.WidgetTool result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.widgetType_ = widgetType_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.uiConfig_ = uiConfigBuilder_ == null ? uiConfig_ : uiConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dataMapping_ = + dataMappingBuilder_ == null ? dataMapping_ : dataMappingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.ces.v1.WidgetTool result) { @@ -1014,6 +3307,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.WidgetTool other) { if (other.widgetType_ != 0) { setWidgetTypeValue(other.getWidgetTypeValue()); } + if (other.hasUiConfig()) { + mergeUiConfig(other.getUiConfig()); + } + if (other.hasDataMapping()) { + mergeDataMapping(other.getDataMapping()); + } switch (other.getInputCase()) { case PARAMETERS: { @@ -1076,6 +3375,20 @@ public Builder mergeFrom( inputCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage( + internalGetUiConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetDataMappingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1663,6 +3976,419 @@ public Builder clearWidgetType() { return this; } + private com.google.protobuf.Struct uiConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + uiConfigBuilder_; + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the uiConfig field is set. + */ + public boolean hasUiConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uiConfig. + */ + public com.google.protobuf.Struct getUiConfig() { + if (uiConfigBuilder_ == null) { + return uiConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : uiConfig_; + } else { + return uiConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUiConfig(com.google.protobuf.Struct value) { + if (uiConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uiConfig_ = value; + } else { + uiConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUiConfig(com.google.protobuf.Struct.Builder builderForValue) { + if (uiConfigBuilder_ == null) { + uiConfig_ = builderForValue.build(); + } else { + uiConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeUiConfig(com.google.protobuf.Struct value) { + if (uiConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && uiConfig_ != null + && uiConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { + getUiConfigBuilder().mergeFrom(value); + } else { + uiConfig_ = value; + } + } else { + uiConfigBuilder_.mergeFrom(value); + } + if (uiConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearUiConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + uiConfig_ = null; + if (uiConfigBuilder_ != null) { + uiConfigBuilder_.dispose(); + uiConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getUiConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUiConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getUiConfigOrBuilder() { + if (uiConfigBuilder_ != null) { + return uiConfigBuilder_.getMessageOrBuilder(); + } else { + return uiConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : uiConfig_; + } + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetUiConfigFieldBuilder() { + if (uiConfigBuilder_ == null) { + uiConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getUiConfig(), getParentForChildren(), isClean()); + uiConfig_ = null; + } + return uiConfigBuilder_; + } + + private com.google.cloud.ces.v1.WidgetTool.DataMapping dataMapping_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.DataMapping, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder> + dataMappingBuilder_; + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMapping field is set. + */ + public boolean hasDataMapping() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + public com.google.cloud.ces.v1.WidgetTool.DataMapping getDataMapping() { + if (dataMappingBuilder_ == null) { + return dataMapping_ == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } else { + return dataMappingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataMapping(com.google.cloud.ces.v1.WidgetTool.DataMapping value) { + if (dataMappingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataMapping_ = value; + } else { + dataMappingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataMapping( + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder builderForValue) { + if (dataMappingBuilder_ == null) { + dataMapping_ = builderForValue.build(); + } else { + dataMappingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataMapping(com.google.cloud.ces.v1.WidgetTool.DataMapping value) { + if (dataMappingBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && dataMapping_ != null + && dataMapping_ + != com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance()) { + getDataMappingBuilder().mergeFrom(value); + } else { + dataMapping_ = value; + } + } else { + dataMappingBuilder_.mergeFrom(value); + } + if (dataMapping_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataMapping() { + bitField0_ = (bitField0_ & ~0x00000020); + dataMapping_ = null; + if (dataMappingBuilder_ != null) { + dataMappingBuilder_.dispose(); + dataMappingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder getDataMappingBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetDataMappingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder() { + if (dataMappingBuilder_ != null) { + return dataMappingBuilder_.getMessageOrBuilder(); + } else { + return dataMapping_ == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.DataMapping, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder> + internalGetDataMappingFieldBuilder() { + if (dataMappingBuilder_ == null) { + dataMappingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.DataMapping, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder>( + getDataMapping(), getParentForChildren(), isClean()); + dataMapping_ = null; + } + return dataMappingBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.WidgetTool) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java index c47e8c364992..de79d65c1798 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java @@ -150,5 +150,88 @@ public interface WidgetToolOrBuilder */ com.google.cloud.ces.v1.WidgetTool.WidgetType getWidgetType(); + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the uiConfig field is set. + */ + boolean hasUiConfig(); + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uiConfig. + */ + com.google.protobuf.Struct getUiConfig(); + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getUiConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMapping field is set. + */ + boolean hasDataMapping(); + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + com.google.cloud.ces.v1.WidgetTool.DataMapping getDataMapping(); + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder(); + com.google.cloud.ces.v1.WidgetTool.InputCase getInputCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java index f16f0cb91413..7b6816531d2a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java @@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_WidgetTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -53,41 +61,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n%google/cloud/ces/v1/widget_tool.proto\022" + "\n" + + "%google/cloud/ces/v1/widget_tool.proto\022" + "\023google.cloud.ces.v1\032\037google/api/field_b" - + "ehavior.proto\032 google/cloud/ces/v1/schem" - + "a.proto\"\302\003\n\nWidgetTool\0226\n\nparameters\030\004 \001" - + "(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001H\000\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003" - + "\340A\001\022D\n\013widget_type\030\003 \001(\0162*.google.cloud." - + "ces.v1.WidgetTool.WidgetTypeB\003\340A\001\"\377\001\n\nWi" - + "dgetType\022\033\n\027WIDGET_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006CUSTOM\020\001\022\024\n\020PRODUCT_CAROUSEL\020\002\022\023\n\017PRODU" - + "CT_DETAILS\020\003\022\021\n\rQUICK_ACTIONS\020\004\022\026\n\022PRODU" - + "CT_COMPARISON\020\005\022\034\n\030ADVANCED_PRODUCT_DETA" - + "ILS\020\006\022\016\n\nSHORT_FORM\020\007\022\030\n\024OVERALL_SATISFA" - + "CTION\020\010\022\021\n\rORDER_SUMMARY\020\t\022\027\n\023APPOINTMEN" - + "T_DETAILS\020\nB\007\n\005inputBW\n\027com.google.cloud" - + ".ces.v1B\017WidgetToolProtoP\001Z)cloud.google" - + ".com/go/ces/apiv1/cespb;cespbb\006proto3" + + "ehavior.proto\032)google/cloud/ces/v1/python_function.proto\032 google/cloud/ces/v1/sc" + + "hema.proto\032\034google/protobuf/struct.proto\"\221\010\n\n" + + "WidgetTool\0226\n\n" + + "parameters\030\004" + + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\022D\n" + + "\013widget_type\030\003" + + " \001(\0162*.google.cloud.ces.v1.WidgetTool.WidgetTypeB\003\340A\001\022/\n" + + "\tui_config\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001\022F\n" + + "\014data_mapping\030\006" + + " \001(\0132+.google.cloud.ces.v1.WidgetTool.DataMappingB\003\340A\001\032\246\003\n" + + "\013DataMapping\022\035\n" + + "\020source_tool_name\030\001 \001(\tB\003\340A\001\022[\n" + + "\016field_mappings\030\002 \003(\0132>.google.cloud.ces.v1" + + ".WidgetTool.DataMapping.FieldMappingsEntryB\003\340A\001\022A\n" + + "\017python_function\030\005" + + " \001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001\022C\n" + + "\004mode\030\004" + + " \001(\01620.google.cloud.ces.v1.WidgetTool.DataMapping.ModeB\003\340A\001\022\031\n\r" + + "python_script\030\003 \001(\tB\002\030\001\0324\n" + + "\022FieldMappingsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"B\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\021\n\r" + + "FIELD_MAPPING\020\001\022\021\n\r" + + "PYTHON_SCRIPT\020\002\"\254\002\n\n" + + "WidgetType\022\033\n" + + "\027WIDGET_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006CUSTOM\020\001\022\024\n" + + "\020PRODUCT_CAROUSEL\020\002\022\023\n" + + "\017PRODUCT_DETAILS\020\003\022\021\n\r" + + "QUICK_ACTIONS\020\004\022\026\n" + + "\022PRODUCT_COMPARISON\020\005\022\034\n" + + "\030ADVANCED_PRODUCT_DETAILS\020\006\022\016\n\n" + + "SHORT_FORM\020\007\022\030\n" + + "\024OVERALL_SATISFACTION\020\010\022\021\n\r" + + "ORDER_SUMMARY\020\t\022\027\n" + + "\023APPOINTMENT_DETAILS\020\n" + + "\022\031\n" + + "\025APPOINTMENT_SCHEDULER\020\013\022\020\n" + + "\014CONTACT_FORM\020\014B\007\n" + + "\005inputBW\n" + + "\027com.google.cloud.ces.v1B\017WidgetToolProtoP\001Z)cloud.google.com/go/ces/apiv" + + "1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.PythonFunctionProto.getDescriptor(), com.google.cloud.ces.v1.SchemaProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_ces_v1_WidgetTool_descriptor = getDescriptor().getMessageType(0); internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_WidgetTool_descriptor, new java.lang.String[] { - "Parameters", "Name", "Description", "WidgetType", "Input", + "Parameters", "Name", "Description", "WidgetType", "UiConfig", "DataMapping", "Input", + }); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor = + internal_static_google_cloud_ces_v1_WidgetTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor, + new java.lang.String[] { + "SourceToolName", "FieldMappings", "PythonFunction", "Mode", "PythonScript", + }); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_descriptor = + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.PythonFunctionProto.getDescriptor(); com.google.cloud.ces.v1.SchemaProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto index 71912ad23804..1543fbd2169b 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto @@ -628,6 +628,14 @@ message ExportAppRequest { // app. The format of this URI must be `gs:///`. The // exported app archive will be written directly to the specified GCS object. string gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource name of the app version to export. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/versions/{version}`. + string app_version = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } + ]; } // Response message for diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_tool.proto new file mode 100644 index 000000000000..48cd124397f3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_tool.proto @@ -0,0 +1,41 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AgentToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Represents a tool that allows the agent to call another agent. +message AgentTool { + // Required. The name of the agent tool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description of the tool's purpose. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource name of the root agent that is the entry point of + // the tool. Format: `projects/{project}/locations/{location}/agents/{agent}` + string root_agent = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto index c62fd0194a7e..6f76428e5179 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto @@ -122,6 +122,10 @@ message App { // Optional. Logging settings of the app. LoggingSettings logging_settings = 8 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Error handling settings of the app. + ErrorHandlingSettings error_handling_settings = 34 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The default LLM model settings for the app. // Individual resources (e.g. agents, guardrails) can override these // configurations as needed. @@ -216,8 +220,11 @@ message LanguageSettings { // pre-built instructions to improve handling of multilingual input. bool enable_multilingual_support = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The action to perform when an agent receives input in an - // unsupported language. + // Optional. Deprecated: This feature is no longer supported. Use + // `enable_multilingual_support` instead to improve handling of multilingual + // input. + // The action to perform when an agent receives input in an unsupported + // language. // // This can be a predefined action or a custom tool call. // Valid values are: @@ -226,7 +233,8 @@ message LanguageSettings { // an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding // [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the // conversation. - string fallback_action = 4 [(google.api.field_behavior) = OPTIONAL]; + string fallback_action = 4 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Configuration for how the input and output audio should be processed and @@ -402,6 +410,30 @@ message LoggingSettings { [(google.api.field_behavior) = OPTIONAL]; } +// Settings to describe how errors should be handled in the app. +message ErrorHandlingSettings { + // Defines the strategy for handling errors. + enum ErrorHandlingStrategy { + // Unspecified error handling strategy. + ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0; + + // No specific handling is enabled. + NONE = 1; + + // A fallback message will be returned to the user in case of + // system errors (e.g. LLM errors). + FALLBACK_RESPONSE = 2; + + // An [EndSession][google.cloud.ces.v1.EndSession] signal will be emitted in + // case of system errors (e.g. LLM errors). + END_SESSION = 3; + } + + // Optional. The strategy to use for error handling. + ErrorHandlingStrategy error_handling_strategy = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + // Threshold settings for metrics in an Evaluation. message EvaluationMetricsThresholds { // Settings for golden evaluations. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto index dd9e7cc1f715..982d87226682 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto @@ -28,13 +28,13 @@ message BigQueryExportSettings { // Optional. Indicates whether the BigQuery export is enabled. bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The project ID of the BigQuery dataset to export the data to. + // Optional. The **project ID** of the BigQuery dataset to export the data to. // // Note: If the BigQuery dataset is in a different project from the app, // you should grant `roles/bigquery.admin` role to the CES service agent // `service-@gcp-sa-ces.iam.gserviceaccount.com`. string project = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The BigQuery dataset to export the data to. + // Optional. The BigQuery **dataset ID** to export the data to. string dataset = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto index c5e638848cd8..c4c28e1d4083 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto @@ -148,11 +148,14 @@ message TlsConfig { // is empty or unspecified, CES will use Google's default trust // store to verify certificates. N.B. Make sure the HTTPS server // certificates are signed with "subject alt name". For instance a - // certificate can be self-signed using the following command, + // certificate can be self-signed using the following command: + // + // ``` // openssl x509 -req -days 200 -in example.com.csr \ // -signkey example.com.key \ // -out example.com.crt \ // -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + // ``` bytes cert = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -239,6 +242,9 @@ message ChannelProfile { // Widget supports only chat input. CHAT_ONLY = 3; + + // Widget supports chat, voice, and video input. + CHAT_VOICE_AND_VIDEO = 4; } // Theme of the web widget. @@ -289,6 +295,9 @@ message ChannelProfile { // Five9 channel. FIVE9 = 7; + + // Third party contact center integration channel. + CONTACT_CENTER_INTEGRATION = 8; } // Optional. The unique identifier of the channel profile. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto index 0edb8ebdb685..61d238e175d6 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto @@ -38,17 +38,19 @@ message Deployment { // Identifier. The resource name of the deployment. // Format: - // projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + // `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Display name of the deployment. string display_name = 8 [(google.api.field_behavior) = REQUIRED]; - // Required. The resource name of the app version to deploy. + // Optional. The resource name of the app version to deploy. // Format: - // projects/{project}/locations/{location}/apps/{app}/versions/{version} + // `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + // Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use + // the draft app. string app_version = 2 [ - (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } ]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto index 8f5097320f5e..c658081ab052 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto @@ -102,6 +102,9 @@ message Chunk { // Optional. Transcript associated with the audio. string transcript = 9 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Blob data. + Blob blob = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Custom payload data. google.protobuf.Struct payload = 11 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto index fddc46e157e7..03560357395d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto @@ -66,4 +66,12 @@ message McpTool { // service names within a perimeter. ServiceDirectoryConfig service_directory_config = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The custom headers to send in the request to the MCP server. The + // values must be in the format `$context.variables.` and + // can be set in the session variables. See + // https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection + // for more details. + map custom_headers = 9 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto index 4f3e3ab8a524..77cec758d712 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto @@ -51,4 +51,12 @@ message McpToolset { // Optional. The TLS configuration. Includes the custom server certificates // that the client should trust. TlsConfig tls_config = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The custom headers to send in the request to the MCP server. The + // values must be in the format `$context.variables.` and + // can be set in the session variables. See + // https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection + // for more details. + map custom_headers = 5 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/security_settings.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/security_settings.proto new file mode 100644 index 000000000000..c535d97dbbe5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/security_settings.proto @@ -0,0 +1,85 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "SecuritySettingsProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Project/Location level security settings for CES. +message SecuritySettings { + option (google.api.resource) = { + type: "ces.googleapis.com/SecuritySettings" + pattern: "projects/{project}/locations/{location}/securitySettings" + plural: "securitySettings" + singular: "securitySettings" + }; + + // Identifier. The unique identifier of the security settings. + // Format: `projects/{project}/locations/{location}/securitySettings` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Endpoint control related settings. + EndpointControlPolicy endpoint_control_policy = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Create time of the security settings. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of the security settings. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag of the security settings. + string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Defines project/location level endpoint control policy. +message EndpointControlPolicy { + // Defines the scope in which this policy's allowed_origins list is + // enforced. + enum EnforcementScope { + // Unspecified. This policy will be treated as VPCSC_ONLY. + ENFORCEMENT_SCOPE_UNSPECIFIED = 0; + + // This policy applies only when VPC-SC is active. + VPCSC_ONLY = 1; + + // This policy ALWAYS applies, regardless of VPC-SC status. + ALWAYS = 2; + } + + // Optional. The scope in which this policy's allowed_origins list is + // enforced. + EnforcementScope enforcement_scope = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The allowed HTTP(s) origins that tools in the App are able to + // directly call. The enforcement depends on the value of + // enforcement_scope and the VPC-SC status of the project. + // If a port number is not provided, all ports will be allowed. Otherwise, + // the port number must match exactly. For example, "https://example.com" + // will match "https://example.com:443" and any other port. + // "https://example.com:443" will only match "https://example.com:443". + repeated string allowed_origins = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto index 7804515b178f..93e33a197f44 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto @@ -41,8 +41,7 @@ service SessionService { "https://www.googleapis.com/auth/ces," "https://www.googleapis.com/auth/cloud-platform"; - // Initiates a single turn interaction with the CES agent within a - // session. + // Initiates a single-turn interaction with the CES agent within a session. rpc RunSession(RunSessionRequest) returns (RunSessionResponse) { option (google.api.http) = { post: "/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:runSession" @@ -50,6 +49,22 @@ service SessionService { }; } + // Initiates a single-turn interaction with the CES agent. Uses server-side + // streaming to deliver incremental results and partial responses as they are + // generated. + // + // By default, complete responses (e.g., messages from callbacks or full LLM + // responses) are sent to the client as soon as they are available. To enable + // streaming individual text chunks directly from the model, set + // [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming] + // to true. + rpc StreamRunSession(RunSessionRequest) returns (stream RunSessionResponse) { + option (google.api.http) = { + post: "/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession" + body: "*" + }; + } + // Establishes a bidirectional streaming connection with the CES agent. // The agent processes continuous multimodal inputs (e.g., text, audio) and // generates real-time multimodal output streams. @@ -205,7 +220,7 @@ message SessionConfig { // Optional. The entry agent to handle the session. If not specified, the // session will be handled by the [root // agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - // `projects/{project}/locations/{location}/agents/{agent}` + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` string entry_agent = 12 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } @@ -224,6 +239,11 @@ message SessionConfig { // "America/Los_Angeles". string time_zone = 11 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Whether to use tool fakes for the session. + // If this field is set, the agent will attempt use tool fakes instead of + // calling the real tools. + bool use_tool_fakes = 14 [(google.api.field_behavior) = OPTIONAL]; + // Optional. // [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters) // to send to the remote @@ -231,6 +251,14 @@ message SessionConfig { // agent when the session control is transferred to the remote agent. RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to enable streaming text outputs from the model. + // By default, text outputs from the model are collected before sending to the + // client. + // NOTE: This is only supported for text (non-voice) sessions via + // [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or + // [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession]. + bool enable_text_streaming = 18 [(google.api.field_behavior) = OPTIONAL]; } // Request for the client to execute the tools and return the execution results @@ -306,12 +334,14 @@ message SessionInput { } // Optional. A flag to indicate if the current message is a fragment of a - // larger input in the bidi streaming session. When `true`, the agent will - // defer processing until a subsequent message with `will_continue` set to - // `false` is received. + // larger input in the bidi streaming session. + // + // When set to `true`, the agent defers processing until it receives a + // subsequent message where `will_continue` is `false`, or until the system + // detects an endpoint in the audio input. // - // Note: This flag has no effect on audio and DTMF inputs, which are always - // processed in real-time. + // NOTE: This field does not apply to audio and DTMF inputs, as they are + // always processed automatically based on the endpointing signal. bool will_continue = 8 [(google.api.field_behavior) = OPTIONAL]; } @@ -442,7 +472,7 @@ message BidiSessionServerMessage { RecognitionResult recognition_result = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Interruption signal detected from the audio input. + // Optional. Indicates the agent's audio response has been interrupted. InterruptionSignal interruption_signal = 3 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto index 6b30a6d92633..5bb4821b91fb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto @@ -18,6 +18,7 @@ package google.cloud.ces.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/ces/v1/agent_tool.proto"; import "google/cloud/ces/v1/client_function.proto"; import "google/cloud/ces/v1/common.proto"; import "google/cloud/ces/v1/connector_tool.proto"; @@ -80,18 +81,22 @@ message Tool { // Optional. The system tool. SystemTool system_tool = 18 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The agent tool. + AgentTool agent_tool = 23 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The widget tool. WidgetTool widget_tool = 24 [(google.api.field_behavior) = OPTIONAL]; } - // Identifier. The unique identifier of the tool. - // Format: - // - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for - // ## standalone tools. + // Identifier. The resource name of the tool. Format: + // + // * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + // for standalone tools. + // * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + // for tools retrieved from a toolset. // - // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` - // for tools retrieved from a toolset. These tools are dynamic and - // output-only, they cannot be referenced directly where a tool is expected. + // These tools are dynamic and output-only; they cannot be referenced directly + // where a tool is expected. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The display name of the tool, derived based on the tool's diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto index 650c8f50cb4b..b14807418ec4 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto @@ -83,6 +83,18 @@ message ExecuteToolRequest { ToolsetTool toolset_tool = 3 [(google.api.field_behavior) = OPTIONAL]; } + // Additional context to be provided for the tool execution + oneof tool_execution_context { + // Optional. The variables that are available for the tool execution. + google.protobuf.Struct variables = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment + // for details) to be passed to the Python tool. + google.protobuf.Struct context = 6 [(google.api.field_behavior) = OPTIONAL]; + } + // Required. The resource name of the app which the tool/toolset belongs to. // Format: `projects/{project}/locations/{location}/apps/{app}` string parent = 4 [ @@ -109,11 +121,14 @@ message ExecuteToolResponse { ToolsetTool toolset_tool = 3; } - // Required. The tool execution result in JSON object format. + // The tool execution result in JSON object format. // Use "output" key to specify tool response and "error" key to specify // error details (if any). If "output" and "error" keys are not specified, // then whole "response" is treated as tool execution result. - google.protobuf.Struct response = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Struct response = 2; + + // The variable values at the end of the tool execution. + google.protobuf.Struct variables = 4; } // Request message for @@ -158,11 +173,11 @@ message RetrieveToolSchemaResponse { ToolsetTool toolset_tool = 2; } - // Required. The schema of the tool input parameters. - Schema input_schema = 3 [(google.api.field_behavior) = REQUIRED]; + // The schema of the tool input parameters. + Schema input_schema = 3; - // Required. The schema of the tool output parameters. - Schema output_schema = 4 [(google.api.field_behavior) = REQUIRED]; + // The schema of the tool output parameters. + Schema output_schema = 4; } // Request message for @@ -184,6 +199,6 @@ message RetrieveToolsRequest { // Response message for // [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools]. message RetrieveToolsResponse { - // Required. The list of tools that are included in the specified toolset. - repeated Tool tools = 1 [(google.api.field_behavior) = REQUIRED]; + // The list of tools that are included in the specified toolset. + repeated Tool tools = 1; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto index 2aba89531152..d4047c009074 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto @@ -66,6 +66,9 @@ message GenerateChatTokenRequest { // Optional. The reCAPTCHA token generated by the client-side chat widget. string recaptcha_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates if live handoff is enabled for the session. + bool live_handoff_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto index dff7057ab73b..eaa4cfb384d3 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto @@ -17,7 +17,9 @@ syntax = "proto3"; package google.cloud.ces.v1; import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/python_function.proto"; import "google/cloud/ces/v1/schema.proto"; +import "google/protobuf/struct.proto"; option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; option java_multiple_files = true; @@ -29,6 +31,42 @@ option java_package = "com.google.cloud.ces.v1"; // responsible for processing the widget and generating the next user query to // continue the interaction with the agent. message WidgetTool { + // Configuration for mapping data from a source tool to the widget's input + // parameters. + message DataMapping { + // The strategy used to map data from the source tool to the widget. + enum Mode { + // Unspecified mode. + MODE_UNSPECIFIED = 0; + + // Use the `field_mappings` map for data transformation. + FIELD_MAPPING = 1; + + // Use the `python_script` for data transformation. + PYTHON_SCRIPT = 2; + } + + // Optional. The resource name of the tool that provides the data for the + // widget (e.g., a search tool or a custom function). Format: + // `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}` + string source_tool_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A map of widget input parameter fields to the corresponding + // output fields of the source tool. + map field_mappings = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for a Python function used to transform the + // source tool's output into the widget's input format. + PythonFunction python_function = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The mode of the data mapping. + Mode mode = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Deprecated: Use `python_function` instead. + string python_script = 3 [deprecated = true]; + } + // All available widget types. // New values may be added to this enum in the future. enum WidgetType { @@ -64,6 +102,12 @@ message WidgetTool { // Appointment details widget. APPOINTMENT_DETAILS = 10; + + // Appointment scheduler widget. + APPOINTMENT_SCHEDULER = 11; + + // Contact form widget. + CONTACT_FORM = 12; } // The input of the widget tool. @@ -81,4 +125,11 @@ message WidgetTool { // Optional. The type of the widget tool. If not specified, the default type // will be CUSTOMIZED. WidgetType widget_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for rendering the widget. + google.protobuf.Struct ui_config = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The mapping that defines how data from a source tool is mapped to + // the widget's input parameters. + DataMapping data_mapping = 6 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java index e85a10be687d..41a99acaa110 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.ces.v1.AgentServiceClient; import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersionName; import com.google.cloud.ces.v1.ExportAppRequest; import com.google.longrunning.Operation; @@ -40,6 +41,8 @@ public static void asyncExportApp() throws Exception { ExportAppRequest.newBuilder() .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setGcsUri("gcsUri-1251224875") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) .build(); ApiFuture future = agentServiceClient.exportAppCallable().futureCall(request); // Do something. diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java index 88374e0a923f..7247f5417da8 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java @@ -20,6 +20,7 @@ import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.ces.v1.AgentServiceClient; import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersionName; import com.google.cloud.ces.v1.ExportAppRequest; import com.google.cloud.ces.v1.ExportAppResponse; import com.google.cloud.ces.v1.OperationMetadata; @@ -41,6 +42,8 @@ public static void asyncExportAppLRO() throws Exception { ExportAppRequest.newBuilder() .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setGcsUri("gcsUri-1251224875") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) .build(); OperationFuture future = agentServiceClient.exportAppOperationCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java index 76c3f9db4e1b..d27c618b16a5 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java @@ -19,6 +19,7 @@ // [START ces_v1_generated_AgentService_ExportApp_sync] import com.google.cloud.ces.v1.AgentServiceClient; import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersionName; import com.google.cloud.ces.v1.ExportAppRequest; import com.google.cloud.ces.v1.ExportAppResponse; @@ -39,6 +40,8 @@ public static void syncExportApp() throws Exception { ExportAppRequest.newBuilder() .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setGcsUri("gcsUri-1251224875") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) .build(); ExportAppResponse response = agentServiceClient.exportAppAsync(request).get(); } diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/streamrunsession/AsyncStreamRunSession.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/streamrunsession/AsyncStreamRunSession.java new file mode 100644 index 000000000000..05e56de2c531 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/streamrunsession/AsyncStreamRunSession.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_StreamRunSession_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.ces.v1.RunSessionRequest; +import com.google.cloud.ces.v1.RunSessionResponse; +import com.google.cloud.ces.v1.SessionConfig; +import com.google.cloud.ces.v1.SessionInput; +import com.google.cloud.ces.v1.SessionServiceClient; +import java.util.ArrayList; + +public class AsyncStreamRunSession { + + public static void main(String[] args) throws Exception { + asyncStreamRunSession(); + } + + public static void asyncStreamRunSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig(SessionConfig.newBuilder().build()) + .addAllInputs(new ArrayList()) + .build(); + ServerStream stream = + sessionServiceClient.streamRunSessionCallable().call(request); + for (RunSessionResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END ces_v1_generated_SessionService_StreamRunSession_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java index 22b175123a80..858f9e8f96b5 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java @@ -43,6 +43,7 @@ public static void asyncGenerateChatToken() throws Exception { .setDeployment( DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) .setRecaptchaToken("recaptchaToken1978277202") + .setLiveHandoffEnabled(true) .build(); ApiFuture future = widgetServiceClient.generateChatTokenCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java index 05a87ab7944b..3329de0d5c31 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java @@ -42,6 +42,7 @@ public static void syncGenerateChatToken() throws Exception { .setDeployment( DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) .setRecaptchaToken("recaptchaToken1978277202") + .setLiveHandoffEnabled(true) .build(); GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); } diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index 868036e9ea0c..0c1ddbec413f 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.8.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.9.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java index c3d7cd71b430..63cbb67c0e1e 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java @@ -539,6 +539,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-databasecenter") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java new file mode 100644 index 000000000000..d53b9d6cde05 --- /dev/null +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.databasecenter.v1beta.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-databasecenter:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json index 3068f91cfec4..8889be9c9c3b 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json +++ b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java index 72f2504caf48..e92b911a5b1a 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java @@ -24,8 +24,7 @@ * * *
            - * Proto representing the edition of the instance.
            - * NextId: 4.
            + * Represents the edition of a database resource.
              * 
            * * Protobuf enum {@code google.cloud.databasecenter.v1beta.Edition} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java index a6b3cfd3dd63..e6b875bf4f65 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java @@ -340,43 +340,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023EDITION_UNSPECIFIED\020\000\022\026\n" + "\022EDITION_ENTERPRISE\020\001\022\033\n" + "\027EDITION_ENTERPRISE_PLUS\020\002\022\024\n" - + "\020EDITION_STANDARD\020\003*\335\001\n" + + "\020EDITION_STANDARD\020\003*\300\002\n" + "\017SubResourceType\022!\n" + "\035SUB_RESOURCE_TYPE_UNSPECIFIED\020\000\022\035\n" + "\031SUB_RESOURCE_TYPE_PRIMARY\020\001\022\037\n" + "\033SUB_RESOURCE_TYPE_SECONDARY\020\002\022\"\n" + "\036SUB_RESOURCE_TYPE_READ_REPLICA\020\003\022&\n" - + "\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\020\005\022\033\n" + + "\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\020\005\022\037\n" + + "\033SUB_RESOURCE_TYPE_READ_POOL\020\006\022!\n" + + "\035SUB_RESOURCE_TYPE_RESERVATION\020\007\022\035\n" + + "\031SUB_RESOURCE_TYPE_DATASET\020\010\022\033\n" + "\027SUB_RESOURCE_TYPE_OTHER\020\004*t\n" + "\016ManagementType\022\037\n" + "\033MANAGEMENT_TYPE_UNSPECIFIED\020\000\022\037\n" + "\033MANAGEMENT_TYPE_GCP_MANAGED\020\001\022 \n" + "\034MANAGEMENT_TYPE_SELF_MANAGED\020\0022\377\007\n" - + "\016DatabaseCenter\022\243\001\n" - + "\r" - + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProductsRequest\0329.googl" - + "e.cloud.databasecenter.v1beta.QueryProdu" - + "ctsResponse\"\035\202\323\344\223\002\027\022\025/v1beta:queryProducts\022\247\001\n" - + "\016AggregateFleet\0229.google.cloud.databasecenter.v1beta.AggregateFleetRequest" - + "\032:.google.cloud.databasecenter.v1beta.Ag" - + "gregateFleetResponse\"\036\202\323\344\223\002\030\022\026/v1beta:aggregateFleet\022\336\001\n" - + "\033QueryDatabaseResourceGroups\022F.google.cloud.databasecenter.v1bet" - + "a.QueryDatabaseResourceGroupsRequest\032G.google.cloud.databasecenter.v1beta.QueryD" - + "atabaseResourceGroupsResponse\".\202\323\344\223\002(\"#/" - + "v1beta:queryDatabaseResourceGroups:\001*\022\276\001\n" - + "\023AggregateIssueStats\022>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRe" - + "quest\032?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\202\323\344\223\002" + + "\016DatabaseCenter\022\243\001\n\r" + + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProd" + + "uctsRequest\0329.google.cloud.databasecente" + + "r.v1beta.QueryProductsResponse\"\035\202\323\344\223\002\027\022\025/v1beta:queryProducts\022\247\001\n" + + "\016AggregateFleet\0229.google.cloud.databasecenter.v1beta.Ag" + + "gregateFleetRequest\032:.google.cloud.datab" + + "asecenter.v1beta.AggregateFleetResponse\"\036\202\323\344\223\002\030\022\026/v1beta:aggregateFleet\022\336\001\n" + + "\033QueryDatabaseResourceGroups\022F.google.cloud.d" + + "atabasecenter.v1beta.QueryDatabaseResourceGroupsRequest\032G.google.cloud.databasec" + + "enter.v1beta.QueryDatabaseResourceGroups" + + "Response\".\202\323\344\223\002(\"#/v1beta:queryDatabaseResourceGroups:\001*\022\276\001\n" + + "\023AggregateIssueStats\022>.google.cloud.databasecenter.v1beta.Ag" + + "gregateIssueStatsRequest\032?.google.cloud." + + "databasecenter.v1beta.AggregateIssueStatsResponse\"&\202\323\344\223\002" + " \"\033/v1beta:aggregateIssueStats:\001*\022\247\001\n" - + "\013QueryIssues\0226.google.cloud.databasecenter.v1b" - + "eta.QueryIssuesRequest\0327.google.cloud.databasecenter.v1beta.QueryIssuesResponse\"" - + "\'\332A\006parent\202\323\344\223\002\030\"\023/v1beta:queryIssues:\001*" - + "\032Q\312A\035databasecenter.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platformB\372\001\n" - + "&com.google.cloud.databasecenter.v1betaB\014ServiceProtoP\001ZNcloud.google.com" - + "/go/databasecenter/apiv1beta/databasecen" - + "terpb;databasecenterpb\252\002\"Google.Cloud.Da" - + "tabaseCenter.V1Beta\312\002\"Google\\Cloud\\Datab" - + "aseCenter\\V1beta\352\002%Google::Cloud::DatabaseCenter::V1betab\006proto3" + + "\013QueryIssues\0226.google.cloud.databasecenter.v1beta.QueryIssuesReques" + + "t\0327.google.cloud.databasecenter.v1beta.Q" + + "ueryIssuesResponse\"\'\332A\006parent\202\323\344\223\002\030\"\023/v1" + + "beta:queryIssues:\001*\032Q\312A\035databasecenter.g" + + "oogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\372\001\n" + + "&com.google.cloud.databasecenter.v1betaB\014ServiceProtoP" + + "\001ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterp" + + "b\252\002\"Google.Cloud.DatabaseCenter.V1Beta\312\002" + + "\"Google\\Cloud\\DatabaseCenter\\V1beta\352\002%Go" + + "ogle::Cloud::DatabaseCenter::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalType.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalType.java index 368eca9a55a2..331c7a042e1d 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalType.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalType.java @@ -1063,6 +1063,16 @@ public enum SignalType implements com.google.protobuf.ProtocolMessageEnum { * SIGNAL_TYPE_EXTENDED_SUPPORT = 102; */ SIGNAL_TYPE_EXTENDED_SUPPORT(102), + /** + * + * + *
            +   * Represents a database version nearing end of life.
            +   * 
            + * + * SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE = 104; + */ + SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE(104), UNRECOGNIZED(-1), ; @@ -2206,6 +2216,17 @@ public enum SignalType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SIGNAL_TYPE_EXTENDED_SUPPORT_VALUE = 102; + /** + * + * + *
            +   * Represents a database version nearing end of life.
            +   * 
            + * + * SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE = 104; + */ + public static final int SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE_VALUE = 104; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2428,6 +2449,8 @@ public static SignalType forNumber(int value) { return SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES; case 102: return SIGNAL_TYPE_EXTENDED_SUPPORT; + case 104: + return SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE; default: return null; } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalsProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalsProto.java index a8884fd4cdc6..d4b11f95313a 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalsProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalsProto.java @@ -268,7 +268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ISSUE_SEVERITY_MEDIUM\020\002\022\027\n" + "\023ISSUE_SEVERITY_HIGH\020\003\022\033\n" + "\027ISSUE_SEVERITY_CRITICAL\020\004\022\035\n" - + "\031ISSUE_SEVERITY_IRRELEVANT\020\005*\337 \n\n" + + "\031ISSUE_SEVERITY_IRRELEVANT\020\005*\214!\n\n" + "SignalType\022\033\n" + "\027SIGNAL_TYPE_UNSPECIFIED\020\000\022+\n" + "\'SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED\020\001\022#\n" @@ -370,13 +370,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033SIGNAL_TYPE_OUTDATED_CLIENT\020c\022\"\n" + "\036SIGNAL_TYPE_DATABOOST_DISABLED\020d\0220\n" + ",SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES\020e\022 \n" - + "\034SIGNAL_TYPE_EXTENDED_SUPPORT\020fB\372\001\n" - + "&com.google.cloud.databasecenter.v1betaB\014SignalsProtoP\001ZNcl" - + "oud.google.com/go/databasecenter/apiv1be" - + "ta/databasecenterpb;databasecenterpb\252\002\"G" - + "oogle.Cloud.DatabaseCenter.V1Beta\312\002\"Goog" - + "le\\Cloud\\DatabaseCenter\\V1beta\352\002%Google:" - + ":Cloud::DatabaseCenter::V1betab\006proto3" + + "\034SIGNAL_TYPE_EXTENDED_SUPPORT\020f\022+\n" + + "\'SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE\020hB\372\001\n" + + "&com.google.cloud.databasecenter.v1betaB\014SignalsProtoP" + + "\001ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterp" + + "b\252\002\"Google.Cloud.DatabaseCenter.V1Beta\312\002" + + "\"Google\\Cloud\\DatabaseCenter\\V1beta\352\002%Go" + + "ogle::Cloud::DatabaseCenter::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java index a3c21efdec75..88e6eaf0f32a 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java @@ -81,6 +81,36 @@ public enum SubResourceType implements com.google.protobuf.ProtocolMessageEnum { * SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; */ SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY(5), + /** + * + * + *
            +   * A resource acting as a read pool.
            +   * 
            + * + * SUB_RESOURCE_TYPE_READ_POOL = 6; + */ + SUB_RESOURCE_TYPE_READ_POOL(6), + /** + * + * + *
            +   * Represents a reservation resource.
            +   * 
            + * + * SUB_RESOURCE_TYPE_RESERVATION = 7; + */ + SUB_RESOURCE_TYPE_RESERVATION(7), + /** + * + * + *
            +   * Represents a dataset resource.
            +   * 
            + * + * SUB_RESOURCE_TYPE_DATASET = 8; + */ + SUB_RESOURCE_TYPE_DATASET(8), /** * * @@ -159,6 +189,39 @@ public enum SubResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY_VALUE = 5; + /** + * + * + *
            +   * A resource acting as a read pool.
            +   * 
            + * + * SUB_RESOURCE_TYPE_READ_POOL = 6; + */ + public static final int SUB_RESOURCE_TYPE_READ_POOL_VALUE = 6; + + /** + * + * + *
            +   * Represents a reservation resource.
            +   * 
            + * + * SUB_RESOURCE_TYPE_RESERVATION = 7; + */ + public static final int SUB_RESOURCE_TYPE_RESERVATION_VALUE = 7; + + /** + * + * + *
            +   * Represents a dataset resource.
            +   * 
            + * + * SUB_RESOURCE_TYPE_DATASET = 8; + */ + public static final int SUB_RESOURCE_TYPE_DATASET_VALUE = 8; + /** * * @@ -204,6 +267,12 @@ public static SubResourceType forNumber(int value) { return SUB_RESOURCE_TYPE_READ_REPLICA; case 5: return SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY; + case 6: + return SUB_RESOURCE_TYPE_READ_POOL; + case 7: + return SUB_RESOURCE_TYPE_RESERVATION; + case 8: + return SUB_RESOURCE_TYPE_DATASET; case 4: return SUB_RESOURCE_TYPE_OTHER; default: diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto index db4411c824af..a19d7c09ced9 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto @@ -100,8 +100,7 @@ enum ResourceCategory { DATABASE = 3; } -// Proto representing the edition of the instance. -// NextId: 4. +// Represents the edition of a database resource. enum Edition { // Default, to make it consistent with instance edition enum. EDITION_UNSPECIFIED = 0; @@ -133,6 +132,15 @@ enum SubResourceType { // A resource acting as an external primary. SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; + // A resource acting as a read pool. + SUB_RESOURCE_TYPE_READ_POOL = 6; + + // Represents a reservation resource. + SUB_RESOURCE_TYPE_RESERVATION = 7; + + // Represents a dataset resource. + SUB_RESOURCE_TYPE_DATASET = 8; + // For the rest of the categories. SUB_RESOURCE_TYPE_OTHER = 4; } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto index ce3b767a6e7a..01c2f9ad1973 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto @@ -432,6 +432,9 @@ enum SignalType { // Resource version is in extended support. SIGNAL_TYPE_EXTENDED_SUPPORT = 102; + + // Represents a database version nearing end of life. + SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE = 104; } // A group of signal types that specifies what the user is interested in. diff --git a/java-dataform/README.md b/java-dataform/README.md index e8ffc1b43931..561c5d8b1900 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.86.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.86.0' +implementation 'com.google.cloud:google-cloud-dataform:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.87.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataform/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java index bf1cc1517024..1bb4f2d48332 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java @@ -18,12 +18,17 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.dataform.v1.stub.DataformStub; import com.google.cloud.dataform.v1.stub.DataformStubSettings; import com.google.cloud.location.GetLocationRequest; @@ -36,6 +41,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -58,8 +64,8 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Repository response = dataformClient.getRepository(name); + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * } * @@ -74,6 +80,291 @@ * Method Variants * * + *

            GetTeamFolder + *

            Fetches a single TeamFolder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getTeamFolder(GetTeamFolderRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getTeamFolder(TeamFolderName name) + *

            • getTeamFolder(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getTeamFolderCallable() + *

            + * + * + * + *

            CreateTeamFolder + *

            Creates a new TeamFolder in a given project and location. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • createTeamFolder(CreateTeamFolderRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • createTeamFolder(LocationName parent, TeamFolder teamFolder) + *

            • createTeamFolder(String parent, TeamFolder teamFolder) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • createTeamFolderCallable() + *

            + * + * + * + *

            UpdateTeamFolder + *

            Updates a single TeamFolder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • updateTeamFolder(UpdateTeamFolderRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • updateTeamFolder(TeamFolder teamFolder, FieldMask updateMask) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • updateTeamFolderCallable() + *

            + * + * + * + *

            DeleteTeamFolder + *

            Deletes a single TeamFolder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteTeamFolder(DeleteTeamFolderRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • deleteTeamFolder(TeamFolderName name) + *

            • deleteTeamFolder(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteTeamFolderCallable() + *

            + * + * + * + *

            DeleteTeamFolderTree + *

            Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs). + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteTeamFolderTreeAsync(DeleteTeamFolderTreeRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteTeamFolderTreeAsync(TeamFolderName name, boolean force) + *

            • deleteTeamFolderTreeAsync(String name, boolean force) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteTeamFolderTreeOperationCallable() + *

            • deleteTeamFolderTreeCallable() + *

            + * + * + * + *

            QueryTeamFolderContents + *

            Returns the contents of a given TeamFolder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • queryTeamFolderContents(QueryTeamFolderContentsRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • queryTeamFolderContents(TeamFolderName teamFolder) + *

            • queryTeamFolderContents(String teamFolder) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • queryTeamFolderContentsPagedCallable() + *

            • queryTeamFolderContentsCallable() + *

            + * + * + * + *

            SearchTeamFolders + *

            Returns all TeamFolders in a given location that the caller has access to and match the provided filter. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • searchTeamFolders(SearchTeamFoldersRequest request) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • searchTeamFoldersPagedCallable() + *

            • searchTeamFoldersCallable() + *

            + * + * + * + *

            GetFolder + *

            Fetches a single Folder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getFolder(GetFolderRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getFolder(FolderName name) + *

            • getFolder(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getFolderCallable() + *

            + * + * + * + *

            CreateFolder + *

            Creates a new Folder in a given project and location. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • createFolder(CreateFolderRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • createFolder(LocationName parent, Folder folder) + *

            • createFolder(String parent, Folder folder) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • createFolderCallable() + *

            + * + * + * + *

            UpdateFolder + *

            Updates a single Folder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • updateFolder(UpdateFolderRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • updateFolder(Folder folder, FieldMask updateMask) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • updateFolderCallable() + *

            + * + * + * + *

            DeleteFolder + *

            Deletes a single Folder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteFolder(DeleteFolderRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • deleteFolder(FolderName name) + *

            • deleteFolder(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteFolderCallable() + *

            + * + * + * + *

            DeleteFolderTree + *

            Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs). + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteFolderTreeAsync(DeleteFolderTreeRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteFolderTreeAsync(FolderName name, boolean force) + *

            • deleteFolderTreeAsync(String name, boolean force) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteFolderTreeOperationCallable() + *

            • deleteFolderTreeCallable() + *

            + * + * + * + *

            QueryFolderContents + *

            Returns the contents of a given Folder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • queryFolderContents(QueryFolderContentsRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • queryFolderContents(FolderName folder) + *

            • queryFolderContents(String folder) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • queryFolderContentsPagedCallable() + *

            • queryFolderContentsCallable() + *

            + * + * + * + *

            QueryUserRootContents + *

            Returns the contents of a caller's root folder in a given location. The root folder contains all resources that are created by the user and not contained in any other folder. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • queryUserRootContents(QueryUserRootContentsRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • queryUserRootContents(LocationName location) + *

            • queryUserRootContents(String location) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • queryUserRootContentsPagedCallable() + *

            • queryUserRootContentsCallable() + *

            + * + * + * + *

            MoveFolder + *

            Moves a Folder to a new Folder, TeamFolder, or the root location. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • moveFolderAsync(MoveFolderRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • moveFolderAsync(FolderName name, String destinationContainingFolder) + *

            • moveFolderAsync(String name, String destinationContainingFolder) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • moveFolderOperationCallable() + *

            • moveFolderCallable() + *

            + * + * + * *

            ListRepositories *

            Lists Repositories in a given project and location. *

            **Note:** *This method can return repositories not shown in the [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. @@ -171,6 +462,26 @@ * * * + *

            MoveRepository + *

            Moves a Repository to a new location. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • moveRepositoryAsync(MoveRepositoryRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • moveRepositoryAsync(RepositoryName name, String destinationContainingFolder) + *

            • moveRepositoryAsync(String name, String destinationContainingFolder) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • moveRepositoryOperationCallable() + *

            • moveRepositoryCallable() + *

            + * + * + * *

            CommitRepositoryChanges *

            Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`. * @@ -983,75 +1294,83 @@ * * * - *

            ListLocations - *

            Lists information about the supported locations for this service. + *

            GetIamPolicy + *

            Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              - *
            • listLocations(ListLocationsRequest request) + *

            • getIamPolicy(GetIamPolicyRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getIamPolicy(ResourceName resource) + *

            • getIamPolicy(String resource) *

            *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            *
              - *
            • listLocationsPagedCallable() - *

            • listLocationsCallable() + *

            • getIamPolicyCallable() *

            * * * - *

            GetLocation - *

            Gets information about a location. + *

            SetIamPolicy + *

            Sets the access control policy on the specified resource. Replaces any existing policy. + *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              - *
            • getLocation(GetLocationRequest request) + *

            • setIamPolicy(SetIamPolicyRequest request) *

            *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            *
              - *
            • getLocationCallable() + *

            • setIamPolicyCallable() *

            * * * - *

            SetIamPolicy - *

            Sets the access control policy on the specified resource. Replacesany existing policy. - *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + *

            TestIamPermissions + *

            Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + *

            Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              - *
            • setIamPolicy(SetIamPolicyRequest request) + *

            • testIamPermissions(TestIamPermissionsRequest request) *

            *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            *
              - *
            • setIamPolicyCallable() + *

            • testIamPermissionsCallable() *

            * * * - *

            GetIamPolicy - *

            Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. + *

            ListLocations + *

            Lists information about the supported locations for this service. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              - *
            • getIamPolicy(GetIamPolicyRequest request) + *

            • listLocations(ListLocationsRequest request) *

            *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            *
              - *
            • getIamPolicyCallable() + *

            • listLocationsPagedCallable() + *

            • listLocationsCallable() *

            * * * - *

            TestIamPermissions - *

            Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. - *

            Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. + *

            GetLocation + *

            Gets information about a location. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              - *
            • testIamPermissions(TestIamPermissionsRequest request) + *

            • getLocation(GetLocationRequest request) *

            *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            *
              - *
            • testIamPermissionsCallable() + *

            • getLocationCallable() *

            * * @@ -1113,6 +1432,8 @@ public class DataformClient implements BackgroundResource { private final DataformSettings settings; private final DataformStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of DataformClient with default settings. */ public static final DataformClient create() throws IOException { @@ -1142,11 +1463,17 @@ public static final DataformClient create(DataformStub stub) { protected DataformClient(DataformSettings settings) throws IOException { this.settings = settings; this.stub = ((DataformStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected DataformClient(DataformStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final DataformSettings getSettings() { @@ -1157,12 +1484,26 @@ public DataformStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Repositories in a given project and location. - * - *

            **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. + * Fetches a single TeamFolder. * *

            Sample code: * @@ -1173,31 +1514,23 @@ public DataformStub getStub() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Repository element : dataformClient.listRepositories(parent).iterateAll()) { - * // doThingsWith(element); - * } + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * } * - * @param parent Required. The location in which to list repositories. Must be in the format - * `projects/*/locations/*`. + * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { - ListRepositoriesRequest request = - ListRepositoriesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listRepositories(request); + public final TeamFolder getTeamFolder(TeamFolderName name) { + GetTeamFolderRequest request = + GetTeamFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Repositories in a given project and location. - * - *

            **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. + * Fetches a single TeamFolder. * *

            Sample code: * @@ -1208,29 +1541,22 @@ public final ListRepositoriesPagedResponse listRepositories(LocationName parent) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Repository element : dataformClient.listRepositories(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * } * - * @param parent Required. The location in which to list repositories. Must be in the format - * `projects/*/locations/*`. + * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(String parent) { - ListRepositoriesRequest request = - ListRepositoriesRequest.newBuilder().setParent(parent).build(); - return listRepositories(request); + public final TeamFolder getTeamFolder(String name) { + GetTeamFolderRequest request = GetTeamFolderRequest.newBuilder().setName(name).build(); + return getTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Repositories in a given project and location. - * - *

            **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. + * Fetches a single TeamFolder. * *

            Sample code: * @@ -1241,33 +1567,24 @@ public final ListRepositoriesPagedResponse listRepositories(String parent) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListRepositoriesRequest request = - * ListRepositoriesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * GetTeamFolderRequest request = + * GetTeamFolderRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .build(); - * for (Repository element : dataformClient.listRepositories(request).iterateAll()) { - * // doThingsWith(element); - * } + * TeamFolder response = dataformClient.getTeamFolder(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequest request) { - return listRepositoriesPagedCallable().call(request); + public final TeamFolder getTeamFolder(GetTeamFolderRequest request) { + return getTeamFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Repositories in a given project and location. - * - *

            **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. + * Fetches a single TeamFolder. * *

            Sample code: * @@ -1278,75 +1595,23 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListRepositoriesRequest request = - * ListRepositoriesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * GetTeamFolderRequest request = + * GetTeamFolderRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .build(); - * ApiFuture future = - * dataformClient.listRepositoriesPagedCallable().futureCall(request); + * ApiFuture future = dataformClient.getTeamFolderCallable().futureCall(request); * // Do something. - * for (Repository element : future.get().iterateAll()) { - * // doThingsWith(element); - * } - * } - * } - */ - public final UnaryCallable - listRepositoriesPagedCallable() { - return stub.listRepositoriesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Repositories in a given project and location. - * - *

            **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (DataformClient dataformClient = DataformClient.create()) {
            -   *   ListRepositoriesRequest request =
            -   *       ListRepositoriesRequest.newBuilder()
            -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            -   *           .setPageSize(883849137)
            -   *           .setPageToken("pageToken873572522")
            -   *           .setOrderBy("orderBy-1207110587")
            -   *           .setFilter("filter-1274492040")
            -   *           .build();
            -   *   while (true) {
            -   *     ListRepositoriesResponse response = dataformClient.listRepositoriesCallable().call(request);
            -   *     for (Repository element : response.getRepositoriesList()) {
            -   *       // doThingsWith(element);
            -   *     }
            -   *     String nextPageToken = response.getNextPageToken();
            -   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            -   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            -   *     } else {
            -   *       break;
            -   *     }
            -   *   }
            +   *   TeamFolder response = future.get();
                * }
                * }
            */ - public final UnaryCallable - listRepositoriesCallable() { - return stub.listRepositoriesCallable(); + public final UnaryCallable getTeamFolderCallable() { + return stub.getTeamFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Repository. + * Creates a new TeamFolder in a given project and location. * *

            Sample code: * @@ -1357,23 +1622,29 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Repository response = dataformClient.getRepository(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * TeamFolder teamFolder = TeamFolder.newBuilder().build(); + * TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); * } * } * - * @param name Required. The repository's name. + * @param parent Required. The location in which to create the TeamFolder. Must be in the format + * `projects/*/locations/*`. + * @param teamFolder Required. The TeamFolder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(RepositoryName name) { - GetRepositoryRequest request = - GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getRepository(request); + public final TeamFolder createTeamFolder(LocationName parent, TeamFolder teamFolder) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTeamFolder(teamFolder) + .build(); + return createTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Repository. + * Creates a new TeamFolder in a given project and location. * *

            Sample code: * @@ -1384,22 +1655,26 @@ public final Repository getRepository(RepositoryName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * Repository response = dataformClient.getRepository(name); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * TeamFolder teamFolder = TeamFolder.newBuilder().build(); + * TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); * } * } * - * @param name Required. The repository's name. + * @param parent Required. The location in which to create the TeamFolder. Must be in the format + * `projects/*/locations/*`. + * @param teamFolder Required. The TeamFolder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(String name) { - GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name).build(); - return getRepository(request); + public final TeamFolder createTeamFolder(String parent, TeamFolder teamFolder) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder().setParent(parent).setTeamFolder(teamFolder).build(); + return createTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Repository. + * Creates a new TeamFolder in a given project and location. * *

            Sample code: * @@ -1410,24 +1685,25 @@ public final Repository getRepository(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetRepositoryRequest request = - * GetRepositoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * CreateTeamFolderRequest request = + * CreateTeamFolderRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setTeamFolder(TeamFolder.newBuilder().build()) * .build(); - * Repository response = dataformClient.getRepository(request); + * TeamFolder response = dataformClient.createTeamFolder(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(GetRepositoryRequest request) { - return getRepositoryCallable().call(request); + public final TeamFolder createTeamFolder(CreateTeamFolderRequest request) { + return createTeamFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Repository. + * Creates a new TeamFolder in a given project and location. * *

            Sample code: * @@ -1438,23 +1714,24 @@ public final Repository getRepository(GetRepositoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetRepositoryRequest request = - * GetRepositoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * CreateTeamFolderRequest request = + * CreateTeamFolderRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setTeamFolder(TeamFolder.newBuilder().build()) * .build(); - * ApiFuture future = dataformClient.getRepositoryCallable().futureCall(request); + * ApiFuture future = dataformClient.createTeamFolderCallable().futureCall(request); * // Do something. - * Repository response = future.get(); + * TeamFolder response = future.get(); * } * } */ - public final UnaryCallable getRepositoryCallable() { - return stub.getRepositoryCallable(); + public final UnaryCallable createTeamFolderCallable() { + return stub.createTeamFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Repository in a given project and location. + * Updates a single TeamFolder. * *

            Sample code: * @@ -1465,34 +1742,29 @@ public final UnaryCallable getRepositoryCallab * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Repository repository = Repository.newBuilder().build(); - * String repositoryId = "repositoryId2113747461"; - * Repository response = dataformClient.createRepository(parent, repository, repositoryId); + * TeamFolder teamFolder = TeamFolder.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * TeamFolder response = dataformClient.updateTeamFolder(teamFolder, updateMask); * } * } * - * @param parent Required. The location in which to create the repository. Must be in the format - * `projects/*/locations/*`. - * @param repository Required. The repository to create. - * @param repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. + * @param teamFolder Required. The updated TeamFolder. + * @param updateMask Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository createRepository( - LocationName parent, Repository repository, String repositoryId) { - CreateRepositoryRequest request = - CreateRepositoryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRepository(repository) - .setRepositoryId(repositoryId) + public final TeamFolder updateTeamFolder(TeamFolder teamFolder, FieldMask updateMask) { + UpdateTeamFolderRequest request = + UpdateTeamFolderRequest.newBuilder() + .setTeamFolder(teamFolder) + .setUpdateMask(updateMask) .build(); - return createRepository(request); + return updateTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Repository in a given project and location. + * Updates a single TeamFolder. * *

            Sample code: * @@ -1503,34 +1775,25 @@ public final Repository createRepository( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Repository repository = Repository.newBuilder().build(); - * String repositoryId = "repositoryId2113747461"; - * Repository response = dataformClient.createRepository(parent, repository, repositoryId); + * UpdateTeamFolderRequest request = + * UpdateTeamFolderRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setTeamFolder(TeamFolder.newBuilder().build()) + * .build(); + * TeamFolder response = dataformClient.updateTeamFolder(request); * } * } * - * @param parent Required. The location in which to create the repository. Must be in the format - * `projects/*/locations/*`. - * @param repository Required. The repository to create. - * @param repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository createRepository( - String parent, Repository repository, String repositoryId) { - CreateRepositoryRequest request = - CreateRepositoryRequest.newBuilder() - .setParent(parent) - .setRepository(repository) - .setRepositoryId(repositoryId) - .build(); - return createRepository(request); + public final TeamFolder updateTeamFolder(UpdateTeamFolderRequest request) { + return updateTeamFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Repository in a given project and location. + * Updates a single TeamFolder. * *

            Sample code: * @@ -1541,26 +1804,24 @@ public final Repository createRepository( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateRepositoryRequest request = - * CreateRepositoryRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setRepository(Repository.newBuilder().build()) - * .setRepositoryId("repositoryId2113747461") + * UpdateTeamFolderRequest request = + * UpdateTeamFolderRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setTeamFolder(TeamFolder.newBuilder().build()) * .build(); - * Repository response = dataformClient.createRepository(request); + * ApiFuture future = dataformClient.updateTeamFolderCallable().futureCall(request); + * // Do something. + * TeamFolder response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository createRepository(CreateRepositoryRequest request) { - return createRepositoryCallable().call(request); + public final UnaryCallable updateTeamFolderCallable() { + return stub.updateTeamFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Repository in a given project and location. + * Deletes a single TeamFolder. * *

            Sample code: * @@ -1571,30 +1832,23 @@ public final Repository createRepository(CreateRepositoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateRepositoryRequest request = - * CreateRepositoryRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setRepository(Repository.newBuilder().build()) - * .setRepositoryId("repositoryId2113747461") - * .build(); - * ApiFuture future = dataformClient.createRepositoryCallable().futureCall(request); - * // Do something. - * Repository response = future.get(); + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * dataformClient.deleteTeamFolder(name); * } * } + * + * @param name Required. The TeamFolder's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable createRepositoryCallable() { - return stub.createRepositoryCallable(); + public final void deleteTeamFolder(TeamFolderName name) { + DeleteTeamFolderRequest request = + DeleteTeamFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Repository. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Deletes a single TeamFolder. * *

            Sample code: * @@ -1605,34 +1859,22 @@ public final UnaryCallable createRepository * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * Repository repository = Repository.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Repository response = dataformClient.updateRepository(repository, updateMask); + * String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + * dataformClient.deleteTeamFolder(name); * } * } * - * @param repository Required. The repository to update. - * @param updateMask Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. + * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository updateRepository(Repository repository, FieldMask updateMask) { - UpdateRepositoryRequest request = - UpdateRepositoryRequest.newBuilder() - .setRepository(repository) - .setUpdateMask(updateMask) - .build(); - return updateRepository(request); + public final void deleteTeamFolder(String name) { + DeleteTeamFolderRequest request = DeleteTeamFolderRequest.newBuilder().setName(name).build(); + deleteTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Repository. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Deletes a single TeamFolder. * *

            Sample code: * @@ -1643,30 +1885,24 @@ public final Repository updateRepository(Repository repository, FieldMask update * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * UpdateRepositoryRequest request = - * UpdateRepositoryRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRepository(Repository.newBuilder().build()) + * DeleteTeamFolderRequest request = + * DeleteTeamFolderRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .build(); - * Repository response = dataformClient.updateRepository(request); + * dataformClient.deleteTeamFolder(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository updateRepository(UpdateRepositoryRequest request) { - return updateRepositoryCallable().call(request); + public final void deleteTeamFolder(DeleteTeamFolderRequest request) { + deleteTeamFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Repository. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Deletes a single TeamFolder. * *

            Sample code: * @@ -1677,24 +1913,24 @@ public final Repository updateRepository(UpdateRepositoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * UpdateRepositoryRequest request = - * UpdateRepositoryRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRepository(Repository.newBuilder().build()) + * DeleteTeamFolderRequest request = + * DeleteTeamFolderRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .build(); - * ApiFuture future = dataformClient.updateRepositoryCallable().futureCall(request); + * ApiFuture future = dataformClient.deleteTeamFolderCallable().futureCall(request); * // Do something. - * Repository response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable updateRepositoryCallable() { - return stub.updateRepositoryCallable(); + public final UnaryCallable deleteTeamFolderCallable() { + return stub.deleteTeamFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Repository. + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -1705,23 +1941,35 @@ public final UnaryCallable updateRepository * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * dataformClient.deleteRepository(name); + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * boolean force = true; + * dataformClient.deleteTeamFolderTreeAsync(name, force).get(); * } * } * - * @param name Required. The repository's name. + * @param name Required. The TeamFolder's name. Format: + * projects/{project}/locations/{location}/teamFolders/{team_folder} + * @param force Optional. If `false` (default): The operation will fail if any Repository within + * the folder hierarchy has associated Release Configs or Workflow Configs. + *

            If `true`: The operation will attempt to delete everything, including any Release + * Configs and Workflow Configs linked to Repositories within the folder hierarchy. This + * permanently removes schedules and resources. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRepository(RepositoryName name) { - DeleteRepositoryRequest request = - DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteRepository(request); + public final OperationFuture deleteTeamFolderTreeAsync( + TeamFolderName name, boolean force) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setForce(force) + .build(); + return deleteTeamFolderTreeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Repository. + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -1732,22 +1980,32 @@ public final void deleteRepository(RepositoryName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * dataformClient.deleteRepository(name); + * String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + * boolean force = true; + * dataformClient.deleteTeamFolderTreeAsync(name, force).get(); * } * } * - * @param name Required. The repository's name. + * @param name Required. The TeamFolder's name. Format: + * projects/{project}/locations/{location}/teamFolders/{team_folder} + * @param force Optional. If `false` (default): The operation will fail if any Repository within + * the folder hierarchy has associated Release Configs or Workflow Configs. + *

            If `true`: The operation will attempt to delete everything, including any Release + * Configs and Workflow Configs linked to Repositories within the folder hierarchy. This + * permanently removes schedules and resources. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRepository(String name) { - DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name).build(); - deleteRepository(request); + public final OperationFuture deleteTeamFolderTreeAsync( + String name, boolean force) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder().setName(name).setForce(force).build(); + return deleteTeamFolderTreeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Repository. + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -1758,25 +2016,27 @@ public final void deleteRepository(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteRepositoryRequest request = - * DeleteRepositoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * DeleteTeamFolderTreeRequest request = + * DeleteTeamFolderTreeRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .setForce(true) * .build(); - * dataformClient.deleteRepository(request); + * dataformClient.deleteTeamFolderTreeAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRepository(DeleteRepositoryRequest request) { - deleteRepositoryCallable().call(request); + public final OperationFuture deleteTeamFolderTreeAsync( + DeleteTeamFolderTreeRequest request) { + return deleteTeamFolderTreeOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Repository. + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -1787,59 +2047,27 @@ public final void deleteRepository(DeleteRepositoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteRepositoryRequest request = - * DeleteRepositoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * DeleteTeamFolderTreeRequest request = + * DeleteTeamFolderTreeRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .setForce(true) * .build(); - * ApiFuture future = dataformClient.deleteRepositoryCallable().futureCall(request); + * OperationFuture future = + * dataformClient.deleteTeamFolderTreeOperationCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable deleteRepositoryCallable() { - return stub.deleteRepositoryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Applies a Git commit to a Repository. The Repository must not have a value for - * `git_remote_settings.url`. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (DataformClient dataformClient = DataformClient.create()) {
            -   *   CommitRepositoryChangesRequest request =
            -   *       CommitRepositoryChangesRequest.newBuilder()
            -   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            -   *           .setCommitMetadata(CommitMetadata.newBuilder().build())
            -   *           .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930")
            -   *           .putAllFileOperations(
            -   *               new HashMap())
            -   *           .build();
            -   *   CommitRepositoryChangesResponse response = dataformClient.commitRepositoryChanges(request);
            -   * }
            -   * }
            - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CommitRepositoryChangesResponse commitRepositoryChanges( - CommitRepositoryChangesRequest request) { - return commitRepositoryChangesCallable().call(request); + public final OperationCallable + deleteTeamFolderTreeOperationCallable() { + return stub.deleteTeamFolderTreeOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit to a Repository. The Repository must not have a value for - * `git_remote_settings.url`. + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -1850,30 +2078,26 @@ public final CommitRepositoryChangesResponse commitRepositoryChanges( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CommitRepositoryChangesRequest request = - * CommitRepositoryChangesRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitMetadata(CommitMetadata.newBuilder().build()) - * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") - * .putAllFileOperations( - * new HashMap()) + * DeleteTeamFolderTreeRequest request = + * DeleteTeamFolderTreeRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + * .setForce(true) * .build(); - * ApiFuture future = - * dataformClient.commitRepositoryChangesCallable().futureCall(request); + * ApiFuture future = + * dataformClient.deleteTeamFolderTreeCallable().futureCall(request); * // Do something. - * CommitRepositoryChangesResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - commitRepositoryChangesCallable() { - return stub.commitRepositoryChangesCallable(); + public final UnaryCallable + deleteTeamFolderTreeCallable() { + return stub.deleteTeamFolderTreeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Repository). The Repository must not have a value for - * `git_remote_settings.url`. + * Returns the contents of a given TeamFolder. * *

            Sample code: * @@ -1884,27 +2108,30 @@ public final CommitRepositoryChangesResponse commitRepositoryChanges( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReadRepositoryFileRequest request = - * ReadRepositoryFileRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") - * .build(); - * ReadRepositoryFileResponse response = dataformClient.readRepositoryFile(request); + * TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param teamFolder Required. Name of the team_folder whose contents to list. Format: + * `projects/*/locations/*/teamFolders/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileRequest request) { - return readRepositoryFileCallable().call(request); + public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents( + TeamFolderName teamFolder) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder(teamFolder == null ? null : teamFolder.toString()) + .build(); + return queryTeamFolderContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Repository). The Repository must not have a value for - * `git_remote_settings.url`. + * Returns the contents of a given TeamFolder. * *

            Sample code: * @@ -1915,28 +2142,27 @@ public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReadRepositoryFileRequest request = - * ReadRepositoryFileRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") - * .build(); - * ApiFuture future = - * dataformClient.readRepositoryFileCallable().futureCall(request); - * // Do something. - * ReadRepositoryFileResponse response = future.get(); + * String teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param teamFolder Required. Name of the team_folder whose contents to list. Format: + * `projects/*/locations/*/teamFolders/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - readRepositoryFileCallable() { - return stub.readRepositoryFileCallable(); + public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents(String teamFolder) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder().setTeamFolder(teamFolder).build(); + return queryTeamFolderContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Repository directory. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns the contents of a given TeamFolder. * *

            Sample code: * @@ -1947,16 +2173,17 @@ public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryRepositoryDirectoryContentsRequest request = - * QueryRepositoryDirectoryContentsRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") + * QueryTeamFolderContentsRequest request = + * QueryTeamFolderContentsRequest.newBuilder() + * .setTeamFolder( + * TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * for (DirectoryEntry element : - * dataformClient.queryRepositoryDirectoryContents(request).iterateAll()) { + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * dataformClient.queryTeamFolderContents(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1965,15 +2192,14 @@ public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileReq * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirectoryContents( - QueryRepositoryDirectoryContentsRequest request) { - return queryRepositoryDirectoryContentsPagedCallable().call(request); + public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents( + QueryTeamFolderContentsRequest request) { + return queryTeamFolderContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Repository directory. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns the contents of a given TeamFolder. * *

            Sample code: * @@ -1984,33 +2210,33 @@ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirect * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryRepositoryDirectoryContentsRequest request = - * QueryRepositoryDirectoryContentsRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") + * QueryTeamFolderContentsRequest request = + * QueryTeamFolderContentsRequest.newBuilder() + * .setTeamFolder( + * TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.queryRepositoryDirectoryContentsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryTeamFolderContentsPagedCallable().futureCall(request); * // Do something. - * for (DirectoryEntry element : future.get().iterateAll()) { + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable< - QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> - queryRepositoryDirectoryContentsPagedCallable() { - return stub.queryRepositoryDirectoryContentsPagedCallable(); + public final UnaryCallable + queryTeamFolderContentsPagedCallable() { + return stub.queryTeamFolderContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Repository directory. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns the contents of a given TeamFolder. * *

            Sample code: * @@ -2021,18 +2247,20 @@ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirect * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryRepositoryDirectoryContentsRequest request = - * QueryRepositoryDirectoryContentsRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") + * QueryTeamFolderContentsRequest request = + * QueryTeamFolderContentsRequest.newBuilder() + * .setTeamFolder( + * TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * QueryRepositoryDirectoryContentsResponse response = - * dataformClient.queryRepositoryDirectoryContentsCallable().call(request); - * for (DirectoryEntry element : response.getDirectoryEntriesList()) { + * QueryTeamFolderContentsResponse response = + * dataformClient.queryTeamFolderContentsCallable().call(request); + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * response.getEntriesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2045,16 +2273,15 @@ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirect * } * } */ - public final UnaryCallable< - QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> - queryRepositoryDirectoryContentsCallable() { - return stub.queryRepositoryDirectoryContentsCallable(); + public final UnaryCallable + queryTeamFolderContentsCallable() { + return stub.queryTeamFolderContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's history of commits. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns all TeamFolders in a given location that the caller has access to and match the + * provided filter. * *

            Sample code: * @@ -2065,13 +2292,16 @@ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirect * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchRepositoryHistoryRequest request = - * FetchRepositoryHistoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * SearchTeamFoldersRequest request = + * SearchTeamFoldersRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * for (CommitLogEntry element : dataformClient.fetchRepositoryHistory(request).iterateAll()) { + * for (SearchTeamFoldersResponse.TeamFolderSearchResult element : + * dataformClient.searchTeamFolders(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2080,15 +2310,14 @@ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirect * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( - FetchRepositoryHistoryRequest request) { - return fetchRepositoryHistoryPagedCallable().call(request); + public final SearchTeamFoldersPagedResponse searchTeamFolders(SearchTeamFoldersRequest request) { + return searchTeamFoldersPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's history of commits. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns all TeamFolders in a given location that the caller has access to and match the + * provided filter. * *

            Sample code: * @@ -2099,30 +2328,32 @@ public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchRepositoryHistoryRequest request = - * FetchRepositoryHistoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * SearchTeamFoldersRequest request = + * SearchTeamFoldersRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.fetchRepositoryHistoryPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.searchTeamFoldersPagedCallable().futureCall(request); * // Do something. - * for (CommitLogEntry element : future.get().iterateAll()) { + * for (SearchTeamFoldersResponse.TeamFolderSearchResult element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - fetchRepositoryHistoryPagedCallable() { - return stub.fetchRepositoryHistoryPagedCallable(); + public final UnaryCallable + searchTeamFoldersPagedCallable() { + return stub.searchTeamFoldersPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's history of commits. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns all TeamFolders in a given location that the caller has access to and match the + * provided filter. * *

            Sample code: * @@ -2133,16 +2364,18 @@ public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchRepositoryHistoryRequest request = - * FetchRepositoryHistoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * SearchTeamFoldersRequest request = + * SearchTeamFoldersRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * FetchRepositoryHistoryResponse response = - * dataformClient.fetchRepositoryHistoryCallable().call(request); - * for (CommitLogEntry element : response.getCommitsList()) { + * SearchTeamFoldersResponse response = + * dataformClient.searchTeamFoldersCallable().call(request); + * for (SearchTeamFoldersResponse.TeamFolderSearchResult element : response.getResultsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2155,14 +2388,14 @@ public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( * } * } */ - public final UnaryCallable - fetchRepositoryHistoryCallable() { - return stub.fetchRepositoryHistoryCallable(); + public final UnaryCallable + searchTeamFoldersCallable() { + return stub.searchTeamFoldersCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Computes a Repository's Git access token status. + * Fetches a single Folder. * *

            Sample code: * @@ -2173,26 +2406,23 @@ public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ComputeRepositoryAccessTokenStatusRequest request = - * ComputeRepositoryAccessTokenStatusRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .build(); - * ComputeRepositoryAccessTokenStatusResponse response = - * dataformClient.computeRepositoryAccessTokenStatus(request); + * FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + * Folder response = dataformClient.getFolder(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The Folder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessTokenStatus( - ComputeRepositoryAccessTokenStatusRequest request) { - return computeRepositoryAccessTokenStatusCallable().call(request); + public final Folder getFolder(FolderName name) { + GetFolderRequest request = + GetFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Computes a Repository's Git access token status. + * Fetches a single Folder. * *

            Sample code: * @@ -2203,26 +2433,22 @@ public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessT * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ComputeRepositoryAccessTokenStatusRequest request = - * ComputeRepositoryAccessTokenStatusRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .build(); - * ApiFuture future = - * dataformClient.computeRepositoryAccessTokenStatusCallable().futureCall(request); - * // Do something. - * ComputeRepositoryAccessTokenStatusResponse response = future.get(); + * String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + * Folder response = dataformClient.getFolder(name); * } * } + * + * @param name Required. The Folder's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> - computeRepositoryAccessTokenStatusCallable() { - return stub.computeRepositoryAccessTokenStatusCallable(); + public final Folder getFolder(String name) { + GetFolderRequest request = GetFolderRequest.newBuilder().setName(name).build(); + return getFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's remote branches. + * Fetches a single Folder. * *

            Sample code: * @@ -2233,24 +2459,24 @@ public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessT * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchRemoteBranchesRequest request = - * FetchRemoteBranchesRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * GetFolderRequest request = + * GetFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .build(); - * FetchRemoteBranchesResponse response = dataformClient.fetchRemoteBranches(request); + * Folder response = dataformClient.getFolder(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranchesRequest request) { - return fetchRemoteBranchesCallable().call(request); + public final Folder getFolder(GetFolderRequest request) { + return getFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's remote branches. + * Fetches a single Folder. * *

            Sample code: * @@ -2261,25 +2487,23 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchRemoteBranchesRequest request = - * FetchRemoteBranchesRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * GetFolderRequest request = + * GetFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .build(); - * ApiFuture future = - * dataformClient.fetchRemoteBranchesCallable().futureCall(request); + * ApiFuture future = dataformClient.getFolderCallable().futureCall(request); * // Do something. - * FetchRemoteBranchesResponse response = future.get(); + * Folder response = future.get(); * } * } */ - public final UnaryCallable - fetchRemoteBranchesCallable() { - return stub.fetchRemoteBranchesCallable(); + public final UnaryCallable getFolderCallable() { + return stub.getFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Creates a new Folder in a given project and location. * *

            Sample code: * @@ -2290,28 +2514,29 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { - * // doThingsWith(element); - * } + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * Folder folder = Folder.newBuilder().build(); + * Folder response = dataformClient.createFolder(parent, folder); * } * } * - * @param parent Required. The repository in which to list workspaces. Must be in the format - * `projects/*/locations/*/repositories/*`. + * @param parent Required. The location in which to create the Folder. Must be in the format + * `projects/*/locations/*`. + * @param folder Required. The Folder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { - ListWorkspacesRequest request = - ListWorkspacesRequest.newBuilder() + public final Folder createFolder(LocationName parent, Folder folder) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) + .setFolder(folder) .build(); - return listWorkspaces(request); + return createFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Creates a new Folder in a given project and location. * *

            Sample code: * @@ -2322,25 +2547,26 @@ public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * Folder folder = Folder.newBuilder().build(); + * Folder response = dataformClient.createFolder(parent, folder); * } * } * - * @param parent Required. The repository in which to list workspaces. Must be in the format - * `projects/*/locations/*/repositories/*`. + * @param parent Required. The location in which to create the Folder. Must be in the format + * `projects/*/locations/*`. + * @param folder Required. The Folder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(String parent) { - ListWorkspacesRequest request = ListWorkspacesRequest.newBuilder().setParent(parent).build(); - return listWorkspaces(request); + public final Folder createFolder(String parent, Folder folder) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder().setParent(parent).setFolder(folder).build(); + return createFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Creates a new Folder in a given project and location. * *

            Sample code: * @@ -2351,30 +2577,25 @@ public final ListWorkspacesPagedResponse listWorkspaces(String parent) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * CreateFolderRequest request = + * CreateFolderRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setFolder(Folder.newBuilder().build()) * .build(); - * for (Workspace element : dataformClient.listWorkspaces(request).iterateAll()) { - * // doThingsWith(element); - * } + * Folder response = dataformClient.createFolder(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest request) { - return listWorkspacesPagedCallable().call(request); + public final Folder createFolder(CreateFolderRequest request) { + return createFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Creates a new Folder in a given project and location. * *

            Sample code: * @@ -2385,31 +2606,24 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * CreateFolderRequest request = + * CreateFolderRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setFolder(Folder.newBuilder().build()) * .build(); - * ApiFuture future = - * dataformClient.listWorkspacesPagedCallable().futureCall(request); + * ApiFuture future = dataformClient.createFolderCallable().futureCall(request); * // Do something. - * for (Workspace element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * Folder response = future.get(); * } * } */ - public final UnaryCallable - listWorkspacesPagedCallable() { - return stub.listWorkspacesPagedCallable(); + public final UnaryCallable createFolderCallable() { + return stub.createFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Updates a single Folder. * *

            Sample code: * @@ -2420,37 +2634,27 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") - * .build(); - * while (true) { - * ListWorkspacesResponse response = dataformClient.listWorkspacesCallable().call(request); - * for (Workspace element : response.getWorkspacesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * Folder folder = Folder.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Folder response = dataformClient.updateFolder(folder, updateMask); * } * } + * + * @param folder Required. The updated Folder. + * @param updateMask Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields that can be updated, will be updated. A few fields cannot be updated and will be + * ignored if specified in the update_mask (e.g. parent_name, team_folder_name). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listWorkspacesCallable() { - return stub.listWorkspacesCallable(); + public final Folder updateFolder(Folder folder, FieldMask updateMask) { + UpdateFolderRequest request = + UpdateFolderRequest.newBuilder().setFolder(folder).setUpdateMask(updateMask).build(); + return updateFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Updates a single Folder. * *

            Sample code: * @@ -2461,24 +2665,25 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkspaceName name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - * Workspace response = dataformClient.getWorkspace(name); + * UpdateFolderRequest request = + * UpdateFolderRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setFolder(Folder.newBuilder().build()) + * .build(); + * Folder response = dataformClient.updateFolder(request); * } * } * - * @param name Required. The workspace's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(WorkspaceName name) { - GetWorkspaceRequest request = - GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getWorkspace(request); + public final Folder updateFolder(UpdateFolderRequest request) { + return updateFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Updates a single Folder. * *

            Sample code: * @@ -2489,23 +2694,24 @@ public final Workspace getWorkspace(WorkspaceName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); - * Workspace response = dataformClient.getWorkspace(name); + * UpdateFolderRequest request = + * UpdateFolderRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setFolder(Folder.newBuilder().build()) + * .build(); + * ApiFuture future = dataformClient.updateFolderCallable().futureCall(request); + * // Do something. + * Folder response = future.get(); * } * } - * - * @param name Required. The workspace's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(String name) { - GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name).build(); - return getWorkspace(request); + public final UnaryCallable updateFolderCallable() { + return stub.updateFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Deletes a single Folder. * *

            Sample code: * @@ -2516,26 +2722,23 @@ public final Workspace getWorkspace(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetWorkspaceRequest request = - * GetWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * Workspace response = dataformClient.getWorkspace(request); + * FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + * dataformClient.deleteFolder(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The Folder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(GetWorkspaceRequest request) { - return getWorkspaceCallable().call(request); + public final void deleteFolder(FolderName name) { + DeleteFolderRequest request = + DeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Deletes a single Folder. * *

            Sample code: * @@ -2546,25 +2749,22 @@ public final Workspace getWorkspace(GetWorkspaceRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetWorkspaceRequest request = - * GetWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * ApiFuture future = dataformClient.getWorkspaceCallable().futureCall(request); - * // Do something. - * Workspace response = future.get(); + * String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + * dataformClient.deleteFolder(name); * } * } + * + * @param name Required. The Folder's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getWorkspaceCallable() { - return stub.getWorkspaceCallable(); + public final void deleteFolder(String name) { + DeleteFolderRequest request = DeleteFolderRequest.newBuilder().setName(name).build(); + deleteFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Deletes a single Folder. * *

            Sample code: * @@ -2575,34 +2775,24 @@ public final UnaryCallable getWorkspaceCallable( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Workspace workspace = Workspace.newBuilder().build(); - * String workspaceId = "workspaceId466560144"; - * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); + * DeleteFolderRequest request = + * DeleteFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .build(); + * dataformClient.deleteFolder(request); * } * } * - * @param parent Required. The repository in which to create the workspace. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @param workspace Required. The workspace to create. - * @param workspaceId Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace( - RepositoryName parent, Workspace workspace, String workspaceId) { - CreateWorkspaceRequest request = - CreateWorkspaceRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setWorkspace(workspace) - .setWorkspaceId(workspaceId) - .build(); - return createWorkspace(request); + public final void deleteFolder(DeleteFolderRequest request) { + deleteFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Deletes a single Folder. * *

            Sample code: * @@ -2613,33 +2803,24 @@ public final Workspace createWorkspace( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * Workspace workspace = Workspace.newBuilder().build(); - * String workspaceId = "workspaceId466560144"; - * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); + * DeleteFolderRequest request = + * DeleteFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .build(); + * ApiFuture future = dataformClient.deleteFolderCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param parent Required. The repository in which to create the workspace. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @param workspace Required. The workspace to create. - * @param workspaceId Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace(String parent, Workspace workspace, String workspaceId) { - CreateWorkspaceRequest request = - CreateWorkspaceRequest.newBuilder() - .setParent(parent) - .setWorkspace(workspace) - .setWorkspaceId(workspaceId) - .build(); - return createWorkspace(request); + public final UnaryCallable deleteFolderCallable() { + return stub.deleteFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -2650,26 +2831,35 @@ public final Workspace createWorkspace(String parent, Workspace workspace, Strin * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkspaceRequest request = - * CreateWorkspaceRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkspace(Workspace.newBuilder().build()) - * .setWorkspaceId("workspaceId466560144") - * .build(); - * Workspace response = dataformClient.createWorkspace(request); + * FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + * boolean force = true; + * dataformClient.deleteFolderTreeAsync(name, force).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The Folder's name. Format: + * projects/{project}/locations/{location}/folders/{folder} + * @param force Optional. If `false` (default): The operation will fail if any Repository within + * the folder hierarchy has associated Release Configs or Workflow Configs. + *

            If `true`: The operation will attempt to delete everything, including any Release + * Configs and Workflow Configs linked to Repositories within the folder hierarchy. This + * permanently removes schedules and resources. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace(CreateWorkspaceRequest request) { - return createWorkspaceCallable().call(request); + public final OperationFuture deleteFolderTreeAsync( + FolderName name, boolean force) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setForce(force) + .build(); + return deleteFolderTreeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -2680,25 +2870,32 @@ public final Workspace createWorkspace(CreateWorkspaceRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkspaceRequest request = - * CreateWorkspaceRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkspace(Workspace.newBuilder().build()) - * .setWorkspaceId("workspaceId466560144") - * .build(); - * ApiFuture future = dataformClient.createWorkspaceCallable().futureCall(request); - * // Do something. - * Workspace response = future.get(); + * String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + * boolean force = true; + * dataformClient.deleteFolderTreeAsync(name, force).get(); * } * } + * + * @param name Required. The Folder's name. Format: + * projects/{project}/locations/{location}/folders/{folder} + * @param force Optional. If `false` (default): The operation will fail if any Repository within + * the folder hierarchy has associated Release Configs or Workflow Configs. + *

            If `true`: The operation will attempt to delete everything, including any Release + * Configs and Workflow Configs linked to Repositories within the folder hierarchy. This + * permanently removes schedules and resources. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable createWorkspaceCallable() { - return stub.createWorkspaceCallable(); + public final OperationFuture deleteFolderTreeAsync( + String name, boolean force) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder().setName(name).setForce(force).build(); + return deleteFolderTreeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -2709,24 +2906,27 @@ public final UnaryCallable createWorkspaceCal * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkspaceName name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - * dataformClient.deleteWorkspace(name); + * DeleteFolderTreeRequest request = + * DeleteFolderTreeRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setForce(true) + * .build(); + * dataformClient.deleteFolderTreeAsync(request).get(); * } * } * - * @param name Required. The workspace resource's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(WorkspaceName name) { - DeleteWorkspaceRequest request = - DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteWorkspace(request); + public final OperationFuture deleteFolderTreeAsync( + DeleteFolderTreeRequest request) { + return deleteFolderTreeOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -2737,23 +2937,27 @@ public final void deleteWorkspace(WorkspaceName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); - * dataformClient.deleteWorkspace(name); + * DeleteFolderTreeRequest request = + * DeleteFolderTreeRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setForce(true) + * .build(); + * OperationFuture future = + * dataformClient.deleteFolderTreeOperationCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param name Required. The workspace resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(String name) { - DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name).build(); - deleteWorkspace(request); + public final OperationCallable + deleteFolderTreeOperationCallable() { + return stub.deleteFolderTreeOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). * *

            Sample code: * @@ -2764,26 +2968,24 @@ public final void deleteWorkspace(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkspaceRequest request = - * DeleteWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * DeleteFolderTreeRequest request = + * DeleteFolderTreeRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setForce(true) * .build(); - * dataformClient.deleteWorkspace(request); + * ApiFuture future = dataformClient.deleteFolderTreeCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(DeleteWorkspaceRequest request) { - deleteWorkspaceCallable().call(request); + public final UnaryCallable deleteFolderTreeCallable() { + return stub.deleteFolderTreeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Returns the contents of a given Folder. * *

            Sample code: * @@ -2794,25 +2996,29 @@ public final void deleteWorkspace(DeleteWorkspaceRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkspaceRequest request = - * DeleteWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * ApiFuture future = dataformClient.deleteWorkspaceCallable().futureCall(request); - * // Do something. - * future.get(); + * FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + * for (QueryFolderContentsResponse.FolderContentsEntry element : + * dataformClient.queryFolderContents(folder).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param folder Required. Name of the folder whose contents to list. Format: + * projects/*/locations/*/folders/* + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable deleteWorkspaceCallable() { - return stub.deleteWorkspaceCallable(); + public final QueryFolderContentsPagedResponse queryFolderContents(FolderName folder) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(folder == null ? null : folder.toString()) + .build(); + return queryFolderContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Installs dependency NPM packages (inside a Workspace). + * Returns the contents of a given Folder. * *

            Sample code: * @@ -2823,26 +3029,27 @@ public final UnaryCallable deleteWorkspaceCallabl * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * InstallNpmPackagesRequest request = - * InstallNpmPackagesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * InstallNpmPackagesResponse response = dataformClient.installNpmPackages(request); + * String folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + * for (QueryFolderContentsResponse.FolderContentsEntry element : + * dataformClient.queryFolderContents(folder).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param folder Required. Name of the folder whose contents to list. Format: + * projects/*/locations/*/folders/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesRequest request) { - return installNpmPackagesCallable().call(request); + public final QueryFolderContentsPagedResponse queryFolderContents(String folder) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder().setFolder(folder).build(); + return queryFolderContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Installs dependency NPM packages (inside a Workspace). + * Returns the contents of a given Folder. * *

            Sample code: * @@ -2853,27 +3060,32 @@ public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * InstallNpmPackagesRequest request = - * InstallNpmPackagesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * QueryFolderContentsRequest request = + * QueryFolderContentsRequest.newBuilder() + * .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.installNpmPackagesCallable().futureCall(request); - * // Do something. - * InstallNpmPackagesResponse response = future.get(); + * for (QueryFolderContentsResponse.FolderContentsEntry element : + * dataformClient.queryFolderContents(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - installNpmPackagesCallable() { - return stub.installNpmPackagesCallable(); + public final QueryFolderContentsPagedResponse queryFolderContents( + QueryFolderContentsRequest request) { + return queryFolderContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Returns the contents of a given Folder. * *

            Sample code: * @@ -2884,28 +3096,31 @@ public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * PullGitCommitsRequest request = - * PullGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .setAuthor(CommitAuthor.newBuilder().build()) + * QueryFolderContentsRequest request = + * QueryFolderContentsRequest.newBuilder() + * .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * PullGitCommitsResponse response = dataformClient.pullGitCommits(request); + * ApiFuture future = + * dataformClient.queryFolderContentsPagedCallable().futureCall(request); + * // Do something. + * for (QueryFolderContentsResponse.FolderContentsEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PullGitCommitsResponse pullGitCommits(PullGitCommitsRequest request) { - return pullGitCommitsCallable().call(request); + public final UnaryCallable + queryFolderContentsPagedCallable() { + return stub.queryFolderContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Returns the contents of a given Folder. * *

            Sample code: * @@ -2916,29 +3131,39 @@ public final PullGitCommitsResponse pullGitCommits(PullGitCommitsRequest request * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * PullGitCommitsRequest request = - * PullGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .setAuthor(CommitAuthor.newBuilder().build()) + * QueryFolderContentsRequest request = + * QueryFolderContentsRequest.newBuilder() + * .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.pullGitCommitsCallable().futureCall(request); - * // Do something. - * PullGitCommitsResponse response = future.get(); + * while (true) { + * QueryFolderContentsResponse response = + * dataformClient.queryFolderContentsCallable().call(request); + * for (QueryFolderContentsResponse.FolderContentsEntry element : response.getEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable - pullGitCommitsCallable() { - return stub.pullGitCommitsCallable(); + public final UnaryCallable + queryFolderContentsCallable() { + return stub.queryFolderContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

            Sample code: * @@ -2949,27 +3174,30 @@ public final PullGitCommitsResponse pullGitCommits(PullGitCommitsRequest request * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * PushGitCommitsRequest request = - * PushGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .build(); - * PushGitCommitsResponse response = dataformClient.pushGitCommits(request); + * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (QueryUserRootContentsResponse.RootContentsEntry element : + * dataformClient.queryUserRootContents(location).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param location Required. Location of the user root folder whose contents to list. Format: + * projects/*/locations/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PushGitCommitsResponse pushGitCommits(PushGitCommitsRequest request) { - return pushGitCommitsCallable().call(request); + public final QueryUserRootContentsPagedResponse queryUserRootContents(LocationName location) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(location == null ? null : location.toString()) + .build(); + return queryUserRootContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

            Sample code: * @@ -2980,28 +3208,28 @@ public final PushGitCommitsResponse pushGitCommits(PushGitCommitsRequest request * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * PushGitCommitsRequest request = - * PushGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .build(); - * ApiFuture future = - * dataformClient.pushGitCommitsCallable().futureCall(request); - * // Do something. - * PushGitCommitsResponse response = future.get(); + * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (QueryUserRootContentsResponse.RootContentsEntry element : + * dataformClient.queryUserRootContents(location).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param location Required. Location of the user root folder whose contents to list. Format: + * projects/*/locations/* + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - pushGitCommitsCallable() { - return stub.pushGitCommitsCallable(); + public final QueryUserRootContentsPagedResponse queryUserRootContents(String location) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder().setLocation(location).build(); + return queryUserRootContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git statuses for the files in a Workspace. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

            Sample code: * @@ -3012,27 +3240,33 @@ public final PushGitCommitsResponse pushGitCommits(PushGitCommitsRequest request * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchFileGitStatusesRequest request = - * FetchFileGitStatusesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * QueryUserRootContentsRequest request = + * QueryUserRootContentsRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * FetchFileGitStatusesResponse response = dataformClient.fetchFileGitStatuses(request); + * for (QueryUserRootContentsResponse.RootContentsEntry element : + * dataformClient.queryUserRootContents(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchFileGitStatusesResponse fetchFileGitStatuses( - FetchFileGitStatusesRequest request) { - return fetchFileGitStatusesCallable().call(request); + public final QueryUserRootContentsPagedResponse queryUserRootContents( + QueryUserRootContentsRequest request) { + return queryUserRootContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git statuses for the files in a Workspace. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

            Sample code: * @@ -3043,27 +3277,32 @@ public final FetchFileGitStatusesResponse fetchFileGitStatuses( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchFileGitStatusesRequest request = - * FetchFileGitStatusesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * QueryUserRootContentsRequest request = + * QueryUserRootContentsRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.fetchFileGitStatusesCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryUserRootContentsPagedCallable().futureCall(request); * // Do something. - * FetchFileGitStatusesResponse response = future.get(); + * for (QueryUserRootContentsResponse.RootContentsEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - fetchFileGitStatusesCallable() { - return stub.fetchFileGitStatusesCallable(); + public final UnaryCallable + queryUserRootContentsPagedCallable() { + return stub.queryUserRootContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git ahead/behind against a remote branch. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

            Sample code: * @@ -3074,27 +3313,38 @@ public final FetchFileGitStatusesResponse fetchFileGitStatuses( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchGitAheadBehindRequest request = - * FetchGitAheadBehindRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") + * QueryUserRootContentsRequest request = + * QueryUserRootContentsRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * FetchGitAheadBehindResponse response = dataformClient.fetchGitAheadBehind(request); + * while (true) { + * QueryUserRootContentsResponse response = + * dataformClient.queryUserRootContentsCallable().call(request); + * for (QueryUserRootContentsResponse.RootContentsEntry element : response.getEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) { - return fetchGitAheadBehindCallable().call(request); + public final UnaryCallable + queryUserRootContentsCallable() { + return stub.queryUserRootContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git ahead/behind against a remote branch. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

            Sample code: * @@ -3105,28 +3355,32 @@ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehind * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchGitAheadBehindRequest request = - * FetchGitAheadBehindRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .build(); - * ApiFuture future = - * dataformClient.fetchGitAheadBehindCallable().futureCall(request); - * // Do something. - * FetchGitAheadBehindResponse response = future.get(); + * FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + * String destinationContainingFolder = "destinationContainingFolder870737098"; + * dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); * } * } + * + * @param name Required. The full resource name of the Folder to move. + * @param destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root + * location to move the Folder to. Can be in the format of: "" to move into the root User + * folder, `projects/*/locations/*/folders/*`, + * `projects/*/locations/*/teamFolders/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - fetchGitAheadBehindCallable() { - return stub.fetchGitAheadBehindCallable(); + public final OperationFuture moveFolderAsync( + FolderName name, String destinationContainingFolder) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationContainingFolder(destinationContainingFolder) + .build(); + return moveFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit for uncommitted files in a Workspace. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

            Sample code: * @@ -3137,30 +3391,32 @@ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehind * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CommitWorkspaceChangesRequest request = - * CommitWorkspaceChangesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setAuthor(CommitAuthor.newBuilder().build()) - * .setCommitMessage("commitMessage2039804624") - * .addAllPaths(new ArrayList()) - * .build(); - * CommitWorkspaceChangesResponse response = dataformClient.commitWorkspaceChanges(request); + * String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + * String destinationContainingFolder = "destinationContainingFolder870737098"; + * dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The full resource name of the Folder to move. + * @param destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root + * location to move the Folder to. Can be in the format of: "" to move into the root User + * folder, `projects/*/locations/*/folders/*`, + * `projects/*/locations/*/teamFolders/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CommitWorkspaceChangesResponse commitWorkspaceChanges( - CommitWorkspaceChangesRequest request) { - return commitWorkspaceChangesCallable().call(request); + public final OperationFuture moveFolderAsync( + String name, String destinationContainingFolder) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(name) + .setDestinationContainingFolder(destinationContainingFolder) + .build(); + return moveFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit for uncommitted files in a Workspace. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

            Sample code: * @@ -3171,30 +3427,26 @@ public final CommitWorkspaceChangesResponse commitWorkspaceChanges( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CommitWorkspaceChangesRequest request = - * CommitWorkspaceChangesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setAuthor(CommitAuthor.newBuilder().build()) - * .setCommitMessage("commitMessage2039804624") - * .addAllPaths(new ArrayList()) + * MoveFolderRequest request = + * MoveFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * ApiFuture future = - * dataformClient.commitWorkspaceChangesCallable().futureCall(request); - * // Do something. - * CommitWorkspaceChangesResponse response = future.get(); + * dataformClient.moveFolderAsync(request).get(); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - commitWorkspaceChangesCallable() { - return stub.commitWorkspaceChangesCallable(); + public final OperationFuture moveFolderAsync( + MoveFolderRequest request) { + return moveFolderOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Performs a Git reset for uncommitted files in a Workspace. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

            Sample code: * @@ -3205,29 +3457,26 @@ public final CommitWorkspaceChangesResponse commitWorkspaceChanges( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ResetWorkspaceChangesRequest request = - * ResetWorkspaceChangesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .addAllPaths(new ArrayList()) - * .setClean(true) + * MoveFolderRequest request = + * MoveFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * ResetWorkspaceChangesResponse response = dataformClient.resetWorkspaceChanges(request); + * OperationFuture future = + * dataformClient.moveFolderOperationCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResetWorkspaceChangesResponse resetWorkspaceChanges( - ResetWorkspaceChangesRequest request) { - return resetWorkspaceChangesCallable().call(request); + public final OperationCallable + moveFolderOperationCallable() { + return stub.moveFolderOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Performs a Git reset for uncommitted files in a Workspace. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

            Sample code: * @@ -3238,29 +3487,27 @@ public final ResetWorkspaceChangesResponse resetWorkspaceChanges( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ResetWorkspaceChangesRequest request = - * ResetWorkspaceChangesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .addAllPaths(new ArrayList()) - * .setClean(true) + * MoveFolderRequest request = + * MoveFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * ApiFuture future = - * dataformClient.resetWorkspaceChangesCallable().futureCall(request); + * ApiFuture future = dataformClient.moveFolderCallable().futureCall(request); * // Do something. - * ResetWorkspaceChangesResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - resetWorkspaceChangesCallable() { - return stub.resetWorkspaceChangesCallable(); + public final UnaryCallable moveFolderCallable() { + return stub.moveFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git diff for an uncommitted file in a Workspace. + * Lists Repositories in a given project and location. + * + *

            **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

            Sample code: * @@ -3271,27 +3518,31 @@ public final ResetWorkspaceChangesResponse resetWorkspaceChanges( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchFileDiffRequest request = - * FetchFileDiffRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .build(); - * FetchFileDiffResponse response = dataformClient.fetchFileDiff(request); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (Repository element : dataformClient.listRepositories(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The location in which to list repositories. Must be in the format + * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { - return fetchFileDiffCallable().call(request); + public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { + ListRepositoriesRequest request = + ListRepositoriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRepositories(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git diff for an uncommitted file in a Workspace. + * Lists Repositories in a given project and location. + * + *

            **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

            Sample code: * @@ -3302,27 +3553,29 @@ public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * FetchFileDiffRequest request = - * FetchFileDiffRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .build(); - * ApiFuture future = - * dataformClient.fetchFileDiffCallable().futureCall(request); - * // Do something. - * FetchFileDiffResponse response = future.get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (Repository element : dataformClient.listRepositories(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The location in which to list repositories. Must be in the format + * `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable fetchFileDiffCallable() { - return stub.fetchFileDiffCallable(); + public final ListRepositoriesPagedResponse listRepositories(String parent) { + ListRepositoriesRequest request = + ListRepositoriesRequest.newBuilder().setParent(parent).build(); + return listRepositories(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Lists Repositories in a given project and location. + * + *

            **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

            Sample code: * @@ -3333,16 +3586,15 @@ public final UnaryCallable fetchFil * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { + * for (Repository element : dataformClient.listRepositories(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -3351,14 +3603,16 @@ public final UnaryCallable fetchFil * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryDirectoryContentsPagedResponse queryDirectoryContents( - QueryDirectoryContentsRequest request) { - return queryDirectoryContentsPagedCallable().call(request); + public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequest request) { + return listRepositoriesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Lists Repositories in a given project and location. + * + *

            **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

            Sample code: * @@ -3369,32 +3623,34 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.listRepositoriesPagedCallable().futureCall(request); * // Do something. - * for (DirectoryEntry element : future.get().iterateAll()) { + * for (Repository element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - queryDirectoryContentsPagedCallable() { - return stub.queryDirectoryContentsPagedCallable(); + public final UnaryCallable + listRepositoriesPagedCallable() { + return stub.listRepositoriesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Lists Repositories in a given project and location. + * + *

            **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

            Sample code: * @@ -3405,19 +3661,17 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * QueryDirectoryContentsResponse response = - * dataformClient.queryDirectoryContentsCallable().call(request); - * for (DirectoryEntry element : response.getDirectoryEntriesList()) { + * ListRepositoriesResponse response = dataformClient.listRepositoriesCallable().call(request); + * for (Repository element : response.getRepositoriesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3430,14 +3684,14 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * } * } */ - public final UnaryCallable - queryDirectoryContentsCallable() { - return stub.queryDirectoryContentsCallable(); + public final UnaryCallable + listRepositoriesCallable() { + return stub.listRepositoriesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Finds the contents of a given Workspace directory by filter. + * Fetches a single Repository. * *

            Sample code: * @@ -3448,31 +3702,23 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * SearchFilesRequest request = - * SearchFilesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .build(); - * for (SearchResult element : dataformClient.searchFiles(request).iterateAll()) { - * // doThingsWith(element); - * } + * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * Repository response = dataformClient.getRepository(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The repository's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchFilesPagedResponse searchFiles(SearchFilesRequest request) { - return searchFilesPagedCallable().call(request); + public final Repository getRepository(RepositoryName name) { + GetRepositoryRequest request = + GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Finds the contents of a given Workspace directory by filter. + * Fetches a single Repository. * *

            Sample code: * @@ -3483,32 +3729,22 @@ public final SearchFilesPagedResponse searchFiles(SearchFilesRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * SearchFilesRequest request = - * SearchFilesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .build(); - * ApiFuture future = - * dataformClient.searchFilesPagedCallable().futureCall(request); - * // Do something. - * for (SearchResult element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * Repository response = dataformClient.getRepository(name); * } * } + * + * @param name Required. The repository's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - searchFilesPagedCallable() { - return stub.searchFilesPagedCallable(); + public final Repository getRepository(String name) { + GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name).build(); + return getRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Finds the contents of a given Workspace directory by filter. + * Fetches a single Repository. * *

            Sample code: * @@ -3519,37 +3755,24 @@ public final SearchFilesPagedResponse searchFiles(SearchFilesRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * SearchFilesRequest request = - * SearchFilesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") + * GetRepositoryRequest request = + * GetRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * while (true) { - * SearchFilesResponse response = dataformClient.searchFilesCallable().call(request); - * for (SearchResult element : response.getSearchResultsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * Repository response = dataformClient.getRepository(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable searchFilesCallable() { - return stub.searchFilesCallable(); + public final Repository getRepository(GetRepositoryRequest request) { + return getRepositoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a directory inside a Workspace. + * Fetches a single Repository. * *

            Sample code: * @@ -3560,27 +3783,23 @@ public final UnaryCallable searchFilesC * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MakeDirectoryRequest request = - * MakeDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * GetRepositoryRequest request = + * GetRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * MakeDirectoryResponse response = dataformClient.makeDirectory(request); + * ApiFuture future = dataformClient.getRepositoryCallable().futureCall(request); + * // Do something. + * Repository response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { - return makeDirectoryCallable().call(request); + public final UnaryCallable getRepositoryCallable() { + return stub.getRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a directory inside a Workspace. + * Creates a new Repository in a given project and location. * *

            Sample code: * @@ -3591,27 +3810,34 @@ public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MakeDirectoryRequest request = - * MakeDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .build(); - * ApiFuture future = - * dataformClient.makeDirectoryCallable().futureCall(request); - * // Do something. - * MakeDirectoryResponse response = future.get(); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * Repository repository = Repository.newBuilder().build(); + * String repositoryId = "repositoryId2113747461"; + * Repository response = dataformClient.createRepository(parent, repository, repositoryId); * } * } + * + * @param parent Required. The location in which to create the repository. Must be in the format + * `projects/*/locations/*`. + * @param repository Required. The repository to create. + * @param repositoryId Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable makeDirectoryCallable() { - return stub.makeDirectoryCallable(); + public final Repository createRepository( + LocationName parent, Repository repository, String repositoryId) { + CreateRepositoryRequest request = + CreateRepositoryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRepository(repository) + .setRepositoryId(repositoryId) + .build(); + return createRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a directory (inside a Workspace) and all of its contents. + * Creates a new Repository in a given project and location. * *

            Sample code: * @@ -3622,27 +3848,34 @@ public final UnaryCallable makeDire * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RemoveDirectoryRequest request = - * RemoveDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .build(); - * RemoveDirectoryResponse response = dataformClient.removeDirectory(request); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * Repository repository = Repository.newBuilder().build(); + * String repositoryId = "repositoryId2113747461"; + * Repository response = dataformClient.createRepository(parent, repository, repositoryId); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The location in which to create the repository. Must be in the format + * `projects/*/locations/*`. + * @param repository Required. The repository to create. + * @param repositoryId Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RemoveDirectoryResponse removeDirectory(RemoveDirectoryRequest request) { - return removeDirectoryCallable().call(request); + public final Repository createRepository( + String parent, Repository repository, String repositoryId) { + CreateRepositoryRequest request = + CreateRepositoryRequest.newBuilder() + .setParent(parent) + .setRepository(repository) + .setRepositoryId(repositoryId) + .build(); + return createRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a directory (inside a Workspace) and all of its contents. + * Creates a new Repository in a given project and location. * *

            Sample code: * @@ -3653,28 +3886,26 @@ public final RemoveDirectoryResponse removeDirectory(RemoveDirectoryRequest requ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RemoveDirectoryRequest request = - * RemoveDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * CreateRepositoryRequest request = + * CreateRepositoryRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setRepository(Repository.newBuilder().build()) + * .setRepositoryId("repositoryId2113747461") * .build(); - * ApiFuture future = - * dataformClient.removeDirectoryCallable().futureCall(request); - * // Do something. - * RemoveDirectoryResponse response = future.get(); + * Repository response = dataformClient.createRepository(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - removeDirectoryCallable() { - return stub.removeDirectoryCallable(); + public final Repository createRepository(CreateRepositoryRequest request) { + return createRepositoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * Creates a new Repository in a given project and location. * *

            Sample code: * @@ -3685,28 +3916,30 @@ public final RemoveDirectoryResponse removeDirectory(RemoveDirectoryRequest requ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MoveDirectoryRequest request = - * MoveDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * CreateRepositoryRequest request = + * CreateRepositoryRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setRepository(Repository.newBuilder().build()) + * .setRepositoryId("repositoryId2113747461") * .build(); - * MoveDirectoryResponse response = dataformClient.moveDirectory(request); + * ApiFuture future = dataformClient.createRepositoryCallable().futureCall(request); + * // Do something. + * Repository response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { - return moveDirectoryCallable().call(request); + public final UnaryCallable createRepositoryCallable() { + return stub.createRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * Updates a single Repository. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

            Sample code: * @@ -3717,28 +3950,34 @@ public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MoveDirectoryRequest request = - * MoveDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setNewPath("newPath1845080549") - * .build(); - * ApiFuture future = - * dataformClient.moveDirectoryCallable().futureCall(request); - * // Do something. - * MoveDirectoryResponse response = future.get(); + * Repository repository = Repository.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Repository response = dataformClient.updateRepository(repository, updateMask); * } * } + * + * @param repository Required. The repository to update. + * @param updateMask Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable moveDirectoryCallable() { - return stub.moveDirectoryCallable(); + public final Repository updateRepository(Repository repository, FieldMask updateMask) { + UpdateRepositoryRequest request = + UpdateRepositoryRequest.newBuilder() + .setRepository(repository) + .setUpdateMask(updateMask) + .build(); + return updateRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Workspace). + * Updates a single Repository. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

            Sample code: * @@ -3749,28 +3988,30 @@ public final UnaryCallable moveDire * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReadFileRequest request = - * ReadFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setRevision("revision-260786213") + * UpdateRepositoryRequest request = + * UpdateRepositoryRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRepository(Repository.newBuilder().build()) * .build(); - * ReadFileResponse response = dataformClient.readFile(request); + * Repository response = dataformClient.updateRepository(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadFileResponse readFile(ReadFileRequest request) { - return readFileCallable().call(request); + public final Repository updateRepository(UpdateRepositoryRequest request) { + return updateRepositoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Workspace). + * Updates a single Repository. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

            Sample code: * @@ -3781,27 +4022,24 @@ public final ReadFileResponse readFile(ReadFileRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReadFileRequest request = - * ReadFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setRevision("revision-260786213") + * UpdateRepositoryRequest request = + * UpdateRepositoryRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRepository(Repository.newBuilder().build()) * .build(); - * ApiFuture future = dataformClient.readFileCallable().futureCall(request); + * ApiFuture future = dataformClient.updateRepositoryCallable().futureCall(request); * // Do something. - * ReadFileResponse response = future.get(); + * Repository response = future.get(); * } * } */ - public final UnaryCallable readFileCallable() { - return stub.readFileCallable(); + public final UnaryCallable updateRepositoryCallable() { + return stub.updateRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a file (inside a Workspace). + * Deletes a single Repository. * *

            Sample code: * @@ -3812,27 +4050,23 @@ public final UnaryCallable readFileCallable() * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RemoveFileRequest request = - * RemoveFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .build(); - * RemoveFileResponse response = dataformClient.removeFile(request); + * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * dataformClient.deleteRepository(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The repository's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RemoveFileResponse removeFile(RemoveFileRequest request) { - return removeFileCallable().call(request); + public final void deleteRepository(RepositoryName name) { + DeleteRepositoryRequest request = + DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a file (inside a Workspace). + * Deletes a single Repository. * *

            Sample code: * @@ -3843,27 +4077,22 @@ public final RemoveFileResponse removeFile(RemoveFileRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RemoveFileRequest request = - * RemoveFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .build(); - * ApiFuture future = - * dataformClient.removeFileCallable().futureCall(request); - * // Do something. - * RemoveFileResponse response = future.get(); + * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * dataformClient.deleteRepository(name); * } * } + * + * @param name Required. The repository's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable removeFileCallable() { - return stub.removeFileCallable(); + public final void deleteRepository(String name) { + DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name).build(); + deleteRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a file (inside a Workspace) to a new location. + * Deletes a single Repository. * *

            Sample code: * @@ -3874,28 +4103,25 @@ public final UnaryCallable removeFileCall * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MoveFileRequest request = - * MoveFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * DeleteRepositoryRequest request = + * DeleteRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setForce(true) * .build(); - * MoveFileResponse response = dataformClient.moveFile(request); + * dataformClient.deleteRepository(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MoveFileResponse moveFile(MoveFileRequest request) { - return moveFileCallable().call(request); + public final void deleteRepository(DeleteRepositoryRequest request) { + deleteRepositoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a file (inside a Workspace) to a new location. + * Deletes a single Repository. * *

            Sample code: * @@ -3906,27 +4132,24 @@ public final MoveFileResponse moveFile(MoveFileRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * MoveFileRequest request = - * MoveFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * DeleteRepositoryRequest request = + * DeleteRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setForce(true) * .build(); - * ApiFuture future = dataformClient.moveFileCallable().futureCall(request); + * ApiFuture future = dataformClient.deleteRepositoryCallable().futureCall(request); * // Do something. - * MoveFileResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable moveFileCallable() { - return stub.moveFileCallable(); + public final UnaryCallable deleteRepositoryCallable() { + return stub.deleteRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Writes to a file (inside a Workspace). + * Moves a Repository to a new location. * *

            Sample code: * @@ -3937,28 +4160,32 @@ public final UnaryCallable moveFileCallable() * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WriteFileRequest request = - * WriteFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setContents(ByteString.EMPTY) - * .build(); - * WriteFileResponse response = dataformClient.writeFile(request); + * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * String destinationContainingFolder = "destinationContainingFolder870737098"; + * dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The full resource name of the repository to move. + * @param destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root + * location to move the repository to. Can be in the format of: "" to move into the root User + * folder, `projects/*/locations/*/folders/*`, + * `projects/*/locations/*/teamFolders/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WriteFileResponse writeFile(WriteFileRequest request) { - return writeFileCallable().call(request); + public final OperationFuture moveRepositoryAsync( + RepositoryName name, String destinationContainingFolder) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationContainingFolder(destinationContainingFolder) + .build(); + return moveRepositoryAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Writes to a file (inside a Workspace). + * Moves a Repository to a new location. * *

            Sample code: * @@ -3969,27 +4196,32 @@ public final WriteFileResponse writeFile(WriteFileRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WriteFileRequest request = - * WriteFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setContents(ByteString.EMPTY) - * .build(); - * ApiFuture future = dataformClient.writeFileCallable().futureCall(request); - * // Do something. - * WriteFileResponse response = future.get(); + * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * String destinationContainingFolder = "destinationContainingFolder870737098"; + * dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); * } * } + * + * @param name Required. The full resource name of the repository to move. + * @param destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root + * location to move the repository to. Can be in the format of: "" to move into the root User + * folder, `projects/*/locations/*/folders/*`, + * `projects/*/locations/*/teamFolders/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable writeFileCallable() { - return stub.writeFileCallable(); + public final OperationFuture moveRepositoryAsync( + String name, String destinationContainingFolder) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(name) + .setDestinationContainingFolder(destinationContainingFolder) + .build(); + return moveRepositoryAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Moves a Repository to a new location. * *

            Sample code: * @@ -4000,28 +4232,26 @@ public final UnaryCallable writeFileCallabl * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { - * // doThingsWith(element); - * } + * MoveRepositoryRequest request = + * MoveRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") + * .build(); + * dataformClient.moveRepositoryAsync(request).get(); * } * } * - * @param parent Required. The repository in which to list release configs. Must be in the format - * `projects/*/locations/*/repositories/*`. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName parent) { - ListReleaseConfigsRequest request = - ListReleaseConfigsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listReleaseConfigs(request); + public final OperationFuture moveRepositoryAsync( + MoveRepositoryRequest request) { + return moveRepositoryOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Moves a Repository to a new location. * *

            Sample code: * @@ -4032,26 +4262,26 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName p * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { - * // doThingsWith(element); - * } + * MoveRepositoryRequest request = + * MoveRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") + * .build(); + * OperationFuture future = + * dataformClient.moveRepositoryOperationCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param parent Required. The repository in which to list release configs. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) { - ListReleaseConfigsRequest request = - ListReleaseConfigsRequest.newBuilder().setParent(parent).build(); - return listReleaseConfigs(request); + public final OperationCallable + moveRepositoryOperationCallable() { + return stub.moveRepositoryOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Moves a Repository to a new location. * *

            Sample code: * @@ -4062,29 +4292,25 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListReleaseConfigsRequest request = - * ListReleaseConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * MoveRepositoryRequest request = + * MoveRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * for (ReleaseConfig element : dataformClient.listReleaseConfigs(request).iterateAll()) { - * // doThingsWith(element); - * } + * ApiFuture future = dataformClient.moveRepositoryCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleaseConfigsPagedResponse listReleaseConfigs( - ListReleaseConfigsRequest request) { - return listReleaseConfigsPagedCallable().call(request); + public final UnaryCallable moveRepositoryCallable() { + return stub.moveRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Applies a Git commit to a Repository. The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4095,29 +4321,30 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListReleaseConfigsRequest request = - * ListReleaseConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CommitRepositoryChangesRequest request = + * CommitRepositoryChangesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitMetadata(CommitMetadata.newBuilder().build()) + * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + * .putAllFileOperations( + * new HashMap()) * .build(); - * ApiFuture future = - * dataformClient.listReleaseConfigsPagedCallable().futureCall(request); - * // Do something. - * for (ReleaseConfig element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * CommitRepositoryChangesResponse response = dataformClient.commitRepositoryChanges(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listReleaseConfigsPagedCallable() { - return stub.listReleaseConfigsPagedCallable(); + public final CommitRepositoryChangesResponse commitRepositoryChanges( + CommitRepositoryChangesRequest request) { + return commitRepositoryChangesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Applies a Git commit to a Repository. The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4128,36 +4355,30 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListReleaseConfigsRequest request = - * ListReleaseConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CommitRepositoryChangesRequest request = + * CommitRepositoryChangesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitMetadata(CommitMetadata.newBuilder().build()) + * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + * .putAllFileOperations( + * new HashMap()) * .build(); - * while (true) { - * ListReleaseConfigsResponse response = - * dataformClient.listReleaseConfigsCallable().call(request); - * for (ReleaseConfig element : response.getReleaseConfigsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * dataformClient.commitRepositoryChangesCallable().futureCall(request); + * // Do something. + * CommitRepositoryChangesResponse response = future.get(); * } * } */ - public final UnaryCallable - listReleaseConfigsCallable() { - return stub.listReleaseConfigsCallable(); + public final UnaryCallable + commitRepositoryChangesCallable() { + return stub.commitRepositoryChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single ReleaseConfig. + * Returns the contents of a file (inside a Repository). The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4168,24 +4389,27 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReleaseConfigName name = - * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); - * ReleaseConfig response = dataformClient.getReleaseConfig(name); + * ReadRepositoryFileRequest request = + * ReadRepositoryFileRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") + * .build(); + * ReadRepositoryFileResponse response = dataformClient.readRepositoryFile(request); * } * } * - * @param name Required. The release config's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { - GetReleaseConfigRequest request = - GetReleaseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getReleaseConfig(request); + public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileRequest request) { + return readRepositoryFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single ReleaseConfig. + * Returns the contents of a file (inside a Repository). The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4196,24 +4420,28 @@ public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") - * .toString(); - * ReleaseConfig response = dataformClient.getReleaseConfig(name); + * ReadRepositoryFileRequest request = + * ReadRepositoryFileRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") + * .build(); + * ApiFuture future = + * dataformClient.readRepositoryFileCallable().futureCall(request); + * // Do something. + * ReadRepositoryFileResponse response = future.get(); * } * } - * - * @param name Required. The release config's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig getReleaseConfig(String name) { - GetReleaseConfigRequest request = GetReleaseConfigRequest.newBuilder().setName(name).build(); - return getReleaseConfig(request); + public final UnaryCallable + readRepositoryFileCallable() { + return stub.readRepositoryFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single ReleaseConfig. + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4224,27 +4452,33 @@ public final ReleaseConfig getReleaseConfig(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetReleaseConfigRequest request = - * GetReleaseConfigRequest.newBuilder() - * .setName( - * ReleaseConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") - * .toString()) + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ReleaseConfig response = dataformClient.getReleaseConfig(request); + * for (DirectoryEntry element : + * dataformClient.queryRepositoryDirectoryContents(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig getReleaseConfig(GetReleaseConfigRequest request) { - return getReleaseConfigCallable().call(request); + public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirectoryContents( + QueryRepositoryDirectoryContentsRequest request) { + return queryRepositoryDirectoryContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single ReleaseConfig. + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4255,27 +4489,33 @@ public final ReleaseConfig getReleaseConfig(GetReleaseConfigRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetReleaseConfigRequest request = - * GetReleaseConfigRequest.newBuilder() - * .setName( - * ReleaseConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") - * .toString()) - * .build(); - * ApiFuture future = - * dataformClient.getReleaseConfigCallable().futureCall(request); + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture future = + * dataformClient.queryRepositoryDirectoryContentsPagedCallable().futureCall(request); * // Do something. - * ReleaseConfig response = future.get(); + * for (DirectoryEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable getReleaseConfigCallable() { - return stub.getReleaseConfigCallable(); + public final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsPagedCallable() { + return stub.queryRepositoryDirectoryContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ReleaseConfig in a given Repository. + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4286,35 +4526,40 @@ public final UnaryCallable getReleaseCon * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); - * String releaseConfigId = "releaseConfigId1350457636"; - * ReleaseConfig response = - * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") + * .setPath("path3433509") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * QueryRepositoryDirectoryContentsResponse response = + * dataformClient.queryRepositoryDirectoryContentsCallable().call(request); + * for (DirectoryEntry element : response.getDirectoryEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param parent Required. The repository in which to create the release config. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @param releaseConfig Required. The release config to create. - * @param releaseConfigId Required. The ID to use for the release config, which will become the - * final component of the release config's resource name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig createReleaseConfig( - RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { - CreateReleaseConfigRequest request = - CreateReleaseConfigRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setReleaseConfig(releaseConfig) - .setReleaseConfigId(releaseConfigId) - .build(); - return createReleaseConfig(request); + public final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsCallable() { + return stub.queryRepositoryDirectoryContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ReleaseConfig in a given Repository. + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4325,35 +4570,30 @@ public final ReleaseConfig createReleaseConfig( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); - * String releaseConfigId = "releaseConfigId1350457636"; - * ReleaseConfig response = - * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (CommitLogEntry element : dataformClient.fetchRepositoryHistory(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param parent Required. The repository in which to create the release config. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @param releaseConfig Required. The release config to create. - * @param releaseConfigId Required. The ID to use for the release config, which will become the - * final component of the release config's resource name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig createReleaseConfig( - String parent, ReleaseConfig releaseConfig, String releaseConfigId) { - CreateReleaseConfigRequest request = - CreateReleaseConfigRequest.newBuilder() - .setParent(parent) - .setReleaseConfig(releaseConfig) - .setReleaseConfigId(releaseConfigId) - .build(); - return createReleaseConfig(request); + public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( + FetchRepositoryHistoryRequest request) { + return fetchRepositoryHistoryPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ReleaseConfig in a given Repository. + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4364,26 +4604,30 @@ public final ReleaseConfig createReleaseConfig( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateReleaseConfigRequest request = - * CreateReleaseConfigRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setReleaseConfig(ReleaseConfig.newBuilder().build()) - * .setReleaseConfigId("releaseConfigId1350457636") + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ReleaseConfig response = dataformClient.createReleaseConfig(request); + * ApiFuture future = + * dataformClient.fetchRepositoryHistoryPagedCallable().futureCall(request); + * // Do something. + * for (CommitLogEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest request) { - return createReleaseConfigCallable().call(request); + public final UnaryCallable + fetchRepositoryHistoryPagedCallable() { + return stub.fetchRepositoryHistoryPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ReleaseConfig in a given Repository. + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

            Sample code: * @@ -4394,32 +4638,36 @@ public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateReleaseConfigRequest request = - * CreateReleaseConfigRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setReleaseConfig(ReleaseConfig.newBuilder().build()) - * .setReleaseConfigId("releaseConfigId1350457636") + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * dataformClient.createReleaseConfigCallable().futureCall(request); - * // Do something. - * ReleaseConfig response = future.get(); + * while (true) { + * FetchRepositoryHistoryResponse response = + * dataformClient.fetchRepositoryHistoryCallable().call(request); + * for (CommitLogEntry element : response.getCommitsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable - createReleaseConfigCallable() { - return stub.createReleaseConfigCallable(); + public final UnaryCallable + fetchRepositoryHistoryCallable() { + return stub.fetchRepositoryHistoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single ReleaseConfig. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Computes a Repository's Git access token status. * *

            Sample code: * @@ -4430,35 +4678,26 @@ public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * ReleaseConfig response = dataformClient.updateReleaseConfig(releaseConfig, updateMask); + * ComputeRepositoryAccessTokenStatusRequest request = + * ComputeRepositoryAccessTokenStatusRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .build(); + * ComputeRepositoryAccessTokenStatusResponse response = + * dataformClient.computeRepositoryAccessTokenStatus(request); * } * } * - * @param releaseConfig Required. The release config to update. - * @param updateMask Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig updateReleaseConfig( - ReleaseConfig releaseConfig, FieldMask updateMask) { - UpdateReleaseConfigRequest request = - UpdateReleaseConfigRequest.newBuilder() - .setReleaseConfig(releaseConfig) - .setUpdateMask(updateMask) - .build(); - return updateReleaseConfig(request); + public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessTokenStatus( + ComputeRepositoryAccessTokenStatusRequest request) { + return computeRepositoryAccessTokenStatusCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single ReleaseConfig. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Computes a Repository's Git access token status. * *

            Sample code: * @@ -4469,30 +4708,26 @@ public final ReleaseConfig updateReleaseConfig( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * UpdateReleaseConfigRequest request = - * UpdateReleaseConfigRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * ComputeRepositoryAccessTokenStatusRequest request = + * ComputeRepositoryAccessTokenStatusRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * ReleaseConfig response = dataformClient.updateReleaseConfig(request); + * ApiFuture future = + * dataformClient.computeRepositoryAccessTokenStatusCallable().futureCall(request); + * // Do something. + * ComputeRepositoryAccessTokenStatusResponse response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest request) { - return updateReleaseConfigCallable().call(request); + public final UnaryCallable< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusCallable() { + return stub.computeRepositoryAccessTokenStatusCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single ReleaseConfig. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Fetches a Repository's remote branches. * *

            Sample code: * @@ -4503,26 +4738,24 @@ public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * UpdateReleaseConfigRequest request = - * UpdateReleaseConfigRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * FetchRemoteBranchesRequest request = + * FetchRemoteBranchesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * ApiFuture future = - * dataformClient.updateReleaseConfigCallable().futureCall(request); - * // Do something. - * ReleaseConfig response = future.get(); + * FetchRemoteBranchesResponse response = dataformClient.fetchRemoteBranches(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - updateReleaseConfigCallable() { - return stub.updateReleaseConfigCallable(); + public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranchesRequest request) { + return fetchRemoteBranchesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ReleaseConfig. + * Fetches a Repository's remote branches. * *

            Sample code: * @@ -4533,116 +4766,25 @@ public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ReleaseConfigName name = - * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); - * dataformClient.deleteReleaseConfig(name); - * } - * } - * - * @param name Required. The release config's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteReleaseConfig(ReleaseConfigName name) { - DeleteReleaseConfigRequest request = - DeleteReleaseConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteReleaseConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single ReleaseConfig. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (DataformClient dataformClient = DataformClient.create()) {
            -   *   String name =
            -   *       ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
            -   *           .toString();
            -   *   dataformClient.deleteReleaseConfig(name);
            -   * }
            -   * }
            - * - * @param name Required. The release config's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteReleaseConfig(String name) { - DeleteReleaseConfigRequest request = - DeleteReleaseConfigRequest.newBuilder().setName(name).build(); - deleteReleaseConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single ReleaseConfig. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (DataformClient dataformClient = DataformClient.create()) {
            -   *   DeleteReleaseConfigRequest request =
            -   *       DeleteReleaseConfigRequest.newBuilder()
            -   *           .setName(
            -   *               ReleaseConfigName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
            -   *                   .toString())
            -   *           .build();
            -   *   dataformClient.deleteReleaseConfig(request);
            -   * }
            -   * }
            - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteReleaseConfig(DeleteReleaseConfigRequest request) { - deleteReleaseConfigCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single ReleaseConfig. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (DataformClient dataformClient = DataformClient.create()) {
            -   *   DeleteReleaseConfigRequest request =
            -   *       DeleteReleaseConfigRequest.newBuilder()
            -   *           .setName(
            -   *               ReleaseConfigName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
            -   *                   .toString())
            +   *   FetchRemoteBranchesRequest request =
            +   *       FetchRemoteBranchesRequest.newBuilder()
            +   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
                *           .build();
            -   *   ApiFuture future = dataformClient.deleteReleaseConfigCallable().futureCall(request);
            +   *   ApiFuture future =
            +   *       dataformClient.fetchRemoteBranchesCallable().futureCall(request);
                *   // Do something.
            -   *   future.get();
            +   *   FetchRemoteBranchesResponse response = future.get();
                * }
                * }
            */ - public final UnaryCallable deleteReleaseConfigCallable() { - return stub.deleteReleaseConfigCallable(); + public final UnaryCallable + fetchRemoteBranchesCallable() { + return stub.fetchRemoteBranchesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists Workspaces in a given Repository. * *

            Sample code: * @@ -4654,27 +4796,27 @@ public final UnaryCallable deleteReleaseConfi * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { + * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list compilation results. Must be in the - * format `projects/*/locations/*/repositories/*`. + * @param parent Required. The repository in which to list workspaces. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) { - ListCompilationResultsRequest request = - ListCompilationResultsRequest.newBuilder() + public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listCompilationResults(request); + return listWorkspaces(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists Workspaces in a given Repository. * *

            Sample code: * @@ -4686,25 +4828,24 @@ public final ListCompilationResultsPagedResponse listCompilationResults(Reposito * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { + * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list compilation results. Must be in the - * format `projects/*/locations/*/repositories/*`. + * @param parent Required. The repository in which to list workspaces. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults(String parent) { - ListCompilationResultsRequest request = - ListCompilationResultsRequest.newBuilder().setParent(parent).build(); - return listCompilationResults(request); + public final ListWorkspacesPagedResponse listWorkspaces(String parent) { + ListWorkspacesRequest request = ListWorkspacesRequest.newBuilder().setParent(parent).build(); + return listWorkspaces(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists Workspaces in a given Repository. * *

            Sample code: * @@ -4715,16 +4856,15 @@ public final ListCompilationResultsPagedResponse listCompilationResults(String p * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); - * for (CompilationResult element : - * dataformClient.listCompilationResults(request).iterateAll()) { + * for (Workspace element : dataformClient.listWorkspaces(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -4733,14 +4873,13 @@ public final ListCompilationResultsPagedResponse listCompilationResults(String p * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults( - ListCompilationResultsRequest request) { - return listCompilationResultsPagedCallable().call(request); + public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest request) { + return listWorkspacesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists Workspaces in a given Repository. * *

            Sample code: * @@ -4751,31 +4890,31 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.listCompilationResultsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.listWorkspacesPagedCallable().futureCall(request); * // Do something. - * for (CompilationResult element : future.get().iterateAll()) { + * for (Workspace element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listCompilationResultsPagedCallable() { - return stub.listCompilationResultsPagedCallable(); + public final UnaryCallable + listWorkspacesPagedCallable() { + return stub.listWorkspacesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Lists Workspaces in a given Repository. * *

            Sample code: * @@ -4786,8 +4925,8 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -4795,9 +4934,8 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListCompilationResultsResponse response = - * dataformClient.listCompilationResultsCallable().call(request); - * for (CompilationResult element : response.getCompilationResultsList()) { + * ListWorkspacesResponse response = dataformClient.listWorkspacesCallable().call(request); + * for (Workspace element : response.getWorkspacesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -4810,14 +4948,14 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * } * } */ - public final UnaryCallable - listCompilationResultsCallable() { - return stub.listCompilationResultsCallable(); + public final UnaryCallable + listWorkspacesCallable() { + return stub.listWorkspacesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches a single Workspace. * *

            Sample code: * @@ -4828,27 +4966,24 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CompilationResultName name = - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); - * CompilationResult response = dataformClient.getCompilationResult(name); + * WorkspaceName name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); + * Workspace response = dataformClient.getWorkspace(name); * } * } * - * @param name Required. The compilation result's name. + * @param name Required. The workspace's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(CompilationResultName name) { - GetCompilationResultRequest request = - GetCompilationResultRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getCompilationResult(request); + public final Workspace getWorkspace(WorkspaceName name) { + GetWorkspaceRequest request = + GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches a single Workspace. * *

            Sample code: * @@ -4860,25 +4995,22 @@ public final CompilationResult getCompilationResult(CompilationResultName name) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String name = - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - * .toString(); - * CompilationResult response = dataformClient.getCompilationResult(name); + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); + * Workspace response = dataformClient.getWorkspace(name); * } * } * - * @param name Required. The compilation result's name. + * @param name Required. The workspace's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(String name) { - GetCompilationResultRequest request = - GetCompilationResultRequest.newBuilder().setName(name).build(); - return getCompilationResult(request); + public final Workspace getWorkspace(String name) { + GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name).build(); + return getWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches a single Workspace. * *

            Sample code: * @@ -4889,27 +5021,26 @@ public final CompilationResult getCompilationResult(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetCompilationResultRequest request = - * GetCompilationResultRequest.newBuilder() + * GetWorkspaceRequest request = + * GetWorkspaceRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .build(); - * CompilationResult response = dataformClient.getCompilationResult(request); + * Workspace response = dataformClient.getWorkspace(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(GetCompilationResultRequest request) { - return getCompilationResultCallable().call(request); + public final Workspace getWorkspace(GetWorkspaceRequest request) { + return getWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches a single Workspace. * *

            Sample code: * @@ -4920,28 +5051,25 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetCompilationResultRequest request = - * GetCompilationResultRequest.newBuilder() + * GetWorkspaceRequest request = + * GetWorkspaceRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .build(); - * ApiFuture future = - * dataformClient.getCompilationResultCallable().futureCall(request); + * ApiFuture future = dataformClient.getWorkspaceCallable().futureCall(request); * // Do something. - * CompilationResult response = future.get(); + * Workspace response = future.get(); * } * } */ - public final UnaryCallable - getCompilationResultCallable() { - return stub.getCompilationResultCallable(); + public final UnaryCallable getWorkspaceCallable() { + return stub.getWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Creates a new Workspace in a given Repository. * *

            Sample code: * @@ -4953,30 +5081,33 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * CompilationResult compilationResult = CompilationResult.newBuilder().build(); - * CompilationResult response = - * dataformClient.createCompilationResult(parent, compilationResult); + * Workspace workspace = Workspace.newBuilder().build(); + * String workspaceId = "workspaceId466560144"; + * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); * } * } * - * @param parent Required. The repository in which to create the compilation result. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param compilationResult Required. The compilation result to create. + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult createCompilationResult( - RepositoryName parent, CompilationResult compilationResult) { - CreateCompilationResultRequest request = - CreateCompilationResultRequest.newBuilder() + public final Workspace createWorkspace( + RepositoryName parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setCompilationResult(compilationResult) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) .build(); - return createCompilationResult(request); + return createWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Creates a new Workspace in a given Repository. * *

            Sample code: * @@ -4988,30 +5119,32 @@ public final CompilationResult createCompilationResult( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * CompilationResult compilationResult = CompilationResult.newBuilder().build(); - * CompilationResult response = - * dataformClient.createCompilationResult(parent, compilationResult); + * Workspace workspace = Workspace.newBuilder().build(); + * String workspaceId = "workspaceId466560144"; + * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); * } * } * - * @param parent Required. The repository in which to create the compilation result. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param compilationResult Required. The compilation result to create. + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult createCompilationResult( - String parent, CompilationResult compilationResult) { - CreateCompilationResultRequest request = - CreateCompilationResultRequest.newBuilder() + public final Workspace createWorkspace(String parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() .setParent(parent) - .setCompilationResult(compilationResult) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) .build(); - return createCompilationResult(request); + return createWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Creates a new Workspace in a given Repository. * *

            Sample code: * @@ -5022,25 +5155,26 @@ public final CompilationResult createCompilationResult( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateCompilationResultRequest request = - * CreateCompilationResultRequest.newBuilder() + * CreateWorkspaceRequest request = + * CreateWorkspaceRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCompilationResult(CompilationResult.newBuilder().build()) + * .setWorkspace(Workspace.newBuilder().build()) + * .setWorkspaceId("workspaceId466560144") * .build(); - * CompilationResult response = dataformClient.createCompilationResult(request); + * Workspace response = dataformClient.createWorkspace(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult createCompilationResult(CreateCompilationResultRequest request) { - return createCompilationResultCallable().call(request); + public final Workspace createWorkspace(CreateWorkspaceRequest request) { + return createWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Creates a new Workspace in a given Repository. * *

            Sample code: * @@ -5051,26 +5185,25 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateCompilationResultRequest request = - * CreateCompilationResultRequest.newBuilder() + * CreateWorkspaceRequest request = + * CreateWorkspaceRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCompilationResult(CompilationResult.newBuilder().build()) + * .setWorkspace(Workspace.newBuilder().build()) + * .setWorkspaceId("workspaceId466560144") * .build(); - * ApiFuture future = - * dataformClient.createCompilationResultCallable().futureCall(request); + * ApiFuture future = dataformClient.createWorkspaceCallable().futureCall(request); * // Do something. - * CompilationResult response = future.get(); + * Workspace response = future.get(); * } * } */ - public final UnaryCallable - createCompilationResultCallable() { - return stub.createCompilationResultCallable(); + public final UnaryCallable createWorkspaceCallable() { + return stub.createWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Deletes a single Workspace. * *

            Sample code: * @@ -5081,34 +5214,24 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() - * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .build(); - * for (CompilationResultAction element : - * dataformClient.queryCompilationResultActions(request).iterateAll()) { - * // doThingsWith(element); - * } + * WorkspaceName name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); + * dataformClient.deleteWorkspace(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The workspace resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryCompilationResultActionsPagedResponse queryCompilationResultActions( - QueryCompilationResultActionsRequest request) { - return queryCompilationResultActionsPagedCallable().call(request); + public final void deleteWorkspace(WorkspaceName name) { + DeleteWorkspaceRequest request = + DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Deletes a single Workspace. * *

            Sample code: * @@ -5119,34 +5242,23 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() - * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .build(); - * ApiFuture future = - * dataformClient.queryCompilationResultActionsPagedCallable().futureCall(request); - * // Do something. - * for (CompilationResultAction element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); + * dataformClient.deleteWorkspace(name); * } * } + * + * @param name Required. The workspace resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable() { - return stub.queryCompilationResultActionsPagedCallable(); + public final void deleteWorkspace(String name) { + DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name).build(); + deleteWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Deletes a single Workspace. * *

            Sample code: * @@ -5157,41 +5269,26 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() + * DeleteWorkspaceRequest request = + * DeleteWorkspaceRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * while (true) { - * QueryCompilationResultActionsResponse response = - * dataformClient.queryCompilationResultActionsCallable().call(request); - * for (CompilationResultAction element : response.getCompilationResultActionsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * dataformClient.deleteWorkspace(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsCallable() { - return stub.queryCompilationResultActionsCallable(); + public final void deleteWorkspace(DeleteWorkspaceRequest request) { + deleteWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Deletes a single Workspace. * *

            Sample code: * @@ -5202,28 +5299,25 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { - * // doThingsWith(element); - * } + * DeleteWorkspaceRequest request = + * DeleteWorkspaceRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .build(); + * ApiFuture future = dataformClient.deleteWorkspaceCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param parent Required. The repository in which to list workflow configs. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName parent) { - ListWorkflowConfigsRequest request = - ListWorkflowConfigsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowConfigs(request); + public final UnaryCallable deleteWorkspaceCallable() { + return stub.deleteWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Installs dependency NPM packages (inside a Workspace). * *

            Sample code: * @@ -5234,26 +5328,26 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { - * // doThingsWith(element); - * } + * InstallNpmPackagesRequest request = + * InstallNpmPackagesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .build(); + * InstallNpmPackagesResponse response = dataformClient.installNpmPackages(request); * } * } * - * @param parent Required. The repository in which to list workflow configs. Must be in the format - * `projects/*/locations/*/repositories/*`. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(String parent) { - ListWorkflowConfigsRequest request = - ListWorkflowConfigsRequest.newBuilder().setParent(parent).build(); - return listWorkflowConfigs(request); + public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesRequest request) { + return installNpmPackagesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Installs dependency NPM packages (inside a Workspace). * *

            Sample code: * @@ -5264,29 +5358,27 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(String parent) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkflowConfigsRequest request = - * ListWorkflowConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * InstallNpmPackagesRequest request = + * InstallNpmPackagesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) * .build(); - * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(request).iterateAll()) { - * // doThingsWith(element); - * } - * } - * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * ApiFuture future = + * dataformClient.installNpmPackagesCallable().futureCall(request); + * // Do something. + * InstallNpmPackagesResponse response = future.get(); + * } + * } */ - public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( - ListWorkflowConfigsRequest request) { - return listWorkflowConfigsPagedCallable().call(request); + public final UnaryCallable + installNpmPackagesCallable() { + return stub.installNpmPackagesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Pulls Git commits from the Repository's remote into a Workspace. * *

            Sample code: * @@ -5297,29 +5389,28 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkflowConfigsRequest request = - * ListWorkflowConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * PullGitCommitsRequest request = + * PullGitCommitsRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .setAuthor(CommitAuthor.newBuilder().build()) * .build(); - * ApiFuture future = - * dataformClient.listWorkflowConfigsPagedCallable().futureCall(request); - * // Do something. - * for (WorkflowConfig element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * PullGitCommitsResponse response = dataformClient.pullGitCommits(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listWorkflowConfigsPagedCallable() { - return stub.listWorkflowConfigsPagedCallable(); + public final PullGitCommitsResponse pullGitCommits(PullGitCommitsRequest request) { + return pullGitCommitsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Pulls Git commits from the Repository's remote into a Workspace. * *

            Sample code: * @@ -5330,36 +5421,29 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkflowConfigsRequest request = - * ListWorkflowConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * PullGitCommitsRequest request = + * PullGitCommitsRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .setAuthor(CommitAuthor.newBuilder().build()) * .build(); - * while (true) { - * ListWorkflowConfigsResponse response = - * dataformClient.listWorkflowConfigsCallable().call(request); - * for (WorkflowConfig element : response.getWorkflowConfigsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * dataformClient.pullGitCommitsCallable().futureCall(request); + * // Do something. + * PullGitCommitsResponse response = future.get(); * } * } */ - public final UnaryCallable - listWorkflowConfigsCallable() { - return stub.listWorkflowConfigsCallable(); + public final UnaryCallable + pullGitCommitsCallable() { + return stub.pullGitCommitsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowConfig. + * Pushes Git commits from a Workspace to the Repository's remote. * *

            Sample code: * @@ -5370,26 +5454,27 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkflowConfigName name = - * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); - * WorkflowConfig response = dataformClient.getWorkflowConfig(name); + * PushGitCommitsRequest request = + * PushGitCommitsRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .build(); + * PushGitCommitsResponse response = dataformClient.pushGitCommits(request); * } * } * - * @param name Required. The workflow config's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { - GetWorkflowConfigRequest request = - GetWorkflowConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowConfig(request); + public final PushGitCommitsResponse pushGitCommits(PushGitCommitsRequest request) { + return pushGitCommitsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowConfig. + * Pushes Git commits from a Workspace to the Repository's remote. * *

            Sample code: * @@ -5400,24 +5485,28 @@ public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") - * .toString(); - * WorkflowConfig response = dataformClient.getWorkflowConfig(name); + * PushGitCommitsRequest request = + * PushGitCommitsRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .build(); + * ApiFuture future = + * dataformClient.pushGitCommitsCallable().futureCall(request); + * // Do something. + * PushGitCommitsResponse response = future.get(); * } * } - * - * @param name Required. The workflow config's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig getWorkflowConfig(String name) { - GetWorkflowConfigRequest request = GetWorkflowConfigRequest.newBuilder().setName(name).build(); - return getWorkflowConfig(request); + public final UnaryCallable + pushGitCommitsCallable() { + return stub.pushGitCommitsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowConfig. + * Fetches Git statuses for the files in a Workspace. * *

            Sample code: * @@ -5428,27 +5517,27 @@ public final WorkflowConfig getWorkflowConfig(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetWorkflowConfigRequest request = - * GetWorkflowConfigRequest.newBuilder() + * FetchFileGitStatusesRequest request = + * FetchFileGitStatusesRequest.newBuilder() * .setName( - * WorkflowConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .build(); - * WorkflowConfig response = dataformClient.getWorkflowConfig(request); + * FetchFileGitStatusesResponse response = dataformClient.fetchFileGitStatuses(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig getWorkflowConfig(GetWorkflowConfigRequest request) { - return getWorkflowConfigCallable().call(request); + public final FetchFileGitStatusesResponse fetchFileGitStatuses( + FetchFileGitStatusesRequest request) { + return fetchFileGitStatusesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowConfig. + * Fetches Git statuses for the files in a Workspace. * *

            Sample code: * @@ -5459,27 +5548,27 @@ public final WorkflowConfig getWorkflowConfig(GetWorkflowConfigRequest request) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetWorkflowConfigRequest request = - * GetWorkflowConfigRequest.newBuilder() + * FetchFileGitStatusesRequest request = + * FetchFileGitStatusesRequest.newBuilder() * .setName( - * WorkflowConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .build(); - * ApiFuture future = - * dataformClient.getWorkflowConfigCallable().futureCall(request); + * ApiFuture future = + * dataformClient.fetchFileGitStatusesCallable().futureCall(request); * // Do something. - * WorkflowConfig response = future.get(); + * FetchFileGitStatusesResponse response = future.get(); * } * } */ - public final UnaryCallable getWorkflowConfigCallable() { - return stub.getWorkflowConfigCallable(); + public final UnaryCallable + fetchFileGitStatusesCallable() { + return stub.fetchFileGitStatusesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowConfig in a given Repository. + * Fetches Git ahead/behind against a remote branch. * *

            Sample code: * @@ -5490,35 +5579,27 @@ public final UnaryCallable getWorkflow * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); - * String workflowConfigId = "workflowConfigId-1331048228"; - * WorkflowConfig response = - * dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId); + * FetchGitAheadBehindRequest request = + * FetchGitAheadBehindRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .build(); + * FetchGitAheadBehindResponse response = dataformClient.fetchGitAheadBehind(request); * } * } * - * @param parent Required. The repository in which to create the workflow config. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @param workflowConfig Required. The workflow config to create. - * @param workflowConfigId Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig createWorkflowConfig( - RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { - CreateWorkflowConfigRequest request = - CreateWorkflowConfigRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setWorkflowConfig(workflowConfig) - .setWorkflowConfigId(workflowConfigId) - .build(); - return createWorkflowConfig(request); + public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) { + return fetchGitAheadBehindCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowConfig in a given Repository. + * Fetches Git ahead/behind against a remote branch. * *

            Sample code: * @@ -5529,35 +5610,28 @@ public final WorkflowConfig createWorkflowConfig( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); - * String workflowConfigId = "workflowConfigId-1331048228"; - * WorkflowConfig response = - * dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId); + * FetchGitAheadBehindRequest request = + * FetchGitAheadBehindRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .build(); + * ApiFuture future = + * dataformClient.fetchGitAheadBehindCallable().futureCall(request); + * // Do something. + * FetchGitAheadBehindResponse response = future.get(); * } * } - * - * @param parent Required. The repository in which to create the workflow config. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @param workflowConfig Required. The workflow config to create. - * @param workflowConfigId Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig createWorkflowConfig( - String parent, WorkflowConfig workflowConfig, String workflowConfigId) { - CreateWorkflowConfigRequest request = - CreateWorkflowConfigRequest.newBuilder() - .setParent(parent) - .setWorkflowConfig(workflowConfig) - .setWorkflowConfigId(workflowConfigId) - .build(); - return createWorkflowConfig(request); + public final UnaryCallable + fetchGitAheadBehindCallable() { + return stub.fetchGitAheadBehindCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowConfig in a given Repository. + * Applies a Git commit for uncommitted files in a Workspace. * *

            Sample code: * @@ -5568,26 +5642,30 @@ public final WorkflowConfig createWorkflowConfig( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkflowConfigRequest request = - * CreateWorkflowConfigRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) - * .setWorkflowConfigId("workflowConfigId-1331048228") + * CommitWorkspaceChangesRequest request = + * CommitWorkspaceChangesRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setAuthor(CommitAuthor.newBuilder().build()) + * .setCommitMessage("commitMessage2039804624") + * .addAllPaths(new ArrayList()) * .build(); - * WorkflowConfig response = dataformClient.createWorkflowConfig(request); + * CommitWorkspaceChangesResponse response = dataformClient.commitWorkspaceChanges(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest request) { - return createWorkflowConfigCallable().call(request); - } - + public final CommitWorkspaceChangesResponse commitWorkspaceChanges( + CommitWorkspaceChangesRequest request) { + return commitWorkspaceChangesCallable().call(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowConfig in a given Repository. + * Applies a Git commit for uncommitted files in a Workspace. * *

            Sample code: * @@ -5598,32 +5676,30 @@ public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkflowConfigRequest request = - * CreateWorkflowConfigRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) - * .setWorkflowConfigId("workflowConfigId-1331048228") + * CommitWorkspaceChangesRequest request = + * CommitWorkspaceChangesRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setAuthor(CommitAuthor.newBuilder().build()) + * .setCommitMessage("commitMessage2039804624") + * .addAllPaths(new ArrayList()) * .build(); - * ApiFuture future = - * dataformClient.createWorkflowConfigCallable().futureCall(request); + * ApiFuture future = + * dataformClient.commitWorkspaceChangesCallable().futureCall(request); * // Do something. - * WorkflowConfig response = future.get(); + * CommitWorkspaceChangesResponse response = future.get(); * } * } */ - public final UnaryCallable - createWorkflowConfigCallable() { - return stub.createWorkflowConfigCallable(); + public final UnaryCallable + commitWorkspaceChangesCallable() { + return stub.commitWorkspaceChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single WorkflowConfig. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Performs a Git reset for uncommitted files in a Workspace. * *

            Sample code: * @@ -5634,35 +5710,29 @@ public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * WorkflowConfig response = dataformClient.updateWorkflowConfig(workflowConfig, updateMask); + * ResetWorkspaceChangesRequest request = + * ResetWorkspaceChangesRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .addAllPaths(new ArrayList()) + * .setClean(true) + * .build(); + * ResetWorkspaceChangesResponse response = dataformClient.resetWorkspaceChanges(request); * } * } * - * @param workflowConfig Required. The workflow config to update. - * @param updateMask Optional. Specifies the fields to be updated in the workflow config. If left - * unset, all fields will be updated. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig updateWorkflowConfig( - WorkflowConfig workflowConfig, FieldMask updateMask) { - UpdateWorkflowConfigRequest request = - UpdateWorkflowConfigRequest.newBuilder() - .setWorkflowConfig(workflowConfig) - .setUpdateMask(updateMask) - .build(); - return updateWorkflowConfig(request); + public final ResetWorkspaceChangesResponse resetWorkspaceChanges( + ResetWorkspaceChangesRequest request) { + return resetWorkspaceChangesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single WorkflowConfig. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Performs a Git reset for uncommitted files in a Workspace. * *

            Sample code: * @@ -5673,30 +5743,29 @@ public final WorkflowConfig updateWorkflowConfig( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * UpdateWorkflowConfigRequest request = - * UpdateWorkflowConfigRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) + * ResetWorkspaceChangesRequest request = + * ResetWorkspaceChangesRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .addAllPaths(new ArrayList()) + * .setClean(true) * .build(); - * WorkflowConfig response = dataformClient.updateWorkflowConfig(request); + * ApiFuture future = + * dataformClient.resetWorkspaceChangesCallable().futureCall(request); + * // Do something. + * ResetWorkspaceChangesResponse response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest request) { - return updateWorkflowConfigCallable().call(request); + public final UnaryCallable + resetWorkspaceChangesCallable() { + return stub.resetWorkspaceChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single WorkflowConfig. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Fetches Git diff for an uncommitted file in a Workspace. * *

            Sample code: * @@ -5707,26 +5776,27 @@ public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * UpdateWorkflowConfigRequest request = - * UpdateWorkflowConfigRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) + * FetchFileDiffRequest request = + * FetchFileDiffRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") * .build(); - * ApiFuture future = - * dataformClient.updateWorkflowConfigCallable().futureCall(request); - * // Do something. - * WorkflowConfig response = future.get(); + * FetchFileDiffResponse response = dataformClient.fetchFileDiff(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - updateWorkflowConfigCallable() { - return stub.updateWorkflowConfigCallable(); + public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { + return fetchFileDiffCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowConfig. + * Fetches Git diff for an uncommitted file in a Workspace. * *

            Sample code: * @@ -5737,26 +5807,27 @@ public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkflowConfigName name = - * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); - * dataformClient.deleteWorkflowConfig(name); + * FetchFileDiffRequest request = + * FetchFileDiffRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * ApiFuture future = + * dataformClient.fetchFileDiffCallable().futureCall(request); + * // Do something. + * FetchFileDiffResponse response = future.get(); * } * } - * - * @param name Required. The workflow config's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowConfig(WorkflowConfigName name) { - DeleteWorkflowConfigRequest request = - DeleteWorkflowConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteWorkflowConfig(request); + public final UnaryCallable fetchFileDiffCallable() { + return stub.fetchFileDiffCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowConfig. + * Returns the contents of a given Workspace directory. * *

            Sample code: * @@ -5767,25 +5838,33 @@ public final void deleteWorkflowConfig(WorkflowConfigName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") - * .toString(); - * dataformClient.deleteWorkflowConfig(name); + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setView(DirectoryContentsView.forNumber(0)) + * .build(); + * for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The workflow config's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowConfig(String name) { - DeleteWorkflowConfigRequest request = - DeleteWorkflowConfigRequest.newBuilder().setName(name).build(); - deleteWorkflowConfig(request); + public final QueryDirectoryContentsPagedResponse queryDirectoryContents( + QueryDirectoryContentsRequest request) { + return queryDirectoryContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowConfig. + * Returns the contents of a given Workspace directory. * *

            Sample code: * @@ -5796,27 +5875,33 @@ public final void deleteWorkflowConfig(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkflowConfigRequest request = - * DeleteWorkflowConfigRequest.newBuilder() - * .setName( - * WorkflowConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setView(DirectoryContentsView.forNumber(0)) * .build(); - * dataformClient.deleteWorkflowConfig(request); + * ApiFuture future = + * dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); + * // Do something. + * for (DirectoryEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowConfig(DeleteWorkflowConfigRequest request) { - deleteWorkflowConfigCallable().call(request); + public final UnaryCallable + queryDirectoryContentsPagedCallable() { + return stub.queryDirectoryContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowConfig. + * Returns the contents of a given Workspace directory. * *

            Sample code: * @@ -5827,26 +5912,40 @@ public final void deleteWorkflowConfig(DeleteWorkflowConfigRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkflowConfigRequest request = - * DeleteWorkflowConfigRequest.newBuilder() - * .setName( - * WorkflowConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setView(DirectoryContentsView.forNumber(0)) * .build(); - * ApiFuture future = dataformClient.deleteWorkflowConfigCallable().futureCall(request); - * // Do something. - * future.get(); + * while (true) { + * QueryDirectoryContentsResponse response = + * dataformClient.queryDirectoryContentsCallable().call(request); + * for (DirectoryEntry element : response.getDirectoryEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable deleteWorkflowConfigCallable() { - return stub.deleteWorkflowConfigCallable(); + public final UnaryCallable + queryDirectoryContentsCallable() { + return stub.queryDirectoryContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowInvocations in a given Repository. + * Finds the contents of a given Workspace directory by filter. * *

            Sample code: * @@ -5857,80 +5956,16 @@ public final UnaryCallable deleteWorkflowCon * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (WorkflowInvocation element : - * dataformClient.listWorkflowInvocations(parent).iterateAll()) { - * // doThingsWith(element); - * } - * } - * } - * - * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(RepositoryName parent) { - ListWorkflowInvocationsRequest request = - ListWorkflowInvocationsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowInvocations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations in a given Repository. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (DataformClient dataformClient = DataformClient.create()) {
            -   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
            -   *   for (WorkflowInvocation element :
            -   *       dataformClient.listWorkflowInvocations(parent).iterateAll()) {
            -   *     // doThingsWith(element);
            -   *   }
            -   * }
            -   * }
            - * - * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(String parent) { - ListWorkflowInvocationsRequest request = - ListWorkflowInvocationsRequest.newBuilder().setParent(parent).build(); - return listWorkflowInvocations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations in a given Repository. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (DataformClient dataformClient = DataformClient.create()) {
            -   *   ListWorkflowInvocationsRequest request =
            -   *       ListWorkflowInvocationsRequest.newBuilder()
            -   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *   SearchFilesRequest request =
            +   *       SearchFilesRequest.newBuilder()
            +   *           .setWorkspace(
            +   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
            +   *                   .toString())
                *           .setPageSize(883849137)
                *           .setPageToken("pageToken873572522")
            -   *           .setOrderBy("orderBy-1207110587")
                *           .setFilter("filter-1274492040")
                *           .build();
            -   *   for (WorkflowInvocation element :
            -   *       dataformClient.listWorkflowInvocations(request).iterateAll()) {
            +   *   for (SearchResult element : dataformClient.searchFiles(request).iterateAll()) {
                *     // doThingsWith(element);
                *   }
                * }
            @@ -5939,14 +5974,13 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(String
                * @param request The request object containing all of the parameters for the API call.
                * @throws com.google.api.gax.rpc.ApiException if the remote call fails
                */
            -  public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(
            -      ListWorkflowInvocationsRequest request) {
            -    return listWorkflowInvocationsPagedCallable().call(request);
            +  public final SearchFilesPagedResponse searchFiles(SearchFilesRequest request) {
            +    return searchFilesPagedCallable().call(request);
               }
             
               // AUTO-GENERATED DOCUMENTATION AND METHOD.
               /**
            -   * Lists WorkflowInvocations in a given Repository.
            +   * Finds the contents of a given Workspace directory by filter.
                *
                * 

            Sample code: * @@ -5957,31 +5991,32 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkflowInvocationsRequest request = - * ListWorkflowInvocationsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * SearchFilesRequest request = + * SearchFilesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.listWorkflowInvocationsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.searchFilesPagedCallable().futureCall(request); * // Do something. - * for (WorkflowInvocation element : future.get().iterateAll()) { + * for (SearchResult element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

            */ - public final UnaryCallable - listWorkflowInvocationsPagedCallable() { - return stub.listWorkflowInvocationsPagedCallable(); + public final UnaryCallable + searchFilesPagedCallable() { + return stub.searchFilesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowInvocations in a given Repository. + * Finds the contents of a given Workspace directory by filter. * *

            Sample code: * @@ -5992,18 +6027,18 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListWorkflowInvocationsRequest request = - * ListWorkflowInvocationsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * SearchFilesRequest request = + * SearchFilesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListWorkflowInvocationsResponse response = - * dataformClient.listWorkflowInvocationsCallable().call(request); - * for (WorkflowInvocation element : response.getWorkflowInvocationsList()) { + * SearchFilesResponse response = dataformClient.searchFilesCallable().call(request); + * for (SearchResult element : response.getSearchResultsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -6016,14 +6051,13 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * } * } */ - public final UnaryCallable - listWorkflowInvocationsCallable() { - return stub.listWorkflowInvocationsCallable(); + public final UnaryCallable searchFilesCallable() { + return stub.searchFilesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowInvocation. + * Creates a directory inside a Workspace. * *

            Sample code: * @@ -6034,27 +6068,27 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkflowInvocationName name = - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - * WorkflowInvocation response = dataformClient.getWorkflowInvocation(name); + * MakeDirectoryRequest request = + * MakeDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * MakeDirectoryResponse response = dataformClient.makeDirectory(request); * } * } * - * @param name Required. The workflow invocation resource's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName name) { - GetWorkflowInvocationRequest request = - GetWorkflowInvocationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowInvocation(request); + public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { + return makeDirectoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowInvocation. + * Creates a directory inside a Workspace. * *

            Sample code: * @@ -6065,26 +6099,27 @@ public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName nam * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString(); - * WorkflowInvocation response = dataformClient.getWorkflowInvocation(name); + * MakeDirectoryRequest request = + * MakeDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * ApiFuture future = + * dataformClient.makeDirectoryCallable().futureCall(request); + * // Do something. + * MakeDirectoryResponse response = future.get(); * } * } - * - * @param name Required. The workflow invocation resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation getWorkflowInvocation(String name) { - GetWorkflowInvocationRequest request = - GetWorkflowInvocationRequest.newBuilder().setName(name).build(); - return getWorkflowInvocation(request); + public final UnaryCallable makeDirectoryCallable() { + return stub.makeDirectoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowInvocation. + * Deletes a directory (inside a Workspace) and all of its contents. * *

            Sample code: * @@ -6095,27 +6130,27 @@ public final WorkflowInvocation getWorkflowInvocation(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetWorkflowInvocationRequest request = - * GetWorkflowInvocationRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * RemoveDirectoryRequest request = + * RemoveDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") * .build(); - * WorkflowInvocation response = dataformClient.getWorkflowInvocation(request); + * RemoveDirectoryResponse response = dataformClient.removeDirectory(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationRequest request) { - return getWorkflowInvocationCallable().call(request); + public final RemoveDirectoryResponse removeDirectory(RemoveDirectoryRequest request) { + return removeDirectoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowInvocation. + * Deletes a directory (inside a Workspace) and all of its contents. * *

            Sample code: * @@ -6126,28 +6161,28 @@ public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationReque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetWorkflowInvocationRequest request = - * GetWorkflowInvocationRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * RemoveDirectoryRequest request = + * RemoveDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") * .build(); - * ApiFuture future = - * dataformClient.getWorkflowInvocationCallable().futureCall(request); + * ApiFuture future = + * dataformClient.removeDirectoryCallable().futureCall(request); * // Do something. - * WorkflowInvocation response = future.get(); + * RemoveDirectoryResponse response = future.get(); * } * } */ - public final UnaryCallable - getWorkflowInvocationCallable() { - return stub.getWorkflowInvocationCallable(); + public final UnaryCallable + removeDirectoryCallable() { + return stub.removeDirectoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowInvocation in a given Repository. + * Moves a directory (inside a Workspace), and all of its contents, to a new location. * *

            Sample code: * @@ -6158,31 +6193,28 @@ public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationReque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - * WorkflowInvocation response = - * dataformClient.createWorkflowInvocation(parent, workflowInvocation); + * MoveDirectoryRequest request = + * MoveDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setNewPath("newPath1845080549") + * .build(); + * MoveDirectoryResponse response = dataformClient.moveDirectory(request); * } * } * - * @param parent Required. The repository in which to create the workflow invocation. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param workflowInvocation Required. The workflow invocation resource to create. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation createWorkflowInvocation( - RepositoryName parent, WorkflowInvocation workflowInvocation) { - CreateWorkflowInvocationRequest request = - CreateWorkflowInvocationRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setWorkflowInvocation(workflowInvocation) - .build(); - return createWorkflowInvocation(request); + public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { + return moveDirectoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowInvocation in a given Repository. + * Moves a directory (inside a Workspace), and all of its contents, to a new location. * *

            Sample code: * @@ -6193,31 +6225,28 @@ public final WorkflowInvocation createWorkflowInvocation( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - * WorkflowInvocation response = - * dataformClient.createWorkflowInvocation(parent, workflowInvocation); + * MoveDirectoryRequest request = + * MoveDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setNewPath("newPath1845080549") + * .build(); + * ApiFuture future = + * dataformClient.moveDirectoryCallable().futureCall(request); + * // Do something. + * MoveDirectoryResponse response = future.get(); * } * } - * - * @param parent Required. The repository in which to create the workflow invocation. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param workflowInvocation Required. The workflow invocation resource to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation createWorkflowInvocation( - String parent, WorkflowInvocation workflowInvocation) { - CreateWorkflowInvocationRequest request = - CreateWorkflowInvocationRequest.newBuilder() - .setParent(parent) - .setWorkflowInvocation(workflowInvocation) - .build(); - return createWorkflowInvocation(request); + public final UnaryCallable moveDirectoryCallable() { + return stub.moveDirectoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowInvocation in a given Repository. + * Returns the contents of a file (inside a Workspace). * *

            Sample code: * @@ -6228,26 +6257,28 @@ public final WorkflowInvocation createWorkflowInvocation( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkflowInvocationRequest request = - * CreateWorkflowInvocationRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkflowInvocation(WorkflowInvocation.newBuilder().build()) + * ReadFileRequest request = + * ReadFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setRevision("revision-260786213") * .build(); - * WorkflowInvocation response = dataformClient.createWorkflowInvocation(request); + * ReadFileResponse response = dataformClient.readFile(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation createWorkflowInvocation( - CreateWorkflowInvocationRequest request) { - return createWorkflowInvocationCallable().call(request); + public final ReadFileResponse readFile(ReadFileRequest request) { + return readFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowInvocation in a given Repository. + * Returns the contents of a file (inside a Workspace). * *

            Sample code: * @@ -6258,26 +6289,27 @@ public final WorkflowInvocation createWorkflowInvocation( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkflowInvocationRequest request = - * CreateWorkflowInvocationRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkflowInvocation(WorkflowInvocation.newBuilder().build()) + * ReadFileRequest request = + * ReadFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setRevision("revision-260786213") * .build(); - * ApiFuture future = - * dataformClient.createWorkflowInvocationCallable().futureCall(request); + * ApiFuture future = dataformClient.readFileCallable().futureCall(request); * // Do something. - * WorkflowInvocation response = future.get(); + * ReadFileResponse response = future.get(); * } * } */ - public final UnaryCallable - createWorkflowInvocationCallable() { - return stub.createWorkflowInvocationCallable(); + public final UnaryCallable readFileCallable() { + return stub.readFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowInvocation. + * Deletes a file (inside a Workspace). * *

            Sample code: * @@ -6288,27 +6320,27 @@ public final WorkflowInvocation createWorkflowInvocation( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * WorkflowInvocationName name = - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - * dataformClient.deleteWorkflowInvocation(name); + * RemoveFileRequest request = + * RemoveFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * RemoveFileResponse response = dataformClient.removeFile(request); * } * } * - * @param name Required. The workflow invocation resource's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowInvocation(WorkflowInvocationName name) { - DeleteWorkflowInvocationRequest request = - DeleteWorkflowInvocationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteWorkflowInvocation(request); + public final RemoveFileResponse removeFile(RemoveFileRequest request) { + return removeFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowInvocation. + * Deletes a file (inside a Workspace). * *

            Sample code: * @@ -6319,26 +6351,27 @@ public final void deleteWorkflowInvocation(WorkflowInvocationName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString(); - * dataformClient.deleteWorkflowInvocation(name); + * RemoveFileRequest request = + * RemoveFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * ApiFuture future = + * dataformClient.removeFileCallable().futureCall(request); + * // Do something. + * RemoveFileResponse response = future.get(); * } * } - * - * @param name Required. The workflow invocation resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowInvocation(String name) { - DeleteWorkflowInvocationRequest request = - DeleteWorkflowInvocationRequest.newBuilder().setName(name).build(); - deleteWorkflowInvocation(request); + public final UnaryCallable removeFileCallable() { + return stub.removeFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowInvocation. + * Moves a file (inside a Workspace) to a new location. * *

            Sample code: * @@ -6349,27 +6382,28 @@ public final void deleteWorkflowInvocation(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkflowInvocationRequest request = - * DeleteWorkflowInvocationRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * MoveFileRequest request = + * MoveFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") + * .setNewPath("newPath1845080549") * .build(); - * dataformClient.deleteWorkflowInvocation(request); + * MoveFileResponse response = dataformClient.moveFile(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowInvocation(DeleteWorkflowInvocationRequest request) { - deleteWorkflowInvocationCallable().call(request); + public final MoveFileResponse moveFile(MoveFileRequest request) { + return moveFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowInvocation. + * Moves a file (inside a Workspace) to a new location. * *

            Sample code: * @@ -6380,28 +6414,27 @@ public final void deleteWorkflowInvocation(DeleteWorkflowInvocationRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkflowInvocationRequest request = - * DeleteWorkflowInvocationRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * MoveFileRequest request = + * MoveFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") + * .setNewPath("newPath1845080549") * .build(); - * ApiFuture future = - * dataformClient.deleteWorkflowInvocationCallable().futureCall(request); + * ApiFuture future = dataformClient.moveFileCallable().futureCall(request); * // Do something. - * future.get(); + * MoveFileResponse response = future.get(); * } * } */ - public final UnaryCallable - deleteWorkflowInvocationCallable() { - return stub.deleteWorkflowInvocationCallable(); + public final UnaryCallable moveFileCallable() { + return stub.moveFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Requests cancellation of a running WorkflowInvocation. + * Writes to a file (inside a Workspace). * *

            Sample code: * @@ -6412,28 +6445,28 @@ public final void deleteWorkflowInvocation(DeleteWorkflowInvocationRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CancelWorkflowInvocationRequest request = - * CancelWorkflowInvocationRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * WriteFileRequest request = + * WriteFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") + * .setContents(ByteString.EMPTY) * .build(); - * CancelWorkflowInvocationResponse response = dataformClient.cancelWorkflowInvocation(request); + * WriteFileResponse response = dataformClient.writeFile(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CancelWorkflowInvocationResponse cancelWorkflowInvocation( - CancelWorkflowInvocationRequest request) { - return cancelWorkflowInvocationCallable().call(request); + public final WriteFileResponse writeFile(WriteFileRequest request) { + return writeFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Requests cancellation of a running WorkflowInvocation. + * Writes to a file (inside a Workspace). * *

            Sample code: * @@ -6444,28 +6477,27 @@ public final CancelWorkflowInvocationResponse cancelWorkflowInvocation( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * CancelWorkflowInvocationRequest request = - * CancelWorkflowInvocationRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * WriteFileRequest request = + * WriteFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") + * .setContents(ByteString.EMPTY) * .build(); - * ApiFuture future = - * dataformClient.cancelWorkflowInvocationCallable().futureCall(request); + * ApiFuture future = dataformClient.writeFileCallable().futureCall(request); * // Do something. - * CancelWorkflowInvocationResponse response = future.get(); + * WriteFileResponse response = future.get(); * } * } */ - public final UnaryCallable - cancelWorkflowInvocationCallable() { - return stub.cancelWorkflowInvocationCallable(); + public final UnaryCallable writeFileCallable() { + return stub.writeFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * Lists ReleaseConfigs in a given Repository. * *

            Sample code: * @@ -6476,33 +6508,28 @@ public final CancelWorkflowInvocationResponse cancelWorkflowInvocation( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryWorkflowInvocationActionsRequest request = - * QueryWorkflowInvocationActionsRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (WorkflowInvocationAction element : - * dataformClient.queryWorkflowInvocationActions(request).iterateAll()) { + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The repository in which to list release configs. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocationActions( - QueryWorkflowInvocationActionsRequest request) { - return queryWorkflowInvocationActionsPagedCallable().call(request); + public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName parent) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listReleaseConfigs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * Lists ReleaseConfigs in a given Repository. * *

            Sample code: * @@ -6513,33 +6540,26 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryWorkflowInvocationActionsRequest request = - * QueryWorkflowInvocationActionsRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * dataformClient.queryWorkflowInvocationActionsPagedCallable().futureCall(request); - * // Do something. - * for (WorkflowInvocationAction element : future.get().iterateAll()) { + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { * // doThingsWith(element); * } * } * } + * + * @param parent Required. The repository in which to list release configs. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsPagedCallable() { - return stub.queryWorkflowInvocationActionsPagedCallable(); + public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder().setParent(parent).build(); + return listReleaseConfigs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * Lists ReleaseConfigs in a given Repository. * *

            Sample code: * @@ -6550,40 +6570,29 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * QueryWorkflowInvocationActionsRequest request = - * QueryWorkflowInvocationActionsRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString()) + * ListReleaseConfigsRequest request = + * ListReleaseConfigsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * while (true) { - * QueryWorkflowInvocationActionsResponse response = - * dataformClient.queryWorkflowInvocationActionsCallable().call(request); - * for (WorkflowInvocationAction element : response.getWorkflowInvocationActionsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } + * for (ReleaseConfig element : dataformClient.listReleaseConfigs(request).iterateAll()) { + * // doThingsWith(element); * } * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsCallable() { - return stub.queryWorkflowInvocationActionsCallable(); + public final ListReleaseConfigsPagedResponse listReleaseConfigs( + ListReleaseConfigsRequest request) { + return listReleaseConfigsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get default config for a given project and location. + * Lists ReleaseConfigs in a given Repository. * *

            Sample code: * @@ -6594,23 +6603,29 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); - * Config response = dataformClient.getConfig(name); + * ListReleaseConfigsRequest request = + * ListReleaseConfigsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture future = + * dataformClient.listReleaseConfigsPagedCallable().futureCall(request); + * // Do something. + * for (ReleaseConfig element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param name Required. The config name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(ConfigName name) { - GetConfigRequest request = - GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getConfig(request); + public final UnaryCallable + listReleaseConfigsPagedCallable() { + return stub.listReleaseConfigsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get default config for a given project and location. + * Lists ReleaseConfigs in a given Repository. * *

            Sample code: * @@ -6621,22 +6636,36 @@ public final Config getConfig(ConfigName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString(); - * Config response = dataformClient.getConfig(name); + * ListReleaseConfigsRequest request = + * ListReleaseConfigsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListReleaseConfigsResponse response = + * dataformClient.listReleaseConfigsCallable().call(request); + * for (ReleaseConfig element : response.getReleaseConfigsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param name Required. The config name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(String name) { - GetConfigRequest request = GetConfigRequest.newBuilder().setName(name).build(); - return getConfig(request); + public final UnaryCallable + listReleaseConfigsCallable() { + return stub.listReleaseConfigsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get default config for a given project and location. + * Fetches a single ReleaseConfig. * *

            Sample code: * @@ -6647,24 +6676,24 @@ public final Config getConfig(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetConfigRequest request = - * GetConfigRequest.newBuilder() - * .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) - * .build(); - * Config response = dataformClient.getConfig(request); + * ReleaseConfigName name = + * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + * ReleaseConfig response = dataformClient.getReleaseConfig(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(GetConfigRequest request) { - return getConfigCallable().call(request); + public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { + GetReleaseConfigRequest request = + GetReleaseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get default config for a given project and location. + * Fetches a single ReleaseConfig. * *

            Sample code: * @@ -6675,28 +6704,24 @@ public final Config getConfig(GetConfigRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetConfigRequest request = - * GetConfigRequest.newBuilder() - * .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) - * .build(); - * ApiFuture future = dataformClient.getConfigCallable().futureCall(request); - * // Do something. - * Config response = future.get(); + * String name = + * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * .toString(); + * ReleaseConfig response = dataformClient.getReleaseConfig(name); * } * } + * + * @param name Required. The release config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getConfigCallable() { - return stub.getConfigCallable(); + public final ReleaseConfig getReleaseConfig(String name) { + GetReleaseConfigRequest request = GetReleaseConfigRequest.newBuilder().setName(name).build(); + return getReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update default config for a given project and location. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Fetches a single ReleaseConfig. * *

            Sample code: * @@ -6707,30 +6732,27 @@ public final UnaryCallable getConfigCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * Config config = Config.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Config response = dataformClient.updateConfig(config, updateMask); + * GetReleaseConfigRequest request = + * GetReleaseConfigRequest.newBuilder() + * .setName( + * ReleaseConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * .toString()) + * .build(); + * ReleaseConfig response = dataformClient.getReleaseConfig(request); * } * } * - * @param config Required. The config to update. - * @param updateMask Optional. Specifies the fields to be updated in the config. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config updateConfig(Config config, FieldMask updateMask) { - UpdateConfigRequest request = - UpdateConfigRequest.newBuilder().setConfig(config).setUpdateMask(updateMask).build(); - return updateConfig(request); + public final ReleaseConfig getReleaseConfig(GetReleaseConfigRequest request) { + return getReleaseConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update default config for a given project and location. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Fetches a single ReleaseConfig. * *

            Sample code: * @@ -6741,30 +6763,27 @@ public final Config updateConfig(Config config, FieldMask updateMask) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * UpdateConfigRequest request = - * UpdateConfigRequest.newBuilder() - * .setConfig(Config.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetReleaseConfigRequest request = + * GetReleaseConfigRequest.newBuilder() + * .setName( + * ReleaseConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * .toString()) * .build(); - * Config response = dataformClient.updateConfig(request); + * ApiFuture future = + * dataformClient.getReleaseConfigCallable().futureCall(request); + * // Do something. + * ReleaseConfig response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config updateConfig(UpdateConfigRequest request) { - return updateConfigCallable().call(request); + public final UnaryCallable getReleaseConfigCallable() { + return stub.getReleaseConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update default config for a given project and location. - * - *

            **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Creates a new ReleaseConfig in a given Repository. * *

            Sample code: * @@ -6775,24 +6794,35 @@ public final Config updateConfig(UpdateConfigRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * UpdateConfigRequest request = - * UpdateConfigRequest.newBuilder() - * .setConfig(Config.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ApiFuture future = dataformClient.updateConfigCallable().futureCall(request); - * // Do something. - * Config response = future.get(); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + * String releaseConfigId = "releaseConfigId1350457636"; + * ReleaseConfig response = + * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); * } * } + * + * @param parent Required. The repository in which to create the release config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param releaseConfig Required. The release config to create. + * @param releaseConfigId Required. The ID to use for the release config, which will become the + * final component of the release config's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable updateConfigCallable() { - return stub.updateConfigCallable(); + public final ReleaseConfig createReleaseConfig( + RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { + CreateReleaseConfigRequest request = + CreateReleaseConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setReleaseConfig(releaseConfig) + .setReleaseConfigId(releaseConfigId) + .build(); + return createReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new ReleaseConfig in a given Repository. * *

            Sample code: * @@ -6803,29 +6833,35 @@ public final UnaryCallable updateConfigCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (Location element : dataformClient.listLocations(request).iterateAll()) { - * // doThingsWith(element); - * } + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + * String releaseConfigId = "releaseConfigId1350457636"; + * ReleaseConfig response = + * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The repository in which to create the release config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param releaseConfig Required. The release config to create. + * @param releaseConfigId Required. The ID to use for the release config, which will become the + * final component of the release config's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final ReleaseConfig createReleaseConfig( + String parent, ReleaseConfig releaseConfig, String releaseConfigId) { + CreateReleaseConfigRequest request = + CreateReleaseConfigRequest.newBuilder() + .setParent(parent) + .setReleaseConfig(releaseConfig) + .setReleaseConfigId(releaseConfigId) + .build(); + return createReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new ReleaseConfig in a given Repository. * *

            Sample code: * @@ -6836,29 +6872,26 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateReleaseConfigRequest request = + * CreateReleaseConfigRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * .setReleaseConfigId("releaseConfigId1350457636") * .build(); - * ApiFuture future = dataformClient.listLocationsPagedCallable().futureCall(request); - * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * ReleaseConfig response = dataformClient.createReleaseConfig(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest request) { + return createReleaseConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new ReleaseConfig in a given Repository. * *

            Sample code: * @@ -6869,35 +6902,32 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateReleaseConfigRequest request = + * CreateReleaseConfigRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * .setReleaseConfigId("releaseConfigId1350457636") * .build(); - * while (true) { - * ListLocationsResponse response = dataformClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * dataformClient.createReleaseConfigCallable().futureCall(request); + * // Do something. + * ReleaseConfig response = future.get(); * } * } */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final UnaryCallable + createReleaseConfigCallable() { + return stub.createReleaseConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Updates a single ReleaseConfig. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

            Sample code: * @@ -6908,21 +6938,35 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = dataformClient.getLocation(request); + * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * ReleaseConfig response = dataformClient.updateReleaseConfig(releaseConfig, updateMask); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param releaseConfig Required. The release config to update. + * @param updateMask Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final ReleaseConfig updateReleaseConfig( + ReleaseConfig releaseConfig, FieldMask updateMask) { + UpdateReleaseConfigRequest request = + UpdateReleaseConfigRequest.newBuilder() + .setReleaseConfig(releaseConfig) + .setUpdateMask(updateMask) + .build(); + return updateReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Updates a single ReleaseConfig. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

            Sample code: * @@ -6933,22 +6977,30 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = dataformClient.getLocationCallable().futureCall(request); - * // Do something. - * Location response = future.get(); + * UpdateReleaseConfigRequest request = + * UpdateReleaseConfigRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * .build(); + * ReleaseConfig response = dataformClient.updateReleaseConfig(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest request) { + return updateReleaseConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. + * Updates a single ReleaseConfig. * - *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

            Sample code: * @@ -6959,28 +7011,56 @@ public final UnaryCallable getLocationCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPolicy(Policy.newBuilder().build()) + * UpdateReleaseConfigRequest request = + * UpdateReleaseConfigRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) + * .setReleaseConfig(ReleaseConfig.newBuilder().build()) * .build(); - * Policy response = dataformClient.setIamPolicy(request); + * ApiFuture future = + * dataformClient.updateReleaseConfigCallable().futureCall(request); + * // Do something. + * ReleaseConfig response = future.get(); + * } + * } + */ + public final UnaryCallable + updateReleaseConfigCallable() { + return stub.updateReleaseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ReleaseConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ReleaseConfigName name =
            +   *       ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]");
            +   *   dataformClient.deleteReleaseConfig(name);
                * }
                * }
            * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final void deleteReleaseConfig(ReleaseConfigName name) { + DeleteReleaseConfigRequest request = + DeleteReleaseConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Deletes a single ReleaseConfig. * *

            Sample code: * @@ -6991,26 +7071,25 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ApiFuture future = dataformClient.setIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * String name = + * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * .toString(); + * dataformClient.deleteReleaseConfig(name); * } * } + * + * @param name Required. The release config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final void deleteReleaseConfig(String name) { + DeleteReleaseConfigRequest request = + DeleteReleaseConfigRequest.newBuilder().setName(name).build(); + deleteReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * Deletes a single ReleaseConfig. * *

            Sample code: * @@ -7021,26 +7100,27 @@ public final UnaryCallable setIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * DeleteReleaseConfigRequest request = + * DeleteReleaseConfigRequest.newBuilder() + * .setName( + * ReleaseConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * .toString()) * .build(); - * Policy response = dataformClient.getIamPolicy(request); + * dataformClient.deleteReleaseConfig(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final void deleteReleaseConfig(DeleteReleaseConfigRequest request) { + deleteReleaseConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * Deletes a single ReleaseConfig. * *

            Sample code: * @@ -7051,29 +7131,26 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * DeleteReleaseConfigRequest request = + * DeleteReleaseConfigRequest.newBuilder() + * .setName( + * ReleaseConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * .toString()) * .build(); - * ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request); + * ApiFuture future = dataformClient.deleteReleaseConfigCallable().futureCall(request); * // Do something. - * Policy response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); + public final UnaryCallable deleteReleaseConfigCallable() { + return stub.deleteReleaseConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

            Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * Lists CompilationResults in a given Repository. * *

            Sample code: * @@ -7084,30 +7161,28 @@ public final UnaryCallable getIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .addAllPermissions(new ArrayList()) - * .build(); - * TestIamPermissionsResponse response = dataformClient.testIamPermissions(request); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The repository in which to list compilation results. Must be in the + * format `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); + public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) { + ListCompilationResultsRequest request = + ListCompilationResultsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCompilationResults(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

            Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * Lists CompilationResults in a given Repository. * *

            Sample code: * @@ -7118,21 +7193,2555 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .addAllPermissions(new ArrayList()) - * .build(); - * ApiFuture future = - * dataformClient.testIamPermissionsCallable().futureCall(request); - * // Do something. - * TestIamPermissionsResponse response = future.get(); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. The repository in which to list compilation results. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompilationResultsPagedResponse listCompilationResults(String parent) { + ListCompilationResultsRequest request = + ListCompilationResultsRequest.newBuilder().setParent(parent).build(); + return listCompilationResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListCompilationResultsRequest request =
            +   *       ListCompilationResultsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   for (CompilationResult element :
            +   *       dataformClient.listCompilationResults(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompilationResultsPagedResponse listCompilationResults( + ListCompilationResultsRequest request) { + return listCompilationResultsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListCompilationResultsRequest request =
            +   *       ListCompilationResultsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.listCompilationResultsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (CompilationResult element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listCompilationResultsPagedCallable() { + return stub.listCompilationResultsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListCompilationResultsRequest request =
            +   *       ListCompilationResultsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   while (true) {
            +   *     ListCompilationResultsResponse response =
            +   *         dataformClient.listCompilationResultsCallable().call(request);
            +   *     for (CompilationResult element : response.getCompilationResultsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listCompilationResultsCallable() { + return stub.listCompilationResultsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single CompilationResult. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CompilationResultName name =
            +   *       CompilationResultName.of(
            +   *           "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]");
            +   *   CompilationResult response = dataformClient.getCompilationResult(name);
            +   * }
            +   * }
            + * + * @param name Required. The compilation result's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult getCompilationResult(CompilationResultName name) { + GetCompilationResultRequest request = + GetCompilationResultRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCompilationResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single CompilationResult. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String name =
            +   *       CompilationResultName.of(
            +   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
            +   *           .toString();
            +   *   CompilationResult response = dataformClient.getCompilationResult(name);
            +   * }
            +   * }
            + * + * @param name Required. The compilation result's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult getCompilationResult(String name) { + GetCompilationResultRequest request = + GetCompilationResultRequest.newBuilder().setName(name).build(); + return getCompilationResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single CompilationResult. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetCompilationResultRequest request =
            +   *       GetCompilationResultRequest.newBuilder()
            +   *           .setName(
            +   *               CompilationResultName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
            +   *                   .toString())
            +   *           .build();
            +   *   CompilationResult response = dataformClient.getCompilationResult(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult getCompilationResult(GetCompilationResultRequest request) { + return getCompilationResultCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single CompilationResult. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetCompilationResultRequest request =
            +   *       GetCompilationResultRequest.newBuilder()
            +   *           .setName(
            +   *               CompilationResultName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.getCompilationResultCallable().futureCall(request);
            +   *   // Do something.
            +   *   CompilationResult response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + getCompilationResultCallable() { + return stub.getCompilationResultCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CompilationResult in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
            +   *   CompilationResult compilationResult = CompilationResult.newBuilder().build();
            +   *   CompilationResult response =
            +   *       dataformClient.createCompilationResult(parent, compilationResult);
            +   * }
            +   * }
            + * + * @param parent Required. The repository in which to create the compilation result. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param compilationResult Required. The compilation result to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult createCompilationResult( + RepositoryName parent, CompilationResult compilationResult) { + CreateCompilationResultRequest request = + CreateCompilationResultRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCompilationResult(compilationResult) + .build(); + return createCompilationResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CompilationResult in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
            +   *   CompilationResult compilationResult = CompilationResult.newBuilder().build();
            +   *   CompilationResult response =
            +   *       dataformClient.createCompilationResult(parent, compilationResult);
            +   * }
            +   * }
            + * + * @param parent Required. The repository in which to create the compilation result. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param compilationResult Required. The compilation result to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult createCompilationResult( + String parent, CompilationResult compilationResult) { + CreateCompilationResultRequest request = + CreateCompilationResultRequest.newBuilder() + .setParent(parent) + .setCompilationResult(compilationResult) + .build(); + return createCompilationResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CompilationResult in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CreateCompilationResultRequest request =
            +   *       CreateCompilationResultRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setCompilationResult(CompilationResult.newBuilder().build())
            +   *           .build();
            +   *   CompilationResult response = dataformClient.createCompilationResult(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompilationResult createCompilationResult(CreateCompilationResultRequest request) { + return createCompilationResultCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CompilationResult in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CreateCompilationResultRequest request =
            +   *       CreateCompilationResultRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setCompilationResult(CompilationResult.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.createCompilationResultCallable().futureCall(request);
            +   *   // Do something.
            +   *   CompilationResult response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createCompilationResultCallable() { + return stub.createCompilationResultCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns CompilationResultActions in a given CompilationResult. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   QueryCompilationResultActionsRequest request =
            +   *       QueryCompilationResultActionsRequest.newBuilder()
            +   *           .setName(
            +   *               CompilationResultName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
            +   *                   .toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   for (CompilationResultAction element :
            +   *       dataformClient.queryCompilationResultActions(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryCompilationResultActionsPagedResponse queryCompilationResultActions( + QueryCompilationResultActionsRequest request) { + return queryCompilationResultActionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns CompilationResultActions in a given CompilationResult. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   QueryCompilationResultActionsRequest request =
            +   *       QueryCompilationResultActionsRequest.newBuilder()
            +   *           .setName(
            +   *               CompilationResultName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
            +   *                   .toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.queryCompilationResultActionsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (CompilationResultAction element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> + queryCompilationResultActionsPagedCallable() { + return stub.queryCompilationResultActionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns CompilationResultActions in a given CompilationResult. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   QueryCompilationResultActionsRequest request =
            +   *       QueryCompilationResultActionsRequest.newBuilder()
            +   *           .setName(
            +   *               CompilationResultName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
            +   *                   .toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   while (true) {
            +   *     QueryCompilationResultActionsResponse response =
            +   *         dataformClient.queryCompilationResultActionsCallable().call(request);
            +   *     for (CompilationResultAction element : response.getCompilationResultActionsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> + queryCompilationResultActionsCallable() { + return stub.queryCompilationResultActionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowConfigs in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
            +   *   for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The repository in which to list workflow configs. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName parent) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWorkflowConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowConfigs in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
            +   *   for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The repository in which to list workflow configs. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(String parent) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder().setParent(parent).build(); + return listWorkflowConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowConfigs in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListWorkflowConfigsRequest request =
            +   *       ListWorkflowConfigsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (WorkflowConfig element : dataformClient.listWorkflowConfigs(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( + ListWorkflowConfigsRequest request) { + return listWorkflowConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowConfigs in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListWorkflowConfigsRequest request =
            +   *       ListWorkflowConfigsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.listWorkflowConfigsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (WorkflowConfig element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listWorkflowConfigsPagedCallable() { + return stub.listWorkflowConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowConfigs in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListWorkflowConfigsRequest request =
            +   *       ListWorkflowConfigsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListWorkflowConfigsResponse response =
            +   *         dataformClient.listWorkflowConfigsCallable().call(request);
            +   *     for (WorkflowConfig element : response.getWorkflowConfigsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listWorkflowConfigsCallable() { + return stub.listWorkflowConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   WorkflowConfigName name =
            +   *       WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]");
            +   *   WorkflowConfig response = dataformClient.getWorkflowConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. The workflow config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { + GetWorkflowConfigRequest request = + GetWorkflowConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String name =
            +   *       WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
            +   *           .toString();
            +   *   WorkflowConfig response = dataformClient.getWorkflowConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. The workflow config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig getWorkflowConfig(String name) { + GetWorkflowConfigRequest request = GetWorkflowConfigRequest.newBuilder().setName(name).build(); + return getWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetWorkflowConfigRequest request =
            +   *       GetWorkflowConfigRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowConfigName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
            +   *                   .toString())
            +   *           .build();
            +   *   WorkflowConfig response = dataformClient.getWorkflowConfig(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig getWorkflowConfig(GetWorkflowConfigRequest request) { + return getWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetWorkflowConfigRequest request =
            +   *       GetWorkflowConfigRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowConfigName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.getWorkflowConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   WorkflowConfig response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getWorkflowConfigCallable() { + return stub.getWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
            +   *   WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
            +   *   String workflowConfigId = "workflowConfigId-1331048228";
            +   *   WorkflowConfig response =
            +   *       dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId);
            +   * }
            +   * }
            + * + * @param parent Required. The repository in which to create the workflow config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param workflowConfig Required. The workflow config to create. + * @param workflowConfigId Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig createWorkflowConfig( + RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { + CreateWorkflowConfigRequest request = + CreateWorkflowConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkflowConfig(workflowConfig) + .setWorkflowConfigId(workflowConfigId) + .build(); + return createWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
            +   *   WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
            +   *   String workflowConfigId = "workflowConfigId-1331048228";
            +   *   WorkflowConfig response =
            +   *       dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId);
            +   * }
            +   * }
            + * + * @param parent Required. The repository in which to create the workflow config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param workflowConfig Required. The workflow config to create. + * @param workflowConfigId Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig createWorkflowConfig( + String parent, WorkflowConfig workflowConfig, String workflowConfigId) { + CreateWorkflowConfigRequest request = + CreateWorkflowConfigRequest.newBuilder() + .setParent(parent) + .setWorkflowConfig(workflowConfig) + .setWorkflowConfigId(workflowConfigId) + .build(); + return createWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CreateWorkflowConfigRequest request =
            +   *       CreateWorkflowConfigRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
            +   *           .setWorkflowConfigId("workflowConfigId-1331048228")
            +   *           .build();
            +   *   WorkflowConfig response = dataformClient.createWorkflowConfig(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest request) { + return createWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CreateWorkflowConfigRequest request =
            +   *       CreateWorkflowConfigRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
            +   *           .setWorkflowConfigId("workflowConfigId-1331048228")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.createWorkflowConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   WorkflowConfig response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createWorkflowConfigCallable() { + return stub.createWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single WorkflowConfig. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   WorkflowConfig response = dataformClient.updateWorkflowConfig(workflowConfig, updateMask);
            +   * }
            +   * }
            + * + * @param workflowConfig Required. The workflow config to update. + * @param updateMask Optional. Specifies the fields to be updated in the workflow config. If left + * unset, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig updateWorkflowConfig( + WorkflowConfig workflowConfig, FieldMask updateMask) { + UpdateWorkflowConfigRequest request = + UpdateWorkflowConfigRequest.newBuilder() + .setWorkflowConfig(workflowConfig) + .setUpdateMask(updateMask) + .build(); + return updateWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single WorkflowConfig. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   UpdateWorkflowConfigRequest request =
            +   *       UpdateWorkflowConfigRequest.newBuilder()
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
            +   *           .build();
            +   *   WorkflowConfig response = dataformClient.updateWorkflowConfig(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest request) { + return updateWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single WorkflowConfig. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   UpdateWorkflowConfigRequest request =
            +   *       UpdateWorkflowConfigRequest.newBuilder()
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.updateWorkflowConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   WorkflowConfig response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + updateWorkflowConfigCallable() { + return stub.updateWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   WorkflowConfigName name =
            +   *       WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]");
            +   *   dataformClient.deleteWorkflowConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. The workflow config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowConfig(WorkflowConfigName name) { + DeleteWorkflowConfigRequest request = + DeleteWorkflowConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String name =
            +   *       WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
            +   *           .toString();
            +   *   dataformClient.deleteWorkflowConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. The workflow config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowConfig(String name) { + DeleteWorkflowConfigRequest request = + DeleteWorkflowConfigRequest.newBuilder().setName(name).build(); + deleteWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   DeleteWorkflowConfigRequest request =
            +   *       DeleteWorkflowConfigRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowConfigName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
            +   *                   .toString())
            +   *           .build();
            +   *   dataformClient.deleteWorkflowConfig(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowConfig(DeleteWorkflowConfigRequest request) { + deleteWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowConfig. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   DeleteWorkflowConfigRequest request =
            +   *       DeleteWorkflowConfigRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowConfigName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future = dataformClient.deleteWorkflowConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable deleteWorkflowConfigCallable() { + return stub.deleteWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
            +   *   for (WorkflowInvocation element :
            +   *       dataformClient.listWorkflowInvocations(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(RepositoryName parent) { + ListWorkflowInvocationsRequest request = + ListWorkflowInvocationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWorkflowInvocations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
            +   *   for (WorkflowInvocation element :
            +   *       dataformClient.listWorkflowInvocations(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(String parent) { + ListWorkflowInvocationsRequest request = + ListWorkflowInvocationsRequest.newBuilder().setParent(parent).build(); + return listWorkflowInvocations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListWorkflowInvocationsRequest request =
            +   *       ListWorkflowInvocationsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   for (WorkflowInvocation element :
            +   *       dataformClient.listWorkflowInvocations(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( + ListWorkflowInvocationsRequest request) { + return listWorkflowInvocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListWorkflowInvocationsRequest request =
            +   *       ListWorkflowInvocationsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.listWorkflowInvocationsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (WorkflowInvocation element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listWorkflowInvocationsPagedCallable() { + return stub.listWorkflowInvocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListWorkflowInvocationsRequest request =
            +   *       ListWorkflowInvocationsRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   while (true) {
            +   *     ListWorkflowInvocationsResponse response =
            +   *         dataformClient.listWorkflowInvocationsCallable().call(request);
            +   *     for (WorkflowInvocation element : response.getWorkflowInvocationsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listWorkflowInvocationsCallable() { + return stub.listWorkflowInvocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   WorkflowInvocationName name =
            +   *       WorkflowInvocationName.of(
            +   *           "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]");
            +   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(name);
            +   * }
            +   * }
            + * + * @param name Required. The workflow invocation resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName name) { + GetWorkflowInvocationRequest request = + GetWorkflowInvocationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String name =
            +   *       WorkflowInvocationName.of(
            +   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *           .toString();
            +   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(name);
            +   * }
            +   * }
            + * + * @param name Required. The workflow invocation resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation getWorkflowInvocation(String name) { + GetWorkflowInvocationRequest request = + GetWorkflowInvocationRequest.newBuilder().setName(name).build(); + return getWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetWorkflowInvocationRequest request =
            +   *       GetWorkflowInvocationRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .build();
            +   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationRequest request) { + return getWorkflowInvocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetWorkflowInvocationRequest request =
            +   *       GetWorkflowInvocationRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.getWorkflowInvocationCallable().futureCall(request);
            +   *   // Do something.
            +   *   WorkflowInvocation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + getWorkflowInvocationCallable() { + return stub.getWorkflowInvocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowInvocation in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
            +   *   WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build();
            +   *   WorkflowInvocation response =
            +   *       dataformClient.createWorkflowInvocation(parent, workflowInvocation);
            +   * }
            +   * }
            + * + * @param parent Required. The repository in which to create the workflow invocation. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param workflowInvocation Required. The workflow invocation resource to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation createWorkflowInvocation( + RepositoryName parent, WorkflowInvocation workflowInvocation) { + CreateWorkflowInvocationRequest request = + CreateWorkflowInvocationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkflowInvocation(workflowInvocation) + .build(); + return createWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowInvocation in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
            +   *   WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build();
            +   *   WorkflowInvocation response =
            +   *       dataformClient.createWorkflowInvocation(parent, workflowInvocation);
            +   * }
            +   * }
            + * + * @param parent Required. The repository in which to create the workflow invocation. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param workflowInvocation Required. The workflow invocation resource to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation createWorkflowInvocation( + String parent, WorkflowInvocation workflowInvocation) { + CreateWorkflowInvocationRequest request = + CreateWorkflowInvocationRequest.newBuilder() + .setParent(parent) + .setWorkflowInvocation(workflowInvocation) + .build(); + return createWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowInvocation in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CreateWorkflowInvocationRequest request =
            +   *       CreateWorkflowInvocationRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setWorkflowInvocation(WorkflowInvocation.newBuilder().build())
            +   *           .build();
            +   *   WorkflowInvocation response = dataformClient.createWorkflowInvocation(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation createWorkflowInvocation( + CreateWorkflowInvocationRequest request) { + return createWorkflowInvocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowInvocation in a given Repository. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CreateWorkflowInvocationRequest request =
            +   *       CreateWorkflowInvocationRequest.newBuilder()
            +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
            +   *           .setWorkflowInvocation(WorkflowInvocation.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.createWorkflowInvocationCallable().futureCall(request);
            +   *   // Do something.
            +   *   WorkflowInvocation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createWorkflowInvocationCallable() { + return stub.createWorkflowInvocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   WorkflowInvocationName name =
            +   *       WorkflowInvocationName.of(
            +   *           "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]");
            +   *   dataformClient.deleteWorkflowInvocation(name);
            +   * }
            +   * }
            + * + * @param name Required. The workflow invocation resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowInvocation(WorkflowInvocationName name) { + DeleteWorkflowInvocationRequest request = + DeleteWorkflowInvocationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String name =
            +   *       WorkflowInvocationName.of(
            +   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *           .toString();
            +   *   dataformClient.deleteWorkflowInvocation(name);
            +   * }
            +   * }
            + * + * @param name Required. The workflow invocation resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowInvocation(String name) { + DeleteWorkflowInvocationRequest request = + DeleteWorkflowInvocationRequest.newBuilder().setName(name).build(); + deleteWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   DeleteWorkflowInvocationRequest request =
            +   *       DeleteWorkflowInvocationRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .build();
            +   *   dataformClient.deleteWorkflowInvocation(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowInvocation(DeleteWorkflowInvocationRequest request) { + deleteWorkflowInvocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   DeleteWorkflowInvocationRequest request =
            +   *       DeleteWorkflowInvocationRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.deleteWorkflowInvocationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + deleteWorkflowInvocationCallable() { + return stub.deleteWorkflowInvocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Requests cancellation of a running WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CancelWorkflowInvocationRequest request =
            +   *       CancelWorkflowInvocationRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .build();
            +   *   CancelWorkflowInvocationResponse response = dataformClient.cancelWorkflowInvocation(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CancelWorkflowInvocationResponse cancelWorkflowInvocation( + CancelWorkflowInvocationRequest request) { + return cancelWorkflowInvocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Requests cancellation of a running WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   CancelWorkflowInvocationRequest request =
            +   *       CancelWorkflowInvocationRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.cancelWorkflowInvocationCallable().futureCall(request);
            +   *   // Do something.
            +   *   CancelWorkflowInvocationResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + cancelWorkflowInvocationCallable() { + return stub.cancelWorkflowInvocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   QueryWorkflowInvocationActionsRequest request =
            +   *       QueryWorkflowInvocationActionsRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (WorkflowInvocationAction element :
            +   *       dataformClient.queryWorkflowInvocationActions(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocationActions( + QueryWorkflowInvocationActionsRequest request) { + return queryWorkflowInvocationActionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   QueryWorkflowInvocationActionsRequest request =
            +   *       QueryWorkflowInvocationActionsRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.queryWorkflowInvocationActionsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (WorkflowInvocationAction element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable< + QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> + queryWorkflowInvocationActionsPagedCallable() { + return stub.queryWorkflowInvocationActionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   QueryWorkflowInvocationActionsRequest request =
            +   *       QueryWorkflowInvocationActionsRequest.newBuilder()
            +   *           .setName(
            +   *               WorkflowInvocationName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
            +   *                   .toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     QueryWorkflowInvocationActionsResponse response =
            +   *         dataformClient.queryWorkflowInvocationActionsCallable().call(request);
            +   *     for (WorkflowInvocationAction element : response.getWorkflowInvocationActionsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable< + QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> + queryWorkflowInvocationActionsCallable() { + return stub.queryWorkflowInvocationActionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get default config for a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]");
            +   *   Config response = dataformClient.getConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. The config name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(ConfigName name) { + GetConfigRequest request = + GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get default config for a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Config response = dataformClient.getConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. The config name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(String name) { + GetConfigRequest request = GetConfigRequest.newBuilder().setName(name).build(); + return getConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get default config for a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetConfigRequest request =
            +   *       GetConfigRequest.newBuilder()
            +   *           .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .build();
            +   *   Config response = dataformClient.getConfig(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(GetConfigRequest request) { + return getConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get default config for a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetConfigRequest request =
            +   *       GetConfigRequest.newBuilder()
            +   *           .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .build();
            +   *   ApiFuture future = dataformClient.getConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   Config response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getConfigCallable() { + return stub.getConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update default config for a given project and location. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   Config config = Config.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Config response = dataformClient.updateConfig(config, updateMask);
            +   * }
            +   * }
            + * + * @param config Required. The config to update. + * @param updateMask Optional. Specifies the fields to be updated in the config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config updateConfig(Config config, FieldMask updateMask) { + UpdateConfigRequest request = + UpdateConfigRequest.newBuilder().setConfig(config).setUpdateMask(updateMask).build(); + return updateConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update default config for a given project and location. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   UpdateConfigRequest request =
            +   *       UpdateConfigRequest.newBuilder()
            +   *           .setConfig(Config.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   Config response = dataformClient.updateConfig(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config updateConfig(UpdateConfigRequest request) { + return updateConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update default config for a given project and location. + * + *

            **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   UpdateConfigRequest request =
            +   *       UpdateConfigRequest.newBuilder()
            +   *           .setConfig(Config.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = dataformClient.updateConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   Config response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable updateConfigCallable() { + return stub.updateConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]");
            +   *   Policy response = dataformClient.getIamPolicy(resource);
            +   * }
            +   * }
            + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(ResourceName resource) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   String resource =
            +   *       CompilationResultName.of(
            +   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
            +   *           .toString();
            +   *   Policy response = dataformClient.getIamPolicy(resource);
            +   * }
            +   * }
            + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetIamPolicyRequest request =
            +   *       GetIamPolicyRequest.newBuilder()
            +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
            +   *           .setOptions(GetPolicyOptions.newBuilder().build())
            +   *           .build();
            +   *   Policy response = dataformClient.getIamPolicy(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetIamPolicyRequest request =
            +   *       GetIamPolicyRequest.newBuilder()
            +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
            +   *           .setOptions(GetPolicyOptions.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request);
            +   *   // Do something.
            +   *   Policy response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   SetIamPolicyRequest request =
            +   *       SetIamPolicyRequest.newBuilder()
            +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
            +   *           .setPolicy(Policy.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   Policy response = dataformClient.setIamPolicy(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   SetIamPolicyRequest request =
            +   *       SetIamPolicyRequest.newBuilder()
            +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
            +   *           .setPolicy(Policy.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = dataformClient.setIamPolicyCallable().futureCall(request);
            +   *   // Do something.
            +   *   Policy response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + * + *

            Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   TestIamPermissionsRequest request =
            +   *       TestIamPermissionsRequest.newBuilder()
            +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
            +   *           .addAllPermissions(new ArrayList())
            +   *           .build();
            +   *   TestIamPermissionsResponse response = dataformClient.testIamPermissions(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + * + *

            Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   TestIamPermissionsRequest request =
            +   *       TestIamPermissionsRequest.newBuilder()
            +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
            +   *           .addAllPermissions(new ArrayList())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       dataformClient.testIamPermissionsCallable().futureCall(request);
            +   *   // Do something.
            +   *   TestIamPermissionsResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Location element : dataformClient.listLocations(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future = dataformClient.listLocationsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Location element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListLocationsResponse response = dataformClient.listLocationsCallable().call(request);
            +   *     for (Location element : response.getLocationsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
                * }
                * }
            */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
            +   *   Location response = dataformClient.getLocation(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (DataformClient dataformClient = DataformClient.create()) {
            +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
            +   *   ApiFuture future = dataformClient.getLocationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Location response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); } @Override @@ -7165,6 +9774,390 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class QueryTeamFolderContentsPagedResponse + extends AbstractPagedListResponse< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + QueryTeamFolderContentsPage, + QueryTeamFolderContentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryTeamFolderContentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryTeamFolderContentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryTeamFolderContentsPagedResponse(QueryTeamFolderContentsPage page) { + super(page, QueryTeamFolderContentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryTeamFolderContentsPage + extends AbstractPage< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + QueryTeamFolderContentsPage> { + + private QueryTeamFolderContentsPage( + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + context, + QueryTeamFolderContentsResponse response) { + super(context, response); + } + + private static QueryTeamFolderContentsPage createEmptyPage() { + return new QueryTeamFolderContentsPage(null, null); + } + + @Override + protected QueryTeamFolderContentsPage createPage( + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + context, + QueryTeamFolderContentsResponse response) { + return new QueryTeamFolderContentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryTeamFolderContentsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + QueryTeamFolderContentsPage, + QueryTeamFolderContentsFixedSizeCollection> { + + private QueryTeamFolderContentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryTeamFolderContentsFixedSizeCollection createEmptyCollection() { + return new QueryTeamFolderContentsFixedSizeCollection(null, 0); + } + + @Override + protected QueryTeamFolderContentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryTeamFolderContentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchTeamFoldersPagedResponse + extends AbstractPagedListResponse< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult, + SearchTeamFoldersPage, + SearchTeamFoldersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchTeamFoldersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchTeamFoldersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchTeamFoldersPagedResponse(SearchTeamFoldersPage page) { + super(page, SearchTeamFoldersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchTeamFoldersPage + extends AbstractPage< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult, + SearchTeamFoldersPage> { + + private SearchTeamFoldersPage( + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + context, + SearchTeamFoldersResponse response) { + super(context, response); + } + + private static SearchTeamFoldersPage createEmptyPage() { + return new SearchTeamFoldersPage(null, null); + } + + @Override + protected SearchTeamFoldersPage createPage( + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + context, + SearchTeamFoldersResponse response) { + return new SearchTeamFoldersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchTeamFoldersFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult, + SearchTeamFoldersPage, + SearchTeamFoldersFixedSizeCollection> { + + private SearchTeamFoldersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchTeamFoldersFixedSizeCollection createEmptyCollection() { + return new SearchTeamFoldersFixedSizeCollection(null, 0); + } + + @Override + protected SearchTeamFoldersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchTeamFoldersFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryFolderContentsPagedResponse + extends AbstractPagedListResponse< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry, + QueryFolderContentsPage, + QueryFolderContentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryFolderContentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryFolderContentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryFolderContentsPagedResponse(QueryFolderContentsPage page) { + super(page, QueryFolderContentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryFolderContentsPage + extends AbstractPage< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry, + QueryFolderContentsPage> { + + private QueryFolderContentsPage( + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + context, + QueryFolderContentsResponse response) { + super(context, response); + } + + private static QueryFolderContentsPage createEmptyPage() { + return new QueryFolderContentsPage(null, null); + } + + @Override + protected QueryFolderContentsPage createPage( + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + context, + QueryFolderContentsResponse response) { + return new QueryFolderContentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryFolderContentsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry, + QueryFolderContentsPage, + QueryFolderContentsFixedSizeCollection> { + + private QueryFolderContentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryFolderContentsFixedSizeCollection createEmptyCollection() { + return new QueryFolderContentsFixedSizeCollection(null, 0); + } + + @Override + protected QueryFolderContentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryFolderContentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryUserRootContentsPagedResponse + extends AbstractPagedListResponse< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry, + QueryUserRootContentsPage, + QueryUserRootContentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryUserRootContentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryUserRootContentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryUserRootContentsPagedResponse(QueryUserRootContentsPage page) { + super(page, QueryUserRootContentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryUserRootContentsPage + extends AbstractPage< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry, + QueryUserRootContentsPage> { + + private QueryUserRootContentsPage( + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + context, + QueryUserRootContentsResponse response) { + super(context, response); + } + + private static QueryUserRootContentsPage createEmptyPage() { + return new QueryUserRootContentsPage(null, null); + } + + @Override + protected QueryUserRootContentsPage createPage( + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + context, + QueryUserRootContentsResponse response) { + return new QueryUserRootContentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryUserRootContentsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry, + QueryUserRootContentsPage, + QueryUserRootContentsFixedSizeCollection> { + + private QueryUserRootContentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryUserRootContentsFixedSizeCollection createEmptyCollection() { + return new QueryUserRootContentsFixedSizeCollection(null, 0); + } + + @Override + protected QueryUserRootContentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryUserRootContentsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListRepositoriesPagedResponse extends AbstractPagedListResponse< ListRepositoriesRequest, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java index c61a59cc6b42..1a9315b02b34 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -39,6 +43,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -52,6 +57,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -74,7 +80,7 @@ * *

            For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getRepository: + * of getTeamFolder: * *

            {@code
              * // This snippet has been automatically generated and should be regarded as a code template only.
            @@ -84,10 +90,10 @@
              * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              * DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder();
              * dataformSettingsBuilder
            - *     .getRepositorySettings()
            + *     .getTeamFolderSettings()
              *     .setRetrySettings(
              *         dataformSettingsBuilder
            - *             .getRepositorySettings()
            + *             .getTeamFolderSettings()
              *             .getRetrySettings()
              *             .toBuilder()
              *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
            @@ -105,10 +111,140 @@
              * Please refer to the [Client Side Retry
              * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
              * retries.
            + *
            + * 

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for deleteTeamFolderTree: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * dataformSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            */ @Generated("by gapic-generator-java") public class DataformSettings extends ClientSettings { + /** Returns the object with the settings used for calls to getTeamFolder. */ + public UnaryCallSettings getTeamFolderSettings() { + return ((DataformStubSettings) getStubSettings()).getTeamFolderSettings(); + } + + /** Returns the object with the settings used for calls to createTeamFolder. */ + public UnaryCallSettings createTeamFolderSettings() { + return ((DataformStubSettings) getStubSettings()).createTeamFolderSettings(); + } + + /** Returns the object with the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings updateTeamFolderSettings() { + return ((DataformStubSettings) getStubSettings()).updateTeamFolderSettings(); + } + + /** Returns the object with the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings deleteTeamFolderSettings() { + return ((DataformStubSettings) getStubSettings()).deleteTeamFolderSettings(); + } + + /** Returns the object with the settings used for calls to deleteTeamFolderTree. */ + public UnaryCallSettings deleteTeamFolderTreeSettings() { + return ((DataformStubSettings) getStubSettings()).deleteTeamFolderTreeSettings(); + } + + /** Returns the object with the settings used for calls to deleteTeamFolderTree. */ + public OperationCallSettings + deleteTeamFolderTreeOperationSettings() { + return ((DataformStubSettings) getStubSettings()).deleteTeamFolderTreeOperationSettings(); + } + + /** Returns the object with the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return ((DataformStubSettings) getStubSettings()).queryTeamFolderContentsSettings(); + } + + /** Returns the object with the settings used for calls to searchTeamFolders. */ + public PagedCallSettings< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return ((DataformStubSettings) getStubSettings()).searchTeamFoldersSettings(); + } + + /** Returns the object with the settings used for calls to getFolder. */ + public UnaryCallSettings getFolderSettings() { + return ((DataformStubSettings) getStubSettings()).getFolderSettings(); + } + + /** Returns the object with the settings used for calls to createFolder. */ + public UnaryCallSettings createFolderSettings() { + return ((DataformStubSettings) getStubSettings()).createFolderSettings(); + } + + /** Returns the object with the settings used for calls to updateFolder. */ + public UnaryCallSettings updateFolderSettings() { + return ((DataformStubSettings) getStubSettings()).updateFolderSettings(); + } + + /** Returns the object with the settings used for calls to deleteFolder. */ + public UnaryCallSettings deleteFolderSettings() { + return ((DataformStubSettings) getStubSettings()).deleteFolderSettings(); + } + + /** Returns the object with the settings used for calls to deleteFolderTree. */ + public UnaryCallSettings deleteFolderTreeSettings() { + return ((DataformStubSettings) getStubSettings()).deleteFolderTreeSettings(); + } + + /** Returns the object with the settings used for calls to deleteFolderTree. */ + public OperationCallSettings + deleteFolderTreeOperationSettings() { + return ((DataformStubSettings) getStubSettings()).deleteFolderTreeOperationSettings(); + } + + /** Returns the object with the settings used for calls to queryFolderContents. */ + public PagedCallSettings< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return ((DataformStubSettings) getStubSettings()).queryFolderContentsSettings(); + } + + /** Returns the object with the settings used for calls to queryUserRootContents. */ + public PagedCallSettings< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return ((DataformStubSettings) getStubSettings()).queryUserRootContentsSettings(); + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public UnaryCallSettings moveFolderSettings() { + return ((DataformStubSettings) getStubSettings()).moveFolderSettings(); + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public OperationCallSettings + moveFolderOperationSettings() { + return ((DataformStubSettings) getStubSettings()).moveFolderOperationSettings(); + } + /** Returns the object with the settings used for calls to listRepositories. */ public PagedCallSettings< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -136,6 +272,17 @@ public UnaryCallSettings deleteRepositorySetting return ((DataformStubSettings) getStubSettings()).deleteRepositorySettings(); } + /** Returns the object with the settings used for calls to moveRepository. */ + public UnaryCallSettings moveRepositorySettings() { + return ((DataformStubSettings) getStubSettings()).moveRepositorySettings(); + } + + /** Returns the object with the settings used for calls to moveRepository. */ + public OperationCallSettings + moveRepositoryOperationSettings() { + return ((DataformStubSettings) getStubSettings()).moveRepositoryOperationSettings(); + } + /** Returns the object with the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings commitRepositoryChangesSettings() { @@ -437,15 +584,9 @@ public UnaryCallSettings updateConfigSettings() { return ((DataformStubSettings) getStubSettings()).updateConfigSettings(); } - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return ((DataformStubSettings) getStubSettings()).listLocationsSettings(); - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return ((DataformStubSettings) getStubSettings()).getLocationSettings(); + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DataformStubSettings) getStubSettings()).getIamPolicySettings(); } /** Returns the object with the settings used for calls to setIamPolicy. */ @@ -453,17 +594,23 @@ public UnaryCallSettings setIamPolicySettings() { return ((DataformStubSettings) getStubSettings()).setIamPolicySettings(); } - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((DataformStubSettings) getStubSettings()).getIamPolicySettings(); - } - /** Returns the object with the settings used for calls to testIamPermissions. */ public UnaryCallSettings testIamPermissionsSettings() { return ((DataformStubSettings) getStubSettings()).testIamPermissionsSettings(); } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DataformStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DataformStubSettings) getStubSettings()).getLocationSettings(); + } + public static final DataformSettings create(DataformStubSettings stub) throws IOException { return new DataformSettings.Builder(stub.toBuilder()).build(); } @@ -575,6 +722,118 @@ public Builder applyToAllUnaryMethods( return this; } + /** Returns the builder for the settings used for calls to getTeamFolder. */ + public UnaryCallSettings.Builder getTeamFolderSettings() { + return getStubSettingsBuilder().getTeamFolderSettings(); + } + + /** Returns the builder for the settings used for calls to createTeamFolder. */ + public UnaryCallSettings.Builder + createTeamFolderSettings() { + return getStubSettingsBuilder().createTeamFolderSettings(); + } + + /** Returns the builder for the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings.Builder + updateTeamFolderSettings() { + return getStubSettingsBuilder().updateTeamFolderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings.Builder deleteTeamFolderSettings() { + return getStubSettingsBuilder().deleteTeamFolderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */ + public UnaryCallSettings.Builder + deleteTeamFolderTreeSettings() { + return getStubSettingsBuilder().deleteTeamFolderTreeSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */ + public OperationCallSettings.Builder< + DeleteTeamFolderTreeRequest, Empty, DeleteFolderTreeMetadata> + deleteTeamFolderTreeOperationSettings() { + return getStubSettingsBuilder().deleteTeamFolderTreeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings.Builder< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return getStubSettingsBuilder().queryTeamFolderContentsSettings(); + } + + /** Returns the builder for the settings used for calls to searchTeamFolders. */ + public PagedCallSettings.Builder< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return getStubSettingsBuilder().searchTeamFoldersSettings(); + } + + /** Returns the builder for the settings used for calls to getFolder. */ + public UnaryCallSettings.Builder getFolderSettings() { + return getStubSettingsBuilder().getFolderSettings(); + } + + /** Returns the builder for the settings used for calls to createFolder. */ + public UnaryCallSettings.Builder createFolderSettings() { + return getStubSettingsBuilder().createFolderSettings(); + } + + /** Returns the builder for the settings used for calls to updateFolder. */ + public UnaryCallSettings.Builder updateFolderSettings() { + return getStubSettingsBuilder().updateFolderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFolder. */ + public UnaryCallSettings.Builder deleteFolderSettings() { + return getStubSettingsBuilder().deleteFolderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFolderTree. */ + public UnaryCallSettings.Builder + deleteFolderTreeSettings() { + return getStubSettingsBuilder().deleteFolderTreeSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFolderTree. */ + public OperationCallSettings.Builder + deleteFolderTreeOperationSettings() { + return getStubSettingsBuilder().deleteFolderTreeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to queryFolderContents. */ + public PagedCallSettings.Builder< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return getStubSettingsBuilder().queryFolderContentsSettings(); + } + + /** Returns the builder for the settings used for calls to queryUserRootContents. */ + public PagedCallSettings.Builder< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return getStubSettingsBuilder().queryUserRootContentsSettings(); + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public UnaryCallSettings.Builder moveFolderSettings() { + return getStubSettingsBuilder().moveFolderSettings(); + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public OperationCallSettings.Builder + moveFolderOperationSettings() { + return getStubSettingsBuilder().moveFolderOperationSettings(); + } + /** Returns the builder for the settings used for calls to listRepositories. */ public PagedCallSettings.Builder< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -604,6 +863,17 @@ public UnaryCallSettings.Builder deleteRepositor return getStubSettingsBuilder().deleteRepositorySettings(); } + /** Returns the builder for the settings used for calls to moveRepository. */ + public UnaryCallSettings.Builder moveRepositorySettings() { + return getStubSettingsBuilder().moveRepositorySettings(); + } + + /** Returns the builder for the settings used for calls to moveRepository. */ + public OperationCallSettings.Builder + moveRepositoryOperationSettings() { + return getStubSettingsBuilder().moveRepositoryOperationSettings(); + } + /** Returns the builder for the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings.Builder< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> @@ -921,16 +1191,9 @@ public UnaryCallSettings.Builder updateConfigSettin return getStubSettingsBuilder().updateConfigSettings(); } - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return getStubSettingsBuilder().listLocationsSettings(); - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - return getStubSettingsBuilder().getLocationSettings(); + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); } /** Returns the builder for the settings used for calls to setIamPolicy. */ @@ -938,17 +1201,24 @@ public UnaryCallSettings.Builder setIamPolicySettin return getStubSettingsBuilder().setIamPolicySettings(); } - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - /** Returns the builder for the settings used for calls to testIamPermissions. */ public UnaryCallSettings.Builder testIamPermissionsSettings() { return getStubSettingsBuilder().testIamPermissionsSettings(); } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + @Override public DataformSettings build() throws IOException { return new DataformSettings(this); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json index 22aa37a3581d..8f19de36c2d2 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json @@ -25,12 +25,18 @@ "CreateCompilationResult": { "methods": ["createCompilationResult", "createCompilationResult", "createCompilationResult", "createCompilationResultCallable"] }, + "CreateFolder": { + "methods": ["createFolder", "createFolder", "createFolder", "createFolderCallable"] + }, "CreateReleaseConfig": { "methods": ["createReleaseConfig", "createReleaseConfig", "createReleaseConfig", "createReleaseConfigCallable"] }, "CreateRepository": { "methods": ["createRepository", "createRepository", "createRepository", "createRepositoryCallable"] }, + "CreateTeamFolder": { + "methods": ["createTeamFolder", "createTeamFolder", "createTeamFolder", "createTeamFolderCallable"] + }, "CreateWorkflowConfig": { "methods": ["createWorkflowConfig", "createWorkflowConfig", "createWorkflowConfig", "createWorkflowConfigCallable"] }, @@ -40,12 +46,24 @@ "CreateWorkspace": { "methods": ["createWorkspace", "createWorkspace", "createWorkspace", "createWorkspaceCallable"] }, + "DeleteFolder": { + "methods": ["deleteFolder", "deleteFolder", "deleteFolder", "deleteFolderCallable"] + }, + "DeleteFolderTree": { + "methods": ["deleteFolderTreeAsync", "deleteFolderTreeAsync", "deleteFolderTreeAsync", "deleteFolderTreeOperationCallable", "deleteFolderTreeCallable"] + }, "DeleteReleaseConfig": { "methods": ["deleteReleaseConfig", "deleteReleaseConfig", "deleteReleaseConfig", "deleteReleaseConfigCallable"] }, "DeleteRepository": { "methods": ["deleteRepository", "deleteRepository", "deleteRepository", "deleteRepositoryCallable"] }, + "DeleteTeamFolder": { + "methods": ["deleteTeamFolder", "deleteTeamFolder", "deleteTeamFolder", "deleteTeamFolderCallable"] + }, + "DeleteTeamFolderTree": { + "methods": ["deleteTeamFolderTreeAsync", "deleteTeamFolderTreeAsync", "deleteTeamFolderTreeAsync", "deleteTeamFolderTreeOperationCallable", "deleteTeamFolderTreeCallable"] + }, "DeleteWorkflowConfig": { "methods": ["deleteWorkflowConfig", "deleteWorkflowConfig", "deleteWorkflowConfig", "deleteWorkflowConfigCallable"] }, @@ -76,8 +94,11 @@ "GetConfig": { "methods": ["getConfig", "getConfig", "getConfig", "getConfigCallable"] }, + "GetFolder": { + "methods": ["getFolder", "getFolder", "getFolder", "getFolderCallable"] + }, "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] @@ -88,6 +109,9 @@ "GetRepository": { "methods": ["getRepository", "getRepository", "getRepository", "getRepositoryCallable"] }, + "GetTeamFolder": { + "methods": ["getTeamFolder", "getTeamFolder", "getTeamFolder", "getTeamFolderCallable"] + }, "GetWorkflowConfig": { "methods": ["getWorkflowConfig", "getWorkflowConfig", "getWorkflowConfig", "getWorkflowConfigCallable"] }, @@ -130,6 +154,12 @@ "MoveFile": { "methods": ["moveFile", "moveFileCallable"] }, + "MoveFolder": { + "methods": ["moveFolderAsync", "moveFolderAsync", "moveFolderAsync", "moveFolderOperationCallable", "moveFolderCallable"] + }, + "MoveRepository": { + "methods": ["moveRepositoryAsync", "moveRepositoryAsync", "moveRepositoryAsync", "moveRepositoryOperationCallable", "moveRepositoryCallable"] + }, "PullGitCommits": { "methods": ["pullGitCommits", "pullGitCommitsCallable"] }, @@ -142,9 +172,18 @@ "QueryDirectoryContents": { "methods": ["queryDirectoryContents", "queryDirectoryContentsPagedCallable", "queryDirectoryContentsCallable"] }, + "QueryFolderContents": { + "methods": ["queryFolderContents", "queryFolderContents", "queryFolderContents", "queryFolderContentsPagedCallable", "queryFolderContentsCallable"] + }, "QueryRepositoryDirectoryContents": { "methods": ["queryRepositoryDirectoryContents", "queryRepositoryDirectoryContentsPagedCallable", "queryRepositoryDirectoryContentsCallable"] }, + "QueryTeamFolderContents": { + "methods": ["queryTeamFolderContents", "queryTeamFolderContents", "queryTeamFolderContents", "queryTeamFolderContentsPagedCallable", "queryTeamFolderContentsCallable"] + }, + "QueryUserRootContents": { + "methods": ["queryUserRootContents", "queryUserRootContents", "queryUserRootContents", "queryUserRootContentsPagedCallable", "queryUserRootContentsCallable"] + }, "QueryWorkflowInvocationActions": { "methods": ["queryWorkflowInvocationActions", "queryWorkflowInvocationActionsPagedCallable", "queryWorkflowInvocationActionsCallable"] }, @@ -166,6 +205,9 @@ "SearchFiles": { "methods": ["searchFiles", "searchFilesPagedCallable", "searchFilesCallable"] }, + "SearchTeamFolders": { + "methods": ["searchTeamFolders", "searchTeamFoldersPagedCallable", "searchTeamFoldersCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, @@ -175,12 +217,18 @@ "UpdateConfig": { "methods": ["updateConfig", "updateConfig", "updateConfigCallable"] }, + "UpdateFolder": { + "methods": ["updateFolder", "updateFolder", "updateFolderCallable"] + }, "UpdateReleaseConfig": { "methods": ["updateReleaseConfig", "updateReleaseConfig", "updateReleaseConfigCallable"] }, "UpdateRepository": { "methods": ["updateRepository", "updateRepository", "updateRepositoryCallable"] }, + "UpdateTeamFolder": { + "methods": ["updateTeamFolder", "updateTeamFolder", "updateTeamFolderCallable"] + }, "UpdateWorkflowConfig": { "methods": ["updateWorkflowConfig", "updateWorkflowConfig", "updateWorkflowConfigCallable"] }, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/package-info.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/package-info.java index 866be5971bce..889a8ad072c5 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/package-info.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/package-info.java @@ -33,8 +33,8 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Repository response = dataformClient.getRepository(name); + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * }
            */ diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java index 40dd7d7c8daf..132c534557f1 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java @@ -26,11 +26,16 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest; import com.google.cloud.dataform.v1.CancelWorkflowInvocationResponse; @@ -43,13 +48,20 @@ import com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1.Config; import com.google.cloud.dataform.v1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1.CreateFolderRequest; import com.google.cloud.dataform.v1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1.DeleteWorkspaceRequest; @@ -63,10 +75,13 @@ import com.google.cloud.dataform.v1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1.Folder; import com.google.cloud.dataform.v1.GetCompilationResultRequest; import com.google.cloud.dataform.v1.GetConfigRequest; +import com.google.cloud.dataform.v1.GetFolderRequest; import com.google.cloud.dataform.v1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1.GetRepositoryRequest; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; import com.google.cloud.dataform.v1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1.GetWorkspaceRequest; @@ -90,6 +105,10 @@ import com.google.cloud.dataform.v1.MoveDirectoryResponse; import com.google.cloud.dataform.v1.MoveFileRequest; import com.google.cloud.dataform.v1.MoveFileResponse; +import com.google.cloud.dataform.v1.MoveFolderMetadata; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.cloud.dataform.v1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; import com.google.cloud.dataform.v1.PullGitCommitsRequest; import com.google.cloud.dataform.v1.PullGitCommitsResponse; import com.google.cloud.dataform.v1.PushGitCommitsRequest; @@ -98,8 +117,14 @@ import com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1.ReadFileRequest; @@ -116,9 +141,14 @@ import com.google.cloud.dataform.v1.ResetWorkspaceChangesResponse; import com.google.cloud.dataform.v1.SearchFilesRequest; import com.google.cloud.dataform.v1.SearchFilesResponse; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1.TeamFolder; import com.google.cloud.dataform.v1.UpdateConfigRequest; +import com.google.cloud.dataform.v1.UpdateFolderRequest; import com.google.cloud.dataform.v1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1.WorkflowConfig; import com.google.cloud.dataform.v1.WorkflowInvocation; @@ -134,6 +164,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; import javax.annotation.Generated; @@ -146,6 +178,116 @@ @Generated("by gapic-generator-java") public abstract class DataformStub implements BackgroundResource { + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getTeamFolderCallable() { + throw new UnsupportedOperationException("Not implemented: getTeamFolderCallable()"); + } + + public UnaryCallable createTeamFolderCallable() { + throw new UnsupportedOperationException("Not implemented: createTeamFolderCallable()"); + } + + public UnaryCallable updateTeamFolderCallable() { + throw new UnsupportedOperationException("Not implemented: updateTeamFolderCallable()"); + } + + public UnaryCallable deleteTeamFolderCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTeamFolderCallable()"); + } + + public OperationCallable + deleteTeamFolderTreeOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTeamFolderTreeOperationCallable()"); + } + + public UnaryCallable deleteTeamFolderTreeCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTeamFolderTreeCallable()"); + } + + public UnaryCallable + queryTeamFolderContentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryTeamFolderContentsPagedCallable()"); + } + + public UnaryCallable + queryTeamFolderContentsCallable() { + throw new UnsupportedOperationException("Not implemented: queryTeamFolderContentsCallable()"); + } + + public UnaryCallable + searchTeamFoldersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchTeamFoldersPagedCallable()"); + } + + public UnaryCallable + searchTeamFoldersCallable() { + throw new UnsupportedOperationException("Not implemented: searchTeamFoldersCallable()"); + } + + public UnaryCallable getFolderCallable() { + throw new UnsupportedOperationException("Not implemented: getFolderCallable()"); + } + + public UnaryCallable createFolderCallable() { + throw new UnsupportedOperationException("Not implemented: createFolderCallable()"); + } + + public UnaryCallable updateFolderCallable() { + throw new UnsupportedOperationException("Not implemented: updateFolderCallable()"); + } + + public UnaryCallable deleteFolderCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFolderCallable()"); + } + + public OperationCallable + deleteFolderTreeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFolderTreeOperationCallable()"); + } + + public UnaryCallable deleteFolderTreeCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFolderTreeCallable()"); + } + + public UnaryCallable + queryFolderContentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryFolderContentsPagedCallable()"); + } + + public UnaryCallable + queryFolderContentsCallable() { + throw new UnsupportedOperationException("Not implemented: queryFolderContentsCallable()"); + } + + public UnaryCallable + queryUserRootContentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryUserRootContentsPagedCallable()"); + } + + public UnaryCallable + queryUserRootContentsCallable() { + throw new UnsupportedOperationException("Not implemented: queryUserRootContentsCallable()"); + } + + public OperationCallable + moveFolderOperationCallable() { + throw new UnsupportedOperationException("Not implemented: moveFolderOperationCallable()"); + } + + public UnaryCallable moveFolderCallable() { + throw new UnsupportedOperationException("Not implemented: moveFolderCallable()"); + } + public UnaryCallable listRepositoriesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listRepositoriesPagedCallable()"); @@ -172,6 +314,15 @@ public UnaryCallable deleteRepositoryCallable() throw new UnsupportedOperationException("Not implemented: deleteRepositoryCallable()"); } + public OperationCallable + moveRepositoryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: moveRepositoryOperationCallable()"); + } + + public UnaryCallable moveRepositoryCallable() { + throw new UnsupportedOperationException("Not implemented: moveRepositoryCallable()"); + } + public UnaryCallable commitRepositoryChangesCallable() { throw new UnsupportedOperationException("Not implemented: commitRepositoryChangesCallable()"); @@ -462,6 +613,19 @@ public UnaryCallable updateConfigCallable() { throw new UnsupportedOperationException("Not implemented: updateConfigCallable()"); } + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); @@ -475,19 +639,6 @@ public UnaryCallable getLocationCallable() { throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); } - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - @Override public abstract void close(); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java index 778e9c0b1501..a1f807a29be4 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -40,14 +44,18 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.HttpJsonTransportChannel; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -70,13 +78,20 @@ import com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1.Config; import com.google.cloud.dataform.v1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1.CreateFolderRequest; import com.google.cloud.dataform.v1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1.DeleteWorkspaceRequest; @@ -91,10 +106,13 @@ import com.google.cloud.dataform.v1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1.Folder; import com.google.cloud.dataform.v1.GetCompilationResultRequest; import com.google.cloud.dataform.v1.GetConfigRequest; +import com.google.cloud.dataform.v1.GetFolderRequest; import com.google.cloud.dataform.v1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1.GetRepositoryRequest; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; import com.google.cloud.dataform.v1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1.GetWorkspaceRequest; @@ -118,6 +136,10 @@ import com.google.cloud.dataform.v1.MoveDirectoryResponse; import com.google.cloud.dataform.v1.MoveFileRequest; import com.google.cloud.dataform.v1.MoveFileResponse; +import com.google.cloud.dataform.v1.MoveFolderMetadata; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.cloud.dataform.v1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; import com.google.cloud.dataform.v1.PullGitCommitsRequest; import com.google.cloud.dataform.v1.PullGitCommitsResponse; import com.google.cloud.dataform.v1.PushGitCommitsRequest; @@ -126,8 +148,14 @@ import com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1.ReadFileRequest; @@ -145,9 +173,14 @@ import com.google.cloud.dataform.v1.SearchFilesRequest; import com.google.cloud.dataform.v1.SearchFilesResponse; import com.google.cloud.dataform.v1.SearchResult; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1.TeamFolder; import com.google.cloud.dataform.v1.UpdateConfigRequest; +import com.google.cloud.dataform.v1.UpdateFolderRequest; import com.google.cloud.dataform.v1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1.WorkflowConfig; import com.google.cloud.dataform.v1.WorkflowInvocation; @@ -168,8 +201,10 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; +import java.time.Duration; import java.util.List; import javax.annotation.Generated; @@ -190,7 +225,7 @@ * *

            For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getRepository: + * of getTeamFolder: * *

            {@code
              * // This snippet has been automatically generated and should be regarded as a code template only.
            @@ -200,10 +235,10 @@
              * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              * DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder();
              * dataformSettingsBuilder
            - *     .getRepositorySettings()
            + *     .getTeamFolderSettings()
              *     .setRetrySettings(
              *         dataformSettingsBuilder
            - *             .getRepositorySettings()
            + *             .getTeamFolderSettings()
              *             .getRetrySettings()
              *             .toBuilder()
              *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
            @@ -221,6 +256,31 @@
              * Please refer to the [Client Side Retry
              * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
              * retries.
            + *
            + * 

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for deleteTeamFolderTree: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * dataformSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            */ @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") @@ -232,6 +292,40 @@ public class DataformStubSettings extends StubSettings { .add("https://www.googleapis.com/auth/cloud-platform") .build(); + private final UnaryCallSettings getTeamFolderSettings; + private final UnaryCallSettings createTeamFolderSettings; + private final UnaryCallSettings updateTeamFolderSettings; + private final UnaryCallSettings deleteTeamFolderSettings; + private final UnaryCallSettings + deleteTeamFolderTreeSettings; + private final OperationCallSettings + deleteTeamFolderTreeOperationSettings; + private final PagedCallSettings< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings; + private final PagedCallSettings< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings; + private final UnaryCallSettings getFolderSettings; + private final UnaryCallSettings createFolderSettings; + private final UnaryCallSettings updateFolderSettings; + private final UnaryCallSettings deleteFolderSettings; + private final UnaryCallSettings deleteFolderTreeSettings; + private final OperationCallSettings + deleteFolderTreeOperationSettings; + private final PagedCallSettings< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + queryFolderContentsSettings; + private final PagedCallSettings< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings; + private final UnaryCallSettings moveFolderSettings; + private final OperationCallSettings + moveFolderOperationSettings; private final PagedCallSettings< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> listRepositoriesSettings; @@ -239,6 +333,9 @@ public class DataformStubSettings extends StubSettings { private final UnaryCallSettings createRepositorySettings; private final UnaryCallSettings updateRepositorySettings; private final UnaryCallSettings deleteRepositorySettings; + private final UnaryCallSettings moveRepositorySettings; + private final OperationCallSettings + moveRepositoryOperationSettings; private final UnaryCallSettings commitRepositoryChangesSettings; private final UnaryCallSettings @@ -350,14 +447,188 @@ public class DataformStubSettings extends StubSettings { queryWorkflowInvocationActionsSettings; private final UnaryCallSettings getConfigSettings; private final UnaryCallSettings updateConfigSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings getLocationSettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; + + private static final PagedListDescriptor< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryTeamFolderContentsRequest injectToken( + QueryTeamFolderContentsRequest payload, String token) { + return QueryTeamFolderContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryTeamFolderContentsRequest injectPageSize( + QueryTeamFolderContentsRequest payload, int pageSize) { + return QueryTeamFolderContentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(QueryTeamFolderContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryTeamFolderContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable + extractResources(QueryTeamFolderContentsResponse payload) { + return payload.getEntriesList(); + } + }; + + private static final PagedListDescriptor< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + SEARCH_TEAM_FOLDERS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchTeamFoldersRequest injectToken( + SearchTeamFoldersRequest payload, String token) { + return SearchTeamFoldersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchTeamFoldersRequest injectPageSize( + SearchTeamFoldersRequest payload, int pageSize) { + return SearchTeamFoldersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchTeamFoldersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchTeamFoldersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchTeamFoldersResponse payload) { + return payload.getResultsList(); + } + }; + + private static final PagedListDescriptor< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + QUERY_FOLDER_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryFolderContentsRequest injectToken( + QueryFolderContentsRequest payload, String token) { + return QueryFolderContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryFolderContentsRequest injectPageSize( + QueryFolderContentsRequest payload, int pageSize) { + return QueryFolderContentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryFolderContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryFolderContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryFolderContentsResponse payload) { + return payload.getEntriesList(); + } + }; + + private static final PagedListDescriptor< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + QUERY_USER_ROOT_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryUserRootContentsRequest injectToken( + QueryUserRootContentsRequest payload, String token) { + return QueryUserRootContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryUserRootContentsRequest injectPageSize( + QueryUserRootContentsRequest payload, int pageSize) { + return QueryUserRootContentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryUserRootContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryUserRootContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryUserRootContentsResponse payload) { + return payload.getEntriesList(); + } + }; private static final PagedListDescriptor< ListRepositoriesRequest, ListRepositoriesResponse, Repository> @@ -882,6 +1153,107 @@ public Iterable extractResources(ListLocationsResponse payload) { } }; + private static final PagedListResponseFactory< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + QueryTeamFolderContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_DESC, request, context); + return QueryTeamFolderContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + SEARCH_TEAM_FOLDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchTeamFoldersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + pageContext = + PageContext.create( + callable, SEARCH_TEAM_FOLDERS_PAGE_STR_DESC, request, context); + return SearchTeamFoldersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + QUERY_FOLDER_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryFolderContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_FOLDER_CONTENTS_PAGE_STR_DESC, request, context); + return QueryFolderContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + QUERY_USER_ROOT_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryUserRootContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_USER_ROOT_CONTENTS_PAGE_STR_DESC, request, context); + return QueryUserRootContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> LIST_REPOSITORIES_PAGE_STR_FACT = @@ -1196,6 +1568,111 @@ public ApiFuture getFuturePagedResponse( } }; + /** Returns the object with the settings used for calls to getTeamFolder. */ + public UnaryCallSettings getTeamFolderSettings() { + return getTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to createTeamFolder. */ + public UnaryCallSettings createTeamFolderSettings() { + return createTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings updateTeamFolderSettings() { + return updateTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings deleteTeamFolderSettings() { + return deleteTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteTeamFolderTree. */ + public UnaryCallSettings deleteTeamFolderTreeSettings() { + return deleteTeamFolderTreeSettings; + } + + /** Returns the object with the settings used for calls to deleteTeamFolderTree. */ + public OperationCallSettings + deleteTeamFolderTreeOperationSettings() { + return deleteTeamFolderTreeOperationSettings; + } + + /** Returns the object with the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return queryTeamFolderContentsSettings; + } + + /** Returns the object with the settings used for calls to searchTeamFolders. */ + public PagedCallSettings< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return searchTeamFoldersSettings; + } + + /** Returns the object with the settings used for calls to getFolder. */ + public UnaryCallSettings getFolderSettings() { + return getFolderSettings; + } + + /** Returns the object with the settings used for calls to createFolder. */ + public UnaryCallSettings createFolderSettings() { + return createFolderSettings; + } + + /** Returns the object with the settings used for calls to updateFolder. */ + public UnaryCallSettings updateFolderSettings() { + return updateFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteFolder. */ + public UnaryCallSettings deleteFolderSettings() { + return deleteFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteFolderTree. */ + public UnaryCallSettings deleteFolderTreeSettings() { + return deleteFolderTreeSettings; + } + + /** Returns the object with the settings used for calls to deleteFolderTree. */ + public OperationCallSettings + deleteFolderTreeOperationSettings() { + return deleteFolderTreeOperationSettings; + } + + /** Returns the object with the settings used for calls to queryFolderContents. */ + public PagedCallSettings< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return queryFolderContentsSettings; + } + + /** Returns the object with the settings used for calls to queryUserRootContents. */ + public PagedCallSettings< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return queryUserRootContentsSettings; + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public UnaryCallSettings moveFolderSettings() { + return moveFolderSettings; + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public OperationCallSettings + moveFolderOperationSettings() { + return moveFolderOperationSettings; + } + /** Returns the object with the settings used for calls to listRepositories. */ public PagedCallSettings< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -1223,6 +1700,17 @@ public UnaryCallSettings deleteRepositorySetting return deleteRepositorySettings; } + /** Returns the object with the settings used for calls to moveRepository. */ + public UnaryCallSettings moveRepositorySettings() { + return moveRepositorySettings; + } + + /** Returns the object with the settings used for calls to moveRepository. */ + public OperationCallSettings + moveRepositoryOperationSettings() { + return moveRepositoryOperationSettings; + } + /** Returns the object with the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings commitRepositoryChangesSettings() { @@ -1524,15 +2012,9 @@ public UnaryCallSettings updateConfigSettings() { return updateConfigSettings; } - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return getLocationSettings; + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; } /** Returns the object with the settings used for calls to setIamPolicy. */ @@ -1540,17 +2022,23 @@ public UnaryCallSettings setIamPolicySettings() { return setIamPolicySettings; } - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - /** Returns the object with the settings used for calls to testIamPermissions. */ public UnaryCallSettings testIamPermissionsSettings() { return testIamPermissionsSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + public DataformStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -1660,11 +2148,32 @@ public Builder toBuilder() { protected DataformStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); + getTeamFolderSettings = settingsBuilder.getTeamFolderSettings().build(); + createTeamFolderSettings = settingsBuilder.createTeamFolderSettings().build(); + updateTeamFolderSettings = settingsBuilder.updateTeamFolderSettings().build(); + deleteTeamFolderSettings = settingsBuilder.deleteTeamFolderSettings().build(); + deleteTeamFolderTreeSettings = settingsBuilder.deleteTeamFolderTreeSettings().build(); + deleteTeamFolderTreeOperationSettings = + settingsBuilder.deleteTeamFolderTreeOperationSettings().build(); + queryTeamFolderContentsSettings = settingsBuilder.queryTeamFolderContentsSettings().build(); + searchTeamFoldersSettings = settingsBuilder.searchTeamFoldersSettings().build(); + getFolderSettings = settingsBuilder.getFolderSettings().build(); + createFolderSettings = settingsBuilder.createFolderSettings().build(); + updateFolderSettings = settingsBuilder.updateFolderSettings().build(); + deleteFolderSettings = settingsBuilder.deleteFolderSettings().build(); + deleteFolderTreeSettings = settingsBuilder.deleteFolderTreeSettings().build(); + deleteFolderTreeOperationSettings = settingsBuilder.deleteFolderTreeOperationSettings().build(); + queryFolderContentsSettings = settingsBuilder.queryFolderContentsSettings().build(); + queryUserRootContentsSettings = settingsBuilder.queryUserRootContentsSettings().build(); + moveFolderSettings = settingsBuilder.moveFolderSettings().build(); + moveFolderOperationSettings = settingsBuilder.moveFolderOperationSettings().build(); listRepositoriesSettings = settingsBuilder.listRepositoriesSettings().build(); getRepositorySettings = settingsBuilder.getRepositorySettings().build(); createRepositorySettings = settingsBuilder.createRepositorySettings().build(); updateRepositorySettings = settingsBuilder.updateRepositorySettings().build(); deleteRepositorySettings = settingsBuilder.deleteRepositorySettings().build(); + moveRepositorySettings = settingsBuilder.moveRepositorySettings().build(); + moveRepositoryOperationSettings = settingsBuilder.moveRepositoryOperationSettings().build(); commitRepositoryChangesSettings = settingsBuilder.commitRepositoryChangesSettings().build(); readRepositoryFileSettings = settingsBuilder.readRepositoryFileSettings().build(); queryRepositoryDirectoryContentsSettings = @@ -1718,11 +2227,11 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { settingsBuilder.queryWorkflowInvocationActionsSettings().build(); getConfigSettings = settingsBuilder.getConfigSettings().build(); updateConfigSettings = settingsBuilder.updateConfigSettings().build(); - listLocationsSettings = settingsBuilder.listLocationsSettings().build(); - getLocationSettings = settingsBuilder.getLocationSettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); } @Override @@ -1730,12 +2239,55 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataform") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } /** Builder for DataformStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getTeamFolderSettings; + private final UnaryCallSettings.Builder + createTeamFolderSettings; + private final UnaryCallSettings.Builder + updateTeamFolderSettings; + private final UnaryCallSettings.Builder + deleteTeamFolderSettings; + private final UnaryCallSettings.Builder + deleteTeamFolderTreeSettings; + private final OperationCallSettings.Builder< + DeleteTeamFolderTreeRequest, Empty, DeleteFolderTreeMetadata> + deleteTeamFolderTreeOperationSettings; + private final PagedCallSettings.Builder< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings; + private final PagedCallSettings.Builder< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings; + private final UnaryCallSettings.Builder getFolderSettings; + private final UnaryCallSettings.Builder createFolderSettings; + private final UnaryCallSettings.Builder updateFolderSettings; + private final UnaryCallSettings.Builder deleteFolderSettings; + private final UnaryCallSettings.Builder + deleteFolderTreeSettings; + private final OperationCallSettings.Builder< + DeleteFolderTreeRequest, Empty, DeleteFolderTreeMetadata> + deleteFolderTreeOperationSettings; + private final PagedCallSettings.Builder< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse> + queryFolderContentsSettings; + private final PagedCallSettings.Builder< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings; + private final UnaryCallSettings.Builder moveFolderSettings; + private final OperationCallSettings.Builder + moveFolderOperationSettings; private final PagedCallSettings.Builder< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> listRepositoriesSettings; @@ -1746,6 +2298,11 @@ public static class Builder extends StubSettings.Builder deleteRepositorySettings; + private final UnaryCallSettings.Builder + moveRepositorySettings; + private final OperationCallSettings.Builder< + MoveRepositoryRequest, Empty, MoveRepositoryMetadata> + moveRepositoryOperationSettings; private final UnaryCallSettings.Builder< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesSettings; @@ -1870,14 +2427,14 @@ public static class Builder extends StubSettings.Builder getConfigSettings; private final UnaryCallSettings.Builder updateConfigSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings.Builder getLocationSettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1905,11 +2462,34 @@ protected Builder() { protected Builder(ClientContext clientContext) { super(clientContext); + getTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTeamFolderTreeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTeamFolderTreeOperationSettings = OperationCallSettings.newBuilder(); + queryTeamFolderContentsSettings = + PagedCallSettings.newBuilder(QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_FACT); + searchTeamFoldersSettings = PagedCallSettings.newBuilder(SEARCH_TEAM_FOLDERS_PAGE_STR_FACT); + getFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFolderTreeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFolderTreeOperationSettings = OperationCallSettings.newBuilder(); + queryFolderContentsSettings = + PagedCallSettings.newBuilder(QUERY_FOLDER_CONTENTS_PAGE_STR_FACT); + queryUserRootContentsSettings = + PagedCallSettings.newBuilder(QUERY_USER_ROOT_CONTENTS_PAGE_STR_FACT); + moveFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveFolderOperationSettings = OperationCallSettings.newBuilder(); listRepositoriesSettings = PagedCallSettings.newBuilder(LIST_REPOSITORIES_PAGE_STR_FACT); getRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveRepositoryOperationSettings = OperationCallSettings.newBuilder(); commitRepositoryChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); readRepositoryFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); queryRepositoryDirectoryContentsSettings = @@ -1967,19 +2547,35 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(QUERY_WORKFLOW_INVOCATION_ACTIONS_PAGE_STR_FACT); getConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); - getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( + getTeamFolderSettings, + createTeamFolderSettings, + updateTeamFolderSettings, + deleteTeamFolderSettings, + deleteTeamFolderTreeSettings, + queryTeamFolderContentsSettings, + searchTeamFoldersSettings, + getFolderSettings, + createFolderSettings, + updateFolderSettings, + deleteFolderSettings, + deleteFolderTreeSettings, + queryFolderContentsSettings, + queryUserRootContentsSettings, + moveFolderSettings, listRepositoriesSettings, getRepositorySettings, createRepositorySettings, updateRepositorySettings, deleteRepositorySettings, + moveRepositorySettings, commitRepositoryChangesSettings, readRepositoryFileSettings, queryRepositoryDirectoryContentsSettings, @@ -2029,22 +2625,43 @@ protected Builder(ClientContext clientContext) { queryWorkflowInvocationActionsSettings, getConfigSettings, updateConfigSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings); + setIamPolicySettings, + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); initDefaults(this); } protected Builder(DataformStubSettings settings) { super(settings); + getTeamFolderSettings = settings.getTeamFolderSettings.toBuilder(); + createTeamFolderSettings = settings.createTeamFolderSettings.toBuilder(); + updateTeamFolderSettings = settings.updateTeamFolderSettings.toBuilder(); + deleteTeamFolderSettings = settings.deleteTeamFolderSettings.toBuilder(); + deleteTeamFolderTreeSettings = settings.deleteTeamFolderTreeSettings.toBuilder(); + deleteTeamFolderTreeOperationSettings = + settings.deleteTeamFolderTreeOperationSettings.toBuilder(); + queryTeamFolderContentsSettings = settings.queryTeamFolderContentsSettings.toBuilder(); + searchTeamFoldersSettings = settings.searchTeamFoldersSettings.toBuilder(); + getFolderSettings = settings.getFolderSettings.toBuilder(); + createFolderSettings = settings.createFolderSettings.toBuilder(); + updateFolderSettings = settings.updateFolderSettings.toBuilder(); + deleteFolderSettings = settings.deleteFolderSettings.toBuilder(); + deleteFolderTreeSettings = settings.deleteFolderTreeSettings.toBuilder(); + deleteFolderTreeOperationSettings = settings.deleteFolderTreeOperationSettings.toBuilder(); + queryFolderContentsSettings = settings.queryFolderContentsSettings.toBuilder(); + queryUserRootContentsSettings = settings.queryUserRootContentsSettings.toBuilder(); + moveFolderSettings = settings.moveFolderSettings.toBuilder(); + moveFolderOperationSettings = settings.moveFolderOperationSettings.toBuilder(); listRepositoriesSettings = settings.listRepositoriesSettings.toBuilder(); getRepositorySettings = settings.getRepositorySettings.toBuilder(); createRepositorySettings = settings.createRepositorySettings.toBuilder(); updateRepositorySettings = settings.updateRepositorySettings.toBuilder(); deleteRepositorySettings = settings.deleteRepositorySettings.toBuilder(); + moveRepositorySettings = settings.moveRepositorySettings.toBuilder(); + moveRepositoryOperationSettings = settings.moveRepositoryOperationSettings.toBuilder(); commitRepositoryChangesSettings = settings.commitRepositoryChangesSettings.toBuilder(); readRepositoryFileSettings = settings.readRepositoryFileSettings.toBuilder(); queryRepositoryDirectoryContentsSettings = @@ -2098,19 +2715,35 @@ protected Builder(DataformStubSettings settings) { settings.queryWorkflowInvocationActionsSettings.toBuilder(); getConfigSettings = settings.getConfigSettings.toBuilder(); updateConfigSettings = settings.updateConfigSettings.toBuilder(); - listLocationsSettings = settings.listLocationsSettings.toBuilder(); - getLocationSettings = settings.getLocationSettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( + getTeamFolderSettings, + createTeamFolderSettings, + updateTeamFolderSettings, + deleteTeamFolderSettings, + deleteTeamFolderTreeSettings, + queryTeamFolderContentsSettings, + searchTeamFoldersSettings, + getFolderSettings, + createFolderSettings, + updateFolderSettings, + deleteFolderSettings, + deleteFolderTreeSettings, + queryFolderContentsSettings, + queryUserRootContentsSettings, + moveFolderSettings, listRepositoriesSettings, getRepositorySettings, createRepositorySettings, updateRepositorySettings, deleteRepositorySettings, + moveRepositorySettings, commitRepositoryChangesSettings, readRepositoryFileSettings, queryRepositoryDirectoryContentsSettings, @@ -2160,11 +2793,11 @@ protected Builder(DataformStubSettings settings) { queryWorkflowInvocationActionsSettings, getConfigSettings, updateConfigSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings); + setIamPolicySettings, + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); } private static Builder createDefault() { @@ -2192,6 +2825,81 @@ private static Builder createHttpJsonDefault() { } private static Builder initDefaults(Builder builder) { + builder + .getTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTeamFolderTreeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryTeamFolderContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchTeamFoldersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteFolderTreeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryFolderContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryUserRootContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .moveFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listRepositoriesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -2217,6 +2925,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .moveRepositorySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .commitRepositoryChangesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -2463,30 +3176,125 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .listLocationsSettings() + .getIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .getLocationSettings() + .setIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .setIamPolicySettings() + .testIamPermissionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .getIamPolicySettings() + .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .testIamPermissionsSettings() + .getLocationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .deleteTeamFolderTreeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteFolderTreeMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFolderTreeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteFolderTreeMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .moveFolderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(MoveFolderMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .moveRepositoryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(MoveRepositoryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -2505,6 +3313,118 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } + /** Returns the builder for the settings used for calls to getTeamFolder. */ + public UnaryCallSettings.Builder getTeamFolderSettings() { + return getTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to createTeamFolder. */ + public UnaryCallSettings.Builder + createTeamFolderSettings() { + return createTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings.Builder + updateTeamFolderSettings() { + return updateTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings.Builder deleteTeamFolderSettings() { + return deleteTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */ + public UnaryCallSettings.Builder + deleteTeamFolderTreeSettings() { + return deleteTeamFolderTreeSettings; + } + + /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */ + public OperationCallSettings.Builder< + DeleteTeamFolderTreeRequest, Empty, DeleteFolderTreeMetadata> + deleteTeamFolderTreeOperationSettings() { + return deleteTeamFolderTreeOperationSettings; + } + + /** Returns the builder for the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings.Builder< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return queryTeamFolderContentsSettings; + } + + /** Returns the builder for the settings used for calls to searchTeamFolders. */ + public PagedCallSettings.Builder< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return searchTeamFoldersSettings; + } + + /** Returns the builder for the settings used for calls to getFolder. */ + public UnaryCallSettings.Builder getFolderSettings() { + return getFolderSettings; + } + + /** Returns the builder for the settings used for calls to createFolder. */ + public UnaryCallSettings.Builder createFolderSettings() { + return createFolderSettings; + } + + /** Returns the builder for the settings used for calls to updateFolder. */ + public UnaryCallSettings.Builder updateFolderSettings() { + return updateFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteFolder. */ + public UnaryCallSettings.Builder deleteFolderSettings() { + return deleteFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteFolderTree. */ + public UnaryCallSettings.Builder + deleteFolderTreeSettings() { + return deleteFolderTreeSettings; + } + + /** Returns the builder for the settings used for calls to deleteFolderTree. */ + public OperationCallSettings.Builder + deleteFolderTreeOperationSettings() { + return deleteFolderTreeOperationSettings; + } + + /** Returns the builder for the settings used for calls to queryFolderContents. */ + public PagedCallSettings.Builder< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return queryFolderContentsSettings; + } + + /** Returns the builder for the settings used for calls to queryUserRootContents. */ + public PagedCallSettings.Builder< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return queryUserRootContentsSettings; + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public UnaryCallSettings.Builder moveFolderSettings() { + return moveFolderSettings; + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public OperationCallSettings.Builder + moveFolderOperationSettings() { + return moveFolderOperationSettings; + } + /** Returns the builder for the settings used for calls to listRepositories. */ public PagedCallSettings.Builder< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -2534,6 +3454,17 @@ public UnaryCallSettings.Builder deleteRepositor return deleteRepositorySettings; } + /** Returns the builder for the settings used for calls to moveRepository. */ + public UnaryCallSettings.Builder moveRepositorySettings() { + return moveRepositorySettings; + } + + /** Returns the builder for the settings used for calls to moveRepository. */ + public OperationCallSettings.Builder + moveRepositoryOperationSettings() { + return moveRepositoryOperationSettings; + } + /** Returns the builder for the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings.Builder< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> @@ -2851,16 +3782,9 @@ public UnaryCallSettings.Builder updateConfigSettin return updateConfigSettings; } - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - return getLocationSettings; + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; } /** Returns the builder for the settings used for calls to setIamPolicy. */ @@ -2868,17 +3792,24 @@ public UnaryCallSettings.Builder setIamPolicySettin return setIamPolicySettings; } - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - /** Returns the builder for the settings used for calls to testIamPermissions. */ public UnaryCallSettings.Builder testIamPermissionsSettings() { return testIamPermissionsSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + @Override public DataformStubSettings build() throws IOException { return new DataformStubSettings(this); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java index f39a1ecb2700..9cc95b99e6ef 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java @@ -26,15 +26,20 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest; @@ -48,13 +53,20 @@ import com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1.Config; import com.google.cloud.dataform.v1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1.CreateFolderRequest; import com.google.cloud.dataform.v1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1.DeleteWorkspaceRequest; @@ -68,10 +80,13 @@ import com.google.cloud.dataform.v1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1.Folder; import com.google.cloud.dataform.v1.GetCompilationResultRequest; import com.google.cloud.dataform.v1.GetConfigRequest; +import com.google.cloud.dataform.v1.GetFolderRequest; import com.google.cloud.dataform.v1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1.GetRepositoryRequest; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; import com.google.cloud.dataform.v1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1.GetWorkspaceRequest; @@ -95,6 +110,10 @@ import com.google.cloud.dataform.v1.MoveDirectoryResponse; import com.google.cloud.dataform.v1.MoveFileRequest; import com.google.cloud.dataform.v1.MoveFileResponse; +import com.google.cloud.dataform.v1.MoveFolderMetadata; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.cloud.dataform.v1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; import com.google.cloud.dataform.v1.PullGitCommitsRequest; import com.google.cloud.dataform.v1.PullGitCommitsResponse; import com.google.cloud.dataform.v1.PushGitCommitsRequest; @@ -103,8 +122,14 @@ import com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1.ReadFileRequest; @@ -121,9 +146,14 @@ import com.google.cloud.dataform.v1.ResetWorkspaceChangesResponse; import com.google.cloud.dataform.v1.SearchFilesRequest; import com.google.cloud.dataform.v1.SearchFilesResponse; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1.TeamFolder; import com.google.cloud.dataform.v1.UpdateConfigRequest; +import com.google.cloud.dataform.v1.UpdateFolderRequest; import com.google.cloud.dataform.v1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1.WorkflowConfig; import com.google.cloud.dataform.v1.WorkflowInvocation; @@ -139,6 +169,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; @@ -155,6 +186,167 @@ */ @Generated("by gapic-generator-java") public class GrpcDataformStub extends DataformStub { + private static final MethodDescriptor + getTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/UpdateTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteTeamFolderTreeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteTeamFolderTree") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTeamFolderTreeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse> + queryTeamFolderContentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryTeamFolderContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryTeamFolderContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryTeamFolderContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + searchTeamFoldersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/SearchTeamFolders") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchTeamFoldersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchTeamFoldersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetFolder") + .setRequestMarshaller(ProtoUtils.marshaller(GetFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateFolder") + .setRequestMarshaller(ProtoUtils.marshaller(CreateFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/UpdateFolder") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteFolder") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteFolderTreeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteFolderTree") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFolderTreeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryFolderContentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryFolderContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryFolderContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryFolderContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryUserRootContentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryUserRootContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryUserRootContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryUserRootContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor moveFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/MoveFolder") + .setRequestMarshaller(ProtoUtils.marshaller(MoveFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listRepositoriesMethodDescriptor = MethodDescriptor.newBuilder() @@ -211,6 +403,17 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + moveRepositoryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/MoveRepository") + .setRequestMarshaller( + ProtoUtils.marshaller(MoveRepositoryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesMethodDescriptor = @@ -801,50 +1004,29 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor - listLocationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getLocationMethodDescriptor = - MethodDescriptor.newBuilder() + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setFullMethodName("google.cloud.dataform.v1.Dataform/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - private static final MethodDescriptor testIamPermissionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setFullMethodName("google.cloud.dataform.v1.Dataform/TestIamPermissions") .setRequestMarshaller( ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( @@ -852,6 +1034,60 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getTeamFolderCallable; + private final UnaryCallable createTeamFolderCallable; + private final UnaryCallable updateTeamFolderCallable; + private final UnaryCallable deleteTeamFolderCallable; + private final UnaryCallable deleteTeamFolderTreeCallable; + private final OperationCallable + deleteTeamFolderTreeOperationCallable; + private final UnaryCallable + queryTeamFolderContentsCallable; + private final UnaryCallable + queryTeamFolderContentsPagedCallable; + private final UnaryCallable + searchTeamFoldersCallable; + private final UnaryCallable + searchTeamFoldersPagedCallable; + private final UnaryCallable getFolderCallable; + private final UnaryCallable createFolderCallable; + private final UnaryCallable updateFolderCallable; + private final UnaryCallable deleteFolderCallable; + private final UnaryCallable deleteFolderTreeCallable; + private final OperationCallable + deleteFolderTreeOperationCallable; + private final UnaryCallable + queryFolderContentsCallable; + private final UnaryCallable + queryFolderContentsPagedCallable; + private final UnaryCallable + queryUserRootContentsCallable; + private final UnaryCallable + queryUserRootContentsPagedCallable; + private final UnaryCallable moveFolderCallable; + private final OperationCallable + moveFolderOperationCallable; private final UnaryCallable listRepositoriesCallable; private final UnaryCallable @@ -860,6 +1096,9 @@ public class GrpcDataformStub extends DataformStub { private final UnaryCallable createRepositoryCallable; private final UnaryCallable updateRepositoryCallable; private final UnaryCallable deleteRepositoryCallable; + private final UnaryCallable moveRepositoryCallable; + private final OperationCallable + moveRepositoryOperationCallable; private final UnaryCallable commitRepositoryChangesCallable; private final UnaryCallable @@ -967,14 +1206,14 @@ public class GrpcDataformStub extends DataformStub { queryWorkflowInvocationActionsPagedCallable; private final UnaryCallable getConfigCallable; private final UnaryCallable updateConfigCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -1015,6 +1254,176 @@ protected GrpcDataformStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings getTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "team_folder.name", String.valueOf(request.getTeamFolder().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteTeamFolderTreeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderTreeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + queryTeamFolderContentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryTeamFolderContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("team_folder", String.valueOf(request.getTeamFolder())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getTeamFolder()) + .build(); + GrpcCallSettings + searchTeamFoldersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchTeamFoldersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); + GrpcCallSettings getFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder.name", String.valueOf(request.getFolder().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteFolderTreeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderTreeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + queryFolderContentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryFolderContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder", String.valueOf(request.getFolder())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getFolder()) + .build(); + GrpcCallSettings + queryUserRootContentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryUserRootContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); + GrpcCallSettings moveFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(moveFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listRepositoriesTransportSettings = GrpcCallSettings.newBuilder() @@ -1025,6 +1434,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1035,6 +1445,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1045,6 +1456,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1065,6 +1477,18 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings moveRepositoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(moveRepositoryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings commitRepositoryChangesTransportSettings = @@ -1077,6 +1501,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings readRepositoryFileTransportSettings = @@ -1088,6 +1513,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> @@ -1102,6 +1528,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchRepositoryHistoryTransportSettings = @@ -1114,6 +1541,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings< ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> @@ -1129,6 +1557,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchRemoteBranchesTransportSettings = @@ -1140,6 +1569,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkspacesTransportSettings = @@ -1151,6 +1581,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1161,6 +1592,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1171,6 +1603,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1181,6 +1614,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings installNpmPackagesTransportSettings = @@ -1192,6 +1626,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings pullGitCommitsTransportSettings = @@ -1203,6 +1638,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings pushGitCommitsTransportSettings = @@ -1214,6 +1650,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchFileGitStatusesTransportSettings = @@ -1225,6 +1662,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchGitAheadBehindTransportSettings = @@ -1236,6 +1674,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings commitWorkspaceChangesTransportSettings = @@ -1248,6 +1687,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings resetWorkspaceChangesTransportSettings = @@ -1260,6 +1700,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchFileDiffTransportSettings = GrpcCallSettings.newBuilder() @@ -1270,6 +1711,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings queryDirectoryContentsTransportSettings = @@ -1282,6 +1724,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings searchFilesTransportSettings = GrpcCallSettings.newBuilder() @@ -1292,6 +1735,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings makeDirectoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1302,6 +1746,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings removeDirectoryTransportSettings = @@ -1313,6 +1758,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings moveDirectoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1323,6 +1769,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings readFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1333,6 +1780,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings removeFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1343,6 +1791,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings moveFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1353,6 +1802,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings writeFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1363,6 +1813,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings listReleaseConfigsTransportSettings = @@ -1374,6 +1825,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getReleaseConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1384,6 +1836,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createReleaseConfigTransportSettings = @@ -1395,6 +1848,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateReleaseConfigTransportSettings = @@ -1418,6 +1872,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listCompilationResultsTransportSettings = @@ -1430,6 +1885,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getCompilationResultTransportSettings = @@ -1441,6 +1897,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createCompilationResultTransportSettings = @@ -1452,6 +1909,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings queryCompilationResultActionsTransportSettings = @@ -1465,6 +1923,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkflowConfigsTransportSettings = @@ -1476,6 +1935,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkflowConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1486,6 +1946,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkflowConfigTransportSettings = @@ -1497,6 +1958,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateWorkflowConfigTransportSettings = @@ -1520,6 +1982,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkflowInvocationsTransportSettings = @@ -1532,6 +1995,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkflowInvocationTransportSettings = @@ -1543,6 +2007,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkflowInvocationTransportSettings = @@ -1554,6 +2019,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteWorkflowInvocationTransportSettings = @@ -1565,6 +2031,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings cancelWorkflowInvocationTransportSettings = @@ -1577,6 +2044,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings queryWorkflowInvocationActionsTransportSettings = @@ -1590,6 +2058,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1600,6 +2069,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1611,25 +2081,16 @@ protected GrpcDataformStub( return builder.build(); }) .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getLocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -1640,16 +2101,7 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -1661,8 +2113,122 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + this.getTeamFolderCallable = + callableFactory.createUnaryCallable( + getTeamFolderTransportSettings, settings.getTeamFolderSettings(), clientContext); + this.createTeamFolderCallable = + callableFactory.createUnaryCallable( + createTeamFolderTransportSettings, settings.createTeamFolderSettings(), clientContext); + this.updateTeamFolderCallable = + callableFactory.createUnaryCallable( + updateTeamFolderTransportSettings, settings.updateTeamFolderSettings(), clientContext); + this.deleteTeamFolderCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTransportSettings, settings.deleteTeamFolderSettings(), clientContext); + this.deleteTeamFolderTreeCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTreeTransportSettings, + settings.deleteTeamFolderTreeSettings(), + clientContext); + this.deleteTeamFolderTreeOperationCallable = + callableFactory.createOperationCallable( + deleteTeamFolderTreeTransportSettings, + settings.deleteTeamFolderTreeOperationSettings(), + clientContext, + operationsStub); + this.queryTeamFolderContentsCallable = + callableFactory.createUnaryCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.queryTeamFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.searchTeamFoldersCallable = + callableFactory.createUnaryCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.searchTeamFoldersPagedCallable = + callableFactory.createPagedCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.getFolderCallable = + callableFactory.createUnaryCallable( + getFolderTransportSettings, settings.getFolderSettings(), clientContext); + this.createFolderCallable = + callableFactory.createUnaryCallable( + createFolderTransportSettings, settings.createFolderSettings(), clientContext); + this.updateFolderCallable = + callableFactory.createUnaryCallable( + updateFolderTransportSettings, settings.updateFolderSettings(), clientContext); + this.deleteFolderCallable = + callableFactory.createUnaryCallable( + deleteFolderTransportSettings, settings.deleteFolderSettings(), clientContext); + this.deleteFolderTreeCallable = + callableFactory.createUnaryCallable( + deleteFolderTreeTransportSettings, settings.deleteFolderTreeSettings(), clientContext); + this.deleteFolderTreeOperationCallable = + callableFactory.createOperationCallable( + deleteFolderTreeTransportSettings, + settings.deleteFolderTreeOperationSettings(), + clientContext, + operationsStub); + this.queryFolderContentsCallable = + callableFactory.createUnaryCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryUserRootContentsCallable = + callableFactory.createUnaryCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.queryUserRootContentsPagedCallable = + callableFactory.createPagedCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.moveFolderCallable = + callableFactory.createUnaryCallable( + moveFolderTransportSettings, settings.moveFolderSettings(), clientContext); + this.moveFolderOperationCallable = + callableFactory.createOperationCallable( + moveFolderTransportSettings, + settings.moveFolderOperationSettings(), + clientContext, + operationsStub); this.listRepositoriesCallable = callableFactory.createUnaryCallable( listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); @@ -1681,6 +2247,15 @@ protected GrpcDataformStub( this.deleteRepositoryCallable = callableFactory.createUnaryCallable( deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); + this.moveRepositoryCallable = + callableFactory.createUnaryCallable( + moveRepositoryTransportSettings, settings.moveRepositorySettings(), clientContext); + this.moveRepositoryOperationCallable = + callableFactory.createOperationCallable( + moveRepositoryTransportSettings, + settings.moveRepositoryOperationSettings(), + clientContext, + operationsStub); this.commitRepositoryChangesCallable = callableFactory.createUnaryCallable( commitRepositoryChangesTransportSettings, @@ -1941,26 +2516,26 @@ protected GrpcDataformStub( this.updateConfigCallable = callableFactory.createUnaryCallable( updateConfigTransportSettings, settings.updateConfigSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = + this.getIamPolicyCallable = callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1970,6 +2545,127 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override + public UnaryCallable getTeamFolderCallable() { + return getTeamFolderCallable; + } + + @Override + public UnaryCallable createTeamFolderCallable() { + return createTeamFolderCallable; + } + + @Override + public UnaryCallable updateTeamFolderCallable() { + return updateTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderCallable() { + return deleteTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderTreeCallable() { + return deleteTeamFolderTreeCallable; + } + + @Override + public OperationCallable + deleteTeamFolderTreeOperationCallable() { + return deleteTeamFolderTreeOperationCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsCallable() { + return queryTeamFolderContentsCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsPagedCallable() { + return queryTeamFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersCallable() { + return searchTeamFoldersCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersPagedCallable() { + return searchTeamFoldersPagedCallable; + } + + @Override + public UnaryCallable getFolderCallable() { + return getFolderCallable; + } + + @Override + public UnaryCallable createFolderCallable() { + return createFolderCallable; + } + + @Override + public UnaryCallable updateFolderCallable() { + return updateFolderCallable; + } + + @Override + public UnaryCallable deleteFolderCallable() { + return deleteFolderCallable; + } + + @Override + public UnaryCallable deleteFolderTreeCallable() { + return deleteFolderTreeCallable; + } + + @Override + public OperationCallable + deleteFolderTreeOperationCallable() { + return deleteFolderTreeOperationCallable; + } + + @Override + public UnaryCallable + queryFolderContentsCallable() { + return queryFolderContentsCallable; + } + + @Override + public UnaryCallable + queryFolderContentsPagedCallable() { + return queryFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsCallable() { + return queryUserRootContentsCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsPagedCallable() { + return queryUserRootContentsPagedCallable; + } + + @Override + public UnaryCallable moveFolderCallable() { + return moveFolderCallable; + } + + @Override + public OperationCallable + moveFolderOperationCallable() { + return moveFolderOperationCallable; + } + @Override public UnaryCallable listRepositoriesCallable() { @@ -2002,6 +2698,17 @@ public UnaryCallable deleteRepositoryCallable() return deleteRepositoryCallable; } + @Override + public UnaryCallable moveRepositoryCallable() { + return moveRepositoryCallable; + } + + @Override + public OperationCallable + moveRepositoryOperationCallable() { + return moveRepositoryOperationCallable; + } + @Override public UnaryCallable commitRepositoryChangesCallable() { @@ -2342,35 +3049,35 @@ public UnaryCallable updateConfigCallable() { } @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; } @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; } @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; } @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; } @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; } @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; + public UnaryCallable getLocationCallable() { + return getLocationCallable; } @Override diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java index b303ccf12444..43b09613460f 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java @@ -26,20 +26,28 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; +import com.google.api.HttpRule; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.httpjson.ApiMethodDescriptor; import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest; @@ -53,13 +61,20 @@ import com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1.Config; import com.google.cloud.dataform.v1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1.CreateFolderRequest; import com.google.cloud.dataform.v1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1.DeleteWorkspaceRequest; @@ -73,10 +88,13 @@ import com.google.cloud.dataform.v1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1.Folder; import com.google.cloud.dataform.v1.GetCompilationResultRequest; import com.google.cloud.dataform.v1.GetConfigRequest; +import com.google.cloud.dataform.v1.GetFolderRequest; import com.google.cloud.dataform.v1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1.GetRepositoryRequest; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; import com.google.cloud.dataform.v1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1.GetWorkspaceRequest; @@ -100,6 +118,10 @@ import com.google.cloud.dataform.v1.MoveDirectoryResponse; import com.google.cloud.dataform.v1.MoveFileRequest; import com.google.cloud.dataform.v1.MoveFileResponse; +import com.google.cloud.dataform.v1.MoveFolderMetadata; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.cloud.dataform.v1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; import com.google.cloud.dataform.v1.PullGitCommitsRequest; import com.google.cloud.dataform.v1.PullGitCommitsResponse; import com.google.cloud.dataform.v1.PushGitCommitsRequest; @@ -108,8 +130,14 @@ import com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1.ReadFileRequest; @@ -126,9 +154,14 @@ import com.google.cloud.dataform.v1.ResetWorkspaceChangesResponse; import com.google.cloud.dataform.v1.SearchFilesRequest; import com.google.cloud.dataform.v1.SearchFilesResponse; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1.TeamFolder; import com.google.cloud.dataform.v1.UpdateConfigRequest; +import com.google.cloud.dataform.v1.UpdateFolderRequest; import com.google.cloud.dataform.v1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1.WorkflowConfig; import com.google.cloud.dataform.v1.WorkflowInvocation; @@ -139,11 +172,13 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -162,7 +197,576 @@ */ @Generated("by gapic-generator-java") public class HttpJsonDataformStub extends DataformStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(MoveFolderMetadata.getDescriptor()) + .add(MoveRepositoryMetadata.getDescriptor()) + .add(DeleteFolderTreeMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetTeamFolder") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateTeamFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/teamFolders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("teamFolder", request.getTeamFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/UpdateTeamFolder") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{teamFolder.name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "teamFolder.name", request.getTeamFolder().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("teamFolder", request.getTeamFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteTeamFolder") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteTeamFolderTreeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteTeamFolderTree") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteTeamFolderTreeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse> + queryTeamFolderContentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryTeamFolderContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{teamFolder=projects/*/locations/*/teamFolders/*}:queryContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "teamFolder", request.getTeamFolder()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryTeamFolderContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchTeamFoldersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/SearchTeamFolders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{location=projects/*/locations/*}/teamFolders:search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "location", request.getLocation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchTeamFoldersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetFolder") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/folders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("folder", request.getFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/UpdateFolder") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{folder.name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "folder.name", request.getFolder().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("folder", request.getFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteFolder") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteFolderTreeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteFolderTree") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/folders/*}:deleteTree", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteFolderTreeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + queryFolderContentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryFolderContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "folder", request.getFolder()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryFolderContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + QueryUserRootContentsRequest, QueryUserRootContentsResponse> + queryUserRootContentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryUserRootContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{location=projects/*/locations/*}:queryUserRootContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "location", request.getLocation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryUserRootContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + moveFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/MoveFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/folders/*}:move", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (MoveFolderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); private static final ApiMethodDescriptor listRepositoriesMethodDescriptor = @@ -349,6 +953,46 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + moveRepositoryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/MoveRepository") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/repositories/*}:move", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (MoveRepositoryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesMethodDescriptor = @@ -1049,6 +1693,7 @@ public class HttpJsonDataformStub extends DataformStub { serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "path", request.getPath()); + serializer.putQueryParam(fields, "view", request.getViewValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -2172,97 +2817,111 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); - private static final ApiMethodDescriptor - listLocationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/ListLocations") + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetIamPolicy") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*}/locations", + "/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy", + "/v1/{resource=projects/*/locations/*/folders/*}:getIamPolicy", + "/v1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getLocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setHttpMethod("GET") + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/SetIamPolicy") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*/locations/*}", + "/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy", + "/v1/{resource=projects/*/locations/*/folders/*}:setIamPolicy", + "/v1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Location.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/TestIamPermissions") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy", + "/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy") + "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions", + "/v1/{resource=projects/*/locations/*/folders/*}:testIamPermissions", + "/v1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -2273,35 +2932,33 @@ public class HttpJsonDataformStub extends DataformStub { .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy", + "/v1/{name=projects/*}/locations", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -2309,51 +2966,79 @@ public class HttpJsonDataformStub extends DataformStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") - .setHttpMethod("POST") + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions", + "/v1/{name=projects/*/locations/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); + private final UnaryCallable getTeamFolderCallable; + private final UnaryCallable createTeamFolderCallable; + private final UnaryCallable updateTeamFolderCallable; + private final UnaryCallable deleteTeamFolderCallable; + private final UnaryCallable deleteTeamFolderTreeCallable; + private final OperationCallable + deleteTeamFolderTreeOperationCallable; + private final UnaryCallable + queryTeamFolderContentsCallable; + private final UnaryCallable + queryTeamFolderContentsPagedCallable; + private final UnaryCallable + searchTeamFoldersCallable; + private final UnaryCallable + searchTeamFoldersPagedCallable; + private final UnaryCallable getFolderCallable; + private final UnaryCallable createFolderCallable; + private final UnaryCallable updateFolderCallable; + private final UnaryCallable deleteFolderCallable; + private final UnaryCallable deleteFolderTreeCallable; + private final OperationCallable + deleteFolderTreeOperationCallable; + private final UnaryCallable + queryFolderContentsCallable; + private final UnaryCallable + queryFolderContentsPagedCallable; + private final UnaryCallable + queryUserRootContentsCallable; + private final UnaryCallable + queryUserRootContentsPagedCallable; + private final UnaryCallable moveFolderCallable; + private final OperationCallable + moveFolderOperationCallable; private final UnaryCallable listRepositoriesCallable; private final UnaryCallable @@ -2362,6 +3047,9 @@ public class HttpJsonDataformStub extends DataformStub { private final UnaryCallable createRepositoryCallable; private final UnaryCallable updateRepositoryCallable; private final UnaryCallable deleteRepositoryCallable; + private final UnaryCallable moveRepositoryCallable; + private final OperationCallable + moveRepositoryOperationCallable; private final UnaryCallable commitRepositoryChangesCallable; private final UnaryCallable @@ -2469,16 +3157,17 @@ public class HttpJsonDataformStub extends DataformStub { queryWorkflowInvocationActionsPagedCallable; private final UnaryCallable getConfigCallable; private final UnaryCallable updateConfigCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonDataformStub create(DataformStubSettings settings) @@ -2518,7 +3207,221 @@ protected HttpJsonDataformStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings getTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "team_folder.name", String.valueOf(request.getTeamFolder().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + deleteTeamFolderTreeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderTreeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + queryTeamFolderContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryTeamFolderContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("team_folder", String.valueOf(request.getTeamFolder())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getTeamFolder()) + .build(); + HttpJsonCallSettings + searchTeamFoldersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchTeamFoldersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); + HttpJsonCallSettings getFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder.name", String.valueOf(request.getFolder().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings deleteFolderTreeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderTreeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + queryFolderContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryFolderContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder", String.valueOf(request.getFolder())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getFolder()) + .build(); + HttpJsonCallSettings + queryUserRootContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryUserRootContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); + HttpJsonCallSettings moveFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(moveFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listRepositoriesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2530,6 +3433,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2541,6 +3445,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2552,6 +3457,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2574,6 +3480,19 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings moveRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(moveRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings commitRepositoryChangesTransportSettings = @@ -2587,6 +3506,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings readRepositoryFileTransportSettings = @@ -2599,6 +3519,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> @@ -2614,6 +3535,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchRepositoryHistoryTransportSettings = @@ -2627,6 +3549,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> @@ -2643,6 +3566,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchRemoteBranchesTransportSettings = @@ -2656,6 +3580,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkspacesTransportSettings = @@ -2668,6 +3593,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2679,6 +3605,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2690,6 +3617,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2701,6 +3629,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings installNpmPackagesTransportSettings = @@ -2713,6 +3642,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings pullGitCommitsTransportSettings = @@ -2725,6 +3655,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings pushGitCommitsTransportSettings = @@ -2737,6 +3668,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchFileGitStatusesTransportSettings = @@ -2750,6 +3682,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchGitAheadBehindTransportSettings = @@ -2763,6 +3696,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings commitWorkspaceChangesTransportSettings = @@ -2776,6 +3710,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings resetWorkspaceChangesTransportSettings = @@ -2789,6 +3724,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchFileDiffTransportSettings = @@ -2801,6 +3737,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings queryDirectoryContentsTransportSettings = @@ -2814,6 +3751,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings searchFilesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2825,6 +3763,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings makeDirectoryTransportSettings = @@ -2837,6 +3776,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings removeDirectoryTransportSettings = @@ -2849,6 +3789,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings moveDirectoryTransportSettings = @@ -2861,6 +3802,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings readFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2872,6 +3814,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings removeFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2883,6 +3826,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings moveFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2894,6 +3838,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings writeFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2905,6 +3850,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings listReleaseConfigsTransportSettings = @@ -2917,6 +3863,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getReleaseConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2928,6 +3875,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createReleaseConfigTransportSettings = @@ -2940,6 +3888,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateReleaseConfigTransportSettings = @@ -2965,6 +3914,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listCompilationResultsTransportSettings = @@ -2978,6 +3928,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getCompilationResultTransportSettings = @@ -2990,6 +3941,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createCompilationResultTransportSettings = @@ -3002,6 +3954,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> @@ -3017,6 +3970,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkflowConfigsTransportSettings = @@ -3030,6 +3984,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkflowConfigTransportSettings = @@ -3042,6 +3997,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkflowConfigTransportSettings = @@ -3054,6 +4010,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateWorkflowConfigTransportSettings = @@ -3079,6 +4036,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkflowInvocationsTransportSettings = @@ -3092,6 +4050,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkflowInvocationTransportSettings = @@ -3104,6 +4063,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkflowInvocationTransportSettings = @@ -3116,6 +4076,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteWorkflowInvocationTransportSettings = @@ -3128,6 +4089,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings cancelWorkflowInvocationTransportSettings = @@ -3141,6 +4103,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> @@ -3156,6 +4119,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3167,6 +4131,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3179,28 +4144,17 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listLocationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getLocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings setIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3212,17 +4166,7 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) - .build(); - HttpJsonCallSettings getIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -3235,8 +4179,125 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + this.getTeamFolderCallable = + callableFactory.createUnaryCallable( + getTeamFolderTransportSettings, settings.getTeamFolderSettings(), clientContext); + this.createTeamFolderCallable = + callableFactory.createUnaryCallable( + createTeamFolderTransportSettings, settings.createTeamFolderSettings(), clientContext); + this.updateTeamFolderCallable = + callableFactory.createUnaryCallable( + updateTeamFolderTransportSettings, settings.updateTeamFolderSettings(), clientContext); + this.deleteTeamFolderCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTransportSettings, settings.deleteTeamFolderSettings(), clientContext); + this.deleteTeamFolderTreeCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTreeTransportSettings, + settings.deleteTeamFolderTreeSettings(), + clientContext); + this.deleteTeamFolderTreeOperationCallable = + callableFactory.createOperationCallable( + deleteTeamFolderTreeTransportSettings, + settings.deleteTeamFolderTreeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.queryTeamFolderContentsCallable = + callableFactory.createUnaryCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.queryTeamFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.searchTeamFoldersCallable = + callableFactory.createUnaryCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.searchTeamFoldersPagedCallable = + callableFactory.createPagedCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.getFolderCallable = + callableFactory.createUnaryCallable( + getFolderTransportSettings, settings.getFolderSettings(), clientContext); + this.createFolderCallable = + callableFactory.createUnaryCallable( + createFolderTransportSettings, settings.createFolderSettings(), clientContext); + this.updateFolderCallable = + callableFactory.createUnaryCallable( + updateFolderTransportSettings, settings.updateFolderSettings(), clientContext); + this.deleteFolderCallable = + callableFactory.createUnaryCallable( + deleteFolderTransportSettings, settings.deleteFolderSettings(), clientContext); + this.deleteFolderTreeCallable = + callableFactory.createUnaryCallable( + deleteFolderTreeTransportSettings, settings.deleteFolderTreeSettings(), clientContext); + this.deleteFolderTreeOperationCallable = + callableFactory.createOperationCallable( + deleteFolderTreeTransportSettings, + settings.deleteFolderTreeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.queryFolderContentsCallable = + callableFactory.createUnaryCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryUserRootContentsCallable = + callableFactory.createUnaryCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.queryUserRootContentsPagedCallable = + callableFactory.createPagedCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.moveFolderCallable = + callableFactory.createUnaryCallable( + moveFolderTransportSettings, settings.moveFolderSettings(), clientContext); + this.moveFolderOperationCallable = + callableFactory.createOperationCallable( + moveFolderTransportSettings, + settings.moveFolderOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listRepositoriesCallable = callableFactory.createUnaryCallable( listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); @@ -3255,6 +4316,15 @@ protected HttpJsonDataformStub( this.deleteRepositoryCallable = callableFactory.createUnaryCallable( deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); + this.moveRepositoryCallable = + callableFactory.createUnaryCallable( + moveRepositoryTransportSettings, settings.moveRepositorySettings(), clientContext); + this.moveRepositoryOperationCallable = + callableFactory.createOperationCallable( + moveRepositoryTransportSettings, + settings.moveRepositoryOperationSettings(), + clientContext, + httpJsonOperationsStub); this.commitRepositoryChangesCallable = callableFactory.createUnaryCallable( commitRepositoryChangesTransportSettings, @@ -3515,26 +4585,26 @@ protected HttpJsonDataformStub( this.updateConfigCallable = callableFactory.createUnaryCallable( updateConfigTransportSettings, settings.updateConfigSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = + this.getIamPolicyCallable = callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -3543,11 +4613,27 @@ protected HttpJsonDataformStub( @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getTeamFolderMethodDescriptor); + methodDescriptors.add(createTeamFolderMethodDescriptor); + methodDescriptors.add(updateTeamFolderMethodDescriptor); + methodDescriptors.add(deleteTeamFolderMethodDescriptor); + methodDescriptors.add(deleteTeamFolderTreeMethodDescriptor); + methodDescriptors.add(queryTeamFolderContentsMethodDescriptor); + methodDescriptors.add(searchTeamFoldersMethodDescriptor); + methodDescriptors.add(getFolderMethodDescriptor); + methodDescriptors.add(createFolderMethodDescriptor); + methodDescriptors.add(updateFolderMethodDescriptor); + methodDescriptors.add(deleteFolderMethodDescriptor); + methodDescriptors.add(deleteFolderTreeMethodDescriptor); + methodDescriptors.add(queryFolderContentsMethodDescriptor); + methodDescriptors.add(queryUserRootContentsMethodDescriptor); + methodDescriptors.add(moveFolderMethodDescriptor); methodDescriptors.add(listRepositoriesMethodDescriptor); methodDescriptors.add(getRepositoryMethodDescriptor); methodDescriptors.add(createRepositoryMethodDescriptor); methodDescriptors.add(updateRepositoryMethodDescriptor); methodDescriptors.add(deleteRepositoryMethodDescriptor); + methodDescriptors.add(moveRepositoryMethodDescriptor); methodDescriptors.add(commitRepositoryChangesMethodDescriptor); methodDescriptors.add(readRepositoryFileMethodDescriptor); methodDescriptors.add(queryRepositoryDirectoryContentsMethodDescriptor); @@ -3597,14 +4683,139 @@ public static List getMethodDescriptors() { methodDescriptors.add(queryWorkflowInvocationActionsMethodDescriptor); methodDescriptors.add(getConfigMethodDescriptor); methodDescriptors.add(updateConfigMethodDescriptor); - methodDescriptors.add(listLocationsMethodDescriptor); - methodDescriptors.add(getLocationMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; } + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getTeamFolderCallable() { + return getTeamFolderCallable; + } + + @Override + public UnaryCallable createTeamFolderCallable() { + return createTeamFolderCallable; + } + + @Override + public UnaryCallable updateTeamFolderCallable() { + return updateTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderCallable() { + return deleteTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderTreeCallable() { + return deleteTeamFolderTreeCallable; + } + + @Override + public OperationCallable + deleteTeamFolderTreeOperationCallable() { + return deleteTeamFolderTreeOperationCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsCallable() { + return queryTeamFolderContentsCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsPagedCallable() { + return queryTeamFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersCallable() { + return searchTeamFoldersCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersPagedCallable() { + return searchTeamFoldersPagedCallable; + } + + @Override + public UnaryCallable getFolderCallable() { + return getFolderCallable; + } + + @Override + public UnaryCallable createFolderCallable() { + return createFolderCallable; + } + + @Override + public UnaryCallable updateFolderCallable() { + return updateFolderCallable; + } + + @Override + public UnaryCallable deleteFolderCallable() { + return deleteFolderCallable; + } + + @Override + public UnaryCallable deleteFolderTreeCallable() { + return deleteFolderTreeCallable; + } + + @Override + public OperationCallable + deleteFolderTreeOperationCallable() { + return deleteFolderTreeOperationCallable; + } + + @Override + public UnaryCallable + queryFolderContentsCallable() { + return queryFolderContentsCallable; + } + + @Override + public UnaryCallable + queryFolderContentsPagedCallable() { + return queryFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsCallable() { + return queryUserRootContentsCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsPagedCallable() { + return queryUserRootContentsPagedCallable; + } + + @Override + public UnaryCallable moveFolderCallable() { + return moveFolderCallable; + } + + @Override + public OperationCallable + moveFolderOperationCallable() { + return moveFolderOperationCallable; + } + @Override public UnaryCallable listRepositoriesCallable() { @@ -3637,6 +4848,17 @@ public UnaryCallable deleteRepositoryCallable() return deleteRepositoryCallable; } + @Override + public UnaryCallable moveRepositoryCallable() { + return moveRepositoryCallable; + } + + @Override + public OperationCallable + moveRepositoryOperationCallable() { + return moveRepositoryOperationCallable; + } + @Override public UnaryCallable commitRepositoryChangesCallable() { @@ -3977,35 +5199,35 @@ public UnaryCallable updateConfigCallable() { } @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; } @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; } @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; } @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; } @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; } @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; + public UnaryCallable getLocationCallable() { + return getLocationCallable; } @Override diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java new file mode 100644 index 000000000000..07c281f382e8 --- /dev/null +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-dataform:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java index 609ace274100..c6f2a230c9a8 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -2203,6 +2203,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataform") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java index eeaa0a03de7b..6b38431ce657 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java @@ -1236,6 +1236,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createTeamFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1246,6 +1247,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateTeamFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1267,6 +1269,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings queryTeamFolderContentsTransportSettings = @@ -1279,6 +1282,7 @@ protected GrpcDataformStub( builder.add("team_folder", String.valueOf(request.getTeamFolder())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTeamFolder()) .build(); GrpcCallSettings searchTeamFoldersTransportSettings = @@ -1290,6 +1294,7 @@ protected GrpcDataformStub( builder.add("location", String.valueOf(request.getLocation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getLocation()) .build(); GrpcCallSettings getFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1300,6 +1305,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1310,6 +1316,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1330,6 +1337,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings queryFolderContentsTransportSettings = @@ -1341,6 +1349,7 @@ protected GrpcDataformStub( builder.add("folder", String.valueOf(request.getFolder())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getFolder()) .build(); GrpcCallSettings queryUserRootContentsTransportSettings = @@ -1353,6 +1362,7 @@ protected GrpcDataformStub( builder.add("location", String.valueOf(request.getLocation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getLocation()) .build(); GrpcCallSettings moveFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1363,6 +1373,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listRepositoriesTransportSettings = @@ -1374,6 +1385,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1384,6 +1396,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1394,6 +1407,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1414,6 +1428,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings moveRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1424,6 +1439,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings commitRepositoryChangesTransportSettings = @@ -1436,6 +1452,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings readRepositoryFileTransportSettings = @@ -1447,6 +1464,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> @@ -1461,6 +1479,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchRepositoryHistoryTransportSettings = @@ -1473,6 +1492,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings< ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> @@ -1488,6 +1508,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchRemoteBranchesTransportSettings = @@ -1499,6 +1520,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkspacesTransportSettings = @@ -1510,6 +1532,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1520,6 +1543,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1530,6 +1554,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1540,6 +1565,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings installNpmPackagesTransportSettings = @@ -1551,6 +1577,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings pullGitCommitsTransportSettings = @@ -1562,6 +1589,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings pushGitCommitsTransportSettings = @@ -1573,6 +1601,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchFileGitStatusesTransportSettings = @@ -1584,6 +1613,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchGitAheadBehindTransportSettings = @@ -1595,6 +1625,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings commitWorkspaceChangesTransportSettings = @@ -1607,6 +1638,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings resetWorkspaceChangesTransportSettings = @@ -1619,6 +1651,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchFileDiffTransportSettings = GrpcCallSettings.newBuilder() @@ -1629,6 +1662,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings queryDirectoryContentsTransportSettings = @@ -1641,6 +1675,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings searchFilesTransportSettings = GrpcCallSettings.newBuilder() @@ -1651,6 +1686,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings makeDirectoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1661,6 +1697,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings removeDirectoryTransportSettings = @@ -1672,6 +1709,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings moveDirectoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1682,6 +1720,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings readFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1692,6 +1731,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings removeFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1702,6 +1742,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings moveFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1712,6 +1753,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings writeFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1722,6 +1764,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings listReleaseConfigsTransportSettings = @@ -1733,6 +1776,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getReleaseConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1743,6 +1787,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createReleaseConfigTransportSettings = @@ -1754,6 +1799,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateReleaseConfigTransportSettings = @@ -1777,6 +1823,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listCompilationResultsTransportSettings = @@ -1789,6 +1836,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getCompilationResultTransportSettings = @@ -1800,6 +1848,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createCompilationResultTransportSettings = @@ -1811,6 +1860,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings queryCompilationResultActionsTransportSettings = @@ -1824,6 +1874,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkflowConfigsTransportSettings = @@ -1835,6 +1886,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkflowConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1845,6 +1897,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkflowConfigTransportSettings = @@ -1856,6 +1909,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateWorkflowConfigTransportSettings = @@ -1879,6 +1933,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkflowInvocationsTransportSettings = @@ -1891,6 +1946,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkflowInvocationTransportSettings = @@ -1902,6 +1958,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkflowInvocationTransportSettings = @@ -1913,6 +1970,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteWorkflowInvocationTransportSettings = @@ -1924,6 +1982,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings cancelWorkflowInvocationTransportSettings = @@ -1936,6 +1995,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings queryWorkflowInvocationActionsTransportSettings = @@ -1949,6 +2009,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1959,6 +2020,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1979,6 +2041,7 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -1989,6 +2052,7 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -2000,6 +2064,7 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java index cd546c3392b8..854ccedcfc0c 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java @@ -3161,6 +3161,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createTeamFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3172,6 +3173,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateTeamFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3195,6 +3197,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings queryTeamFolderContentsTransportSettings = @@ -3208,6 +3211,7 @@ protected HttpJsonDataformStub( builder.add("team_folder", String.valueOf(request.getTeamFolder())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTeamFolder()) .build(); HttpJsonCallSettings searchTeamFoldersTransportSettings = @@ -3220,6 +3224,7 @@ protected HttpJsonDataformStub( builder.add("location", String.valueOf(request.getLocation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getLocation()) .build(); HttpJsonCallSettings getFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3231,6 +3236,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3242,6 +3248,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3264,6 +3271,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings queryFolderContentsTransportSettings = @@ -3277,6 +3285,7 @@ protected HttpJsonDataformStub( builder.add("folder", String.valueOf(request.getFolder())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getFolder()) .build(); HttpJsonCallSettings queryUserRootContentsTransportSettings = @@ -3290,6 +3299,7 @@ protected HttpJsonDataformStub( builder.add("location", String.valueOf(request.getLocation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getLocation()) .build(); HttpJsonCallSettings moveFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3301,6 +3311,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listRepositoriesTransportSettings = @@ -3313,6 +3324,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3324,6 +3336,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3335,6 +3348,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3357,6 +3371,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings moveRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3368,6 +3383,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings commitRepositoryChangesTransportSettings = @@ -3381,6 +3397,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings readRepositoryFileTransportSettings = @@ -3393,6 +3410,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> @@ -3408,6 +3426,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchRepositoryHistoryTransportSettings = @@ -3421,6 +3440,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> @@ -3437,6 +3457,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchRemoteBranchesTransportSettings = @@ -3450,6 +3471,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkspacesTransportSettings = @@ -3462,6 +3484,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3473,6 +3496,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3484,6 +3508,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3495,6 +3520,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings installNpmPackagesTransportSettings = @@ -3507,6 +3533,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings pullGitCommitsTransportSettings = @@ -3519,6 +3546,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings pushGitCommitsTransportSettings = @@ -3531,6 +3559,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchFileGitStatusesTransportSettings = @@ -3544,6 +3573,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchGitAheadBehindTransportSettings = @@ -3557,6 +3587,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings commitWorkspaceChangesTransportSettings = @@ -3570,6 +3601,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings resetWorkspaceChangesTransportSettings = @@ -3583,6 +3615,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchFileDiffTransportSettings = @@ -3595,6 +3628,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings queryDirectoryContentsTransportSettings = @@ -3608,6 +3642,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings searchFilesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3619,6 +3654,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings makeDirectoryTransportSettings = @@ -3631,6 +3667,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings removeDirectoryTransportSettings = @@ -3643,6 +3680,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings moveDirectoryTransportSettings = @@ -3655,6 +3693,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings readFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3666,6 +3705,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings removeFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3677,6 +3717,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings moveFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3688,6 +3729,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings writeFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3699,6 +3741,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings listReleaseConfigsTransportSettings = @@ -3711,6 +3754,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getReleaseConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3722,6 +3766,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createReleaseConfigTransportSettings = @@ -3734,6 +3779,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateReleaseConfigTransportSettings = @@ -3759,6 +3805,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listCompilationResultsTransportSettings = @@ -3772,6 +3819,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getCompilationResultTransportSettings = @@ -3784,6 +3832,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createCompilationResultTransportSettings = @@ -3796,6 +3845,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> @@ -3811,6 +3861,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkflowConfigsTransportSettings = @@ -3824,6 +3875,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkflowConfigTransportSettings = @@ -3836,6 +3888,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkflowConfigTransportSettings = @@ -3848,6 +3901,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateWorkflowConfigTransportSettings = @@ -3873,6 +3927,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkflowInvocationsTransportSettings = @@ -3886,6 +3941,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkflowInvocationTransportSettings = @@ -3898,6 +3954,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkflowInvocationTransportSettings = @@ -3910,6 +3967,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteWorkflowInvocationTransportSettings = @@ -3922,6 +3980,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings cancelWorkflowInvocationTransportSettings = @@ -3935,6 +3994,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> @@ -3950,6 +4010,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3961,6 +4022,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3983,6 +4045,7 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings setIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3994,6 +4057,7 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -4006,6 +4070,7 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java new file mode 100644 index 000000000000..12397ce66a57 --- /dev/null +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1beta1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-dataform:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json index 75d7a6fbe5a1..4d1779e6ce59 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -881,6 +944,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.CompilationResultAction$Relation$FileFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.CompilationResultAction$Relation$IncrementalTableConfig", "queryAllDeclaredConstructors": true, @@ -908,6 +980,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.CompilationResultAction$Relation$TableFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.CompilationResultAction$SimpleLoadMode", "queryAllDeclaredConstructors": true, @@ -1008,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateReleaseConfigRequest", + "name": "com.google.cloud.dataform.v1.CreateFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateReleaseConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateRepositoryRequest", + "name": "com.google.cloud.dataform.v1.CreateReleaseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkflowConfigRequest", + "name": "com.google.cloud.dataform.v1.CreateRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkflowConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1.CreateTeamFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateTeamFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest", + "name": "com.google.cloud.dataform.v1.CreateWorkflowConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateWorkflowConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DataEncryptionState", + "name": "com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DataEncryptionState$Builder", + "name": "com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteReleaseConfigRequest", + "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteReleaseConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteRepositoryRequest", + "name": "com.google.cloud.dataform.v1.DataEncryptionState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.DataEncryptionState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest", + "name": "com.google.cloud.dataform.v1.DeleteFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkspaceRequest", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeMetadata$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DirectoryEntry", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DirectoryEntry$Builder", + "name": "com.google.cloud.dataform.v1.DeleteReleaseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DirectorySearchResult", + "name": "com.google.cloud.dataform.v1.DeleteReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DirectorySearchResult$Builder", + "name": "com.google.cloud.dataform.v1.DeleteRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileDiffRequest", + "name": "com.google.cloud.dataform.v1.DeleteRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileDiffRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteTeamFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileDiffResponse", + "name": "com.google.cloud.dataform.v1.DeleteTeamFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileDiffResponse$Builder", + "name": "com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesRequest", + "name": "com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse", + "name": "com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$Builder", + "name": "com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange", + "name": "com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange$Builder", + "name": "com.google.cloud.dataform.v1.DeleteWorkspaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange$State", + "name": "com.google.cloud.dataform.v1.DeleteWorkspaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindRequest", + "name": "com.google.cloud.dataform.v1.DirectoryContentsView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindRequest$Builder", + "name": "com.google.cloud.dataform.v1.DirectoryEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindResponse", + "name": "com.google.cloud.dataform.v1.DirectoryEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindResponse$Builder", + "name": "com.google.cloud.dataform.v1.DirectorySearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesRequest", + "name": "com.google.cloud.dataform.v1.DirectorySearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileDiffRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesResponse", + "name": "com.google.cloud.dataform.v1.FetchFileDiffRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesResponse$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileDiffResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest", + "name": "com.google.cloud.dataform.v1.FetchFileDiffResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FileSearchResult", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FileSearchResult$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetCompilationResultRequest", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetCompilationResultRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetConfigRequest", + "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetReleaseConfigRequest", + "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetReleaseConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetRepositoryRequest", + "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkflowConfigRequest", + "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkflowConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkspaceRequest", + "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InstallNpmPackagesRequest", + "name": "com.google.cloud.dataform.v1.FileSearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InstallNpmPackagesRequest$Builder", + "name": "com.google.cloud.dataform.v1.FileSearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InstallNpmPackagesResponse", + "name": "com.google.cloud.dataform.v1.FilesystemEntryMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InstallNpmPackagesResponse$Builder", + "name": "com.google.cloud.dataform.v1.FilesystemEntryMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InvocationConfig", + "name": "com.google.cloud.dataform.v1.Folder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InvocationConfig$Builder", + "name": "com.google.cloud.dataform.v1.Folder$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListCompilationResultsRequest", + "name": "com.google.cloud.dataform.v1.GetCompilationResultRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListCompilationResultsRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetCompilationResultRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListCompilationResultsResponse", + "name": "com.google.cloud.dataform.v1.GetConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListCompilationResultsResponse$Builder", + "name": "com.google.cloud.dataform.v1.GetConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListReleaseConfigsRequest", + "name": "com.google.cloud.dataform.v1.GetFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListReleaseConfigsRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListReleaseConfigsResponse", + "name": "com.google.cloud.dataform.v1.GetReleaseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListReleaseConfigsResponse$Builder", + "name": "com.google.cloud.dataform.v1.GetReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListRepositoriesRequest", + "name": "com.google.cloud.dataform.v1.GetRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListRepositoriesRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListRepositoriesResponse", + "name": "com.google.cloud.dataform.v1.GetTeamFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListRepositoriesResponse$Builder", + "name": "com.google.cloud.dataform.v1.GetTeamFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsRequest", + "name": "com.google.cloud.dataform.v1.GetWorkflowConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetWorkflowConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsResponse", + "name": "com.google.cloud.dataform.v1.GetWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsResponse$Builder", + "name": "com.google.cloud.dataform.v1.GetWorkflowInvocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest", + "name": "com.google.cloud.dataform.v1.GetWorkspaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetWorkspaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse", + "name": "com.google.cloud.dataform.v1.InstallNpmPackagesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse$Builder", + "name": "com.google.cloud.dataform.v1.InstallNpmPackagesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkspacesRequest", + "name": "com.google.cloud.dataform.v1.InstallNpmPackagesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkspacesRequest$Builder", + "name": "com.google.cloud.dataform.v1.InstallNpmPackagesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkspacesResponse", + "name": "com.google.cloud.dataform.v1.InvocationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkspacesResponse$Builder", + "name": "com.google.cloud.dataform.v1.InvocationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MakeDirectoryRequest", + "name": "com.google.cloud.dataform.v1.InvocationConfig$QueryPriority", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MakeDirectoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.ListCompilationResultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MakeDirectoryResponse", + "name": "com.google.cloud.dataform.v1.ListCompilationResultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MakeDirectoryResponse$Builder", + "name": "com.google.cloud.dataform.v1.ListCompilationResultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveDirectoryRequest", + "name": "com.google.cloud.dataform.v1.ListCompilationResultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveDirectoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.ListReleaseConfigsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveDirectoryResponse", + "name": "com.google.cloud.dataform.v1.ListReleaseConfigsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveDirectoryResponse$Builder", + "name": "com.google.cloud.dataform.v1.ListReleaseConfigsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveFileRequest", + "name": "com.google.cloud.dataform.v1.ListReleaseConfigsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +2025,502 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveFileRequest$Builder", + "name": "com.google.cloud.dataform.v1.ListRepositoriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListRepositoriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListRepositoriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListRepositoriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkspacesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkspacesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkspacesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkspacesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MakeDirectoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MakeDirectoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MakeDirectoryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MakeDirectoryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveDirectoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveDirectoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveDirectoryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveDirectoryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFileResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFileResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.NotebookRuntimeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.NotebookRuntimeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PrivateResourceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PrivateResourceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PullGitCommitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PullGitCommitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PullGitCommitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PullGitCommitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PushGitCommitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PushGitCommitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PushGitCommitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PushGitCommitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveFileResponse", + "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveFileResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.NotebookRuntimeOptions", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.NotebookRuntimeOptions$Builder", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PullGitCommitsRequest", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PullGitCommitsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PullGitCommitsResponse", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsResponse$FolderContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PullGitCommitsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsResponse$FolderContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PushGitCommitsRequest", + "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PushGitCommitsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PushGitCommitsResponse", + "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PushGitCommitsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsRequest", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse$TeamFolderContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse$TeamFolderContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsResponse", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsResponse$RootContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsResponse$RootContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2591,6 +3167,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersResponse$TeamFolderSearchResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersResponse$TeamFolderSearchResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.Target", "queryAllDeclaredConstructors": true, @@ -2609,6 +3239,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.TeamFolder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.TeamFolder$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.UpdateConfigRequest", "queryAllDeclaredConstructors": true, @@ -2627,6 +3275,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.UpdateFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.UpdateFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.UpdateReleaseConfigRequest", "queryAllDeclaredConstructors": true, @@ -2663,6 +3329,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.UpdateTeamFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.UpdateTeamFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest", "queryAllDeclaredConstructors": true, @@ -3284,6 +3968,150 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json index 35421136b9ca..d6134dd8a489 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java index 38d89748398c..90a541dd25fb 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -39,6 +43,7 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.dataform.v1.stub.HttpJsonDataformStub; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -47,12 +52,11 @@ import com.google.common.collect.Lists; import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; @@ -64,6 +68,7 @@ import java.util.Arrays; import java.util.HashMap; import java.util.List; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -106,6 +111,1377 @@ public void tearDown() throws Exception { mockService.reset(); } + @Test + public void getTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + TeamFolder teamFolder = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TeamFolder actualResponse = client.updateTeamFolder(teamFolder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolder teamFolder = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTeamFolder(teamFolder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + client.deleteTeamFolder(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + + client.deleteTeamFolder(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTreeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTeamFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + + client.deleteTeamFolderTreeAsync(name, force).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTeamFolderTreeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + client.deleteTeamFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteTeamFolderTreeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTeamFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + boolean force = true; + + client.deleteTeamFolderTreeAsync(name, force).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTeamFolderTreeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + boolean force = true; + client.deleteTeamFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void queryTeamFolderContentsTest() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryTeamFolderContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryTeamFolderContentsTest2() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String teamFolder = "projects/project-9842/locations/location-9842/teamFolders/teamFolder-9842"; + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryTeamFolderContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String teamFolder = + "projects/project-9842/locations/location-9842/teamFolders/teamFolder-9842"; + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTeamFoldersTest() throws Exception { + SearchTeamFoldersResponse.TeamFolderSearchResult responsesElement = + SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder().build(); + SearchTeamFoldersResponse expectedResponse = + SearchTeamFoldersResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + + SearchTeamFoldersPagedResponse pagedListResponse = client.searchTeamFolders(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchTeamFoldersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + client.searchTeamFolders(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + Folder folder = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Folder actualResponse = client.updateFolder(folder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Folder folder = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFolder(folder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + client.deleteFolder(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + + client.deleteFolder(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTreeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + + client.deleteFolderTreeAsync(name, force).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFolderTreeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + client.deleteFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFolderTreeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + boolean force = true; + + client.deleteFolderTreeAsync(name, force).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFolderTreeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + boolean force = true; + client.deleteFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void queryFolderContentsTest() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryFolderContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryFolderContentsTest2() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String folder = "projects/project-5950/locations/location-5950/folders/folder-5950"; + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryFolderContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String folder = "projects/project-5950/locations/location-5950/folders/folder-5950"; + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryUserRootContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest2() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String location = "projects/project-7132/locations/location-7132"; + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryUserRootContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String location = "projects/project-7132/locations/location-7132"; + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void moveFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void moveFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listRepositoriesTest() throws Exception { Repository responsesElement = Repository.newBuilder().build(); @@ -211,6 +1587,8 @@ public void getRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -268,6 +1646,8 @@ public void getRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -325,6 +1705,8 @@ public void createRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -386,6 +1768,8 @@ public void createRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -447,6 +1831,8 @@ public void updateRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -466,6 +1852,8 @@ public void updateRepositoryTest() throws Exception { Repository repository = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -511,6 +1899,8 @@ public void updateRepositoryExceptionTest() throws Exception { Repository repository = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -613,6 +2003,100 @@ public void deleteRepositoryExceptionTest2() throws Exception { } } + @Test + public void moveRepositoryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveRepositoryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void moveRepositoryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveRepositoryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void commitRepositoryChangesTest() throws Exception { CommitRepositoryChangesResponse expectedResponse = @@ -1053,6 +2537,8 @@ public void getWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1103,6 +2589,8 @@ public void getWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1154,6 +2642,8 @@ public void createWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1207,6 +2697,8 @@ public void createWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1790,6 +3282,7 @@ public void queryDirectoryContentsTest() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(request); @@ -1830,6 +3323,7 @@ public void queryDirectoryContentsExceptionTest() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); client.queryDirectoryContents(request); Assert.fail("No exception raised"); @@ -2924,6 +4418,7 @@ public void getCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2981,6 +4476,7 @@ public void getCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3037,6 +4533,7 @@ public void createCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3093,6 +4590,7 @@ public void createCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3852,6 +5350,7 @@ public void getWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3911,6 +5410,7 @@ public void getWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3968,6 +5468,7 @@ public void createWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4025,6 +5526,7 @@ public void createWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4280,6 +5782,7 @@ public void getConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4325,6 +5828,7 @@ public void getConfigTest2() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4370,6 +5874,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4377,6 +5882,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4410,6 +5916,7 @@ public void updateConfigExceptionTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateConfig(config, updateMask); @@ -4420,29 +5927,20 @@ public void updateConfigExceptionTest() throws Exception { } @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockService.addResponse(expectedResponse); - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4460,21 +5958,15 @@ public void listLocationsTest() throws Exception { } @Test - public void listLocationsExceptionTest() throws Exception { + public void getIamPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4482,23 +5974,19 @@ public void listLocationsExceptionTest() throws Exception { } @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockService.addResponse(expectedResponse); - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); + String resource = "projects/project-5173/locations/location-5173/repositories/repositorie-5173"; - Location actualResponse = client.getLocation(request); + Policy actualResponse = client.getIamPolicy(resource); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4517,18 +6005,16 @@ public void getLocationTest() throws Exception { } @Test - public void getLocationExceptionTest() throws Exception { + public void getIamPolicyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - client.getLocation(request); + String resource = + "projects/project-5173/locations/location-5173/repositories/repositorie-5173"; + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4548,7 +6034,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4581,7 +6067,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4593,23 +6079,18 @@ public void setIamPolicyExceptionTest() throws Exception { } @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); mockService.addResponse(expectedResponse); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - Policy actualResponse = client.getIamPolicy(request); + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4628,19 +6109,19 @@ public void getIamPolicyTest() throws Exception { } @Test - public void getIamPolicyExceptionTest() throws Exception { + public void testIamPermissionsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - client.getIamPolicy(request); + client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4648,18 +6129,85 @@ public void getIamPolicyExceptionTest() throws Exception { } @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4678,19 +6226,18 @@ public void testIamPermissionsTest() throws Exception { } @Test - public void testIamPermissionsExceptionTest() throws Exception { + public void getLocationExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") .build(); - client.testIamPermissions(request); + client.getLocation(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java index 3e04b0485aaf..7667c8110464 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -37,6 +41,8 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -45,11 +51,11 @@ import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -64,6 +70,7 @@ import java.util.HashMap; import java.util.List; import java.util.UUID; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -115,6 +122,1220 @@ public void tearDown() throws Exception { client.close(); } + @Test + public void getTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTeamFolderRequest actualRequest = ((GetTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTeamFolderRequest actualRequest = ((GetTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTeamFolderRequest actualRequest = ((CreateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTeamFolderRequest actualRequest = ((CreateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TeamFolder actualResponse = client.updateTeamFolder(teamFolder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTeamFolderRequest actualRequest = ((UpdateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTeamFolder(teamFolder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + client.deleteTeamFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderRequest actualRequest = ((DeleteTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTeamFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderRequest actualRequest = ((DeleteTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTreeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTeamFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + + client.deleteTeamFolderTreeAsync(name, force).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderTreeRequest actualRequest = + ((DeleteTeamFolderTreeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderTreeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + client.deleteTeamFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteTeamFolderTreeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTeamFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String name = "name3373707"; + boolean force = true; + + client.deleteTeamFolderTreeAsync(name, force).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderTreeRequest actualRequest = + ((DeleteTeamFolderTreeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderTreeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + boolean force = true; + client.deleteTeamFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void queryTeamFolderContentsTest() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryTeamFolderContentsRequest actualRequest = + ((QueryTeamFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder.toString(), actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryTeamFolderContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryTeamFolderContentsTest2() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String teamFolder = "teamFolder-1872604885"; + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryTeamFolderContentsRequest actualRequest = + ((QueryTeamFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryTeamFolderContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String teamFolder = "teamFolder-1872604885"; + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTeamFoldersTest() throws Exception { + SearchTeamFoldersResponse.TeamFolderSearchResult responsesElement = + SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder().build(); + SearchTeamFoldersResponse expectedResponse = + SearchTeamFoldersResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + + SearchTeamFoldersPagedResponse pagedListResponse = client.searchTeamFolders(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchTeamFoldersRequest actualRequest = ((SearchTeamFoldersRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchTeamFoldersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + client.searchTeamFolders(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFolderRequest actualRequest = ((GetFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFolderRequest actualRequest = ((GetFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFolderRequest actualRequest = ((CreateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFolderRequest actualRequest = ((CreateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Folder actualResponse = client.updateFolder(folder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFolderRequest actualRequest = ((UpdateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFolder(folder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + client.deleteFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderRequest actualRequest = ((DeleteFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderRequest actualRequest = ((DeleteFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTreeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + + client.deleteFolderTreeAsync(name, force).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderTreeRequest actualRequest = ((DeleteFolderTreeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderTreeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + client.deleteFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFolderTreeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String name = "name3373707"; + boolean force = true; + + client.deleteFolderTreeAsync(name, force).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderTreeRequest actualRequest = ((DeleteFolderTreeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderTreeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + boolean force = true; + client.deleteFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void queryFolderContentsTest() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryFolderContentsRequest actualRequest = ((QueryFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(folder.toString(), actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryFolderContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryFolderContentsTest2() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String folder = "folder-1268966290"; + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryFolderContentsRequest actualRequest = ((QueryFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryFolderContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String folder = "folder-1268966290"; + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryUserRootContentsRequest actualRequest = + ((QueryUserRootContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(location.toString(), actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryUserRootContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest2() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String location = "location1901043637"; + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryUserRootContentsRequest actualRequest = + ((QueryUserRootContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(location, actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryUserRootContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String location = "location1901043637"; + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void moveFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MoveFolderRequest actualRequest = ((MoveFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void moveFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void moveFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MoveFolderRequest actualRequest = ((MoveFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void moveFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listRepositoriesTest() throws Exception { Repository responsesElement = Repository.newBuilder().build(); @@ -208,6 +1429,8 @@ public void getRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -259,6 +1482,8 @@ public void getRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -310,6 +1535,8 @@ public void createRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -367,6 +1594,8 @@ public void createRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -424,6 +1653,8 @@ public void updateRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -440,18 +1671,87 @@ public void updateRepositoryTest() throws Exception { .build(); mockDataform.addResponse(expectedResponse); - Repository repository = Repository.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + Repository repository = Repository.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Repository actualResponse = client.updateRepository(repository, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateRepositoryRequest actualRequest = ((UpdateRepositoryRequest) actualRequests.get(0)); + + Assert.assertEquals(repository, actualRequest.getRepository()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateRepositoryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + Repository repository = Repository.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRepository(repository, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRepositoryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + client.deleteRepository(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRepositoryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.deleteRepository(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRepositoryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; - Repository actualResponse = client.updateRepository(repository, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteRepository(name); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateRepositoryRequest actualRequest = ((UpdateRepositoryRequest) actualRequests.get(0)); + DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); - Assert.assertEquals(repository, actualRequest.getRepository()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -459,14 +1759,13 @@ public void updateRepositoryTest() throws Exception { } @Test - public void updateRepositoryExceptionTest() throws Exception { + public void deleteRepositoryExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { - Repository repository = Repository.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRepository(repository, updateMask); + String name = "name3373707"; + client.deleteRepository(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -474,19 +1773,28 @@ public void updateRepositoryExceptionTest() throws Exception { } @Test - public void deleteRepositoryTest() throws Exception { + public void moveRepositoryTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; - client.deleteRepository(name); + client.moveRepositoryAsync(name, destinationContainingFolder).get(); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + MoveRepositoryRequest actualRequest = ((MoveRepositoryRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -494,33 +1802,45 @@ public void deleteRepositoryTest() throws Exception { } @Test - public void deleteRepositoryExceptionTest() throws Exception { + public void moveRepositoryExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.deleteRepository(name); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void deleteRepositoryTest2() throws Exception { + public void moveRepositoryTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; - client.deleteRepository(name); + client.moveRepositoryAsync(name, destinationContainingFolder).get(); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + MoveRepositoryRequest actualRequest = ((MoveRepositoryRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -528,16 +1848,19 @@ public void deleteRepositoryTest2() throws Exception { } @Test - public void deleteRepositoryExceptionTest2() throws Exception { + public void moveRepositoryExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { String name = "name3373707"; - client.deleteRepository(name); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -949,6 +2272,8 @@ public void getWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -993,6 +2318,8 @@ public void getWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -1036,6 +2363,8 @@ public void createWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -1085,6 +2414,8 @@ public void createWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -1615,6 +2946,7 @@ public void queryDirectoryContentsTest() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(request); @@ -1633,6 +2965,7 @@ public void queryDirectoryContentsTest() throws Exception { Assert.assertEquals(request.getPath(), actualRequest.getPath()); Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getView(), actualRequest.getView()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1653,6 +2986,7 @@ public void queryDirectoryContentsExceptionTest() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); client.queryDirectoryContents(request); Assert.fail("No exception raised"); @@ -2615,6 +3949,7 @@ public void getCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2667,6 +4002,7 @@ public void getCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2716,6 +4052,7 @@ public void createCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2768,6 +4105,7 @@ public void createCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3426,6 +4764,7 @@ public void getWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3480,6 +4819,7 @@ public void getWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3530,6 +4870,7 @@ public void createWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3583,6 +4924,7 @@ public void createWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3814,6 +5156,7 @@ public void getConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3853,6 +5196,7 @@ public void getConfigTest2() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3892,6 +5236,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3929,38 +5274,26 @@ public void updateConfigExceptionTest() throws Exception { } @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockLocations.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); + mockDataform.addResponse(expectedResponse); - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockLocations.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(resource.toString(), actualRequest.getResource()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3968,19 +5301,13 @@ public void listLocationsTest() throws Exception { } @Test - public void listLocationsExceptionTest() throws Exception { + public void getIamPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); + mockDataform.addException(exception); try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3988,27 +5315,26 @@ public void listLocationsExceptionTest() throws Exception { } @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); - mockLocations.addResponse(expectedResponse); + mockDataform.addResponse(expectedResponse); - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + String resource = "resource-341064690"; - Location actualResponse = client.getLocation(request); + Policy actualResponse = client.getIamPolicy(resource); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockLocations.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(resource, actualRequest.getResource()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4016,13 +5342,13 @@ public void getLocationTest() throws Exception { } @Test - public void getLocationExceptionTest() throws Exception { + public void getIamPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); + mockDataform.addException(exception); try { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - client.getLocation(request); + String resource = "resource-341064690"; + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4038,11 +5364,11 @@ public void setIamPolicyTest() throws Exception { .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); - mockIAMPolicy.addResponse(expectedResponse); + mockDataform.addResponse(expectedResponse); SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4050,7 +5376,7 @@ public void setIamPolicyTest() throws Exception { Policy actualResponse = client.setIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); @@ -4066,12 +5392,12 @@ public void setIamPolicyTest() throws Exception { @Test public void setIamPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockDataform.addException(exception); try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4083,31 +5409,26 @@ public void setIamPolicyExceptionTest() throws Exception { } @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAMPolicy.addResponse(expectedResponse); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockDataform.addResponse(expectedResponse); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - Policy actualResponse = client.getIamPolicy(request); + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4115,17 +5436,17 @@ public void getIamPolicyTest() throws Exception { } @Test - public void getIamPolicyExceptionTest() throws Exception { + public void testIamPermissionsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockDataform.addException(exception); try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - client.getIamPolicy(request); + client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4133,26 +5454,38 @@ public void getIamPolicyExceptionTest() throws Exception { } @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockIAMPolicy.addResponse(expectedResponse); + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4160,17 +5493,61 @@ public void testIamPermissionsTest() throws Exception { } @Test - public void testIamPermissionsExceptionTest() throws Exception { + public void listLocationsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockLocations.addException(exception); try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - client.testIamPermissions(request); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java index dbb00ef5016b..be376e950fc9 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java @@ -18,6 +18,12 @@ import com.google.api.core.BetaApi; import com.google.cloud.dataform.v1.DataformGrpc.DataformImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; @@ -59,6 +65,323 @@ public void reset() { responses = new LinkedList<>(); } + @Override + public void getTeamFolder( + GetTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTeamFolder( + CreateTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTeamFolder( + UpdateTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTeamFolder( + DeleteTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTeamFolderTree( + DeleteTeamFolderTreeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTeamFolderTree, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryTeamFolderContents( + QueryTeamFolderContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryTeamFolderContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryTeamFolderContentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryTeamFolderContents, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + QueryTeamFolderContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchTeamFolders( + SearchTeamFoldersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchTeamFoldersResponse) { + requests.add(request); + responseObserver.onNext(((SearchTeamFoldersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SearchTeamFolders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchTeamFoldersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFolder(GetFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFolder(CreateFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFolder(UpdateFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFolder(DeleteFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFolderTree( + DeleteFolderTreeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFolderTree, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryFolderContents( + QueryFolderContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryFolderContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryFolderContentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryFolderContents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryFolderContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryUserRootContents( + QueryUserRootContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryUserRootContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryUserRootContentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryUserRootContents, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + QueryUserRootContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void moveFolder(MoveFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method MoveFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listRepositories( ListRepositoriesRequest request, StreamObserver responseObserver) { @@ -164,6 +487,27 @@ public void deleteRepository( } } + @Override + public void moveRepository( + MoveRepositoryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method MoveRepository, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void commitRepositoryChanges( CommitRepositoryChangesRequest request, @@ -1229,4 +1573,66 @@ public void updateConfig(UpdateConfigRequest request, StreamObserver res Exception.class.getName()))); } } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockIAMPolicyImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockIAMPolicyImpl.java index abd0ac5934ae..8a3208d2235d 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockIAMPolicyImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockIAMPolicyImpl.java @@ -17,14 +17,8 @@ package com.google.cloud.dataform.v1; import com.google.api.core.BetaApi; -import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; @@ -62,66 +56,4 @@ public void reset() { requests = new ArrayList<>(); responses = new LinkedList<>(); } - - @Override - public void testIamPermissions( - TestIamPermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TestIamPermissionsResponse) { - requests.add(request); - responseObserver.onNext(((TestIamPermissionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TestIamPermissionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } } diff --git a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java index cd0512c1ad24..c3a44cc9a3fe 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java @@ -33,6 +33,673 @@ private DataformGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dataform.v1.Dataform"; // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getGetTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTeamFolder", + requestType = com.google.cloud.dataform.v1.GetTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getGetTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getGetTeamFolderMethod; + if ((getGetTeamFolderMethod = DataformGrpc.getGetTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetTeamFolderMethod = DataformGrpc.getGetTeamFolderMethod) == null) { + DataformGrpc.getGetTeamFolderMethod = + getGetTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.GetTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetTeamFolder")) + .build(); + } + } + } + return getGetTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getCreateTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTeamFolder", + requestType = com.google.cloud.dataform.v1.CreateTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getCreateTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getCreateTeamFolderMethod; + if ((getCreateTeamFolderMethod = DataformGrpc.getCreateTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getCreateTeamFolderMethod = DataformGrpc.getCreateTeamFolderMethod) == null) { + DataformGrpc.getCreateTeamFolderMethod = + getCreateTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.CreateTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateTeamFolder")) + .build(); + } + } + } + return getCreateTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getUpdateTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTeamFolder", + requestType = com.google.cloud.dataform.v1.UpdateTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getUpdateTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getUpdateTeamFolderMethod; + if ((getUpdateTeamFolderMethod = DataformGrpc.getUpdateTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getUpdateTeamFolderMethod = DataformGrpc.getUpdateTeamFolderMethod) == null) { + DataformGrpc.getUpdateTeamFolderMethod = + getUpdateTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("UpdateTeamFolder")) + .build(); + } + } + } + return getUpdateTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTeamFolder", + requestType = com.google.cloud.dataform.v1.DeleteTeamFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod; + if ((getDeleteTeamFolderMethod = DataformGrpc.getDeleteTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteTeamFolderMethod = DataformGrpc.getDeleteTeamFolderMethod) == null) { + DataformGrpc.getDeleteTeamFolderMethod = + getDeleteTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteTeamFolder")) + .build(); + } + } + } + return getDeleteTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation> + getDeleteTeamFolderTreeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTeamFolderTree", + requestType = com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation> + getDeleteTeamFolderTreeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation> + getDeleteTeamFolderTreeMethod; + if ((getDeleteTeamFolderTreeMethod = DataformGrpc.getDeleteTeamFolderTreeMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteTeamFolderTreeMethod = DataformGrpc.getDeleteTeamFolderTreeMethod) == null) { + DataformGrpc.getDeleteTeamFolderTreeMethod = + getDeleteTeamFolderTreeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteTeamFolderTree")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("DeleteTeamFolderTree")) + .build(); + } + } + } + return getDeleteTeamFolderTreeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryTeamFolderContents", + requestType = com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.class, + responseType = com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod; + if ((getQueryTeamFolderContentsMethod = DataformGrpc.getQueryTeamFolderContentsMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getQueryTeamFolderContentsMethod = DataformGrpc.getQueryTeamFolderContentsMethod) + == null) { + DataformGrpc.getQueryTeamFolderContentsMethod = + getQueryTeamFolderContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryTeamFolderContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryTeamFolderContents")) + .build(); + } + } + } + return getQueryTeamFolderContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchTeamFolders", + requestType = com.google.cloud.dataform.v1.SearchTeamFoldersRequest.class, + responseType = com.google.cloud.dataform.v1.SearchTeamFoldersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod; + if ((getSearchTeamFoldersMethod = DataformGrpc.getSearchTeamFoldersMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getSearchTeamFoldersMethod = DataformGrpc.getSearchTeamFoldersMethod) == null) { + DataformGrpc.getSearchTeamFoldersMethod = + getSearchTeamFoldersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchTeamFolders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("SearchTeamFolders")) + .build(); + } + } + } + return getSearchTeamFoldersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetFolderRequest, com.google.cloud.dataform.v1.Folder> + getGetFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFolder", + requestType = com.google.cloud.dataform.v1.GetFolderRequest.class, + responseType = com.google.cloud.dataform.v1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetFolderRequest, com.google.cloud.dataform.v1.Folder> + getGetFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetFolderRequest, com.google.cloud.dataform.v1.Folder> + getGetFolderMethod; + if ((getGetFolderMethod = DataformGrpc.getGetFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetFolderMethod = DataformGrpc.getGetFolderMethod) == null) { + DataformGrpc.getGetFolderMethod = + getGetFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.GetFolderRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetFolder")) + .build(); + } + } + } + return getGetFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateFolderRequest, com.google.cloud.dataform.v1.Folder> + getCreateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFolder", + requestType = com.google.cloud.dataform.v1.CreateFolderRequest.class, + responseType = com.google.cloud.dataform.v1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateFolderRequest, com.google.cloud.dataform.v1.Folder> + getCreateFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateFolderRequest, com.google.cloud.dataform.v1.Folder> + getCreateFolderMethod; + if ((getCreateFolderMethod = DataformGrpc.getCreateFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getCreateFolderMethod = DataformGrpc.getCreateFolderMethod) == null) { + DataformGrpc.getCreateFolderMethod = + getCreateFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.CreateFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateFolder")) + .build(); + } + } + } + return getCreateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateFolderRequest, com.google.cloud.dataform.v1.Folder> + getUpdateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFolder", + requestType = com.google.cloud.dataform.v1.UpdateFolderRequest.class, + responseType = com.google.cloud.dataform.v1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateFolderRequest, com.google.cloud.dataform.v1.Folder> + getUpdateFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateFolderRequest, com.google.cloud.dataform.v1.Folder> + getUpdateFolderMethod; + if ((getUpdateFolderMethod = DataformGrpc.getUpdateFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getUpdateFolderMethod = DataformGrpc.getUpdateFolderMethod) == null) { + DataformGrpc.getUpdateFolderMethod = + getUpdateFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.UpdateFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("UpdateFolder")) + .build(); + } + } + } + return getUpdateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", + requestType = com.google.cloud.dataform.v1.DeleteFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod; + if ((getDeleteFolderMethod = DataformGrpc.getDeleteFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteFolderMethod = DataformGrpc.getDeleteFolderMethod) == null) { + DataformGrpc.getDeleteFolderMethod = + getDeleteFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.DeleteFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteFolder")) + .build(); + } + } + } + return getDeleteFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderTreeRequest, com.google.longrunning.Operation> + getDeleteFolderTreeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFolderTree", + requestType = com.google.cloud.dataform.v1.DeleteFolderTreeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderTreeRequest, com.google.longrunning.Operation> + getDeleteFolderTreeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderTreeRequest, com.google.longrunning.Operation> + getDeleteFolderTreeMethod; + if ((getDeleteFolderTreeMethod = DataformGrpc.getDeleteFolderTreeMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteFolderTreeMethod = DataformGrpc.getDeleteFolderTreeMethod) == null) { + DataformGrpc.getDeleteFolderTreeMethod = + getDeleteFolderTreeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolderTree")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteFolderTree")) + .build(); + } + } + } + return getDeleteFolderTreeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1.QueryFolderContentsResponse> + getQueryFolderContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryFolderContents", + requestType = com.google.cloud.dataform.v1.QueryFolderContentsRequest.class, + responseType = com.google.cloud.dataform.v1.QueryFolderContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1.QueryFolderContentsResponse> + getQueryFolderContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1.QueryFolderContentsResponse> + getQueryFolderContentsMethod; + if ((getQueryFolderContentsMethod = DataformGrpc.getQueryFolderContentsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getQueryFolderContentsMethod = DataformGrpc.getQueryFolderContentsMethod) == null) { + DataformGrpc.getQueryFolderContentsMethod = + getQueryFolderContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryFolderContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryFolderContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryFolderContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryFolderContents")) + .build(); + } + } + } + return getQueryFolderContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryUserRootContents", + requestType = com.google.cloud.dataform.v1.QueryUserRootContentsRequest.class, + responseType = com.google.cloud.dataform.v1.QueryUserRootContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod; + if ((getQueryUserRootContentsMethod = DataformGrpc.getQueryUserRootContentsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getQueryUserRootContentsMethod = DataformGrpc.getQueryUserRootContentsMethod) + == null) { + DataformGrpc.getQueryUserRootContentsMethod = + getQueryUserRootContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryUserRootContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryUserRootContents")) + .build(); + } + } + } + return getQueryUserRootContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveFolder", + requestType = com.google.cloud.dataform.v1.MoveFolderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod; + if ((getMoveFolderMethod = DataformGrpc.getMoveFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getMoveFolderMethod = DataformGrpc.getMoveFolderMethod) == null) { + DataformGrpc.getMoveFolderMethod = + getMoveFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.MoveFolderRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveFolder")) + .build(); + } + } + } + return getMoveFolderMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1.ListRepositoriesRequest, com.google.cloud.dataform.v1.ListRepositoriesResponse> @@ -256,6 +923,48 @@ private DataformGrpc() {} return getDeleteRepositoryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveRepositoryRequest, com.google.longrunning.Operation> + getMoveRepositoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveRepository", + requestType = com.google.cloud.dataform.v1.MoveRepositoryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveRepositoryRequest, com.google.longrunning.Operation> + getMoveRepositoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveRepositoryRequest, com.google.longrunning.Operation> + getMoveRepositoryMethod; + if ((getMoveRepositoryMethod = DataformGrpc.getMoveRepositoryMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getMoveRepositoryMethod = DataformGrpc.getMoveRepositoryMethod) == null) { + DataformGrpc.getMoveRepositoryMethod = + getMoveRepositoryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveRepository")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.MoveRepositoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveRepository")) + .build(); + } + } + } + return getMoveRepositoryMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1.CommitRepositoryChangesRequest, com.google.cloud.dataform.v1.CommitRepositoryChangesResponse> @@ -2556,6 +3265,125 @@ private DataformGrpc() {} return getUpdateConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = DataformGrpc.getGetIamPolicyMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetIamPolicyMethod = DataformGrpc.getGetIamPolicyMethod) == null) { + DataformGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = DataformGrpc.getSetIamPolicyMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getSetIamPolicyMethod = DataformGrpc.getSetIamPolicyMethod) == null) { + DataformGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = DataformGrpc.getTestIamPermissionsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getTestIamPermissionsMethod = DataformGrpc.getTestIamPermissionsMethod) == null) { + DataformGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DataformStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2581,43 +3409,260 @@ public DataformBlockingV2Stub newStub( return DataformBlockingV2Stub.newStub(factory, channel); } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataformBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingStub(channel, callOptions); - } - }; - return DataformBlockingStub.newStub(factory, channel); - } + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataformBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataformBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformBlockingStub(channel, callOptions); + } + }; + return DataformBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataformFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataformFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformFutureStub(channel, callOptions); + } + }; + return DataformFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Dataform is a service to develop, create, document, test, and update curated
            +   * tables in BigQuery.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Fetches a single TeamFolder.
            +     * 
            + */ + default void getTeamFolder( + com.google.cloud.dataform.v1.GetTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new TeamFolder in a given project and location.
            +     * 
            + */ + default void createTeamFolder( + com.google.cloud.dataform.v1.CreateTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a single TeamFolder.
            +     * 
            + */ + default void updateTeamFolder( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a single TeamFolder.
            +     * 
            + */ + default void deleteTeamFolder( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + default void deleteTeamFolderTree( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTeamFolderTreeMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the contents of a given TeamFolder.
            +     * 
            + */ + default void queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryTeamFolderContentsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
            +     * 
            + */ + default void searchTeamFolders( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchTeamFoldersMethod(), responseObserver); + } + + /** + * + * + *
            +     * Fetches a single Folder.
            +     * 
            + */ + default void getFolder( + com.google.cloud.dataform.v1.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new Folder in a given project and location.
            +     * 
            + */ + default void createFolder( + com.google.cloud.dataform.v1.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a single Folder.
            +     * 
            + */ + default void updateFolder( + com.google.cloud.dataform.v1.UpdateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a single Folder.
            +     * 
            + */ + default void deleteFolder( + com.google.cloud.dataform.v1.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + default void deleteFolderTree( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFolderTreeMethod(), responseObserver); + } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataformFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformFutureStub(channel, callOptions); - } - }; - return DataformFutureStub.newStub(factory, channel); - } + /** + * + * + *
            +     * Returns the contents of a given Folder.
            +     * 
            + */ + default void queryFolderContents( + com.google.cloud.dataform.v1.QueryFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryFolderContentsMethod(), responseObserver); + } - /** - * - * - *
            -   * Dataform is a service to develop, create, document, test, and update curated
            -   * tables in BigQuery.
            -   * 
            - */ - public interface AsyncService { + /** + * + * + *
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
            +     * 
            + */ + default void queryUserRootContents( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryUserRootContentsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
            +     * 
            + */ + default void moveFolder( + com.google.cloud.dataform.v1.MoveFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveFolderMethod(), responseObserver); + } /** * @@ -2696,6 +3741,20 @@ default void deleteRepository( getDeleteRepositoryMethod(), responseObserver); } + /** + * + * + *
            +     * Moves a Repository to a new location.
            +     * 
            + */ + default void moveRepository( + com.google.cloud.dataform.v1.MoveRepositoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMoveRepositoryMethod(), responseObserver); + } + /** * * @@ -3432,6 +4491,58 @@ default void updateConfig( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateConfigMethod(), responseObserver); } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + default void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } } /** @@ -3463,9 +4574,254 @@ private DataformStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } - @java.lang.Override - protected DataformStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformStub(channel, callOptions); + @java.lang.Override + protected DataformStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformStub(channel, callOptions); + } + + /** + * + * + *
            +     * Fetches a single TeamFolder.
            +     * 
            + */ + public void getTeamFolder( + com.google.cloud.dataform.v1.GetTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a new TeamFolder in a given project and location.
            +     * 
            + */ + public void createTeamFolder( + com.google.cloud.dataform.v1.CreateTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a single TeamFolder.
            +     * 
            + */ + public void updateTeamFolder( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a single TeamFolder.
            +     * 
            + */ + public void deleteTeamFolder( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public void deleteTeamFolderTree( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTeamFolderTreeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the contents of a given TeamFolder.
            +     * 
            + */ + public void queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryTeamFolderContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
            +     * 
            + */ + public void searchTeamFolders( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchTeamFoldersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Fetches a single Folder.
            +     * 
            + */ + public void getFolder( + com.google.cloud.dataform.v1.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Creates a new Folder in a given project and location.
            +     * 
            + */ + public void createFolder( + com.google.cloud.dataform.v1.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a single Folder.
            +     * 
            + */ + public void updateFolder( + com.google.cloud.dataform.v1.UpdateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a single Folder.
            +     * 
            + */ + public void deleteFolder( + com.google.cloud.dataform.v1.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public void deleteFolderTree( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderTreeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the contents of a given Folder.
            +     * 
            + */ + public void queryFolderContents( + com.google.cloud.dataform.v1.QueryFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryFolderContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
            +     * 
            + */ + public void queryUserRootContents( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryUserRootContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
            +     * 
            + */ + public void moveFolder( + com.google.cloud.dataform.v1.MoveFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveFolderMethod(), getCallOptions()), request, responseObserver); } /** @@ -3555,6 +4911,22 @@ public void deleteRepository( responseObserver); } + /** + * + * + *
            +     * Moves a Repository to a new location.
            +     * 
            + */ + public void moveRepository( + com.google.cloud.dataform.v1.MoveRepositoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveRepositoryMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4320,90 +5692,357 @@ public void deleteWorkflowInvocation( * * *
            -     * Requests cancellation of a running WorkflowInvocation.
            +     * Requests cancellation of a running WorkflowInvocation.
            +     * 
            + */ + public void cancelWorkflowInvocation( + com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelWorkflowInvocationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
            +     * 
            + */ + public void queryWorkflowInvocationActions( + com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Get default config for a given project and location.
            +     * 
            + */ + public void getConfig( + com.google.cloud.dataform.v1.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Update default config for a given project and location.
            +     * **Note:** *This method does not fully implement
            +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            +     * as a bad request, and when the `field_mask` is omitted, the request is
            +     * treated as a full update on all modifiable fields.*
            +     * 
            + */ + public void updateConfig( + com.google.cloud.dataform.v1.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Dataform. + * + *
            +   * Dataform is a service to develop, create, document, test, and update curated
            +   * tables in BigQuery.
            +   * 
            + */ + public static final class DataformBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DataformBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataformBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Fetches a single TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder( + com.google.cloud.dataform.v1.GetTeamFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new TeamFolder in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder createTeamFolder( + com.google.cloud.dataform.v1.CreateTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder updateTeamFolder( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single TeamFolder.
            +     * 
            + */ + public com.google.protobuf.Empty deleteTeamFolder( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public com.google.longrunning.Operation deleteTeamFolderTree( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteTeamFolderTreeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the contents of a given TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryTeamFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
            +     * 
            + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse searchTeamFolders( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchTeamFoldersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches a single Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder getFolder( + com.google.cloud.dataform.v1.GetFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Folder in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder createFolder( + com.google.cloud.dataform.v1.CreateFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder updateFolder( + com.google.cloud.dataform.v1.UpdateFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Folder.
                  * 
            */ - public void cancelWorkflowInvocation( - com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteFolder( + com.google.cloud.dataform.v1.DeleteFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); } /** * * *
            -     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
                  * 
            */ - public void queryWorkflowInvocationActions( - com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteFolderTree( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFolderTreeMethod(), getCallOptions(), request); } /** * * *
            -     * Get default config for a given project and location.
            +     * Returns the contents of a given Folder.
                  * 
            */ - public void getConfig( - com.google.cloud.dataform.v1.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + public com.google.cloud.dataform.v1.QueryFolderContentsResponse queryFolderContents( + com.google.cloud.dataform.v1.QueryFolderContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryFolderContentsMethod(), getCallOptions(), request); } /** * * *
            -     * Update default config for a given project and location.
            -     * **Note:** *This method does not fully implement
            -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            -     * as a bad request, and when the `field_mask` is omitted, the request is
            -     * treated as a full update on all modifiable fields.*
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
                  * 
            */ - public void updateConfig( - com.google.cloud.dataform.v1.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Dataform. - * - *
            -   * Dataform is a service to develop, create, document, test, and update curated
            -   * tables in BigQuery.
            -   * 
            - */ - public static final class DataformBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private DataformBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse queryUserRootContents( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryUserRootContentsMethod(), getCallOptions(), request); } - @java.lang.Override - protected DataformBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingV2Stub(channel, callOptions); + /** + * + * + *
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
            +     * 
            + */ + public com.google.longrunning.Operation moveFolder( + com.google.cloud.dataform.v1.MoveFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMoveFolderMethod(), getCallOptions(), request); } /** @@ -4481,6 +6120,19 @@ public com.google.protobuf.Empty deleteRepository( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Moves a Repository to a new location.
            +     * 
            + */ + public com.google.longrunning.Operation moveRepository( + com.google.cloud.dataform.v1.MoveRepositoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMoveRepositoryMethod(), getCallOptions(), request); + } + /** * * @@ -5173,6 +6825,54 @@ public com.google.cloud.dataform.v1.Config updateConfig( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } } /** @@ -5194,6 +6894,206 @@ protected DataformBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption return new DataformBlockingStub(channel, callOptions); } + /** + * + * + *
            +     * Fetches a single TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder( + com.google.cloud.dataform.v1.GetTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new TeamFolder in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder createTeamFolder( + com.google.cloud.dataform.v1.CreateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder updateTeamFolder( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single TeamFolder.
            +     * 
            + */ + public com.google.protobuf.Empty deleteTeamFolder( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public com.google.longrunning.Operation deleteTeamFolderTree( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTeamFolderTreeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the contents of a given TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryTeamFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
            +     * 
            + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse searchTeamFolders( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchTeamFoldersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches a single Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder getFolder( + com.google.cloud.dataform.v1.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Folder in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder createFolder( + com.google.cloud.dataform.v1.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder updateFolder( + com.google.cloud.dataform.v1.UpdateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Folder.
            +     * 
            + */ + public com.google.protobuf.Empty deleteFolder( + com.google.cloud.dataform.v1.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public com.google.longrunning.Operation deleteFolderTree( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderTreeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the contents of a given Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse queryFolderContents( + com.google.cloud.dataform.v1.QueryFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse queryUserRootContents( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryUserRootContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
            +     * 
            + */ + public com.google.longrunning.Operation moveFolder( + com.google.cloud.dataform.v1.MoveFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMoveFolderMethod(), getCallOptions(), request); + } + /** * * @@ -5249,20 +7149,33 @@ public com.google.cloud.dataform.v1.Repository createRepository( public com.google.cloud.dataform.v1.Repository updateRepository( com.google.cloud.dataform.v1.UpdateRepositoryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); + getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Repository.
            +     * 
            + */ + public com.google.protobuf.Empty deleteRepository( + com.google.cloud.dataform.v1.DeleteRepositoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } /** * * *
            -     * Deletes a single Repository.
            +     * Moves a Repository to a new location.
                  * 
            */ - public com.google.protobuf.Empty deleteRepository( - com.google.cloud.dataform.v1.DeleteRepositoryRequest request) { + public com.google.longrunning.Operation moveRepository( + com.google.cloud.dataform.v1.MoveRepositoryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); + getChannel(), getMoveRepositoryMethod(), getCallOptions(), request); } /** @@ -5722,225 +7635,479 @@ public com.google.cloud.dataform.v1.CompilationResult getCompilationResult( * * *
            -     * Creates a new CompilationResult in a given project and location.
            +     * Creates a new CompilationResult in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.CompilationResult createCompilationResult( + com.google.cloud.dataform.v1.CreateCompilationResultRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns CompilationResultActions in a given CompilationResult.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse + queryCompilationResultActions( + com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists WorkflowConfigs in a given Repository.
            +     * 
            + */ + public com.google.cloud.dataform.v1.ListWorkflowConfigsResponse listWorkflowConfigs( + com.google.cloud.dataform.v1.ListWorkflowConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches a single WorkflowConfig.
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowConfig getWorkflowConfig( + com.google.cloud.dataform.v1.GetWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new WorkflowConfig in a given Repository.
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowConfig createWorkflowConfig( + com.google.cloud.dataform.v1.CreateWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single WorkflowConfig.
            +     * **Note:** *This method does not fully implement
            +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            +     * as a bad request, and when the `field_mask` is omitted, the request is
            +     * treated as a full update on all modifiable fields.*
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowConfig updateWorkflowConfig( + com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single WorkflowConfig.
            +     * 
            + */ + public com.google.protobuf.Empty deleteWorkflowConfig( + com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists WorkflowInvocations in a given Repository.
            +     * 
            + */ + public com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse listWorkflowInvocations( + com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches a single WorkflowInvocation.
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowInvocation getWorkflowInvocation( + com.google.cloud.dataform.v1.GetWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new WorkflowInvocation in a given Repository.
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowInvocation createWorkflowInvocation( + com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single WorkflowInvocation.
            +     * 
            + */ + public com.google.protobuf.Empty deleteWorkflowInvocation( + com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Requests cancellation of a running WorkflowInvocation.
            +     * 
            + */ + public com.google.cloud.dataform.v1.CancelWorkflowInvocationResponse cancelWorkflowInvocation( + com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse + queryWorkflowInvocationActions( + com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Get default config for a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Config getConfig( + com.google.cloud.dataform.v1.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Update default config for a given project and location.
            +     * **Note:** *This method does not fully implement
            +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            +     * as a bad request, and when the `field_mask` is omitted, the request is
            +     * treated as a full update on all modifiable fields.*
            +     * 
            + */ + public com.google.cloud.dataform.v1.Config updateConfig( + com.google.cloud.dataform.v1.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Dataform. + * + *
            +   * Dataform is a service to develop, create, document, test, and update curated
            +   * tables in BigQuery.
            +   * 
            + */ + public static final class DataformFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataformFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Fetches a single TeamFolder.
                  * 
            */ - public com.google.cloud.dataform.v1.CompilationResult createCompilationResult( - com.google.cloud.dataform.v1.CreateCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.TeamFolder> + getTeamFolder(com.google.cloud.dataform.v1.GetTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTeamFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Returns CompilationResultActions in a given CompilationResult.
            +     * Creates a new TeamFolder in a given project and location.
                  * 
            */ - public com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse - queryCompilationResultActions( - com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.TeamFolder> + createTeamFolder(com.google.cloud.dataform.v1.CreateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTeamFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Lists WorkflowConfigs in a given Repository.
            +     * Updates a single TeamFolder.
                  * 
            */ - public com.google.cloud.dataform.v1.ListWorkflowConfigsResponse listWorkflowConfigs( - com.google.cloud.dataform.v1.ListWorkflowConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.TeamFolder> + updateTeamFolder(com.google.cloud.dataform.v1.UpdateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTeamFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Fetches a single WorkflowConfig.
            +     * Deletes a single TeamFolder.
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowConfig getWorkflowConfig( - com.google.cloud.dataform.v1.GetWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteTeamFolder(com.google.cloud.dataform.v1.DeleteTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTeamFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Creates a new WorkflowConfig in a given Repository.
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowConfig createWorkflowConfig( - com.google.cloud.dataform.v1.CreateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteTeamFolderTree(com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTeamFolderTreeMethod(), getCallOptions()), request); } /** * * *
            -     * Updates a single WorkflowConfig.
            -     * **Note:** *This method does not fully implement
            -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            -     * as a bad request, and when the `field_mask` is omitted, the request is
            -     * treated as a full update on all modifiable fields.*
            +     * Returns the contents of a given TeamFolder.
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowConfig updateWorkflowConfig( - com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse> + queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryTeamFolderContentsMethod(), getCallOptions()), request); } /** * * *
            -     * Deletes a single WorkflowConfig.
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
                  * 
            */ - public com.google.protobuf.Empty deleteWorkflowConfig( - com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse> + searchTeamFolders(com.google.cloud.dataform.v1.SearchTeamFoldersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchTeamFoldersMethod(), getCallOptions()), request); } /** * * *
            -     * Lists WorkflowInvocations in a given Repository.
            +     * Fetches a single Folder.
                  * 
            */ - public com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse listWorkflowInvocations( - com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + getFolder(com.google.cloud.dataform.v1.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Fetches a single WorkflowInvocation.
            +     * Creates a new Folder in a given project and location.
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowInvocation getWorkflowInvocation( - com.google.cloud.dataform.v1.GetWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createFolder(com.google.cloud.dataform.v1.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Creates a new WorkflowInvocation in a given Repository.
            +     * Updates a single Folder.
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowInvocation createWorkflowInvocation( - com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateFolder(com.google.cloud.dataform.v1.UpdateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Deletes a single WorkflowInvocation.
            +     * Deletes a single Folder.
                  * 
            */ - public com.google.protobuf.Empty deleteWorkflowInvocation( - com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFolder(com.google.cloud.dataform.v1.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Requests cancellation of a running WorkflowInvocation.
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
                  * 
            */ - public com.google.cloud.dataform.v1.CancelWorkflowInvocationResponse cancelWorkflowInvocation( - com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFolderTree(com.google.cloud.dataform.v1.DeleteFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderTreeMethod(), getCallOptions()), request); } /** * * *
            -     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
            +     * Returns the contents of a given Folder.
                  * 
            */ - public com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse - queryWorkflowInvocationActions( - com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.QueryFolderContentsResponse> + queryFolderContents(com.google.cloud.dataform.v1.QueryFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryFolderContentsMethod(), getCallOptions()), request); } /** * * *
            -     * Get default config for a given project and location.
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
                  * 
            */ - public com.google.cloud.dataform.v1.Config getConfig( - com.google.cloud.dataform.v1.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse> + queryUserRootContents(com.google.cloud.dataform.v1.QueryUserRootContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryUserRootContentsMethod(), getCallOptions()), request); } /** * * *
            -     * Update default config for a given project and location.
            -     * **Note:** *This method does not fully implement
            -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            -     * as a bad request, and when the `field_mask` is omitted, the request is
            -     * treated as a full update on all modifiable fields.*
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
                  * 
            */ - public com.google.cloud.dataform.v1.Config updateConfig( - com.google.cloud.dataform.v1.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConfigMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Dataform. - * - *
            -   * Dataform is a service to develop, create, document, test, and update curated
            -   * tables in BigQuery.
            -   * 
            - */ - public static final class DataformFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataformFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformFutureStub(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture + moveFolder(com.google.cloud.dataform.v1.MoveFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMoveFolderMethod(), getCallOptions()), request); } /** @@ -6018,6 +8185,19 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getDeleteRepositoryMethod(), getCallOptions()), request); } + /** + * + * + *
            +     * Moves a Repository to a new location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + moveRepository(com.google.cloud.dataform.v1.MoveRepositoryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMoveRepositoryMethod(), getCallOptions()), request); + } + /** * * @@ -6728,62 +8908,130 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } } - private static final int METHODID_LIST_REPOSITORIES = 0; - private static final int METHODID_GET_REPOSITORY = 1; - private static final int METHODID_CREATE_REPOSITORY = 2; - private static final int METHODID_UPDATE_REPOSITORY = 3; - private static final int METHODID_DELETE_REPOSITORY = 4; - private static final int METHODID_COMMIT_REPOSITORY_CHANGES = 5; - private static final int METHODID_READ_REPOSITORY_FILE = 6; - private static final int METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS = 7; - private static final int METHODID_FETCH_REPOSITORY_HISTORY = 8; - private static final int METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS = 9; - private static final int METHODID_FETCH_REMOTE_BRANCHES = 10; - private static final int METHODID_LIST_WORKSPACES = 11; - private static final int METHODID_GET_WORKSPACE = 12; - private static final int METHODID_CREATE_WORKSPACE = 13; - private static final int METHODID_DELETE_WORKSPACE = 14; - private static final int METHODID_INSTALL_NPM_PACKAGES = 15; - private static final int METHODID_PULL_GIT_COMMITS = 16; - private static final int METHODID_PUSH_GIT_COMMITS = 17; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 18; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 19; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 20; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 21; - private static final int METHODID_FETCH_FILE_DIFF = 22; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 23; - private static final int METHODID_SEARCH_FILES = 24; - private static final int METHODID_MAKE_DIRECTORY = 25; - private static final int METHODID_REMOVE_DIRECTORY = 26; - private static final int METHODID_MOVE_DIRECTORY = 27; - private static final int METHODID_READ_FILE = 28; - private static final int METHODID_REMOVE_FILE = 29; - private static final int METHODID_MOVE_FILE = 30; - private static final int METHODID_WRITE_FILE = 31; - private static final int METHODID_LIST_RELEASE_CONFIGS = 32; - private static final int METHODID_GET_RELEASE_CONFIG = 33; - private static final int METHODID_CREATE_RELEASE_CONFIG = 34; - private static final int METHODID_UPDATE_RELEASE_CONFIG = 35; - private static final int METHODID_DELETE_RELEASE_CONFIG = 36; - private static final int METHODID_LIST_COMPILATION_RESULTS = 37; - private static final int METHODID_GET_COMPILATION_RESULT = 38; - private static final int METHODID_CREATE_COMPILATION_RESULT = 39; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 40; - private static final int METHODID_LIST_WORKFLOW_CONFIGS = 41; - private static final int METHODID_GET_WORKFLOW_CONFIG = 42; - private static final int METHODID_CREATE_WORKFLOW_CONFIG = 43; - private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 44; - private static final int METHODID_DELETE_WORKFLOW_CONFIG = 45; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 46; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 47; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 48; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 49; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 50; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 51; - private static final int METHODID_GET_CONFIG = 52; - private static final int METHODID_UPDATE_CONFIG = 53; + private static final int METHODID_GET_TEAM_FOLDER = 0; + private static final int METHODID_CREATE_TEAM_FOLDER = 1; + private static final int METHODID_UPDATE_TEAM_FOLDER = 2; + private static final int METHODID_DELETE_TEAM_FOLDER = 3; + private static final int METHODID_DELETE_TEAM_FOLDER_TREE = 4; + private static final int METHODID_QUERY_TEAM_FOLDER_CONTENTS = 5; + private static final int METHODID_SEARCH_TEAM_FOLDERS = 6; + private static final int METHODID_GET_FOLDER = 7; + private static final int METHODID_CREATE_FOLDER = 8; + private static final int METHODID_UPDATE_FOLDER = 9; + private static final int METHODID_DELETE_FOLDER = 10; + private static final int METHODID_DELETE_FOLDER_TREE = 11; + private static final int METHODID_QUERY_FOLDER_CONTENTS = 12; + private static final int METHODID_QUERY_USER_ROOT_CONTENTS = 13; + private static final int METHODID_MOVE_FOLDER = 14; + private static final int METHODID_LIST_REPOSITORIES = 15; + private static final int METHODID_GET_REPOSITORY = 16; + private static final int METHODID_CREATE_REPOSITORY = 17; + private static final int METHODID_UPDATE_REPOSITORY = 18; + private static final int METHODID_DELETE_REPOSITORY = 19; + private static final int METHODID_MOVE_REPOSITORY = 20; + private static final int METHODID_COMMIT_REPOSITORY_CHANGES = 21; + private static final int METHODID_READ_REPOSITORY_FILE = 22; + private static final int METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS = 23; + private static final int METHODID_FETCH_REPOSITORY_HISTORY = 24; + private static final int METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS = 25; + private static final int METHODID_FETCH_REMOTE_BRANCHES = 26; + private static final int METHODID_LIST_WORKSPACES = 27; + private static final int METHODID_GET_WORKSPACE = 28; + private static final int METHODID_CREATE_WORKSPACE = 29; + private static final int METHODID_DELETE_WORKSPACE = 30; + private static final int METHODID_INSTALL_NPM_PACKAGES = 31; + private static final int METHODID_PULL_GIT_COMMITS = 32; + private static final int METHODID_PUSH_GIT_COMMITS = 33; + private static final int METHODID_FETCH_FILE_GIT_STATUSES = 34; + private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 35; + private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 36; + private static final int METHODID_RESET_WORKSPACE_CHANGES = 37; + private static final int METHODID_FETCH_FILE_DIFF = 38; + private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 39; + private static final int METHODID_SEARCH_FILES = 40; + private static final int METHODID_MAKE_DIRECTORY = 41; + private static final int METHODID_REMOVE_DIRECTORY = 42; + private static final int METHODID_MOVE_DIRECTORY = 43; + private static final int METHODID_READ_FILE = 44; + private static final int METHODID_REMOVE_FILE = 45; + private static final int METHODID_MOVE_FILE = 46; + private static final int METHODID_WRITE_FILE = 47; + private static final int METHODID_LIST_RELEASE_CONFIGS = 48; + private static final int METHODID_GET_RELEASE_CONFIG = 49; + private static final int METHODID_CREATE_RELEASE_CONFIG = 50; + private static final int METHODID_UPDATE_RELEASE_CONFIG = 51; + private static final int METHODID_DELETE_RELEASE_CONFIG = 52; + private static final int METHODID_LIST_COMPILATION_RESULTS = 53; + private static final int METHODID_GET_COMPILATION_RESULT = 54; + private static final int METHODID_CREATE_COMPILATION_RESULT = 55; + private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 56; + private static final int METHODID_LIST_WORKFLOW_CONFIGS = 57; + private static final int METHODID_GET_WORKFLOW_CONFIG = 58; + private static final int METHODID_CREATE_WORKFLOW_CONFIG = 59; + private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 60; + private static final int METHODID_DELETE_WORKFLOW_CONFIG = 61; + private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 62; + private static final int METHODID_GET_WORKFLOW_INVOCATION = 63; + private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 64; + private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 65; + private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 66; + private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 67; + private static final int METHODID_GET_CONFIG = 68; + private static final int METHODID_UPDATE_CONFIG = 69; + private static final int METHODID_GET_IAM_POLICY = 70; + private static final int METHODID_SET_IAM_POLICY = 71; + private static final int METHODID_TEST_IAM_PERMISSIONS = 72; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6802,6 +9050,91 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_GET_TEAM_FOLDER: + serviceImpl.getTeamFolder( + (com.google.cloud.dataform.v1.GetTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_TEAM_FOLDER: + serviceImpl.createTeamFolder( + (com.google.cloud.dataform.v1.CreateTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TEAM_FOLDER: + serviceImpl.updateTeamFolder( + (com.google.cloud.dataform.v1.UpdateTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TEAM_FOLDER: + serviceImpl.deleteTeamFolder( + (com.google.cloud.dataform.v1.DeleteTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TEAM_FOLDER_TREE: + serviceImpl.deleteTeamFolderTree( + (com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_TEAM_FOLDER_CONTENTS: + serviceImpl.queryTeamFolderContents( + (com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse>) + responseObserver); + break; + case METHODID_SEARCH_TEAM_FOLDERS: + serviceImpl.searchTeamFolders( + (com.google.cloud.dataform.v1.SearchTeamFoldersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_FOLDER: + serviceImpl.getFolder( + (com.google.cloud.dataform.v1.GetFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FOLDER: + serviceImpl.createFolder( + (com.google.cloud.dataform.v1.CreateFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FOLDER: + serviceImpl.updateFolder( + (com.google.cloud.dataform.v1.UpdateFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FOLDER: + serviceImpl.deleteFolder( + (com.google.cloud.dataform.v1.DeleteFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FOLDER_TREE: + serviceImpl.deleteFolderTree( + (com.google.cloud.dataform.v1.DeleteFolderTreeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_FOLDER_CONTENTS: + serviceImpl.queryFolderContents( + (com.google.cloud.dataform.v1.QueryFolderContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1.QueryFolderContentsResponse>) + responseObserver); + break; + case METHODID_QUERY_USER_ROOT_CONTENTS: + serviceImpl.queryUserRootContents( + (com.google.cloud.dataform.v1.QueryUserRootContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse>) + responseObserver); + break; + case METHODID_MOVE_FOLDER: + serviceImpl.moveFolder( + (com.google.cloud.dataform.v1.MoveFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_REPOSITORIES: serviceImpl.listRepositories( (com.google.cloud.dataform.v1.ListRepositoriesRequest) request, @@ -6831,6 +9164,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1.DeleteRepositoryRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_MOVE_REPOSITORY: + serviceImpl.moveRepository( + (com.google.cloud.dataform.v1.MoveRepositoryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_COMMIT_REPOSITORY_CHANGES: serviceImpl.commitRepositoryChanges( (com.google.cloud.dataform.v1.CommitRepositoryChangesRequest) request, @@ -7135,6 +9473,22 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1.UpdateConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -7153,6 +9507,100 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.GetTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder>(service, METHODID_GET_TEAM_FOLDER))) + .addMethod( + getCreateTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder>(service, METHODID_CREATE_TEAM_FOLDER))) + .addMethod( + getUpdateTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder>(service, METHODID_UPDATE_TEAM_FOLDER))) + .addMethod( + getDeleteTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.DeleteTeamFolderRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_TEAM_FOLDER))) + .addMethod( + getDeleteTeamFolderTreeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_TEAM_FOLDER_TREE))) + .addMethod( + getQueryTeamFolderContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse>( + service, METHODID_QUERY_TEAM_FOLDER_CONTENTS))) + .addMethod( + getSearchTeamFoldersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse>( + service, METHODID_SEARCH_TEAM_FOLDERS))) + .addMethod( + getGetFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.GetFolderRequest, + com.google.cloud.dataform.v1.Folder>(service, METHODID_GET_FOLDER))) + .addMethod( + getCreateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.CreateFolderRequest, + com.google.cloud.dataform.v1.Folder>(service, METHODID_CREATE_FOLDER))) + .addMethod( + getUpdateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.UpdateFolderRequest, + com.google.cloud.dataform.v1.Folder>(service, METHODID_UPDATE_FOLDER))) + .addMethod( + getDeleteFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.DeleteFolderRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_FOLDER))) + .addMethod( + getDeleteFolderTreeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.DeleteFolderTreeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_FOLDER_TREE))) + .addMethod( + getQueryFolderContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1.QueryFolderContentsResponse>( + service, METHODID_QUERY_FOLDER_CONTENTS))) + .addMethod( + getQueryUserRootContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse>( + service, METHODID_QUERY_USER_ROOT_CONTENTS))) + .addMethod( + getMoveFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.MoveFolderRequest, + com.google.longrunning.Operation>(service, METHODID_MOVE_FOLDER))) .addMethod( getListRepositoriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -7184,6 +9632,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1.DeleteRepositoryRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_REPOSITORY))) + .addMethod( + getMoveRepositoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.MoveRepositoryRequest, + com.google.longrunning.Operation>(service, METHODID_MOVE_REPOSITORY))) .addMethod( getCommitRepositoryChangesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -7516,6 +9970,23 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1.UpdateConfigRequest, com.google.cloud.dataform.v1.Config>(service, METHODID_UPDATE_CONFIG))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .build(); } @@ -7565,11 +10036,27 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new DataformFileDescriptorSupplier()) + .addMethod(getGetTeamFolderMethod()) + .addMethod(getCreateTeamFolderMethod()) + .addMethod(getUpdateTeamFolderMethod()) + .addMethod(getDeleteTeamFolderMethod()) + .addMethod(getDeleteTeamFolderTreeMethod()) + .addMethod(getQueryTeamFolderContentsMethod()) + .addMethod(getSearchTeamFoldersMethod()) + .addMethod(getGetFolderMethod()) + .addMethod(getCreateFolderMethod()) + .addMethod(getUpdateFolderMethod()) + .addMethod(getDeleteFolderMethod()) + .addMethod(getDeleteFolderTreeMethod()) + .addMethod(getQueryFolderContentsMethod()) + .addMethod(getQueryUserRootContentsMethod()) + .addMethod(getMoveFolderMethod()) .addMethod(getListRepositoriesMethod()) .addMethod(getGetRepositoryMethod()) .addMethod(getCreateRepositoryMethod()) .addMethod(getUpdateRepositoryMethod()) .addMethod(getDeleteRepositoryMethod()) + .addMethod(getMoveRepositoryMethod()) .addMethod(getCommitRepositoryChangesMethod()) .addMethod(getReadRepositoryFileMethod()) .addMethod(getQueryRepositoryDirectoryContentsMethod()) @@ -7619,6 +10106,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getQueryWorkflowInvocationActionsMethod()) .addMethod(getGetConfigMethod()) .addMethod(getUpdateConfigMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) .build(); } } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResult.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResult.java index e9f4b1ef2ed3..657c4693a7d6 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResult.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResult.java @@ -2313,6 +2313,72 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 12; + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2360,6 +2426,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -2404,6 +2473,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2440,6 +2514,10 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: @@ -2491,6 +2569,10 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } switch (sourceCase_) { case 2: hash = (37 * hash) + GIT_COMMITISH_FIELD_NUMBER; @@ -2652,6 +2734,7 @@ private void maybeForceBuilderInitialization() { internalGetCompilationErrorsFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); internalGetCreateTimeFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -2685,6 +2768,11 @@ public Builder clear() { createTimeBuilder_ = null; } internalMetadata_ = ""; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } sourceCase_ = 0; source_ = null; return this; @@ -2769,6 +2857,13 @@ private void buildPartial0(com.google.cloud.dataform.v1.CompilationResult result result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -2845,6 +2940,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.CompilationResult other) { bitField0_ |= 0x00000400; onChanged(); } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } switch (other.getSourceCase()) { case GIT_COMMITISH: { @@ -2978,6 +3076,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 90 + case 98: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5052,6 +5158,242 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000800); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CompilationResult) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultAction.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultAction.java index 4682f1a00e56..59cce986ea30 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultAction.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultAction.java @@ -632,6 +632,130 @@ java.lang.String getAdditionalOptionsOrDefault( * map<string, string> additional_options = 14; */ java.lang.String getAdditionalOptionsOrThrow(java.lang.String key); + + /** + * + * + *
            +     * Optional. The connection specifying the credentials to be used to read
            +     * and write to external storage, such as Cloud Storage. The connection can
            +     * have the form `{project}.{location}.{connection_id}` or
            +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +     * or be set to DEFAULT.
            +     * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + java.lang.String getConnection(); + + /** + * + * + *
            +     * Optional. The connection specifying the credentials to be used to read
            +     * and write to external storage, such as Cloud Storage. The connection can
            +     * have the form `{project}.{location}.{connection_id}` or
            +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +     * or be set to DEFAULT.
            +     * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ + com.google.protobuf.ByteString getConnectionBytes(); + + /** + * + * + *
            +     * Optional. The table format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + int getTableFormatValue(); + + /** + * + * + *
            +     * Optional. The table format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat getTableFormat(); + + /** + * + * + *
            +     * Optional. The file format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + int getFileFormatValue(); + + /** + * + * + *
            +     * Optional. The file format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat getFileFormat(); + + /** + * + * + *
            +     * Optional. The fully qualified location prefix of the external folder
            +     * where table data is stored. The URI should be in the format
            +     * `gs://bucket/path_to_table/`.
            +     * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + java.lang.String getStorageUri(); + + /** + * + * + *
            +     * Optional. The fully qualified location prefix of the external folder
            +     * where table data is stored. The URI should be in the format
            +     * `gs://bucket/path_to_table/`.
            +     * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + com.google.protobuf.ByteString getStorageUriBytes(); } /** @@ -673,6 +797,10 @@ private Relation() { postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); partitionExpression_ = ""; clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + connection_ = ""; + tableFormat_ = 0; + fileFormat_ = 0; + storageUri_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -919,143 +1047,439 @@ private RelationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType) } - public interface IncrementalTableConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig) - com.google.protobuf.MessageOrBuilder { - + /** + * + * + *
            +     * Supported table formats for BigQuery tables.
            +     * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat} + */ + public enum TableFormat implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -       * The SELECT query which returns rows which should be inserted into the
            -       * relation if it already exists and is not being refreshed.
            +       * Default value.
                    * 
            * - * string incremental_select_query = 1; - * - * @return The incrementalSelectQuery. + * TABLE_FORMAT_UNSPECIFIED = 0; */ - java.lang.String getIncrementalSelectQuery(); - + TABLE_FORMAT_UNSPECIFIED(0), /** * * *
            -       * The SELECT query which returns rows which should be inserted into the
            -       * relation if it already exists and is not being refreshed.
            +       * Apache Iceberg format.
                    * 
            * - * string incremental_select_query = 1; - * - * @return The bytes for incrementalSelectQuery. + * ICEBERG = 1; */ - com.google.protobuf.ByteString getIncrementalSelectQueryBytes(); + ICEBERG(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TableFormat"); + } /** * * *
            -       * Whether this table should be protected from being refreshed.
            +       * Default value.
                    * 
            * - * bool refresh_disabled = 2; - * - * @return The refreshDisabled. + * TABLE_FORMAT_UNSPECIFIED = 0; */ - boolean getRefreshDisabled(); + public static final int TABLE_FORMAT_UNSPECIFIED_VALUE = 0; /** * * *
            -       * A set of columns or SQL expressions used to define row uniqueness.
            -       * If any duplicates are discovered (as defined by `unique_key_parts`),
            -       * only the newly selected rows (as defined by `incremental_select_query`)
            -       * will be included in the relation.
            +       * Apache Iceberg format.
                    * 
            * - * repeated string unique_key_parts = 3; - * - * @return A list containing the uniqueKeyParts. + * ICEBERG = 1; */ - java.util.List getUniqueKeyPartsList(); + public static final int ICEBERG_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } /** - * - * - *
            -       * A set of columns or SQL expressions used to define row uniqueness.
            -       * If any duplicates are discovered (as defined by `unique_key_parts`),
            -       * only the newly selected rows (as defined by `incremental_select_query`)
            -       * will be included in the relation.
            -       * 
            - * - * repeated string unique_key_parts = 3; - * - * @return The count of uniqueKeyParts. + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. */ - int getUniqueKeyPartsCount(); + @java.lang.Deprecated + public static TableFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TableFormat forNumber(int value) { + switch (value) { + case 0: + return TABLE_FORMAT_UNSPECIFIED; + case 1: + return ICEBERG; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TableFormat findValueByNumber(int number) { + return TableFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.CompilationResultAction.Relation.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final TableFormat[] VALUES = values(); + public static TableFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TableFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat) + } + + /** + * + * + *
            +     * Supported file formats for BigQuery tables.
            +     * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat} + */ + public enum FileFormat implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -       * A set of columns or SQL expressions used to define row uniqueness.
            -       * If any duplicates are discovered (as defined by `unique_key_parts`),
            -       * only the newly selected rows (as defined by `incremental_select_query`)
            -       * will be included in the relation.
            +       * Default value.
                    * 
            * - * repeated string unique_key_parts = 3; - * - * @param index The index of the element to return. - * @return The uniqueKeyParts at the given index. + * FILE_FORMAT_UNSPECIFIED = 0; */ - java.lang.String getUniqueKeyParts(int index); - + FILE_FORMAT_UNSPECIFIED(0), /** * * *
            -       * A set of columns or SQL expressions used to define row uniqueness.
            -       * If any duplicates are discovered (as defined by `unique_key_parts`),
            -       * only the newly selected rows (as defined by `incremental_select_query`)
            -       * will be included in the relation.
            +       * Apache Parquet format.
                    * 
            * - * repeated string unique_key_parts = 3; - * - * @param index The index of the value to return. - * @return The bytes of the uniqueKeyParts at the given index. + * PARQUET = 1; */ - com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index); + PARQUET(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FileFormat"); + } /** * * *
            -       * A SQL expression conditional used to limit the set of existing rows
            -       * considered for a merge operation (see `unique_key_parts` for more
            -       * information).
            +       * Default value.
                    * 
            * - * string update_partition_filter = 4; - * - * @return The updatePartitionFilter. + * FILE_FORMAT_UNSPECIFIED = 0; */ - java.lang.String getUpdatePartitionFilter(); + public static final int FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** * * *
            -       * A SQL expression conditional used to limit the set of existing rows
            -       * considered for a merge operation (see `unique_key_parts` for more
            -       * information).
            +       * Apache Parquet format.
                    * 
            * - * string update_partition_filter = 4; + * PARQUET = 1; + */ + public static final int PARQUET_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FileFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FileFormat forNumber(int value) { + switch (value) { + case 0: + return FILE_FORMAT_UNSPECIFIED; + case 1: + return PARQUET; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FileFormat findValueByNumber(int number) { + return FileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.CompilationResultAction.Relation.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final FileFormat[] VALUES = values(); + + public static FileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FileFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat) + } + + public interface IncrementalTableConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * The SELECT query which returns rows which should be inserted into the
            +       * relation if it already exists and is not being refreshed.
            +       * 
            + * + * string incremental_select_query = 1; + * + * @return The incrementalSelectQuery. + */ + java.lang.String getIncrementalSelectQuery(); + + /** + * + * + *
            +       * The SELECT query which returns rows which should be inserted into the
            +       * relation if it already exists and is not being refreshed.
            +       * 
            + * + * string incremental_select_query = 1; + * + * @return The bytes for incrementalSelectQuery. + */ + com.google.protobuf.ByteString getIncrementalSelectQueryBytes(); + + /** + * + * + *
            +       * Whether this table should be protected from being refreshed.
            +       * 
            + * + * bool refresh_disabled = 2; + * + * @return The refreshDisabled. + */ + boolean getRefreshDisabled(); + + /** + * + * + *
            +       * A set of columns or SQL expressions used to define row uniqueness.
            +       * If any duplicates are discovered (as defined by `unique_key_parts`),
            +       * only the newly selected rows (as defined by `incremental_select_query`)
            +       * will be included in the relation.
            +       * 
            + * + * repeated string unique_key_parts = 3; + * + * @return A list containing the uniqueKeyParts. + */ + java.util.List getUniqueKeyPartsList(); + + /** + * + * + *
            +       * A set of columns or SQL expressions used to define row uniqueness.
            +       * If any duplicates are discovered (as defined by `unique_key_parts`),
            +       * only the newly selected rows (as defined by `incremental_select_query`)
            +       * will be included in the relation.
            +       * 
            + * + * repeated string unique_key_parts = 3; + * + * @return The count of uniqueKeyParts. + */ + int getUniqueKeyPartsCount(); + + /** + * + * + *
            +       * A set of columns or SQL expressions used to define row uniqueness.
            +       * If any duplicates are discovered (as defined by `unique_key_parts`),
            +       * only the newly selected rows (as defined by `incremental_select_query`)
            +       * will be included in the relation.
            +       * 
            + * + * repeated string unique_key_parts = 3; + * + * @param index The index of the element to return. + * @return The uniqueKeyParts at the given index. + */ + java.lang.String getUniqueKeyParts(int index); + + /** + * + * + *
            +       * A set of columns or SQL expressions used to define row uniqueness.
            +       * If any duplicates are discovered (as defined by `unique_key_parts`),
            +       * only the newly selected rows (as defined by `incremental_select_query`)
            +       * will be included in the relation.
            +       * 
            + * + * repeated string unique_key_parts = 3; + * + * @param index The index of the value to return. + * @return The bytes of the uniqueKeyParts at the given index. + */ + com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index); + + /** + * + * + *
            +       * A SQL expression conditional used to limit the set of existing rows
            +       * considered for a merge operation (see `unique_key_parts` for more
            +       * information).
            +       * 
            + * + * string update_partition_filter = 4; + * + * @return The updatePartitionFilter. + */ + java.lang.String getUpdatePartitionFilter(); + + /** + * + * + *
            +       * A SQL expression conditional used to limit the set of existing rows
            +       * considered for a merge operation (see `unique_key_parts` for more
            +       * information).
            +       * 
            + * + * string update_partition_filter = 4; * * @return The bytes for updatePartitionFilter. */ @@ -3867,28 +4291,236 @@ public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) { return map.get(key); } - private byte memoizedIsInitialized = -1; + public static final int CONNECTION_FIELD_NUMBER = 15; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private volatile java.lang.Object connection_ = ""; - memoizedIsInitialized = 1; - return true; + /** + * + * + *
            +     * Optional. The connection specifying the credentials to be used to read
            +     * and write to external storage, such as Cloud Storage. The connection can
            +     * have the form `{project}.{location}.{connection_id}` or
            +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +     * or be set to DEFAULT.
            +     * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + @java.lang.Override + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + 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(); + connection_ = s; + return s; + } } + /** + * + * + *
            +     * Optional. The connection specifying the credentials to be used to read
            +     * and write to external storage, such as Cloud Storage. The connection can
            +     * have the form `{project}.{location}.{connection_id}` or
            +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +     * or be set to DEFAULT.
            +     * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < dependencyTargets_.size(); i++) { - output.writeMessage(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - output.writeBool(2, disabled_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, tags_.getRaw(i)); + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_FORMAT_FIELD_NUMBER = 16; + private int tableFormat_ = 0; + + /** + * + * + *
            +     * Optional. The table format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + @java.lang.Override + public int getTableFormatValue() { + return tableFormat_; + } + + /** + * + * + *
            +     * Optional. The table format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + getTableFormat() { + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat result = + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat.forNumber( + tableFormat_); + return result == null + ? com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat.UNRECOGNIZED + : result; + } + + public static final int FILE_FORMAT_FIELD_NUMBER = 17; + private int fileFormat_ = 0; + + /** + * + * + *
            +     * Optional. The file format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + @java.lang.Override + public int getFileFormatValue() { + return fileFormat_; + } + + /** + * + * + *
            +     * Optional. The file format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + getFileFormat() { + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat result = + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat.forNumber( + fileFormat_); + return result == null + ? com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat.UNRECOGNIZED + : result; + } + + public static final int STORAGE_URI_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object storageUri_ = ""; + + /** + * + * + *
            +     * Optional. The fully qualified location prefix of the external folder
            +     * where table data is stored. The URI should be in the format
            +     * `gs://bucket/path_to_table/`.
            +     * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + @java.lang.Override + public java.lang.String getStorageUri() { + java.lang.Object ref = storageUri_; + 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(); + storageUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The fully qualified location prefix of the external folder
            +     * where table data is stored. The URI should be in the format
            +     * `gs://bucket/path_to_table/`.
            +     * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageUriBytes() { + java.lang.Object ref = storageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageUri_ = 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 < dependencyTargets_.size(); i++) { + output.writeMessage(1, dependencyTargets_.get(i)); + } + if (disabled_ != false) { + output.writeBool(2, disabled_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, tags_.getRaw(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getRelationDescriptor()); @@ -3928,6 +4560,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetAdditionalOptions(), AdditionalOptionsDefaultEntryHolder.defaultEntry, 14); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, connection_); + } + if (tableFormat_ + != com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + .TABLE_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, tableFormat_); + } + if (fileFormat_ + != com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + .FILE_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(17, fileFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(storageUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, storageUri_); + } getUnknownFields().writeTo(output); } @@ -4014,6 +4664,24 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, additionalOptions__); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, connection_); + } + if (tableFormat_ + != com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + .TABLE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, tableFormat_); + } + if (fileFormat_ + != com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + .FILE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, fileFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(storageUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, storageUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4051,6 +4719,10 @@ public boolean equals(final java.lang.Object obj) { if (getRequirePartitionFilter() != other.getRequirePartitionFilter()) return false; if (!internalGetAdditionalOptions().equals(other.internalGetAdditionalOptions())) return false; + if (!getConnection().equals(other.getConnection())) return false; + if (tableFormat_ != other.tableFormat_) return false; + if (fileFormat_ != other.fileFormat_) return false; + if (!getStorageUri().equals(other.getStorageUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4106,6 +4778,14 @@ public int hashCode() { hash = (37 * hash) + ADDITIONAL_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAdditionalOptions().hashCode(); } + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + hash = (37 * hash) + TABLE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + tableFormat_; + hash = (37 * hash) + FILE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + fileFormat_; + hash = (37 * hash) + STORAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getStorageUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4308,6 +4988,10 @@ public Builder clear() { partitionExpirationDays_ = 0; requirePartitionFilter_ = false; internalGetMutableAdditionalOptions().clear(); + connection_ = ""; + tableFormat_ = 0; + fileFormat_ = 0; + storageUri_ = ""; return this; } @@ -4413,6 +5097,18 @@ private void buildPartial0( result.additionalOptions_ = internalGetAdditionalOptions(); result.additionalOptions_.makeImmutable(); } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.connection_ = connection_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.tableFormat_ = tableFormat_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.fileFormat_ = fileFormat_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.storageUri_ = storageUri_; + } result.bitField0_ |= to_bitField0_; } @@ -4528,6 +5224,22 @@ public Builder mergeFrom( } internalGetMutableAdditionalOptions().mergeFrom(other.internalGetAdditionalOptions()); bitField0_ |= 0x00002000; + if (!other.getConnection().isEmpty()) { + connection_ = other.connection_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.tableFormat_ != 0) { + setTableFormatValue(other.getTableFormatValue()); + } + if (other.fileFormat_ != 0) { + setFileFormatValue(other.getFileFormatValue()); + } + if (!other.getStorageUri().isEmpty()) { + storageUri_ = other.storageUri_; + bitField0_ |= 0x00020000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4659,6 +5371,30 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 114 + case 122: + { + connection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 128: + { + tableFormat_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: + { + fileFormat_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 146: + { + storageUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6929,6 +7665,478 @@ public Builder putAllAdditionalOptions( return this; } + private java.lang.Object connection_ = ""; + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The connection to set. + * @return This builder for chaining. + */ + public Builder setConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConnection() { + connection_ = getDefaultInstance().getConnection(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for connection to set. + * @return This builder for chaining. + */ + public Builder setConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private int tableFormat_ = 0; + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + @java.lang.Override + public int getTableFormatValue() { + return tableFormat_; + } + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for tableFormat to set. + * @return This builder for chaining. + */ + public Builder setTableFormatValue(int value) { + tableFormat_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + getTableFormat() { + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat result = + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat.forNumber( + tableFormat_); + return result == null + ? com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The tableFormat to set. + * @return This builder for chaining. + */ + public Builder setTableFormat( + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + tableFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTableFormat() { + bitField0_ = (bitField0_ & ~0x00008000); + tableFormat_ = 0; + onChanged(); + return this; + } + + private int fileFormat_ = 0; + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + @java.lang.Override + public int getFileFormatValue() { + return fileFormat_; + } + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for fileFormat to set. + * @return This builder for chaining. + */ + public Builder setFileFormatValue(int value) { + fileFormat_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + getFileFormat() { + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat result = + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat.forNumber( + fileFormat_); + return result == null + ? com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The fileFormat to set. + * @return This builder for chaining. + */ + public Builder setFileFormat( + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + fileFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFileFormat() { + bitField0_ = (bitField0_ & ~0x00010000); + fileFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object storageUri_ = ""; + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + public java.lang.String getStorageUri() { + java.lang.Object ref = storageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + public com.google.protobuf.ByteString getStorageUriBytes() { + java.lang.Object ref = storageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The storageUri to set. + * @return This builder for chaining. + */ + public Builder setStorageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storageUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStorageUri() { + storageUri_ = getDefaultInstance().getStorageUri(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for storageUri to set. + * @return This builder for chaining. + */ + public Builder setStorageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CompilationResultAction.Relation) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultOrBuilder.java index 352344884eb4..636ed97cbe9a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultOrBuilder.java @@ -498,5 +498,55 @@ public interface CompilationResultOrBuilder */ com.google.protobuf.ByteString getInternalMetadataBytes(); + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); + com.google.cloud.dataform.v1.CompilationResult.SourceCase getSourceCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ComputeRepositoryAccessTokenStatusResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ComputeRepositoryAccessTokenStatusResponse.java index 906f74b4b008..7c2b0e1d12a9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ComputeRepositoryAccessTokenStatusResponse.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ComputeRepositoryAccessTokenStatusResponse.java @@ -124,6 +124,16 @@ public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { * VALID = 3; */ VALID(3), + /** + * + * + *
            +     * The token is not accessible due to permission issues.
            +     * 
            + * + * PERMISSION_DENIED = 4; + */ + PERMISSION_DENIED(4), UNRECOGNIZED(-1), ; @@ -182,6 +192,17 @@ public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VALID_VALUE = 3; + /** + * + * + *
            +     * The token is not accessible due to permission issues.
            +     * 
            + * + * PERMISSION_DENIED = 4; + */ + public static final int PERMISSION_DENIED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -214,6 +235,8 @@ public static TokenStatus forNumber(int value) { return INVALID; case 3: return VALID; + case 4: + return PERMISSION_DENIED; default: return null; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Config.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Config.java index 54b1e8705061..b247386db0d0 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Config.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Config.java @@ -54,6 +54,7 @@ private Config(com.google.protobuf.GeneratedMessage.Builder builder) { private Config() { name_ = ""; defaultKmsKeyName_ = ""; + internalMetadata_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1.Config.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -183,6 +185,84 @@ public com.google.protobuf.ByteString getDefaultKmsKeyNameBytes() { } } + public static final int INTERNAL_METADATA_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + 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(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -203,6 +283,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultKmsKeyName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultKmsKeyName_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, internalMetadata_); + } getUnknownFields().writeTo(output); } @@ -218,6 +301,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultKmsKeyName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultKmsKeyName_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, internalMetadata_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -235,6 +321,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDefaultKmsKeyName().equals(other.getDefaultKmsKeyName())) return false; + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,6 +340,10 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DEFAULT_KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDefaultKmsKeyName().hashCode(); + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -391,6 +485,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; defaultKmsKeyName_ = ""; + internalMetadata_ = ""; return this; } @@ -432,6 +527,12 @@ private void buildPartial0(com.google.cloud.dataform.v1.Config result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.defaultKmsKeyName_ = defaultKmsKeyName_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -456,6 +557,11 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Config other) { bitField0_ |= 0x00000002; onChanged(); } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -494,6 +600,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 58: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -750,6 +862,150 @@ public Builder setDefaultKmsKeyNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.Config) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigOrBuilder.java index 1b2b31f45839..43b4f743762a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigOrBuilder.java @@ -83,4 +83,52 @@ public interface ConfigOrBuilder * @return The bytes for defaultKmsKeyName. */ com.google.protobuf.ByteString getDefaultKmsKeyNameBytes(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequest.java new file mode 100644 index 000000000000..1905993fdc6c --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequest.java @@ -0,0 +1,912 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `CreateFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.CreateFolderRequest} + */ +@com.google.protobuf.Generated +public final class CreateFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.CreateFolderRequest) + CreateFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateFolderRequest"); + } + + // Use CreateFolderRequest.newBuilder() to construct. + private CreateFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateFolderRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateFolderRequest.class, + com.google.cloud.dataform.v1.CreateFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The location in which to create the Folder. Must be in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The location in which to create the Folder. Must be in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1.Folder folder_; + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); + } + 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.dataform.v1.CreateFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.CreateFolderRequest other = + (com.google.cloud.dataform.v1.CreateFolderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFolder() != other.hasFolder()) return false; + if (hasFolder()) { + if (!getFolder().equals(other.getFolder())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFolder()) { + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest 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.dataform.v1.CreateFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest 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.dataform.v1.CreateFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.CreateFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `CreateFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.CreateFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.CreateFolderRequest) + com.google.cloud.dataform.v1.CreateFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateFolderRequest.class, + com.google.cloud.dataform.v1.CreateFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.CreateFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.CreateFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateFolderRequest build() { + com.google.cloud.dataform.v1.CreateFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateFolderRequest buildPartial() { + com.google.cloud.dataform.v1.CreateFolderRequest result = + new com.google.cloud.dataform.v1.CreateFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.CreateFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.CreateFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.CreateFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.CreateFolderRequest other) { + if (other == com.google.cloud.dataform.v1.CreateFolderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFolder()) { + mergeFolder(other.getFolder()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1.Folder folder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } else { + return folderBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + } else { + folderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + folder_ = builderForValue.build(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && folder_ != null + && folder_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + getFolderBuilder().mergeFrom(value); + } else { + folder_ = value; + } + } else { + folderBuilder_.mergeFrom(value); + } + if (folder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (folderBuilder_ != null) { + return folderBuilder_.getMessageOrBuilder(); + } else { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + getFolder(), getParentForChildren(), isClean()); + folder_ = null; + } + return folderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CreateFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.CreateFolderRequest) + private static final com.google.cloud.dataform.v1.CreateFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.CreateFolderRequest(); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFolderRequest 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.dataform.v1.CreateFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequestOrBuilder.java new file mode 100644 index 000000000000..e83e13233ae2 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface CreateFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CreateFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The location in which to create the Folder. Must be in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The location in which to create the Folder. Must be in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequest.java new file mode 100644 index 000000000000..42741a27e232 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequest.java @@ -0,0 +1,933 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `CreateTeamFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.CreateTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class CreateTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.CreateTeamFolderRequest) + CreateTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateTeamFolderRequest"); + } + + // Use CreateTeamFolderRequest.newBuilder() to construct. + private CreateTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateTeamFolderRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateTeamFolderRequest.class, + com.google.cloud.dataform.v1.CreateTeamFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The location in which to create the TeamFolder. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The location in which to create the TeamFolder. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1.TeamFolder teamFolder_; + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTeamFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTeamFolder()); + } + 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.dataform.v1.CreateTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.CreateTeamFolderRequest other = + (com.google.cloud.dataform.v1.CreateTeamFolderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTeamFolder() != other.hasTeamFolder()) return false; + if (hasTeamFolder()) { + if (!getTeamFolder().equals(other.getTeamFolder())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasTeamFolder()) { + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest 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.dataform.v1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest 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.dataform.v1.CreateTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.CreateTeamFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `CreateTeamFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.CreateTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.CreateTeamFolderRequest) + com.google.cloud.dataform.v1.CreateTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateTeamFolderRequest.class, + com.google.cloud.dataform.v1.CreateTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.CreateTeamFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTeamFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.CreateTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateTeamFolderRequest build() { + com.google.cloud.dataform.v1.CreateTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1.CreateTeamFolderRequest result = + new com.google.cloud.dataform.v1.CreateTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.CreateTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamFolder_ = teamFolderBuilder_ == null ? teamFolder_ : teamFolderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.CreateTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.CreateTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.CreateTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1.CreateTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTeamFolder()) { + mergeTeamFolder(other.getTeamFolder()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1.TeamFolder teamFolder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } else { + return teamFolderBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + } else { + teamFolderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + teamFolder_ = builderForValue.build(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && teamFolder_ != null + && teamFolder_ != com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance()) { + getTeamFolderBuilder().mergeFrom(value); + } else { + teamFolder_ = value; + } + } else { + teamFolderBuilder_.mergeFrom(value); + } + if (teamFolder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTeamFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.TeamFolder.Builder getTeamFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (teamFolderBuilder_ != null) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder>( + getTeamFolder(), getParentForChildren(), isClean()); + teamFolder_ = null; + } + return teamFolderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CreateTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.CreateTeamFolderRequest) + private static final com.google.cloud.dataform.v1.CreateTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.CreateTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTeamFolderRequest 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.dataform.v1.CreateTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..ecd326dbef6a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface CreateTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CreateTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The location in which to create the TeamFolder. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The location in which to create the TeamFolder. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1.TeamFolder getTeamFolder(); + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java index 848736f89450..083a32410c08 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_Repository_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_Repository_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1_ListRepositoriesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -72,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_ListRepositoriesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_ListRepositoriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1_GetRepositoryRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -260,6 +268,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_DirectoryEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_DirectoryEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1_SearchFilesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -616,6 +628,118 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_UpdateConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_UpdateConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_Folder_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_Folder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_CreateFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_CreateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_MoveFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_MoveFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_GetFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_GetFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_UpdateFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_UpdateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_TeamFolder_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_TeamFolder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_MoveFolderMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_MoveFolderMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -630,42 +754,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\022\030google.cloud.dataform.v1\032\034google/api/" + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\032\027" - + "google/rpc/status.proto\032\032google/type/interval.proto\"e\n" + + "gle/api/resource.proto\032\036google/iam/v1/ia" + + "m_policy.proto\032\032google/iam/v1/policy.pro" + + "to\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/" + + "timestamp.proto\032\027google/rpc/status.proto\032\032google/type/interval.proto\"e\n" + "\023DataEncryptionState\022N\n" + "\024kms_key_version_name\030\001 \001(\tB0\340A\002\372A*\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\"\236\r\n\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\"\222\016\n\n" + "Repository\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\022#\n" + + "\021containing_folder\030\020 \001(\tB\003\340A\001H\000\210\001\001\022\"\n" + + "\020team_folder_name\030\022 \001(\tB\003\340A\003H\001\210\001\001\0224\n" + "\013create_time\030\r" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\001\022X\n" - + "\023git_remote_settings\030\002 \001(\01326.google.cloud.datafo" - + "rm.v1.Repository.GitRemoteSettingsB\003\340A\001\022f\n" + + "\023git_remote_settings\030\002 \001(\01326.google.cl" + + "oud.dataform.v1.Repository.GitRemoteSettingsB\003\340A\001\022f\n" + "*npmrc_environment_variables_secret_version\030\003 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022p\n" - + "\037workspace_compilation_overrides\030\004 \001(\0132B.google.cloud." - + "dataform.v1.Repository.WorkspaceCompilationOverridesB\003\340A\001\022E\n" - + "\006labels\030\005 \003(\01320.goog" - + "le.cloud.dataform.v1.Repository.LabelsEntryB\003\340A\001\022,\n" + + "\037workspace_compilation_overrides\030\004 \001(\0132B.goo" + + "gle.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\003\340A\001\022E\n" + + "\006labels\030\005 " + + "\003(\01320.google.cloud.dataform.v1.Repository.LabelsEntryB\003\340A\001\022,\n" + "\034set_authenticated_user_admin\030\t \001(\010B\006\340A\001\340A\004\022\034\n" + "\017service_account\030\n" + " \001(\tB\003\340A\001\022?\n" + "\014kms_key_name\030\013 \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022Q\n" - + "\025data_encryption_state\030\014" - + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\017 \001(\tB\003\340A\003H\000\210\001\001\032\347\004\n" + + "\025data_encryption_state\030\014 \001(\0132-.google." + + "cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" + + "\021internal_metadata\030\017 \001(\tB\003\340A\003H\002\210\001\001\032\347\004\n" + "\021GitRemoteSettings\022\020\n" + "\003url\030\001 \001(\tB\003\340A\002\022\033\n" + "\016default_branch\030\002 \001(\tB\003\340A\002\022_\n" + "#authentication_token_secret_version\030\003 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022v\n" - + "\031ssh_authentication_config\030\005 \001(\0132N.google." - + "cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\003\340A\001\022_\n" - + "\014token_status\030\004 \001(\0162B.google.cloud.datafor" - + "m.v1.Repository.GitRemoteSettings.TokenStatusB\005\030\001\340A\003\032\224\001\n" + + "\031ssh_authentication_config\030\005 \001(\013" + + "2N.google.cloud.dataform.v1.Repository.G" + + "itRemoteSettings.SshAuthenticationConfigB\003\340A\001\022_\n" + + "\014token_status\030\004 \001(\0162B.google.clo" + + "ud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\005\030\001\340A\003\032\224\001\n" + "\027SshAuthenticationConfig\022[\n" + "\037user_private_key_secret_version\030\001 \001(\tB2\340A\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022\034\n" @@ -682,10 +811,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n" - + "\"dataform.googleapis.com/Repository\022Aprojects/{project}/loc" - + "ations/{location}/repositories/{repository}*\014repositories2\n" + + "\"dataform.googleapis.com/Repository\022Aprojects/{pr" + + "oject}/locations/{location}/repositories/{repository}*\014repositories2\n" + "repositoryB\024\n" - + "\022_internal_metadata\"\261\001\n" + + "\022_containing_folderB\023\n" + + "\021_team_folder_nameB\024\n" + + "\022_internal_metadata\"3\n" + + "\027PrivateResourceMetadata\022\030\n" + + "\013user_scoped\030\001 \001(\010B\003\340A\003\"\261\001\n" + "\027ListRepositoriesRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\026\n" @@ -696,15 +829,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030ListRepositoriesResponse\022:\n" + "\014repositories\030\001 \003(\0132$.google.cloud.dataform.v1.Repository\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"P\n" + + "\013unreachable\030\003 \003(\t\"\244\001\n" + + "\025MoveRepositoryRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/Repository\022/\n" + + "\035destination_containing_folder\030\002 \001(\tB\003\340A\001H\000\210\001\001B \n" + + "\036_destination_containing_folder\"P\n" + "\024GetRepositoryRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\"\257\001\n" + "\027CreateRepositoryRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022=\n\n" - + "repository\030\002 \001(\0132$.go" - + "ogle.cloud.dataform.v1.RepositoryB\003\340A\002\022\032\n\r" + + "repository\030\002" + + " \001(\0132$.google.cloud.dataform.v1.RepositoryB\003\340A\002\022\032\n\r" + "repository_id\030\003 \001(\tB\003\340A\002\"\216\001\n" + "\027UpdateRepositoryRequest\0224\n" + "\013update_mask\030\001" @@ -717,24 +855,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CommitRepositoryChangesRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022F\n" - + "\017commit_metadata\030\002 \001(\0132(.goo" - + "gle.cloud.dataform.v1.CommitMetadataB\003\340A\002\022%\n" + + "\017commit_metadata\030\002" + + " \001(\0132(.google.cloud.dataform.v1.CommitMetadataB\003\340A\002\022%\n" + "\030required_head_commit_sha\030\004 \001(\tB\003\340A\001\022j\n" - + "\017file_operations\030\003 \003(\0132L.google.cloud" - + ".dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\003\340A\001\032\233\002\n\r" + + "\017file_operations\030\003 \003(\0132L.google.cloud.datafo" + + "rm.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\003\340A\001\032\233\002\n\r" + "FileOperation\022f\n\n" - + "write_file\030\001 \001(\0132P.google.clou" - + "d.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\000\022h\n" - + "\013delete_file\030\002 \001(\0132Q.google.cloud.dataform.v1.C" - + "ommitRepositoryChangesRequest.FileOperation.DeleteFileH\000\032\035\n" + + "write_file\030\001 \001(\0132P.google.cloud.dataf" + + "orm.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\000\022h\n" + + "\013delete_file\030\002 \001(\0132Q.google.cloud.dataform.v1.CommitRe" + + "positoryChangesRequest.FileOperation.DeleteFileH\000\032\035\n" + "\tWriteFile\022\020\n" + "\010contents\030\001 \001(\014\032\014\n\n" + "DeleteFileB\013\n" + "\toperation\032}\n" + "\023FileOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022U\n" - + "\005value\030\002 \001(\0132F.google.cloud.dataform.v1.CommitR" - + "epositoryChangesRequest.FileOperation:\0028\001\"5\n" + + "\005value\030\002 \001(\0132F" + + ".google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\0028\001\"5\n" + "\037CommitRepositoryChangesResponse\022\022\n\n" + "commit_sha\030\001 \001(\t\"\201\001\n" + "\031ReadRepositoryFileRequest\0228\n" @@ -774,31 +912,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016commit_message\030\002 \001(\tB\003\340A\001\"e\n" + ")ComputeRepositoryAccessTokenStatusRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" - + "\"dataform.googleapis.com/Repository\"\350\001\n" + + "\"dataform.googleapis.com/Repository\"\377\001\n" + "*ComputeRepositoryAccessTokenStatusResponse\022f\n" - + "\014token_status\030\001 \001(\0162P.google.cloud.dataform.v1.ComputeReposito" - + "ryAccessTokenStatusResponse.TokenStatus\"R\n" + + "\014token_status\030\001 \001(\0162P.google." + + "cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n" + "\013TokenStatus\022\034\n" + "\030TOKEN_STATUS_UNSPECIFIED\020\000\022\r\n" + "\tNOT_FOUND\020\001\022\013\n" + "\007INVALID\020\002\022\t\n" - + "\005VALID\020\003\"V\n" + + "\005VALID\020\003\022\025\n" + + "\021PERMISSION_DENIED\020\004\"V\n" + "\032FetchRemoteBranchesRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\"/\n" + "\033FetchRemoteBranchesResponse\022\020\n" - + "\010branches\030\001 \003(\t\"\375\002\n" + + "\010branches\030\001 \003(\t\"\213\004\n" + "\tWorkspace\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" - + "\025data_encryption_state\030\002" - + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\005 \001(" - + "\tB\003\340A\003H\000\210\001\001:\230\001\352A\224\001\n" - + "!dataform.googleapis.com/Workspace\022Xprojects/" - + "{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\n" + + "\025data_encryption_state\030\002 \001(\0132-.goo" + + "gle.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" + + "\021internal_metadata\030\005 \001(\tB\003\340A\003H\000\210\001\001\022\037\n\r" + + "disable_moves\030\006 \001(\010B\003\340A\001H\001\210\001\001\022Y\n" + + "\031private_resource_metadata\030\010 \001(\01321.google" + + ".cloud.dataform.v1.PrivateResourceMetadataB\003\340A\003:\230\001\352A\224\001\n" + + "!dataform.googleapis.com/Workspace\022Xprojects/{project}/locations/" + + "{location}/repositories/{repository}/workspaces/{workspace}*\n" + "workspaces2\tworkspaceB\024\n" - + "\022_internal_metadata\"\260\001\n" + + "\022_internal_metadataB\020\n" + + "\016_disable_moves\"\260\001\n" + "\025ListWorkspacesRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\026\n" @@ -829,8 +971,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\032\n\r" + "remote_branch\030\002 \001(\tB\003\340A\001\022;\n" - + "\006author\030\003 \001(\013" - + "2&.google.cloud.dataform.v1.CommitAuthorB\003\340A\002\"\030\n" + + "\006author\030\003 \001(\0132&" + + ".google.cloud.dataform.v1.CommitAuthorB\003\340A\002\"\030\n" + "\026PullGitCommitsResponse\"l\n" + "\025PushGitCommitsRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" @@ -841,12 +983,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\"\367\002\n" + "\034FetchFileGitStatusesResponse\022n\n" - + "\030uncommitted_file_changes\030\001 \003(\0132L.google.cloud.dataform.v1.FetchFileG" - + "itStatusesResponse.UncommittedFileChange\032\346\001\n" + + "\030uncommitted_file_changes\030\001 \003(\0132L.google.cloud.dataform.v1.FetchFileGit" + + "StatusesResponse.UncommittedFileChange\032\346\001\n" + "\025UncommittedFileChange\022\014\n" + "\004path\030\001 \001(\t\022f\n" - + "\005state\030\002 \001(\0162R.google.cloud.dataform." - + "v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\003\340A\003\"W\n" + + "\005state\030\002 \001(\0162R.google.cloud.dataform.v1" + + ".FetchFileGitStatusesResponse.UncommittedFileChange.StateB\003\340A\003\"W\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005ADDED\020\001\022\013\n" @@ -879,21 +1021,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!dataform.googleapis.com/Workspace\022\021\n" + "\004path\030\002 \001(\tB\003\340A\002\"/\n" + "\025FetchFileDiffResponse\022\026\n" - + "\016formatted_diff\030\001 \001(\t\"\241\001\n" + + "\016formatted_diff\030\001 \001(\t\"\345\001\n" + "\035QueryDirectoryContentsRequest\022<\n" + "\tworkspace\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\021\n" + "\004path\030\002 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\004 \001(\tB\003\340A\001\"~\n" + + "page_token\030\004 \001(\tB\003\340A\001\022B\n" + + "\004view\030\005 \001(\0162/.goog" + + "le.cloud.dataform.v1.DirectoryContentsViewB\003\340A\001\"~\n" + "\036QueryDirectoryContentsResponse\022C\n" - + "\021directory_entries\030\001 \003" - + "(\0132(.google.cloud.dataform.v1.DirectoryEntry\022\027\n" - + "\017next_page_token\030\002 \001(\t\">\n" + + "\021directory_entries\030\001" + + " \003(\0132(.google.cloud.dataform.v1.DirectoryEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\203\001\n" + "\016DirectoryEntry\022\016\n" + "\004file\030\001 \001(\tH\000\022\023\n" - + "\tdirectory\030\002 \001(\tH\000B\007\n" - + "\005entry\"\230\001\n" + + "\tdirectory\030\002 \001(\tH\000\022C\n" + + "\010metadata\030\003" + + " \001(\01321.google.cloud.dataform.v1.FilesystemEntryMetadataB\007\n" + + "\005entry\"h\n" + + "\027FilesystemEntryMetadata\022\027\n\n" + + "size_bytes\030\001 \001(\003B\003\340A\003\0224\n" + + "\013update_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\230\001\n" + "\022SearchFilesRequest\022<\n" + "\tworkspace\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\026\n" @@ -963,8 +1113,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.dataform.v1.CodeCompilationConfigB\003\340A\001\022\032\n\r" + "cron_schedule\030\004 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\001\022m\n" - + " recent_scheduled_release_records\030\005 \003(\0132>.g" - + "oogle.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\003\340A\003\022U\n" + + " recent_scheduled_release_records\030\005 \003(\0132>" + + ".google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\003\340A\003\022U\n" + "\032release_compilation_result\030\006 \001(\tB1\340A\001\372A+\n" + ")dataform.googleapis.com/CompilationResult\022\025\n" + "\010disabled\030\010 \001(\010B\003\340A\001\022#\n" @@ -975,9 +1125,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014error_status\030\003 \001(\0132\022.google.rpc.StatusH\000\0225\n" + "\014release_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\010\n" + "\006result:\255\001\352A\251\001\n" - + "%dataform.googleapis.com/ReleaseConfig\022aprojec" - + "ts/{project}/locations/{location}/reposi" - + "tories/{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + + "%dataform.googleapis.com/ReleaseConfig\022aproj" + + "ects/{project}/locations/{location}/repo" + + "sitories/{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + "releaseConfigB\024\n" + "\022_internal_metadata\"\210\001\n" + "\031ListReleaseConfigsRequest\022:\n" @@ -1005,7 +1155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.dataform.v1.ReleaseConfigB\003\340A\002\"Y\n" + "\032DeleteReleaseConfigRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%dataform.googleapis.com/ReleaseConfig\"\357\007\n" + + "%dataform.googleapis.com/ReleaseConfig\"\312\010\n" + "\021CompilationResult\022\034\n\r" + "git_commitish\030\002 \001(\tB\003\340A\005H\000\022>\n" + "\tworkspace\030\003 \001(\tB)\340A\005\372A#\n" @@ -1013,26 +1163,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016release_config\030\007 \001(\tB-\340A\005\372A\'\n" + "%dataform.googleapis.com/ReleaseConfigH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022U\n" - + "\027code_compilation_config\030\004 \001(\0132/.goo" - + "gle.cloud.dataform.v1.CodeCompilationConfigB\003\340A\005\022$\n" + + "\027code_compilation_config\030\004 \001(\0132/.g" + + "oogle.cloud.dataform.v1.CodeCompilationConfigB\003\340A\005\022$\n" + "\027resolved_git_commit_sha\030\010 \001(\tB\003\340A\003\022\"\n" + "\025dataform_core_version\030\005 \001(\tB\003\340A\003\022]\n" - + "\022compilation_errors\030\006 \003(\0132<.google." - + "cloud.dataform.v1.CompilationResult.CompilationErrorB\003\340A\003\022Q\n" + + "\022compilation_errors\030\006 \003(\0132<.googl" + + "e.cloud.dataform.v1.CompilationResult.CompilationErrorB\003\340A\003\022Q\n" + "\025data_encryption_state\030\t" + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\0224\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" - + "\021internal_metadata\030\013 \001(\tB\003\340A\003H\001\210\001\001\032\215\001\n" + + "\021internal_metadata\030\013 \001(\tB\003\340A\003H\001\210\001\001\022Y\n" + + "\031private_resource_metadata\030\014 \001(\01321.google.cl" + + "oud.dataform.v1.PrivateResourceMetadataB\003\340A\003\032\215\001\n" + "\020CompilationError\022\024\n" + "\007message\030\001 \001(\tB\003\340A\003\022\022\n" + "\005stack\030\002 \001(\tB\003\340A\003\022\021\n" + "\004path\030\003 \001(\tB\003\340A\003\022<\n\r" + "action_target\030\004 \001(\0132" + " .google.cloud.dataform.v1.TargetB\003\340A\003:\301\001\352A\275\001\n" - + ")dataform.googleapis.com/CompilationResult\022iprojects/{pro" - + "ject}/locations/{location}/repositories/{repository}/compilationResults/{compila" - + "tion_result}*\022compilationResults2\021compilationResultB\010\n" + + ")dataform.googleapis.com/CompilationResult\022i" + + "projects/{project}/locations/{location}/repositories/{repository}/compilationRes" + + "ults/{compilation_result}*\022compilationResults2\021compilationResultB\010\n" + "\006sourceB\024\n" + "\022_internal_metadata\"\356\003\n" + "\025CodeCompilationConfig\022\035\n" @@ -1040,15 +1192,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016default_schema\030\002 \001(\tB\003\340A\001\022\035\n" + "\020default_location\030\010 \001(\tB\003\340A\001\022\035\n" + "\020assertion_schema\030\003 \001(\tB\003\340A\001\022L\n" - + "\004vars\030\004" - + " \003(\01329.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\003\340A\001\022\034\n" + + "\004vars\030\004 \003(\01329.google.cloud.datafo" + + "rm.v1.CodeCompilationConfig.VarsEntryB\003\340A\001\022\034\n" + "\017database_suffix\030\005 \001(\tB\003\340A\001\022\032\n\r" + "schema_suffix\030\006 \001(\tB\003\340A\001\022\031\n" + "\014table_prefix\030\007 \001(\tB\003\340A\001\022*\n" + "\035builtin_assertion_name_prefix\030\n" + " \001(\tB\003\340A\001\022_\n" - + " default_notebook_runtime_options\030\t \001(\013" - + "20.google.cloud.dataform.v1.NotebookRuntimeOptionsB\003\340A\001\032+\n" + + " default_notebook_runtime_options\030\t" + + " \001(\01320.google.cloud.dataform.v1.NotebookRuntimeOptionsB\003\340A\001\032+\n" + "\tVarsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\266\001\n" @@ -1083,56 +1235,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\003 \001(\tB\003\340A\001\"\340\002\n" + "\022RelationDescriptor\022\023\n" + "\013description\030\001 \001(\t\022N\n" - + "\007columns\030\002 \003(\0132=.google." - + "cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\022Y\n" - + "\017bigquery_labels\030\003 \003(\0132@" - + ".google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + + "\007columns\030\002 " + + "\003(\0132=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\022Y\n" + + "\017bigquery_labels\030\003" + + " \003(\0132@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + "\020ColumnDescriptor\022\014\n" + "\004path\030\001 \003(\t\022\023\n" + "\013description\030\002 \001(\t\022\034\n" + "\024bigquery_policy_tags\030\003 \003(\t\0325\n" + "\023BigqueryLabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\272\033\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + + "\005value\030\002 \001(\t:\0028\001\"\243\036\n" + "\027CompilationResultAction\022N\n" - + "\010relation\030\004" - + " \001(\0132:.google.cloud.dataform.v1.CompilationResultAction.RelationH\000\022R\n\n" - + "operations\030\005" - + " \001(\0132<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\000\022P\n" - + "\tassertion\030\006 \001(\0132;.google.cloud.dataform." - + "v1.CompilationResultAction.AssertionH\000\022T\n" - + "\013declaration\030\007 \001(\0132=.google.cloud.dataf" - + "orm.v1.CompilationResultAction.DeclarationH\000\022N\n" - + "\010notebook\030\010 \001(\0132:.google.cloud.da" - + "taform.v1.CompilationResultAction.NotebookH\000\022]\n" - + "\020data_preparation\030\t \001(\0132A.google." - + "cloud.dataform.v1.CompilationResultAction.DataPreparationH\000\0220\n" + + "\010relation\030\004 \001(\0132:.google.cloud.d" + + "ataform.v1.CompilationResultAction.RelationH\000\022R\n\n" + + "operations\030\005 \001(\0132<.google.cloud" + + ".dataform.v1.CompilationResultAction.OperationsH\000\022P\n" + + "\tassertion\030\006 \001(\0132;.google.cl" + + "oud.dataform.v1.CompilationResultAction.AssertionH\000\022T\n" + + "\013declaration\030\007 \001(\0132=.googl" + + "e.cloud.dataform.v1.CompilationResultAction.DeclarationH\000\022N\n" + + "\010notebook\030\010 \001(\0132:.go" + + "ogle.cloud.dataform.v1.CompilationResultAction.NotebookH\000\022]\n" + + "\020data_preparation\030\t " + + "\001(\0132A.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\000\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022:\n" + "\020canonical_target\030\002 \001(\0132 .google.cloud.dataform.v1.Target\022\021\n" + "\tfile_path\030\003 \001(\t\022#\n" + "\021internal_metadata\030\n" - + " \001(\tB\003\340A\003H\001\210\001\001\032\305\010\n" + + " \001(\tB\003\340A\003H\001\210\001\001\032\256\013\n" + "\010Relation\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" - + "\010disabled\030\002 \001(\010\022\014\n" + + "\010dis", + "abled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022I\n" - + "\023relation_descriptor\030\004 \001(" - + "\0132,.google.cloud.dataform.v1.RelationDescriptor\022^\n\r" - + "relation_type\030\005 \001(\0162G.google." - + "cloud.dataform.v1.CompilationResultAction.Relation.RelationType\022\024\n" + + "\023relation_descriptor\030\004" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022^\n\r" + + "relation_type\030\005 " + + "\001(\0162G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\022\024\n" + "\014select_query\030\006 \001(\t\022\026\n" + "\016pre_operations\030\007 \003(\t\022\027\n" + "\017post_operations\030\010 \003(\t\022s\n" - + "\030incremental_table_config\030\t \001(\0132Q.google.cloud.dataform.v1.Comp" - + "ilationResultAction.Relation.IncrementalTableConfig\022\034\n" + + "\030incremental_table_config\030\t \001(\0132Q.google.cloud.dat" + + "aform.v1.CompilationResultAction.Relation.IncrementalTableConfig\022\034\n" + "\024partition_expression\030\n" + " \001(\t\022\033\n" + "\023cluster_expressions\030\013 \003(\t\022!\n" + "\031partition_expiration_days\030\014 \001(\005\022 \n" + "\030require_partition_filter\030\r" + " \001(\010\022m\n" - + "\022additional_options\030\016 \003(\0132Q.google.cloud.dataform.v1.Compi" - + "lationResultAction.Relation.AdditionalOptionsEntry\032\330\001\n" + + "\022additional_options\030\016 \003(\0132Q.google.cloud.data" + + "form.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\022\027\n\n" + + "connection\030\017 \001(\tB\003\340A\001\022a\n" + + "\014table_format\030\020 \001(\0162F.google." + + "cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\003\340A\001\022_\n" + + "\013file_format\030\021 \001(\0162E.google.cloud.dataform.v1.Comp" + + "ilationResultAction.Relation.FileFormatB\003\340A\001\022\030\n" + + "\013storage_uri\030\022 \001(\tB\003\340A\001\032\330\001\n" + "\026IncrementalTableConfig\022 \n" + "\030incremental_select_query\030\001 \001(\t\022\030\n" + "\020refresh_disabled\030\002 \001(\010\022\030\n" @@ -1144,18 +1304,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"p\n" + "\014RelationType\022\035\n" - + "\031RELATION_TYPE", - "_UNSPECIFIED\020\000\022\t\n" + + "\031RELATION_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005TABLE\020\001\022\010\n" + "\004VIEW\020\002\022\025\n" + "\021INCREMENTAL_TABLE\020\003\022\025\n" - + "\021MATERIALIZED_VIEW\020\004\032\332\001\n\n" + + "\021MATERIALIZED_VIEW\020\004\"8\n" + + "\013TableFormat\022\034\n" + + "\030TABLE_FORMAT_UNSPECIFIED\020\000\022\013\n" + + "\007ICEBERG\020\001\"6\n\n" + + "FileFormat\022\033\n" + + "\027FILE_FORMAT_UNSPECIFIED\020\000\022\013\n" + + "\007PARQUET\020\001\032\332\001\n\n" + "Operations\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022I\n" - + "\023relation_descriptor\030\006" - + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022\017\n" + + "\023relation_descriptor\030\006 \001(\0132,.goog" + + "le.cloud.dataform.v1.RelationDescriptor\022\017\n" + "\007queries\030\004 \003(\t\022\022\n\n" + "has_output\030\005 \001(\010\032\203\002\n" + "\tAssertion\022<\n" @@ -1164,8 +1329,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022\024\n" + "\014select_query\030\004 \001(\t\022I\n" - + "\023relation_descriptor\030\006 \001(\0132," - + ".google.cloud.dataform.v1.RelationDescriptor\032X\n" + + "\023relation_descriptor\030\006" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032X\n" + "\013Declaration\022I\n" + "\023relation_descriptor\030\001" + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032z\n" @@ -1176,30 +1341,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\t\032\247\004\n" + "\017DataPreparation\022\027\n\r" + "contents_yaml\030\005 \001(\tH\000\022g\n" - + "\014contents_sql\030\006 \001(\0132O.google.cloud.dataform.v1.Compila" - + "tionResultAction.DataPreparation.SqlDefinitionH\000\022<\n" + + "\014contents_sql\030\006 \001(\0132O.google.cloud.dataf" + + "orm.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" - + "\004tags\030\004 \003(\t\032\315\001\n\r" + + "\004tags\030\004 \003(\t\032\315\001\n" + + "\r" + "SqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022a\n" - + "\013error_table\030\002 \001(\0132L.g" - + "oogle.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\022J\n" - + "\004load\030\003" - + " \001(\0132<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\032V\n\n" + + "\013error_table\030\002 \001(\0132L.google.cloud.dataform.v1.Co" + + "mpilationResultAction.DataPreparation.ErrorTable\022J\n" + + "\004load\030\003 \001(\0132<.google.cloud.da" + + "taform.v1.CompilationResultAction.LoadConfig\032V\n\n" + "ErrorTable\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022\026\n" + "\016retention_days\030\002 \001(\005B\014\n\n" + "definition\032\360\002\n\n" + "LoadConfig\022S\n" - + "\007replace\030\001" - + " \001(\0132@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\000\022R\n" - + "\006append\030\002" - + " \001(\0132@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\000\022X\n" - + "\007maximum\030\003 \001(\0132E.google.cloud.dataform.v1" - + ".CompilationResultAction.IncrementalLoadModeH\000\022W\n" - + "\006unique\030\004 \001(\0132E.google.cloud.da" - + "taform.v1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132@.google.cloud.datafo" + + "rm.v1.CompilationResultAction.SimpleLoadModeH\000\022R\n" + + "\006append\030\002 \001(\0132@.google.cloud.da" + + "taform.v1.CompilationResultAction.SimpleLoadModeH\000\022X\n" + + "\007maximum\030\003 \001(\0132E.google.clo" + + "ud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\000\022W\n" + + "\006unique\030\004 \001(\0132E.g" + + "oogle.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + "\004mode\032\020\n" + "\016SimpleLoadMode\032%\n" + "\023IncrementalLoadMode\022\016\n" @@ -1213,19 +1379,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\227\001\n" + "%QueryCompilationResultActionsResponse\022U\n" - + "\032compilation_result_actions\030\001" - + " \003(\01321.google.cloud.dataform.v1.CompilationResultAction\022\027\n" + + "\032compilation_result_actions\030\001 \003(\01321.google.c" + + "loud.dataform.v1.CompilationResultAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\255\007\n" + "\016WorkflowConfig\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022E\n" + "\016release_config\030\002 \001(\tB-\340A\002\372A\'\n" + "%dataform.googleapis.com/ReleaseConfig\022J\n" - + "\021invocation_config\030\003" - + " \001(\0132*.google.cloud.dataform.v1.InvocationConfigB\003\340A\001\022\032\n\r" + + "\021invocation_config\030\003 \001(" + + "\0132*.google.cloud.dataform.v1.InvocationConfigB\003\340A\001\022\032\n\r" + "cron_schedule\030\004 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\001\022r\n" - + "\"recent_scheduled_execution_records\030\005 \003(\0132A.google.cloud.dataform.v1." - + "WorkflowConfig.ScheduledExecutionRecordB\003\340A\003\022\025\n" + + "\"recent_scheduled_execution_records\030\005 \003(\0132A.google.clou" + + "d.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\003\340A\003\022\025\n" + "\010disabled\030\010 \001(\010B\003\340A\001\0224\n" + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\n" @@ -1238,10 +1404,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016execution_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\010\n" + "\006result:\262\001\352A\256\001\n" - + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locations/{location}" - + "/repositories/{repository}/workflowConfi" - + "gs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" - + "\022_internal_metadata\"\240\002\n" + + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locati" + + "ons/{location}/repositories/{repository}" + + "/workflowConfigs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + + "\022_internal_metadata\"\334\003\n" + "\020InvocationConfig\022?\n" + "\020included_targets\030\001 \003(\0132" + " .google.cloud.dataform.v1.TargetB\003\340A\001\022\032\n\r" @@ -1249,7 +1415,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " transitive_dependencies_included\030\003 \001(\010B\003\340A\001\022+\n" + "\036transitive_dependents_included\030\004 \001(\010B\003\340A\001\0225\n" + "(fully_refresh_incremental_tables_enabled\030\005 \001(\010B\003\340A\001\022\034\n" - + "\017service_account\030\006 \001(\tB\003\340A\001\"\211\001\n" + + "\017service_account\030\006 \001(\tB\003\340A\001\022Z\n" + + "\016query_priority\030\t" + + " \001(\01628.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\003\340A\001H\000\210\001\001\"K\n\r" + + "QueryPriority\022\036\n" + + "\032QUERY_PRIORITY_UNSPECIFIED\020\000\022\017\n" + + "\013INTERACTIVE\020\001\022\t\n" + + "\005BATCH\020\002B\021\n" + + "\017_query_priority\"\211\001\n" + "\032ListWorkflowConfigsRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\026\n" @@ -1275,7 +1448,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.dataform.v1.WorkflowConfigB\003\340A\002\"[\n" + "\033DeleteWorkflowConfigRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&dataform.googleapis.com/WorkflowConfig\"\271\007\n" + + "&dataform.googleapis.com/WorkflowConfig\"\224\010\n" + "\022WorkflowInvocation\022O\n" + "\022compilation_result\030\002 \001(\tB1\340A\005\372A+\n" + ")dataform.googleapis.com/CompilationResultH\000\022I\n" @@ -1284,14 +1457,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\003\022J\n" + "\021invocation_config\030\003" + " \001(\0132*.google.cloud.dataform.v1.InvocationConfigB\003\340A\005\022F\n" - + "\005state\030\004 \001(\0162" - + "2.google.cloud.dataform.v1.WorkflowInvocation.StateB\003\340A\003\0225\n" + + "\005state\030\004 \001(" + + "\01622.google.cloud.dataform.v1.WorkflowInvocation.StateB\003\340A\003\0225\n" + "\021invocation_timing\030\005 \001(\0132\025.google.type.IntervalB\003\340A\003\022V\n" + "\033resolved_compilation_result\030\007 \001(\tB1\340A\003\372A+\n" + ")dataform.googleapis.com/CompilationResult\022Q\n" - + "\025data_encryption_state\030\010 \001(\0132-.google." - + "cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\t \001(\tB\003\340A\003H\001\210\001\001\"d\n" + + "\025data_encryption_state\030\010 \001(\0132-.googl" + + "e.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" + + "\021internal_metadata\030\t \001(\tB\003\340A\003H\001\210\001\001\022Y\n" + + "\031private_resource_metadata\030\n" + + " \001(\01321.google.cloud.dataform.v1.PrivateResourceMetadataB\003\340A\003\"d\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" @@ -1299,9 +1474,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003\022\n\n" + "\006FAILED\020\004\022\r\n" + "\tCANCELING\020\005:\306\001\352A\302\001\n" - + "*dataform.googleapis.com/WorkflowInvocation\022kprojec" - + "ts/{project}/locations/{location}/repositories/{repository}/workflowInvocations/" - + "{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{project}/locations/{loc" + + "ation}/repositories/{repository}/workflo" + + "wInvocations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + "\022compilation_sourceB\024\n" + "\022_internal_metadata\"\271\001\n" + "\036ListWorkflowInvocationsRequest\022:\n" @@ -1312,8 +1487,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\233\001\n" + "\037ListWorkflowInvocationsResponse\022J\n" - + "\024workflow_invocations\030\001 \003(\013" - + "2,.google.cloud.dataform.v1.WorkflowInvocation\022\027\n" + + "\024workflow_invocations\030\001" + + " \003(\0132,.google.cloud.dataform.v1.WorkflowInvocation\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"`\n" + "\034GetWorkflowInvocationRequest\022@\n" @@ -1322,8 +1497,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037CreateWorkflowInvocationRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022N\n" - + "\023workflow_invocation\030\002 \001(\0132,.go" - + "ogle.cloud.dataform.v1.WorkflowInvocationB\003\340A\002\"c\n" + + "\023workflow_invocation\030\002" + + " \001(\0132,.google.cloud.dataform.v1.WorkflowInvocationB\003\340A\002\"c\n" + "\037DeleteWorkflowInvocationRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*dataform.googleapis.com/WorkflowInvocation\"c\n" @@ -1332,17 +1507,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\"\"\n" + " CancelWorkflowInvocationResponse\"\233\020\n" + "\030WorkflowInvocationAction\022a\n" - + "\017bigquery_action\030\006 \001(\0132A.google.cloud.datafo" - + "rm.v1.WorkflowInvocationAction.BigQueryActionB\003\340A\003H\000\022a\n" - + "\017notebook_action\030\010 \001(\0132A." - + "google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\003\340A\003H\000\022p\n" - + "\027data_preparation_action\030\t \001(\0132H.google.cloud." - + "dataform.v1.WorkflowInvocationAction.DataPreparationActionB\003\340A\003H\000\0225\n" + + "\017bigquery_action\030\006 \001(\0132A.google" + + ".cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\003\340A\003H\000\022a\n" + + "\017notebook_action\030\010 \001(\0132A.google.cloud.dataform.v1.Wo" + + "rkflowInvocationAction.NotebookActionB\003\340A\003H\000\022p\n" + + "\027data_preparation_action\030\t \001(\0132H.google.cloud.dataform.v1.WorkflowInvocat" + + "ionAction.DataPreparationActionB\003\340A\003H\000\0225\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.TargetB\003\340A\003\022?\n" + "\020canonical_target\030\002 \001(\0132" + " .google.cloud.dataform.v1.TargetB\003\340A\003\022L\n" - + "\005state\030\004 \001(\016" - + "28.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\003\340A\003\022\033\n" + + "\005state\030\004" + + " \001(\01628.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\003\340A\003\022\033\n" + "\016failure_reason\030\007 \001(\tB\003\340A\003\0225\n" + "\021invocation_timing\030\005 \001(\0132\025.google.type.IntervalB\003\340A\003\022#\n" + "\021internal_metadata\030\n" @@ -1355,29 +1530,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006job_id\030\002 \001(\tB\003\340A\003\032\201\t\n" + "\025DataPreparationAction\022\034\n\r" + "contents_yaml\030\002 \001(\tB\003\340A\003H\000\022t\n" - + "\014contents_sql\030\006 \001(\0132\\.google.cl" - + "oud.dataform.v1.WorkflowInvocationAction" - + ".DataPreparationAction.ActionSqlDefinitionH\000\022\032\n\r" + + "\014contents_sql\030\006 \001(\0132\\.google.cloud.dataform.v1.WorkflowInv" + + "ocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\032\n\r" + "generated_sql\030\003 \001(\tB\003\340A\003\022\023\n" + "\006job_id\030\004 \001(\tB\003\340A\003\032\204\002\n" + "\023ActionSqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022n\n" - + "\013error_table\030\002 \001(\0132Y.google.cloud.dataform.v1.WorkflowInvocationA" - + "ction.DataPreparationAction.ActionErrorTable\022n\n" - + "\013load_config\030\003 \001(\0132Y.google.cloud" - + ".dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\032\\\n" + + "\013error_table\030\002 \001(\0132Y.google.cloud.dataform.v1.Workfl" + + "owInvocationAction.DataPreparationAction.ActionErrorTable\022n\n" + + "\013load_config\030\003 \001(\0132Y.google.cloud.dataform.v1.WorkflowInvoca" + + "tionAction.DataPreparationAction.ActionLoadConfig\032\\\n" + "\020ActionErrorTable\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022\026\n" + "\016retention_days\030\002 \001(\005\032\352\003\n" + "\020ActionLoadConfig\022p\n" - + "\007replace\030\001 \001(\0132].google.cloud.dataform.v1.Work" - + "flowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022o\n" - + "\006append\030\002 \001(\0132].google.cloud.dataform.v1.WorkflowInv" - + "ocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022u\n" - + "\007maximum\030\003 \001(\0132b.google.cloud.dataform.v1.WorkflowInvocatio" - + "nAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022t\n" - + "\006unique\030\004 \001(\0132b.google.cloud.dataform.v1.WorkflowInvocationA" - + "ction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132].google.cloud.dat" + + "aform.v1.WorkflowInvocationAction.DataPr" + + "eparationAction.ActionSimpleLoadModeH\000\022o\n" + + "\006append\030\002 \001(\0132].google.cloud.dataform.v" + + "1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022u\n" + + "\007maximum\030\003 \001(\0132b.google.cloud.dataform.v1.Work" + + "flowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022t\n" + + "\006unique\030\004 \001(\0132b.google.cloud.dataform.v1.Workfl" + + "owInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + "\004mode\032\026\n" + "\024ActionSimpleLoadMode\032+\n" + "\031ActionIncrementalLoadMode\022\016\n" @@ -1389,8 +1564,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007SKIPPED\020\002\022\014\n" + "\010DISABLED\020\003\022\r\n" + "\tSUCCEEDED\020\004\022\r\n" - + "\tCANCELLED\020\005\022\n" - + "\n" + + "\tCANCELLED\020\005\022\n\n" + "\006FAILED\020\006B\010\n" + "\006actionB\024\n" + "\022_internal_metadata\"\232\001\n" @@ -1400,297 +1574,615 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\232\001\n" + "&QueryWorkflowInvocationActionsResponse\022W\n" - + "\033workflow_invocation_actions\030\001 \003(\0132" - + "2.google.cloud.dataform.v1.WorkflowInvocationAction\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\312\001\n" + + "\033workflow_invocation_actions\030\001" + + " \003(\01322.google.cloud.dataform.v1.WorkflowInvocationAction\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\205\002\n" + "\006Config\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022G\n" + "\024default_kms_key_name\030\002 \001(\tB)\340A\001\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey:d\352Aa\n" - + "\036dataform.googleapis.com/Config\022.projects/{project}/loc" - + "ations/{location}/config*\007configs2\006config\"H\n" + + "!cloudkms.googleapis.com/CryptoKey\022#\n" + + "\021internal_metadata\030\007 \001(\tB\003\340A\003H\000\210\001\001:d\352Aa\n" + + "\036dataform.googleapis.com/Config\022.projects/{pr" + + "oject}/locations/{location}/config*\007configs2\006configB\024\n" + + "\022_internal_metadata\"H\n" + "\020GetConfigRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036dataform.googleapis.com/Config\"\202\001\n" + "\023UpdateConfigRequest\0225\n" + "\006config\030\001 \001(\0132 .google.cloud.dataform.v1.ConfigB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0012\213[\n" - + "\010Dataform\022\274\001\n" - + "\020ListRepositories\0221.google.cloud.dataform.v1.ListReposi" - + "toriesRequest\0322.google.cloud.dataform.v1" - + ".ListRepositoriesResponse\"A\332A\006parent\202\323\344\223" - + "\0022\0220/v1/{parent=projects/*/locations/*}/repositories\022\246\001\n\r" - + "GetRepository\022..google.cloud.dataform.v1.GetRepositoryRequest\032$" - + ".google.cloud.dataform.v1.Repository\"?\332A" - + "\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/repositories/*}\022\323\001\n" - + "\020CreateRepository\0221.google.cloud.dataform.v1.CreateRepo" - + "sitoryRequest\032$.google.cloud.dataform.v1" - + ".Repository\"f\332A\037parent,repository,reposi" - + "tory_id\202\323\344\223\002>\"0/v1/{parent=projects/*/locations/*}/repositories:\n" - + "repository\022\325\001\n" - + "\020UpdateRepository\0221.google.cloud.dataform" - + ".v1.UpdateRepositoryRequest\032$.google.clo" - + "ud.dataform.v1.Repository\"h\332A\026repository" - + ",update_mask\202\323\344\223\002I2;/v1/{repository.name" - + "=projects/*/locations/*/repositories/*}:\n" - + "repository\022\236\001\n" - + "\020DeleteRepository\0221.google.cloud.dataform.v1.DeleteRepositoryRequ" - + "est\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223" - + "\0022*0/v1/{name=projects/*/locations/*/repositories/*}\022\322\001\n" - + "\027CommitRepositoryChanges\0228.google.cloud.dataform.v1.CommitReposi" - + "toryChangesRequest\0329.google.cloud.datafo" - + "rm.v1.CommitRepositoryChangesResponse\"B\202" - + "\323\344\223\002<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\001*\022\302\001\n" - + "\022ReadRepositoryFile\0223.google.cloud.dataform.v1.Read" - + "RepositoryFileRequest\0324.google.cloud.dat" - + "aform.v1.ReadRepositoryFileResponse\"A\202\323\344" - + "\223\002;\0229/v1/{name=projects/*/locations/*/repositories/*}:readFile\022\372\001\n" - + " QueryRepositoryDirectoryContents\022A.google.cloud.dataf" - + "orm.v1.QueryRepositoryDirectoryContentsRequest\032B.google.cloud.dataform.v1.QueryR" - + "epositoryDirectoryContentsResponse\"O\202\323\344\223" - + "\002I\022G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\322\001\n" - + "\026FetchRepositoryHistory\0227.google.cloud.da" - + "taform.v1.FetchRepositoryHistoryRequest\0328.google.cloud.dataform.v1.FetchReposito" - + "ryHistoryResponse\"E\202\323\344\223\002?\022=/v1/{name=pro" - + "jects/*/locations/*/repositories/*}:fetchHistory\022\202\002\n" - + "\"ComputeRepositoryAccessTokenStatus\022C.google.cloud.dataform.v1.Compu" - + "teRepositoryAccessTokenStatusRequest\032D.google.cloud.dataform.v1.ComputeRepositor" - + "yAccessTokenStatusResponse\"Q\202\323\344\223\002K\022I/v1/" - + "{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\022\320\001\n" - + "\023FetchRemoteBranches\0224.google.cloud.dataform.v1" - + ".FetchRemoteBranchesRequest\0325.google.cloud.dataform.v1.FetchRemoteBranchesRespon" - + "se\"L\202\323\344\223\002F\022D/v1/{name=projects/*/locatio" - + "ns/*/repositories/*}:fetchRemoteBranches\022\303\001\n" - + "\016ListWorkspaces\022/.google.cloud.dataform.v1.ListWorkspacesRequest\0320.google.cl" - + "oud.dataform.v1.ListWorkspacesResponse\"N" - + "\332A\006parent\202\323\344\223\002?\022=/v1/{parent=projects/*/" - + "locations/*/repositories/*}/workspaces\022\260\001\n" - + "\014GetWorkspace\022-.google.cloud.dataform." - + "v1.GetWorkspaceRequest\032#.google.cloud.da" - + "taform.v1.Workspace\"L\332A\004name\202\323\344\223\002?\022=/v1/" - + "{name=projects/*/locations/*/repositories/*/workspaces/*}\022\332\001\n" - + "\017CreateWorkspace\0220.google.cloud.dataform.v1.CreateWorkspace" - + "Request\032#.google.cloud.dataform.v1.Works" - + "pace\"p\332A\035parent,workspace,workspace_id\202\323" - + "\344\223\002J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:" - + "\tworkspace\022\251\001\n" - + "\017DeleteWorkspace\0220.google.cloud.datafo" - + "rm.v1.DeleteWorkspaceRequest\032\026.google.pr" - + "otobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}\022\341\001\n" - + "\022InstallNpmPackages\0223.google.cloud.dataform.v1.InstallNpmPackagesR" - + "equest\0324.google.cloud.dataform.v1.Instal" - + "lNpmPackagesResponse\"`\202\323\344\223\002Z\"U/v1/{works" - + "pace=projects/*/locations/*/repositories" - + "/*/workspaces/*}:installNpmPackages:\001*\022\302\001\n" - + "\016PullGitCommits\022/.google.cloud.datafor" - + "m.v1.PullGitCommitsRequest\0320.google.clou" - + "d.dataform.v1.PullGitCommitsResponse\"M\202\323" - + "\344\223\002G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\001*\022\302\001\n" - + "\016PushGitCommits\022/.google.cloud.dataform.v" - + "1.PushGitCommitsRequest\0320.google.cloud.d" - + "ataform.v1.PushGitCommitsResponse\"M\202\323\344\223\002" - + "G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\001*\022\341\001\n" - + "\024FetchFileGitStatuses\0225.google.cloud.datafor" - + "m.v1.FetchFileGitStatusesRequest\0326.google.cloud.dataform.v1.FetchFileGitStatuses" - + "Response\"Z\202\323\344\223\002T\022R/v1/{name=projects/*/l" - + "ocations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\022\335\001\n" - + "\023FetchGitAheadBehind\0224.google.cloud.dataform.v1.FetchGit" - + "AheadBehindRequest\0325.google.cloud.datafo" - + "rm.v1.FetchGitAheadBehindResponse\"Y\202\323\344\223\002" - + "S\022Q/v1/{name=projects/*/locations/*/repo" - + "sitories/*/workspaces/*}:fetchGitAheadBehind\022\334\001\n" - + "\026CommitWorkspaceChanges\0227.google.cloud.dataform.v1.CommitWorkspaceChange" - + "sRequest\0328.google.cloud.dataform.v1.Comm" - + "itWorkspaceChangesResponse\"O\202\323\344\223\002I\"D/v1/" - + "{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\001*\022\330\001\n" - + "\025ResetWorkspaceChanges\0226.google.cloud.dataform.v1" - + ".ResetWorkspaceChangesRequest\0327.google.cloud.dataform.v1.ResetWorkspaceChangesRe" - + "sponse\"N\202\323\344\223\002H\"C/v1/{name=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:reset:\001*\022\312\001\n\r" - + "FetchFileDiff\022..google.cloud.dataform.v1.FetchFileDiffRequest\032/.googl" - + "e.cloud.dataform.v1.FetchFileDiffRespons" - + "e\"X\202\323\344\223\002R\022P/v1/{workspace=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:fetchFileDiff\022\356\001\n" - + "\026QueryDirectoryContents\0227.google.cloud.dataform.v1.QueryDirectory" - + "ContentsRequest\0328.google.cloud.dataform." - + "v1.QueryDirectoryContentsResponse\"a\202\323\344\223\002" - + "[\022Y/v1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:queryDirectoryContents\022\302\001\n" - + "\013SearchFiles\022,.google.cloud.dataform.v1.SearchFilesRequest\032-.goo" - + "gle.cloud.dataform.v1.SearchFilesRespons" - + "e\"V\202\323\344\223\002P\022N/v1/{workspace=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:searchFiles\022\315\001\n\r" - + "MakeDirectory\022..google.cloud.dataform.v1.MakeDirectoryRequest\032/.go" - + "ogle.cloud.dataform.v1.MakeDirectoryResp" - + "onse\"[\202\323\344\223\002U\"P/v1/{workspace=projects/*/" - + "locations/*/repositories/*/workspaces/*}:makeDirectory:\001*\022\325\001\n" - + "\017RemoveDirectory\0220.google.cloud.dataform.v1.RemoveDirectory" - + "Request\0321.google.cloud.dataform.v1.Remov" - + "eDirectoryResponse\"]\202\323\344\223\002W\"R/v1/{workspa" - + "ce=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\001*\022\315\001\n\r" - + "MoveDirectory\022..google.cloud.dataform.v1.M" - + "oveDirectoryRequest\032/.google.cloud.dataf" - + "orm.v1.MoveDirectoryResponse\"[\202\323\344\223\002U\"P/v" - + "1/{workspace=projects/*/locations/*/repo" - + "sitories/*/workspaces/*}:moveDirectory:\001*\022\266\001\n" - + "\010ReadFile\022).google.cloud.dataform.v1.ReadFileRequest\032*.google.cloud.datafor" - + "m.v1.ReadFileResponse\"S\202\323\344\223\002M\022K/v1/{work" - + "space=projects/*/locations/*/repositories/*/workspaces/*}:readFile\022\301\001\n\n" - + "RemoveFile\022+.google.cloud.dataform.v1.RemoveFileR" - + "equest\032,.google.cloud.dataform.v1.Remove" - + "FileResponse\"X\202\323\344\223\002R\"M/v1/{workspace=pro" - + "jects/*/locations/*/repositories/*/workspaces/*}:removeFile:\001*\022\271\001\n" - + "\010MoveFile\022).google.cloud.dataform.v1.MoveFileRequest\032*" - + ".google.cloud.dataform.v1.MoveFileRespon" - + "se\"V\202\323\344\223\002P\"K/v1/{workspace=projects/*/lo" - + "cations/*/repositories/*/workspaces/*}:moveFile:\001*\022\275\001\n" - + "\tWriteFile\022*.google.cloud.dataform.v1.WriteFileRequest\032+.google.cl" - + "oud.dataform.v1.WriteFileResponse\"W\202\323\344\223\002" - + "Q\"L/v1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:writeFile:\001*\022\323\001\n" - + "\022ListReleaseConfigs\0223.google.cloud.dataform.v1.ListReleaseConfigsRequest\0324" - + ".google.cloud.dataform.v1.ListReleaseCon" - + "figsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{pare" - + "nt=projects/*/locations/*/repositories/*}/releaseConfigs\022\300\001\n" - + "\020GetReleaseConfig\0221.google.cloud.dataform.v1.GetReleaseConfi" - + "gRequest\032\'.google.cloud.dataform.v1.Rele" - + "aseConfig\"P\332A\004name\202\323\344\223\002C\022A/v1/{name=proj" - + "ects/*/locations/*/repositories/*/releaseConfigs/*}\022\372\001\n" - + "\023CreateReleaseConfig\0224.google.cloud.dataform.v1.CreateReleaseConf" - + "igRequest\032\'.google.cloud.dataform.v1.Rel" - + "easeConfig\"\203\001\332A\'parent,release_config,re", - "lease_config_id\202\323\344\223\002S\"A/v1/{parent=proje" - + "cts/*/locations/*/repositories/*}/releas" - + "eConfigs:\016release_config\022\374\001\n\023UpdateRelea" - + "seConfig\0224.google.cloud.dataform.v1.Upda" - + "teReleaseConfigRequest\032\'.google.cloud.da" - + "taform.v1.ReleaseConfig\"\205\001\332A\032release_con" - + "fig,update_mask\202\323\344\223\002b2P/v1/{release_conf" - + "ig.name=projects/*/locations/*/repositor" - + "ies/*/releaseConfigs/*}:\016release_config\022" - + "\265\001\n\023DeleteReleaseConfig\0224.google.cloud.d" - + "ataform.v1.DeleteReleaseConfigRequest\032\026." - + "google.protobuf.Empty\"P\332A\004name\202\323\344\223\002C*A/v" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\317\003\n" + + "\006Folder\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022\036\n" + + "\021containing_folder\030\003 \001(\tB\003\340A\001\022\035\n" + + "\020team_folder_name\030\004 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + + "\021internal_metadata\030\007 \001(\tB\003\340A\003H\000\210\001\001\022\'\n" + + "\025creator_iam_principal\030\010 \001(\tB\003\340A\003H\001\210\001\001:n\352Ak\n" + + "\036dataform.googleapis.com/Folder\0228projects/{proje" + + "ct}/locations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + + "\022_internal_metadataB\030\n" + + "\026_creator_iam_principal\"\207\001\n" + + "\023CreateFolderRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\0225\n" + + "\006folder\030\002 \001(\0132" + + " .google.cloud.dataform.v1.FolderB\003\340A\002\"\234\001\n" + + "\021MoveFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022/\n" + + "\035destination_containing_folder\030\002 \001(\tB\003\340A\001H\000\210\001\001B \n" + + "\036_destination_containing_folder\"H\n" + + "\020GetFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\"\202\001\n" + + "\023UpdateFolderRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\0225\n" + + "\006folder\030\002 \001(\0132 .google.cloud.dataform.v1.FolderB\003\340A\002\"K\n" + + "\023DeleteFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\"c\n" + + "\027DeleteFolderTreeRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"k\n" + + "\033DeleteTeamFolderTreeRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"\342\002\n" + + "\030DeleteFolderTreeMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022L\n" + + "\005state\030\004 \001(\01628.google.clo" + + "ud.dataform.v1.DeleteFolderTreeMetadata.StateB\003\340A\003\022\035\n" + + "\020percent_complete\030\005 \001(\005B\003\340A\003\"[\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\r\n" + + "\tSUCCEEDED\020\003\022\n\n" + + "\006FAILED\020\004\"\261\001\n" + + "\032QueryFolderContentsRequest\0226\n" + + "\006folder\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\243\002\n" + + "\033QueryFolderContentsResponse\022Z\n" + + "\007entries\030\001 \003(\0132I.google.cloud.dataform.v1.QueryFold" + + "erContentsResponse.FolderContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\216\001\n" + + "\023FolderContentsEntry\0222\n" + + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + + "repository\030\002 \001(\0132$.google.cloud.dataform.v1.RepositoryH\000B\007\n" + + "\005entry\"\270\001\n" + + "\034QueryUserRootContentsRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\243\002\n" + + "\035QueryUserRootContentsResponse\022Z\n" + + "\007entries\030\001 \003(\0132I.google.cloud.dataform.v1.QueryU" + + "serRootContentsResponse.RootContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\214\001\n" + + "\021RootContentsEntry\0222\n" + + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + + "repository\030\002 \001(\0132$.google.cloud.dataform.v1.RepositoryH\000B\007\n" + + "\005entry\"\253\003\n\n" + + "TeamFolder\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + + "\021internal_metadata\030\005 \001(\tB\003\340A\003H\000\210\001\001\022\'\n" + + "\025creator_iam_principal\030\006 \001(" + + "\tB\003\340A\003H\001\210\001\001:\204\001\352A\200\001\n" + + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{project}/" + + "locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + + "teamFolderB\024\n" + + "\022_internal_metadataB\030\n" + + "\026_creator_iam_principal\"\224\001\n" + + "\027CreateTeamFolderRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022>\n" + + "\013team_folder\030\002" + + " \001(\0132$.google.cloud.dataform.v1.TeamFolderB\003\340A\002\"P\n" + + "\024GetTeamFolderRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\"\217\001\n" + + "\027UpdateTeamFolderRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022>\n" + + "\013team_folder\030\002" + + " \001(\0132$.google.cloud.dataform.v1.TeamFolderB\003\340A\002\"S\n" + + "\027DeleteTeamFolderRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\"\276\001\n" + + "\036QueryTeamFolderContentsRequest\022?\n" + + "\013team_folder\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\263\002\n" + + "\037QueryTeamFolderContentsResponse\022b\n" + + "\007entries\030\001 \003(\0132Q.google.c" + + "loud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\222\001\n" + + "\027TeamFolderContentsEntry\0222\n" + + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + + "repository\030\002 \001(\0132$.google.cloud.dataform.v1.RepositoryH\000B\007\n" + + "\005entry\"\264\001\n" + + "\030SearchTeamFoldersRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\361\001\n" + + "\031SearchTeamFoldersResponse\022[\n" + + "\007results\030\001 \003(\0132J.g" + + "oogle.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + + "\017next_page_token\030\002 \001(\t\032^\n" + + "\026TeamFolderSearchResult\022;\n" + + "\013team_folder\030\002 \001(\0132$.google.cloud.dataform.v1.TeamFolderH\000B\007\n" + + "\005entry\"\312\002\n" + + "\022MoveFolderMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022A\n" + + "\005state\030\004 \001(\01622." + + "google.cloud.dataform.v1.MoveFolderMetadata.State\022\030\n" + + "\020percent_complete\030\005 \001(\005\"Y\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\013\n" + + "\007SUCCESS\020\003\022\n\n" + + "\006FAILED\020\004\"\322\002\n" + + "\026MoveRepositoryMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022E\n" + + "\005state\030\004" + + " \001(\01626.google.cloud.dataform.v1.MoveRepositoryMetadata.State\022\030\n" + + "\020percent_complete\030\005 \001(\005\"Y\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\013\n" + + "\007SUCCESS\020\003\022\n\n" + + "\006FAILED\020\004*\211\001\n" + + "\025DirectoryContentsView\022\'\n" + + "#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\020\000\022!\n" + + "\035DIRECTORY_CONTENTS_VIEW_BASIC\020\001\022$\n" + + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\343}\n" + + "\010Dataform\022\245\001\n\r" + + "GetTeamFolder\022..google.cloud.dataform.v1.GetTeamFolderR" + + "equest\032$.google.cloud.dataform.v1.TeamFo" + + "lder\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/teamFolders/*}\022\306\001\n" + + "\020CreateTeamFolder\0221.google.cloud.dataform.v1.Cre" + + "ateTeamFolderRequest\032$.google.cloud.data" + + "form.v1.TeamFolder\"Y\332A\022parent,team_folde" + + "r\202\323\344\223\002>\"//v1/{parent=projects/*/location", + "s/*}/teamFolders:\013team_folder\022\327\001\n\020Update" + + "TeamFolder\0221.google.cloud.dataform.v1.Up" + + "dateTeamFolderRequest\032$.google.cloud.dat" + + "aform.v1.TeamFolder\"j\332A\027team_folder,upda" + + "te_mask\202\323\344\223\002J2;/v1/{team_folder.name=pro" + + "jects/*/locations/*/teamFolders/*}:\013team" + + "_folder\022\235\001\n\020DeleteTeamFolder\0221.google.cl" + + "oud.dataform.v1.DeleteTeamFolderRequest\032" + + "\026.google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*/" + + "/v1/{name=projects/*/locations/*/teamFol" + + "ders/*}\022\365\001\n\024DeleteTeamFolderTree\0225.googl" + + "e.cloud.dataform.v1.DeleteTeamFolderTree" + + "Request\032\035.google.longrunning.Operation\"\206" + + "\001\312A1\n\025google.protobuf.Empty\022\030DeleteFolde" + + "rTreeMetadata\332A\nname,force\202\323\344\223\002?\":/v1/{n" + + "ame=projects/*/locations/*/teamFolders/*" + + "}:deleteTree:\001*\022\352\001\n\027QueryTeamFolderConte" + + "nts\0228.google.cloud.dataform.v1.QueryTeam" + + "FolderContentsRequest\0329.google.cloud.dat" + + "aform.v1.QueryTeamFolderContentsResponse" + + "\"Z\332A\013team_folder\202\323\344\223\002F\022D/v1/{team_folder" + + "=projects/*/locations/*/teamFolders/*}:q" + + "ueryContents\022\276\001\n\021SearchTeamFolders\0222.goo" + + "gle.cloud.dataform.v1.SearchTeamFoldersR" + + "equest\0323.google.cloud.dataform.v1.Search" + + "TeamFoldersResponse\"@\202\323\344\223\002:\0228/v1/{locati" + + "on=projects/*/locations/*}/teamFolders:s" + + "earch\022\225\001\n\tGetFolder\022*.google.cloud.dataf" + + "orm.v1.GetFolderRequest\032 .google.cloud.d" + + "ataform.v1.Folder\":\332A\004name\202\323\344\223\002-\022+/v1/{n" + + "ame=projects/*/locations/*/folders/*}\022\254\001" + + "\n\014CreateFolder\022-.google.cloud.dataform.v" + + "1.CreateFolderRequest\032 .google.cloud.dat" + + "aform.v1.Folder\"K\332A\rparent,folder\202\323\344\223\0025\"" + + "+/v1/{parent=projects/*/locations/*}/fol" + + "ders:\006folder\022\270\001\n\014UpdateFolder\022-.google.c" + + "loud.dataform.v1.UpdateFolderRequest\032 .g" + + "oogle.cloud.dataform.v1.Folder\"W\332A\022folde" + + "r,update_mask\202\323\344\223\002<22/v1/{folder.name=pr" + + "ojects/*/locations/*/folders/*}:\006folder\022" + + "\221\001\n\014DeleteFolder\022-.google.cloud.dataform" + + ".v1.DeleteFolderRequest\032\026.google.protobu" + + "f.Empty\":\332A\004name\202\323\344\223\002-*+/v1/{name=projec" + + "ts/*/locations/*/folders/*}\022\351\001\n\020DeleteFo" + + "lderTree\0221.google.cloud.dataform.v1.Dele" + + "teFolderTreeRequest\032\035.google.longrunning" + + ".Operation\"\202\001\312A1\n\025google.protobuf.Empty\022" + + "\030DeleteFolderTreeMetadata\332A\nname,force\202\323" + + "\344\223\002;\"6/v1/{name=projects/*/locations/*/f" + + "olders/*}:deleteTree:\001*\022\326\001\n\023QueryFolderC" + + "ontents\0224.google.cloud.dataform.v1.Query" + + "FolderContentsRequest\0325.google.cloud.dat" + + "aform.v1.QueryFolderContentsResponse\"R\332A" + + "\006folder\202\323\344\223\002C\022A/v1/{folder=projects/*/lo" + + "cations/*/folders/*}:queryFolderContents" + + "\022\330\001\n\025QueryUserRootContents\0226.google.clou" + + "d.dataform.v1.QueryUserRootContentsReque" + + "st\0327.google.cloud.dataform.v1.QueryUserR" + + "ootContentsResponse\"N\332A\010location\202\323\344\223\002=\022;" + + "/v1/{location=projects/*/locations/*}:qu" + + "eryUserRootContents\022\351\001\n\nMoveFolder\022+.goo" + + "gle.cloud.dataform.v1.MoveFolderRequest\032" + + "\035.google.longrunning.Operation\"\216\001\312A+\n\025go" + + "ogle.protobuf.Empty\022\022MoveFolderMetadata\332" + + "A\"name,destination_containing_folder\202\323\344\223" + + "\0025\"0/v1/{name=projects/*/locations/*/fol" + + "ders/*}:move:\001*\022\274\001\n\020ListRepositories\0221.g" + + "oogle.cloud.dataform.v1.ListRepositories" + + "Request\0322.google.cloud.dataform.v1.ListR" + + "epositoriesResponse\"A\332A\006parent\202\323\344\223\0022\0220/v" + + "1/{parent=projects/*/locations/*}/reposi" + + "tories\022\246\001\n\rGetRepository\022..google.cloud." + + "dataform.v1.GetRepositoryRequest\032$.googl" + + "e.cloud.dataform.v1.Repository\"?\332A\004name\202" + + "\323\344\223\0022\0220/v1/{name=projects/*/locations/*/" + + "repositories/*}\022\323\001\n\020CreateRepository\0221.g" + + "oogle.cloud.dataform.v1.CreateRepository" + + "Request\032$.google.cloud.dataform.v1.Repos" + + "itory\"f\332A\037parent,repository,repository_i" + + "d\202\323\344\223\002>\"0/v1/{parent=projects/*/location" + + "s/*}/repositories:\nrepository\022\325\001\n\020Update" + + "Repository\0221.google.cloud.dataform.v1.Up" + + "dateRepositoryRequest\032$.google.cloud.dat" + + "aform.v1.Repository\"h\332A\026repository,updat" + + "e_mask\202\323\344\223\002I2;/v1/{repository.name=proje" + + "cts/*/locations/*/repositories/*}:\nrepos" + + "itory\022\236\001\n\020DeleteRepository\0221.google.clou" + + "d.dataform.v1.DeleteRepositoryRequest\032\026." + + "google.protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v" + "1/{name=projects/*/locations/*/repositor" - + "ies/*/releaseConfigs/*}\022\343\001\n\026ListCompilat" - + "ionResults\0227.google.cloud.dataform.v1.Li" - + "stCompilationResultsRequest\0328.google.clo" - + "ud.dataform.v1.ListCompilationResultsRes" - + "ponse\"V\332A\006parent\202\323\344\223\002G\022E/v1/{parent=proj" - + "ects/*/locations/*/repositories/*}/compi" - + "lationResults\022\320\001\n\024GetCompilationResult\0225" - + ".google.cloud.dataform.v1.GetCompilation" - + "ResultRequest\032+.google.cloud.dataform.v1" - + ".CompilationResult\"T\332A\004name\202\323\344\223\002G\022E/v1/{" - + "name=projects/*/locations/*/repositories" - + "/*/compilationResults/*}\022\377\001\n\027CreateCompi" - + "lationResult\0228.google.cloud.dataform.v1." - + "CreateCompilationResultRequest\032+.google." - + "cloud.dataform.v1.CompilationResult\"}\332A\031" - + "parent,compilation_result\202\323\344\223\002[\"E/v1/{pa" - + "rent=projects/*/locations/*/repositories" - + "/*}/compilationResults:\022compilation_resu" - + "lt\022\365\001\n\035QueryCompilationResultActions\022>.g" - + "oogle.cloud.dataform.v1.QueryCompilation" - + "ResultActionsRequest\032?.google.cloud.data" - + "form.v1.QueryCompilationResultActionsRes" - + "ponse\"S\202\323\344\223\002M\022K/v1/{name=projects/*/loca" - + "tions/*/repositories/*/compilationResult" - + "s/*}:query\022\327\001\n\023ListWorkflowConfigs\0224.goo" - + "gle.cloud.dataform.v1.ListWorkflowConfig" - + "sRequest\0325.google.cloud.dataform.v1.List" - + "WorkflowConfigsResponse\"S\332A\006parent\202\323\344\223\002D" - + "\022B/v1/{parent=projects/*/locations/*/rep" - + "ositories/*}/workflowConfigs\022\304\001\n\021GetWork" - + "flowConfig\0222.google.cloud.dataform.v1.Ge" - + "tWorkflowConfigRequest\032(.google.cloud.da" - + "taform.v1.WorkflowConfig\"Q\332A\004name\202\323\344\223\002D\022" - + "B/v1/{name=projects/*/locations/*/reposi" - + "tories/*/workflowConfigs/*}\022\201\002\n\024CreateWo" - + "rkflowConfig\0225.google.cloud.dataform.v1." - + "CreateWorkflowConfigRequest\032(.google.clo" - + "ud.dataform.v1.WorkflowConfig\"\207\001\332A)paren" - + "t,workflow_config,workflow_config_id\202\323\344\223" - + "\002U\"B/v1/{parent=projects/*/locations/*/r" - + "epositories/*}/workflowConfigs:\017workflow" - + "_config\022\203\002\n\024UpdateWorkflowConfig\0225.googl" - + "e.cloud.dataform.v1.UpdateWorkflowConfig" - + "Request\032(.google.cloud.dataform.v1.Workf" - + "lowConfig\"\211\001\332A\033workflow_config,update_ma" - + "sk\202\323\344\223\002e2R/v1/{workflow_config.name=proj" + + "ies/*}\022\372\001\n\016MoveRepository\022/.google.cloud" + + ".dataform.v1.MoveRepositoryRequest\032\035.goo" + + "gle.longrunning.Operation\"\227\001\312A/\n\025google." + + "protobuf.Empty\022\026MoveRepositoryMetadata\332A" + + "\"name,destination_containing_folder\202\323\344\223\002" + + ":\"5/v1/{name=projects/*/locations/*/repo" + + "sitories/*}:move:\001*\022\322\001\n\027CommitRepository" + + "Changes\0228.google.cloud.dataform.v1.Commi" + + "tRepositoryChangesRequest\0329.google.cloud" + + ".dataform.v1.CommitRepositoryChangesResp" + + "onse\"B\202\323\344\223\002<\"7/v1/{name=projects/*/locat" + + "ions/*/repositories/*}:commit:\001*\022\302\001\n\022Rea" + + "dRepositoryFile\0223.google.cloud.dataform." + + "v1.ReadRepositoryFileRequest\0324.google.cl" + + "oud.dataform.v1.ReadRepositoryFileRespon" + + "se\"A\202\323\344\223\002;\0229/v1/{name=projects/*/locatio" + + "ns/*/repositories/*}:readFile\022\372\001\n QueryR" + + "epositoryDirectoryContents\022A.google.clou" + + "d.dataform.v1.QueryRepositoryDirectoryCo" + + "ntentsRequest\032B.google.cloud.dataform.v1" + + ".QueryRepositoryDirectoryContentsRespons" + + "e\"O\202\323\344\223\002I\022G/v1/{name=projects/*/location" + + "s/*/repositories/*}:queryDirectoryConten" + + "ts\022\322\001\n\026FetchRepositoryHistory\0227.google.c" + + "loud.dataform.v1.FetchRepositoryHistoryR" + + "equest\0328.google.cloud.dataform.v1.FetchR" + + "epositoryHistoryResponse\"E\202\323\344\223\002?\022=/v1/{n" + + "ame=projects/*/locations/*/repositories/" + + "*}:fetchHistory\022\202\002\n\"ComputeRepositoryAcc" + + "essTokenStatus\022C.google.cloud.dataform.v" + + "1.ComputeRepositoryAccessTokenStatusRequ" + + "est\032D.google.cloud.dataform.v1.ComputeRe" + + "positoryAccessTokenStatusResponse\"Q\202\323\344\223\002" + + "K\022I/v1/{name=projects/*/locations/*/repo" + + "sitories/*}:computeAccessTokenStatus\022\320\001\n" + + "\023FetchRemoteBranches\0224.google.cloud.data" + + "form.v1.FetchRemoteBranchesRequest\0325.goo" + + "gle.cloud.dataform.v1.FetchRemoteBranche" + + "sResponse\"L\202\323\344\223\002F\022D/v1/{name=projects/*/" + + "locations/*/repositories/*}:fetchRemoteB" + + "ranches\022\303\001\n\016ListWorkspaces\022/.google.clou" + + "d.dataform.v1.ListWorkspacesRequest\0320.go" + + "ogle.cloud.dataform.v1.ListWorkspacesRes" + + "ponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=proj" + + "ects/*/locations/*/repositories/*}/works" + + "paces\022\260\001\n\014GetWorkspace\022-.google.cloud.da" + + "taform.v1.GetWorkspaceRequest\032#.google.c" + + "loud.dataform.v1.Workspace\"L\332A\004name\202\323\344\223\002" + + "?\022=/v1/{name=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}\022\332\001\n\017CreateWorks" + + "pace\0220.google.cloud.dataform.v1.CreateWo" + + "rkspaceRequest\032#.google.cloud.dataform.v" + + "1.Workspace\"p\332A\035parent,workspace,workspa" + + "ce_id\202\323\344\223\002J\"=/v1/{parent=projects/*/loca" + + "tions/*/repositories/*}/workspaces:\twork" + + "space\022\251\001\n\017DeleteWorkspace\0220.google.cloud" + + ".dataform.v1.DeleteWorkspaceRequest\032\026.go" + + "ogle.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v1/" + + "{name=projects/*/locations/*/repositorie" + + "s/*/workspaces/*}\022\341\001\n\022InstallNpmPackages" + + "\0223.google.cloud.dataform.v1.InstallNpmPa" + + "ckagesRequest\0324.google.cloud.dataform.v1" + + ".InstallNpmPackagesResponse\"`\202\323\344\223\002Z\"U/v1" + + "/{workspace=projects/*/locations/*/repos" + + "itories/*/workspaces/*}:installNpmPackag" + + "es:\001*\022\302\001\n\016PullGitCommits\022/.google.cloud." + + "dataform.v1.PullGitCommitsRequest\0320.goog" + + "le.cloud.dataform.v1.PullGitCommitsRespo" + + "nse\"M\202\323\344\223\002G\"B/v1/{name=projects/*/locati" + + "ons/*/repositories/*/workspaces/*}:pull:" + + "\001*\022\302\001\n\016PushGitCommits\022/.google.cloud.dat" + + "aform.v1.PushGitCommitsRequest\0320.google." + + "cloud.dataform.v1.PushGitCommitsResponse" + + "\"M\202\323\344\223\002G\"B/v1/{name=projects/*/locations" + + "/*/repositories/*/workspaces/*}:push:\001*\022" + + "\341\001\n\024FetchFileGitStatuses\0225.google.cloud." + + "dataform.v1.FetchFileGitStatusesRequest\032" + + "6.google.cloud.dataform.v1.FetchFileGitS" + + "tatusesResponse\"Z\202\323\344\223\002T\022R/v1/{name=proje" + + "cts/*/locations/*/repositories/*/workspa" + + "ces/*}:fetchFileGitStatuses\022\335\001\n\023FetchGit" + + "AheadBehind\0224.google.cloud.dataform.v1.F" + + "etchGitAheadBehindRequest\0325.google.cloud" + + ".dataform.v1.FetchGitAheadBehindResponse" + + "\"Y\202\323\344\223\002S\022Q/v1/{name=projects/*/locations" + + "/*/repositories/*/workspaces/*}:fetchGit" + + "AheadBehind\022\334\001\n\026CommitWorkspaceChanges\0227" + + ".google.cloud.dataform.v1.CommitWorkspac" + + "eChangesRequest\0328.google.cloud.dataform." + + "v1.CommitWorkspaceChangesResponse\"O\202\323\344\223\002" + + "I\"D/v1/{name=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}:commit:\001*\022\330\001\n\025R" + + "esetWorkspaceChanges\0226.google.cloud.data" + + "form.v1.ResetWorkspaceChangesRequest\0327.g" + + "oogle.cloud.dataform.v1.ResetWorkspaceCh" + + "angesResponse\"N\202\323\344\223\002H\"C/v1/{name=project" + + "s/*/locations/*/repositories/*/workspace" + + "s/*}:reset:\001*\022\312\001\n\rFetchFileDiff\022..google" + + ".cloud.dataform.v1.FetchFileDiffRequest\032" + + "/.google.cloud.dataform.v1.FetchFileDiff" + + "Response\"X\202\323\344\223\002R\022P/v1/{workspace=project" + + "s/*/locations/*/repositories/*/workspace" + + "s/*}:fetchFileDiff\022\356\001\n\026QueryDirectoryCon" + + "tents\0227.google.cloud.dataform.v1.QueryDi" + + "rectoryContentsRequest\0328.google.cloud.da" + + "taform.v1.QueryDirectoryContentsResponse" + + "\"a\202\323\344\223\002[\022Y/v1/{workspace=projects/*/loca" + + "tions/*/repositories/*/workspaces/*}:que" + + "ryDirectoryContents\022\302\001\n\013SearchFiles\022,.go" + + "ogle.cloud.dataform.v1.SearchFilesReques" + + "t\032-.google.cloud.dataform.v1.SearchFiles" + + "Response\"V\202\323\344\223\002P\022N/v1/{workspace=project" + + "s/*/locations/*/repositories/*/workspace" + + "s/*}:searchFiles\022\315\001\n\rMakeDirectory\022..goo" + + "gle.cloud.dataform.v1.MakeDirectoryReque" + + "st\032/.google.cloud.dataform.v1.MakeDirect" + + "oryResponse\"[\202\323\344\223\002U\"P/v1/{workspace=proj" + + "ects/*/locations/*/repositories/*/worksp" + + "aces/*}:makeDirectory:\001*\022\325\001\n\017RemoveDirec" + + "tory\0220.google.cloud.dataform.v1.RemoveDi" + + "rectoryRequest\0321.google.cloud.dataform.v" + + "1.RemoveDirectoryResponse\"]\202\323\344\223\002W\"R/v1/{" + + "workspace=projects/*/locations/*/reposit" + + "ories/*/workspaces/*}:removeDirectory:\001*" + + "\022\315\001\n\rMoveDirectory\022..google.cloud.datafo" + + "rm.v1.MoveDirectoryRequest\032/.google.clou" + + "d.dataform.v1.MoveDirectoryResponse\"[\202\323\344" + + "\223\002U\"P/v1/{workspace=projects/*/locations" + + "/*/repositories/*/workspaces/*}:moveDire" + + "ctory:\001*\022\266\001\n\010ReadFile\022).google.cloud.dat" + + "aform.v1.ReadFileRequest\032*.google.cloud." + + "dataform.v1.ReadFileResponse\"S\202\323\344\223\002M\022K/v" + + "1/{workspace=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}:readFile\022\301\001\n\nRe" + + "moveFile\022+.google.cloud.dataform.v1.Remo" + + "veFileRequest\032,.google.cloud.dataform.v1" + + ".RemoveFileResponse\"X\202\323\344\223\002R\"M/v1/{worksp" + + "ace=projects/*/locations/*/repositories/" + + "*/workspaces/*}:removeFile:\001*\022\271\001\n\010MoveFi" + + "le\022).google.cloud.dataform.v1.MoveFileRe" + + "quest\032*.google.cloud.dataform.v1.MoveFil" + + "eResponse\"V\202\323\344\223\002P\"K/v1/{workspace=projec" + + "ts/*/locations/*/repositories/*/workspac" + + "es/*}:moveFile:\001*\022\275\001\n\tWriteFile\022*.google" + + ".cloud.dataform.v1.WriteFileRequest\032+.go" + + "ogle.cloud.dataform.v1.WriteFileResponse" + + "\"W\202\323\344\223\002Q\"L/v1/{workspace=projects/*/loca" + + "tions/*/repositories/*/workspaces/*}:wri" + + "teFile:\001*\022\323\001\n\022ListReleaseConfigs\0223.googl" + + "e.cloud.dataform.v1.ListReleaseConfigsRe" + + "quest\0324.google.cloud.dataform.v1.ListRel" + + "easeConfigsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v" + + "1/{parent=projects/*/locations/*/reposit" + + "ories/*}/releaseConfigs\022\300\001\n\020GetReleaseCo" + + "nfig\0221.google.cloud.dataform.v1.GetRelea" + + "seConfigRequest\032\'.google.cloud.dataform." + + "v1.ReleaseConfig\"P\332A\004name\202\323\344\223\002C\022A/v1/{na" + + "me=projects/*/locations/*/repositories/*" + + "/releaseConfigs/*}\022\372\001\n\023CreateReleaseConf" + + "ig\0224.google.cloud.dataform.v1.CreateRele" + + "aseConfigRequest\032\'.google.cloud.dataform" + + ".v1.ReleaseConfig\"\203\001\332A\'parent,release_co" + + "nfig,release_config_id\202\323\344\223\002S\"A/v1/{paren" + + "t=projects/*/locations/*/repositories/*}" + + "/releaseConfigs:\016release_config\022\374\001\n\023Upda" + + "teReleaseConfig\0224.google.cloud.dataform." + + "v1.UpdateReleaseConfigRequest\032\'.google.c" + + "loud.dataform.v1.ReleaseConfig\"\205\001\332A\032rele" + + "ase_config,update_mask\202\323\344\223\002b2P/v1/{relea" + + "se_config.name=projects/*/locations/*/re" + + "positories/*/releaseConfigs/*}:\016release_" + + "config\022\265\001\n\023DeleteReleaseConfig\0224.google." + + "cloud.dataform.v1.DeleteReleaseConfigReq" + + "uest\032\026.google.protobuf.Empty\"P\332A\004name\202\323\344" + + "\223\002C*A/v1/{name=projects/*/locations/*/re" + + "positories/*/releaseConfigs/*}\022\343\001\n\026ListC" + + "ompilationResults\0227.google.cloud.datafor" + + "m.v1.ListCompilationResultsRequest\0328.goo" + + "gle.cloud.dataform.v1.ListCompilationRes" + + "ultsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1/{pare" + + "nt=projects/*/locations/*/repositories/*" + + "}/compilationResults\022\320\001\n\024GetCompilationR" + + "esult\0225.google.cloud.dataform.v1.GetComp" + + "ilationResultRequest\032+.google.cloud.data" + + "form.v1.CompilationResult\"T\332A\004name\202\323\344\223\002G" + + "\022E/v1/{name=projects/*/locations/*/repos" + + "itories/*/compilationResults/*}\022\377\001\n\027Crea" + + "teCompilationResult\0228.google.cloud.dataf" + + "orm.v1.CreateCompilationResultRequest\032+." + + "google.cloud.dataform.v1.CompilationResu" + + "lt\"}\332A\031parent,compilation_result\202\323\344\223\002[\"E" + + "/v1/{parent=projects/*/locations/*/repos" + + "itories/*}/compilationResults:\022compilati" + + "on_result\022\365\001\n\035QueryCompilationResultActi" + + "ons\022>.google.cloud.dataform.v1.QueryComp" + + "ilationResultActionsRequest\032?.google.clo" + + "ud.dataform.v1.QueryCompilationResultAct" + + "ionsResponse\"S\202\323\344\223\002M\022K/v1/{name=projects" + + "/*/locations/*/repositories/*/compilatio" + + "nResults/*}:query\022\327\001\n\023ListWorkflowConfig" + + "s\0224.google.cloud.dataform.v1.ListWorkflo" + + "wConfigsRequest\0325.google.cloud.dataform." + + "v1.ListWorkflowConfigsResponse\"S\332A\006paren" + + "t\202\323\344\223\002D\022B/v1/{parent=projects/*/location" + + "s/*/repositories/*}/workflowConfigs\022\304\001\n\021" + + "GetWorkflowConfig\0222.google.cloud.datafor" + + "m.v1.GetWorkflowConfigRequest\032(.google.c" + + "loud.dataform.v1.WorkflowConfig\"Q\332A\004name" + + "\202\323\344\223\002D\022B/v1/{name=projects/*/locations/*" + + "/repositories/*/workflowConfigs/*}\022\201\002\n\024C" + + "reateWorkflowConfig\0225.google.cloud.dataf" + + "orm.v1.CreateWorkflowConfigRequest\032(.goo" + + "gle.cloud.dataform.v1.WorkflowConfig\"\207\001\332" + + "A)parent,workflow_config,workflow_config" + + "_id\202\323\344\223\002U\"B/v1/{parent=projects/*/locati" + + "ons/*/repositories/*}/workflowConfigs:\017w" + + "orkflow_config\022\203\002\n\024UpdateWorkflowConfig\022" + + "5.google.cloud.dataform.v1.UpdateWorkflo" + + "wConfigRequest\032(.google.cloud.dataform.v" + + "1.WorkflowConfig\"\211\001\332A\033workflow_config,up" + + "date_mask\202\323\344\223\002e2R/v1/{workflow_config.na" + + "me=projects/*/locations/*/repositories/*" + + "/workflowConfigs/*}:\017workflow_config\022\270\001\n" + + "\024DeleteWorkflowConfig\0225.google.cloud.dat" + + "aform.v1.DeleteWorkflowConfigRequest\032\026.g" + + "oogle.protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/workflowConfigs/*}\022\347\001\n\027ListWorkflow" + + "Invocations\0228.google.cloud.dataform.v1.L" + + "istWorkflowInvocationsRequest\0329.google.c" + + "loud.dataform.v1.ListWorkflowInvocations" + + "Response\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=p" + + "rojects/*/locations/*/repositories/*}/wo" + + "rkflowInvocations\022\324\001\n\025GetWorkflowInvocat" + + "ion\0226.google.cloud.dataform.v1.GetWorkfl" + + "owInvocationRequest\032,.google.cloud.dataf" + + "orm.v1.WorkflowInvocation\"U\332A\004name\202\323\344\223\002H" + + "\022F/v1/{name=projects/*/locations/*/repos" + + "itories/*/workflowInvocations/*}\022\206\002\n\030Cre" + + "ateWorkflowInvocation\0229.google.cloud.dat" + + "aform.v1.CreateWorkflowInvocationRequest" + + "\032,.google.cloud.dataform.v1.WorkflowInvo" + + "cation\"\200\001\332A\032parent,workflow_invocation\202\323" + + "\344\223\002]\"F/v1/{parent=projects/*/locations/*" + + "/repositories/*}/workflowInvocations:\023wo" + + "rkflow_invocation\022\304\001\n\030DeleteWorkflowInvo" + + "cation\0229.google.cloud.dataform.v1.Delete" + + "WorkflowInvocationRequest\032\026.google.proto" + + "buf.Empty\"U\332A\004name\202\323\344\223\002H*F/v1/{name=proj" + "ects/*/locations/*/repositories/*/workfl" - + "owConfigs/*}:\017workflow_config\022\270\001\n\024Delete" - + "WorkflowConfig\0225.google.cloud.dataform.v" - + "1.DeleteWorkflowConfigRequest\032\026.google.p" - + "rotobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1/{name=" + + "owInvocations/*}\022\353\001\n\030CancelWorkflowInvoc" + + "ation\0229.google.cloud.dataform.v1.CancelW" + + "orkflowInvocationRequest\032:.google.cloud." + + "dataform.v1.CancelWorkflowInvocationResp" + + "onse\"X\202\323\344\223\002R\"M/v1/{name=projects/*/locat" + + "ions/*/repositories/*/workflowInvocation" + + "s/*}:cancel:\001*\022\371\001\n\036QueryWorkflowInvocati" + + "onActions\022?.google.cloud.dataform.v1.Que" + + "ryWorkflowInvocationActionsRequest\032@.goo" + + "gle.cloud.dataform.v1.QueryWorkflowInvoc" + + "ationActionsResponse\"T\202\323\344\223\002N\022L/v1/{name=" + "projects/*/locations/*/repositories/*/wo" - + "rkflowConfigs/*}\022\347\001\n\027ListWorkflowInvocat" - + "ions\0228.google.cloud.dataform.v1.ListWork" - + "flowInvocationsRequest\0329.google.cloud.da" - + "taform.v1.ListWorkflowInvocationsRespons" - + "e\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=projects" - + "/*/locations/*/repositories/*}/workflowI" - + "nvocations\022\324\001\n\025GetWorkflowInvocation\0226.g" - + "oogle.cloud.dataform.v1.GetWorkflowInvoc" - + "ationRequest\032,.google.cloud.dataform.v1." - + "WorkflowInvocation\"U\332A\004name\202\323\344\223\002H\022F/v1/{" - + "name=projects/*/locations/*/repositories" - + "/*/workflowInvocations/*}\022\206\002\n\030CreateWork" - + "flowInvocation\0229.google.cloud.dataform.v" - + "1.CreateWorkflowInvocationRequest\032,.goog" - + "le.cloud.dataform.v1.WorkflowInvocation\"" - + "\200\001\332A\032parent,workflow_invocation\202\323\344\223\002]\"F/" - + "v1/{parent=projects/*/locations/*/reposi" - + "tories/*}/workflowInvocations:\023workflow_" - + "invocation\022\304\001\n\030DeleteWorkflowInvocation\022" - + "9.google.cloud.dataform.v1.DeleteWorkflo" - + "wInvocationRequest\032\026.google.protobuf.Emp" - + "ty\"U\332A\004name\202\323\344\223\002H*F/v1/{name=projects/*/" - + "locations/*/repositories/*/workflowInvoc" - + "ations/*}\022\353\001\n\030CancelWorkflowInvocation\0229" - + ".google.cloud.dataform.v1.CancelWorkflow" - + "InvocationRequest\032:.google.cloud.datafor" - + "m.v1.CancelWorkflowInvocationResponse\"X\202" - + "\323\344\223\002R\"M/v1/{name=projects/*/locations/*/" - + "repositories/*/workflowInvocations/*}:ca" - + "ncel:\001*\022\371\001\n\036QueryWorkflowInvocationActio" - + "ns\022?.google.cloud.dataform.v1.QueryWorkf" - + "lowInvocationActionsRequest\032@.google.clo" - + "ud.dataform.v1.QueryWorkflowInvocationAc" - + "tionsResponse\"T\202\323\344\223\002N\022L/v1/{name=project" - + "s/*/locations/*/repositories/*/workflowI" - + "nvocations/*}:query\022\222\001\n\tGetConfig\022*.goog" - + "le.cloud.dataform.v1.GetConfigRequest\032 ." - + "google.cloud.dataform.v1.Config\"7\332A\004name" - + "\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*" - + "/config}\022\265\001\n\014UpdateConfig\022-.google.cloud" - + ".dataform.v1.UpdateConfigRequest\032 .googl" - + "e.cloud.dataform.v1.Config\"T\332A\022config,up" - + "date_mask\202\323\344\223\00292//v1/{config.name=projec" - + "ts/*/locations/*/config}:\006config\032t\312A\027dat" - + "aform.googleapis.com\322AWhttps://www.googl" - + "eapis.com/auth/bigquery,https://www.goog" - + "leapis.com/auth/cloud-platformB\336\005\n\034com.g" - + "oogle.cloud.dataform.v1B\rDataformProtoP\001" - + "Z8cloud.google.com/go/dataform/apiv1/dat" - + "aformpb;dataformpb\252\002\030Google.Cloud.Datafo" - + "rm.V1\312\002\030Google\\Cloud\\Dataform\\V1\352\002\033Googl" - + "e::Cloud::Dataform::V1\352Ad\n*secretmanager" - + ".googleapis.com/SecretVersion\0226projects/" - + "{project}/secrets/{secret}/versions/{ver" - + "sion}\352Ax\n!cloudkms.googleapis.com/Crypto" - + "Key\022Sprojects/{project}/locations/{locat" - + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" - + "pto_key}\352A\246\001\n(cloudkms.googleapis.com/Cr" - + "yptoKeyVersion\022zprojects/{project}/locat" - + "ions/{location}/keyRings/{key_ring}/cryp" - + "toKeys/{crypto_key}/cryptoKeyVersions/{c" - + "rypto_key_version}\352A\221\001\n1aiplatform.googl" - + "eapis.com/NotebookRuntimeTemplate\022\\proje" - + "cts/{project}/locations/{location}/noteb" - + "ookRuntimeTemplates/{notebook_runtime_te" - + "mplate}b\006proto3" + + "rkflowInvocations/*}:query\022\222\001\n\tGetConfig" + + "\022*.google.cloud.dataform.v1.GetConfigReq" + + "uest\032 .google.cloud.dataform.v1.Config\"7" + + "\332A\004name\202\323\344\223\002*\022(/v1/{name=projects/*/loca" + + "tions/*/config}\022\265\001\n\014UpdateConfig\022-.googl" + + "e.cloud.dataform.v1.UpdateConfigRequest\032" + + " .google.cloud.dataform.v1.Config\"T\332A\022co" + + "nfig,update_mask\202\323\344\223\00292//v1/{config.name" + + "=projects/*/locations/*/config}:\006config\022" + + "\367\002\n\014GetIamPolicy\022\".google.iam.v1.GetIamP" + + "olicyRequest\032\025.google.iam.v1.Policy\"\253\002\332A" + + "\010resource\202\323\344\223\002\231\002\022A/v1/{resource=projects" + + "/*/locations/*/repositories/*}:getIamPol" + + "icyZP\022N/v1/{resource=projects/*/location" + + "s/*/repositories/*/workspaces/*}:getIamP" + + "olicyZ>\022 + * `DeleteFolder` request message. + *
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteFolderRequest) + DeleteFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderRequest"); + } + + // Use DeleteFolderRequest.newBuilder() to construct. + private DeleteFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderRequest.class, + com.google.cloud.dataform.v1.DeleteFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.dataform.v1.DeleteFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteFolderRequest other = + (com.google.cloud.dataform.v1.DeleteFolderRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest 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.dataform.v1.DeleteFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest 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.dataform.v1.DeleteFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.DeleteFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `DeleteFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteFolderRequest) + com.google.cloud.dataform.v1.DeleteFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderRequest.class, + com.google.cloud.dataform.v1.DeleteFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderRequest build() { + com.google.cloud.dataform.v1.DeleteFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderRequest buildPartial() { + com.google.cloud.dataform.v1.DeleteFolderRequest result = + new com.google.cloud.dataform.v1.DeleteFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteFolderRequest other) { + if (other == com.google.cloud.dataform.v1.DeleteFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteFolderRequest) + private static final com.google.cloud.dataform.v1.DeleteFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteFolderRequest(); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderRequest 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.dataform.v1.DeleteFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderRequestOrBuilder.java new file mode 100644 index 000000000000..b38fd4d602eb --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadata.java new file mode 100644 index 000000000000..bda95ce46ce6 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadata.java @@ -0,0 +1,1699 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Contains metadata about the progress of the DeleteFolderTree Long-running
            + * operations.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderTreeMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteFolderTreeMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + DeleteFolderTreeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderTreeMetadata"); + } + + // Use DeleteFolderTreeMetadata.newBuilder() to construct. + private DeleteFolderTreeMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderTreeMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.class, + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.Builder.class); + } + + /** + * + * + *
            +   * Different states of the DeleteFolderTree operation.
            +   * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.DeleteFolderTreeMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The operation was initialized and recorded by the server, but not yet
            +     * started.
            +     * 
            + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
            +     * The operation is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
            +     * The operation has completed successfully.
            +     * 
            + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
            +     * The operation has failed.
            +     * 
            + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The operation was initialized and recorded by the server, but not yet
            +     * started.
            +     * 
            + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
            +     * The operation is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
            +     * The operation has completed successfully.
            +     * 
            + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
            +     * The operation has failed.
            +     * 
            + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.DeleteFolderTreeMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
            +   * Output only. Resource name of the target of the operation.
            +   * Format: projects/{project}/locations/{location}/folders/{folder} or
            +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + target_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Resource name of the target of the operation.
            +   * Format: projects/{project}/locations/{location}/folders/{folder} or
            +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
            +   * Output only. The state of the operation.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * Output only. The state of the operation.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State getState() { + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State result = + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
            +   * Output only. Percent complete of the operation [0, 100].
            +   * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + 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.dataform.v1.DeleteFolderTreeMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata other = + (com.google.cloud.dataform.v1.DeleteFolderTreeMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata 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.dataform.v1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata 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.dataform.v1.DeleteFolderTreeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.DeleteFolderTreeMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Contains metadata about the progress of the DeleteFolderTree Long-running
            +   * operations.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderTreeMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + com.google.cloud.dataform.v1.DeleteFolderTreeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.class, + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata build() { + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata buildPartial() { + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata result = + new com.google.cloud.dataform.v1.DeleteFolderTreeMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteFolderTreeMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteFolderTreeMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteFolderTreeMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteFolderTreeMetadata other) { + if (other == com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State getState() { + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State result = + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
            +     * Output only. Percent complete of the operation [0, 100].
            +     * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
            +     * Output only. Percent complete of the operation [0, 100].
            +     * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Percent complete of the operation [0, 100].
            +     * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + private static final com.google.cloud.dataform.v1.DeleteFolderTreeMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteFolderTreeMetadata(); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderTreeMetadata 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.dataform.v1.DeleteFolderTreeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadataOrBuilder.java new file mode 100644 index 000000000000..1ffcc5899fde --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadataOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteFolderTreeMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Resource name of the target of the operation.
            +   * Format: projects/{project}/locations/{location}/folders/{folder} or
            +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
            +   * Output only. Resource name of the target of the operation.
            +   * Format: projects/{project}/locations/{location}/folders/{folder} or
            +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
            +   * Output only. The state of the operation.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * Output only. The state of the operation.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State getState(); + + /** + * + * + *
            +   * Output only. Percent complete of the operation [0, 100].
            +   * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequest.java new file mode 100644 index 000000000000..0d0311fd919b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequest.java @@ -0,0 +1,738 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `DeleteFolderTree` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderTreeRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFolderTreeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteFolderTreeRequest) + DeleteFolderTreeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderTreeRequest"); + } + + // Use DeleteFolderTreeRequest.newBuilder() to construct. + private DeleteFolderTreeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderTreeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest.class, + com.google.cloud.dataform.v1.DeleteFolderTreeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * Format: projects/{project}/locations/{location}/folders/{folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * Format: projects/{project}/locations/{location}/folders/{folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
            +   * Optional. If `false` (default): The operation will fail if any
            +   * Repository within the folder hierarchy has associated Release Configs or
            +   * Workflow Configs.
            +   *
            +   * If `true`: The operation will attempt to delete everything, including any
            +   * Release Configs and Workflow Configs linked to Repositories within the
            +   * folder hierarchy. This permanently removes schedules and resources.
            +   * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.dataform.v1.DeleteFolderTreeRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteFolderTreeRequest other = + (com.google.cloud.dataform.v1.DeleteFolderTreeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest 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.dataform.v1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest 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.dataform.v1.DeleteFolderTreeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.DeleteFolderTreeRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `DeleteFolderTree` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderTreeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteFolderTreeRequest) + com.google.cloud.dataform.v1.DeleteFolderTreeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest.class, + com.google.cloud.dataform.v1.DeleteFolderTreeRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteFolderTreeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteFolderTreeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeRequest build() { + com.google.cloud.dataform.v1.DeleteFolderTreeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeRequest buildPartial() { + com.google.cloud.dataform.v1.DeleteFolderTreeRequest result = + new com.google.cloud.dataform.v1.DeleteFolderTreeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteFolderTreeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteFolderTreeRequest) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteFolderTreeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteFolderTreeRequest other) { + if (other == com.google.cloud.dataform.v1.DeleteFolderTreeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 name_ = ""; + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteFolderTreeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteFolderTreeRequest) + private static final com.google.cloud.dataform.v1.DeleteFolderTreeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteFolderTreeRequest(); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderTreeRequest 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.dataform.v1.DeleteFolderTreeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequestOrBuilder.java new file mode 100644 index 000000000000..8b0ce4397c96 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteFolderTreeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteFolderTreeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * Format: projects/{project}/locations/{location}/folders/{folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * Format: projects/{project}/locations/{location}/folders/{folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. If `false` (default): The operation will fail if any
            +   * Repository within the folder hierarchy has associated Release Configs or
            +   * Workflow Configs.
            +   *
            +   * If `true`: The operation will attempt to delete everything, including any
            +   * Release Configs and Workflow Configs linked to Repositories within the
            +   * folder hierarchy. This permanently removes schedules and resources.
            +   * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequest.java index db26adbc46f8..1c48927a32f3 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequest.java @@ -134,9 +134,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -   * Optional. If set to true, any child resources of this repository will also
            -   * be deleted. (Otherwise, the request will only succeed if the repository has
            -   * no child resources.)
            +   * Optional. If set to true, child resources of this repository (compilation
            +   * results and workflow invocations) will also be deleted. Otherwise, the
            +   * request will only succeed if the repository has no child resources.
            +   *
            +   * **Note:** *This flag doesn't support deletion of workspaces, release
            +   * configs or workflow configs. If any of such resources exists in the
            +   * repository, the request will fail.*.
                * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -607,9 +611,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
            -     * Optional. If set to true, any child resources of this repository will also
            -     * be deleted. (Otherwise, the request will only succeed if the repository has
            -     * no child resources.)
            +     * Optional. If set to true, child resources of this repository (compilation
            +     * results and workflow invocations) will also be deleted. Otherwise, the
            +     * request will only succeed if the repository has no child resources.
            +     *
            +     * **Note:** *This flag doesn't support deletion of workspaces, release
            +     * configs or workflow configs. If any of such resources exists in the
            +     * repository, the request will fail.*.
                  * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -625,9 +633,13 @@ public boolean getForce() { * * *
            -     * Optional. If set to true, any child resources of this repository will also
            -     * be deleted. (Otherwise, the request will only succeed if the repository has
            -     * no child resources.)
            +     * Optional. If set to true, child resources of this repository (compilation
            +     * results and workflow invocations) will also be deleted. Otherwise, the
            +     * request will only succeed if the repository has no child resources.
            +     *
            +     * **Note:** *This flag doesn't support deletion of workspaces, release
            +     * configs or workflow configs. If any of such resources exists in the
            +     * repository, the request will fail.*.
                  * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -647,9 +659,13 @@ public Builder setForce(boolean value) { * * *
            -     * Optional. If set to true, any child resources of this repository will also
            -     * be deleted. (Otherwise, the request will only succeed if the repository has
            -     * no child resources.)
            +     * Optional. If set to true, child resources of this repository (compilation
            +     * results and workflow invocations) will also be deleted. Otherwise, the
            +     * request will only succeed if the repository has no child resources.
            +     *
            +     * **Note:** *This flag doesn't support deletion of workspaces, release
            +     * configs or workflow configs. If any of such resources exists in the
            +     * repository, the request will fail.*.
                  * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequestOrBuilder.java index 96d88e4aa2cf..9ac3f5ee1f93 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequestOrBuilder.java @@ -60,9 +60,13 @@ public interface DeleteRepositoryRequestOrBuilder * * *
            -   * Optional. If set to true, any child resources of this repository will also
            -   * be deleted. (Otherwise, the request will only succeed if the repository has
            -   * no child resources.)
            +   * Optional. If set to true, child resources of this repository (compilation
            +   * results and workflow invocations) will also be deleted. Otherwise, the
            +   * request will only succeed if the repository has no child resources.
            +   *
            +   * **Note:** *This flag doesn't support deletion of workspaces, release
            +   * configs or workflow configs. If any of such resources exists in the
            +   * repository, the request will fail.*.
                * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequest.java new file mode 100644 index 000000000000..d57002d48c27 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `DeleteTeamFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class DeleteTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteTeamFolderRequest) + DeleteTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteTeamFolderRequest"); + } + + // Use DeleteTeamFolderRequest.newBuilder() to construct. + private DeleteTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteTeamFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest.class, + com.google.cloud.dataform.v1.DeleteTeamFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.dataform.v1.DeleteTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteTeamFolderRequest other = + (com.google.cloud.dataform.v1.DeleteTeamFolderRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest 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.dataform.v1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest 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.dataform.v1.DeleteTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.DeleteTeamFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `DeleteTeamFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteTeamFolderRequest) + com.google.cloud.dataform.v1.DeleteTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest.class, + com.google.cloud.dataform.v1.DeleteTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteTeamFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderRequest build() { + com.google.cloud.dataform.v1.DeleteTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1.DeleteTeamFolderRequest result = + new com.google.cloud.dataform.v1.DeleteTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1.DeleteTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteTeamFolderRequest) + private static final com.google.cloud.dataform.v1.DeleteTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamFolderRequest 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.dataform.v1.DeleteTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..7beb27156b9e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequest.java new file mode 100644 index 000000000000..e9648ca85d8e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequest.java @@ -0,0 +1,739 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `DeleteTeamFolderTree` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteTeamFolderTreeRequest} + */ +@com.google.protobuf.Generated +public final class DeleteTeamFolderTreeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + DeleteTeamFolderTreeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteTeamFolderTreeRequest"); + } + + // Use DeleteTeamFolderTreeRequest.newBuilder() to construct. + private DeleteTeamFolderTreeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteTeamFolderTreeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.class, + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
            +   * Optional. If `false` (default): The operation will fail if any
            +   * Repository within the folder hierarchy has associated Release Configs or
            +   * Workflow Configs.
            +   *
            +   * If `true`: The operation will attempt to delete everything, including any
            +   * Release Configs and Workflow Configs linked to Repositories within the
            +   * folder hierarchy. This permanently removes schedules and resources.
            +   * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.dataform.v1.DeleteTeamFolderTreeRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest other = + (com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest 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.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest 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.dataform.v1.DeleteTeamFolderTreeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.DeleteTeamFolderTreeRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `DeleteTeamFolderTree` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteTeamFolderTreeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.class, + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest build() { + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest buildPartial() { + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest result = + new com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest other) { + if (other == com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 name_ = ""; + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + private static final com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest(); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamFolderTreeRequest 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.dataform.v1.DeleteTeamFolderTreeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequestOrBuilder.java new file mode 100644 index 000000000000..3092a2673e37 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteTeamFolderTreeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. If `false` (default): The operation will fail if any
            +   * Repository within the folder hierarchy has associated Release Configs or
            +   * Workflow Configs.
            +   *
            +   * If `true`: The operation will attempt to delete everything, including any
            +   * Release Configs and Workflow Configs linked to Repositories within the
            +   * folder hierarchy. This permanently removes schedules and resources.
            +   * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryContentsView.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryContentsView.java new file mode 100644 index 000000000000..4c637060cb19 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryContentsView.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Represents the level of detail to return for directory contents.
            + * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.DirectoryContentsView} + */ +@com.google.protobuf.Generated +public enum DirectoryContentsView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + */ + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED(0), + /** + * + * + *
            +   * Includes only the file or directory name. This is the default behavior.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_BASIC = 1; + */ + DIRECTORY_CONTENTS_VIEW_BASIC(1), + /** + * + * + *
            +   * Includes all metadata for each file or directory. Currently not supported
            +   * by CMEK-protected workspaces.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_METADATA = 2; + */ + DIRECTORY_CONTENTS_VIEW_METADATA(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DirectoryContentsView"); + } + + /** + * + * + *
            +   * The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + */ + public static final int DIRECTORY_CONTENTS_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +   * Includes only the file or directory name. This is the default behavior.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_BASIC = 1; + */ + public static final int DIRECTORY_CONTENTS_VIEW_BASIC_VALUE = 1; + + /** + * + * + *
            +   * Includes all metadata for each file or directory. Currently not supported
            +   * by CMEK-protected workspaces.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_METADATA = 2; + */ + public static final int DIRECTORY_CONTENTS_VIEW_METADATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DirectoryContentsView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DirectoryContentsView forNumber(int value) { + switch (value) { + case 0: + return DIRECTORY_CONTENTS_VIEW_UNSPECIFIED; + case 1: + return DIRECTORY_CONTENTS_VIEW_BASIC; + case 2: + return DIRECTORY_CONTENTS_VIEW_METADATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DirectoryContentsView findValueByNumber(int number) { + return DirectoryContentsView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DirectoryContentsView[] VALUES = values(); + + public static DirectoryContentsView valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DirectoryContentsView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.DirectoryContentsView) +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntry.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntry.java index 7638302d40a4..eb802889a4f3 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntry.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntry.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1.DirectoryEntry.Builder.class); } + private int bitField0_; private int entryCase_ = 0; @SuppressWarnings("serial") @@ -264,6 +265,59 @@ public com.google.protobuf.ByteString getDirectoryBytes() { } } + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.dataform.v1.FilesystemEntryMetadata metadata_; + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -284,6 +338,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (entryCase_ == 2) { com.google.protobuf.GeneratedMessage.writeString(output, 2, entry_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMetadata()); + } getUnknownFields().writeTo(output); } @@ -299,6 +356,9 @@ public int getSerializedSize() { if (entryCase_ == 2) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, entry_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -315,6 +375,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataform.v1.DirectoryEntry other = (com.google.cloud.dataform.v1.DirectoryEntry) obj; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } if (!getEntryCase().equals(other.getEntryCase())) return false; switch (entryCase_) { case 1: @@ -337,6 +401,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } switch (entryCase_) { case 1: hash = (37 * hash) + FILE_FIELD_NUMBER; @@ -479,16 +547,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataform.v1.DirectoryEntry.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } entryCase_ = 0; entry_ = null; return this; @@ -528,6 +610,12 @@ public com.google.cloud.dataform.v1.DirectoryEntry buildPartial() { private void buildPartial0(com.google.cloud.dataform.v1.DirectoryEntry result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.dataform.v1.DirectoryEntry result) { @@ -547,6 +635,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataform.v1.DirectoryEntry other) { if (other == com.google.cloud.dataform.v1.DirectoryEntry.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } switch (other.getEntryCase()) { case FILE: { @@ -607,6 +698,13 @@ public Builder mergeFrom( entry_ = s; break; } // case 18 + case 26: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -918,6 +1016,202 @@ public Builder setDirectoryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1.FilesystemEntryMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder> + metadataBuilder_; + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + public com.google.cloud.dataform.v1.FilesystemEntryMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.dataform.v1.FilesystemEntryMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.dataform.v1.FilesystemEntryMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DirectoryEntry) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntryOrBuilder.java index 98ff39d8211c..bbc1d1ce196d 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntryOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntryOrBuilder.java @@ -104,5 +104,42 @@ public interface DirectoryEntryOrBuilder */ com.google.protobuf.ByteString getDirectoryBytes(); + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + com.google.cloud.dataform.v1.FilesystemEntryMetadata getMetadata(); + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder getMetadataOrBuilder(); + com.google.cloud.dataform.v1.DirectoryEntry.EntryCase getEntryCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadata.java new file mode 100644 index 000000000000..592a48ceb8eb --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadata.java @@ -0,0 +1,816 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Represents metadata for a single entry in a filesystem.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.FilesystemEntryMetadata} + */ +@com.google.protobuf.Generated +public final class FilesystemEntryMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.FilesystemEntryMetadata) + FilesystemEntryMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FilesystemEntryMetadata"); + } + + // Use FilesystemEntryMetadata.newBuilder() to construct. + private FilesystemEntryMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FilesystemEntryMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.FilesystemEntryMetadata.class, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder.class); + } + + private int bitField0_; + public static final int SIZE_BYTES_FIELD_NUMBER = 1; + private long sizeBytes_ = 0L; + + /** + * + * + *
            +   * Output only. Provides the size of the entry in bytes. For directories, this
            +   * will be 0.
            +   * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (sizeBytes_ != 0L) { + output.writeInt64(1, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + 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.dataform.v1.FilesystemEntryMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.FilesystemEntryMetadata other = + (com.google.cloud.dataform.v1.FilesystemEntryMetadata) obj; + + if (getSizeBytes() != other.getSizeBytes()) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) 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) + SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata 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.dataform.v1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata 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.dataform.v1.FilesystemEntryMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.FilesystemEntryMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents metadata for a single entry in a filesystem.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.FilesystemEntryMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.FilesystemEntryMetadata) + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.FilesystemEntryMetadata.class, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.FilesystemEntryMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sizeBytes_ = 0L; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata build() { + com.google.cloud.dataform.v1.FilesystemEntryMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata buildPartial() { + com.google.cloud.dataform.v1.FilesystemEntryMetadata result = + new com.google.cloud.dataform.v1.FilesystemEntryMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.FilesystemEntryMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sizeBytes_ = sizeBytes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.FilesystemEntryMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.FilesystemEntryMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.FilesystemEntryMetadata other) { + if (other == com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance()) + return this; + if (other.getSizeBytes() != 0L) { + setSizeBytes(other.getSizeBytes()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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 8: + { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 long sizeBytes_; + + /** + * + * + *
            +     * Output only. Provides the size of the entry in bytes. For directories, this
            +     * will be 0.
            +     * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + /** + * + * + *
            +     * Output only. Provides the size of the entry in bytes. For directories, this
            +     * will be 0.
            +     * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeBytes to set. + * @return This builder for chaining. + */ + public Builder setSizeBytes(long value) { + + sizeBytes_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Provides the size of the entry in bytes. For directories, this
            +     * will be 0.
            +     * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000001); + sizeBytes_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.FilesystemEntryMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.FilesystemEntryMetadata) + private static final com.google.cloud.dataform.v1.FilesystemEntryMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.FilesystemEntryMetadata(); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilesystemEntryMetadata 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.dataform.v1.FilesystemEntryMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadataOrBuilder.java new file mode 100644 index 000000000000..e4d71a8dd2b9 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadataOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface FilesystemEntryMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.FilesystemEntryMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. Provides the size of the entry in bytes. For directories, this
            +   * will be 0.
            +   * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + long getSizeBytes(); + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Folder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Folder.java new file mode 100644 index 000000000000..f3162bdf12d2 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Folder.java @@ -0,0 +1,2312 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Represents a Dataform Folder. This is a resource that is used to organize
            + * Files and other Folders and provide hierarchical access controls.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.Folder} + */ +@com.google.protobuf.Generated +public final class Folder extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.Folder) + FolderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Folder"); + } + + // Use Folder.newBuilder() to construct. + private Folder(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Folder() { + name_ = ""; + displayName_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.Folder.class, + com.google.cloud.dataform.v1.Folder.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The Folder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The Folder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Required. The Folder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Folder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTAINING_FOLDER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object containingFolder_ = ""; + + /** + * + * + *
            +   * Optional. The containing Folder resource name. This should take
            +   * the format: projects/{project}/locations/{location}/folders/{folder},
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +   * projects/{project}/locations/{location} if this is a root Folder. This
            +   * field can only be updated through MoveFolder.
            +   * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + @java.lang.Override + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + 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(); + containingFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The containing Folder resource name. This should take
            +   * the format: projects/{project}/locations/{location}/folders/{folder},
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +   * projects/{project}/locations/{location} if this is a root Folder. This
            +   * field can only be updated through MoveFolder.
            +   * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Folder is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Folder is not associated with a TeamFolder and is a
            +   * UserFolder.
            +   * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + @java.lang.Override + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + 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(); + teamFolderName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Folder is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Folder is not associated with a TeamFolder and is a
            +   * UserFolder.
            +   * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int INTERNAL_METADATA_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + 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(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATOR_IAM_PRINCIPAL_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + @java.lang.Override + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + @java.lang.Override + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + 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(); + creatorIamPrincipal_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(containingFolder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, containingFolder_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolderName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, teamFolderName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, creatorIamPrincipal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(containingFolder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, containingFolder_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolderName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, teamFolderName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, creatorIamPrincipal_); + } + 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.dataform.v1.Folder)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.Folder other = (com.google.cloud.dataform.v1.Folder) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getContainingFolder().equals(other.getContainingFolder())) return false; + if (!getTeamFolderName().equals(other.getTeamFolderName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } + if (hasCreatorIamPrincipal() != other.hasCreatorIamPrincipal()) return false; + if (hasCreatorIamPrincipal()) { + if (!getCreatorIamPrincipal().equals(other.getCreatorIamPrincipal())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getContainingFolder().hashCode(); + hash = (37 * hash) + TEAM_FOLDER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolderName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } + if (hasCreatorIamPrincipal()) { + hash = (37 * hash) + CREATOR_IAM_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getCreatorIamPrincipal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.Folder parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.Folder 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.dataform.v1.Folder parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.Folder 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.dataform.v1.Folder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.Folder parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.Folder parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.Folder 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a Dataform Folder. This is a resource that is used to organize
            +   * Files and other Folders and provide hierarchical access controls.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.Folder} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.Folder) + com.google.cloud.dataform.v1.FolderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.Folder.class, + com.google.cloud.dataform.v1.Folder.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.Folder.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.Folder build() { + com.google.cloud.dataform.v1.Folder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.Folder buildPartial() { + com.google.cloud.dataform.v1.Folder result = new com.google.cloud.dataform.v1.Folder(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.Folder result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.containingFolder_ = containingFolder_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.teamFolderName_ = teamFolderName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.creatorIamPrincipal_ = creatorIamPrincipal_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.Folder) { + return mergeFrom((com.google.cloud.dataform.v1.Folder) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.Folder other) { + if (other == com.google.cloud.dataform.v1.Folder.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getContainingFolder().isEmpty()) { + containingFolder_ = other.containingFolder_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTeamFolderName().isEmpty()) { + teamFolderName_ = other.teamFolderName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCreatorIamPrincipal()) { + creatorIamPrincipal_ = other.creatorIamPrincipal_; + bitField0_ |= 0x00000080; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + containingFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + teamFolderName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + creatorIamPrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + 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 name_ = ""; + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object containingFolder_ = ""; + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + containingFolder_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContainingFolder() { + containingFolder_ = getDefaultInstance().getContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containingFolder_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolderName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTeamFolderName() { + teamFolderName_ = getDefaultInstance().getTeamFolderName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolderName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCreatorIamPrincipal() { + creatorIamPrincipal_ = getDefaultInstance().getCreatorIamPrincipal(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.Folder) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.Folder) + private static final com.google.cloud.dataform.v1.Folder DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.Folder(); + } + + public static com.google.cloud.dataform.v1.Folder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder 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.dataform.v1.Folder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java new file mode 100644 index 000000000000..1b355a0e18d8 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FolderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FOLDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/folders/{folder}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String folder; + + @Deprecated + protected FolderName() { + project = null; + location = null; + folder = null; + } + + private FolderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + folder = Preconditions.checkNotNull(builder.getFolder()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFolder() { + return folder; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FolderName of(String project, String location, String folder) { + return newBuilder().setProject(project).setLocation(location).setFolder(folder).build(); + } + + public static String format(String project, String location, String folder) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFolder(folder) + .build() + .toString(); + } + + public static FolderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FOLDER.validatedMatch( + formattedString, "FolderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("folder")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FolderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FOLDER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FOLDER.instantiate( + "project", project, "location", location, "folder", folder); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FolderName that = ((FolderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.folder, that.folder); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(folder); + return h; + } + + /** Builder for projects/{project}/locations/{location}/folders/{folder}. */ + public static class Builder { + private String project; + private String location; + private String folder; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFolder() { + return folder; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFolder(String folder) { + this.folder = folder; + return this; + } + + private Builder(FolderName folderName) { + this.project = folderName.project; + this.location = folderName.location; + this.folder = folderName.folder; + } + + public FolderName build() { + return new FolderName(this); + } + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderOrBuilder.java new file mode 100644 index 000000000000..7f4fb3eb9aac --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderOrBuilder.java @@ -0,0 +1,318 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface FolderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.Folder) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The Folder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The Folder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Required. The Folder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Required. The Folder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Optional. The containing Folder resource name. This should take
            +   * the format: projects/{project}/locations/{location}/folders/{folder},
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +   * projects/{project}/locations/{location} if this is a root Folder. This
            +   * field can only be updated through MoveFolder.
            +   * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + java.lang.String getContainingFolder(); + + /** + * + * + *
            +   * Optional. The containing Folder resource name. This should take
            +   * the format: projects/{project}/locations/{location}/folders/{folder},
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +   * projects/{project}/locations/{location} if this is a root Folder. This
            +   * field can only be updated through MoveFolder.
            +   * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + com.google.protobuf.ByteString getContainingFolderBytes(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Folder is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Folder is not associated with a TeamFolder and is a
            +   * UserFolder.
            +   * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + java.lang.String getTeamFolderName(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Folder is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Folder is not associated with a TeamFolder and is a
            +   * UserFolder.
            +   * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + com.google.protobuf.ByteString getTeamFolderNameBytes(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + boolean hasCreatorIamPrincipal(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + java.lang.String getCreatorIamPrincipal(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + com.google.protobuf.ByteString getCreatorIamPrincipalBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequest.java new file mode 100644 index 000000000000..f5ebf5097232 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequest.java @@ -0,0 +1,609 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `GetFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.GetFolderRequest} + */ +@com.google.protobuf.Generated +public final class GetFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.GetFolderRequest) + GetFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFolderRequest"); + } + + // Use GetFolderRequest.newBuilder() to construct. + private GetFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.GetFolderRequest.class, + com.google.cloud.dataform.v1.GetFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.dataform.v1.GetFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.GetFolderRequest other = + (com.google.cloud.dataform.v1.GetFolderRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest 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.dataform.v1.GetFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest 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.dataform.v1.GetFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.GetFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `GetFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.GetFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.GetFolderRequest) + com.google.cloud.dataform.v1.GetFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.GetFolderRequest.class, + com.google.cloud.dataform.v1.GetFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.GetFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.GetFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetFolderRequest build() { + com.google.cloud.dataform.v1.GetFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetFolderRequest buildPartial() { + com.google.cloud.dataform.v1.GetFolderRequest result = + new com.google.cloud.dataform.v1.GetFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.GetFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.GetFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.GetFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.GetFolderRequest other) { + if (other == com.google.cloud.dataform.v1.GetFolderRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.GetFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.GetFolderRequest) + private static final com.google.cloud.dataform.v1.GetFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.GetFolderRequest(); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFolderRequest 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.dataform.v1.GetFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequestOrBuilder.java new file mode 100644 index 000000000000..41e7fff35107 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface GetFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.GetFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequest.java new file mode 100644 index 000000000000..915b796a3b53 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `GetTeamFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.GetTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class GetTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.GetTeamFolderRequest) + GetTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetTeamFolderRequest"); + } + + // Use GetTeamFolderRequest.newBuilder() to construct. + private GetTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetTeamFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.GetTeamFolderRequest.class, + com.google.cloud.dataform.v1.GetTeamFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.dataform.v1.GetTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.GetTeamFolderRequest other = + (com.google.cloud.dataform.v1.GetTeamFolderRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest 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.dataform.v1.GetTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest 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.dataform.v1.GetTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.GetTeamFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `GetTeamFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.GetTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.GetTeamFolderRequest) + com.google.cloud.dataform.v1.GetTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.GetTeamFolderRequest.class, + com.google.cloud.dataform.v1.GetTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.GetTeamFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.GetTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetTeamFolderRequest build() { + com.google.cloud.dataform.v1.GetTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1.GetTeamFolderRequest result = + new com.google.cloud.dataform.v1.GetTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.GetTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.GetTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.GetTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.GetTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1.GetTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.GetTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.GetTeamFolderRequest) + private static final com.google.cloud.dataform.v1.GetTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.GetTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTeamFolderRequest 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.dataform.v1.GetTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..f422b431f8af --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface GetTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.GetTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfig.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfig.java index c10aac4029df..c4090c95dad6 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfig.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfig.java @@ -57,6 +57,7 @@ private InvocationConfig() { includedTargets_ = java.util.Collections.emptyList(); includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; + queryPriority_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -74,6 +75,184 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1.InvocationConfig.Builder.class); } + /** + * + * + *
            +   * Types of priority for query execution in BigQuery.
            +   * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.InvocationConfig.QueryPriority} + */ + public enum QueryPriority implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value. This value is unused.
            +     * 
            + * + * QUERY_PRIORITY_UNSPECIFIED = 0; + */ + QUERY_PRIORITY_UNSPECIFIED(0), + /** + * + * + *
            +     * Query will be executed in BigQuery with interactive priority.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * INTERACTIVE = 1; + */ + INTERACTIVE(1), + /** + * + * + *
            +     * Query will be executed in BigQuery with batch priority.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#batchqueries.
            +     * 
            + * + * BATCH = 2; + */ + BATCH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryPriority"); + } + + /** + * + * + *
            +     * Default value. This value is unused.
            +     * 
            + * + * QUERY_PRIORITY_UNSPECIFIED = 0; + */ + public static final int QUERY_PRIORITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Query will be executed in BigQuery with interactive priority.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * INTERACTIVE = 1; + */ + public static final int INTERACTIVE_VALUE = 1; + + /** + * + * + *
            +     * Query will be executed in BigQuery with batch priority.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#batchqueries.
            +     * 
            + * + * BATCH = 2; + */ + public static final int BATCH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryPriority valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryPriority forNumber(int value) { + switch (value) { + case 0: + return QUERY_PRIORITY_UNSPECIFIED; + case 1: + return INTERACTIVE; + case 2: + return BATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryPriority findValueByNumber(int number) { + return QueryPriority.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.InvocationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final QueryPriority[] VALUES = values(); + + public static QueryPriority valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryPriority(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.InvocationConfig.QueryPriority) + } + + private int bitField0_; public static final int INCLUDED_TARGETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -343,6 +522,73 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int QUERY_PRIORITY_FIELD_NUMBER = 9; + private int queryPriority_ = 0; + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + @java.lang.Override + public boolean hasQueryPriority() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + @java.lang.Override + public int getQueryPriorityValue() { + return queryPriority_; + } + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.InvocationConfig.QueryPriority getQueryPriority() { + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority result = + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority.forNumber(queryPriority_); + return result == null + ? com.google.cloud.dataform.v1.InvocationConfig.QueryPriority.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -375,6 +621,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(9, queryPriority_); + } getUnknownFields().writeTo(output); } @@ -411,6 +660,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, queryPriority_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -435,6 +687,10 @@ public boolean equals(final java.lang.Object obj) { if (getFullyRefreshIncrementalTablesEnabled() != other.getFullyRefreshIncrementalTablesEnabled()) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasQueryPriority() != other.hasQueryPriority()) return false; + if (hasQueryPriority()) { + if (queryPriority_ != other.queryPriority_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -466,6 +722,10 @@ public int hashCode() { + com.google.protobuf.Internal.hashBoolean(getFullyRefreshIncrementalTablesEnabled()); hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasQueryPriority()) { + hash = (37 * hash) + QUERY_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + queryPriority_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -620,6 +880,7 @@ public Builder clear() { transitiveDependentsIncluded_ = false; fullyRefreshIncrementalTablesEnabled_ = false; serviceAccount_ = ""; + queryPriority_ = 0; return this; } @@ -685,6 +946,12 @@ private void buildPartial0(com.google.cloud.dataform.v1.InvocationConfig result) if (((from_bitField0_ & 0x00000020) != 0)) { result.serviceAccount_ = serviceAccount_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryPriority_ = queryPriority_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -750,6 +1017,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.InvocationConfig other) { bitField0_ |= 0x00000020; onChanged(); } + if (other.hasQueryPriority()) { + setQueryPriorityValue(other.getQueryPriorityValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -820,6 +1090,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 72: + { + queryPriority_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1725,6 +2001,144 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } + private int queryPriority_ = 0; + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + @java.lang.Override + public boolean hasQueryPriority() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + @java.lang.Override + public int getQueryPriorityValue() { + return queryPriority_; + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for queryPriority to set. + * @return This builder for chaining. + */ + public Builder setQueryPriorityValue(int value) { + queryPriority_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.InvocationConfig.QueryPriority getQueryPriority() { + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority result = + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority.forNumber(queryPriority_); + return result == null + ? com.google.cloud.dataform.v1.InvocationConfig.QueryPriority.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The queryPriority to set. + * @return This builder for chaining. + */ + public Builder setQueryPriority( + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + queryPriority_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryPriority() { + bitField0_ = (bitField0_ & ~0x00000040); + queryPriority_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.InvocationConfig) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfigOrBuilder.java index 287f983680bb..bf44ae78a821 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfigOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfigOrBuilder.java @@ -215,4 +215,55 @@ public interface InvocationConfigOrBuilder * @return The bytes for serviceAccount. */ com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + boolean hasQueryPriority(); + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + int getQueryPriorityValue(); + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority getQueryPriority(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadata.java new file mode 100644 index 000000000000..5ecf92cd9069 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadata.java @@ -0,0 +1,1664 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Contains metadata about the progress of the MoveFolder Long-running
            + * operations.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveFolderMetadata} + */ +@com.google.protobuf.Generated +public final class MoveFolderMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.MoveFolderMetadata) + MoveFolderMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveFolderMetadata"); + } + + // Use MoveFolderMetadata.newBuilder() to construct. + private MoveFolderMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveFolderMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveFolderMetadata.class, + com.google.cloud.dataform.v1.MoveFolderMetadata.Builder.class); + } + + /** + * + * + *
            +   * Different states of the move.
            +   * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.MoveFolderMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The move was initialized and recorded by the server, but not yet started.
            +     * 
            + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
            +     * The move is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
            +     * The move has completed successfully.
            +     * 
            + * + * SUCCESS = 3; + */ + SUCCESS(3), + /** + * + * + *
            +     * The move has failed.
            +     * 
            + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The move was initialized and recorded by the server, but not yet started.
            +     * 
            + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
            +     * The move is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
            +     * The move has completed successfully.
            +     * 
            + * + * SUCCESS = 3; + */ + public static final int SUCCESS_VALUE = 3; + + /** + * + * + *
            +     * The move has failed.
            +     * 
            + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCESS; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.MoveFolderMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.MoveFolderMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + target_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata.State getState() { + com.google.cloud.dataform.v1.MoveFolderMetadata.State result = + com.google.cloud.dataform.v1.MoveFolderMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.MoveFolderMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
            +   * Percent complete of the move [0, 100].
            +   * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.MoveFolderMetadata.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.MoveFolderMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + 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.dataform.v1.MoveFolderMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.MoveFolderMetadata other = + (com.google.cloud.dataform.v1.MoveFolderMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata 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.dataform.v1.MoveFolderMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata 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.dataform.v1.MoveFolderMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.MoveFolderMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Contains metadata about the progress of the MoveFolder Long-running
            +   * operations.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveFolderMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.MoveFolderMetadata) + com.google.cloud.dataform.v1.MoveFolderMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveFolderMetadata.class, + com.google.cloud.dataform.v1.MoveFolderMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.MoveFolderMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.MoveFolderMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata build() { + com.google.cloud.dataform.v1.MoveFolderMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata buildPartial() { + com.google.cloud.dataform.v1.MoveFolderMetadata result = + new com.google.cloud.dataform.v1.MoveFolderMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.MoveFolderMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.MoveFolderMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.MoveFolderMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.MoveFolderMetadata other) { + if (other == com.google.cloud.dataform.v1.MoveFolderMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata.State getState() { + com.google.cloud.dataform.v1.MoveFolderMetadata.State result = + com.google.cloud.dataform.v1.MoveFolderMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.MoveFolderMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1.MoveFolderMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.MoveFolderMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.MoveFolderMetadata) + private static final com.google.cloud.dataform.v1.MoveFolderMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.MoveFolderMetadata(); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveFolderMetadata 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.dataform.v1.MoveFolderMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadataOrBuilder.java new file mode 100644 index 000000000000..654d78447cbf --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadataOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface MoveFolderMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.MoveFolderMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + com.google.cloud.dataform.v1.MoveFolderMetadata.State getState(); + + /** + * + * + *
            +   * Percent complete of the move [0, 100].
            +   * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequest.java new file mode 100644 index 000000000000..1af30b7ddcff --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequest.java @@ -0,0 +1,876 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `MoveFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveFolderRequest} + */ +@com.google.protobuf.Generated +public final class MoveFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.MoveFolderRequest) + MoveFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveFolderRequest"); + } + + // Use MoveFolderRequest.newBuilder() to construct. + private MoveFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveFolderRequest() { + name_ = ""; + destinationContainingFolder_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveFolderRequest.class, + com.google.cloud.dataform.v1.MoveFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The full resource name of the Folder to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The full resource name of the Folder to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + @java.lang.Override + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + @java.lang.Override + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + 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(); + destinationContainingFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationContainingFolder_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationContainingFolder_); + } + 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.dataform.v1.MoveFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.MoveFolderRequest other = + (com.google.cloud.dataform.v1.MoveFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDestinationContainingFolder() != other.hasDestinationContainingFolder()) return false; + if (hasDestinationContainingFolder()) { + if (!getDestinationContainingFolder().equals(other.getDestinationContainingFolder())) + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDestinationContainingFolder()) { + hash = (37 * hash) + DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getDestinationContainingFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest 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.dataform.v1.MoveFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest 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.dataform.v1.MoveFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.MoveFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `MoveFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.MoveFolderRequest) + com.google.cloud.dataform.v1.MoveFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveFolderRequest.class, + com.google.cloud.dataform.v1.MoveFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.MoveFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationContainingFolder_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.MoveFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderRequest build() { + com.google.cloud.dataform.v1.MoveFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderRequest buildPartial() { + com.google.cloud.dataform.v1.MoveFolderRequest result = + new com.google.cloud.dataform.v1.MoveFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.MoveFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationContainingFolder_ = destinationContainingFolder_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.MoveFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.MoveFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.MoveFolderRequest other) { + if (other == com.google.cloud.dataform.v1.MoveFolderRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDestinationContainingFolder()) { + destinationContainingFolder_ = other.destinationContainingFolder_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationContainingFolder_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationContainingFolder() { + destinationContainingFolder_ = getDefaultInstance().getDestinationContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.MoveFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.MoveFolderRequest) + private static final com.google.cloud.dataform.v1.MoveFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.MoveFolderRequest(); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveFolderRequest 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.dataform.v1.MoveFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequestOrBuilder.java new file mode 100644 index 000000000000..8637b747ee8e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface MoveFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.MoveFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The full resource name of the Folder to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The full resource name of the Folder to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + boolean hasDestinationContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + java.lang.String getDestinationContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + com.google.protobuf.ByteString getDestinationContainingFolderBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadata.java new file mode 100644 index 000000000000..48c41e5dda26 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadata.java @@ -0,0 +1,1668 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Contains metadata about the progress of the MoveRepository Long-running
            + * operations.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveRepositoryMetadata} + */ +@com.google.protobuf.Generated +public final class MoveRepositoryMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.MoveRepositoryMetadata) + MoveRepositoryMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveRepositoryMetadata"); + } + + // Use MoveRepositoryMetadata.newBuilder() to construct. + private MoveRepositoryMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveRepositoryMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveRepositoryMetadata.class, + com.google.cloud.dataform.v1.MoveRepositoryMetadata.Builder.class); + } + + /** + * + * + *
            +   * Different states of the move.
            +   * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.MoveRepositoryMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The move was initialized and recorded by the server, but not yet started.
            +     * 
            + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
            +     * The move is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
            +     * The move has completed successfully.
            +     * 
            + * + * SUCCESS = 3; + */ + SUCCESS(3), + /** + * + * + *
            +     * The move has failed.
            +     * 
            + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The move was initialized and recorded by the server, but not yet started.
            +     * 
            + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
            +     * The move is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
            +     * The move has completed successfully.
            +     * 
            + * + * SUCCESS = 3; + */ + public static final int SUCCESS_VALUE = 3; + + /** + * + * + *
            +     * The move has failed.
            +     * 
            + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCESS; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.MoveRepositoryMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.MoveRepositoryMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + target_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata.State getState() { + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State result = + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
            +   * Percent complete of the move [0, 100].
            +   * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + 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.dataform.v1.MoveRepositoryMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.MoveRepositoryMetadata other = + (com.google.cloud.dataform.v1.MoveRepositoryMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata 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.dataform.v1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata 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.dataform.v1.MoveRepositoryMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.MoveRepositoryMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Contains metadata about the progress of the MoveRepository Long-running
            +   * operations.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveRepositoryMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.MoveRepositoryMetadata) + com.google.cloud.dataform.v1.MoveRepositoryMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveRepositoryMetadata.class, + com.google.cloud.dataform.v1.MoveRepositoryMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.MoveRepositoryMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.MoveRepositoryMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata build() { + com.google.cloud.dataform.v1.MoveRepositoryMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata buildPartial() { + com.google.cloud.dataform.v1.MoveRepositoryMetadata result = + new com.google.cloud.dataform.v1.MoveRepositoryMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.MoveRepositoryMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.MoveRepositoryMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.MoveRepositoryMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.MoveRepositoryMetadata other) { + if (other == com.google.cloud.dataform.v1.MoveRepositoryMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata.State getState() { + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State result = + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1.MoveRepositoryMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.MoveRepositoryMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.MoveRepositoryMetadata) + private static final com.google.cloud.dataform.v1.MoveRepositoryMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.MoveRepositoryMetadata(); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveRepositoryMetadata 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.dataform.v1.MoveRepositoryMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadataOrBuilder.java new file mode 100644 index 000000000000..0cb37cb5dded --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadataOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface MoveRepositoryMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.MoveRepositoryMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State getState(); + + /** + * + * + *
            +   * Percent complete of the move [0, 100].
            +   * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequest.java new file mode 100644 index 000000000000..eac8e608582b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequest.java @@ -0,0 +1,886 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `MoveRepository` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveRepositoryRequest} + */ +@com.google.protobuf.Generated +public final class MoveRepositoryRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.MoveRepositoryRequest) + MoveRepositoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveRepositoryRequest"); + } + + // Use MoveRepositoryRequest.newBuilder() to construct. + private MoveRepositoryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveRepositoryRequest() { + name_ = ""; + destinationContainingFolder_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveRepositoryRequest.class, + com.google.cloud.dataform.v1.MoveRepositoryRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The full resource name of the repository to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The full resource name of the repository to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + @java.lang.Override + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + @java.lang.Override + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + 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(); + destinationContainingFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationContainingFolder_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationContainingFolder_); + } + 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.dataform.v1.MoveRepositoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.MoveRepositoryRequest other = + (com.google.cloud.dataform.v1.MoveRepositoryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDestinationContainingFolder() != other.hasDestinationContainingFolder()) return false; + if (hasDestinationContainingFolder()) { + if (!getDestinationContainingFolder().equals(other.getDestinationContainingFolder())) + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDestinationContainingFolder()) { + hash = (37 * hash) + DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getDestinationContainingFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest 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.dataform.v1.MoveRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest 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.dataform.v1.MoveRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.MoveRepositoryRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `MoveRepository` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveRepositoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.MoveRepositoryRequest) + com.google.cloud.dataform.v1.MoveRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveRepositoryRequest.class, + com.google.cloud.dataform.v1.MoveRepositoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.MoveRepositoryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationContainingFolder_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.MoveRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryRequest build() { + com.google.cloud.dataform.v1.MoveRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryRequest buildPartial() { + com.google.cloud.dataform.v1.MoveRepositoryRequest result = + new com.google.cloud.dataform.v1.MoveRepositoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.MoveRepositoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationContainingFolder_ = destinationContainingFolder_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.MoveRepositoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1.MoveRepositoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.MoveRepositoryRequest other) { + if (other == com.google.cloud.dataform.v1.MoveRepositoryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDestinationContainingFolder()) { + destinationContainingFolder_ = other.destinationContainingFolder_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationContainingFolder_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationContainingFolder() { + destinationContainingFolder_ = getDefaultInstance().getDestinationContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.MoveRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.MoveRepositoryRequest) + private static final com.google.cloud.dataform.v1.MoveRepositoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.MoveRepositoryRequest(); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveRepositoryRequest 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.dataform.v1.MoveRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequestOrBuilder.java new file mode 100644 index 000000000000..03fc916e3752 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface MoveRepositoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.MoveRepositoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The full resource name of the repository to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The full resource name of the repository to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + boolean hasDestinationContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + java.lang.String getDestinationContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + com.google.protobuf.ByteString getDestinationContainingFolderBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadata.java new file mode 100644 index 000000000000..f60fbf64a553 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadata.java @@ -0,0 +1,507 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Metadata used to identify if a resource is user scoped.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.PrivateResourceMetadata} + */ +@com.google.protobuf.Generated +public final class PrivateResourceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.PrivateResourceMetadata) + PrivateResourceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PrivateResourceMetadata"); + } + + // Use PrivateResourceMetadata.newBuilder() to construct. + private PrivateResourceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PrivateResourceMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.PrivateResourceMetadata.class, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder.class); + } + + public static final int USER_SCOPED_FIELD_NUMBER = 1; + private boolean userScoped_ = false; + + /** + * + * + *
            +   * Output only. If true, this resource is user-scoped, meaning it is either a
            +   * workspace or sourced from a workspace.
            +   * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + @java.lang.Override + public boolean getUserScoped() { + return userScoped_; + } + + 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 (userScoped_ != false) { + output.writeBool(1, userScoped_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userScoped_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, userScoped_); + } + 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.dataform.v1.PrivateResourceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.PrivateResourceMetadata other = + (com.google.cloud.dataform.v1.PrivateResourceMetadata) obj; + + if (getUserScoped() != other.getUserScoped()) 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) + USER_SCOPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUserScoped()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata 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.dataform.v1.PrivateResourceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata 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.dataform.v1.PrivateResourceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.PrivateResourceMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata used to identify if a resource is user scoped.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.PrivateResourceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.PrivateResourceMetadata) + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.PrivateResourceMetadata.class, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.PrivateResourceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userScoped_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata build() { + com.google.cloud.dataform.v1.PrivateResourceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata buildPartial() { + com.google.cloud.dataform.v1.PrivateResourceMetadata result = + new com.google.cloud.dataform.v1.PrivateResourceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.PrivateResourceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userScoped_ = userScoped_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.PrivateResourceMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.PrivateResourceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.PrivateResourceMetadata other) { + if (other == com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance()) + return this; + if (other.getUserScoped() != false) { + setUserScoped(other.getUserScoped()); + } + 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 8: + { + userScoped_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 boolean userScoped_; + + /** + * + * + *
            +     * Output only. If true, this resource is user-scoped, meaning it is either a
            +     * workspace or sourced from a workspace.
            +     * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + @java.lang.Override + public boolean getUserScoped() { + return userScoped_; + } + + /** + * + * + *
            +     * Output only. If true, this resource is user-scoped, meaning it is either a
            +     * workspace or sourced from a workspace.
            +     * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The userScoped to set. + * @return This builder for chaining. + */ + public Builder setUserScoped(boolean value) { + + userScoped_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. If true, this resource is user-scoped, meaning it is either a
            +     * workspace or sourced from a workspace.
            +     * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUserScoped() { + bitField0_ = (bitField0_ & ~0x00000001); + userScoped_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.PrivateResourceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.PrivateResourceMetadata) + private static final com.google.cloud.dataform.v1.PrivateResourceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.PrivateResourceMetadata(); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateResourceMetadata 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.dataform.v1.PrivateResourceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadataOrBuilder.java new file mode 100644 index 000000000000..a357c5472653 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadataOrBuilder.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface PrivateResourceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.PrivateResourceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. If true, this resource is user-scoped, meaning it is either a
            +   * workspace or sourced from a workspace.
            +   * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + boolean getUserScoped(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequest.java index 69d6dfc060bb..f37528b2d107 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequest.java @@ -55,6 +55,7 @@ private QueryDirectoryContentsRequest() { workspace_ = ""; path_ = ""; pageToken_ = ""; + view_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -268,6 +269,55 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int VIEW_FIELD_NUMBER = 5; + private int view_ = 0; + + /** + * + * + *
            +   * Optional. Specifies the metadata to return for each directory entry.
            +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +   * CMEK-protected workspaces.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
            +   * Optional. Specifies the metadata to return for each directory entry.
            +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +   * CMEK-protected workspaces.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.DirectoryContentsView getView() { + com.google.cloud.dataform.v1.DirectoryContentsView result = + com.google.cloud.dataform.v1.DirectoryContentsView.forNumber(view_); + return result == null + ? com.google.cloud.dataform.v1.DirectoryContentsView.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -294,6 +344,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); } + if (view_ + != com.google.cloud.dataform.v1.DirectoryContentsView.DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, view_); + } getUnknownFields().writeTo(output); } @@ -315,6 +370,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); } + if (view_ + != com.google.cloud.dataform.v1.DirectoryContentsView.DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -335,6 +395,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPath().equals(other.getPath())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,6 +415,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -499,6 +562,7 @@ public Builder clear() { path_ = ""; pageSize_ = 0; pageToken_ = ""; + view_ = 0; return this; } @@ -547,6 +611,9 @@ private void buildPartial0(com.google.cloud.dataform.v1.QueryDirectoryContentsRe if (((from_bitField0_ & 0x00000008) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.view_ = view_; + } } @java.lang.Override @@ -580,6 +647,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.QueryDirectoryContentsRequ bitField0_ |= 0x00000008; onChanged(); } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -630,6 +700,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1084,6 +1160,128 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private int view_ = 0; + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.DirectoryContentsView getView() { + com.google.cloud.dataform.v1.DirectoryContentsView result = + com.google.cloud.dataform.v1.DirectoryContentsView.forNumber(view_); + return result == null + ? com.google.cloud.dataform.v1.DirectoryContentsView.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.dataform.v1.DirectoryContentsView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000010); + view_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryDirectoryContentsRequest) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequestOrBuilder.java index 83b3be691c36..18f9418410ac 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequestOrBuilder.java @@ -134,4 +134,40 @@ public interface QueryDirectoryContentsRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Specifies the metadata to return for each directory entry.
            +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +   * CMEK-protected workspaces.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
            +   * Optional. Specifies the metadata to return for each directory entry.
            +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +   * CMEK-protected workspaces.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.dataform.v1.DirectoryContentsView getView(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequest.java new file mode 100644 index 000000000000..c2acf317db9a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequest.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryFolderContents` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryFolderContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryFolderContentsRequest) + QueryFolderContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryFolderContentsRequest"); + } + + // Use QueryFolderContentsRequest.newBuilder() to construct. + private QueryFolderContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryFolderContentsRequest() { + folder_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsRequest.class, + com.google.cloud.dataform.v1.QueryFolderContentsRequest.Builder.class); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object folder_ = ""; + + /** + * + * + *
            +   * Required. Name of the folder whose contents to list.
            +   * Format: projects/*/locations/*/folders/*
            +   * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + @java.lang.Override + public java.lang.String getFolder() { + java.lang.Object ref = folder_; + 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(); + folder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Name of the folder whose contents to list.
            +   * Format: projects/*/locations/*/folders/*
            +   * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFolderBytes() { + java.lang.Object ref = folder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + folder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryFolderContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryFolderContents`, with the exception of `page_size`, must match the
            +   * call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryFolderContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryFolderContents`, with the exception of `page_size`, must match the
            +   * call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), create_time,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), create_time,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, folder_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, folder_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + 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.dataform.v1.QueryFolderContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryFolderContentsRequest other = + (com.google.cloud.dataform.v1.QueryFolderContentsRequest) obj; + + if (!getFolder().equals(other.getFolder())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest 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.dataform.v1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest 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.dataform.v1.QueryFolderContentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryFolderContentsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryFolderContents` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryFolderContentsRequest) + com.google.cloud.dataform.v1.QueryFolderContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsRequest.class, + com.google.cloud.dataform.v1.QueryFolderContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryFolderContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + folder_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryFolderContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsRequest build() { + com.google.cloud.dataform.v1.QueryFolderContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsRequest buildPartial() { + com.google.cloud.dataform.v1.QueryFolderContentsRequest result = + new com.google.cloud.dataform.v1.QueryFolderContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryFolderContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.folder_ = folder_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryFolderContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1.QueryFolderContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryFolderContentsRequest other) { + if (other == com.google.cloud.dataform.v1.QueryFolderContentsRequest.getDefaultInstance()) + return this; + if (!other.getFolder().isEmpty()) { + folder_ = other.folder_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + folder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 folder_ = ""; + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + public java.lang.String getFolder() { + java.lang.Object ref = folder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + folder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + public com.google.protobuf.ByteString getFolderBytes() { + java.lang.Object ref = folder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + folder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The folder to set. + * @return This builder for chaining. + */ + public Builder setFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFolder() { + folder_ = getDefaultInstance().getFolder(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for folder to set. + * @return This builder for chaining. + */ + public Builder setFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryFolderContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryFolderContentsRequest) + private static final com.google.cloud.dataform.v1.QueryFolderContentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryFolderContentsRequest(); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryFolderContentsRequest 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.dataform.v1.QueryFolderContentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequestOrBuilder.java new file mode 100644 index 000000000000..f9b8e612791c --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryFolderContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryFolderContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Name of the folder whose contents to list.
            +   * Format: projects/*/locations/*/folders/*
            +   * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + java.lang.String getFolder(); + + /** + * + * + *
            +   * Required. Name of the folder whose contents to list.
            +   * Format: projects/*/locations/*/folders/*
            +   * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + com.google.protobuf.ByteString getFolderBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryFolderContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryFolderContents`, with the exception of `page_size`, must match the
            +   * call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryFolderContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryFolderContents`, with the exception of `page_size`, must match the
            +   * call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), create_time,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), create_time,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponse.java new file mode 100644 index 000000000000..f8697145798e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponse.java @@ -0,0 +1,2402 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryFolderContents` response message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryFolderContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryFolderContentsResponse) + QueryFolderContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryFolderContentsResponse"); + } + + // Use QueryFolderContentsResponse.newBuilder() to construct. + private QueryFolderContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryFolderContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.class, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.Builder.class); + } + + public interface FolderContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1.Repository getRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.EntryCase + getEntryCase(); + } + + /** + * + * + *
            +   * Represents a single content entry.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry} + */ + public static final class FolderContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + FolderContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FolderContentsEntry"); + } + + // Use FolderContentsEntry.newBuilder() to construct. + private FolderContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FolderContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.class, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + .class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(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 EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.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 (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1.Repository) entry_); + } + 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.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry other = + (com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) 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 (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + 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.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + 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.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single content entry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.class, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry build() { + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + buildPartial() { + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry result = + new com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry other) { + if (other + == com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_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( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 2; + 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 entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Folder.newBuilder( + (com.google.cloud.dataform.v1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + (com.google.cloud.dataform.v1.Folder) entry_, getParentForChildren(), isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Repository.newBuilder( + (com.google.cloud.dataform.v1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + private static final com.google.cloud.dataform.v1.QueryFolderContentsResponse + .FolderContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry(); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FolderContentsEntry 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.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + entries_; + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry getEntries( + int index) { + return entries_.get(index); + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.dataform.v1.QueryFolderContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryFolderContentsResponse other = + (com.google.cloud.dataform.v1.QueryFolderContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse 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.dataform.v1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse 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.dataform.v1.QueryFolderContentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryFolderContentsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryFolderContents` response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryFolderContentsResponse) + com.google.cloud.dataform.v1.QueryFolderContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.class, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryFolderContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryFolderContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse build() { + com.google.cloud.dataform.v1.QueryFolderContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse buildPartial() { + com.google.cloud.dataform.v1.QueryFolderContentsResponse result = + new com.google.cloud.dataform.v1.QueryFolderContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1.QueryFolderContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryFolderContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryFolderContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1.QueryFolderContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryFolderContentsResponse other) { + if (other == com.google.cloud.dataform.v1.QueryFolderContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry m = + input.readMessage( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry>( + entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry getEntries( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryFolderContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryFolderContentsResponse) + private static final com.google.cloud.dataform.v1.QueryFolderContentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryFolderContentsResponse(); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryFolderContentsResponse 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.dataform.v1.QueryFolderContentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponseOrBuilder.java new file mode 100644 index 000000000000..61351425f901 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponseOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryFolderContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryFolderContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry getEntries( + int index); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequest.java new file mode 100644 index 000000000000..7bb022734ff6 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequest.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryTeamFolderContents` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryTeamFolderContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryTeamFolderContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + QueryTeamFolderContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryTeamFolderContentsRequest"); + } + + // Use QueryTeamFolderContentsRequest.newBuilder() to construct. + private QueryTeamFolderContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryTeamFolderContentsRequest() { + teamFolder_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.Builder.class); + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolder_ = ""; + + /** + * + * + *
            +   * Required. Name of the team_folder whose contents to list.
            +   * Format: `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + @java.lang.Override + public java.lang.String getTeamFolder() { + java.lang.Object ref = teamFolder_; + 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(); + teamFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Name of the team_folder whose contents to list.
            +   * Format: `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderBytes() { + java.lang.Object ref = teamFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryTeamFolderContents`
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryTeamFolderContents`
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: `display_name` (default), `create_time`,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: `display_name` (default), `create_time`,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamFolder_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamFolder_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + 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.dataform.v1.QueryTeamFolderContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest other = + (com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest) obj; + + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) 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) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest 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.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest 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.dataform.v1.QueryTeamFolderContentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryTeamFolderContentsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryTeamFolderContents` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryTeamFolderContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamFolder_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest build() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest buildPartial() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest result = + new com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamFolder_ = teamFolder_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest other) { + if (other == com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.getDefaultInstance()) + return this; + if (!other.getTeamFolder().isEmpty()) { + teamFolder_ = other.teamFolder_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + teamFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 teamFolder_ = ""; + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + public java.lang.String getTeamFolder() { + java.lang.Object ref = teamFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + public com.google.protobuf.ByteString getTeamFolderBytes() { + java.lang.Object ref = teamFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The teamFolder to set. + * @return This builder for chaining. + */ + public Builder setTeamFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTeamFolder() { + teamFolder_ = getDefaultInstance().getTeamFolder(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for teamFolder to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + private static final com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest(); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTeamFolderContentsRequest 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.dataform.v1.QueryTeamFolderContentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequestOrBuilder.java new file mode 100644 index 000000000000..0e8ac32003da --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryTeamFolderContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Name of the team_folder whose contents to list.
            +   * Format: `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + java.lang.String getTeamFolder(); + + /** + * + * + *
            +   * Required. Name of the team_folder whose contents to list.
            +   * Format: `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + com.google.protobuf.ByteString getTeamFolderBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryTeamFolderContents`
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryTeamFolderContents`
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: `display_name` (default), `create_time`,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: `display_name` (default), `create_time`,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponse.java new file mode 100644 index 000000000000..059b8e8c60dd --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponse.java @@ -0,0 +1,2450 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryTeamFolderContents` response message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryTeamFolderContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryTeamFolderContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + QueryTeamFolderContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryTeamFolderContentsResponse"); + } + + // Use QueryTeamFolderContentsResponse.newBuilder() to construct. + private QueryTeamFolderContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryTeamFolderContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.Builder.class); + } + + public interface TeamFolderContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1.Repository getRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.EntryCase + getEntryCase(); + } + + /** + * + * + *
            +   * Represents a single content entry.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry} + */ + public static final class TeamFolderContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + TeamFolderContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolderContentsEntry"); + } + + // Use TeamFolderContentsEntry.newBuilder() to construct. + private TeamFolderContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolderContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder.class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(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 EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.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 (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1.Repository) entry_); + } + 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.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry other = + (com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) 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 (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + 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.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + 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.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single content entry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + build() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + buildPartial() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result = + new com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + other) { + if (other + == com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_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( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 2; + 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 entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Folder.newBuilder( + (com.google.cloud.dataform.v1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + (com.google.cloud.dataform.v1.Folder) entry_, getParentForChildren(), isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Repository.newBuilder( + (com.google.cloud.dataform.v1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + private static final com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry(); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolderContentsEntry 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.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + entries_; + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getEntries(int index) { + return entries_.get(index); + } + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.dataform.v1.QueryTeamFolderContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse other = + (com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse 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.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse 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.dataform.v1.QueryTeamFolderContentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryTeamFolderContentsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryTeamFolderContents` response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryTeamFolderContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse build() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse buildPartial() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse result = + new com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse other) { + if (other + == com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + m = + input.readMessage( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry>(entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getEntries(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + private static final com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse(); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTeamFolderContentsResponse 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.dataform.v1.QueryTeamFolderContentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponseOrBuilder.java new file mode 100644 index 000000000000..fe0c619ec586 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponseOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryTeamFolderContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + getEntriesList(); + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry getEntries( + int index); + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequest.java new file mode 100644 index 000000000000..5651bb8169f3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequest.java @@ -0,0 +1,1388 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryUserRootContents` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryUserRootContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryUserRootContentsRequest) + QueryUserRootContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryUserRootContentsRequest"); + } + + // Use QueryUserRootContentsRequest.newBuilder() to construct. + private QueryUserRootContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryUserRootContentsRequest() { + location_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest.class, + com.google.cloud.dataform.v1.QueryUserRootContentsRequest.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
            +   * Required. Location of the user root folder whose contents to list.
            +   * Format: projects/*/locations/*
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Location of the user root folder whose contents to list.
            +   * Format: projects/*/locations/*
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryUserRootContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryUserRootContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), created_at,
            +   * last_modified_at. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), created_at,
            +   * last_modified_at. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + 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.dataform.v1.QueryUserRootContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryUserRootContentsRequest other = + (com.google.cloud.dataform.v1.QueryUserRootContentsRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest 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.dataform.v1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest 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.dataform.v1.QueryUserRootContentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryUserRootContentsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryUserRootContents` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryUserRootContentsRequest) + com.google.cloud.dataform.v1.QueryUserRootContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest.class, + com.google.cloud.dataform.v1.QueryUserRootContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryUserRootContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryUserRootContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsRequest build() { + com.google.cloud.dataform.v1.QueryUserRootContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsRequest buildPartial() { + com.google.cloud.dataform.v1.QueryUserRootContentsRequest result = + new com.google.cloud.dataform.v1.QueryUserRootContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryUserRootContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryUserRootContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1.QueryUserRootContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryUserRootContentsRequest other) { + if (other == com.google.cloud.dataform.v1.QueryUserRootContentsRequest.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 location_ = ""; + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryUserRootContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryUserRootContentsRequest) + private static final com.google.cloud.dataform.v1.QueryUserRootContentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryUserRootContentsRequest(); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryUserRootContentsRequest 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.dataform.v1.QueryUserRootContentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequestOrBuilder.java new file mode 100644 index 000000000000..9c7a25d020cd --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryUserRootContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryUserRootContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Location of the user root folder whose contents to list.
            +   * Format: projects/*/locations/*
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
            +   * Required. Location of the user root folder whose contents to list.
            +   * Format: projects/*/locations/*
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryUserRootContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryUserRootContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), created_at,
            +   * last_modified_at. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), created_at,
            +   * last_modified_at. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponse.java new file mode 100644 index 000000000000..ddee2d2aff87 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponse.java @@ -0,0 +1,2402 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryUserRootContents` response message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryUserRootContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryUserRootContentsResponse) + QueryUserRootContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryUserRootContentsResponse"); + } + + // Use QueryUserRootContentsResponse.newBuilder() to construct. + private QueryUserRootContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryUserRootContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.class, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.Builder.class); + } + + public interface RootContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1.Repository getRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.EntryCase + getEntryCase(); + } + + /** + * + * + *
            +   * Represents a single content entry.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry} + */ + public static final class RootContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + RootContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RootContentsEntry"); + } + + // Use RootContentsEntry.newBuilder() to construct. + private RootContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RootContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.class, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + .class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(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 EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.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 (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1.Repository) entry_); + } + 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.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry other = + (com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) 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 (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + 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.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + 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.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single content entry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.class, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry build() { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + buildPartial() { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry result = + new com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry other) { + if (other + == com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_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( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 2; + 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 entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Folder.newBuilder( + (com.google.cloud.dataform.v1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + (com.google.cloud.dataform.v1.Folder) entry_, getParentForChildren(), isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Repository.newBuilder( + (com.google.cloud.dataform.v1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + private static final com.google.cloud.dataform.v1.QueryUserRootContentsResponse + .RootContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry(); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RootContentsEntry 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.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + entries_; + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry getEntries( + int index) { + return entries_.get(index); + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.dataform.v1.QueryUserRootContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryUserRootContentsResponse other = + (com.google.cloud.dataform.v1.QueryUserRootContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse 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.dataform.v1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse 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.dataform.v1.QueryUserRootContentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.QueryUserRootContentsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryUserRootContents` response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryUserRootContentsResponse) + com.google.cloud.dataform.v1.QueryUserRootContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.class, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryUserRootContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryUserRootContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse build() { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse buildPartial() { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse result = + new com.google.cloud.dataform.v1.QueryUserRootContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryUserRootContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryUserRootContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1.QueryUserRootContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryUserRootContentsResponse other) { + if (other == com.google.cloud.dataform.v1.QueryUserRootContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry m = + input.readMessage( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry>( + entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry getEntries( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryUserRootContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryUserRootContentsResponse) + private static final com.google.cloud.dataform.v1.QueryUserRootContentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryUserRootContentsResponse(); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryUserRootContentsResponse 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.dataform.v1.QueryUserRootContentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponseOrBuilder.java new file mode 100644 index 000000000000..484de3e4dbee --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponseOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryUserRootContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryUserRootContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry getEntries( + int index); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Repository.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Repository.java index 585cd21b645c..e7cebce22601 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Repository.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Repository.java @@ -53,6 +53,8 @@ private Repository(com.google.protobuf.GeneratedMessage.Builder builder) { private Repository() { name_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; displayName_ = ""; npmrcEnvironmentVariablesSecretVersion_ = ""; serviceAccount_ = ""; @@ -236,7 +238,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=630 + * See google/cloud/dataform/v1/dataform.proto;l=881 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Deprecated @@ -255,7 +257,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=630 + * See google/cloud/dataform/v1/dataform.proto;l=881 * @return The tokenStatus. */ @java.lang.Deprecated @@ -1684,7 +1686,7 @@ public boolean hasSshAuthenticationConfig() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=630 + * See google/cloud/dataform/v1/dataform.proto;l=881 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -1706,7 +1708,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=630 + * See google/cloud/dataform/v1/dataform.proto;l=881 * @return The tokenStatus. */ @java.lang.Override @@ -2763,7 +2765,7 @@ public Builder clearSshAuthenticationConfig() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -2785,7 +2787,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ @@ -2810,7 +2812,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @return The tokenStatus. */ @java.lang.Override @@ -2838,7 +2840,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @param value The tokenStatus to set. * @return This builder for chaining. */ @@ -2867,7 +2869,7 @@ public Builder setTokenStatus( * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4047,6 +4049,168 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int CONTAINING_FOLDER_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object containingFolder_ = ""; + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the containingFolder field is set. + */ + @java.lang.Override + public boolean hasContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + @java.lang.Override + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + 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(); + containingFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_NAME_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + @java.lang.Override + public boolean hasTeamFolderName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + @java.lang.Override + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + 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(); + teamFolderName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; @@ -4064,7 +4228,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -4170,7 +4334,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { */ @java.lang.Override public boolean hasGitRemoteSettings() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -4297,7 +4461,7 @@ public com.google.protobuf.ByteString getNpmrcEnvironmentVariablesSecretVersionB */ @java.lang.Override public boolean hasWorkspaceCompilationOverrides() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -4612,7 +4776,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { */ @java.lang.Override public boolean hasDataEncryptionState() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -4677,7 +4841,7 @@ public com.google.cloud.dataform.v1.DataEncryptionState getDataEncryptionState() */ @java.lang.Override public boolean hasInternalMetadata() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -4751,7 +4915,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(2, getGitRemoteSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty( @@ -4759,7 +4923,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString( output, 3, npmrcEnvironmentVariablesSecretVersion_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(4, getWorkspaceCompilationOverrides()); } com.google.protobuf.GeneratedMessage.serializeStringMapTo( @@ -4776,15 +4940,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, kmsKeyName_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(12, getDataEncryptionState()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getCreateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 15, internalMetadata_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 16, containingFolder_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, teamFolderName_); + } getUnknownFields().writeTo(output); } @@ -4797,7 +4967,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGitRemoteSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty( @@ -4806,7 +4976,7 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessage.computeStringSize( 3, npmrcEnvironmentVariablesSecretVersion_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, getWorkspaceCompilationOverrides()); @@ -4833,16 +5003,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, kmsKeyName_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDataEncryptionState()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(15, internalMetadata_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(16, containingFolder_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, teamFolderName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4859,6 +5035,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataform.v1.Repository other = (com.google.cloud.dataform.v1.Repository) obj; if (!getName().equals(other.getName())) return false; + if (hasContainingFolder() != other.hasContainingFolder()) return false; + if (hasContainingFolder()) { + if (!getContainingFolder().equals(other.getContainingFolder())) return false; + } + if (hasTeamFolderName() != other.hasTeamFolderName()) return false; + if (hasTeamFolderName()) { + if (!getTeamFolderName().equals(other.getTeamFolderName())) return false; + } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -4901,6 +5085,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasContainingFolder()) { + hash = (37 * hash) + CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getContainingFolder().hashCode(); + } + if (hasTeamFolderName()) { + hash = (37 * hash) + TEAM_FOLDER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolderName().hashCode(); + } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -5110,6 +5302,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -5178,52 +5372,60 @@ private void buildPartial0(com.google.cloud.dataform.v1.Repository result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.containingFolder_ = containingFolder_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; + result.teamFolderName_ = teamFolderName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.gitRemoteSettings_ = gitRemoteSettingsBuilder_ == null ? gitRemoteSettings_ : gitRemoteSettingsBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.npmrcEnvironmentVariablesSecretVersion_ = npmrcEnvironmentVariablesSecretVersion_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.workspaceCompilationOverrides_ = workspaceCompilationOverridesBuilder_ == null ? workspaceCompilationOverrides_ : workspaceCompilationOverridesBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.setAuthenticatedUserAdmin_ = setAuthenticatedUserAdmin_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.serviceAccount_ = serviceAccount_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.kmsKeyName_ = kmsKeyName_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.dataEncryptionState_ = dataEncryptionStateBuilder_ == null ? dataEncryptionState_ : dataEncryptionStateBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.internalMetadata_ = internalMetadata_; - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @@ -5245,12 +5447,22 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Repository other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasContainingFolder()) { + containingFolder_ = other.containingFolder_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTeamFolderName()) { + teamFolderName_ = other.teamFolderName_; + bitField0_ |= 0x00000004; + onChanged(); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasGitRemoteSettings()) { @@ -5258,25 +5470,25 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Repository other) { } if (!other.getNpmrcEnvironmentVariablesSecretVersion().isEmpty()) { npmrcEnvironmentVariablesSecretVersion_ = other.npmrcEnvironmentVariablesSecretVersion_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasWorkspaceCompilationOverrides()) { mergeWorkspaceCompilationOverrides(other.getWorkspaceCompilationOverrides()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; if (other.getSetAuthenticatedUserAdmin() != false) { setSetAuthenticatedUserAdmin(other.getSetAuthenticatedUserAdmin()); } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasDataEncryptionState()) { @@ -5284,7 +5496,7 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Repository other) { } if (other.hasInternalMetadata()) { internalMetadata_ = other.internalMetadata_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -5323,13 +5535,13 @@ public Builder mergeFrom( { input.readMessage( internalGetGitRemoteSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 26: { npmrcEnvironmentVariablesSecretVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -5337,7 +5549,7 @@ public Builder mergeFrom( input.readMessage( internalGetWorkspaceCompilationOverridesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 34 case 42: @@ -5349,53 +5561,65 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 42 case 66: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 66 case 72: { setAuthenticatedUserAdmin_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 72 case 82: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 82 case 90: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 90 case 98: { input.readMessage( internalGetDataEncryptionStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 98 case 106: { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; break; } // case 106 case 122: { internalMetadata_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 122 + case 130: + { + containingFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 130 + case 146: + { + teamFolderName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5526,6 +5750,312 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object containingFolder_ = ""; + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containingFolder field is set. + */ + public boolean hasContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containingFolder. + */ + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for containingFolder. + */ + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + containingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearContainingFolder() { + containingFolder_ = getDefaultInstance().getContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + public boolean hasTeamFolderName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolderName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTeamFolderName() { + teamFolderName_ = getDefaultInstance().getTeamFolderName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolderName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, @@ -5547,7 +6077,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -5593,7 +6123,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5615,7 +6145,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5633,7 +6163,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000008) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -5644,7 +6174,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -5662,7 +6192,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -5684,7 +6214,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -5803,7 +6333,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5821,7 +6351,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -5844,7 +6374,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5870,7 +6400,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the gitRemoteSettings field is set. */ public boolean hasGitRemoteSettings() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -5917,7 +6447,7 @@ public Builder setGitRemoteSettings( } else { gitRemoteSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5940,7 +6470,7 @@ public Builder setGitRemoteSettings( } else { gitRemoteSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5959,7 +6489,7 @@ public Builder setGitRemoteSettings( public Builder mergeGitRemoteSettings( com.google.cloud.dataform.v1.Repository.GitRemoteSettings value) { if (gitRemoteSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000020) != 0) && gitRemoteSettings_ != null && gitRemoteSettings_ != com.google.cloud.dataform.v1.Repository.GitRemoteSettings.getDefaultInstance()) { @@ -5971,7 +6501,7 @@ public Builder mergeGitRemoteSettings( gitRemoteSettingsBuilder_.mergeFrom(value); } if (gitRemoteSettings_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -5989,7 +6519,7 @@ public Builder mergeGitRemoteSettings( * */ public Builder clearGitRemoteSettings() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); gitRemoteSettings_ = null; if (gitRemoteSettingsBuilder_ != null) { gitRemoteSettingsBuilder_.dispose(); @@ -6012,7 +6542,7 @@ public Builder clearGitRemoteSettings() { */ public com.google.cloud.dataform.v1.Repository.GitRemoteSettings.Builder getGitRemoteSettingsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return internalGetGitRemoteSettingsFieldBuilder().getBuilder(); } @@ -6147,7 +6677,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersion(java.lang.String value) throw new NullPointerException(); } npmrcEnvironmentVariablesSecretVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6171,7 +6701,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersion(java.lang.String value) public Builder clearNpmrcEnvironmentVariablesSecretVersion() { npmrcEnvironmentVariablesSecretVersion_ = getDefaultInstance().getNpmrcEnvironmentVariablesSecretVersion(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -6200,7 +6730,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersionBytes( } checkByteStringIsUtf8(value); npmrcEnvironmentVariablesSecretVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6230,7 +6760,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersionBytes( * @return Whether the workspaceCompilationOverrides field is set. */ public boolean hasWorkspaceCompilationOverrides() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -6285,7 +6815,7 @@ public Builder setWorkspaceCompilationOverrides( } else { workspaceCompilationOverridesBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6312,7 +6842,7 @@ public Builder setWorkspaceCompilationOverrides( } else { workspaceCompilationOverridesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6334,7 +6864,7 @@ public Builder setWorkspaceCompilationOverrides( public Builder mergeWorkspaceCompilationOverrides( com.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides value) { if (workspaceCompilationOverridesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000080) != 0) && workspaceCompilationOverrides_ != null && workspaceCompilationOverrides_ != com.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides @@ -6347,7 +6877,7 @@ public Builder mergeWorkspaceCompilationOverrides( workspaceCompilationOverridesBuilder_.mergeFrom(value); } if (workspaceCompilationOverrides_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -6368,7 +6898,7 @@ public Builder mergeWorkspaceCompilationOverrides( * */ public Builder clearWorkspaceCompilationOverrides() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); workspaceCompilationOverrides_ = null; if (workspaceCompilationOverridesBuilder_ != null) { workspaceCompilationOverridesBuilder_.dispose(); @@ -6394,7 +6924,7 @@ public Builder clearWorkspaceCompilationOverrides() { */ public com.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides.Builder getWorkspaceCompilationOverridesBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return internalGetWorkspaceCompilationOverridesFieldBuilder().getBuilder(); } @@ -6473,7 +7003,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return labels_; } @@ -6563,7 +7093,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -6588,7 +7118,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } @@ -6609,7 +7139,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return this; } @@ -6624,7 +7154,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return this; } @@ -6667,7 +7197,7 @@ public boolean getSetAuthenticatedUserAdmin() { public Builder setSetAuthenticatedUserAdmin(boolean value) { setAuthenticatedUserAdmin_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6687,7 +7217,7 @@ public Builder setSetAuthenticatedUserAdmin(boolean value) { * @return This builder for chaining. */ public Builder clearSetAuthenticatedUserAdmin() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); setAuthenticatedUserAdmin_ = false; onChanged(); return this; @@ -6758,7 +7288,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6776,7 +7306,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -6799,7 +7329,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6887,7 +7417,7 @@ public Builder setKmsKeyName(java.lang.String value) { throw new NullPointerException(); } kmsKeyName_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6911,7 +7441,7 @@ public Builder setKmsKeyName(java.lang.String value) { */ public Builder clearKmsKeyName() { kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -6940,7 +7470,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyName_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6967,7 +7497,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * @return Whether the dataEncryptionState field is set. */ public boolean hasDataEncryptionState() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -7015,7 +7545,7 @@ public Builder setDataEncryptionState(com.google.cloud.dataform.v1.DataEncryptio } else { dataEncryptionStateBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7039,7 +7569,7 @@ public Builder setDataEncryptionState( } else { dataEncryptionStateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7059,7 +7589,7 @@ public Builder setDataEncryptionState( public Builder mergeDataEncryptionState( com.google.cloud.dataform.v1.DataEncryptionState value) { if (dataEncryptionStateBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00001000) != 0) && dataEncryptionState_ != null && dataEncryptionState_ != com.google.cloud.dataform.v1.DataEncryptionState.getDefaultInstance()) { @@ -7071,7 +7601,7 @@ public Builder mergeDataEncryptionState( dataEncryptionStateBuilder_.mergeFrom(value); } if (dataEncryptionState_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -7090,7 +7620,7 @@ public Builder mergeDataEncryptionState( * */ public Builder clearDataEncryptionState() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); dataEncryptionState_ = null; if (dataEncryptionStateBuilder_ != null) { dataEncryptionStateBuilder_.dispose(); @@ -7114,7 +7644,7 @@ public Builder clearDataEncryptionState() { */ public com.google.cloud.dataform.v1.DataEncryptionState.Builder getDataEncryptionStateBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return internalGetDataEncryptionStateFieldBuilder().getBuilder(); } @@ -7188,7 +7718,7 @@ public Builder clearDataEncryptionState() { * @return Whether the internalMetadata field is set. */ public boolean hasInternalMetadata() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -7263,7 +7793,7 @@ public Builder setInternalMetadata(java.lang.String value) { throw new NullPointerException(); } internalMetadata_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7284,7 +7814,7 @@ public Builder setInternalMetadata(java.lang.String value) { */ public Builder clearInternalMetadata() { internalMetadata_ = getDefaultInstance().getInternalMetadata(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -7310,7 +7840,7 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); internalMetadata_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryOrBuilder.java index 00cf1572acbc..7b3f02b95fe9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryOrBuilder.java @@ -52,6 +52,108 @@ public interface RepositoryOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the containingFolder field is set. + */ + boolean hasContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + java.lang.String getContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + com.google.protobuf.ByteString getContainingFolderBytes(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + boolean hasTeamFolderName(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + java.lang.String getTeamFolderName(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + com.google.protobuf.ByteString getTeamFolderNameBytes(); + /** * * diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequest.java new file mode 100644 index 000000000000..00fa6c5b3301 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequest.java @@ -0,0 +1,1381 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `SearchTeamFolders` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersRequest} + */ +@com.google.protobuf.Generated +public final class SearchTeamFoldersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.SearchTeamFoldersRequest) + SearchTeamFoldersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchTeamFoldersRequest"); + } + + // Use SearchTeamFoldersRequest.newBuilder() to construct. + private SearchTeamFoldersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchTeamFoldersRequest() { + location_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest.class, + com.google.cloud.dataform.v1.SearchTeamFoldersRequest.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
            +   * Required. Location in which to query TeamFolders.
            +   * Format: `projects/*/locations/*`.
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Location in which to query TeamFolders.
            +   * Format: `projects/*/locations/*`.
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Maximum number of TeamFolders to return. The server may return
            +   * fewer items than requested. If unspecified, the server will pick an
            +   * appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Page token received from a previous `SearchTeamFolders` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `SearchTeamFolders`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Page token received from a previous `SearchTeamFolders` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `SearchTeamFolders`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Supported keywords: `display_name` (default), `create_time`,
            +   * `last_modified_time`. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Supported keywords: `display_name` (default), `create_time`,
            +   * `last_modified_time`. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + 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.dataform.v1.SearchTeamFoldersRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.SearchTeamFoldersRequest other = + (com.google.cloud.dataform.v1.SearchTeamFoldersRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest 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.dataform.v1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest 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.dataform.v1.SearchTeamFoldersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.SearchTeamFoldersRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `SearchTeamFolders` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.SearchTeamFoldersRequest) + com.google.cloud.dataform.v1.SearchTeamFoldersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest.class, + com.google.cloud.dataform.v1.SearchTeamFoldersRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.SearchTeamFoldersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.SearchTeamFoldersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersRequest build() { + com.google.cloud.dataform.v1.SearchTeamFoldersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersRequest buildPartial() { + com.google.cloud.dataform.v1.SearchTeamFoldersRequest result = + new com.google.cloud.dataform.v1.SearchTeamFoldersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.SearchTeamFoldersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.SearchTeamFoldersRequest) { + return mergeFrom((com.google.cloud.dataform.v1.SearchTeamFoldersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.SearchTeamFoldersRequest other) { + if (other == com.google.cloud.dataform.v1.SearchTeamFoldersRequest.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 location_ = ""; + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Maximum number of TeamFolders to return. The server may return
            +     * fewer items than requested. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of TeamFolders to return. The server may return
            +     * fewer items than requested. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Maximum number of TeamFolders to return. The server may return
            +     * fewer items than requested. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.SearchTeamFoldersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.SearchTeamFoldersRequest) + private static final com.google.cloud.dataform.v1.SearchTeamFoldersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.SearchTeamFoldersRequest(); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchTeamFoldersRequest 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.dataform.v1.SearchTeamFoldersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequestOrBuilder.java new file mode 100644 index 000000000000..fa7e09a40975 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface SearchTeamFoldersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.SearchTeamFoldersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Location in which to query TeamFolders.
            +   * Format: `projects/*/locations/*`.
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
            +   * Required. Location in which to query TeamFolders.
            +   * Format: `projects/*/locations/*`.
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of TeamFolders to return. The server may return
            +   * fewer items than requested. If unspecified, the server will pick an
            +   * appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `SearchTeamFolders` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `SearchTeamFolders`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `SearchTeamFolders` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `SearchTeamFolders`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Supported keywords: `display_name` (default), `create_time`,
            +   * `last_modified_time`. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Supported keywords: `display_name` (default), `create_time`,
            +   * `last_modified_time`. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponse.java new file mode 100644 index 000000000000..f2b207f89428 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponse.java @@ -0,0 +1,2062 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `SearchTeamFolders` response message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersResponse} + */ +@com.google.protobuf.Generated +public final class SearchTeamFoldersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.SearchTeamFoldersResponse) + SearchTeamFoldersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchTeamFoldersResponse"); + } + + // Use SearchTeamFoldersResponse.newBuilder() to construct. + private SearchTeamFoldersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchTeamFoldersResponse() { + results_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.class, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.Builder.class); + } + + public interface TeamFolderSearchResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1.TeamFolder getTeamFolder(); + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder(); + + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.EntryCase + getEntryCase(); + } + + /** + * + * + *
            +   * Represents a single content entry.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult} + */ + public static final class TeamFolderSearchResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + TeamFolderSearchResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolderSearchResult"); + } + + // Use TeamFolderSearchResult.newBuilder() to construct. + private TeamFolderSearchResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolderSearchResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.class, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + .class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEAM_FOLDER(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(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 EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 2: + return TEAM_FOLDER; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return entryCase_ == 2; + } + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1.TeamFolder.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 (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1.TeamFolder) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1.TeamFolder) entry_); + } + 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.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult other = + (com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 2: + if (!getTeamFolder().equals(other.getTeamFolder())) 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 (entryCase_) { + case 2: + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + 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.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + 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.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single content entry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.class, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult build() { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + buildPartial() { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult result = + new com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 2 && teamFolderBuilder_ != null) { + result.entry_ = teamFolderBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) { + return mergeFrom( + (com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult other) { + if (other + == com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case TEAM_FOLDER: + { + mergeTeamFolder(other.getTeamFolder()); + break; + } + case ENTRY_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 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 2; + 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 entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return entryCase_ == 2; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return teamFolderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + teamFolderBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public Builder setTeamFolder( + com.google.cloud.dataform.v1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.TeamFolder.newBuilder( + (com.google.cloud.dataform.v1.TeamFolder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + teamFolderBuilder_.mergeFrom(value); + } else { + teamFolderBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public Builder clearTeamFolder() { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + teamFolderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public com.google.cloud.dataform.v1.TeamFolder.Builder getTeamFolderBuilder() { + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if ((entryCase_ == 2) && (teamFolderBuilder_ != null)) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder>( + (com.google.cloud.dataform.v1.TeamFolder) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return teamFolderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + private static final com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult(); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolderSearchResult 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.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + results_; + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + getResultsList() { + return results_; + } + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList() { + return results_; + } + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult getResults( + int index) { + return results_.get(index); + } + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index) { + return results_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.dataform.v1.SearchTeamFoldersResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.SearchTeamFoldersResponse other = + (com.google.cloud.dataform.v1.SearchTeamFoldersResponse) obj; + + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse 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.dataform.v1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse 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.dataform.v1.SearchTeamFoldersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.SearchTeamFoldersResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `SearchTeamFolders` response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.SearchTeamFoldersResponse) + com.google.cloud.dataform.v1.SearchTeamFoldersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.class, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.SearchTeamFoldersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + } else { + results_ = null; + resultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.SearchTeamFoldersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse build() { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse buildPartial() { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse result = + new com.google.cloud.dataform.v1.SearchTeamFoldersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse result) { + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1.SearchTeamFoldersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.SearchTeamFoldersResponse) { + return mergeFrom((com.google.cloud.dataform.v1.SearchTeamFoldersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.SearchTeamFoldersResponse other) { + if (other == com.google.cloud.dataform.v1.SearchTeamFoldersResponse.getDefaultInstance()) + return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResultsFieldBuilder() + : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult m = + input.readMessage( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + results_ = java.util.Collections.emptyList(); + + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult>( + results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder> + resultsBuilder_; + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult getResults( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder setResults( + int index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder setResults( + int index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + int index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + int index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addAllResults( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + getResultsBuilder(int index) { + return internalGetResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + addResultsBuilder() { + return internalGetResultsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + addResultsBuilder(int index) { + return internalGetResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder> + getResultsBuilderList() { + return internalGetResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder> + internalGetResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.SearchTeamFoldersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.SearchTeamFoldersResponse) + private static final com.google.cloud.dataform.v1.SearchTeamFoldersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.SearchTeamFoldersResponse(); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchTeamFoldersResponse 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.dataform.v1.SearchTeamFoldersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponseOrBuilder.java new file mode 100644 index 000000000000..14a8ba37bfc5 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface SearchTeamFoldersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.SearchTeamFoldersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + java.util.List + getResultsList(); + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult getResults( + int index); + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + int getResultsCount(); + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList(); + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolder.java new file mode 100644 index 000000000000..7f4294a66452 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolder.java @@ -0,0 +1,1882 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Represents a Dataform TeamFolder. This is a resource that sits at the project
            + * level and is used to organize Repositories and Folders with hierarchical
            + * access controls. They provide a team context and stricter access controls.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.TeamFolder} + */ +@com.google.protobuf.Generated +public final class TeamFolder extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.TeamFolder) + TeamFolderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolder"); + } + + // Use TeamFolder.newBuilder() to construct. + private TeamFolder(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolder() { + name_ = ""; + displayName_ = ""; + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.TeamFolder.class, + com.google.cloud.dataform.v1.TeamFolder.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The TeamFolder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The TeamFolder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Required. The TeamFolder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The TeamFolder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int INTERNAL_METADATA_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + 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(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATOR_IAM_PRINCIPAL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + @java.lang.Override + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + @java.lang.Override + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + 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(); + creatorIamPrincipal_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, creatorIamPrincipal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, creatorIamPrincipal_); + } + 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.dataform.v1.TeamFolder)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.TeamFolder other = (com.google.cloud.dataform.v1.TeamFolder) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } + if (hasCreatorIamPrincipal() != other.hasCreatorIamPrincipal()) return false; + if (hasCreatorIamPrincipal()) { + if (!getCreatorIamPrincipal().equals(other.getCreatorIamPrincipal())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } + if (hasCreatorIamPrincipal()) { + hash = (37 * hash) + CREATOR_IAM_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getCreatorIamPrincipal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.TeamFolder 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.dataform.v1.TeamFolder parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.TeamFolder 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.dataform.v1.TeamFolder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.TeamFolder 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a Dataform TeamFolder. This is a resource that sits at the project
            +   * level and is used to organize Repositories and Folders with hierarchical
            +   * access controls. They provide a team context and stricter access controls.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.TeamFolder} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.TeamFolder) + com.google.cloud.dataform.v1.TeamFolderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.TeamFolder.class, + com.google.cloud.dataform.v1.TeamFolder.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.TeamFolder.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder build() { + com.google.cloud.dataform.v1.TeamFolder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder buildPartial() { + com.google.cloud.dataform.v1.TeamFolder result = + new com.google.cloud.dataform.v1.TeamFolder(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.TeamFolder result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.creatorIamPrincipal_ = creatorIamPrincipal_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.TeamFolder) { + return mergeFrom((com.google.cloud.dataform.v1.TeamFolder) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.TeamFolder other) { + if (other == com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCreatorIamPrincipal()) { + creatorIamPrincipal_ = other.creatorIamPrincipal_; + bitField0_ |= 0x00000020; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + creatorIamPrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + 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 name_ = ""; + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCreatorIamPrincipal() { + creatorIamPrincipal_ = getDefaultInstance().getCreatorIamPrincipal(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.TeamFolder) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.TeamFolder) + private static final com.google.cloud.dataform.v1.TeamFolder DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.TeamFolder(); + } + + public static com.google.cloud.dataform.v1.TeamFolder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolder 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.dataform.v1.TeamFolder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java new file mode 100644 index 000000000000..33a9ea5140c3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TeamFolderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TEAM_FOLDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/teamFolders/{team_folder}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String teamFolder; + + @Deprecated + protected TeamFolderName() { + project = null; + location = null; + teamFolder = null; + } + + private TeamFolderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + teamFolder = Preconditions.checkNotNull(builder.getTeamFolder()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTeamFolder() { + return teamFolder; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TeamFolderName of(String project, String location, String teamFolder) { + return newBuilder().setProject(project).setLocation(location).setTeamFolder(teamFolder).build(); + } + + public static String format(String project, String location, String teamFolder) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTeamFolder(teamFolder) + .build() + .toString(); + } + + public static TeamFolderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TEAM_FOLDER.validatedMatch( + formattedString, "TeamFolderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("team_folder")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TeamFolderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TEAM_FOLDER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (teamFolder != null) { + fieldMapBuilder.put("team_folder", teamFolder); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TEAM_FOLDER.instantiate( + "project", project, "location", location, "team_folder", teamFolder); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TeamFolderName that = ((TeamFolderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.teamFolder, that.teamFolder); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(teamFolder); + return h; + } + + /** Builder for projects/{project}/locations/{location}/teamFolders/{team_folder}. */ + public static class Builder { + private String project; + private String location; + private String teamFolder; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTeamFolder() { + return teamFolder; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTeamFolder(String teamFolder) { + this.teamFolder = teamFolder; + return this; + } + + private Builder(TeamFolderName teamFolderName) { + this.project = teamFolderName.project; + this.location = teamFolderName.location; + this.teamFolder = teamFolderName.teamFolder; + } + + public TeamFolderName build() { + return new TeamFolderName(this); + } + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderOrBuilder.java new file mode 100644 index 000000000000..f0c7d5d37935 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface TeamFolderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.TeamFolder) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The TeamFolder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The TeamFolder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Required. The TeamFolder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Required. The TeamFolder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + boolean hasCreatorIamPrincipal(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + java.lang.String getCreatorIamPrincipal(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + com.google.protobuf.ByteString getCreatorIamPrincipalBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequest.java new file mode 100644 index 000000000000..15175dafcce4 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequest.java @@ -0,0 +1,1026 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `UpdateFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.UpdateFolderRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.UpdateFolderRequest) + UpdateFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFolderRequest"); + } + + // Use UpdateFolderRequest.newBuilder() to construct. + private UpdateFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFolderRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.UpdateFolderRequest.class, + com.google.cloud.dataform.v1.UpdateFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1.Folder folder_; + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); + } + 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.dataform.v1.UpdateFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.UpdateFolderRequest other = + (com.google.cloud.dataform.v1.UpdateFolderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasFolder() != other.hasFolder()) return false; + if (hasFolder()) { + if (!getFolder().equals(other.getFolder())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasFolder()) { + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest 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.dataform.v1.UpdateFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest 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.dataform.v1.UpdateFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.UpdateFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `UpdateFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.UpdateFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.UpdateFolderRequest) + com.google.cloud.dataform.v1.UpdateFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.UpdateFolderRequest.class, + com.google.cloud.dataform.v1.UpdateFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.UpdateFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.UpdateFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateFolderRequest build() { + com.google.cloud.dataform.v1.UpdateFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateFolderRequest buildPartial() { + com.google.cloud.dataform.v1.UpdateFolderRequest result = + new com.google.cloud.dataform.v1.UpdateFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.UpdateFolderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.UpdateFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.UpdateFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.UpdateFolderRequest other) { + if (other == com.google.cloud.dataform.v1.UpdateFolderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasFolder()) { + mergeFolder(other.getFolder()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.dataform.v1.Folder folder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } else { + return folderBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + } else { + folderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + folder_ = builderForValue.build(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && folder_ != null + && folder_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + getFolderBuilder().mergeFrom(value); + } else { + folder_ = value; + } + } else { + folderBuilder_.mergeFrom(value); + } + if (folder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (folderBuilder_ != null) { + return folderBuilder_.getMessageOrBuilder(); + } else { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + getFolder(), getParentForChildren(), isClean()); + folder_ = null; + } + return folderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.UpdateFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.UpdateFolderRequest) + private static final com.google.cloud.dataform.v1.UpdateFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.UpdateFolderRequest(); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFolderRequest 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.dataform.v1.UpdateFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequestOrBuilder.java new file mode 100644 index 000000000000..ba5816d39756 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface UpdateFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.UpdateFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequest.java new file mode 100644 index 000000000000..8a6acc5c8676 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequest.java @@ -0,0 +1,1023 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `UpdateTeamFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.UpdateTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class UpdateTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.UpdateTeamFolderRequest) + UpdateTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateTeamFolderRequest"); + } + + // Use UpdateTeamFolderRequest.newBuilder() to construct. + private UpdateTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateTeamFolderRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest.class, + com.google.cloud.dataform.v1.UpdateTeamFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1.TeamFolder teamFolder_; + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTeamFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTeamFolder()); + } + 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.dataform.v1.UpdateTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.UpdateTeamFolderRequest other = + (com.google.cloud.dataform.v1.UpdateTeamFolderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasTeamFolder() != other.hasTeamFolder()) return false; + if (hasTeamFolder()) { + if (!getTeamFolder().equals(other.getTeamFolder())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasTeamFolder()) { + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest 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.dataform.v1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest 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.dataform.v1.UpdateTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dataform.v1.UpdateTeamFolderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `UpdateTeamFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.UpdateTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.UpdateTeamFolderRequest) + com.google.cloud.dataform.v1.UpdateTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest.class, + com.google.cloud.dataform.v1.UpdateTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.UpdateTeamFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetTeamFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.UpdateTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateTeamFolderRequest build() { + com.google.cloud.dataform.v1.UpdateTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1.UpdateTeamFolderRequest result = + new com.google.cloud.dataform.v1.UpdateTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.UpdateTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamFolder_ = teamFolderBuilder_ == null ? teamFolder_ : teamFolderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.UpdateTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.UpdateTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.UpdateTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1.UpdateTeamFolderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasTeamFolder()) { + mergeTeamFolder(other.getTeamFolder()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().getBuilder(), extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.dataform.v1.TeamFolder teamFolder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } else { + return teamFolderBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + } else { + teamFolderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + teamFolder_ = builderForValue.build(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && teamFolder_ != null + && teamFolder_ != com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance()) { + getTeamFolderBuilder().mergeFrom(value); + } else { + teamFolder_ = value; + } + } else { + teamFolderBuilder_.mergeFrom(value); + } + if (teamFolder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTeamFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.TeamFolder.Builder getTeamFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (teamFolderBuilder_ != null) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder>( + getTeamFolder(), getParentForChildren(), isClean()); + teamFolder_ = null; + } + return teamFolderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.UpdateTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.UpdateTeamFolderRequest) + private static final com.google.cloud.dataform.v1.UpdateTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.UpdateTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTeamFolderRequest 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.dataform.v1.UpdateTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..90cac718dfc0 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface UpdateTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.UpdateTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1.TeamFolder getTeamFolder(); + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocation.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocation.java index 5daaf82ad0d0..fa16beb8b028 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocation.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocation.java @@ -941,6 +941,72 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 10; + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -983,6 +1049,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -1020,6 +1089,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1055,6 +1129,10 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getCompilationSourceCase().equals(other.getCompilationSourceCase())) return false; switch (compilationSourceCase_) { case 2: @@ -1099,6 +1177,10 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } switch (compilationSourceCase_) { case 2: hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER; @@ -1255,6 +1337,7 @@ private void maybeForceBuilderInitialization() { internalGetInvocationConfigFieldBuilder(); internalGetInvocationTimingFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -1281,6 +1364,11 @@ public Builder clear() { dataEncryptionStateBuilder_ = null; } internalMetadata_ = ""; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } compilationSourceCase_ = 0; compilationSource_ = null; return this; @@ -1351,6 +1439,13 @@ private void buildPartial0(com.google.cloud.dataform.v1.WorkflowInvocation resul result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -1399,6 +1494,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.WorkflowInvocation other) bitField0_ |= 0x00000100; onChanged(); } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } switch (other.getCompilationSourceCase()) { case COMPILATION_RESULT: { @@ -1504,6 +1602,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 82: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2993,6 +3099,242 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000200); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.WorkflowInvocation) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationOrBuilder.java index eb684b948cf7..53cb53d5ecc8 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationOrBuilder.java @@ -389,5 +389,55 @@ public interface WorkflowInvocationOrBuilder */ com.google.protobuf.ByteString getInternalMetadataBytes(); + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); + com.google.cloud.dataform.v1.WorkflowInvocation.CompilationSourceCase getCompilationSourceCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Workspace.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Workspace.java index 39aa31fc3688..dc7cf06dc2b7 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Workspace.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Workspace.java @@ -318,6 +318,106 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int DISABLE_MOVES_FIELD_NUMBER = 6; + private boolean disableMoves_ = false; + + /** + * + * + *
            +   * Optional. If set to true, workspaces will not be moved if its linked
            +   * Repository is moved. Instead, it will be deleted.
            +   * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + @java.lang.Override + public boolean hasDisableMoves() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. If set to true, workspaces will not be moved if its linked
            +   * Repository is moved. Instead, it will be deleted.
            +   * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + @java.lang.Override + public boolean getDisableMoves() { + return disableMoves_; + } + + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 8; + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -344,6 +444,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, internalMetadata_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(6, disableMoves_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -365,6 +471,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, internalMetadata_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableMoves_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -393,6 +506,14 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasDisableMoves() != other.hasDisableMoves()) return false; + if (hasDisableMoves()) { + if (getDisableMoves() != other.getDisableMoves()) return false; + } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,6 +539,14 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasDisableMoves()) { + hash = (37 * hash) + DISABLE_MOVES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableMoves()); + } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -561,6 +690,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCreateTimeFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -580,6 +710,12 @@ public Builder clear() { dataEncryptionStateBuilder_ = null; } internalMetadata_ = ""; + disableMoves_ = false; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } return this; } @@ -635,6 +771,17 @@ private void buildPartial0(com.google.cloud.dataform.v1.Workspace result) { result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableMoves_ = disableMoves_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -666,6 +813,12 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Workspace other) { bitField0_ |= 0x00000008; onChanged(); } + if (other.hasDisableMoves()) { + setDisableMoves(other.getDisableMoves()); + } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -718,6 +871,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 48: + { + disableMoves_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1430,6 +1597,309 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private boolean disableMoves_; + + /** + * + * + *
            +     * Optional. If set to true, workspaces will not be moved if its linked
            +     * Repository is moved. Instead, it will be deleted.
            +     * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + @java.lang.Override + public boolean hasDisableMoves() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. If set to true, workspaces will not be moved if its linked
            +     * Repository is moved. Instead, it will be deleted.
            +     * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + @java.lang.Override + public boolean getDisableMoves() { + return disableMoves_; + } + + /** + * + * + *
            +     * Optional. If set to true, workspaces will not be moved if its linked
            +     * Repository is moved. Instead, it will be deleted.
            +     * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableMoves to set. + * @return This builder for chaining. + */ + public Builder setDisableMoves(boolean value) { + + disableMoves_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If set to true, workspaces will not be moved if its linked
            +     * Repository is moved. Instead, it will be deleted.
            +     * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableMoves() { + bitField0_ = (bitField0_ & ~0x00000010); + disableMoves_ = false; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000020); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.Workspace) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceOrBuilder.java index 31be7e7f3969..08037f96dfdc 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceOrBuilder.java @@ -185,4 +185,79 @@ public interface WorkspaceOrBuilder * @return The bytes for internalMetadata. */ com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
            +   * Optional. If set to true, workspaces will not be moved if its linked
            +   * Repository is moved. Instead, it will be deleted.
            +   * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + boolean hasDisableMoves(); + + /** + * + * + *
            +   * Optional. If set to true, workspaces will not be moved if its linked
            +   * Repository is moved. Instead, it will be deleted.
            +   * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + boolean getDisableMoves(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto index e1b987a7cb6a..51d842967e39 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,9 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -58,6 +61,156 @@ service Dataform { "https://www.googleapis.com/auth/bigquery," "https://www.googleapis.com/auth/cloud-platform"; + // Fetches a single TeamFolder. + rpc GetTeamFolder(GetTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/teamFolders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new TeamFolder in a given project and location. + rpc CreateTeamFolder(CreateTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/teamFolders" + body: "team_folder" + }; + option (google.api.method_signature) = "parent,team_folder"; + } + + // Updates a single TeamFolder. + rpc UpdateTeamFolder(UpdateTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + patch: "/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}" + body: "team_folder" + }; + option (google.api.method_signature) = "team_folder,update_mask"; + } + + // Deletes a single TeamFolder. + rpc DeleteTeamFolder(DeleteTeamFolderRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/teamFolders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + // ReleaseConfigs, and WorkflowConfigs). + rpc DeleteTeamFolderTree(DeleteTeamFolderTreeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree" + body: "*" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteFolderTreeMetadata" + }; + } + + // Returns the contents of a given TeamFolder. + rpc QueryTeamFolderContents(QueryTeamFolderContentsRequest) + returns (QueryTeamFolderContentsResponse) { + option (google.api.http) = { + get: "/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents" + }; + option (google.api.method_signature) = "team_folder"; + } + + // Returns all TeamFolders in a given location that the caller has access to + // and match the provided filter. + rpc SearchTeamFolders(SearchTeamFoldersRequest) + returns (SearchTeamFoldersResponse) { + option (google.api.http) = { + get: "/v1/{location=projects/*/locations/*}/teamFolders:search" + }; + } + + // Fetches a single Folder. + rpc GetFolder(GetFolderRequest) returns (Folder) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/folders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Folder in a given project and location. + rpc CreateFolder(CreateFolderRequest) returns (Folder) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/folders" + body: "folder" + }; + option (google.api.method_signature) = "parent,folder"; + } + + // Updates a single Folder. + rpc UpdateFolder(UpdateFolderRequest) returns (Folder) { + option (google.api.http) = { + patch: "/v1/{folder.name=projects/*/locations/*/folders/*}" + body: "folder" + }; + option (google.api.method_signature) = "folder,update_mask"; + } + + // Deletes a single Folder. + rpc DeleteFolder(DeleteFolderRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/folders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a Folder with its contents (Folders, Repositories, Workspaces, + // ReleaseConfigs, and WorkflowConfigs). + rpc DeleteFolderTree(DeleteFolderTreeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/folders/*}:deleteTree" + body: "*" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteFolderTreeMetadata" + }; + } + + // Returns the contents of a given Folder. + rpc QueryFolderContents(QueryFolderContentsRequest) + returns (QueryFolderContentsResponse) { + option (google.api.http) = { + get: "/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents" + }; + option (google.api.method_signature) = "folder"; + } + + // Returns the contents of a caller's root folder in a given location. + // The root folder contains all resources that are created by the user and not + // contained in any other folder. + rpc QueryUserRootContents(QueryUserRootContentsRequest) + returns (QueryUserRootContentsResponse) { + option (google.api.http) = { + get: "/v1/{location=projects/*/locations/*}:queryUserRootContents" + }; + option (google.api.method_signature) = "location"; + } + + // Moves a Folder to a new Folder, TeamFolder, or the root location. + rpc MoveFolder(MoveFolderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/folders/*}:move" + body: "*" + }; + option (google.api.method_signature) = "name,destination_containing_folder"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "MoveFolderMetadata" + }; + } + // Lists Repositories in a given project and location. // // **Note:** *This method can return repositories not shown in the [Dataform @@ -110,6 +263,20 @@ service Dataform { option (google.api.method_signature) = "name"; } + // Moves a Repository to a new location. + rpc MoveRepository(MoveRepositoryRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/repositories/*}:move" + body: "*" + }; + option (google.api.method_signature) = "name,destination_containing_folder"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "MoveRepositoryMetadata" + }; + } + // Applies a Git commit to a Repository. The Repository must not have a value // for `git_remote_settings.url`. rpc CommitRepositoryChanges(CommitRepositoryChangesRequest) @@ -548,6 +715,90 @@ service Dataform { }; option (google.api.method_signature) = "config,update_mask"; } + + // Gets the access control policy for a resource. + // Returns an empty policy if the resource exists and does not have a policy + // set. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy" + additional_bindings { + get: "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy" + } + additional_bindings { + get: "/v1/{resource=projects/*/locations/*/folders/*}:getIamPolicy" + } + additional_bindings { + get: "/v1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy" + } + }; + option (google.api.method_signature) = "resource"; + } + + // Sets the access control policy on the specified resource. Replaces any + // existing policy. + // + // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy" + body: "*" + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy" + body: "*" + } + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/folders/*}:setIamPolicy" + body: "*" + } + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy" + body: "*" + } + }; + } + + // Returns permissions that a caller has on the specified resource. + // If the resource does not exist, this will return an empty set of + // permissions, not a `NOT_FOUND` error. + // + // Note: This operation is designed to be used for building permission-aware + // UIs and command-line tools, not for authorization checking. This operation + // may "fail open" without warning. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions" + body: "*" + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions" + body: "*" + } + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/folders/*}:testIamPermissions" + body: "*" + } + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions" + body: "*" + } + }; + } +} + +// Represents the level of detail to return for directory contents. +enum DirectoryContentsView { + // The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + + // Includes only the file or directory name. This is the default behavior. + DIRECTORY_CONTENTS_VIEW_BASIC = 1; + + // Includes all metadata for each file or directory. Currently not supported + // by CMEK-protected workspaces. + DIRECTORY_CONTENTS_VIEW_METADATA = 2; } // Describes encryption state of a resource. @@ -648,6 +899,21 @@ message Repository { // Identifier. The repository's name. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + // Optional. The name of the containing folder of the repository. + // The field is immutable and it can be modified via a MoveRepository + // operation. + // Format: `projects/*/locations/*/folders/*`. or + // `projects/*/locations/*/teamFolders/*`. + optional string containing_folder = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The resource name of the TeamFolder that this Repository is + // associated with. This should take the format: + // projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this + // is not set, the Repository is not associated with a TeamFolder. + optional string team_folder_name = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The timestamp of when the repository was created. google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -714,6 +980,13 @@ message Repository { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Metadata used to identify if a resource is user scoped. +message PrivateResourceMetadata { + // Output only. If true, this resource is user-scoped, meaning it is either a + // workspace or sourced from a workspace. + bool user_scoped = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // `ListRepositories` request message. message ListRepositoriesRequest { // Required. The location in which to list repositories. Must be in the format @@ -760,6 +1033,24 @@ message ListRepositoriesResponse { repeated string unreachable = 3; } +// `MoveRepository` request message. +message MoveRepositoryRequest { + // Required. The full resource name of the repository to move. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Optional. The name of the Folder, TeamFolder, or root location to move the + // repository to. Can be in the format of: "" to move into the root User + // folder, `projects/*/locations/*/folders/*`, + // `projects/*/locations/*/teamFolders/*` + optional string destination_containing_folder = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // `GetRepository` request message. message GetRepositoryRequest { // Required. The repository's name. @@ -811,9 +1102,13 @@ message DeleteRepositoryRequest { } ]; - // Optional. If set to true, any child resources of this repository will also - // be deleted. (Otherwise, the request will only succeed if the repository has - // no child resources.) + // Optional. If set to true, child resources of this repository (compilation + // results and workflow invocations) will also be deleted. Otherwise, the + // request will only succeed if the repository has no child resources. + // + // **Note:** *This flag doesn't support deletion of workspaces, release + // configs or workflow configs. If any of such resources exists in the + // repository, the request will fail.*. bool force = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -1020,6 +1315,9 @@ message ComputeRepositoryAccessTokenStatusResponse { // The token was used successfully to authenticate against the Git remote. VALID = 3; + + // The token is not accessible due to permission issues. + PERMISSION_DENIED = 4; } // Indicates the status of the Git access token. @@ -1069,6 +1367,15 @@ message Workspace { // format of this field is a JSON string. optional string internal_metadata = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. If set to true, workspaces will not be moved if its linked + // Repository is moved. Instead, it will be deleted. + optional bool disable_moves = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Metadata indicating whether this resource is user-scoped. For + // `Workspace` resources, the `user_scoped` field is always `true`. + PrivateResourceMetadata private_resource_metadata = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `ListWorkspaces` request message. @@ -1370,6 +1677,12 @@ message QueryDirectoryContentsRequest { // `QueryDirectoryContents`, with the exception of `page_size`, must match the // call that provided the page token. string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the metadata to return for each directory entry. + // If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + // Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + // CMEK-protected workspaces. + DirectoryContentsView view = 5 [(google.api.field_behavior) = OPTIONAL]; } // `QueryDirectoryContents` response message. @@ -1392,6 +1705,20 @@ message DirectoryEntry { // A child directory in the directory. string directory = 2; } + + // Entry with metadata. + FilesystemEntryMetadata metadata = 3; +} + +// Represents metadata for a single entry in a filesystem. +message FilesystemEntryMetadata { + // Output only. Provides the size of the entry in bytes. For directories, this + // will be 0. + int64 size_bytes = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents the time of the last modification of the entry. + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration containing file search request parameters. @@ -1877,6 +2204,12 @@ message CompilationResult { // format of this field is a JSON string. optional string internal_metadata = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata indicating whether this resource is user-scoped. + // `CompilationResult` resource is `user_scoped` only if it is sourced + // from a workspace. + PrivateResourceMetadata private_resource_metadata = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configures various aspects of Dataform code compilation. @@ -2102,6 +2435,24 @@ message CompilationResultAction { MATERIALIZED_VIEW = 4; } + // Supported table formats for BigQuery tables. + enum TableFormat { + // Default value. + TABLE_FORMAT_UNSPECIFIED = 0; + + // Apache Iceberg format. + ICEBERG = 1; + } + + // Supported file formats for BigQuery tables. + enum FileFormat { + // Default value. + FILE_FORMAT_UNSPECIFIED = 0; + + // Apache Parquet format. + PARQUET = 1; + } + // A list of actions that this action depends on. repeated Target dependency_targets = 1; @@ -2148,6 +2499,24 @@ message CompilationResultAction { // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language // for more information on which options are supported. map additional_options = 14; + + // Optional. The connection specifying the credentials to be used to read + // and write to external storage, such as Cloud Storage. The connection can + // have the form `{project}.{location}.{connection_id}` or + // `projects/{project}/locations/{location}/connections/{connection_id}`, + // or be set to DEFAULT. + string connection = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The table format for the BigQuery table. + TableFormat table_format = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The file format for the BigQuery table. + FileFormat file_format = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The fully qualified location prefix of the external folder + // where table data is stored. The URI should be in the format + // `gs://bucket/path_to_table/`. + string storage_uri = 18 [(google.api.field_behavior) = OPTIONAL]; } // Represents a list of arbitrary database operations. @@ -2460,6 +2829,22 @@ message WorkflowConfig { // If both `included_targets` and `included_tags` are unset, all actions // will be included. message InvocationConfig { + // Types of priority for query execution in BigQuery. + enum QueryPriority { + // Default value. This value is unused. + QUERY_PRIORITY_UNSPECIFIED = 0; + + // Query will be executed in BigQuery with interactive priority. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#queries. + INTERACTIVE = 1; + + // Query will be executed in BigQuery with batch priority. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#batchqueries. + BATCH = 2; + } + // Optional. The set of action identifiers to include. repeated Target included_targets = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -2482,6 +2867,12 @@ message InvocationConfig { // Optional. The service account to run workflow invocations under. string service_account = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the priority for query execution in BigQuery. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#queries. + optional QueryPriority query_priority = 9 + [(google.api.field_behavior) = OPTIONAL]; } // `ListWorkflowConfigs` request message. @@ -2660,6 +3051,12 @@ message WorkflowInvocation { // format of this field is a JSON string. optional string internal_metadata = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata indicating whether this resource is user-scoped. + // `WorkflowInvocation` resource is `user_scoped` only if it is sourced + // from a compilation result and the compilation result is user-scoped. + PrivateResourceMetadata private_resource_metadata = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `ListWorkflowInvocations` request message. @@ -2984,6 +3381,12 @@ message Config { type: "cloudkms.googleapis.com/CryptoKey" } ]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `GetConfig` request message. @@ -3004,3 +3407,601 @@ message UpdateConfigRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Represents a Dataform Folder. This is a resource that is used to organize +// Files and other Folders and provide hierarchical access controls. +message Folder { + option (google.api.resource) = { + type: "dataform.googleapis.com/Folder" + pattern: "projects/{project}/locations/{location}/folders/{folder}" + plural: "folders" + singular: "folder" + }; + + // Identifier. The Folder's name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The Folder's user-friendly name. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The containing Folder resource name. This should take + // the format: projects/{project}/locations/{location}/folders/{folder}, + // projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just + // projects/{project}/locations/{location} if this is a root Folder. This + // field can only be updated through MoveFolder. + string containing_folder = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The resource name of the TeamFolder that this Folder is + // associated with. This should take the format: + // projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this + // is not set, the Folder is not associated with a TeamFolder and is a + // UserFolder. + string team_folder_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the Folder was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the Folder was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The IAM principal identifier of the creator of the Folder. + optional string creator_iam_principal = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// `CreateFolder` request message. +message CreateFolderRequest { + // Required. The location in which to create the Folder. Must be in the format + // `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The Folder to create. + Folder folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `MoveFolder` request message. +message MoveFolderRequest { + // Required. The full resource name of the Folder to move. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. The name of the Folder, TeamFolder, or root location to move the + // Folder to. Can be in the format of: "" to move into the root User folder, + // `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + optional string destination_containing_folder = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// `GetFolder` request message. +message GetFolderRequest { + // Required. The Folder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; +} + +// `UpdateFolder` request message. +message UpdateFolderRequest { + // Optional. Specifies the fields to be updated in the Folder. If left unset, + // all fields that can be updated, will be updated. A few fields cannot be + // updated and will be ignored if specified in the update_mask (e.g. + // parent_name, team_folder_name). + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The updated Folder. + Folder folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `DeleteFolder` request message. +message DeleteFolderRequest { + // Required. The Folder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; +} + +// `DeleteFolderTree` request message. +message DeleteFolderTreeRequest { + // Required. The Folder's name. + // Format: projects/{project}/locations/{location}/folders/{folder} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. If `false` (default): The operation will fail if any + // Repository within the folder hierarchy has associated Release Configs or + // Workflow Configs. + // + // If `true`: The operation will attempt to delete everything, including any + // Release Configs and Workflow Configs linked to Repositories within the + // folder hierarchy. This permanently removes schedules and resources. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// `DeleteTeamFolderTree` request message. +message DeleteTeamFolderTreeRequest { + // Required. The TeamFolder's name. + // Format: projects/{project}/locations/{location}/teamFolders/{team_folder} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; + + // Optional. If `false` (default): The operation will fail if any + // Repository within the folder hierarchy has associated Release Configs or + // Workflow Configs. + // + // If `true`: The operation will attempt to delete everything, including any + // Release Configs and Workflow Configs linked to Repositories within the + // folder hierarchy. This permanently removes schedules and resources. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Contains metadata about the progress of the DeleteFolderTree Long-running +// operations. +message DeleteFolderTreeMetadata { + // Different states of the DeleteFolderTree operation. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The operation was initialized and recorded by the server, but not yet + // started. + INITIALIZED = 1; + + // The operation is in progress. + IN_PROGRESS = 2; + + // The operation has completed successfully. + SUCCEEDED = 3; + + // The operation has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource name of the target of the operation. + // Format: projects/{project}/locations/{location}/folders/{folder} or + // projects/{project}/locations/{location}/teamFolders/{team_folder} + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the operation. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Percent complete of the operation [0, 100]. + int32 percent_complete = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// `QueryFolderContents` request message. +message QueryFolderContentsRequest { + // Required. Name of the folder whose contents to list. + // Format: projects/*/locations/*/folders/* + string folder = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryFolderContents` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryFolderContents`, with the exception of `page_size`, must match the + // call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: display_name (default), create_time, + // last_modified_time. + // Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryFolderContents` response message. +message QueryFolderContentsResponse { + // Represents a single content entry. + message FolderContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the folder. + repeated FolderContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// `QueryUserRootContents` request message. +message QueryUserRootContentsRequest { + // Required. Location of the user root folder whose contents to list. + // Format: projects/*/locations/* + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryUserRootContents` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryUserRootFolderContents`, with the exception of `page_size`, must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: display_name (default), created_at, + // last_modified_at. Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryUserRootContents` response message. +message QueryUserRootContentsResponse { + // Represents a single content entry. + message RootContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the folder. + repeated RootContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Represents a Dataform TeamFolder. This is a resource that sits at the project +// level and is used to organize Repositories and Folders with hierarchical +// access controls. They provide a team context and stricter access controls. +message TeamFolder { + option (google.api.resource) = { + type: "dataform.googleapis.com/TeamFolder" + pattern: "projects/{project}/locations/{location}/teamFolders/{team_folder}" + plural: "teamFolders" + singular: "teamFolder" + }; + + // Identifier. The TeamFolder's name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The TeamFolder's user-friendly name. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The timestamp of when the TeamFolder was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the TeamFolder was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The IAM principal identifier of the creator of the TeamFolder. + optional string creator_iam_principal = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// `CreateTeamFolder` request message. +message CreateTeamFolderRequest { + // Required. The location in which to create the TeamFolder. Must be in the + // format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The TeamFolder to create. + TeamFolder team_folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `GetTeamFolder` request message. +message GetTeamFolderRequest { + // Required. The TeamFolder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; +} + +// `UpdateTeamFolder` request message. +message UpdateTeamFolderRequest { + // Optional. Specifies the fields to be updated in the Folder. If left unset, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The updated TeamFolder. + TeamFolder team_folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `DeleteTeamFolder` request message. +message DeleteTeamFolderRequest { + // Required. The TeamFolder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; +} + +// `QueryTeamFolderContents` request message. +message QueryTeamFolderContentsRequest { + // Required. Name of the team_folder whose contents to list. + // Format: `projects/*/locations/*/teamFolders/*`. + string team_folder = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryTeamFolderContents` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryTeamFolderContents`, with the exception of `page_size`, must match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: `display_name` (default), `create_time`, + // last_modified_time. + // Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryTeamFolderContents` response message. +message QueryTeamFolderContentsResponse { + // Represents a single content entry. + message TeamFolderContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the TeamFolder. + repeated TeamFolderContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// `SearchTeamFolders` request message. +message SearchTeamFoldersRequest { + // Required. Location in which to query TeamFolders. + // Format: `projects/*/locations/*`. + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Maximum number of TeamFolders to return. The server may return + // fewer items than requested. If unspecified, the server will pick an + // appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `SearchTeamFolders` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `SearchTeamFolders`, with the exception of `page_size`, must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Supported keywords: `display_name` (default), `create_time`, + // `last_modified_time`. Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `SearchTeamFolders` response message. +message SearchTeamFoldersResponse { + // Represents a single content entry. + message TeamFolderSearchResult { + // The content entry. + oneof entry { + // A TeamFolder resource that is in the project / location. + TeamFolder team_folder = 2; + } + } + + // List of TeamFolders that match the search query. + repeated TeamFolderSearchResult results = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Contains metadata about the progress of the MoveFolder Long-running +// operations. +message MoveFolderMetadata { + // Different states of the move. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1; + + // The move is in progress. + IN_PROGRESS = 2; + + // The move has completed successfully. + SUCCESS = 3; + + // The move has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of the move. + State state = 4; + + // Percent complete of the move [0, 100]. + int32 percent_complete = 5; +} + +// Contains metadata about the progress of the MoveRepository Long-running +// operations. +message MoveRepositoryMetadata { + // Different states of the move. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1; + + // The move is in progress. + IN_PROGRESS = 2; + + // The move has completed successfully. + SUCCESS = 3; + + // The move has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of the move. + State state = 4; + + // Percent complete of the move [0, 100]. + int32 percent_complete = 5; +} diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/AsyncCreateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/AsyncCreateFolder.java new file mode 100644 index 000000000000..1635ff310000 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/AsyncCreateFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.CreateFolderRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.LocationName; + +public class AsyncCreateFolder { + + public static void main(String[] args) throws Exception { + asyncCreateFolder(); + } + + public static void asyncCreateFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFolder(Folder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.createFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolder.java new file mode 100644 index 000000000000..37d30f0a2c66 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateFolder_sync] +import com.google.cloud.dataform.v1.CreateFolderRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.LocationName; + +public class SyncCreateFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolder(); + } + + public static void syncCreateFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFolder(Folder.newBuilder().build()) + .build(); + Folder response = dataformClient.createFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_CreateFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java new file mode 100644 index 000000000000..644caa93a0ca --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateFolder_LocationnameFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.LocationName; + +public class SyncCreateFolderLocationnameFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolderLocationnameFolder(); + } + + public static void syncCreateFolderLocationnameFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + Folder response = dataformClient.createFolder(parent, folder); + } + } +} +// [END dataform_v1_generated_Dataform_CreateFolder_LocationnameFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderStringFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderStringFolder.java new file mode 100644 index 000000000000..265f1b57e1fc --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderStringFolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateFolder_StringFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.LocationName; + +public class SyncCreateFolderStringFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolderStringFolder(); + } + + public static void syncCreateFolderStringFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Folder folder = Folder.newBuilder().build(); + Folder response = dataformClient.createFolder(parent, folder); + } + } +} +// [END dataform_v1_generated_Dataform_CreateFolder_StringFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/AsyncCreateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/AsyncCreateTeamFolder.java new file mode 100644 index 000000000000..c0ec470bb5de --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/AsyncCreateTeamFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.TeamFolder; + +public class AsyncCreateTeamFolder { + + public static void main(String[] args) throws Exception { + asyncCreateTeamFolder(); + } + + public static void asyncCreateTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.createTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolder.java new file mode 100644 index 000000000000..2abade293aed --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateTeamFolder_sync] +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.TeamFolder; + +public class SyncCreateTeamFolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolder(); + } + + public static void syncCreateTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + TeamFolder response = dataformClient.createTeamFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java new file mode 100644 index 000000000000..144e94be6291 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateTeamFolder_LocationnameTeamfolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.TeamFolder; + +public class SyncCreateTeamFolderLocationnameTeamfolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolderLocationnameTeamfolder(); + } + + public static void syncCreateTeamFolderLocationnameTeamfolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); + } + } +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_LocationnameTeamfolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java new file mode 100644 index 000000000000..7ae6feb7079b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateTeamFolder_StringTeamfolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.TeamFolder; + +public class SyncCreateTeamFolderStringTeamfolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolderStringTeamfolder(); + } + + public static void syncCreateTeamFolderStringTeamfolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); + } + } +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_StringTeamfolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/AsyncDeleteFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/AsyncDeleteFolder.java new file mode 100644 index 000000000000..797aeee7443b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/AsyncDeleteFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteFolder { + + public static void main(String[] args) throws Exception { + asyncDeleteFolder(); + } + + public static void asyncDeleteFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderRequest request = + DeleteFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.deleteFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolder.java new file mode 100644 index 000000000000..e97e29f4c295 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolder { + + public static void main(String[] args) throws Exception { + syncDeleteFolder(); + } + + public static void syncDeleteFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderRequest request = + DeleteFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + dataformClient.deleteFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderFoldername.java new file mode 100644 index 000000000000..a0d3dfc5010b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderFoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolder_Foldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderFoldername { + + public static void main(String[] args) throws Exception { + syncDeleteFolderFoldername(); + } + + public static void syncDeleteFolderFoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + dataformClient.deleteFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolder_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderString.java new file mode 100644 index 000000000000..660e0c5698c1 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolder_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderString { + + public static void main(String[] args) throws Exception { + syncDeleteFolderString(); + } + + public static void syncDeleteFolderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + dataformClient.deleteFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTree.java new file mode 100644 index 000000000000..54775a3a44be --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTree.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.longrunning.Operation; + +public class AsyncDeleteFolderTree { + + public static void main(String[] args) throws Exception { + asyncDeleteFolderTree(); + } + + public static void asyncDeleteFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + ApiFuture future = dataformClient.deleteFolderTreeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java new file mode 100644 index 000000000000..4a64c3bd24d3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteFolderTreeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFolderTreeLRO(); + } + + public static void asyncDeleteFolderTreeLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + OperationFuture future = + dataformClient.deleteFolderTreeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTree.java new file mode 100644 index 000000000000..35a8552e1973 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTree.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTree(); + } + + public static void syncDeleteFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + dataformClient.deleteFolderTreeAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java new file mode 100644 index 000000000000..48bbb0db3ce5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_FoldernameBoolean_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTreeFoldernameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTreeFoldernameBoolean(); + } + + public static void syncDeleteFolderTreeFoldernameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + dataformClient.deleteFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_FoldernameBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java new file mode 100644 index 000000000000..e3cc4d9e16a3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_StringBoolean_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTreeStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTreeStringBoolean(); + } + + public static void syncDeleteFolderTreeStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + boolean force = true; + dataformClient.deleteFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_StringBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java new file mode 100644 index 000000000000..5a5bd8ad9713 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTeamFolder { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolder(); + } + + public static void asyncDeleteTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderRequest request = + DeleteTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.deleteTeamFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java new file mode 100644 index 000000000000..0557a28d9a74 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolder { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolder(); + } + + public static void syncDeleteTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderRequest request = + DeleteTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + dataformClient.deleteTeamFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java new file mode 100644 index 000000000000..c4bda9ea4812 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolder_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderString { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderString(); + } + + public static void syncDeleteTeamFolderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + dataformClient.deleteTeamFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java new file mode 100644 index 000000000000..bc3c36e17fbf --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolder_Teamfoldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTeamfoldername { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTeamfoldername(); + } + + public static void syncDeleteTeamFolderTeamfoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + dataformClient.deleteTeamFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..1673d675fbb3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.longrunning.Operation; + +public class AsyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolderTree(); + } + + public static void asyncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + ApiFuture future = + dataformClient.deleteTeamFolderTreeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java new file mode 100644 index 000000000000..e43cf309bd6d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTeamFolderTreeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolderTreeLRO(); + } + + public static void asyncDeleteTeamFolderTreeLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + OperationFuture future = + dataformClient.deleteTeamFolderTreeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..5c96aa35bc2d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTree(); + } + + public static void syncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + dataformClient.deleteTeamFolderTreeAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java new file mode 100644 index 000000000000..75a8556c560b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_StringBoolean_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTreeStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTreeStringBoolean(); + } + + public static void syncDeleteTeamFolderTreeStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + boolean force = true; + dataformClient.deleteTeamFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_StringBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java new file mode 100644 index 000000000000..9f60faf40770 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_TeamfoldernameBoolean_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTreeTeamfoldernameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTreeTeamfoldernameBoolean(); + } + + public static void syncDeleteTeamFolderTreeTeamfoldernameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + dataformClient.deleteTeamFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_TeamfoldernameBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/AsyncGetFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/AsyncGetFolder.java new file mode 100644 index 000000000000..692bf53d97ce --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/AsyncGetFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.GetFolderRequest; + +public class AsyncGetFolder { + + public static void main(String[] args) throws Exception { + asyncGetFolder(); + } + + public static void asyncGetFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetFolderRequest request = + GetFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.getFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_GetFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolder.java new file mode 100644 index 000000000000..50268073f943 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.GetFolderRequest; + +public class SyncGetFolder { + + public static void main(String[] args) throws Exception { + syncGetFolder(); + } + + public static void syncGetFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetFolderRequest request = + GetFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + Folder response = dataformClient.getFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_GetFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderFoldername.java new file mode 100644 index 000000000000..6ac7ca9cc7dd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderFoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetFolder_Foldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.FolderName; + +public class SyncGetFolderFoldername { + + public static void main(String[] args) throws Exception { + syncGetFolderFoldername(); + } + + public static void syncGetFolderFoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + Folder response = dataformClient.getFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_GetFolder_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderString.java new file mode 100644 index 000000000000..4b1d77ff24ab --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetFolder_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.FolderName; + +public class SyncGetFolderString { + + public static void main(String[] args) throws Exception { + syncGetFolderString(); + } + + public static void syncGetFolderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + Folder response = dataformClient.getFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_GetFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/AsyncGetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/AsyncGetIamPolicy.java index d7307ac99886..706ad10137a9 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/AsyncGetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/AsyncGetIamPolicy.java @@ -19,7 +19,7 @@ // [START dataform_v1_generated_Dataform_GetIamPolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; @@ -39,7 +39,7 @@ public static void asyncGetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicy.java index 78ee2a47da96..b2acbc81503a 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicy.java @@ -18,7 +18,7 @@ // [START dataform_v1_generated_Dataform_GetIamPolicy_sync] import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; @@ -38,7 +38,7 @@ public static void syncGetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); Policy response = dataformClient.getIamPolicy(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 000000000000..2efe3aaab1d3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetIamPolicy_Resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + Policy response = dataformClient.getIamPolicy(resource); + } + } +} +// [END dataform_v1_generated_Dataform_GetIamPolicy_Resourcename_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 000000000000..0d18e45052c0 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetIamPolicy_String_sync] +import com.google.cloud.dataform.v1.CompilationResultName; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String resource = + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString(); + Policy response = dataformClient.getIamPolicy(resource); + } + } +} +// [END dataform_v1_generated_Dataform_GetIamPolicy_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/AsyncGetTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/AsyncGetTeamFolder.java new file mode 100644 index 000000000000..c478ee71301e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/AsyncGetTeamFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class AsyncGetTeamFolder { + + public static void main(String[] args) throws Exception { + asyncGetTeamFolder(); + } + + public static void asyncGetTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetTeamFolderRequest request = + GetTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.getTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolder.java new file mode 100644 index 000000000000..337957217ffd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetTeamFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncGetTeamFolder { + + public static void main(String[] args) throws Exception { + syncGetTeamFolder(); + } + + public static void syncGetTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetTeamFolderRequest request = + GetTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + TeamFolder response = dataformClient.getTeamFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderString.java new file mode 100644 index 000000000000..4df0a24ec223 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetTeamFolder_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncGetTeamFolderString { + + public static void main(String[] args) throws Exception { + syncGetTeamFolderString(); + } + + public static void syncGetTeamFolderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + TeamFolder response = dataformClient.getTeamFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java new file mode 100644 index 000000000000..4157b82ffefd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetTeamFolder_Teamfoldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncGetTeamFolderTeamfoldername { + + public static void main(String[] args) throws Exception { + syncGetTeamFolderTeamfoldername(); + } + + public static void syncGetTeamFolderTeamfoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + TeamFolder response = dataformClient.getTeamFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolder.java new file mode 100644 index 000000000000..c5b5bee1efd5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.longrunning.Operation; + +public class AsyncMoveFolder { + + public static void main(String[] args) throws Exception { + asyncMoveFolder(); + } + + public static void asyncMoveFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + ApiFuture future = dataformClient.moveFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolderLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolderLRO.java new file mode 100644 index 000000000000..ecf9411349ad --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolderLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.MoveFolderMetadata; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.protobuf.Empty; + +public class AsyncMoveFolderLRO { + + public static void main(String[] args) throws Exception { + asyncMoveFolderLRO(); + } + + public static void asyncMoveFolderLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + OperationFuture future = + dataformClient.moveFolderOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolder.java new file mode 100644 index 000000000000..1f7d80bbf36e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.protobuf.Empty; + +public class SyncMoveFolder { + + public static void main(String[] args) throws Exception { + syncMoveFolder(); + } + + public static void syncMoveFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + dataformClient.moveFolderAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderFoldernameString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderFoldernameString.java new file mode 100644 index 000000000000..d32083f97a57 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderFoldernameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_FoldernameString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncMoveFolderFoldernameString { + + public static void main(String[] args) throws Exception { + syncMoveFolderFoldernameString(); + } + + public static void syncMoveFolderFoldernameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_FoldernameString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderStringString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderStringString.java new file mode 100644 index 000000000000..ea77ec563983 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_StringString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncMoveFolderStringString { + + public static void main(String[] args) throws Exception { + syncMoveFolderStringString(); + } + + public static void syncMoveFolderStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_StringString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepository.java new file mode 100644 index 000000000000..67eb0ccb9faa --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepository.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.longrunning.Operation; + +public class AsyncMoveRepository { + + public static void main(String[] args) throws Exception { + asyncMoveRepository(); + } + + public static void asyncMoveRepository() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + ApiFuture future = dataformClient.moveRepositoryCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepositoryLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepositoryLRO.java new file mode 100644 index 000000000000..cd1f8f30daac --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepositoryLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.protobuf.Empty; + +public class AsyncMoveRepositoryLRO { + + public static void main(String[] args) throws Exception { + asyncMoveRepositoryLRO(); + } + + public static void asyncMoveRepositoryLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + OperationFuture future = + dataformClient.moveRepositoryOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepository.java new file mode 100644 index 000000000000..8b0409442260 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepository.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepository { + + public static void main(String[] args) throws Exception { + syncMoveRepository(); + } + + public static void syncMoveRepository() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + dataformClient.moveRepositoryAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java new file mode 100644 index 000000000000..8955eb4b008e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_RepositorynameString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepositoryRepositorynameString { + + public static void main(String[] args) throws Exception { + syncMoveRepositoryRepositorynameString(); + } + + public static void syncMoveRepositoryRepositorynameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_RepositorynameString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryStringString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryStringString.java new file mode 100644 index 000000000000..a09d44586281 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_StringString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepositoryStringString { + + public static void main(String[] args) throws Exception { + syncMoveRepositoryStringString(); + } + + public static void syncMoveRepositoryStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_StringString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java index f04d69a7c796..b0f5fd5cbca8 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java @@ -19,6 +19,7 @@ // [START dataform_v1_generated_Dataform_QueryDirectoryContents_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DirectoryContentsView; import com.google.cloud.dataform.v1.DirectoryEntry; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.WorkspaceName; @@ -44,6 +45,7 @@ public static void asyncQueryDirectoryContents() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); ApiFuture future = dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java index 480b5ebbc8fd..0a58ff9d1b73 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java @@ -18,6 +18,7 @@ // [START dataform_v1_generated_Dataform_QueryDirectoryContents_Paged_async] import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DirectoryContentsView; import com.google.cloud.dataform.v1.DirectoryEntry; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryDirectoryContentsResponse; @@ -45,6 +46,7 @@ public static void asyncQueryDirectoryContentsPaged() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); while (true) { QueryDirectoryContentsResponse response = diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java index 612510061a14..0f6640d69909 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java @@ -18,6 +18,7 @@ // [START dataform_v1_generated_Dataform_QueryDirectoryContents_sync] import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DirectoryContentsView; import com.google.cloud.dataform.v1.DirectoryEntry; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.WorkspaceName; @@ -43,6 +44,7 @@ public static void syncQueryDirectoryContents() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { // doThingsWith(element); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContents.java new file mode 100644 index 000000000000..00e456268ab7 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContents.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; + +public class AsyncQueryFolderContents { + + public static void main(String[] args) throws Exception { + asyncQueryFolderContents(); + } + + public static void asyncQueryFolderContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryFolderContentsPagedCallable().futureCall(request); + // Do something. + for (QueryFolderContentsResponse.FolderContentsEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java new file mode 100644 index 000000000000..b4f505cdcb43 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_Paged_async] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; +import com.google.common.base.Strings; + +public class AsyncQueryFolderContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryFolderContentsPaged(); + } + + public static void asyncQueryFolderContentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryFolderContentsResponse response = + dataformClient.queryFolderContentsCallable().call(request); + for (QueryFolderContentsResponse.FolderContentsEntry element : response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContents.java new file mode 100644 index 000000000000..9ce35f8f7f0f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContents.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; + +public class SyncQueryFolderContents { + + public static void main(String[] args) throws Exception { + syncQueryFolderContents(); + } + + public static void syncQueryFolderContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java new file mode 100644 index 000000000000..ded8c00cf803 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_Foldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; + +public class SyncQueryFolderContentsFoldername { + + public static void main(String[] args) throws Exception { + syncQueryFolderContentsFoldername(); + } + + public static void syncQueryFolderContentsFoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(folder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java new file mode 100644 index 000000000000..7b497be98a80 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; + +public class SyncQueryFolderContentsString { + + public static void main(String[] args) throws Exception { + syncQueryFolderContentsString(); + } + + public static void syncQueryFolderContentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(folder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java new file mode 100644 index 000000000000..6ed925b1c694 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class AsyncQueryTeamFolderContents { + + public static void main(String[] args) throws Exception { + asyncQueryTeamFolderContents(); + } + + public static void asyncQueryTeamFolderContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryTeamFolderContentsPagedCallable().futureCall(request); + // Do something. + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java new file mode 100644 index 000000000000..af57180bbecd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_Paged_async] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.common.base.Strings; + +public class AsyncQueryTeamFolderContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryTeamFolderContentsPaged(); + } + + public static void asyncQueryTeamFolderContentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryTeamFolderContentsResponse response = + dataformClient.queryTeamFolderContentsCallable().call(request); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java new file mode 100644 index 000000000000..d0a54b23cb80 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncQueryTeamFolderContents { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContents(); + } + + public static void syncQueryTeamFolderContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java new file mode 100644 index 000000000000..ccaaa9dee5be --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncQueryTeamFolderContentsString { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContentsString(); + } + + public static void syncQueryTeamFolderContentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java new file mode 100644 index 000000000000..2b5027091762 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_Teamfoldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncQueryTeamFolderContentsTeamfoldername { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContentsTeamfoldername(); + } + + public static void syncQueryTeamFolderContentsTeamfoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java new file mode 100644 index 000000000000..ad6b11038fd1 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; + +public class AsyncQueryUserRootContents { + + public static void main(String[] args) throws Exception { + asyncQueryUserRootContents(); + } + + public static void asyncQueryUserRootContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryUserRootContentsPagedCallable().futureCall(request); + // Do something. + for (QueryUserRootContentsResponse.RootContentsEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java new file mode 100644 index 000000000000..3448417d51e5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_Paged_async] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; +import com.google.common.base.Strings; + +public class AsyncQueryUserRootContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryUserRootContentsPaged(); + } + + public static void asyncQueryUserRootContentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryUserRootContentsResponse response = + dataformClient.queryUserRootContentsCallable().call(request); + for (QueryUserRootContentsResponse.RootContentsEntry element : response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java new file mode 100644 index 000000000000..af20ca815c94 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContents { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContents(); + } + + public static void syncQueryUserRootContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java new file mode 100644 index 000000000000..9c6df58a4366 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_Locationname_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContentsLocationname { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContentsLocationname(); + } + + public static void syncQueryUserRootContentsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(location).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_Locationname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java new file mode 100644 index 000000000000..b3c3e527ae01 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContentsString { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContentsString(); + } + + public static void syncQueryUserRootContentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(location).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFolders.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFolders.java new file mode 100644 index 000000000000..87dfb96db17f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFolders.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_SearchTeamFolders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; + +public class AsyncSearchTeamFolders { + + public static void main(String[] args) throws Exception { + asyncSearchTeamFolders(); + } + + public static void asyncSearchTeamFolders() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.searchTeamFoldersPagedCallable().futureCall(request); + // Do something. + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_SearchTeamFolders_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java new file mode 100644 index 000000000000..8bfa159afb88 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_SearchTeamFolders_Paged_async] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; +import com.google.common.base.Strings; + +public class AsyncSearchTeamFoldersPaged { + + public static void main(String[] args) throws Exception { + asyncSearchTeamFoldersPaged(); + } + + public static void asyncSearchTeamFoldersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + SearchTeamFoldersResponse response = + dataformClient.searchTeamFoldersCallable().call(request); + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : response.getResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1_generated_Dataform_SearchTeamFolders_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/SyncSearchTeamFolders.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/SyncSearchTeamFolders.java new file mode 100644 index 000000000000..71303f0bc265 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/SyncSearchTeamFolders.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_SearchTeamFolders_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; + +public class SyncSearchTeamFolders { + + public static void main(String[] args) throws Exception { + syncSearchTeamFolders(); + } + + public static void syncSearchTeamFolders() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : + dataformClient.searchTeamFolders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_SearchTeamFolders_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/AsyncSetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/AsyncSetIamPolicy.java index be1db17bbd3f..0d2260e277b1 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/AsyncSetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/AsyncSetIamPolicy.java @@ -19,7 +19,7 @@ // [START dataform_v1_generated_Dataform_SetIamPolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.protobuf.FieldMask; @@ -39,7 +39,7 @@ public static void asyncSetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/SyncSetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/SyncSetIamPolicy.java index d322a5608b53..dd8592ae472e 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/SyncSetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/SyncSetIamPolicy.java @@ -18,7 +18,7 @@ // [START dataform_v1_generated_Dataform_SetIamPolicy_sync] import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.protobuf.FieldMask; @@ -38,7 +38,7 @@ public static void syncSetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/AsyncTestIamPermissions.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/AsyncTestIamPermissions.java index c00a705d0717..1d532f9e1eb4 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/AsyncTestIamPermissions.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/AsyncTestIamPermissions.java @@ -19,7 +19,7 @@ // [START dataform_v1_generated_Dataform_TestIamPermissions_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import java.util.ArrayList; @@ -39,7 +39,7 @@ public static void asyncTestIamPermissions() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .addAllPermissions(new ArrayList()) .build(); ApiFuture future = diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/SyncTestIamPermissions.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/SyncTestIamPermissions.java index 1efcad1b1235..d186eaa610f4 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/SyncTestIamPermissions.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/SyncTestIamPermissions.java @@ -18,7 +18,7 @@ // [START dataform_v1_generated_Dataform_TestIamPermissions_sync] import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import java.util.ArrayList; @@ -38,7 +38,7 @@ public static void syncTestIamPermissions() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .addAllPermissions(new ArrayList()) .build(); TestIamPermissionsResponse response = dataformClient.testIamPermissions(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/AsyncUpdateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/AsyncUpdateFolder.java new file mode 100644 index 000000000000..bfce56144860 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/AsyncUpdateFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.UpdateFolderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFolder { + + public static void main(String[] args) throws Exception { + asyncUpdateFolder(); + } + + public static void asyncUpdateFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateFolderRequest request = + UpdateFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFolder(Folder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.updateFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolder.java new file mode 100644 index 000000000000..d6573c91c513 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.UpdateFolderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFolder { + + public static void main(String[] args) throws Exception { + syncUpdateFolder(); + } + + public static void syncUpdateFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateFolderRequest request = + UpdateFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFolder(Folder.newBuilder().build()) + .build(); + Folder response = dataformClient.updateFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java new file mode 100644 index 000000000000..2a69e25cb9dd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateFolder_FolderFieldmask_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFolderFolderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFolderFolderFieldmask(); + } + + public static void syncUpdateFolderFolderFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Folder response = dataformClient.updateFolder(folder, updateMask); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateFolder_FolderFieldmask_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java new file mode 100644 index 000000000000..135dc2448580 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTeamFolder { + + public static void main(String[] args) throws Exception { + asyncUpdateTeamFolder(); + } + + public static void asyncUpdateTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateTeamFolderRequest request = + UpdateTeamFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.updateTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolder.java new file mode 100644 index 000000000000..8787bc5fe1d0 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateTeamFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTeamFolder { + + public static void main(String[] args) throws Exception { + syncUpdateTeamFolder(); + } + + public static void syncUpdateTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateTeamFolderRequest request = + UpdateTeamFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + TeamFolder response = dataformClient.updateTeamFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java new file mode 100644 index 000000000000..dfad7fa71a0e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateTeamFolder_TeamfolderFieldmask_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTeamFolderTeamfolderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateTeamFolderTeamfolderFieldmask(); + } + + public static void syncUpdateTeamFolderTeamfolderFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + TeamFolder response = dataformClient.updateTeamFolder(teamFolder, updateMask); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateTeamFolder_TeamfolderFieldmask_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..e07b2c84e142 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_DataformSettings_DeleteTeamFolderTree_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.dataform.v1.DataformSettings; +import java.time.Duration; + +public class SyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTree(); + } + + public static void syncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataformSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END dataform_v1_generated_DataformSettings_DeleteTeamFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getrepository/SyncGetRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getteamfolder/SyncGetTeamFolder.java similarity index 86% rename from java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getrepository/SyncGetRepository.java rename to java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getteamfolder/SyncGetTeamFolder.java index 7304600b878b..c37ce1961d1a 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getrepository/SyncGetRepository.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getteamfolder/SyncGetTeamFolder.java @@ -16,17 +16,17 @@ package com.google.cloud.dataform.v1.samples; -// [START dataform_v1_generated_DataformSettings_GetRepository_sync] +// [START dataform_v1_generated_DataformSettings_GetTeamFolder_sync] import com.google.cloud.dataform.v1.DataformSettings; import java.time.Duration; -public class SyncGetRepository { +public class SyncGetTeamFolder { public static void main(String[] args) throws Exception { - syncGetRepository(); + syncGetTeamFolder(); } - public static void syncGetRepository() throws Exception { + public static void syncGetTeamFolder() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -34,10 +34,10 @@ public static void syncGetRepository() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder(); dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .setRetrySettings( dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -52,4 +52,4 @@ public static void syncGetRepository() throws Exception { DataformSettings dataformSettings = dataformSettingsBuilder.build(); } } -// [END dataform_v1_generated_DataformSettings_GetRepository_sync] +// [END dataform_v1_generated_DataformSettings_GetTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..fd5778cc3193 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataform.v1.stub.samples; + +// [START dataform_v1_generated_DataformStubSettings_DeleteTeamFolderTree_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.dataform.v1.stub.DataformStubSettings; +import java.time.Duration; + +public class SyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTree(); + } + + public static void syncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataformSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END dataform_v1_generated_DataformStubSettings_DeleteTeamFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getrepository/SyncGetRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java similarity index 86% rename from java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getrepository/SyncGetRepository.java rename to java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java index 54cc0b021d5d..9dd655c89c25 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getrepository/SyncGetRepository.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java @@ -16,17 +16,17 @@ package com.google.cloud.dataform.v1.stub.samples; -// [START dataform_v1_generated_DataformStubSettings_GetRepository_sync] +// [START dataform_v1_generated_DataformStubSettings_GetTeamFolder_sync] import com.google.cloud.dataform.v1.stub.DataformStubSettings; import java.time.Duration; -public class SyncGetRepository { +public class SyncGetTeamFolder { public static void main(String[] args) throws Exception { - syncGetRepository(); + syncGetTeamFolder(); } - public static void syncGetRepository() throws Exception { + public static void syncGetTeamFolder() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -34,10 +34,10 @@ public static void syncGetRepository() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder(); dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .setRetrySettings( dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -52,4 +52,4 @@ public static void syncGetRepository() throws Exception { DataformStubSettings dataformSettings = dataformSettingsBuilder.build(); } } -// [END dataform_v1_generated_DataformStubSettings_GetRepository_sync] +// [END dataform_v1_generated_DataformStubSettings_GetTeamFolder_sync] diff --git a/java-datamanager/README.md b/java-datamanager/README.md index 89c304744554..07df0e122ebe 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads data-manager - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.8.0' +implementation 'com.google.api-ads:data-manager:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.8.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.9.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/data-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceClient.java index 9ca61bfde521..54ed9622065f 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceClient.java @@ -71,7 +71,6 @@ *

            This method supports the following optional headers to define how the API authorizes access for the request: *

              *
            • `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
            • `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` *
            * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -96,7 +95,6 @@ *

            This method supports the following optional headers to define how the API authorizes access for the request: *

              *
            • `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
            • `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` *
            * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -121,7 +119,6 @@ *

            This method supports the following optional headers to define how the API authorizes access for the request: *

              *
            • `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
            • `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` *
            * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -261,9 +258,6 @@ public PartnerLinkServiceStub getStub() { *
          • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
          • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` *
          * *

          Sample code: @@ -308,9 +302,6 @@ public final PartnerLink createPartnerLink(AccountName parent, PartnerLink partn *

        • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
        • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` *
        * *

        Sample code: @@ -352,9 +343,6 @@ public final PartnerLink createPartnerLink(String parent, PartnerLink partnerLin *

      • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
      • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` *
      * *

      Sample code: @@ -395,9 +383,6 @@ public final PartnerLink createPartnerLink(CreatePartnerLinkRequest request) { *

    • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
    • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` *
    * *

    Sample code: @@ -438,9 +423,6 @@ public final UnaryCallable createPartnerL *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` *
* *

Sample code: @@ -482,9 +464,6 @@ public final void deletePartnerLink(PartnerLinkName name) { *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * *

    Sample code: @@ -523,9 +502,6 @@ public final void deletePartnerLink(String name) { *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * *

    Sample code: @@ -566,9 +542,6 @@ public final void deletePartnerLink(DeletePartnerLinkRequest request) { *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * *

    Sample code: @@ -609,9 +582,6 @@ public final UnaryCallable deletePartnerLinkCal *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * *

    Sample code: @@ -657,9 +627,6 @@ public final SearchPartnerLinksPagedResponse searchPartnerLinks(AccountName pare *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * *

    Sample code: @@ -703,9 +670,6 @@ public final SearchPartnerLinksPagedResponse searchPartnerLinks(String parent) { *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * *

    Sample code: @@ -752,9 +716,6 @@ public final SearchPartnerLinksPagedResponse searchPartnerLinks( *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * *

    Sample code: @@ -800,9 +761,6 @@ public final SearchPartnerLinksPagedResponse searchPartnerLinks( *

  • `login-account`: (Optional) The resource name of the account where the Google Account of * the credentials is a user. If not set, defaults to the account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - *
  • `linked-account`: (Optional) The resource name of the account with an established product - * link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * * *

    Sample code: diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcPartnerLinkServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcPartnerLinkServiceStub.java index 039e4af4bd1a..1c0985377baa 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcPartnerLinkServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcPartnerLinkServiceStub.java @@ -140,6 +140,7 @@ protected GrpcPartnerLinkServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deletePartnerLinkTransportSettings = GrpcCallSettings.newBuilder() @@ -150,6 +151,7 @@ protected GrpcPartnerLinkServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings searchPartnerLinksTransportSettings = @@ -161,6 +163,7 @@ protected GrpcPartnerLinkServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); this.createPartnerLinkCallable = diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListDirectLicenseServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListDirectLicenseServiceStub.java index 6a31ee084974..95db1daf0190 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListDirectLicenseServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListDirectLicenseServiceStub.java @@ -169,6 +169,7 @@ protected GrpcUserListDirectLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getUserListDirectLicenseTransportSettings = @@ -180,6 +181,7 @@ protected GrpcUserListDirectLicenseServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateUserListDirectLicenseTransportSettings = @@ -205,6 +207,7 @@ protected GrpcUserListDirectLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); this.createUserListDirectLicenseCallable = diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListGlobalLicenseServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListGlobalLicenseServiceStub.java index 95eb368be8ca..65c037f5e398 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListGlobalLicenseServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListGlobalLicenseServiceStub.java @@ -200,6 +200,7 @@ protected GrpcUserListGlobalLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateUserListGlobalLicenseTransportSettings = @@ -224,6 +225,7 @@ protected GrpcUserListGlobalLicenseServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listUserListGlobalLicensesTransportSettings = @@ -236,6 +238,7 @@ protected GrpcUserListGlobalLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings< ListUserListGlobalLicenseCustomerInfosRequest, @@ -252,6 +255,7 @@ protected GrpcUserListGlobalLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); this.createUserListGlobalLicenseCallable = diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListServiceStub.java index 3a614afada8f..1d2563520e18 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcUserListServiceStub.java @@ -163,6 +163,7 @@ protected GrpcUserListServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listUserListsTransportSettings = GrpcCallSettings.newBuilder() @@ -173,6 +174,7 @@ protected GrpcUserListServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createUserListTransportSettings = GrpcCallSettings.newBuilder() @@ -183,6 +185,7 @@ protected GrpcUserListServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateUserListTransportSettings = GrpcCallSettings.newBuilder() @@ -203,6 +206,7 @@ protected GrpcUserListServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); this.getUserListCallable = diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonPartnerLinkServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonPartnerLinkServiceStub.java index c5b6c2360fe5..70e324cfb189 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonPartnerLinkServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonPartnerLinkServiceStub.java @@ -224,6 +224,7 @@ protected HttpJsonPartnerLinkServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deletePartnerLinkTransportSettings = HttpJsonCallSettings.newBuilder() @@ -235,6 +236,7 @@ protected HttpJsonPartnerLinkServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings searchPartnerLinksTransportSettings = @@ -247,6 +249,7 @@ protected HttpJsonPartnerLinkServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); this.createPartnerLinkCallable = diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListDirectLicenseServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListDirectLicenseServiceStub.java index 1b10ec9d50fb..e1187bc0b111 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListDirectLicenseServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListDirectLicenseServiceStub.java @@ -289,6 +289,7 @@ protected HttpJsonUserListDirectLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getUserListDirectLicenseTransportSettings = @@ -302,6 +303,7 @@ protected HttpJsonUserListDirectLicenseServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateUserListDirectLicenseTransportSettings = @@ -330,6 +332,7 @@ protected HttpJsonUserListDirectLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); this.createUserListDirectLicenseCallable = diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListGlobalLicenseServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListGlobalLicenseServiceStub.java index 192eb162bb8a..4a416d88ad35 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListGlobalLicenseServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListGlobalLicenseServiceStub.java @@ -346,6 +346,7 @@ protected HttpJsonUserListGlobalLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateUserListGlobalLicenseTransportSettings = @@ -374,6 +375,7 @@ protected HttpJsonUserListGlobalLicenseServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listUserListGlobalLicensesTransportSettings = @@ -387,6 +389,7 @@ protected HttpJsonUserListGlobalLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings< ListUserListGlobalLicenseCustomerInfosRequest, @@ -404,6 +407,7 @@ protected HttpJsonUserListGlobalLicenseServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); this.createUserListGlobalLicenseCallable = diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListServiceStub.java index cafe2066d90f..0fb052402f99 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonUserListServiceStub.java @@ -304,6 +304,7 @@ protected HttpJsonUserListServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listUserListsTransportSettings = @@ -316,6 +317,7 @@ protected HttpJsonUserListServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createUserListTransportSettings = HttpJsonCallSettings.newBuilder() @@ -327,6 +329,7 @@ protected HttpJsonUserListServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateUserListTransportSettings = HttpJsonCallSettings.newBuilder() @@ -349,6 +352,7 @@ protected HttpJsonUserListServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); this.getUserListCallable = diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java index dae12ef14892..8c13f0f4c3ed 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java @@ -262,6 +262,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.api-ads:data-manager") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java index 3b55b5fdfc09..47add476f03f 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java @@ -235,6 +235,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.api-ads:data-manager") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java index 7a11e52e3c4a..cd18ca3a9d22 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java @@ -320,6 +320,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.api-ads:data-manager") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java index 9c63f95d5ea7..5531cbe18405 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java @@ -359,6 +359,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.api-ads:data-manager") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java index 6e8c0ca10ef5..6cf7e03156c0 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java @@ -462,6 +462,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.api-ads:data-manager") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java index ba72f3969d3e..85df83c73113 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java @@ -326,6 +326,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.api-ads:data-manager") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/Version.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/Version.java new file mode 100644 index 000000000000..136eaeb10ea0 --- /dev/null +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.ads.datamanager.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:data-manager:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json b/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json index fa48ca3e15a5..25fcce40af19 100644 --- a/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json +++ b/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json @@ -2015,6 +2015,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -2132,6 +2186,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceGrpc.java b/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceGrpc.java index 155e6ce11933..48252f83424e 100644 --- a/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceGrpc.java +++ b/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceGrpc.java @@ -248,9 +248,6 @@ public interface AsyncService { * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ default void createPartnerLink( @@ -272,9 +269,6 @@ default void createPartnerLink( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ default void deletePartnerLink( @@ -296,9 +290,6 @@ default void deletePartnerLink( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ default void searchPartnerLinks( @@ -357,9 +348,6 @@ protected PartnerLinkServiceStub build( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public void createPartnerLink( @@ -383,9 +371,6 @@ public void createPartnerLink( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public void deletePartnerLink( @@ -409,9 +394,6 @@ public void deletePartnerLink( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public void searchPartnerLinks( @@ -457,9 +439,6 @@ protected PartnerLinkServiceBlockingV2Stub build( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.ads.datamanager.v1.PartnerLink createPartnerLink( @@ -481,9 +460,6 @@ public com.google.ads.datamanager.v1.PartnerLink createPartnerLink( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.protobuf.Empty deletePartnerLink( @@ -505,9 +481,6 @@ public com.google.protobuf.Empty deletePartnerLink( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.ads.datamanager.v1.SearchPartnerLinksResponse searchPartnerLinks( @@ -550,9 +523,6 @@ protected PartnerLinkServiceBlockingStub build( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.ads.datamanager.v1.PartnerLink createPartnerLink( @@ -573,9 +543,6 @@ public com.google.ads.datamanager.v1.PartnerLink createPartnerLink( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.protobuf.Empty deletePartnerLink( @@ -596,9 +563,6 @@ public com.google.protobuf.Empty deletePartnerLink( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.ads.datamanager.v1.SearchPartnerLinksResponse searchPartnerLinks( @@ -639,9 +603,6 @@ protected PartnerLinkServiceFutureStub build( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.common.util.concurrent.ListenableFuture< @@ -663,9 +624,6 @@ protected PartnerLinkServiceFutureStub build( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.common.util.concurrent.ListenableFuture @@ -686,9 +644,6 @@ protected PartnerLinkServiceFutureStub build( * Google Account of the credentials is a user. If not set, defaults to the * account of the request. Format: * `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - * * `linked-account`: (Optional) The resource name of the account with an - * established product link to the `login-account`. Format: - * `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` * */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java index 2f12020a9fe0..b134f3349e20 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java @@ -49,7 +49,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n%google/ads/datamanager/v1/error.proto\022" - + "\031google.ads.datamanager.v1*\273\033\n\013ErrorReas" + + "\031google.ads.datamanager.v1*\207\034\n\013ErrorReas" + "on\022\034\n\030ERROR_REASON_UNSPECIFIED\020\000\022\022\n\016INTE" + "RNAL_ERROR\020\001\022\025\n\021DEADLINE_EXCEEDED\020\002\022\026\n\022R" + "ESOURCE_EXHAUSTED\020\003\022\r\n\tNOT_FOUND\020\004\022\025\n\021PE" @@ -137,12 +137,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "INFO_CONFIG\020`\0220\n,UNSUPPORTED_ACCOUNT_TYP" + "ES_FOR_USER_LIST_TYPE\020a\022-\n)UNSUPPORTED_A" + "CCOUNT_TYPE_FOR_PARTNER_LINK\020b\022 \n\034MEMBER" - + "SHIP_DURATION_TOO_LONG\020cB\307\001\n\035com.google." - + "ads.datamanager.v1B\nErrorProtoP\001ZAcloud." - + "google.com/go/datamanager/apiv1/datamana" - + "gerpb;datamanagerpb\252\002\031Google.Ads.DataMan" - + "ager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Go" - + "ogle::Ads::DataManager::V1b\006proto3" + + "SHIP_DURATION_TOO_LONG\020c\022\027\n\023INVALID_MERC" + + "HANT_ID\020d\0221\n-EU_POLITICAL_ADVERTISING_DE" + + "CLARATION_REQUIRED\020eB\307\001\n\035com.google.ads." + + "datamanager.v1B\nErrorProtoP\001ZAcloud.goog" + + "le.com/go/datamanager/apiv1/datamanagerp" + + "b;datamanagerpb\252\002\031Google.Ads.DataManager" + + ".V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google" + + "::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java index 40c1297a6238..60dc791ce8e3 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java @@ -1046,6 +1046,27 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * MEMBERSHIP_DURATION_TOO_LONG = 99; */ MEMBERSHIP_DURATION_TOO_LONG(99), + /** + * + * + *

    +   * The `merchant_id` field is not valid.
    +   * 
    + * + * INVALID_MERCHANT_ID = 100; + */ + INVALID_MERCHANT_ID(100), + /** + * + * + *
    +   * The customer contains non-exempt campaigns without the EU political
    +   * advertising declaration.
    +   * 
    + * + * EU_POLITICAL_ADVERTISING_DECLARATION_REQUIRED = 101; + */ + EU_POLITICAL_ADVERTISING_DECLARATION_REQUIRED(101), UNRECOGNIZED(-1), ; @@ -2172,6 +2193,29 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEMBERSHIP_DURATION_TOO_LONG_VALUE = 99; + /** + * + * + *
    +   * The `merchant_id` field is not valid.
    +   * 
    + * + * INVALID_MERCHANT_ID = 100; + */ + public static final int INVALID_MERCHANT_ID_VALUE = 100; + + /** + * + * + *
    +   * The customer contains non-exempt campaigns without the EU political
    +   * advertising declaration.
    +   * 
    + * + * EU_POLITICAL_ADVERTISING_DECLARATION_REQUIRED = 101; + */ + public static final int EU_POLITICAL_ADVERTISING_DECLARATION_REQUIRED_VALUE = 101; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2396,6 +2440,10 @@ public static ErrorReason forNumber(int value) { return UNSUPPORTED_ACCOUNT_TYPE_FOR_PARTNER_LINK; case 99: return MEMBERSHIP_DURATION_TOO_LONG; + case 100: + return INVALID_MERCHANT_ID; + case 101: + return EU_POLITICAL_ADVERTISING_DECLARATION_REQUIRED; default: return null; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto index 60d0efe4dd60..97cc0a11ccde 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto @@ -339,4 +339,11 @@ enum ErrorReason { // The user list membership duration is too long. MEMBERSHIP_DURATION_TOO_LONG = 99; + + // The `merchant_id` field is not valid. + INVALID_MERCHANT_ID = 100; + + // The customer contains non-exempt campaigns without the EU political + // advertising declaration. + EU_POLITICAL_ADVERTISING_DECLARATION_REQUIRED = 101; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto index 32b62f42f12b..fc4acbaa79f1 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto @@ -48,9 +48,6 @@ service PartnerLinkService { // Google Account of the credentials is a user. If not set, defaults to the // account of the request. Format: // `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - // * `linked-account`: (Optional) The resource name of the account with an - // established product link to the `login-account`. Format: - // `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` rpc CreatePartnerLink(CreatePartnerLinkRequest) returns (PartnerLink) { option (google.api.http) = { post: "/v1/{parent=accountTypes/*/accounts/*}/partnerLinks" @@ -70,9 +67,6 @@ service PartnerLinkService { // Google Account of the credentials is a user. If not set, defaults to the // account of the request. Format: // `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - // * `linked-account`: (Optional) The resource name of the account with an - // established product link to the `login-account`. Format: - // `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` rpc DeletePartnerLink(DeletePartnerLinkRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -92,9 +86,6 @@ service PartnerLinkService { // Google Account of the credentials is a user. If not set, defaults to the // account of the request. Format: // `accountTypes/{loginAccountType}/accounts/{loginAccountId}` - // * `linked-account`: (Optional) The resource name of the account with an - // established product link to the `login-account`. Format: - // `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}` rpc SearchPartnerLinks(SearchPartnerLinksRequest) returns (SearchPartnerLinksResponse) { option (google.api.http) = { diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 6877ca17ed64..6f6d5bf2063b 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.85.0 + 1.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.85.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.86.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataplex/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.86.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java index 763ff5742c6c..f6aee97688df 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java @@ -725,6 +725,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java index 748e0c655a91..542d8f5a0ffa 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java @@ -1277,6 +1277,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java index dc4d4524ca1e..04bb7430936a 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java @@ -517,6 +517,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java index 828a147b7e94..8264884fe3b1 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java @@ -624,6 +624,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java index 1199314a3859..957aaeeb5fff 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java @@ -587,6 +587,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java index 9e8ef775c042..48140b7f9247 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java @@ -886,6 +886,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java index 7fd2ad2518dd..04fb53e23858 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java @@ -1143,6 +1143,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcBusinessGlossaryServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcBusinessGlossaryServiceStub.java index 9d44daa4d6a3..93d3faff6e17 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcBusinessGlossaryServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcBusinessGlossaryServiceStub.java @@ -400,6 +400,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateGlossaryTransportSettings = GrpcCallSettings.newBuilder() @@ -420,6 +421,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getGlossaryTransportSettings = GrpcCallSettings.newBuilder() @@ -430,6 +432,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listGlossariesTransportSettings = @@ -441,6 +444,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createGlossaryCategoryTransportSettings = @@ -452,6 +456,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateGlossaryCategoryTransportSettings = @@ -473,6 +478,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getGlossaryCategoryTransportSettings = @@ -484,6 +490,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listGlossaryCategoriesTransportSettings = @@ -496,6 +503,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createGlossaryTermTransportSettings = GrpcCallSettings.newBuilder() @@ -506,6 +514,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateGlossaryTermTransportSettings = GrpcCallSettings.newBuilder() @@ -526,6 +535,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getGlossaryTermTransportSettings = GrpcCallSettings.newBuilder() @@ -536,6 +546,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listGlossaryTermsTransportSettings = @@ -547,6 +558,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -577,6 +589,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -587,6 +600,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -598,6 +612,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createGlossaryCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCatalogServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCatalogServiceStub.java index abc4db67f3c8..6212083286ae 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCatalogServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCatalogServiceStub.java @@ -714,6 +714,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntryTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -734,6 +735,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEntryTypesTransportSettings = @@ -745,6 +747,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEntryTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -755,6 +758,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAspectTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -765,6 +769,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAspectTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -786,6 +791,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAspectTypesTransportSettings = @@ -797,6 +803,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAspectTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -807,6 +814,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createEntryGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -817,6 +825,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntryGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -838,6 +847,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEntryGroupsTransportSettings = @@ -849,6 +859,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEntryGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -859,6 +870,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createEntryTransportSettings = GrpcCallSettings.newBuilder() @@ -869,6 +881,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntryTransportSettings = GrpcCallSettings.newBuilder() @@ -889,6 +902,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEntriesTransportSettings = GrpcCallSettings.newBuilder() @@ -899,6 +913,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEntryTransportSettings = GrpcCallSettings.newBuilder() @@ -909,6 +924,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings lookupEntryTransportSettings = GrpcCallSettings.newBuilder() @@ -919,6 +935,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getEntry()) .build(); GrpcCallSettings searchEntriesTransportSettings = GrpcCallSettings.newBuilder() @@ -929,6 +946,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createMetadataJobTransportSettings = GrpcCallSettings.newBuilder() @@ -939,6 +957,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getMetadataJobTransportSettings = GrpcCallSettings.newBuilder() @@ -949,6 +968,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listMetadataJobsTransportSettings = @@ -960,6 +980,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings cancelMetadataJobTransportSettings = GrpcCallSettings.newBuilder() @@ -970,6 +991,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createEntryLinkTransportSettings = GrpcCallSettings.newBuilder() @@ -980,6 +1002,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntryLinkTransportSettings = GrpcCallSettings.newBuilder() @@ -1000,6 +1023,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings lookupEntryLinksTransportSettings = @@ -1011,6 +1035,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getEntry()) .build(); GrpcCallSettings lookupContextTransportSettings = GrpcCallSettings.newBuilder() @@ -1031,6 +1056,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createMetadataFeedTransportSettings = GrpcCallSettings.newBuilder() @@ -1041,6 +1067,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getMetadataFeedTransportSettings = GrpcCallSettings.newBuilder() @@ -1051,6 +1078,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listMetadataFeedsTransportSettings = @@ -1062,6 +1090,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteMetadataFeedTransportSettings = GrpcCallSettings.newBuilder() @@ -1072,6 +1101,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateMetadataFeedTransportSettings = GrpcCallSettings.newBuilder() @@ -1113,6 +1143,7 @@ protected GrpcCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -1123,6 +1154,7 @@ protected GrpcCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -1134,6 +1166,7 @@ protected GrpcCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEntryTypeCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCmekServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCmekServiceStub.java index 3822c36f192f..6262b2842151 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCmekServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCmekServiceStub.java @@ -249,6 +249,7 @@ protected GrpcCmekServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEncryptionConfigTransportSettings = @@ -273,6 +274,7 @@ protected GrpcCmekServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEncryptionConfigsTransportSettings = @@ -285,6 +287,7 @@ protected GrpcCmekServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEncryptionConfigTransportSettings = @@ -296,6 +299,7 @@ protected GrpcCmekServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -326,6 +330,7 @@ protected GrpcCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -336,6 +341,7 @@ protected GrpcCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -347,6 +353,7 @@ protected GrpcCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEncryptionConfigCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataProductServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataProductServiceStub.java index 455422cf27d1..f14502f4824d 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataProductServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataProductServiceStub.java @@ -320,6 +320,7 @@ protected GrpcDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteDataProductTransportSettings = GrpcCallSettings.newBuilder() @@ -330,6 +331,7 @@ protected GrpcDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataProductTransportSettings = GrpcCallSettings.newBuilder() @@ -340,6 +342,7 @@ protected GrpcDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataProductsTransportSettings = @@ -351,6 +354,7 @@ protected GrpcDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataProductTransportSettings = GrpcCallSettings.newBuilder() @@ -372,6 +376,7 @@ protected GrpcDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -392,6 +397,7 @@ protected GrpcDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -402,6 +408,7 @@ protected GrpcDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataAssetsTransportSettings = @@ -413,6 +420,7 @@ protected GrpcDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -443,6 +451,7 @@ protected GrpcDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -453,6 +462,7 @@ protected GrpcDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -464,6 +474,7 @@ protected GrpcDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataProductCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java index e3b82fb07378..1520098b3a1b 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java @@ -307,6 +307,7 @@ protected GrpcDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataScanTransportSettings = GrpcCallSettings.newBuilder() @@ -327,6 +328,7 @@ protected GrpcDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataScanTransportSettings = GrpcCallSettings.newBuilder() @@ -337,6 +339,7 @@ protected GrpcDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataScansTransportSettings = GrpcCallSettings.newBuilder() @@ -347,6 +350,7 @@ protected GrpcDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings runDataScanTransportSettings = GrpcCallSettings.newBuilder() @@ -357,6 +361,7 @@ protected GrpcDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataScanJobTransportSettings = GrpcCallSettings.newBuilder() @@ -367,6 +372,7 @@ protected GrpcDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataScanJobsTransportSettings = @@ -378,6 +384,7 @@ protected GrpcDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings generateDataQualityRulesTransportSettings = @@ -420,6 +427,7 @@ protected GrpcDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -430,6 +438,7 @@ protected GrpcDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -441,6 +450,7 @@ protected GrpcDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataScanCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataTaxonomyServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataTaxonomyServiceStub.java index 2eac4c2505f7..1bfee979228a 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataTaxonomyServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataTaxonomyServiceStub.java @@ -418,6 +418,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataTaxonomyTransportSettings = GrpcCallSettings.newBuilder() @@ -439,6 +440,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataTaxonomiesTransportSettings = @@ -450,6 +452,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDataTaxonomyTransportSettings = GrpcCallSettings.newBuilder() @@ -460,6 +463,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createDataAttributeBindingTransportSettings = @@ -471,6 +475,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataAttributeBindingTransportSettings = @@ -495,6 +500,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataAttributeBindingsTransportSettings = @@ -507,6 +513,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDataAttributeBindingTransportSettings = @@ -518,6 +525,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createDataAttributeTransportSettings = GrpcCallSettings.newBuilder() @@ -528,6 +536,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataAttributeTransportSettings = GrpcCallSettings.newBuilder() @@ -549,6 +558,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataAttributesTransportSettings = @@ -560,6 +570,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDataAttributeTransportSettings = GrpcCallSettings.newBuilder() @@ -570,6 +581,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -600,6 +612,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -610,6 +623,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -621,6 +635,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataTaxonomyCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataplexServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataplexServiceStub.java index dc629e1947bb..e85c3973e986 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataplexServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataplexServiceStub.java @@ -533,6 +533,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateLakeTransportSettings = GrpcCallSettings.newBuilder() @@ -553,6 +554,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLakesTransportSettings = GrpcCallSettings.newBuilder() @@ -563,6 +565,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getLakeTransportSettings = GrpcCallSettings.newBuilder() @@ -573,6 +576,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLakeActionsTransportSettings = GrpcCallSettings.newBuilder() @@ -583,6 +587,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createZoneTransportSettings = GrpcCallSettings.newBuilder() @@ -593,6 +598,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateZoneTransportSettings = GrpcCallSettings.newBuilder() @@ -613,6 +619,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listZonesTransportSettings = GrpcCallSettings.newBuilder() @@ -623,6 +630,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getZoneTransportSettings = GrpcCallSettings.newBuilder() @@ -633,6 +641,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listZoneActionsTransportSettings = GrpcCallSettings.newBuilder() @@ -643,6 +652,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -653,6 +663,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -673,6 +684,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAssetsTransportSettings = GrpcCallSettings.newBuilder() @@ -683,6 +695,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -693,6 +706,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAssetActionsTransportSettings = @@ -704,6 +718,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createTaskTransportSettings = GrpcCallSettings.newBuilder() @@ -714,6 +729,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateTaskTransportSettings = GrpcCallSettings.newBuilder() @@ -734,6 +750,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listTasksTransportSettings = GrpcCallSettings.newBuilder() @@ -744,6 +761,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getTaskTransportSettings = GrpcCallSettings.newBuilder() @@ -754,6 +772,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() @@ -764,6 +783,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings runTaskTransportSettings = GrpcCallSettings.newBuilder() @@ -774,6 +794,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() @@ -784,6 +805,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings cancelJobTransportSettings = GrpcCallSettings.newBuilder() @@ -794,6 +816,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -824,6 +847,7 @@ protected GrpcDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -834,6 +858,7 @@ protected GrpcDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -845,6 +870,7 @@ protected GrpcDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createLakeCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcMetadataServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcMetadataServiceStub.java index 7ed57046dd07..f9a7556c4fbb 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcMetadataServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcMetadataServiceStub.java @@ -282,6 +282,7 @@ protected GrpcMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntityTransportSettings = GrpcCallSettings.newBuilder() @@ -302,6 +303,7 @@ protected GrpcMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getEntityTransportSettings = GrpcCallSettings.newBuilder() @@ -312,6 +314,7 @@ protected GrpcMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEntitiesTransportSettings = GrpcCallSettings.newBuilder() @@ -322,6 +325,7 @@ protected GrpcMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createPartitionTransportSettings = GrpcCallSettings.newBuilder() @@ -332,6 +336,7 @@ protected GrpcMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deletePartitionTransportSettings = GrpcCallSettings.newBuilder() @@ -342,6 +347,7 @@ protected GrpcMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getPartitionTransportSettings = GrpcCallSettings.newBuilder() @@ -352,6 +358,7 @@ protected GrpcMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listPartitionsTransportSettings = @@ -363,6 +370,7 @@ protected GrpcMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -393,6 +401,7 @@ protected GrpcMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -403,6 +412,7 @@ protected GrpcMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -414,6 +424,7 @@ protected GrpcMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEntityCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonBusinessGlossaryServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonBusinessGlossaryServiceStub.java index a1e3bad5ec63..e53e37d4faa4 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonBusinessGlossaryServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonBusinessGlossaryServiceStub.java @@ -1044,6 +1044,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateGlossaryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1066,6 +1067,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getGlossaryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1077,6 +1079,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listGlossariesTransportSettings = @@ -1089,6 +1092,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createGlossaryCategoryTransportSettings = @@ -1101,6 +1105,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateGlossaryCategoryTransportSettings = @@ -1125,6 +1130,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getGlossaryCategoryTransportSettings = @@ -1137,6 +1143,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listGlossaryCategoriesTransportSettings = @@ -1150,6 +1157,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createGlossaryTermTransportSettings = @@ -1162,6 +1170,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateGlossaryTermTransportSettings = @@ -1185,6 +1194,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getGlossaryTermTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1196,6 +1206,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listGlossaryTermsTransportSettings = @@ -1208,6 +1219,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -1242,6 +1254,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1253,6 +1266,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1265,6 +1279,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createGlossaryCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java index 0e95ddde2606..560d9602a88d 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java @@ -1995,6 +1995,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntryTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2017,6 +2018,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEntryTypesTransportSettings = @@ -2029,6 +2031,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEntryTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2040,6 +2043,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAspectTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2051,6 +2055,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAspectTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2074,6 +2079,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listAspectTypesTransportSettings = @@ -2086,6 +2092,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAspectTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2097,6 +2104,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createEntryGroupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2108,6 +2116,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntryGroupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2131,6 +2140,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEntryGroupsTransportSettings = @@ -2143,6 +2153,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEntryGroupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2154,6 +2165,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createEntryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2165,6 +2177,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2187,6 +2200,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEntriesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2198,6 +2212,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEntryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2209,6 +2224,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings lookupEntryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2220,6 +2236,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getEntry()) .build(); HttpJsonCallSettings searchEntriesTransportSettings = @@ -2232,6 +2249,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createMetadataJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2243,6 +2261,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getMetadataJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2254,6 +2273,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listMetadataJobsTransportSettings = @@ -2266,6 +2286,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings cancelMetadataJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2277,6 +2298,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createEntryLinkTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2288,6 +2310,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntryLinkTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2310,6 +2333,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings lookupEntryLinksTransportSettings = @@ -2322,6 +2346,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getEntry()) .build(); HttpJsonCallSettings lookupContextTransportSettings = @@ -2345,6 +2370,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createMetadataFeedTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2356,6 +2382,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getMetadataFeedTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2367,6 +2394,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listMetadataFeedsTransportSettings = @@ -2379,6 +2407,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteMetadataFeedTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2390,6 +2419,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateMetadataFeedTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2436,6 +2466,7 @@ protected HttpJsonCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2447,6 +2478,7 @@ protected HttpJsonCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -2459,6 +2491,7 @@ protected HttpJsonCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEntryTypeCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCmekServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCmekServiceStub.java index a230fa9cad96..c9ab9ed72afa 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCmekServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCmekServiceStub.java @@ -640,6 +640,7 @@ protected HttpJsonCmekServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEncryptionConfigTransportSettings = @@ -666,6 +667,7 @@ protected HttpJsonCmekServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEncryptionConfigsTransportSettings = @@ -679,6 +681,7 @@ protected HttpJsonCmekServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEncryptionConfigTransportSettings = @@ -691,6 +694,7 @@ protected HttpJsonCmekServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -725,6 +729,7 @@ protected HttpJsonCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -736,6 +741,7 @@ protected HttpJsonCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -748,6 +754,7 @@ protected HttpJsonCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEncryptionConfigCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataProductServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataProductServiceStub.java index db91a7a9225c..b1493227fbee 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataProductServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataProductServiceStub.java @@ -859,6 +859,7 @@ protected HttpJsonDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteDataProductTransportSettings = HttpJsonCallSettings.newBuilder() @@ -870,6 +871,7 @@ protected HttpJsonDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataProductTransportSettings = HttpJsonCallSettings.newBuilder() @@ -881,6 +883,7 @@ protected HttpJsonDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataProductsTransportSettings = @@ -893,6 +896,7 @@ protected HttpJsonDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataProductTransportSettings = HttpJsonCallSettings.newBuilder() @@ -916,6 +920,7 @@ protected HttpJsonDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -938,6 +943,7 @@ protected HttpJsonDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -949,6 +955,7 @@ protected HttpJsonDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataAssetsTransportSettings = @@ -961,6 +968,7 @@ protected HttpJsonDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -995,6 +1003,7 @@ protected HttpJsonDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1006,6 +1015,7 @@ protected HttpJsonDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1018,6 +1028,7 @@ protected HttpJsonDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataProductCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java index c2ece90de569..4835ac4ac0f7 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java @@ -800,6 +800,7 @@ protected HttpJsonDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataScanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -822,6 +823,7 @@ protected HttpJsonDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataScanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -833,6 +835,7 @@ protected HttpJsonDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataScansTransportSettings = @@ -845,6 +848,7 @@ protected HttpJsonDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings runDataScanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -856,6 +860,7 @@ protected HttpJsonDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataScanJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -867,6 +872,7 @@ protected HttpJsonDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataScanJobsTransportSettings = @@ -879,6 +885,7 @@ protected HttpJsonDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings generateDataQualityRulesTransportSettings = @@ -926,6 +933,7 @@ protected HttpJsonDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -937,6 +945,7 @@ protected HttpJsonDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -949,6 +958,7 @@ protected HttpJsonDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataScanCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataTaxonomyServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataTaxonomyServiceStub.java index b536a0d8ebcc..5b0d35c50e97 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataTaxonomyServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataTaxonomyServiceStub.java @@ -1104,6 +1104,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataTaxonomyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1127,6 +1128,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataTaxonomiesTransportSettings = @@ -1139,6 +1141,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDataTaxonomyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1150,6 +1153,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createDataAttributeBindingTransportSettings = @@ -1162,6 +1166,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataAttributeBindingTransportSettings = @@ -1188,6 +1193,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataAttributeBindingsTransportSettings = @@ -1201,6 +1207,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDataAttributeBindingTransportSettings = @@ -1213,6 +1220,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createDataAttributeTransportSettings = @@ -1225,6 +1233,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataAttributeTransportSettings = @@ -1251,6 +1260,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataAttributesTransportSettings = @@ -1263,6 +1273,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDataAttributeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1274,6 +1285,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -1308,6 +1320,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1319,6 +1332,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1331,6 +1345,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataTaxonomyCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataplexServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataplexServiceStub.java index 8ec0bc029ae4..6b2b78a9145d 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataplexServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataplexServiceStub.java @@ -1550,6 +1550,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateLakeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1572,6 +1573,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLakesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1583,6 +1585,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getLakeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1594,6 +1597,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLakeActionsTransportSettings = @@ -1606,6 +1610,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createZoneTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1617,6 +1622,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateZoneTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1639,6 +1645,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listZonesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1650,6 +1657,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getZoneTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1661,6 +1669,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listZoneActionsTransportSettings = @@ -1673,6 +1682,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1684,6 +1694,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1706,6 +1717,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listAssetsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1717,6 +1729,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1728,6 +1741,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listAssetActionsTransportSettings = @@ -1740,6 +1754,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createTaskTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1751,6 +1766,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateTaskTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1773,6 +1789,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listTasksTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1784,6 +1801,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getTaskTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1795,6 +1813,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listJobsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1806,6 +1825,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings runTaskTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1817,6 +1837,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1828,6 +1849,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings cancelJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1839,6 +1861,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -1873,6 +1896,7 @@ protected HttpJsonDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1884,6 +1908,7 @@ protected HttpJsonDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1896,6 +1921,7 @@ protected HttpJsonDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createLakeCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonMetadataServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonMetadataServiceStub.java index f79c993e38ab..e43b842fadce 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonMetadataServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonMetadataServiceStub.java @@ -715,6 +715,7 @@ protected HttpJsonMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntityTransportSettings = HttpJsonCallSettings.newBuilder() @@ -737,6 +738,7 @@ protected HttpJsonMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getEntityTransportSettings = HttpJsonCallSettings.newBuilder() @@ -748,6 +750,7 @@ protected HttpJsonMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEntitiesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -759,6 +762,7 @@ protected HttpJsonMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createPartitionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -770,6 +774,7 @@ protected HttpJsonMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deletePartitionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -781,6 +786,7 @@ protected HttpJsonMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getPartitionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -792,6 +798,7 @@ protected HttpJsonMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listPartitionsTransportSettings = @@ -804,6 +811,7 @@ protected HttpJsonMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -838,6 +846,7 @@ protected HttpJsonMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -849,6 +858,7 @@ protected HttpJsonMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -861,6 +871,7 @@ protected HttpJsonMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEntityCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java index 3689a815631e..0e68a26a1058 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java @@ -519,6 +519,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java new file mode 100644 index 000000000000..3f38af2e38cf --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.dataplex.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-dataplex:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json index 13660933691d..e243886e8a40 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json +++ b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -143,6 +197,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index 53ca676f815d..d237807d65cd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -278,7 +278,10 @@ * * *

    ListLocations - *

    Lists information about the supported locations for this service. + *

    Lists information about the supported locations for this service. + *

    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      @@ -1710,6 +1713,19 @@ public final GenerativeSettings updateGenerativeSettings( /** * Lists information about the supported locations for this service. * + *

      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

      Sample code: * *

      {@code
      @@ -1743,6 +1759,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
         /**
          * Lists information about the supported locations for this service.
          *
      +   * 

      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

      Sample code: * *

      {@code
      @@ -1776,6 +1805,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
         /**
          * Lists information about the supported locations for this service.
          *
      +   * 

      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

      Sample code: * *

      {@code
      diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java
      index b09cf75b7bfd..654777b5f0c4 100644
      --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java
      +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java
      @@ -106,7 +106,10 @@
        *    
        *    
        *      

      ListLocations - *

      Lists information about the supported locations for this service. + *

      Lists information about the supported locations for this service. + *

      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -520,6 +523,19 @@ public final UnaryCallable getChangelogCallable( /** * Lists information about the supported locations for this service. * + *

        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

        Sample code: * *

        {@code
        @@ -553,6 +569,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
           /**
            * Lists information about the supported locations for this service.
            *
        +   * 

        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

        Sample code: * *

        {@code
        @@ -587,6 +616,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
           /**
            * Lists information about the supported locations for this service.
            *
        +   * 

        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

        Sample code: * *

        {@code
        diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java
        index fe94515ca3e8..8c3598221f4e 100644
        --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java
        +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java
        @@ -108,7 +108,10 @@
          *    
          *    
          *      

        ListLocations - *

        Lists information about the supported locations for this service. + *

        Lists information about the supported locations for this service. + *

        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        *
          @@ -544,6 +547,19 @@ public final UnaryCallable getDeploymentCallab /** * Lists information about the supported locations for this service. * + *

          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

          Sample code: * *

          {@code
          @@ -577,6 +593,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
             /**
              * Lists information about the supported locations for this service.
              *
          +   * 

          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

          Sample code: * *

          {@code
          @@ -611,6 +640,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
             /**
              * Lists information about the supported locations for this service.
              *
          +   * 

          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

          Sample code: * *

          {@code
          diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java
          index dde91fbf1a64..9a815f8a3321 100644
          --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java
          +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java
          @@ -204,7 +204,10 @@
            *    
            *    
            *      

          ListLocations - *

          Lists information about the supported locations for this service. + *

          Lists information about the supported locations for this service. + *

          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            @@ -1205,6 +1208,19 @@ public final UnaryCallable importEntityType /** * Lists information about the supported locations for this service. * + *

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

            Sample code: * *

            {@code
            @@ -1238,6 +1254,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
               /**
                * Lists information about the supported locations for this service.
                *
            +   * 

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

            Sample code: * *

            {@code
            @@ -1272,6 +1301,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
               /**
                * Lists information about the supported locations for this service.
                *
            +   * 

            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

            Sample code: * *

            {@code
            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java
            index e1449ec03d06..23ccbee3a8e7 100644
            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java
            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java
            @@ -252,7 +252,10 @@
              *    
              *    
              *      

            ListLocations - *

            Lists information about the supported locations for this service. + *

            Lists information about the supported locations for this service. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              @@ -1783,6 +1786,19 @@ public final UnaryCallable deployFlowCallable() { /** * Lists information about the supported locations for this service. * + *

              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

              Sample code: * *

              {@code
              @@ -1816,6 +1832,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                 /**
                  * Lists information about the supported locations for this service.
                  *
              +   * 

              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

              Sample code: * *

              {@code
              @@ -1850,6 +1879,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                 /**
                  * Lists information about the supported locations for this service.
                  *
              +   * 

              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

              Sample code: * *

              {@code
              diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java
              index 7b0a23a13828..8dab5dcbf8a5 100644
              --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java
              +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java
              @@ -165,7 +165,10 @@
                *    
                *    
                *      

              ListLocations - *

              Lists information about the supported locations for this service. + *

              Lists information about the supported locations for this service. + *

              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

              Request object method variants only take one parameter, a request object, which must be constructed before the call.

              *
                @@ -912,6 +915,19 @@ public final UnaryCallable updateExampleCallable( /** * Lists information about the supported locations for this service. * + *

                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                Sample code: * *

                {@code
                @@ -945,6 +961,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                   /**
                    * Lists information about the supported locations for this service.
                    *
                +   * 

                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                Sample code: * *

                {@code
                @@ -978,6 +1007,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                   /**
                    * Lists information about the supported locations for this service.
                    *
                +   * 

                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                Sample code: * *

                {@code
                diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java
                index a952165b0324..66be0e03ba36 100644
                --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java
                +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java
                @@ -204,7 +204,10 @@
                  *    
                  *    
                  *      

                ListLocations - *

                Lists information about the supported locations for this service. + *

                Lists information about the supported locations for this service. + *

                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                *
                  @@ -1231,6 +1234,19 @@ public final UnaryCallable stopExperimentCall /** * Lists information about the supported locations for this service. * + *

                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                  Sample code: * *

                  {@code
                  @@ -1264,6 +1280,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                     /**
                      * Lists information about the supported locations for this service.
                      *
                  +   * 

                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                  Sample code: * *

                  {@code
                  @@ -1298,6 +1327,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                     /**
                      * Lists information about the supported locations for this service.
                      *
                  +   * 

                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                  Sample code: * *

                  {@code
                  diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java
                  index 8d4cd011acc3..57899f3802a9 100644
                  --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java
                  +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java
                  @@ -265,7 +265,10 @@
                    *    
                    *    
                    *      

                  ListLocations - *

                  Lists information about the supported locations for this service. + *

                  Lists information about the supported locations for this service. + *

                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                  *
                    @@ -1672,6 +1675,19 @@ public final UnaryCallable exportFlowCallable() { /** * Lists information about the supported locations for this service. * + *

                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                    Sample code: * *

                    {@code
                    @@ -1705,6 +1721,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                       /**
                        * Lists information about the supported locations for this service.
                        *
                    +   * 

                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                    Sample code: * *

                    {@code
                    @@ -1738,6 +1767,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                       /**
                        * Lists information about the supported locations for this service.
                        *
                    +   * 

                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                    Sample code: * *

                    {@code
                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java
                    index 097ade15f1fa..794f8891e8bc 100644
                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java
                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java
                    @@ -164,7 +164,10 @@
                      *    
                      *    
                      *      

                    ListLocations - *

                    Lists information about the supported locations for this service. + *

                    Lists information about the supported locations for this service. + *

                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                    *
                      @@ -909,6 +912,19 @@ public final UnaryCallable deleteGeneratorCallabl /** * Lists information about the supported locations for this service. * + *

                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                      Sample code: * *

                      {@code
                      @@ -942,6 +958,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                         /**
                          * Lists information about the supported locations for this service.
                          *
                      +   * 

                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                      Sample code: * *

                      {@code
                      @@ -976,6 +1005,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                         /**
                          * Lists information about the supported locations for this service.
                          *
                      +   * 

                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                      Sample code: * *

                      {@code
                      diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java
                      index c19fdb1c8920..c994f0a5f8ee 100644
                      --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java
                      +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java
                      @@ -206,7 +206,10 @@
                        *    
                        *    
                        *      

                      ListLocations - *

                      Lists information about the supported locations for this service. + *

                      Lists information about the supported locations for this service. + *

                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                      *
                        @@ -1213,6 +1216,19 @@ public final UnaryCallable exportIntentsCallabl /** * Lists information about the supported locations for this service. * + *

                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                        Sample code: * *

                        {@code
                        @@ -1246,6 +1262,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                           /**
                            * Lists information about the supported locations for this service.
                            *
                        +   * 

                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                        Sample code: * *

                        {@code
                        @@ -1279,6 +1308,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                           /**
                            * Lists information about the supported locations for this service.
                            *
                        +   * 

                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                        Sample code: * *

                        {@code
                        diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java
                        index 1a6c89f0d914..53337d1ace27 100644
                        --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java
                        +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java
                        @@ -167,7 +167,10 @@
                          *    
                          *    
                          *      

                        ListLocations - *

                        Lists information about the supported locations for this service. + *

                        Lists information about the supported locations for this service. + *

                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                        *
                          @@ -936,6 +939,19 @@ public final UnaryCallable deletePageCallable() { /** * Lists information about the supported locations for this service. * + *

                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                          Sample code: * *

                          {@code
                          @@ -969,6 +985,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                             /**
                              * Lists information about the supported locations for this service.
                              *
                          +   * 

                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                          Sample code: * *

                          {@code
                          @@ -1002,6 +1031,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                             /**
                              * Lists information about the supported locations for this service.
                              *
                          +   * 

                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                          Sample code: * *

                          {@code
                          diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java
                          index b557a6dbb20f..a2a15b5f36f3 100644
                          --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java
                          +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java
                          @@ -298,7 +298,10 @@
                            *    
                            *    
                            *      

                          ListLocations - *

                          Lists information about the supported locations for this service. + *

                          Lists information about the supported locations for this service. + *

                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                          *
                            @@ -1915,6 +1918,19 @@ public final UnaryCallable deletePlaybookVe /** * Lists information about the supported locations for this service. * + *

                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                            Sample code: * *

                            {@code
                            @@ -1948,6 +1964,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                               /**
                                * Lists information about the supported locations for this service.
                                *
                            +   * 

                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                            Sample code: * *

                            {@code
                            @@ -1981,6 +2010,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                               /**
                                * Lists information about the supported locations for this service.
                                *
                            +   * 

                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                            Sample code: * *

                            {@code
                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
                            index f2ed99b4dbcf..7ad44b3aebc0 100644
                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
                            @@ -168,7 +168,10 @@
                              *    
                              *    
                              *      

                            ListLocations - *

                            Lists information about the supported locations for this service. + *

                            Lists information about the supported locations for this service. + *

                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                            *
                              @@ -973,6 +976,19 @@ public final void deleteSecuritySettings(DeleteSecuritySettingsRequest request) /** * Lists information about the supported locations for this service. * + *

                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                              Sample code: * *

                              {@code
                              @@ -1007,6 +1023,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                 /**
                                  * Lists information about the supported locations for this service.
                                  *
                              +   * 

                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                              Sample code: * *

                              {@code
                              @@ -1042,6 +1071,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                 /**
                                  * Lists information about the supported locations for this service.
                                  *
                              +   * 

                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                              Sample code: * *

                              {@code
                              diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
                              index 014d6e38dc22..0e571ecf81e7 100644
                              --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
                              +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
                              @@ -168,7 +168,10 @@
                                *    
                                *    
                                *      

                              ListLocations - *

                              Lists information about the supported locations for this service. + *

                              Lists information about the supported locations for this service. + *

                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                              *
                                @@ -1005,6 +1008,19 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request /** * Lists information about the supported locations for this service. * + *

                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                Sample code: * *

                                {@code
                                @@ -1038,6 +1054,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                   /**
                                    * Lists information about the supported locations for this service.
                                    *
                                +   * 

                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                Sample code: * *

                                {@code
                                @@ -1072,6 +1101,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                   /**
                                    * Lists information about the supported locations for this service.
                                    *
                                +   * 

                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                Sample code: * *

                                {@code
                                diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
                                index f7b1e0e55e5c..850c8e7ed79a 100644
                                --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
                                +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
                                @@ -159,7 +159,10 @@
                                  *    
                                  *    
                                  *      

                                ListLocations - *

                                Lists information about the supported locations for this service. + *

                                Lists information about the supported locations for this service. + *

                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                *
                                  @@ -662,6 +665,19 @@ public final AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest req /** * Lists information about the supported locations for this service. * + *

                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                  Sample code: * *

                                  {@code
                                  @@ -695,6 +711,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                     /**
                                      * Lists information about the supported locations for this service.
                                      *
                                  +   * 

                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                  Sample code: * *

                                  {@code
                                  @@ -728,6 +757,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                     /**
                                      * Lists information about the supported locations for this service.
                                      *
                                  +   * 

                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                  Sample code: * *

                                  {@code
                                  diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
                                  index 6070d3ac9c7e..43dd27191f69 100644
                                  --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
                                  +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
                                  @@ -291,7 +291,10 @@
                                    *    
                                    *    
                                    *      

                                  ListLocations - *

                                  Lists information about the supported locations for this service. + *

                                  Lists information about the supported locations for this service. + *

                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                  *
                                    @@ -1884,6 +1887,19 @@ public final UnaryCallable getTestCase /** * Lists information about the supported locations for this service. * + *

                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                    Sample code: * *

                                    {@code
                                    @@ -1917,6 +1933,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                       /**
                                        * Lists information about the supported locations for this service.
                                        *
                                    +   * 

                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                    Sample code: * *

                                    {@code
                                    @@ -1950,6 +1979,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                       /**
                                        * Lists information about the supported locations for this service.
                                        *
                                    +   * 

                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                    Sample code: * *

                                    {@code
                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java
                                    index 2bb686962c8f..f86af4ad0fea 100644
                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java
                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java
                                    @@ -261,7 +261,10 @@
                                      *    
                                      *    
                                      *      

                                    ListLocations - *

                                    Lists information about the supported locations for this service. + *

                                    Lists information about the supported locations for this service. + *

                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                    *
                                      @@ -1632,6 +1635,19 @@ public final RestoreToolVersionResponse restoreToolVersion(RestoreToolVersionReq /** * Lists information about the supported locations for this service. * + *

                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                      Sample code: * *

                                      {@code
                                      @@ -1665,6 +1681,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                         /**
                                          * Lists information about the supported locations for this service.
                                          *
                                      +   * 

                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                      Sample code: * *

                                      {@code
                                      @@ -1698,6 +1727,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                         /**
                                          * Lists information about the supported locations for this service.
                                          *
                                      +   * 

                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                      Sample code: * *

                                      {@code
                                      diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
                                      index 955c2c113599..375754d68145 100644
                                      --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
                                      +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
                                      @@ -174,7 +174,10 @@
                                        *    
                                        *    
                                        *      

                                      ListLocations - *

                                      Lists information about the supported locations for this service. + *

                                      Lists information about the supported locations for this service. + *

                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                      *
                                        @@ -1159,6 +1162,19 @@ public final void deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest r /** * Lists information about the supported locations for this service. * + *

                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                        Sample code: * *

                                        {@code
                                        @@ -1193,6 +1209,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                           /**
                                            * Lists information about the supported locations for this service.
                                            *
                                        +   * 

                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                        Sample code: * *

                                        {@code
                                        @@ -1228,6 +1257,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                           /**
                                            * Lists information about the supported locations for this service.
                                            *
                                        +   * 

                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                        Sample code: * *

                                        {@code
                                        diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
                                        index c8d7ac82b843..00958e9104e8 100644
                                        --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
                                        +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
                                        @@ -215,7 +215,10 @@
                                          *    
                                          *    
                                          *      

                                        ListLocations - *

                                        Lists information about the supported locations for this service. + *

                                        Lists information about the supported locations for this service. + *

                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                        *
                                          @@ -1388,6 +1391,19 @@ public final CompareVersionsResponse compareVersions(CompareVersionsRequest requ /** * Lists information about the supported locations for this service. * + *

                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                          Sample code: * *

                                          {@code
                                          @@ -1421,6 +1437,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                             /**
                                              * Lists information about the supported locations for this service.
                                              *
                                          +   * 

                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                          Sample code: * *

                                          {@code
                                          @@ -1454,6 +1483,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                             /**
                                              * Lists information about the supported locations for this service.
                                              *
                                          +   * 

                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                          Sample code: * *

                                          {@code
                                          diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java
                                          index e05cb9c00fa3..95294db20806 100644
                                          --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java
                                          +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java
                                          @@ -164,7 +164,10 @@
                                            *    
                                            *    
                                            *      

                                          ListLocations - *

                                          Lists information about the supported locations for this service. + *

                                          Lists information about the supported locations for this service. + *

                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                          *
                                            @@ -889,6 +892,19 @@ public final UnaryCallable deleteWebhookCallable() /** * Lists information about the supported locations for this service. * + *

                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                            Sample code: * *

                                            {@code
                                            @@ -922,6 +938,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                               /**
                                                * Lists information about the supported locations for this service.
                                                *
                                            +   * 

                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                            Sample code: * *

                                            {@code
                                            @@ -955,6 +984,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                               /**
                                                * Lists information about the supported locations for this service.
                                                *
                                            +   * 

                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                            Sample code: * *

                                            {@code
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java
                                            index f6cd8c2fd700..6af8a7a02f68 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java
                                            @@ -505,6 +505,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java
                                            index 6e9955f9733a..687fe60e1d1f 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java
                                            @@ -379,6 +379,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java
                                            index 5c9bebc97168..9aa85c9e3ba3 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java
                                            @@ -382,6 +382,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
                                            index 282e81f3e298..ec80e6f380df 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
                                            @@ -482,6 +482,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java
                                            index 3d6b9a688a74..01ac286b3efc 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java
                                            @@ -683,6 +683,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java
                                            index a20448b75ec0..b9fd74df4245 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java
                                            @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java
                                            index 212ce1318c60..2cc58f639065 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java
                                            @@ -423,6 +423,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java
                                            index 4cb22ec3b288..a639bd47de4c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java
                                            @@ -500,6 +500,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java
                                            index 294743cb528f..2a287fb12962 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java
                                            @@ -404,6 +404,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcAgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcAgentsStub.java
                                            index 2401b0158615..7b791761e22c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcAgentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcAgentsStub.java
                                            @@ -268,6 +268,7 @@ protected GrpcAgentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -278,6 +279,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -288,6 +290,7 @@ protected GrpcAgentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -308,6 +311,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings exportAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -318,6 +322,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings restoreAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -328,6 +333,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings validateAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -338,6 +344,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     getAgentValidationResultTransportSettings =
                                            @@ -349,6 +356,7 @@ protected GrpcAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     getGenerativeSettingsTransportSettings =
                                            @@ -360,6 +368,7 @@ protected GrpcAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     updateGenerativeSettingsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java
                                            index 0daf203dcf4f..24fbfe22d663 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java
                                            @@ -153,6 +153,7 @@ protected GrpcChangelogsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getChangelogTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -163,6 +164,7 @@ protected GrpcChangelogsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java
                                            index f3f1dac91ddb..bc4ae219e9da 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java
                                            @@ -155,6 +155,7 @@ protected GrpcDeploymentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getDeploymentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -165,6 +166,7 @@ protected GrpcDeploymentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
                                            index 460d4bdc938a..704351dcd996 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
                                            @@ -232,6 +232,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createEntityTypeTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -242,6 +243,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateEntityTypeTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -263,6 +265,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     listEntityTypesTransportSettings =
                                            @@ -274,6 +277,7 @@ protected GrpcEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings exportEntityTypesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -284,6 +288,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings importEntityTypesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -294,6 +299,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java
                                            index 78b3e3d1b104..13dbc0300786 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java
                                            @@ -281,6 +281,7 @@ protected GrpcEnvironmentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getEnvironmentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -291,6 +292,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createEnvironmentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -301,6 +303,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateEnvironmentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -322,6 +325,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     lookupEnvironmentHistoryTransportSettings =
                                            @@ -334,6 +338,7 @@ protected GrpcEnvironmentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings runContinuousTestTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -344,6 +349,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("environment", String.valueOf(request.getEnvironment()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                         .build();
                                                 GrpcCallSettings
                                                     listContinuousTestResultsTransportSettings =
                                            @@ -356,6 +362,7 @@ protected GrpcEnvironmentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings deployFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -366,6 +373,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("environment", String.valueOf(request.getEnvironment()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExamplesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExamplesStub.java
                                            index 774d9050cde9..4979235e257c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExamplesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExamplesStub.java
                                            @@ -185,6 +185,7 @@ protected GrpcExamplesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings deleteExampleTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -195,6 +196,7 @@ protected GrpcExamplesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listExamplesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -205,6 +207,7 @@ protected GrpcExamplesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getExampleTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -215,6 +218,7 @@ protected GrpcExamplesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings updateExampleTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExperimentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExperimentsStub.java
                                            index 22ae06697956..5abd961db1fe 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExperimentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExperimentsStub.java
                                            @@ -221,6 +221,7 @@ protected GrpcExperimentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -231,6 +232,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -241,6 +243,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -261,6 +264,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings startExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -271,6 +275,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings stopExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -281,6 +286,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcFlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcFlowsStub.java
                                            index f56b79a1a946..87a916d0bc8c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcFlowsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcFlowsStub.java
                                            @@ -251,6 +251,7 @@ protected GrpcFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings deleteFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -261,6 +262,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listFlowsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -271,6 +273,7 @@ protected GrpcFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -281,6 +284,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings updateFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -301,6 +305,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings validateFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -311,6 +316,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     getFlowValidationResultTransportSettings =
                                            @@ -322,6 +328,7 @@ protected GrpcFlowsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings importFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -332,6 +339,7 @@ protected GrpcFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings exportFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -342,6 +350,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcGeneratorsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcGeneratorsStub.java
                                            index bbe7b5ef623d..76c87a0e0dc3 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcGeneratorsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcGeneratorsStub.java
                                            @@ -193,6 +193,7 @@ protected GrpcGeneratorsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getGeneratorTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -203,6 +204,7 @@ protected GrpcGeneratorsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createGeneratorTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -213,6 +215,7 @@ protected GrpcGeneratorsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateGeneratorTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -233,6 +236,7 @@ protected GrpcGeneratorsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcIntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcIntentsStub.java
                                            index 3a1a2552422c..7a3fc108730d 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcIntentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcIntentsStub.java
                                            @@ -219,6 +219,7 @@ protected GrpcIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -229,6 +230,7 @@ protected GrpcIntentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -239,6 +241,7 @@ protected GrpcIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -259,6 +262,7 @@ protected GrpcIntentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings importIntentsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -269,6 +273,7 @@ protected GrpcIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings exportIntentsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -279,6 +284,7 @@ protected GrpcIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java
                                            index c3ca8fc99c1d..a28d40425a96 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java
                                            @@ -179,6 +179,7 @@ protected GrpcPagesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getPageTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -189,6 +190,7 @@ protected GrpcPagesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createPageTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -199,6 +201,7 @@ protected GrpcPagesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updatePageTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -219,6 +222,7 @@ protected GrpcPagesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPlaybooksStub.java
                                            index 9ff5ca0a531b..887dcbd37083 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPlaybooksStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPlaybooksStub.java
                                            @@ -304,6 +304,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings deletePlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -314,6 +315,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listPlaybooksTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -324,6 +326,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getPlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -334,6 +337,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings exportPlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -344,6 +348,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings importPlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -354,6 +359,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updatePlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -375,6 +381,7 @@ protected GrpcPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     getPlaybookVersionTransportSettings =
                                            @@ -386,6 +393,7 @@ protected GrpcPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     restorePlaybookVersionTransportSettings =
                                            @@ -398,6 +406,7 @@ protected GrpcPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     listPlaybookVersionsTransportSettings =
                                            @@ -409,6 +418,7 @@ protected GrpcPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings deletePlaybookVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -419,6 +429,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSecuritySettingsServiceStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSecuritySettingsServiceStub.java
                                            index 9f7a6aea8e90..892455c2b172 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSecuritySettingsServiceStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSecuritySettingsServiceStub.java
                                            @@ -206,6 +206,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     getSecuritySettingsTransportSettings =
                                            @@ -217,6 +218,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     updateSecuritySettingsTransportSettings =
                                            @@ -241,6 +243,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings deleteSecuritySettingsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -251,6 +254,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionEntityTypesStub.java
                                            index 188c10db41ff..b2d7bdaca2c9 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionEntityTypesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionEntityTypesStub.java
                                            @@ -209,6 +209,7 @@ protected GrpcSessionEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     getSessionEntityTypeTransportSettings =
                                            @@ -220,6 +221,7 @@ protected GrpcSessionEntityTypesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     createSessionEntityTypeTransportSettings =
                                            @@ -231,6 +233,7 @@ protected GrpcSessionEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     updateSessionEntityTypeTransportSettings =
                                            @@ -255,6 +258,7 @@ protected GrpcSessionEntityTypesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
                                            index fd12ddb2976c..9845c62e2a50 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
                                            @@ -208,6 +208,7 @@ protected GrpcSessionsStub(
                                                               builder.add("session", String.valueOf(request.getSession()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getSession())
                                                         .build();
                                                 GrpcCallSettings
                                                     serverStreamingDetectIntentTransportSettings =
                                            @@ -219,12 +220,14 @@ protected GrpcSessionsStub(
                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 GrpcCallSettings
                                                     streamingDetectIntentTransportSettings =
                                                         GrpcCallSettings
                                                             .newBuilder()
                                                             .setMethodDescriptor(streamingDetectIntentMethodDescriptor)
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 GrpcCallSettings matchIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -235,6 +238,7 @@ protected GrpcSessionsStub(
                                                               builder.add("session", String.valueOf(request.getSession()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getSession())
                                                         .build();
                                                 GrpcCallSettings fulfillIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -258,6 +262,7 @@ protected GrpcSessionsStub(
                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java
                                            index fa4ee5fc4ae3..66a539ba1012 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java
                                            @@ -310,6 +310,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings batchDeleteTestCasesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -320,6 +321,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getTestCaseTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -330,6 +332,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createTestCaseTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -340,6 +343,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateTestCaseTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -360,6 +364,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings batchRunTestCasesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -370,6 +375,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings
                                                     calculateCoverageTransportSettings =
                                            @@ -381,6 +387,7 @@ protected GrpcTestCasesStub(
                                                                   builder.add("agent", String.valueOf(request.getAgent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getAgent())
                                                             .build();
                                                 GrpcCallSettings importTestCasesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -391,6 +398,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings exportTestCasesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -401,6 +409,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings
                                                     listTestCaseResultsTransportSettings =
                                            @@ -412,6 +421,7 @@ protected GrpcTestCasesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getTestCaseResultTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -422,6 +432,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcToolsStub.java
                                            index ca931f15216c..dad63a483a60 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcToolsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcToolsStub.java
                                            @@ -254,6 +254,7 @@ protected GrpcToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings listToolsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -264,6 +265,7 @@ protected GrpcToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getToolTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -274,6 +276,7 @@ protected GrpcToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings updateToolTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -294,6 +297,7 @@ protected GrpcToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     listToolVersionsTransportSettings =
                                            @@ -305,6 +309,7 @@ protected GrpcToolsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings createToolVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -315,6 +320,7 @@ protected GrpcToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getToolVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -325,6 +331,7 @@ protected GrpcToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings deleteToolVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -335,6 +342,7 @@ protected GrpcToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     restoreToolVersionTransportSettings =
                                            @@ -346,6 +354,7 @@ protected GrpcToolsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTransitionRouteGroupsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTransitionRouteGroupsStub.java
                                            index ee86e54e0252..89adddfc0645 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTransitionRouteGroupsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTransitionRouteGroupsStub.java
                                            @@ -213,6 +213,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     getTransitionRouteGroupTransportSettings =
                                            @@ -224,6 +225,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     createTransitionRouteGroupTransportSettings =
                                            @@ -235,6 +237,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     updateTransitionRouteGroupTransportSettings =
                                            @@ -259,6 +262,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java
                                            index 5049ada5faf9..94527bed1833 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java
                                            @@ -219,6 +219,7 @@ protected GrpcVersionsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -229,6 +230,7 @@ protected GrpcVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -239,6 +241,7 @@ protected GrpcVersionsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -259,6 +262,7 @@ protected GrpcVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings loadVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -269,6 +273,7 @@ protected GrpcVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     compareVersionsTransportSettings =
                                            @@ -280,6 +285,7 @@ protected GrpcVersionsStub(
                                                                   builder.add("base_version", String.valueOf(request.getBaseVersion()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getBaseVersion())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcWebhooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcWebhooksStub.java
                                            index a73e992edc99..fb10f6224f15 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcWebhooksStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcWebhooksStub.java
                                            @@ -185,6 +185,7 @@ protected GrpcWebhooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getWebhookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -195,6 +196,7 @@ protected GrpcWebhooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createWebhookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -205,6 +207,7 @@ protected GrpcWebhooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateWebhookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -225,6 +228,7 @@ protected GrpcWebhooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonAgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonAgentsStub.java
                                            index 26e6b59fd413..6b7318c75080 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonAgentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonAgentsStub.java
                                            @@ -662,6 +662,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -673,6 +674,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -684,6 +686,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -706,6 +709,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings exportAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -717,6 +721,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings restoreAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -728,6 +733,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     validateAgentTransportSettings =
                                            @@ -740,6 +746,7 @@ protected HttpJsonAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getAgentValidationResultTransportSettings =
                                            @@ -753,6 +760,7 @@ protected HttpJsonAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getGenerativeSettingsTransportSettings =
                                            @@ -765,6 +773,7 @@ protected HttpJsonAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     updateGenerativeSettingsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonChangelogsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonChangelogsStub.java
                                            index dba70485bbb8..ac503d59bcb5 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonChangelogsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonChangelogsStub.java
                                            @@ -259,6 +259,7 @@ protected HttpJsonChangelogsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getChangelogTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -270,6 +271,7 @@ protected HttpJsonChangelogsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonDeploymentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonDeploymentsStub.java
                                            index fbe17b02bcf5..3ac247b2e28c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonDeploymentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonDeploymentsStub.java
                                            @@ -259,6 +259,7 @@ protected HttpJsonDeploymentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getDeploymentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -270,6 +271,7 @@ protected HttpJsonDeploymentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
                                            index 9902c6ef5753..2426024027d1 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
                                            @@ -525,6 +525,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createEntityTypeTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -536,6 +537,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateEntityTypeTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -559,6 +561,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listEntityTypesTransportSettings =
                                            @@ -571,6 +574,7 @@ protected HttpJsonEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings exportEntityTypesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -582,6 +586,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings importEntityTypesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -593,6 +598,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEnvironmentsStub.java
                                            index f50b028df95e..192889405a3b 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEnvironmentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEnvironmentsStub.java
                                            @@ -627,6 +627,7 @@ protected HttpJsonEnvironmentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getEnvironmentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -638,6 +639,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createEnvironmentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -649,6 +651,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateEnvironmentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -672,6 +675,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     lookupEnvironmentHistoryTransportSettings =
                                            @@ -685,6 +689,7 @@ protected HttpJsonEnvironmentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings runContinuousTestTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -696,6 +701,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("environment", String.valueOf(request.getEnvironment()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listContinuousTestResultsTransportSettings =
                                            @@ -709,6 +715,7 @@ protected HttpJsonEnvironmentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings deployFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -720,6 +727,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("environment", String.valueOf(request.getEnvironment()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExamplesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExamplesStub.java
                                            index 29ad421e2e93..6e49bbd8b4a8 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExamplesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExamplesStub.java
                                            @@ -374,6 +374,7 @@ protected HttpJsonExamplesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings deleteExampleTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -385,6 +386,7 @@ protected HttpJsonExamplesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings listExamplesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -396,6 +398,7 @@ protected HttpJsonExamplesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getExampleTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -407,6 +410,7 @@ protected HttpJsonExamplesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings updateExampleTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExperimentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExperimentsStub.java
                                            index f9752db6d991..969b955e7ec1 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExperimentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExperimentsStub.java
                                            @@ -454,6 +454,7 @@ protected HttpJsonExperimentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -465,6 +466,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -476,6 +478,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -498,6 +501,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings startExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -509,6 +513,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings stopExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -520,6 +525,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonFlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonFlowsStub.java
                                            index a101ec64075e..62929842b077 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonFlowsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonFlowsStub.java
                                            @@ -628,6 +628,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings deleteFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -639,6 +640,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings listFlowsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -650,6 +652,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -661,6 +664,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings updateFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -683,6 +687,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings validateFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -694,6 +699,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     getFlowValidationResultTransportSettings =
                                            @@ -706,6 +712,7 @@ protected HttpJsonFlowsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings importFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -717,6 +724,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings exportFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -728,6 +736,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonGeneratorsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonGeneratorsStub.java
                                            index fbb5688d7ef0..4ad71c84a0e6 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonGeneratorsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonGeneratorsStub.java
                                            @@ -384,6 +384,7 @@ protected HttpJsonGeneratorsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getGeneratorTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -395,6 +396,7 @@ protected HttpJsonGeneratorsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createGeneratorTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -406,6 +408,7 @@ protected HttpJsonGeneratorsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateGeneratorTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -428,6 +431,7 @@ protected HttpJsonGeneratorsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonIntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonIntentsStub.java
                                            index 11d0bda77d2c..2d593b0dfc44 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonIntentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonIntentsStub.java
                                            @@ -520,6 +520,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getIntentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -531,6 +532,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createIntentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -542,6 +544,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateIntentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -564,6 +567,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings importIntentsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -575,6 +579,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings exportIntentsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -586,6 +591,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPagesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPagesStub.java
                                            index d32a5a4c558a..252975174ea3 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPagesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPagesStub.java
                                            @@ -369,6 +369,7 @@ protected HttpJsonPagesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getPageTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -380,6 +381,7 @@ protected HttpJsonPagesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createPageTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -391,6 +393,7 @@ protected HttpJsonPagesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updatePageTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -413,6 +416,7 @@ protected HttpJsonPagesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPlaybooksStub.java
                                            index 643bc878b538..4a6395571768 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPlaybooksStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPlaybooksStub.java
                                            @@ -712,6 +712,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings deletePlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -723,6 +724,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listPlaybooksTransportSettings =
                                            @@ -735,6 +737,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getPlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -746,6 +749,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings exportPlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -757,6 +761,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings importPlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -768,6 +773,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updatePlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -791,6 +797,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getPlaybookVersionTransportSettings =
                                            @@ -803,6 +810,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     restorePlaybookVersionTransportSettings =
                                            @@ -816,6 +824,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listPlaybookVersionsTransportSettings =
                                            @@ -829,6 +838,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     deletePlaybookVersionTransportSettings =
                                            @@ -841,6 +851,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSecuritySettingsServiceStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSecuritySettingsServiceStub.java
                                            index d6d8601a59a0..490af42f2dd8 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSecuritySettingsServiceStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSecuritySettingsServiceStub.java
                                            @@ -391,6 +391,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getSecuritySettingsTransportSettings =
                                            @@ -403,6 +404,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     updateSecuritySettingsTransportSettings =
                                            @@ -430,6 +432,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     deleteSecuritySettingsTransportSettings =
                                            @@ -442,6 +445,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionEntityTypesStub.java
                                            index 7f85983a1bc9..86b9101308f7 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionEntityTypesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionEntityTypesStub.java
                                            @@ -404,6 +404,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getSessionEntityTypeTransportSettings =
                                            @@ -416,6 +417,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     createSessionEntityTypeTransportSettings =
                                            @@ -428,6 +430,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     updateSessionEntityTypeTransportSettings =
                                            @@ -454,6 +457,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
                                            index c7b43ae59adf..6bf2d4262fc8 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
                                            @@ -393,6 +393,7 @@ protected HttpJsonSessionsStub(
                                                               builder.add("session", String.valueOf(request.getSession()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getSession())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     serverStreamingDetectIntentTransportSettings =
                                            @@ -405,6 +406,7 @@ protected HttpJsonSessionsStub(
                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 HttpJsonCallSettings matchIntentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -416,6 +418,7 @@ protected HttpJsonSessionsStub(
                                                               builder.add("session", String.valueOf(request.getSession()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getSession())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     fulfillIntentTransportSettings =
                                            @@ -442,6 +445,7 @@ protected HttpJsonSessionsStub(
                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTestCasesStub.java
                                            index 0b7d3d248ccd..941faeed6e36 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTestCasesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTestCasesStub.java
                                            @@ -736,6 +736,7 @@ protected HttpJsonTestCasesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings batchDeleteTestCasesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -747,6 +748,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getTestCaseTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -758,6 +760,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createTestCaseTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -769,6 +772,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateTestCaseTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -791,6 +795,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings batchRunTestCasesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -802,6 +807,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     calculateCoverageTransportSettings =
                                            @@ -814,6 +820,7 @@ protected HttpJsonTestCasesStub(
                                                                   builder.add("agent", String.valueOf(request.getAgent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getAgent())
                                                             .build();
                                                 HttpJsonCallSettings importTestCasesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -825,6 +832,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings exportTestCasesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -836,6 +844,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listTestCaseResultsTransportSettings =
                                            @@ -849,6 +858,7 @@ protected HttpJsonTestCasesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getTestCaseResultTransportSettings =
                                            @@ -861,6 +871,7 @@ protected HttpJsonTestCasesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonToolsStub.java
                                            index b6dbd9829e94..3e16f07e44f2 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonToolsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonToolsStub.java
                                            @@ -561,6 +561,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings listToolsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -572,6 +573,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getToolTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -583,6 +585,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings updateToolTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -605,6 +608,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listToolVersionsTransportSettings =
                                            @@ -617,6 +621,7 @@ protected HttpJsonToolsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings createToolVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -628,6 +633,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getToolVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -639,6 +645,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings deleteToolVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -650,6 +657,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     restoreToolVersionTransportSettings =
                                            @@ -662,6 +670,7 @@ protected HttpJsonToolsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTransitionRouteGroupsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTransitionRouteGroupsStub.java
                                            index e608f80f80b8..a49b010aacf1 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTransitionRouteGroupsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTransitionRouteGroupsStub.java
                                            @@ -418,6 +418,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getTransitionRouteGroupTransportSettings =
                                            @@ -430,6 +431,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     createTransitionRouteGroupTransportSettings =
                                            @@ -443,6 +445,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     updateTransitionRouteGroupTransportSettings =
                                            @@ -470,6 +473,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonVersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonVersionsStub.java
                                            index 7893cb545bf0..558010e6d5a8 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonVersionsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonVersionsStub.java
                                            @@ -512,6 +512,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -523,6 +524,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -534,6 +536,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -556,6 +559,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings loadVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -567,6 +571,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     compareVersionsTransportSettings =
                                            @@ -579,6 +584,7 @@ protected HttpJsonVersionsStub(
                                                                   builder.add("base_version", String.valueOf(request.getBaseVersion()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getBaseVersion())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonWebhooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonWebhooksStub.java
                                            index 36c97d47e676..b84e0644430d 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonWebhooksStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonWebhooksStub.java
                                            @@ -373,6 +373,7 @@ protected HttpJsonWebhooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getWebhookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -384,6 +385,7 @@ protected HttpJsonWebhooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createWebhookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -395,6 +397,7 @@ protected HttpJsonWebhooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateWebhookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -417,6 +420,7 @@ protected HttpJsonWebhooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java
                                            index 6ae12b796e63..4c760072cf37 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java
                                            @@ -469,6 +469,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java
                                            index 9616b4ac766a..7245b88d8136 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java
                                            @@ -399,6 +399,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java
                                            index 2e89171b66b3..2aa8d1869327 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java
                                            @@ -589,6 +589,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java
                                            index 432f74db3a31..0cdb865c6326 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java
                                            @@ -429,6 +429,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java
                                            index 94258b447381..c3e500ba070c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java
                                            @@ -434,6 +434,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
                                            index 9f8b2437028c..16be9142c507 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
                                            @@ -364,6 +364,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java
                                            index 7f019d61d912..c1852f76dea2 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java
                                            @@ -607,6 +607,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java
                                            index 9a8b3063fef9..873f10eedf82 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java
                                            @@ -506,6 +506,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java
                                            index c3aba1cb568e..1df4787d29c5 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java
                                            @@ -443,6 +443,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java
                                            new file mode 100644
                                            index 000000000000..b3e191f2f8e2
                                            --- /dev/null
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java
                                            @@ -0,0 +1,27 @@
                                            +/*
                                            + * Copyright 2026 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.
                                            + */
                                            +
                                            +package com.google.cloud.dialogflow.cx.v3.stub;
                                            +
                                            +import com.google.api.core.InternalApi;
                                            +
                                            +@InternalApi("For internal use only")
                                            +final class Version {
                                            +  // {x-version-update-start:google-cloud-dialogflow-cx:current}
                                            +  static final String VERSION = "0.0.0-SNAPSHOT";
                                            +  // {x-version-update-end}
                                            +
                                            +}
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java
                                            index 1cf625e1c82f..e524b29fd74f 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java
                                            @@ -468,6 +468,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(com.google.cloud.dialogflow.cx.v3.stub.Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java
                                            index a01e141dfa80..e5ef0c028387 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java
                                            @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java
                                            index 8f41c16433b7..7c34799ca524 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java
                                            @@ -506,6 +506,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java
                                            index 3420084c7962..a5d35ba42a9d 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java
                                            @@ -380,6 +380,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java
                                            index c2bca88d0bfc..877ac7aa22b5 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java
                                            @@ -398,6 +398,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java
                                            index b4332ee8859d..e3f88f5430f0 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java
                                            @@ -383,6 +383,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
                                            index 9b0f495be7ff..41524440c44e 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
                                            @@ -483,6 +483,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java
                                            index c14d3c1417ca..62d8ef88ca0c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java
                                            @@ -684,6 +684,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java
                                            index 1e703a13a966..47812ebd8f21 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java
                                            @@ -401,6 +401,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java
                                            index a7817be39c44..fcf2540919b9 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java
                                            @@ -424,6 +424,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java
                                            index cae9afbc0a9f..9088e15c2329 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java
                                            @@ -501,6 +501,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java
                                            index bd25cee5ee8f..b6359774e2a4 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java
                                            @@ -405,6 +405,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcAgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcAgentsStub.java
                                            index bbd3e07a7be5..8d036479790a 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcAgentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcAgentsStub.java
                                            @@ -272,6 +272,7 @@ protected GrpcAgentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -282,6 +283,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -292,6 +294,7 @@ protected GrpcAgentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -312,6 +315,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings exportAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -322,6 +326,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings restoreAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -332,6 +337,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings validateAgentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -342,6 +348,7 @@ protected GrpcAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     getAgentValidationResultTransportSettings =
                                            @@ -353,6 +360,7 @@ protected GrpcAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     getGenerativeSettingsTransportSettings =
                                            @@ -364,6 +372,7 @@ protected GrpcAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     updateGenerativeSettingsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java
                                            index 5934edbbd246..1e965d3b998e 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java
                                            @@ -155,6 +155,7 @@ protected GrpcChangelogsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getChangelogTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -165,6 +166,7 @@ protected GrpcChangelogsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcConversationHistoryStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcConversationHistoryStub.java
                                            index cb15820a749f..a0facd9638e3 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcConversationHistoryStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcConversationHistoryStub.java
                                            @@ -176,6 +176,7 @@ protected GrpcConversationHistoryStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getConversationTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -186,6 +187,7 @@ protected GrpcConversationHistoryStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings deleteConversationTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -196,6 +198,7 @@ protected GrpcConversationHistoryStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java
                                            index 3119710f5a50..42b5c6a9c529 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java
                                            @@ -157,6 +157,7 @@ protected GrpcDeploymentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getDeploymentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -167,6 +168,7 @@ protected GrpcDeploymentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
                                            index dd43db4fdcc8..154976a3388e 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
                                            @@ -234,6 +234,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createEntityTypeTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -244,6 +245,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateEntityTypeTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -265,6 +267,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     listEntityTypesTransportSettings =
                                            @@ -276,6 +279,7 @@ protected GrpcEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings exportEntityTypesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -286,6 +290,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings importEntityTypesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -296,6 +301,7 @@ protected GrpcEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java
                                            index 7613e4a46a27..c8c6f04af08a 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java
                                            @@ -287,6 +287,7 @@ protected GrpcEnvironmentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getEnvironmentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -297,6 +298,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createEnvironmentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -307,6 +309,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateEnvironmentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -328,6 +331,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     lookupEnvironmentHistoryTransportSettings =
                                            @@ -340,6 +344,7 @@ protected GrpcEnvironmentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings runContinuousTestTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -350,6 +355,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("environment", String.valueOf(request.getEnvironment()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                         .build();
                                                 GrpcCallSettings
                                                     listContinuousTestResultsTransportSettings =
                                            @@ -362,6 +368,7 @@ protected GrpcEnvironmentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings deployFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -372,6 +379,7 @@ protected GrpcEnvironmentsStub(
                                                               builder.add("environment", String.valueOf(request.getEnvironment()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExamplesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExamplesStub.java
                                            index 5f47e645e1be..dde6f5868a96 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExamplesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExamplesStub.java
                                            @@ -187,6 +187,7 @@ protected GrpcExamplesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings deleteExampleTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -197,6 +198,7 @@ protected GrpcExamplesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listExamplesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -207,6 +209,7 @@ protected GrpcExamplesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getExampleTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -217,6 +220,7 @@ protected GrpcExamplesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings updateExampleTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExperimentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExperimentsStub.java
                                            index 891acbccf4db..31d125eecf5e 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExperimentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExperimentsStub.java
                                            @@ -223,6 +223,7 @@ protected GrpcExperimentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -233,6 +234,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -243,6 +245,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -263,6 +266,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings startExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -273,6 +277,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings stopExperimentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -283,6 +288,7 @@ protected GrpcExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcFlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcFlowsStub.java
                                            index 0d7db7578778..3c30a78c1064 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcFlowsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcFlowsStub.java
                                            @@ -253,6 +253,7 @@ protected GrpcFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings deleteFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -263,6 +264,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listFlowsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -273,6 +275,7 @@ protected GrpcFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -283,6 +286,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings updateFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -303,6 +307,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings validateFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -313,6 +318,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     getFlowValidationResultTransportSettings =
                                            @@ -324,6 +330,7 @@ protected GrpcFlowsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings importFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -334,6 +341,7 @@ protected GrpcFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings exportFlowTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -344,6 +352,7 @@ protected GrpcFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcGeneratorsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcGeneratorsStub.java
                                            index 798973e099f9..df567a84e078 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcGeneratorsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcGeneratorsStub.java
                                            @@ -195,6 +195,7 @@ protected GrpcGeneratorsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getGeneratorTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -205,6 +206,7 @@ protected GrpcGeneratorsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createGeneratorTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -215,6 +217,7 @@ protected GrpcGeneratorsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateGeneratorTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -235,6 +238,7 @@ protected GrpcGeneratorsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcIntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcIntentsStub.java
                                            index b3349595b99e..6e2af9a977ac 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcIntentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcIntentsStub.java
                                            @@ -221,6 +221,7 @@ protected GrpcIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -231,6 +232,7 @@ protected GrpcIntentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -241,6 +243,7 @@ protected GrpcIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -261,6 +264,7 @@ protected GrpcIntentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings importIntentsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -271,6 +275,7 @@ protected GrpcIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings exportIntentsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -281,6 +286,7 @@ protected GrpcIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPagesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPagesStub.java
                                            index 276f46fae213..a358da914496 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPagesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPagesStub.java
                                            @@ -181,6 +181,7 @@ protected GrpcPagesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getPageTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -191,6 +192,7 @@ protected GrpcPagesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createPageTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -201,6 +203,7 @@ protected GrpcPagesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updatePageTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -221,6 +224,7 @@ protected GrpcPagesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPlaybooksStub.java
                                            index 8ec617a0902c..f7492434ef6d 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPlaybooksStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPlaybooksStub.java
                                            @@ -310,6 +310,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings deletePlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -320,6 +321,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listPlaybooksTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -330,6 +332,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getPlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -340,6 +343,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings exportPlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -350,6 +354,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings importPlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -360,6 +365,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updatePlaybookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -381,6 +387,7 @@ protected GrpcPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     getPlaybookVersionTransportSettings =
                                            @@ -392,6 +399,7 @@ protected GrpcPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     restorePlaybookVersionTransportSettings =
                                            @@ -404,6 +412,7 @@ protected GrpcPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     listPlaybookVersionsTransportSettings =
                                            @@ -415,6 +424,7 @@ protected GrpcPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings deletePlaybookVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -425,6 +435,7 @@ protected GrpcPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSecuritySettingsServiceStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSecuritySettingsServiceStub.java
                                            index 8a5b54c0f561..565e39e67f25 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSecuritySettingsServiceStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSecuritySettingsServiceStub.java
                                            @@ -208,6 +208,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     getSecuritySettingsTransportSettings =
                                            @@ -219,6 +220,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     updateSecuritySettingsTransportSettings =
                                            @@ -243,6 +245,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings deleteSecuritySettingsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -253,6 +256,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionEntityTypesStub.java
                                            index af8af1fab706..c79499703c83 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionEntityTypesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionEntityTypesStub.java
                                            @@ -211,6 +211,7 @@ protected GrpcSessionEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     getSessionEntityTypeTransportSettings =
                                            @@ -222,6 +223,7 @@ protected GrpcSessionEntityTypesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     createSessionEntityTypeTransportSettings =
                                            @@ -233,6 +235,7 @@ protected GrpcSessionEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     updateSessionEntityTypeTransportSettings =
                                            @@ -257,6 +260,7 @@ protected GrpcSessionEntityTypesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
                                            index d7a13a463b6e..2a9e3939a81b 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
                                            @@ -211,6 +211,7 @@ protected GrpcSessionsStub(
                                                               builder.add("session", String.valueOf(request.getSession()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getSession())
                                                         .build();
                                                 GrpcCallSettings
                                                     serverStreamingDetectIntentTransportSettings =
                                            @@ -222,12 +223,14 @@ protected GrpcSessionsStub(
                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 GrpcCallSettings
                                                     streamingDetectIntentTransportSettings =
                                                         GrpcCallSettings
                                                             .newBuilder()
                                                             .setMethodDescriptor(streamingDetectIntentMethodDescriptor)
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 GrpcCallSettings matchIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -238,6 +241,7 @@ protected GrpcSessionsStub(
                                                               builder.add("session", String.valueOf(request.getSession()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getSession())
                                                         .build();
                                                 GrpcCallSettings fulfillIntentTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -261,6 +265,7 @@ protected GrpcSessionsStub(
                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java
                                            index 12062e6ee6e9..6a0a388c2bcb 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java
                                            @@ -313,6 +313,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings batchDeleteTestCasesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -323,6 +324,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getTestCaseTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -333,6 +335,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createTestCaseTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -343,6 +346,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateTestCaseTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -363,6 +367,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings batchRunTestCasesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -373,6 +378,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings
                                                     calculateCoverageTransportSettings =
                                            @@ -384,6 +390,7 @@ protected GrpcTestCasesStub(
                                                                   builder.add("agent", String.valueOf(request.getAgent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getAgent())
                                                             .build();
                                                 GrpcCallSettings importTestCasesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -394,6 +401,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings exportTestCasesTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -404,6 +412,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings
                                                     listTestCaseResultsTransportSettings =
                                            @@ -415,6 +424,7 @@ protected GrpcTestCasesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings getTestCaseResultTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -425,6 +435,7 @@ protected GrpcTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcToolsStub.java
                                            index 9d588ca3f114..2bf3a3dedf88 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcToolsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcToolsStub.java
                                            @@ -273,6 +273,7 @@ protected GrpcToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings listToolsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -283,6 +284,7 @@ protected GrpcToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings exportToolsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -293,6 +295,7 @@ protected GrpcToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getToolTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -303,6 +306,7 @@ protected GrpcToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings updateToolTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -323,6 +327,7 @@ protected GrpcToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     listToolVersionsTransportSettings =
                                            @@ -334,6 +339,7 @@ protected GrpcToolsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings createToolVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -344,6 +350,7 @@ protected GrpcToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getToolVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -354,6 +361,7 @@ protected GrpcToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings deleteToolVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -364,6 +372,7 @@ protected GrpcToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     restoreToolVersionTransportSettings =
                                            @@ -375,6 +384,7 @@ protected GrpcToolsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsStub.java
                                            index f9fb7cb9415e..41a19e973750 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsStub.java
                                            @@ -215,6 +215,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     getTransitionRouteGroupTransportSettings =
                                            @@ -226,6 +227,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings
                                                     createTransitionRouteGroupTransportSettings =
                                            @@ -237,6 +239,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 GrpcCallSettings
                                                     updateTransitionRouteGroupTransportSettings =
                                            @@ -261,6 +264,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java
                                            index 133576384ea9..18a33a0132e1 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java
                                            @@ -221,6 +221,7 @@ protected GrpcVersionsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -231,6 +232,7 @@ protected GrpcVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -241,6 +243,7 @@ protected GrpcVersionsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -261,6 +264,7 @@ protected GrpcVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings loadVersionTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -271,6 +275,7 @@ protected GrpcVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings
                                                     compareVersionsTransportSettings =
                                            @@ -282,6 +287,7 @@ protected GrpcVersionsStub(
                                                                   builder.add("base_version", String.valueOf(request.getBaseVersion()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getBaseVersion())
                                                             .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcWebhooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcWebhooksStub.java
                                            index b4c5115ed1d5..90e4961a24a9 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcWebhooksStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcWebhooksStub.java
                                            @@ -187,6 +187,7 @@ protected GrpcWebhooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings getWebhookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -197,6 +198,7 @@ protected GrpcWebhooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings createWebhookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -207,6 +209,7 @@ protected GrpcWebhooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 GrpcCallSettings updateWebhookTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            @@ -227,6 +230,7 @@ protected GrpcWebhooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 GrpcCallSettings listLocationsTransportSettings =
                                                     GrpcCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonAgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonAgentsStub.java
                                            index 6a3ae64555d6..c490bb013f05 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonAgentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonAgentsStub.java
                                            @@ -667,6 +667,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -678,6 +679,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -689,6 +691,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -711,6 +714,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings exportAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -722,6 +726,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings restoreAgentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -733,6 +738,7 @@ protected HttpJsonAgentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     validateAgentTransportSettings =
                                            @@ -745,6 +751,7 @@ protected HttpJsonAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getAgentValidationResultTransportSettings =
                                            @@ -758,6 +765,7 @@ protected HttpJsonAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getGenerativeSettingsTransportSettings =
                                            @@ -770,6 +778,7 @@ protected HttpJsonAgentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     updateGenerativeSettingsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonChangelogsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonChangelogsStub.java
                                            index faa9139ba2c8..85adfaa41fe9 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonChangelogsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonChangelogsStub.java
                                            @@ -261,6 +261,7 @@ protected HttpJsonChangelogsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getChangelogTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -272,6 +273,7 @@ protected HttpJsonChangelogsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonConversationHistoryStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonConversationHistoryStub.java
                                            index 3482ea8a08ba..461fac86cd19 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonConversationHistoryStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonConversationHistoryStub.java
                                            @@ -304,6 +304,7 @@ protected HttpJsonConversationHistoryStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getConversationTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -315,6 +316,7 @@ protected HttpJsonConversationHistoryStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings deleteConversationTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -326,6 +328,7 @@ protected HttpJsonConversationHistoryStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonDeploymentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonDeploymentsStub.java
                                            index aef7aee3008c..4b69fd3b7510 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonDeploymentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonDeploymentsStub.java
                                            @@ -261,6 +261,7 @@ protected HttpJsonDeploymentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getDeploymentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -272,6 +273,7 @@ protected HttpJsonDeploymentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEntityTypesStub.java
                                            index d3adf773580d..417adeaab50f 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEntityTypesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEntityTypesStub.java
                                            @@ -528,6 +528,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createEntityTypeTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -539,6 +540,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateEntityTypeTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -562,6 +564,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listEntityTypesTransportSettings =
                                            @@ -574,6 +577,7 @@ protected HttpJsonEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings exportEntityTypesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -585,6 +589,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings importEntityTypesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -596,6 +601,7 @@ protected HttpJsonEntityTypesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEnvironmentsStub.java
                                            index fe6492209ac4..c2d5018f3080 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEnvironmentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEnvironmentsStub.java
                                            @@ -634,6 +634,7 @@ protected HttpJsonEnvironmentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getEnvironmentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -645,6 +646,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createEnvironmentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -656,6 +658,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateEnvironmentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -679,6 +682,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     lookupEnvironmentHistoryTransportSettings =
                                            @@ -692,6 +696,7 @@ protected HttpJsonEnvironmentsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings runContinuousTestTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -703,6 +708,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("environment", String.valueOf(request.getEnvironment()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listContinuousTestResultsTransportSettings =
                                            @@ -716,6 +722,7 @@ protected HttpJsonEnvironmentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings deployFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -727,6 +734,7 @@ protected HttpJsonEnvironmentsStub(
                                                               builder.add("environment", String.valueOf(request.getEnvironment()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExamplesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExamplesStub.java
                                            index aa737c530aad..a28eb27184bb 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExamplesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExamplesStub.java
                                            @@ -376,6 +376,7 @@ protected HttpJsonExamplesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings deleteExampleTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -387,6 +388,7 @@ protected HttpJsonExamplesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings listExamplesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -398,6 +400,7 @@ protected HttpJsonExamplesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getExampleTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -409,6 +412,7 @@ protected HttpJsonExamplesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings updateExampleTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExperimentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExperimentsStub.java
                                            index 08c451610fc9..c4ea6c275438 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExperimentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExperimentsStub.java
                                            @@ -456,6 +456,7 @@ protected HttpJsonExperimentsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -467,6 +468,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -478,6 +480,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -500,6 +503,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings startExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -511,6 +515,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings stopExperimentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -522,6 +527,7 @@ protected HttpJsonExperimentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonFlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonFlowsStub.java
                                            index 80eea71d4fef..25944cdf73f5 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonFlowsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonFlowsStub.java
                                            @@ -631,6 +631,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings deleteFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -642,6 +643,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings listFlowsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -653,6 +655,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -664,6 +667,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings updateFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -686,6 +690,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings validateFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -697,6 +702,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     getFlowValidationResultTransportSettings =
                                            @@ -709,6 +715,7 @@ protected HttpJsonFlowsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings importFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -720,6 +727,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings exportFlowTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -731,6 +739,7 @@ protected HttpJsonFlowsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonGeneratorsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonGeneratorsStub.java
                                            index 06bce793ef21..ad08e197a571 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonGeneratorsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonGeneratorsStub.java
                                            @@ -386,6 +386,7 @@ protected HttpJsonGeneratorsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getGeneratorTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -397,6 +398,7 @@ protected HttpJsonGeneratorsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createGeneratorTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -408,6 +410,7 @@ protected HttpJsonGeneratorsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateGeneratorTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -430,6 +433,7 @@ protected HttpJsonGeneratorsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonIntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonIntentsStub.java
                                            index 9eb2864803d9..c299fe47d134 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonIntentsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonIntentsStub.java
                                            @@ -523,6 +523,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getIntentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -534,6 +535,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createIntentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -545,6 +547,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateIntentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -567,6 +570,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings importIntentsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -578,6 +582,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings exportIntentsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -589,6 +594,7 @@ protected HttpJsonIntentsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPagesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPagesStub.java
                                            index d2122305acf8..76384a2705c3 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPagesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPagesStub.java
                                            @@ -371,6 +371,7 @@ protected HttpJsonPagesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getPageTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -382,6 +383,7 @@ protected HttpJsonPagesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createPageTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -393,6 +395,7 @@ protected HttpJsonPagesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updatePageTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -415,6 +418,7 @@ protected HttpJsonPagesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPlaybooksStub.java
                                            index 31cb6af2ec97..fab72655db75 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPlaybooksStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPlaybooksStub.java
                                            @@ -719,6 +719,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings deletePlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -730,6 +731,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listPlaybooksTransportSettings =
                                            @@ -742,6 +744,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings getPlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -753,6 +756,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings exportPlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -764,6 +768,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings importPlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -775,6 +780,7 @@ protected HttpJsonPlaybooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updatePlaybookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -798,6 +804,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getPlaybookVersionTransportSettings =
                                            @@ -810,6 +817,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     restorePlaybookVersionTransportSettings =
                                            @@ -823,6 +831,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listPlaybookVersionsTransportSettings =
                                            @@ -836,6 +845,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     deletePlaybookVersionTransportSettings =
                                            @@ -848,6 +858,7 @@ protected HttpJsonPlaybooksStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSecuritySettingsServiceStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSecuritySettingsServiceStub.java
                                            index e69f9e8aade9..092ba0c02080 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSecuritySettingsServiceStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSecuritySettingsServiceStub.java
                                            @@ -393,6 +393,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getSecuritySettingsTransportSettings =
                                            @@ -405,6 +406,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     updateSecuritySettingsTransportSettings =
                                            @@ -432,6 +434,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     deleteSecuritySettingsTransportSettings =
                                            @@ -444,6 +447,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionEntityTypesStub.java
                                            index d3aa6791f88a..2a960492449b 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionEntityTypesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionEntityTypesStub.java
                                            @@ -406,6 +406,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getSessionEntityTypeTransportSettings =
                                            @@ -418,6 +419,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     createSessionEntityTypeTransportSettings =
                                            @@ -430,6 +432,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     updateSessionEntityTypeTransportSettings =
                                            @@ -456,6 +459,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionsStub.java
                                            index c4f648015bce..64555454146c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionsStub.java
                                            @@ -395,6 +395,7 @@ protected HttpJsonSessionsStub(
                                                               builder.add("session", String.valueOf(request.getSession()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getSession())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     serverStreamingDetectIntentTransportSettings =
                                            @@ -407,6 +408,7 @@ protected HttpJsonSessionsStub(
                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 HttpJsonCallSettings matchIntentTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -418,6 +420,7 @@ protected HttpJsonSessionsStub(
                                                               builder.add("session", String.valueOf(request.getSession()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getSession())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     fulfillIntentTransportSettings =
                                            @@ -444,6 +447,7 @@ protected HttpJsonSessionsStub(
                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getSession())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTestCasesStub.java
                                            index d685689f056c..7a7e27a8a32c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTestCasesStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTestCasesStub.java
                                            @@ -740,6 +740,7 @@ protected HttpJsonTestCasesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings batchDeleteTestCasesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -751,6 +752,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getTestCaseTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -762,6 +764,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createTestCaseTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -773,6 +776,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateTestCaseTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -795,6 +799,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings batchRunTestCasesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -806,6 +811,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     calculateCoverageTransportSettings =
                                            @@ -818,6 +824,7 @@ protected HttpJsonTestCasesStub(
                                                                   builder.add("agent", String.valueOf(request.getAgent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getAgent())
                                                             .build();
                                                 HttpJsonCallSettings importTestCasesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -829,6 +836,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings exportTestCasesTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -840,6 +848,7 @@ protected HttpJsonTestCasesStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listTestCaseResultsTransportSettings =
                                            @@ -853,6 +862,7 @@ protected HttpJsonTestCasesStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getTestCaseResultTransportSettings =
                                            @@ -865,6 +875,7 @@ protected HttpJsonTestCasesStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonToolsStub.java
                                            index 2b30f350607e..839d6f6830b5 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonToolsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonToolsStub.java
                                            @@ -655,6 +655,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings listToolsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -666,6 +667,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings exportToolsTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -677,6 +679,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getToolTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -688,6 +691,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings updateToolTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -710,6 +714,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listToolVersionsTransportSettings =
                                            @@ -722,6 +727,7 @@ protected HttpJsonToolsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings createToolVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -733,6 +739,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getToolVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -744,6 +751,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings deleteToolVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -755,6 +763,7 @@ protected HttpJsonToolsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     restoreToolVersionTransportSettings =
                                            @@ -767,6 +776,7 @@ protected HttpJsonToolsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTransitionRouteGroupsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTransitionRouteGroupsStub.java
                                            index c72e1229d299..c7a9c2c62ad3 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTransitionRouteGroupsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTransitionRouteGroupsStub.java
                                            @@ -420,6 +420,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     getTransitionRouteGroupTransportSettings =
                                            @@ -432,6 +433,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     createTransitionRouteGroupTransportSettings =
                                            @@ -445,6 +447,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getParent())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     updateTransitionRouteGroupTransportSettings =
                                            @@ -472,6 +475,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getName())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonVersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonVersionsStub.java
                                            index 3ceaa62a9fc0..1661bbc81bea 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonVersionsStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonVersionsStub.java
                                            @@ -515,6 +515,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -526,6 +527,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -537,6 +539,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -559,6 +562,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings loadVersionTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -570,6 +574,7 @@ protected HttpJsonVersionsStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     compareVersionsTransportSettings =
                                            @@ -582,6 +587,7 @@ protected HttpJsonVersionsStub(
                                                                   builder.add("base_version", String.valueOf(request.getBaseVersion()));
                                                                   return builder.build();
                                                                 })
                                            +                .setResourceNameExtractor(request -> request.getBaseVersion())
                                                             .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonWebhooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonWebhooksStub.java
                                            index 189d9a1adc72..013f2352238a 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonWebhooksStub.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonWebhooksStub.java
                                            @@ -375,6 +375,7 @@ protected HttpJsonWebhooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings getWebhookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -386,6 +387,7 @@ protected HttpJsonWebhooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings createWebhookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -397,6 +399,7 @@ protected HttpJsonWebhooksStub(
                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getParent())
                                                         .build();
                                                 HttpJsonCallSettings updateWebhookTransportSettings =
                                                     HttpJsonCallSettings.newBuilder()
                                            @@ -419,6 +422,7 @@ protected HttpJsonWebhooksStub(
                                                               builder.add("name", String.valueOf(request.getName()));
                                                               return builder.build();
                                                             })
                                            +            .setResourceNameExtractor(request -> request.getName())
                                                         .build();
                                                 HttpJsonCallSettings
                                                     listLocationsTransportSettings =
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java
                                            index 8d19802fb11c..79a57c24a07f 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java
                                            @@ -470,6 +470,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java
                                            index 837a181fd340..10cac0ae8b62 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java
                                            @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java
                                            index 561ef1e22ef1..fe21f7242ef0 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java
                                            @@ -590,6 +590,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java
                                            index dfed5e74094d..f51c731b99b9 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java
                                            @@ -430,6 +430,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java
                                            index ec23078559ff..47e442e5859e 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java
                                            @@ -435,6 +435,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java
                                            index 6e8f52aaab12..e65986105fec 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java
                                            @@ -365,6 +365,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java
                                            index d99fdfdd8137..6e5eea79201c 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java
                                            @@ -608,6 +608,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java
                                            index 6b8d5d7f4401..8dbcca5a3b5a 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java
                                            @@ -556,6 +556,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java
                                            index f7defbea4f75..70e2f50eedfd 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java
                                            @@ -444,6 +444,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java
                                            new file mode 100644
                                            index 000000000000..7d5b8929fe64
                                            --- /dev/null
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java
                                            @@ -0,0 +1,27 @@
                                            +/*
                                            + * Copyright 2026 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.
                                            + */
                                            +
                                            +package com.google.cloud.dialogflow.cx.v3beta1.stub;
                                            +
                                            +import com.google.api.core.InternalApi;
                                            +
                                            +@InternalApi("For internal use only")
                                            +final class Version {
                                            +  // {x-version-update-start:google-cloud-dialogflow-cx:current}
                                            +  static final String VERSION = "0.0.0-SNAPSHOT";
                                            +  // {x-version-update-end}
                                            +
                                            +}
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java
                                            index b3492b9552c2..948bb4c013a1 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java
                                            @@ -469,6 +469,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(com.google.cloud.dialogflow.cx.v3beta1.stub.Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java
                                            index 9152c1d0987e..1d3362703cbb 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java
                                            @@ -401,6 +401,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                 return LibraryMetadata.newBuilder()
                                                     .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                     .setRepository("googleapis/google-cloud-java")
                                            +        .setVersion(Version.VERSION)
                                                     .build();
                                               }
                                             
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json
                                            index c91381cd65c6..338e69ed24ae 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json
                                            @@ -1,4 +1,58 @@
                                             [
                                            +  {
                                            +    "name": "com.google.api.BatchingConfigProto",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingConfigProto$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingDescriptorProto",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingDescriptorProto$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingSettingsProto",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingSettingsProto$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                               {
                                                 "name": "com.google.api.ClientLibraryDestination",
                                                 "queryAllDeclaredConstructors": true,
                                            @@ -116,6 +170,15 @@
                                                 "allDeclaredClasses": true,
                                                 "allPublicClasses": true
                                               },
                                            +  {
                                            +    "name": "com.google.api.FlowControlLimitExceededBehaviorProto",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                               {
                                                 "name": "com.google.api.GoSettings",
                                                 "queryAllDeclaredConstructors": true,
                                            @@ -2987,6 +3050,24 @@
                                                 "allDeclaredClasses": true,
                                                 "allPublicClasses": true
                                               },
                                            +  {
                                            +    "name": "com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                               {
                                                 "name": "com.google.cloud.dialogflow.cx.v3.FlowTransition",
                                                 "queryAllDeclaredConstructors": true,
                                            @@ -5741,6 +5822,24 @@
                                                 "allDeclaredClasses": true,
                                                 "allPublicClasses": true
                                               },
                                            +  {
                                            +    "name": "com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                               {
                                                 "name": "com.google.cloud.dialogflow.cx.v3.PlaybookTransition",
                                                 "queryAllDeclaredConstructors": true,
                                            @@ -6641,6 +6740,24 @@
                                                 "allDeclaredClasses": true,
                                                 "allPublicClasses": true
                                               },
                                            +  {
                                            +    "name": "com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                               {
                                                 "name": "com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings",
                                                 "queryAllDeclaredConstructors": true,
                                            @@ -7361,6 +7478,24 @@
                                                 "allDeclaredClasses": true,
                                                 "allPublicClasses": true
                                               },
                                            +  {
                                            +    "name": "com.google.cloud.dialogflow.cx.v3.TraceBlock",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.cloud.dialogflow.cx.v3.TraceBlock$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                               {
                                                 "name": "com.google.cloud.dialogflow.cx.v3.TrainFlowRequest",
                                                 "queryAllDeclaredConstructors": true,
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json
                                            index 32f820f2a7e1..aea452d2a260 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json
                                            @@ -1,4 +1,58 @@
                                             [
                                            +  {
                                            +    "name": "com.google.api.BatchingConfigProto",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingConfigProto$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingDescriptorProto",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingDescriptorProto$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingSettingsProto",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                            +  {
                                            +    "name": "com.google.api.BatchingSettingsProto$Builder",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                               {
                                                 "name": "com.google.api.ClientLibraryDestination",
                                                 "queryAllDeclaredConstructors": true,
                                            @@ -116,6 +170,15 @@
                                                 "allDeclaredClasses": true,
                                                 "allPublicClasses": true
                                               },
                                            +  {
                                            +    "name": "com.google.api.FlowControlLimitExceededBehaviorProto",
                                            +    "queryAllDeclaredConstructors": true,
                                            +    "queryAllPublicConstructors": true,
                                            +    "queryAllDeclaredMethods": true,
                                            +    "allPublicMethods": true,
                                            +    "allDeclaredClasses": true,
                                            +    "allPublicClasses": true
                                            +  },
                                               {
                                                 "name": "com.google.api.GoSettings",
                                                 "queryAllDeclaredConstructors": true,
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientHttpJsonTest.java
                                            index 59a67700cc4a..26a349872cec 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientHttpJsonTest.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientHttpJsonTest.java
                                            @@ -198,6 +198,7 @@ public void getIntentTest() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockService.addResponse(expectedResponse);
                                             
                                            @@ -249,6 +250,7 @@ public void getIntentTest2() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockService.addResponse(expectedResponse);
                                             
                                            @@ -302,6 +304,7 @@ public void createIntentTest() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockService.addResponse(expectedResponse);
                                             
                                            @@ -355,6 +358,7 @@ public void createIntentTest2() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockService.addResponse(expectedResponse);
                                             
                                            @@ -408,6 +412,7 @@ public void updateIntentTest() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockService.addResponse(expectedResponse);
                                             
                                            @@ -421,6 +426,7 @@ public void updateIntentTest() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 FieldMask updateMask = FieldMask.newBuilder().build();
                                             
                                            @@ -460,6 +466,7 @@ public void updateIntentExceptionTest() throws Exception {
                                                           .setIsFallback(true)
                                                           .putAllLabels(new HashMap())
                                                           .setDescription("description-1724546052")
                                            +              .setDtmfPattern("dtmfPattern-1819689689")
                                                           .build();
                                                   FieldMask updateMask = FieldMask.newBuilder().build();
                                                   client.updateIntent(intent, updateMask);
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java
                                            index 791d5549a75f..99d5cdcd2036 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java
                                            @@ -194,6 +194,7 @@ public void getIntentTest() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockIntents.addResponse(expectedResponse);
                                             
                                            @@ -239,6 +240,7 @@ public void getIntentTest2() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockIntents.addResponse(expectedResponse);
                                             
                                            @@ -284,6 +286,7 @@ public void createIntentTest() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockIntents.addResponse(expectedResponse);
                                             
                                            @@ -332,6 +335,7 @@ public void createIntentTest2() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockIntents.addResponse(expectedResponse);
                                             
                                            @@ -380,6 +384,7 @@ public void updateIntentTest() throws Exception {
                                                         .setIsFallback(true)
                                                         .putAllLabels(new HashMap())
                                                         .setDescription("description-1724546052")
                                            +            .setDtmfPattern("dtmfPattern-1819689689")
                                                         .build();
                                                 mockIntents.addResponse(expectedResponse);
                                             
                                            diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadata.java
                                            new file mode 100644
                                            index 000000000000..897fc34de509
                                            --- /dev/null
                                            +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadata.java
                                            @@ -0,0 +1,813 @@
                                            +/*
                                            + * Copyright 2026 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!
                                            +// NO CHECKED-IN PROTOBUF GENCODE
                                            +// source: google/cloud/dialogflow/cx/v3/trace.proto
                                            +// Protobuf Java Version: 4.33.2
                                            +
                                            +package com.google.cloud.dialogflow.cx.v3;
                                            +
                                            +/**
                                            + *
                                            + *
                                            + * 
                                            + * Metadata of the flow trace.
                                            + * 
                                            + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.FlowTraceMetadata} + */ +@com.google.protobuf.Generated +public final class FlowTraceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + FlowTraceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FlowTraceMetadata"); + } + + // Use FlowTraceMetadata.newBuilder() to construct. + private FlowTraceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FlowTraceMetadata() { + flow_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder.class); + } + + public static final int FLOW_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object flow_ = ""; + + /** + * + * + *
                                            +   * Required. The unique identifier of the flow.
                                            +   * Format:
                                            +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +   * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flow. + */ + @java.lang.Override + public java.lang.String getFlow() { + java.lang.Object ref = flow_; + 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(); + flow_ = s; + return s; + } + } + + /** + * + * + *
                                            +   * Required. The unique identifier of the flow.
                                            +   * Format:
                                            +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +   * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flow. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlowBytes() { + java.lang.Object ref = flow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                            +   * Output only. The display name of the flow.
                                            +   * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                            +   * Output only. The display name of the flow.
                                            +   * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(flow_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, flow_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(flow_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, flow_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + 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.dialogflow.cx.v3.FlowTraceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata other = + (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) obj; + + if (!getFlow().equals(other.getFlow())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + FLOW_FIELD_NUMBER; + hash = (53 * hash) + getFlow().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata 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.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata 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.dialogflow.cx.v3.FlowTraceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.cx.v3.FlowTraceMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                            +   * Metadata of the flow trace.
                                            +   * 
                                            + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.FlowTraceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + flow_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata build() { + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata result = + new com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.flow_ = flow_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance()) + return this; + if (!other.getFlow().isEmpty()) { + flow_ = other.flow_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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: + { + flow_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = 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 java.lang.Object flow_ = ""; + + /** + * + * + *
                                            +     * Required. The unique identifier of the flow.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +     * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flow. + */ + public java.lang.String getFlow() { + java.lang.Object ref = flow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                            +     * Required. The unique identifier of the flow.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +     * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flow. + */ + public com.google.protobuf.ByteString getFlowBytes() { + java.lang.Object ref = flow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                            +     * Required. The unique identifier of the flow.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +     * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The flow to set. + * @return This builder for chaining. + */ + public Builder setFlow(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + flow_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Required. The unique identifier of the flow.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +     * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFlow() { + flow_ = getDefaultInstance().getFlow(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Required. The unique identifier of the flow.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +     * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for flow to set. + * @return This builder for chaining. + */ + public Builder setFlowBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + flow_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                            +     * Output only. The display name of the flow.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                            +     * Output only. The display name of the flow.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                            +     * Output only. The display name of the flow.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. The display name of the flow.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. The display name of the flow.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + private static final com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowTraceMetadata 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.dialogflow.cx.v3.FlowTraceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadataOrBuilder.java new file mode 100644 index 000000000000..5a81078aa336 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadataOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +@com.google.protobuf.Generated +public interface FlowTraceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                            +   * Required. The unique identifier of the flow.
                                            +   * Format:
                                            +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +   * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flow. + */ + java.lang.String getFlow(); + + /** + * + * + *
                                            +   * Required. The unique identifier of the flow.
                                            +   * Format:
                                            +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                            +   * 
                                            + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flow. + */ + com.google.protobuf.ByteString getFlowBytes(); + + /** + * + * + *
                                            +   * Output only. The display name of the flow.
                                            +   * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                            +   * Output only. The display name of the flow.
                                            +   * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java index 2ec37ffaf33c..6ac04009a299 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java @@ -61,6 +61,7 @@ private Intent() { trainingPhrases_ = java.util.Collections.emptyList(); parameters_ = java.util.Collections.emptyList(); description_ = ""; + dtmfPattern_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -4546,6 +4547,59 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int DTMF_PATTERN_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object dtmfPattern_ = ""; + + /** + * + * + *
                                            +   * Optional. Matching DTMF pattern for the intent.
                                            +   * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmfPattern. + */ + @java.lang.Override + public java.lang.String getDtmfPattern() { + java.lang.Object ref = dtmfPattern_; + 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(); + dtmfPattern_ = s; + return s; + } + } + + /** + * + * + *
                                            +   * Optional. Matching DTMF pattern for the intent.
                                            +   * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmfPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDtmfPatternBytes() { + java.lang.Object ref = dtmfPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dtmfPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4583,6 +4637,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, description_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dtmfPattern_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 16, dtmfPattern_); + } getUnknownFields().writeTo(output); } @@ -4623,6 +4680,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, description_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dtmfPattern_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(16, dtmfPattern_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4646,6 +4706,7 @@ public boolean equals(final java.lang.Object obj) { if (getIsFallback() != other.getIsFallback()) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getDescription().equals(other.getDescription())) return false; + if (!getDtmfPattern().equals(other.getDtmfPattern())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4679,6 +4740,8 @@ public int hashCode() { } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DTMF_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getDtmfPattern().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4865,6 +4928,7 @@ public Builder clear() { isFallback_ = false; internalGetMutableLabels().clear(); description_ = ""; + dtmfPattern_ = ""; return this; } @@ -4942,6 +5006,9 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.description_ = description_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.dtmfPattern_ = dtmfPattern_; + } } @java.lang.Override @@ -5033,6 +5100,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) { bitField0_ |= 0x00000080; onChanged(); } + if (!other.getDtmfPattern().isEmpty()) { + dtmfPattern_ = other.dtmfPattern_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5129,6 +5201,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 130: + { + dtmfPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6714,6 +6792,117 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object dtmfPattern_ = ""; + + /** + * + * + *
                                            +     * Optional. Matching DTMF pattern for the intent.
                                            +     * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmfPattern. + */ + public java.lang.String getDtmfPattern() { + java.lang.Object ref = dtmfPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dtmfPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                            +     * Optional. Matching DTMF pattern for the intent.
                                            +     * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmfPattern. + */ + public com.google.protobuf.ByteString getDtmfPatternBytes() { + java.lang.Object ref = dtmfPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dtmfPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                            +     * Optional. Matching DTMF pattern for the intent.
                                            +     * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dtmfPattern to set. + * @return This builder for chaining. + */ + public Builder setDtmfPattern(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dtmfPattern_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. Matching DTMF pattern for the intent.
                                            +     * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDtmfPattern() { + dtmfPattern_ = getDefaultInstance().getDtmfPattern(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. Matching DTMF pattern for the intent.
                                            +     * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dtmfPattern to set. + * @return This builder for chaining. + */ + public Builder setDtmfPatternBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dtmfPattern_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Intent) } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java index 7a081ee21a21..cc03b155a854 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java @@ -398,4 +398,30 @@ java.lang.String getLabelsOrDefault( * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                            +   * Optional. Matching DTMF pattern for the intent.
                                            +   * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmfPattern. + */ + java.lang.String getDtmfPattern(); + + /** + * + * + *
                                            +   * Optional. Matching DTMF pattern for the intent.
                                            +   * 
                                            + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmfPattern. + */ + com.google.protobuf.ByteString getDtmfPatternBytes(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java index e8b9ebf591bb..0e63c9efb17a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java @@ -129,7 +129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032\031google/api/resource.proto\032*google/c" + "loud/dialogflow/cx/v3/inline.proto\032#goog" + "le/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\"\241\006\n" + + " google/protobuf/field_mask.proto\"\274\006\n" + "\006Intent\022\014\n" + "\004name\030\001 \001(\t\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022N\n" @@ -141,11 +141,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013is_fallback\030\006 \001(\010\022A\n" + "\006labels\030\007 \003(\01321.google." + "cloud.dialogflow.cx.v3.Intent.LabelsEntry\022\023\n" - + "\013description\030\010 \001(\t\032\267\001\n" + + "\013description\030\010 \001(\t\022\031\n" + + "\014dtmf_pattern\030\020 \001(\tB\003\340A\001\032\267\001\n" + "\016TrainingPhrase\022\017\n" + "\002id\030\001 \001(\tB\003\340A\003\022M\n" - + "\005parts\030\002 \003(\01329.goog" - + "le.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartB\003\340A\002\022\024\n" + + "\005parts\030\002 \003(\01329.google.cloud.dial" + + "ogflow.cx.v3.Intent.TrainingPhrase.PartB\003\340A\002\022\024\n" + "\014repeat_count\030\003 \001(\005\032/\n" + "\004Part\022\021\n" + "\004text\030\001 \001(\tB\003\340A\002\022\024\n" @@ -159,8 +160,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:n\352Ak\n" - + " dialogflow.googleapis.com/Intent\022Gprojects/{pro" - + "ject}/locations/{location}/agents/{agent}/intents/{intent}\"\314\001\n" + + " dialogflow.googleapis.com/Intent\022Gprojects/{project}/locatio" + + "ns/{location}/agents/{agent}/intents/{intent}\"\314\001\n" + "\022ListIntentsRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " dialogflow.googleapis.com/Intent\022\025\n\r" @@ -179,12 +180,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " dialogflow.googleapis.com/Intent\022:\n" + "\006intent\030\002" - + " \001(\0132%.google.cloud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n\r" + + " \001(\0132%.google.cloud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n" + + "\r" + "language_code\030\003 \001(\t\"\231\001\n" + "\023UpdateIntentRequest\022:\n" + "\006intent\030\001" - + " \001(\0132%.google.cloud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n" - + "\r" + + " \001(\0132%.google.cloud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n\r" + "language_code\030\002 \001(\t\022/\n" + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"M\n" + "\023DeleteIntentRequest\0226\n" @@ -194,10 +195,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " dialogflow.googleapis.com/Intent\022\025\n" + "\013intents_uri\030\002 \001(\tH\000\022F\n" - + "\017intents_content\030\003 \001(\0132" - + "+.google.cloud.dialogflow.cx.v3.InlineSourceH\000\022U\n" - + "\014merge_option\030\004 \001(\0162?.google.cl" - + "oud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption\"~\n" + + "\017intents_content\030\003" + + " \001(\0132+.google.cloud.dialogflow.cx.v3.InlineSourceH\000\022U\n" + + "\014merge_option\030\004 \001(\0162?.google.cloud.dialogflo" + + "w.cx.v3.ImportIntentsRequest.MergeOption\"~\n" + "\013MergeOption\022\034\n" + "\030MERGE_OPTION_UNSPECIFIED\020\000\022\016\n" + "\006REJECT\020\001\032\002\010\001\022\013\n" @@ -210,8 +211,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ImportIntentsResponse\0226\n" + "\007intents\030\001 \003(\tB%\372A\"\n" + " dialogflow.googleapis.com/Intent\022h\n" - + "\025conflicting_resources\030\002 \001(\0132I.google.cloud" - + ".dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources\032R\n" + + "\025conflicting_resources\030\002 \001(\0132I.google.cloud.dialogflow.c" + + "x.v3.ImportIntentsResponse.ConflictingResources\032R\n" + "\024ConflictingResources\022\034\n" + "\024intent_display_names\030\001 \003(\t\022\034\n" + "\024entity_display_names\030\002 \003(\t\"\027\n" @@ -222,8 +223,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007intents\030\002 \003(\tB\003\340A\002\022\032\n" + "\013intents_uri\030\003 \001(\tB\003\340A\001H\000\022%\n" + "\026intents_content_inline\030\004 \001(\010B\003\340A\001H\000\022X\n" - + "\013data_format\030\005 \001" - + "(\0162>.google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormatB\003\340A\001\"F\n\n" + + "\013data_format\030\005 \001(\0162>.google.c" + + "loud.dialogflow.cx.v3.ExportIntentsRequest.DataFormatB\003\340A\001\"F\n\n" + "DataFormat\022\033\n" + "\027DATA_FORMAT_UNSPECIFIED\020\000\022\010\n" + "\004BLOB\020\001\022\010\n" @@ -232,8 +233,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013destination\"\206\001\n" + "\025ExportIntentsResponse\022\025\n" + "\013intents_uri\030\001 \001(\tH\000\022K\n" - + "\017intents_content\030\002 \001(\01320.googl" - + "e.cloud.dialogflow.cx.v3.InlineDestinationH\000B\t\n" + + "\017intents_content\030\002" + + " \001(\01320.google.cloud.dialogflow.cx.v3.InlineDestinationH\000B\t\n" + "\007intents\"\027\n" + "\025ExportIntentsMetadata*X\n\n" + "IntentView\022\033\n" @@ -241,40 +242,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023INTENT_VIEW_PARTIAL\020\001\022\024\n" + "\020INTENT_VIEW_FULL\020\0022\334\013\n" + "\007Intents\022\273\001\n" - + "\013ListIntents\0221.google.cloud.dialogflow.cx.v3.ListInten" - + "tsRequest\0322.google.cloud.dialogflow.cx.v" - + "3.ListIntentsResponse\"E\332A\006parent\202\323\344\223\0026\0224" - + "/v3/{parent=projects/*/locations/*/agents/*}/intents\022\250\001\n" - + "\tGetIntent\022/.google.cloud.dialogflow.cx.v3.GetIntentRequest\032%.go" - + "ogle.cloud.dialogflow.cx.v3.Intent\"C\332A\004n" - + "ame\202\323\344\223\0026\0224/v3/{name=projects/*/locations/*/agents/*/intents/*}\022\277\001\n" - + "\014CreateIntent\0222.google.cloud.dialogflow.cx.v3.CreateI" - + "ntentRequest\032%.google.cloud.dialogflow.cx.v3.Intent\"T\332A\r" - + "parent,intent\202\323\344\223\002>\"4/v3" - + "/{parent=projects/*/locations/*/agents/*}/intents:\006intent\022\313\001\n" - + "\014UpdateIntent\0222.google.cloud.dialogflow.cx.v3.UpdateIntentR" - + "equest\032%.google.cloud.dialogflow.cx.v3.I" - + "ntent\"`\332A\022intent,update_mask\202\323\344\223\002E2;/v3/" - + "{intent.name=projects/*/locations/*/agents/*/intents/*}:\006intent\022\237\001\n" - + "\014DeleteIntent\0222.google.cloud.dialogflow.cx.v3.DeleteI" - + "ntentRequest\032\026.google.protobuf.Empty\"C\332A" - + "\004name\202\323\344\223\0026*4/v3/{name=projects/*/locations/*/agents/*/intents/*}\022\334\001\n\r" - + "ImportIntents\0223.google.cloud.dialogflow.cx.v3.Impo" - + "rtIntentsRequest\032\035.google.longrunning.Operation\"w\312A.\n" - + "\025ImportIntentsResponse\022\025Imp" - + "ortIntentsMetadata\202\323\344\223\002@\";/v3/{parent=pr" - + "ojects/*/locations/*/agents/*}/intents:import:\001*\022\334\001\n\r" - + "ExportIntents\0223.google.clou" - + "d.dialogflow.cx.v3.ExportIntentsRequest\032\035.google.longrunning.Operation\"w\312A.\n" - + "\025ExportIntentsResponse\022\025ExportIntentsMetadat" - + "a\202\323\344\223\002@\";/v3/{parent=projects/*/location" - + "s/*/agents/*}/intents:export:\001*\032x\312A\031dial" - + "ogflow.googleapis.com\322AYhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\256\001\n" - + "!com.google.cloud.dialogflow.cx.v3B\013IntentP" - + "rotoP\001Z1cloud.google.com/go/dialogflow/c" - + "x/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.Di" - + "alogflow.Cx.V3\352\002!Google::Cloud::Dialogflow::CX::V3b\006proto3" + + "\013ListIntents\0221.google.cloud.dialogflow.cx.v3.ListIntentsRequest\0322.g" + + "oogle.cloud.dialogflow.cx.v3.ListIntents" + + "Response\"E\332A\006parent\202\323\344\223\0026\0224/v3/{parent=p" + + "rojects/*/locations/*/agents/*}/intents\022\250\001\n" + + "\tGetIntent\022/.google.cloud.dialogflow.cx.v3.GetIntentRequest\032%.google.cloud.di" + + "alogflow.cx.v3.Intent\"C\332A\004name\202\323\344\223\0026\0224/v" + + "3/{name=projects/*/locations/*/agents/*/intents/*}\022\277\001\n" + + "\014CreateIntent\0222.google.cloud.dialogflow.cx.v3.CreateIntentRequest\032" + + "%.google.cloud.dialogflow.cx.v3.Intent\"T\332A\r" + + "parent,intent\202\323\344\223\002>\"4/v3/{parent=proj" + + "ects/*/locations/*/agents/*}/intents:\006intent\022\313\001\n" + + "\014UpdateIntent\0222.google.cloud.dialogflow.cx.v3.UpdateIntentRequest\032%.goog" + + "le.cloud.dialogflow.cx.v3.Intent\"`\332A\022int" + + "ent,update_mask\202\323\344\223\002E2;/v3/{intent.name=" + + "projects/*/locations/*/agents/*/intents/*}:\006intent\022\237\001\n" + + "\014DeleteIntent\0222.google.cloud.dialogflow.cx.v3.DeleteIntentRequest\032" + + "\026.google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026*4" + + "/v3/{name=projects/*/locations/*/agents/*/intents/*}\022\334\001\n\r" + + "ImportIntents\0223.google." + + "cloud.dialogflow.cx.v3.ImportIntentsRequest\032\035.google.longrunning.Operation\"w\312A.\n" + + "\025ImportIntentsResponse\022\025ImportIntentsMet" + + "adata\202\323\344\223\002@\";/v3/{parent=projects/*/locations/*/agents/*}/intents:import:\001*\022\334\001\n\r" + + "ExportIntents\0223.google.cloud.dialogflow." + + "cx.v3.ExportIntentsRequest\032\035.google.longrunning.Operation\"w\312A.\n" + + "\025ExportIntentsResponse\022\025ExportIntentsMetadata\202\323\344\223\002@\";/v3/" + + "{parent=projects/*/locations/*/agents/*}" + + "/intents:export:\001*\032x\312A\031dialogflow.google" + + "apis.com\322AYhttps://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis.com/auth/dialogflowB\256\001\n" + + "!com.google.cloud.dialogflow.cx.v3B\013IntentProtoP\001Z1cloud" + + ".google.com/go/dialogflow/cx/apiv3/cxpb;" + + "cxpb\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V" + + "3\352\002!Google::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -303,6 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IsFallback", "Labels", "Description", + "DtmfPattern", }); internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_descriptor = internal_static_google_cloud_dialogflow_cx_v3_Intent_descriptor.getNestedType(0); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadata.java new file mode 100644 index 000000000000..0a2b9a9c0a3f --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadata.java @@ -0,0 +1,814 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
                                            + * Metadata of the playbook trace.
                                            + * 
                                            + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata} + */ +@com.google.protobuf.Generated +public final class PlaybookTraceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + PlaybookTraceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PlaybookTraceMetadata"); + } + + // Use PlaybookTraceMetadata.newBuilder() to construct. + private PlaybookTraceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PlaybookTraceMetadata() { + playbook_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder.class); + } + + public static final int PLAYBOOK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object playbook_ = ""; + + /** + * + * + *
                                            +   * Required. The unique identifier of the playbook.
                                            +   * Format:
                                            +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +   * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The playbook. + */ + @java.lang.Override + public java.lang.String getPlaybook() { + java.lang.Object ref = playbook_; + 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(); + playbook_ = s; + return s; + } + } + + /** + * + * + *
                                            +   * Required. The unique identifier of the playbook.
                                            +   * Format:
                                            +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +   * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for playbook. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlaybookBytes() { + java.lang.Object ref = playbook_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + playbook_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                            +   * Output only. The display name of the playbook.
                                            +   * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                            +   * Output only. The display name of the playbook.
                                            +   * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(playbook_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, playbook_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(playbook_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, playbook_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + 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.dialogflow.cx.v3.PlaybookTraceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata other = + (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) obj; + + if (!getPlaybook().equals(other.getPlaybook())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + PLAYBOOK_FIELD_NUMBER; + hash = (53 * hash) + getPlaybook().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata 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.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata 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.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.cx.v3.PlaybookTraceMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                            +   * Metadata of the playbook trace.
                                            +   * 
                                            + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + playbook_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata build() { + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata result = + new com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.playbook_ = playbook_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance()) + return this; + if (!other.getPlaybook().isEmpty()) { + playbook_ = other.playbook_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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: + { + playbook_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = 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 java.lang.Object playbook_ = ""; + + /** + * + * + *
                                            +     * Required. The unique identifier of the playbook.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +     * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The playbook. + */ + public java.lang.String getPlaybook() { + java.lang.Object ref = playbook_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + playbook_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                            +     * Required. The unique identifier of the playbook.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +     * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for playbook. + */ + public com.google.protobuf.ByteString getPlaybookBytes() { + java.lang.Object ref = playbook_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + playbook_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                            +     * Required. The unique identifier of the playbook.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +     * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The playbook to set. + * @return This builder for chaining. + */ + public Builder setPlaybook(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + playbook_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Required. The unique identifier of the playbook.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +     * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPlaybook() { + playbook_ = getDefaultInstance().getPlaybook(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Required. The unique identifier of the playbook.
                                            +     * Format:
                                            +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +     * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for playbook to set. + * @return This builder for chaining. + */ + public Builder setPlaybookBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + playbook_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                            +     * Output only. The display name of the playbook.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                            +     * Output only. The display name of the playbook.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                            +     * Output only. The display name of the playbook.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. The display name of the playbook.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. The display name of the playbook.
                                            +     * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + private static final com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PlaybookTraceMetadata 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.dialogflow.cx.v3.PlaybookTraceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadataOrBuilder.java new file mode 100644 index 000000000000..4ed4e9fe555f --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadataOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +@com.google.protobuf.Generated +public interface PlaybookTraceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                            +   * Required. The unique identifier of the playbook.
                                            +   * Format:
                                            +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +   * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The playbook. + */ + java.lang.String getPlaybook(); + + /** + * + * + *
                                            +   * Required. The unique identifier of the playbook.
                                            +   * Format:
                                            +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                            +   * 
                                            + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for playbook. + */ + com.google.protobuf.ByteString getPlaybookBytes(); + + /** + * + * + *
                                            +   * Output only. The display name of the playbook.
                                            +   * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                            +   * Output only. The display name of the playbook.
                                            +   * 
                                            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java index bc0a1fd85eb3..e9475e1c4b00 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java @@ -1342,7 +1342,7 @@ public com.google.cloud.dialogflow.cx.v3.SearchConfigOrBuilder getSearchConfigOr * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @return The populateDataStoreConnectionSignals. */ @java.lang.Override @@ -5903,7 +5903,7 @@ public com.google.cloud.dialogflow.cx.v3.SearchConfigOrBuilder getSearchConfigOr * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @return The populateDataStoreConnectionSignals. */ @java.lang.Override @@ -5928,7 +5928,7 @@ public boolean getPopulateDataStoreConnectionSignals() { * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @param value The populateDataStoreConnectionSignals to set. * @return This builder for chaining. */ @@ -5957,7 +5957,7 @@ public Builder setPopulateDataStoreConnectionSignals(boolean value) { * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java index ad9c40ee6b52..70c0d211a7a0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java @@ -958,7 +958,7 @@ java.lang.String getWebhookHeadersOrDefault( * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @return The populateDataStoreConnectionSignals. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java index b31304a75a0a..8446a8ed3cae 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java @@ -56,6 +56,7 @@ private QueryResult() { responseMessages_ = java.util.Collections.emptyList(); webhookStatuses_ = java.util.Collections.emptyList(); webhookPayloads_ = java.util.Collections.emptyList(); + traceBlocks_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1044,7 +1045,7 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getCurrentFlowOrBuilder() * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return Whether the intent field is set. */ @java.lang.Override @@ -1068,7 +1069,7 @@ public boolean hasIntent() { * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return The intent. */ @java.lang.Override @@ -1122,7 +1123,7 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -1497,6 +1498,107 @@ public boolean hasDataStoreConnectionSignals() { : dataStoreConnectionSignals_; } + public static final int TRACE_BLOCKS_FIELD_NUMBER = 37; + + @SuppressWarnings("serial") + private java.util.List traceBlocks_; + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getTraceBlocksList() { + return traceBlocks_; + } + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTraceBlocksOrBuilderList() { + return traceBlocks_; + } + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTraceBlocksCount() { + return traceBlocks_.size(); + } + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock getTraceBlocks(int index) { + return traceBlocks_.get(index); + } + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder getTraceBlocksOrBuilder(int index) { + return traceBlocks_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1571,6 +1673,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(35, getDataStoreConnectionSignals()); } + for (int i = 0; i < traceBlocks_.size(); i++) { + output.writeMessage(37, traceBlocks_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1646,6 +1751,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 35, getDataStoreConnectionSignals()); } + for (int i = 0; i < traceBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, traceBlocks_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1706,6 +1814,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDataStoreConnectionSignals().equals(other.getDataStoreConnectionSignals())) return false; } + if (!getTraceBlocksList().equals(other.getTraceBlocksList())) return false; if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 1: @@ -1791,6 +1900,10 @@ public int hashCode() { hash = (37 * hash) + DATA_STORE_CONNECTION_SIGNALS_FIELD_NUMBER; hash = (53 * hash) + getDataStoreConnectionSignals().hashCode(); } + if (getTraceBlocksCount() > 0) { + hash = (37 * hash) + TRACE_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getTraceBlocksList().hashCode(); + } switch (queryCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -1968,6 +2081,7 @@ private void maybeForceBuilderInitialization() { internalGetSentimentAnalysisResultFieldBuilder(); internalGetAdvancedSettingsFieldBuilder(); internalGetDataStoreConnectionSignalsFieldBuilder(); + internalGetTraceBlocksFieldBuilder(); } } @@ -2047,6 +2161,13 @@ public Builder clear() { dataStoreConnectionSignalsBuilder_.dispose(); dataStoreConnectionSignalsBuilder_ = null; } + if (traceBlocksBuilder_ == null) { + traceBlocks_ = java.util.Collections.emptyList(); + } else { + traceBlocks_ = null; + traceBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00100000); queryCase_ = 0; query_ = null; return this; @@ -2113,6 +2234,15 @@ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.QueryR } else { result.webhookPayloads_ = webhookPayloadsBuilder_.build(); } + if (traceBlocksBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0)) { + traceBlocks_ = java.util.Collections.unmodifiableList(traceBlocks_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.traceBlocks_ = traceBlocks_; + } else { + result.traceBlocks_ = traceBlocksBuilder_.build(); + } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryResult result) { @@ -2315,6 +2445,33 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { if (other.hasDataStoreConnectionSignals()) { mergeDataStoreConnectionSignals(other.getDataStoreConnectionSignals()); } + if (traceBlocksBuilder_ == null) { + if (!other.traceBlocks_.isEmpty()) { + if (traceBlocks_.isEmpty()) { + traceBlocks_ = other.traceBlocks_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensureTraceBlocksIsMutable(); + traceBlocks_.addAll(other.traceBlocks_); + } + onChanged(); + } + } else { + if (!other.traceBlocks_.isEmpty()) { + if (traceBlocksBuilder_.isEmpty()) { + traceBlocksBuilder_.dispose(); + traceBlocksBuilder_ = null; + traceBlocks_ = other.traceBlocks_; + bitField0_ = (bitField0_ & ~0x00100000); + traceBlocksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTraceBlocksFieldBuilder() + : null; + } else { + traceBlocksBuilder_.addAllMessages(other.traceBlocks_); + } + } + } switch (other.getQueryCase()) { case TEXT: { @@ -2533,6 +2690,19 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case 282 + case 298: + { + com.google.cloud.dialogflow.cx.v3.TraceBlock m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.TraceBlock.parser(), extensionRegistry); + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.add(m); + } else { + traceBlocksBuilder_.addMessage(m); + } + break; + } // case 298 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5480,7 +5650,7 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getCurrentFlowOrBuilder() * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -5503,7 +5673,7 @@ public boolean hasIntent() { * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return The intent. */ @java.lang.Deprecated @@ -5729,7 +5899,7 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -5756,7 +5926,7 @@ public float getIntentDetectionConfidence() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @param value The intentDetectionConfidence to set. * @return This builder for chaining. */ @@ -5787,7 +5957,7 @@ public Builder setIntentDetectionConfidence(float value) { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7088,6 +7258,465 @@ public Builder clearDataStoreConnectionSignals() { return dataStoreConnectionSignalsBuilder_; } + private java.util.List traceBlocks_ = + java.util.Collections.emptyList(); + + private void ensureTraceBlocksIsMutable() { + if (!((bitField0_ & 0x00100000) != 0)) { + traceBlocks_ = + new java.util.ArrayList(traceBlocks_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.TraceBlock, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder> + traceBlocksBuilder_; + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getTraceBlocksList() { + if (traceBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(traceBlocks_); + } else { + return traceBlocksBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTraceBlocksCount() { + if (traceBlocksBuilder_ == null) { + return traceBlocks_.size(); + } else { + return traceBlocksBuilder_.getCount(); + } + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlock getTraceBlocks(int index) { + if (traceBlocksBuilder_ == null) { + return traceBlocks_.get(index); + } else { + return traceBlocksBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTraceBlocks(int index, com.google.cloud.dialogflow.cx.v3.TraceBlock value) { + if (traceBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTraceBlocksIsMutable(); + traceBlocks_.set(index, value); + onChanged(); + } else { + traceBlocksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTraceBlocks( + int index, com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder builderForValue) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + traceBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks(com.google.cloud.dialogflow.cx.v3.TraceBlock value) { + if (traceBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTraceBlocksIsMutable(); + traceBlocks_.add(value); + onChanged(); + } else { + traceBlocksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks(int index, com.google.cloud.dialogflow.cx.v3.TraceBlock value) { + if (traceBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTraceBlocksIsMutable(); + traceBlocks_.add(index, value); + onChanged(); + } else { + traceBlocksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks( + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder builderForValue) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.add(builderForValue.build()); + onChanged(); + } else { + traceBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks( + int index, com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder builderForValue) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + traceBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTraceBlocks( + java.lang.Iterable values) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, traceBlocks_); + onChanged(); + } else { + traceBlocksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTraceBlocks() { + if (traceBlocksBuilder_ == null) { + traceBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + traceBlocksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTraceBlocks(int index) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.remove(index); + onChanged(); + } else { + traceBlocksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder getTraceBlocksBuilder(int index) { + return internalGetTraceBlocksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder getTraceBlocksOrBuilder( + int index) { + if (traceBlocksBuilder_ == null) { + return traceBlocks_.get(index); + } else { + return traceBlocksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTraceBlocksOrBuilderList() { + if (traceBlocksBuilder_ != null) { + return traceBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(traceBlocks_); + } + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder addTraceBlocksBuilder() { + return internalGetTraceBlocksFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.TraceBlock.getDefaultInstance()); + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder addTraceBlocksBuilder(int index) { + return internalGetTraceBlocksFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3.TraceBlock.getDefaultInstance()); + } + + /** + * + * + *
                                            +     * Optional. Contains the sequence of trace blocks from the current
                                            +     * conversation turn. Trace blocks are ordered chronologically and contain
                                            +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +     * playbook invocations, agent utterances and user utterances.
                                            +     * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTraceBlocksBuilderList() { + return internalGetTraceBlocksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.TraceBlock, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder> + internalGetTraceBlocksFieldBuilder() { + if (traceBlocksBuilder_ == null) { + traceBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.TraceBlock, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder>( + traceBlocks_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); + traceBlocks_ = null; + } + return traceBlocksBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.QueryResult) } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java index 6f533381d851..3390ee060d32 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java @@ -647,7 +647,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -668,7 +668,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return The intent. */ @java.lang.Deprecated @@ -709,7 +709,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @return The intentDetectionConfidence. */ @java.lang.Deprecated @@ -997,5 +997,86 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder getDataStoreConnectionSignalsOrBuilder(); + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getTraceBlocksList(); + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.TraceBlock getTraceBlocks(int index); + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTraceBlocksCount(); + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTraceBlocksOrBuilderList(); + + /** + * + * + *
                                            +   * Optional. Contains the sequence of trace blocks from the current
                                            +   * conversation turn. Trace blocks are ordered chronologically and contain
                                            +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                            +   * playbook invocations, agent utterances and user utterances.
                                            +   * 
                                            + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder getTraceBlocksOrBuilder(int index); + com.google.cloud.dialogflow.cx.v3.QueryResult.QueryCase getQueryCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java index 827dad7d462d..5c0e355c6d1c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java @@ -185,14 +185,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "settings.proto\032*google/cloud/dialogflow/cx/v3/intent.proto\032(google/cloud/dialogf" + "low/cx/v3/page.proto\0324google/cloud/dialogflow/cx/v3/response_message.proto\0327goog" + "le/cloud/dialogflow/cx/v3/session_entity_type.proto\032-google/cloud/dialogflow/cx/" - + "v3/tool_call.proto\032\036google/protobuf/duration.proto\032" - + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.proto\032\027goog" - + "le/rpc/status.proto\032\030google/type/latlng.proto\"\324\002\n" + + "v3/tool_call.proto\032)google/cloud/dialogf" + + "low/cx/v3/trace.proto\032\036google/protobuf/duration.proto\032" + + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.proto\032\027g" + + "oogle/rpc/status.proto\032\030google/type/latlng.proto\"\324\002\n" + "\016AnswerFeedback\022I\n" - + "\006rating\030\001 \001(\016" - + "24.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingB\003\340A\001\022V\n\r" - + "rating_reason\030\002 \001" - + "(\0132:.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReasonB\003\340A\001\022\032\n\r" + + "\006rating\030\001 " + + "\001(\01624.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingB\003\340A\001\022V\n\r" + + "rating_reason\030\002" + + " \001(\0132:.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReasonB\003\340A\001\022\032\n\r" + "custom_rating\030\003 \001(\tB\003\340A\001\032A\n" + "\014RatingReason\022\032\n\r" + "reason_labels\030\003 \003(\tB\003\340A\001\022\025\n" @@ -218,18 +219,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132).google.cloud.dialogflow.cx.v3.QueryInputB\003\340A\002\022M\n" + "\023output_audio_config\030\004" + " \001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\022S\n\r" - + "response_view\030\t \001" - + "(\01627.google.cloud.dialogflow.cx.v3.DetectIntentResponseViewB\003\340A\001\"\216\003\n" + + "response_view\030\t" + + " \001(\01627.google.cloud.dialogflow.cx.v3.DetectIntentResponseViewB\003\340A\001\"\216\003\n" + "\024DetectIntentResponse\022\023\n" + "\013response_id\030\001 \001(\t\022@\n" + "\014query_result\030\002" + " \001(\0132*.google.cloud.dialogflow.cx.v3.QueryResult\022\024\n" + "\014output_audio\030\004 \001(\014\022M\n" - + "\023output_audio_config\030\005" - + " \001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\022W\n" - + "\r" - + "response_type\030\006 \001(\0162@.google.cloud.dial" - + "ogflow.cx.v3.DetectIntentResponse.ResponseType\022\032\n" + + "\023output_audio_config\030\005 \001(\01320.google." + + "cloud.dialogflow.cx.v3.OutputAudioConfig\022W\n\r" + + "response_type\030\006 \001(\0162@.google.cloud.d" + + "ialogflow.cx.v3.DetectIntentResponse.ResponseType\022\032\n" + "\022allow_cancellation\030\007 \001(\010\"E\n" + "\014ResponseType\022\035\n" + "\031RESPONSE_TYPE_UNSPECIFIED\020\000\022\013\n" @@ -242,13 +242,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.dialogflow.cx.v3.QueryParameters\022C\n" + "\013query_input\030\003" + " \001(\0132).google.cloud.dialogflow.cx.v3.QueryInputB\003\340A\002\022M\n" - + "\023output_audio_config\030\004 " - + "\001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\022\037\n" + + "\023output_audio_config\030\004" + + " \001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\022\037\n" + "\027enable_partial_response\030\005 \001(\010\022\035\n" - + "\025enable_debugging_info\030\010 \001(\010\022S\n" - + "\r" - + "response_view\030\020 \001(\01627.google.cloud.dial" - + "ogflow.cx.v3.DetectIntentResponseViewB\003\340A\001\"\260\007\n" + + "\025enable_debugging_info\030\010 \001(\010\022S\n\r" + + "response_view\030\020 \001(\01627.google.cloud.d" + + "ialogflow.cx.v3.DetectIntentResponseViewB\003\340A\001\"\260\007\n" + "\036CloudConversationDebuggingInfo\022\031\n" + "\021audio_data_chunks\030\001 \001(\005\0229\n" + "\026result_end_time_offset\030\002 \001(\0132\031.google.protobuf.Duration\0227\n" @@ -278,14 +277,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035StreamingDetectIntentResponse\022W\n" + "\022recognition_result\030\001" + " \001(\01329.google.cloud.dialogflow.cx.v3.StreamingRecognitionResultH\000\022U\n" - + "\026detect_intent_response\030\002 \001(\01323.google.cloud." - + "dialogflow.cx.v3.DetectIntentResponseH\000\022U\n" - + "\016debugging_info\030\004 \001(\0132=.google.cloud.d" - + "ialogflow.cx.v3.CloudConversationDebuggingInfoB\n\n" + + "\026detect_intent_response\030\002 \001(\01323.google.clo" + + "ud.dialogflow.cx.v3.DetectIntentResponseH\000\022U\n" + + "\016debugging_info\030\004 \001(\0132=.google.clou" + + "d.dialogflow.cx.v3.CloudConversationDebuggingInfoB\n\n" + "\010response\"\266\003\n" + "\032StreamingRecognitionResult\022[\n" - + "\014message_type\030\001 \001(\0162E.google" - + ".cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType\022\022\n\n" + + "\014message_type\030\001 \001(\0162E.goo" + + "gle.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType\022\022\n\n" + "transcript\030\002 \001(\t\022\020\n" + "\010is_final\030\003 \001(\010\022\022\n\n" + "confidence\030\004 \001(\002\022\021\n" @@ -312,46 +311,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017disable_webhook\030\007 \001(\010\022$\n" + "\034analyze_query_text_sentiment\030\010 \001(\010\022[\n" + "\017webhook_headers\030\n" - + " \003(\013" - + "2B.google.cloud.dialogflow.cx.v3.QueryParameters.WebhookHeadersEntry\022=\n\r" + + " \003(\0132B.google.cloud.dialogflow.cx.v3.QueryParameters.WebhookHeadersEntry\022=\n\r" + "flow_versions\030\016 \003(\tB&\372A#\n" + "!dialogflow.googleapis.com/Version\022D\n" + "\020current_playbook\030\023 \001(\tB*\340A\001\372A$\n" + "\"dialogflow.googleapis.com/Playbook\022P\n" - + "\022llm_model_settings\030\025 \001(\0132/.google.c" - + "loud.dialogflow.cx.v3.LlmModelSettingsB\003\340A\001\022\017\n" + + "\022llm_model_settings\030\025 \001(\0132/.googl" + + "e.cloud.dialogflow.cx.v3.LlmModelSettingsB\003\340A\001\022\017\n" + "\007channel\030\017 \001(\t\0223\n" + "\013session_ttl\030\020 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n" + "\021end_user_metadata\030\022" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022G\n\r" - + "search_config\030\024 \001(\0132+.goog" - + "le.cloud.dialogflow.cx.v3.SearchConfigB\003\340A\001\0225\n" + + "search_config\030\024 \001(\0132+.g" + + "oogle.cloud.dialogflow.cx.v3.SearchConfigB\003\340A\001\0225\n" + "&populate_data_store_connection_signals\030\031 \001(\010B\005\030\001\340A\001\0325\n" + "\023WebhookHeadersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\232\001\n" + "\014SearchConfig\022C\n" - + "\013boost_specs\030\001 \003(\0132).google" - + ".cloud.dialogflow.cx.v3.BoostSpecsB\003\340A\001\022E\n" + + "\013boost_specs\030\001 \003(\0132).goo" + + "gle.cloud.dialogflow.cx.v3.BoostSpecsB\003\340A\001\022E\n" + "\014filter_specs\030\002" + " \003(\0132*.google.cloud.dialogflow.cx.v3.FilterSpecsB\003\340A\001\"\233\007\n" + "\tBoostSpec\022_\n" - + "\025condition_boost_specs\030\001 \003(\0132;.go" - + "ogle.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpecB\003\340A\001\032\254\006\n" + + "\025condition_boost_specs\030\001 \003(\0132;" + + ".google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpecB\003\340A\001\032\254\006\n" + "\022ConditionBoostSpec\022\026\n" + "\tcondition\030\001 \001(\tB\003\340A\001\022\022\n" + "\005boost\030\002 \001(\002B\003\340A\001\022m\n" - + "\022boost_control_spec\030\004 \001(\0132L.google.cloud.dialogflow.cx.v3.BoostSpec.C" - + "onditionBoostSpec.BoostControlSpecB\003\340A\001\032\372\004\n" + + "\022boost_control_spec\030\004 \001(\0132L.google.cloud.dialogflow.cx.v3.BoostSpe" + + "c.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\372\004\n" + "\020BoostControlSpec\022\027\n\n" + "field_name\030\001 \001(\tB\003\340A\001\022w\n" - + "\016attribute_type\030\002 \001(\0162Z.google.c" - + "loud.dialogflow.cx.v3.BoostSpec.Conditio" - + "nBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\177\n" - + "\022interpolation_type\030\003 \001(\0162^.google.cloud.dialogflow.cx.v3.BoostSpec.Con" - + "ditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022v\n" - + "\016control_points\030\004 \003(\0132Y.google.cloud.dialogflow.cx.v3.BoostSpe" - + "c.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + + "\016attribute_type\030\002 \001(\0162Z.google.cloud.dialogflow.cx.v3.BoostSpec.Condi" + + "tionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\177\n" + + "\022interpolation_type\030\003 \001(\0162^.google.cloud.dialogflow.cx.v3.BoostSpec." + + "ConditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022v\n" + + "\016control_points\030\004 \003(\0132Y.google.cloud.dialogflow.cx.v3.Boost" + + "Spec.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + "\014ControlPoint\022\034\n" + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" @@ -361,8 +358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tFRESHNESS\020\002\"C\n" + "\021InterpolationType\022\"\n" + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006LINEAR\020\001\"\220\001\n" - + "\n" + + "\006LINEAR\020\001\"\220\001\n\n" + "BoostSpecs\022E\n" + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022;\n" @@ -378,18 +374,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005audio\030\005 \001(\0132).google.cloud.dialogflow.cx.v3.AudioInputH\000\022:\n" + "\005event\030\006 \001(\0132).google.cloud.dialogflow.cx.v3.EventInputH\000\0228\n" + "\004dtmf\030\007 \001(\0132(.google.cloud.dialogflow.cx.v3.DtmfInputH\000\022I\n" - + "\020tool_call_result\030\013 \001(\0132-.google.c" - + "loud.dialogflow.cx.v3.ToolCallResultH\000\022\032\n\r" + + "\020tool_call_result\030\013 \001(\0132-.googl" + + "e.cloud.dialogflow.cx.v3.ToolCallResultH\000\022\032\n\r" + "language_code\030\004 \001(\tB\003\340A\002B\007\n" - + "\005input\"\256\010\n" + + "\005input\"\364\010\n" + "\013QueryResult\022\016\n" + "\004text\030\001 \001(\tH\000\022?\n" + "\016trigger_intent\030\013 \001(\tB%\372A\"\n" + " dialogflow.googleapis.com/IntentH\000\022\024\n\n" - + "transcript\030\014 \001(\tH\000\022\027\n\r" - + "trigger_event\030\016 \001(\tH\000\0228\n" - + "\004dtmf\030\027 \001(\0132(.google.cloud.dialogflow.cx.v3.DtmfInputH\000\022\025\n" + + "transcript\030\014 \001(\tH\000\022\027\n" + "\r" + + "trigger_event\030\016 \001(\tH\000\0228\n" + + "\004dtmf\030\027 \001(\0132(.google.cloud.dialogflow.cx.v3.DtmfInputH\000\022\025\n\r" + "language_code\030\002 \001(\t\022+\n\n" + "parameters\030\003 \001(\0132\027.google.protobuf.Struct\022I\n" + "\021response_messages\030\004" @@ -405,13 +401,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005match\030\017 \001(\0132$.google.cloud.dialogflow.cx.v3.Match\0220\n" + "\017diagnostic_info\030\n" + " \001(\0132\027.google.protobuf.Struct\022Y\n" - + "\031sentiment_analysis_result\030\021 \001(\01326.goog" - + "le.cloud.dialogflow.cx.v3.SentimentAnalysisResult\022J\n" - + "\021advanced_settings\030\025 \001(\0132/.g" - + "oogle.cloud.dialogflow.cx.v3.AdvancedSettings\022\035\n" + + "\031sentiment_analysis_result\030\021 \001(\01326.g" + + "oogle.cloud.dialogflow.cx.v3.SentimentAnalysisResult\022J\n" + + "\021advanced_settings\030\025 \001(\0132" + + "/.google.cloud.dialogflow.cx.v3.AdvancedSettings\022\035\n" + "\025allow_answer_feedback\030 \001(\010\022e\n" - + "\035data_store_connection_signals\030# \001(\01329.go" - + "ogle.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsB\003\340A\001B\007\n" + + "\035data_store_connection_signals\030# \001(\01329" + + ".google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsB\003\340A\001\022D\n" + + "\014trace_blocks\030%" + + " \003(\0132).google.cloud.dialogflow.cx.v3.TraceBlockB\003\340A\001B\007\n" + "\005query\"\036\n" + "\tTextInput\022\021\n" + "\004text\030\001 \001(\tB\003\340A\002\"G\n" @@ -419,8 +417,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006intent\030\001 \001(\tB(\340A\002\372A\"\n" + " dialogflow.googleapis.com/Intent\"a\n\n" + "AudioInput\022D\n" - + "\006config\030\001 " - + "\001(\0132/.google.cloud.dialogflow.cx.v3.InputAudioConfigB\003\340A\002\022\r\n" + + "\006config\030\001 \001(\0132/.g" + + "oogle.cloud.dialogflow.cx.v3.InputAudioConfigB\003\340A\002\022\r\n" + "\005audio\030\002 \001(\014\"\033\n\n" + "EventInput\022\r\n" + "\005event\030\001 \001(\t\"1\n" @@ -432,8 +430,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005event\030\006 \001(\t\022+\n\n" + "parameters\030\002 \001(\0132\027.google.protobuf.Struct\022\026\n" + "\016resolved_input\030\003 \001(\t\022B\n\n" - + "match_type\030\004 \001(" - + "\0162..google.cloud.dialogflow.cx.v3.Match.MatchType\022\022\n\n" + + "match_type\030\004 \001(\0162..goo" + + "gle.cloud.dialogflow.cx.v3.Match.MatchType\022\022\n\n" + "confidence\030\005 \001(\002\"\253\001\n" + "\tMatchType\022\032\n" + "\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n" @@ -463,15 +461,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014current_page\030\005 \001(\0132#.google.cloud.dialogflow.cx.v3.PageB\007\n" + "\005query\"\353\001\n" + "\024FulfillIntentRequest\022O\n" - + "\024match_intent_request\030\001 \001(\01321.google." - + "cloud.dialogflow.cx.v3.MatchIntentRequest\0223\n" + + "\024match_intent_request\030\001" + + " \001(\01321.google.cloud.dialogflow.cx.v3.MatchIntentRequest\0223\n" + "\005match\030\002 \001(\0132$.google.cloud.dialogflow.cx.v3.Match\022M\n" - + "\023output_audio_config\030\003 " - + "\001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\"\323\001\n" + + "\023output_audio_config\030\003 \001(\01320.g" + + "oogle.cloud.dialogflow.cx.v3.OutputAudioConfig\"\323\001\n" + "\025FulfillIntentResponse\022\023\n" + "\013response_id\030\001 \001(\t\022@\n" - + "\014query_result\030\002 \001" - + "(\0132*.google.cloud.dialogflow.cx.v3.QueryResult\022\024\n" + + "\014query_result\030\002 \001(\0132*.go" + + "ogle.cloud.dialogflow.cx.v3.QueryResult\022\024\n" + "\014output_audio\030\003 \001(\014\022M\n" + "\023output_audio_config\030\004" + " \001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\";\n" @@ -484,48 +482,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!DETECT_INTENT_RESPONSE_VIEW_BASIC\020\002\022\'\n" + "#DETECT_INTENT_RESPONSE_VIEW_DEFAULT\020\0032\372\r\n" + "\010Sessions\022\246\002\n" - + "\014DetectIntent\0222.google.cloud.dialogflow.cx.v3.DetectIntentReque" - + "st\0323.google.cloud.dialogflow.cx.v3.Detec" - + "tIntentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=" - + "projects/*/locations/*/agents/*/sessions/*}:detectIntent:\001*ZY\"T/v3/{session=proj" - + "ects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent:\001*\022\325\002\n" - + "\033ServerStreamingDetectIntent\0222.google.cloud.di" - + "alogflow.cx.v3.DetectIntentRequest\0323.google.cloud.dialogflow.cx.v3.DetectIntentR" - + "esponse\"\312\001\202\323\344\223\002\303\001\"T/v3/{session=projects" - + "/*/locations/*/agents/*/sessions/*}:serverStreamingDetectIntent:\001*Zh\"c/v3/{sessi" - + "on=projects/*/locations/*/agents/*/envir" - + "onments/*/sessions/*}:serverStreamingDetectIntent:\001*0\001\022\230\001\n" - + "\025StreamingDetectIntent\022;.google.cloud.dialogflow.cx.v3.Streami" - + "ngDetectIntentRequest\032<.google.cloud.dia" - + "logflow.cx.v3.StreamingDetectIntentResponse\"\000(\0010\001\022\241\002\n" - + "\013MatchIntent\0221.google.cloud.dialogflow.cx.v3.MatchIntentRequest\0322.g" - + "oogle.cloud.dialogflow.cx.v3.MatchIntent" - + "Response\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=project" - + "s/*/locations/*/agents/*/sessions/*}:matchIntent:\001*ZX\"S/v3/{session=projects/*/l" - + "ocations/*/agents/*/environments/*/sessions/*}:matchIntent:\001*\022\325\002\n\r" - + "FulfillIntent\0223.google.cloud.dialogflow.cx.v3.FulfillI" - + "ntentRequest\0324.google.cloud.dialogflow.c" - + "x.v3.FulfillIntentResponse\"\330\001\202\323\344\223\002\321\001\"[/v" - + "3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulf" - + "illIntent:\001*Zo\"j/v3/{match_intent_request.session=projects/*/locations/*/agents/" - + "*/environments/*/sessions/*}:fulfillIntent:\001*\022\333\001\n" - + "\024SubmitAnswerFeedback\022:.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedb" - + "ackRequest\032-.google.cloud.dialogflow.cx." - + "v3.AnswerFeedback\"X\202\323\344\223\002R\"M/v3/{session=" - + "projects/*/locations/*/agents/*/sessions" - + "/*}:submitAnswerFeedback:\001*\032x\312A\031dialogfl" - + "ow.googleapis.com\322AYhttps://www.googleap" - + "is.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\320\004\n" - + "!com.google.cloud.dialogflow.cx.v3B\014SessionProt" - + "oP\001Z1cloud.google.com/go/dialogflow/cx/a" - + "piv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.Dialo" - + "gflow.Cx.V3\352\002!Google::Cloud::Dialogflow::CX::V3\352A\324\001\n" - + "!dialogflow.googleapis.com/Session\022Iprojects/{project}/locations/{lo" - + "cation}/agents/{agent}/sessions/{session}\022dprojects/{project}/locations/{locatio" - + "n}/agents/{agent}/environments/{environment}/sessions/{session}\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022?projects/" - + "{project}/locations/{location}/dataStores/{data_store}\022Xprojects/{project}/locat" - + "ions/{location}/collections/{collection}/dataStores/{data_store}b\006proto3" + + "\014DetectIntent\0222.google.cloud.dialogflow.cx.v3.DetectIntentRequest\0323.go" + + "ogle.cloud.dialogflow.cx.v3.DetectIntent" + + "Response\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=project" + + "s/*/locations/*/agents/*/sessions/*}:detectIntent:\001*ZY\"T/v3/{session=projects/*/" + + "locations/*/agents/*/environments/*/sessions/*}:detectIntent:\001*\022\325\002\n" + + "\033ServerStreamingDetectIntent\0222.google.cloud.dialogflo" + + "w.cx.v3.DetectIntentRequest\0323.google.cloud.dialogflow.cx.v3.DetectIntentResponse" + + "\"\312\001\202\323\344\223\002\303\001\"T/v3/{session=projects/*/loca" + + "tions/*/agents/*/sessions/*}:serverStreamingDetectIntent:\001*Zh\"c/v3/{session=proj" + + "ects/*/locations/*/agents/*/environments" + + "/*/sessions/*}:serverStreamingDetectIntent:\001*0\001\022\230\001\n" + + "\025StreamingDetectIntent\022;.google.cloud.dialogflow.cx.v3.StreamingDetec" + + "tIntentRequest\032<.google.cloud.dialogflow" + + ".cx.v3.StreamingDetectIntentResponse\"\000(\0010\001\022\241\002\n" + + "\013MatchIntent\0221.google.cloud.dialogflow.cx.v3.MatchIntentRequest\0322.google.c" + + "loud.dialogflow.cx.v3.MatchIntentRespons" + + "e\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=projects/*/loc" + + "ations/*/agents/*/sessions/*}:matchIntent:\001*ZX\"S/v3/{session=projects/*/location" + + "s/*/agents/*/environments/*/sessions/*}:matchIntent:\001*\022\325\002\n\r" + + "FulfillIntent\0223.google.cloud.dialogflow.cx.v3.FulfillIntentRe" + + "quest\0324.google.cloud.dialogflow.cx.v3.Fu" + + "lfillIntentResponse\"\330\001\202\323\344\223\002\321\001\"[/v3/{matc" + + "h_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillInte" + + "nt:\001*Zo\"j/v3/{match_intent_request.session=projects/*/locations/*/agents/*/envir" + + "onments/*/sessions/*}:fulfillIntent:\001*\022\333\001\n" + + "\024SubmitAnswerFeedback\022:.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequ" + + "est\032-.google.cloud.dialogflow.cx.v3.Answ" + + "erFeedback\"X\202\323\344\223\002R\"M/v3/{session=project" + + "s/*/locations/*/agents/*/sessions/*}:sub" + + "mitAnswerFeedback:\001*\032x\312A\031dialogflow.goog" + + "leapis.com\322AYhttps://www.googleapis.com/" + + "auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\320\004\n" + + "!com.google.cloud.dialogflow.cx.v3B\014SessionProtoP\001Z1cl" + + "oud.google.com/go/dialogflow/cx/apiv3/cx" + + "pb;cxpb\242\002\002DF\252\002\035Google.Cloud.Dialogflow.C" + + "x.V3\352\002!Google::Cloud::Dialogflow::CX::V3\352A\324\001\n" + + "!dialogflow.googleapis.com/Session\022Iprojects/{project}/locations/{location}" + + "/agents/{agent}/sessions/{session}\022dprojects/{project}/locations/{location}/agen" + + "ts/{agent}/environments/{environment}/sessions/{session}\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022?projects/{projec" + + "t}/locations/{location}/dataStores/{data_store}\022Xprojects/{project}/locations/{l" + + "ocation}/collections/{collection}/dataStores/{data_store}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -545,6 +543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3.ResponseMessageProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.SessionEntityTypeProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.ToolCallProto.getDescriptor(), + com.google.cloud.dialogflow.cx.v3.TraceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -783,6 +782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdvancedSettings", "AllowAnswerFeedback", "DataStoreConnectionSignals", + "TraceBlocks", "Query", }); internal_static_google_cloud_dialogflow_cx_v3_TextInput_descriptor = @@ -894,6 +894,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3.ResponseMessageProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.SessionEntityTypeProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.ToolCallProto.getDescriptor(); + com.google.cloud.dialogflow.cx.v3.TraceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadata.java new file mode 100644 index 000000000000..705d91f2f8e9 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadata.java @@ -0,0 +1,597 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
                                            + * Metadata of the speech-to-text and text-to-speech processing.
                                            + * 
                                            + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata} + */ +@com.google.protobuf.Generated +public final class SpeechProcessingMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + SpeechProcessingMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SpeechProcessingMetadata"); + } + + // Use SpeechProcessingMetadata.newBuilder() to construct. + private SpeechProcessingMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpeechProcessingMetadata() { + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.class, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                            +   * Output only. The display name of the speech processing.
                                            +   * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                            +   * Output only. The display name of the speech processing.
                                            +   * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); + } + 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.dialogflow.cx.v3.SpeechProcessingMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata other = + (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) obj; + + if (!getDisplayName().equals(other.getDisplayName())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata 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.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata 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.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.cx.v3.SpeechProcessingMetadata 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                            +   * Metadata of the speech-to-text and text-to-speech processing.
                                            +   * 
                                            + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.class, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata build() { + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata result = + new com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                            +     * Output only. The display name of the speech processing.
                                            +     * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                            +     * Output only. The display name of the speech processing.
                                            +     * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                            +     * Output only. The display name of the speech processing.
                                            +     * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. The display name of the speech processing.
                                            +     * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. The display name of the speech processing.
                                            +     * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + private static final com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechProcessingMetadata 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.dialogflow.cx.v3.SpeechProcessingMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadataOrBuilder.java new file mode 100644 index 000000000000..890739ce1073 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadataOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +@com.google.protobuf.Generated +public interface SpeechProcessingMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                            +   * Output only. The display name of the speech processing.
                                            +   * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                            +   * Output only. The display name of the speech processing.
                                            +   * 
                                            + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlock.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlock.java new file mode 100644 index 000000000000..0d865aa68725 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlock.java @@ -0,0 +1,3344 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
                                            + * The trace block tracks a sequence of actions taken by the agent in a flow or
                                            + * a playbook.
                                            + * 
                                            + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.TraceBlock} + */ +@com.google.protobuf.Generated +public final class TraceBlock extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.TraceBlock) + TraceBlockOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TraceBlock"); + } + + // Use TraceBlock.newBuilder() to construct. + private TraceBlock(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TraceBlock() { + actions_ = java.util.Collections.emptyList(); + endState_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.TraceBlock.class, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder.class); + } + + private int bitField0_; + private int traceMetadataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object traceMetadata_; + + public enum TraceMetadataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PLAYBOOK_TRACE_METADATA(1), + FLOW_TRACE_METADATA(2), + SPEECH_PROCESSING_METADATA(8), + TRACEMETADATA_NOT_SET(0); + private final int value; + + private TraceMetadataCase(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 TraceMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TraceMetadataCase forNumber(int value) { + switch (value) { + case 1: + return PLAYBOOK_TRACE_METADATA; + case 2: + return FLOW_TRACE_METADATA; + case 8: + return SPEECH_PROCESSING_METADATA; + case 0: + return TRACEMETADATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TraceMetadataCase getTraceMetadataCase() { + return TraceMetadataCase.forNumber(traceMetadataCase_); + } + + public static final int PLAYBOOK_TRACE_METADATA_FIELD_NUMBER = 1; + + /** + * + * + *
                                            +   * Metadata of the playbook trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * @return Whether the playbookTraceMetadata field is set. + */ + @java.lang.Override + public boolean hasPlaybookTraceMetadata() { + return traceMetadataCase_ == 1; + } + + /** + * + * + *
                                            +   * Metadata of the playbook trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * @return The playbookTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getPlaybookTraceMetadata() { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                            +   * Metadata of the playbook trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder() { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + + public static final int FLOW_TRACE_METADATA_FIELD_NUMBER = 2; + + /** + * + * + *
                                            +   * Metadata of the flow trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return Whether the flowTraceMetadata field is set. + */ + @java.lang.Override + public boolean hasFlowTraceMetadata() { + return traceMetadataCase_ == 2; + } + + /** + * + * + *
                                            +   * Metadata of the flow trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getFlowTraceMetadata() { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                            +   * Metadata of the flow trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder + getFlowTraceMetadataOrBuilder() { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + + public static final int SPEECH_PROCESSING_METADATA_FIELD_NUMBER = 8; + + /** + * + * + *
                                            +   * Metadata of the speech-to-text and speech-to-text processing.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return Whether the speechProcessingMetadata field is set. + */ + @java.lang.Override + public boolean hasSpeechProcessingMetadata() { + return traceMetadataCase_ == 8; + } + + /** + * + * + *
                                            +   * Metadata of the speech-to-text and speech-to-text processing.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getSpeechProcessingMetadata() { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                            +   * Metadata of the speech-to-text and speech-to-text processing.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder() { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + + public static final int ACTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List actions_; + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public java.util.List getActionsList() { + return actions_; + } + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public java.util.List + getActionsOrBuilderList() { + return actions_; + } + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public int getActionsCount() { + return actions_.size(); + } + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Action getActions(int index) { + return actions_.get(index); + } + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ActionOrBuilder getActionsOrBuilder(int index) { + return actions_.get(index); + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                            +   * Output only. Timestamp of the start of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                            +   * Output only. Timestamp of the start of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                            +   * Output only. Timestamp of the start of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int COMPLETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp completeTime_; + + /** + * + * + *
                                            +   * Output only. Timestamp of the end of the trace block.
                                            +   * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                            +   * Output only. Timestamp of the end of the trace block.
                                            +   * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + /** + * + * + *
                                            +   * Output only. Timestamp of the end of the trace block.
                                            +   * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + public static final int INPUT_PARAMETERS_FIELD_NUMBER = 9; + private com.google.protobuf.Struct inputParameters_; + + /** + * + * + *
                                            +   * Optional. A list of input parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + @java.lang.Override + public boolean hasInputParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                            +   * Optional. A list of input parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getInputParameters() { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + + /** + * + * + *
                                            +   * Optional. A list of input parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + + public static final int OUTPUT_PARAMETERS_FIELD_NUMBER = 6; + private com.google.protobuf.Struct outputParameters_; + + /** + * + * + *
                                            +   * Optional. A list of output parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputParameters field is set. + */ + @java.lang.Override + public boolean hasOutputParameters() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                            +   * Optional. A list of output parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getOutputParameters() { + return outputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputParameters_; + } + + /** + * + * + *
                                            +   * Optional. A list of output parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder() { + return outputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputParameters_; + } + + public static final int END_STATE_FIELD_NUMBER = 7; + private int endState_ = 0; + + /** + * + * + *
                                            +   * Optional. Output only. The end state of the trace block.
                                            +   * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for endState. + */ + @java.lang.Override + public int getEndStateValue() { + return endState_; + } + + /** + * + * + *
                                            +   * Optional. Output only. The end state of the trace block.
                                            +   * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endState. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.OutputState getEndState() { + com.google.cloud.dialogflow.cx.v3.OutputState result = + com.google.cloud.dialogflow.cx.v3.OutputState.forNumber(endState_); + return result == null ? com.google.cloud.dialogflow.cx.v3.OutputState.UNRECOGNIZED : result; + } + + 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 (traceMetadataCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_); + } + if (traceMetadataCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_); + } + for (int i = 0; i < actions_.size(); i++) { + output.writeMessage(3, actions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getCompleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getOutputParameters()); + } + if (endState_ + != com.google.cloud.dialogflow.cx.v3.OutputState.OUTPUT_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, endState_); + } + if (traceMetadataCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(9, getInputParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (traceMetadataCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_); + } + if (traceMetadataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_); + } + for (int i = 0; i < actions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, actions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputParameters()); + } + if (endState_ + != com.google.cloud.dialogflow.cx.v3.OutputState.OUTPUT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, endState_); + } + if (traceMetadataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getInputParameters()); + } + 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.dialogflow.cx.v3.TraceBlock)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.TraceBlock other = + (com.google.cloud.dialogflow.cx.v3.TraceBlock) obj; + + if (!getActionsList().equals(other.getActionsList())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (hasInputParameters() != other.hasInputParameters()) return false; + if (hasInputParameters()) { + if (!getInputParameters().equals(other.getInputParameters())) return false; + } + if (hasOutputParameters() != other.hasOutputParameters()) return false; + if (hasOutputParameters()) { + if (!getOutputParameters().equals(other.getOutputParameters())) return false; + } + if (endState_ != other.endState_) return false; + if (!getTraceMetadataCase().equals(other.getTraceMetadataCase())) return false; + switch (traceMetadataCase_) { + case 1: + if (!getPlaybookTraceMetadata().equals(other.getPlaybookTraceMetadata())) return false; + break; + case 2: + if (!getFlowTraceMetadata().equals(other.getFlowTraceMetadata())) return false; + break; + case 8: + if (!getSpeechProcessingMetadata().equals(other.getSpeechProcessingMetadata())) + 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(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + if (hasInputParameters()) { + hash = (37 * hash) + INPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getInputParameters().hashCode(); + } + if (hasOutputParameters()) { + hash = (37 * hash) + OUTPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getOutputParameters().hashCode(); + } + hash = (37 * hash) + END_STATE_FIELD_NUMBER; + hash = (53 * hash) + endState_; + switch (traceMetadataCase_) { + case 1: + hash = (37 * hash) + PLAYBOOK_TRACE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPlaybookTraceMetadata().hashCode(); + break; + case 2: + hash = (37 * hash) + FLOW_TRACE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getFlowTraceMetadata().hashCode(); + break; + case 8: + hash = (37 * hash) + SPEECH_PROCESSING_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getSpeechProcessingMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock 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.dialogflow.cx.v3.TraceBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock 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.dialogflow.cx.v3.TraceBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.cx.v3.TraceBlock 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                            +   * The trace block tracks a sequence of actions taken by the agent in a flow or
                                            +   * a playbook.
                                            +   * 
                                            + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.TraceBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.TraceBlock) + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.TraceBlock.class, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.TraceBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetActionsFieldBuilder(); + internalGetStartTimeFieldBuilder(); + internalGetCompleteTimeFieldBuilder(); + internalGetInputParametersFieldBuilder(); + internalGetOutputParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (playbookTraceMetadataBuilder_ != null) { + playbookTraceMetadataBuilder_.clear(); + } + if (flowTraceMetadataBuilder_ != null) { + flowTraceMetadataBuilder_.clear(); + } + if (speechProcessingMetadataBuilder_ != null) { + speechProcessingMetadataBuilder_.clear(); + } + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + } else { + actions_ = null; + actionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + inputParameters_ = null; + if (inputParametersBuilder_ != null) { + inputParametersBuilder_.dispose(); + inputParametersBuilder_ = null; + } + outputParameters_ = null; + if (outputParametersBuilder_ != null) { + outputParametersBuilder_.dispose(); + outputParametersBuilder_ = null; + } + endState_ = 0; + traceMetadataCase_ = 0; + traceMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.TraceBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock build() { + com.google.cloud.dialogflow.cx.v3.TraceBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock buildPartial() { + com.google.cloud.dialogflow.cx.v3.TraceBlock result = + new com.google.cloud.dialogflow.cx.v3.TraceBlock(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.TraceBlock result) { + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TraceBlock result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.inputParameters_ = + inputParametersBuilder_ == null ? inputParameters_ : inputParametersBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.outputParameters_ = + outputParametersBuilder_ == null ? outputParameters_ : outputParametersBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.endState_ = endState_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.TraceBlock result) { + result.traceMetadataCase_ = traceMetadataCase_; + result.traceMetadata_ = this.traceMetadata_; + if (traceMetadataCase_ == 1 && playbookTraceMetadataBuilder_ != null) { + result.traceMetadata_ = playbookTraceMetadataBuilder_.build(); + } + if (traceMetadataCase_ == 2 && flowTraceMetadataBuilder_ != null) { + result.traceMetadata_ = flowTraceMetadataBuilder_.build(); + } + if (traceMetadataCase_ == 8 && speechProcessingMetadataBuilder_ != null) { + result.traceMetadata_ = speechProcessingMetadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.TraceBlock) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.TraceBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TraceBlock other) { + if (other == com.google.cloud.dialogflow.cx.v3.TraceBlock.getDefaultInstance()) return this; + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000008); + actionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetActionsFieldBuilder() + : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + if (other.hasInputParameters()) { + mergeInputParameters(other.getInputParameters()); + } + if (other.hasOutputParameters()) { + mergeOutputParameters(other.getOutputParameters()); + } + if (other.endState_ != 0) { + setEndStateValue(other.getEndStateValue()); + } + switch (other.getTraceMetadataCase()) { + case PLAYBOOK_TRACE_METADATA: + { + mergePlaybookTraceMetadata(other.getPlaybookTraceMetadata()); + break; + } + case FLOW_TRACE_METADATA: + { + mergeFlowTraceMetadata(other.getFlowTraceMetadata()); + break; + } + case SPEECH_PROCESSING_METADATA: + { + mergeSpeechProcessingMetadata(other.getSpeechProcessingMetadata()); + break; + } + case TRACEMETADATA_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( + internalGetPlaybookTraceMetadataFieldBuilder().getBuilder(), extensionRegistry); + traceMetadataCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetFlowTraceMetadataFieldBuilder().getBuilder(), extensionRegistry); + traceMetadataCase_ = 2; + break; + } // case 18 + case 26: + { + com.google.cloud.dialogflow.cx.v3.Action m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.Action.parser(), extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetOutputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 56: + { + endState_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 56 + case 66: + { + input.readMessage( + internalGetSpeechProcessingMetadataFieldBuilder().getBuilder(), + extensionRegistry); + traceMetadataCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 74 + 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 traceMetadataCase_ = 0; + private java.lang.Object traceMetadata_; + + public TraceMetadataCase getTraceMetadataCase() { + return TraceMetadataCase.forNumber(traceMetadataCase_); + } + + public Builder clearTraceMetadata() { + traceMetadataCase_ = 0; + traceMetadata_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder> + playbookTraceMetadataBuilder_; + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * + * @return Whether the playbookTraceMetadata field is set. + */ + @java.lang.Override + public boolean hasPlaybookTraceMetadata() { + return traceMetadataCase_ == 1; + } + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * + * @return The playbookTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getPlaybookTraceMetadata() { + if (playbookTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 1) { + return playbookTraceMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder setPlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata value) { + if (playbookTraceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + traceMetadata_ = value; + onChanged(); + } else { + playbookTraceMetadataBuilder_.setMessage(value); + } + traceMetadataCase_ = 1; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder setPlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder builderForValue) { + if (playbookTraceMetadataBuilder_ == null) { + traceMetadata_ = builderForValue.build(); + onChanged(); + } else { + playbookTraceMetadataBuilder_.setMessage(builderForValue.build()); + } + traceMetadataCase_ = 1; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder mergePlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata value) { + if (playbookTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 1 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + traceMetadata_ = value; + } + onChanged(); + } else { + if (traceMetadataCase_ == 1) { + playbookTraceMetadataBuilder_.mergeFrom(value); + } else { + playbookTraceMetadataBuilder_.setMessage(value); + } + } + traceMetadataCase_ = 1; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder clearPlaybookTraceMetadata() { + if (playbookTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 1) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + onChanged(); + } + } else { + if (traceMetadataCase_ == 1) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + } + playbookTraceMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder + getPlaybookTraceMetadataBuilder() { + return internalGetPlaybookTraceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder() { + if ((traceMetadataCase_ == 1) && (playbookTraceMetadataBuilder_ != null)) { + return playbookTraceMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                            +     * Metadata of the playbook trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder> + internalGetPlaybookTraceMetadataFieldBuilder() { + if (playbookTraceMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 1)) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + playbookTraceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_, + getParentForChildren(), + isClean()); + traceMetadata_ = null; + } + traceMetadataCase_ = 1; + onChanged(); + return playbookTraceMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder> + flowTraceMetadataBuilder_; + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return Whether the flowTraceMetadata field is set. + */ + @java.lang.Override + public boolean hasFlowTraceMetadata() { + return traceMetadataCase_ == 2; + } + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getFlowTraceMetadata() { + if (flowTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 2) { + return flowTraceMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder setFlowTraceMetadata(com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata value) { + if (flowTraceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + traceMetadata_ = value; + onChanged(); + } else { + flowTraceMetadataBuilder_.setMessage(value); + } + traceMetadataCase_ = 2; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder setFlowTraceMetadata( + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder builderForValue) { + if (flowTraceMetadataBuilder_ == null) { + traceMetadata_ = builderForValue.build(); + onChanged(); + } else { + flowTraceMetadataBuilder_.setMessage(builderForValue.build()); + } + traceMetadataCase_ = 2; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder mergeFlowTraceMetadata( + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata value) { + if (flowTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 2 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + traceMetadata_ = value; + } + onChanged(); + } else { + if (traceMetadataCase_ == 2) { + flowTraceMetadataBuilder_.mergeFrom(value); + } else { + flowTraceMetadataBuilder_.setMessage(value); + } + } + traceMetadataCase_ = 2; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder clearFlowTraceMetadata() { + if (flowTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 2) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + onChanged(); + } + } else { + if (traceMetadataCase_ == 2) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + } + flowTraceMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder + getFlowTraceMetadataBuilder() { + return internalGetFlowTraceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder + getFlowTraceMetadataOrBuilder() { + if ((traceMetadataCase_ == 2) && (flowTraceMetadataBuilder_ != null)) { + return flowTraceMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                            +     * Metadata of the flow trace.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder> + internalGetFlowTraceMetadataFieldBuilder() { + if (flowTraceMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 2)) { + traceMetadata_ = com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + flowTraceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_, + getParentForChildren(), + isClean()); + traceMetadata_ = null; + } + traceMetadataCase_ = 2; + onChanged(); + return flowTraceMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder> + speechProcessingMetadataBuilder_; + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return Whether the speechProcessingMetadata field is set. + */ + @java.lang.Override + public boolean hasSpeechProcessingMetadata() { + return traceMetadataCase_ == 8; + } + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata + getSpeechProcessingMetadata() { + if (speechProcessingMetadataBuilder_ == null) { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 8) { + return speechProcessingMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder setSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata value) { + if (speechProcessingMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + traceMetadata_ = value; + onChanged(); + } else { + speechProcessingMetadataBuilder_.setMessage(value); + } + traceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder setSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder builderForValue) { + if (speechProcessingMetadataBuilder_ == null) { + traceMetadata_ = builderForValue.build(); + onChanged(); + } else { + speechProcessingMetadataBuilder_.setMessage(builderForValue.build()); + } + traceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder mergeSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata value) { + if (speechProcessingMetadataBuilder_ == null) { + if (traceMetadataCase_ == 8 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata + .getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + traceMetadata_ = value; + } + onChanged(); + } else { + if (traceMetadataCase_ == 8) { + speechProcessingMetadataBuilder_.mergeFrom(value); + } else { + speechProcessingMetadataBuilder_.setMessage(value); + } + } + traceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder clearSpeechProcessingMetadata() { + if (speechProcessingMetadataBuilder_ == null) { + if (traceMetadataCase_ == 8) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + onChanged(); + } + } else { + if (traceMetadataCase_ == 8) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + } + speechProcessingMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder + getSpeechProcessingMetadataBuilder() { + return internalGetSpeechProcessingMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder() { + if ((traceMetadataCase_ == 8) && (speechProcessingMetadataBuilder_ != null)) { + return speechProcessingMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                            +     * Metadata of the speech-to-text and speech-to-text processing.
                                            +     * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder> + internalGetSpeechProcessingMetadataFieldBuilder() { + if (speechProcessingMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 8)) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + speechProcessingMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_, + getParentForChildren(), + isClean()); + traceMetadata_ = null; + } + traceMetadataCase_ = 8; + onChanged(); + return speechProcessingMetadataBuilder_; + } + + private java.util.List actions_ = + java.util.Collections.emptyList(); + + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + actions_ = new java.util.ArrayList(actions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.Action, + com.google.cloud.dialogflow.cx.v3.Action.Builder, + com.google.cloud.dialogflow.cx.v3.ActionOrBuilder> + actionsBuilder_; + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public java.util.List getActionsList() { + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public int getActionsCount() { + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.Action getActions(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder setActions(int index, com.google.cloud.dialogflow.cx.v3.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder setActions( + int index, com.google.cloud.dialogflow.cx.v3.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addActions(com.google.cloud.dialogflow.cx.v3.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addActions(int index, com.google.cloud.dialogflow.cx.v3.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addActions(com.google.cloud.dialogflow.cx.v3.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addActions( + int index, com.google.cloud.dialogflow.cx.v3.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addAllActions( + java.lang.Iterable values) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder clearActions() { + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + actionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder removeActions(int index) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.Action.Builder getActionsBuilder(int index) { + return internalGetActionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.ActionOrBuilder getActionsOrBuilder(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public java.util.List + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); + } + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.Action.Builder addActionsBuilder() { + return internalGetActionsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.Action.getDefaultInstance()); + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.Action.Builder addActionsBuilder(int index) { + return internalGetActionsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3.Action.getDefaultInstance()); + } + + /** + * + * + *
                                            +     * The actions performed by the agent and the user during this session.
                                            +     * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public java.util.List + getActionsBuilderList() { + return internalGetActionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.Action, + com.google.cloud.dialogflow.cx.v3.Action.Builder, + com.google.cloud.dialogflow.cx.v3.ActionOrBuilder> + internalGetActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.Action, + com.google.cloud.dialogflow.cx.v3.Action.Builder, + com.google.cloud.dialogflow.cx.v3.ActionOrBuilder>( + actions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + actions_ = null; + } + return actionsBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the start of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp completeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000020); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCompleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + } + + /** + * + * + *
                                            +     * Output only. Timestamp of the end of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + private com.google.protobuf.Struct inputParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + inputParametersBuilder_; + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + public boolean hasInputParameters() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + public com.google.protobuf.Struct getInputParameters() { + if (inputParametersBuilder_ == null) { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } else { + return inputParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputParameters(com.google.protobuf.Struct value) { + if (inputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputParameters_ = value; + } else { + inputParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (inputParametersBuilder_ == null) { + inputParameters_ = builderForValue.build(); + } else { + inputParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInputParameters(com.google.protobuf.Struct value) { + if (inputParametersBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && inputParameters_ != null + && inputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInputParametersBuilder().mergeFrom(value); + } else { + inputParameters_ = value; + } + } else { + inputParametersBuilder_.mergeFrom(value); + } + if (inputParameters_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputParameters() { + bitField0_ = (bitField0_ & ~0x00000040); + inputParameters_ = null; + if (inputParametersBuilder_ != null) { + inputParametersBuilder_.dispose(); + inputParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getInputParametersBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetInputParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { + if (inputParametersBuilder_ != null) { + return inputParametersBuilder_.getMessageOrBuilder(); + } else { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + } + + /** + * + * + *
                                            +     * Optional. A list of input parameters of the trace block.
                                            +     * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetInputParametersFieldBuilder() { + if (inputParametersBuilder_ == null) { + inputParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getInputParameters(), getParentForChildren(), isClean()); + inputParameters_ = null; + } + return inputParametersBuilder_; + } + + private com.google.protobuf.Struct outputParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + outputParametersBuilder_; + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputParameters field is set. + */ + public boolean hasOutputParameters() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputParameters. + */ + public com.google.protobuf.Struct getOutputParameters() { + if (outputParametersBuilder_ == null) { + return outputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputParameters_; + } else { + return outputParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputParameters(com.google.protobuf.Struct value) { + if (outputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputParameters_ = value; + } else { + outputParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (outputParametersBuilder_ == null) { + outputParameters_ = builderForValue.build(); + } else { + outputParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputParameters(com.google.protobuf.Struct value) { + if (outputParametersBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && outputParameters_ != null + && outputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOutputParametersBuilder().mergeFrom(value); + } else { + outputParameters_ = value; + } + } else { + outputParametersBuilder_.mergeFrom(value); + } + if (outputParameters_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputParameters() { + bitField0_ = (bitField0_ & ~0x00000080); + outputParameters_ = null; + if (outputParametersBuilder_ != null) { + outputParametersBuilder_.dispose(); + outputParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getOutputParametersBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetOutputParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder() { + if (outputParametersBuilder_ != null) { + return outputParametersBuilder_.getMessageOrBuilder(); + } else { + return outputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputParameters_; + } + } + + /** + * + * + *
                                            +     * Optional. A list of output parameters of the trace block.
                                            +     * 
                                            + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetOutputParametersFieldBuilder() { + if (outputParametersBuilder_ == null) { + outputParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOutputParameters(), getParentForChildren(), isClean()); + outputParameters_ = null; + } + return outputParametersBuilder_; + } + + private int endState_ = 0; + + /** + * + * + *
                                            +     * Optional. Output only. The end state of the trace block.
                                            +     * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for endState. + */ + @java.lang.Override + public int getEndStateValue() { + return endState_; + } + + /** + * + * + *
                                            +     * Optional. Output only. The end state of the trace block.
                                            +     * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for endState to set. + * @return This builder for chaining. + */ + public Builder setEndStateValue(int value) { + endState_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. Output only. The end state of the trace block.
                                            +     * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endState. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.OutputState getEndState() { + com.google.cloud.dialogflow.cx.v3.OutputState result = + com.google.cloud.dialogflow.cx.v3.OutputState.forNumber(endState_); + return result == null ? com.google.cloud.dialogflow.cx.v3.OutputState.UNRECOGNIZED : result; + } + + /** + * + * + *
                                            +     * Optional. Output only. The end state of the trace block.
                                            +     * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The endState to set. + * @return This builder for chaining. + */ + public Builder setEndState(com.google.cloud.dialogflow.cx.v3.OutputState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + endState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                            +     * Optional. Output only. The end state of the trace block.
                                            +     * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEndState() { + bitField0_ = (bitField0_ & ~0x00000100); + endState_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.TraceBlock) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.TraceBlock) + private static final com.google.cloud.dialogflow.cx.v3.TraceBlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.TraceBlock(); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TraceBlock 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.dialogflow.cx.v3.TraceBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlockOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlockOrBuilder.java new file mode 100644 index 000000000000..ac65fc45cf6b --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlockOrBuilder.java @@ -0,0 +1,395 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +@com.google.protobuf.Generated +public interface TraceBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.TraceBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                            +   * Metadata of the playbook trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * @return Whether the playbookTraceMetadata field is set. + */ + boolean hasPlaybookTraceMetadata(); + + /** + * + * + *
                                            +   * Metadata of the playbook trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * @return The playbookTraceMetadata. + */ + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getPlaybookTraceMetadata(); + + /** + * + * + *
                                            +   * Metadata of the playbook trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + */ + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder(); + + /** + * + * + *
                                            +   * Metadata of the flow trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return Whether the flowTraceMetadata field is set. + */ + boolean hasFlowTraceMetadata(); + + /** + * + * + *
                                            +   * Metadata of the flow trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getFlowTraceMetadata(); + + /** + * + * + *
                                            +   * Metadata of the flow trace.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder getFlowTraceMetadataOrBuilder(); + + /** + * + * + *
                                            +   * Metadata of the speech-to-text and speech-to-text processing.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return Whether the speechProcessingMetadata field is set. + */ + boolean hasSpeechProcessingMetadata(); + + /** + * + * + *
                                            +   * Metadata of the speech-to-text and speech-to-text processing.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getSpeechProcessingMetadata(); + + /** + * + * + *
                                            +   * Metadata of the speech-to-text and speech-to-text processing.
                                            +   * 
                                            + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder(); + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + java.util.List getActionsList(); + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + com.google.cloud.dialogflow.cx.v3.Action getActions(int index); + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + int getActionsCount(); + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + java.util.List + getActionsOrBuilderList(); + + /** + * + * + *
                                            +   * The actions performed by the agent and the user during this session.
                                            +   * 
                                            + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + com.google.cloud.dialogflow.cx.v3.ActionOrBuilder getActionsOrBuilder(int index); + + /** + * + * + *
                                            +   * Output only. Timestamp of the start of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
                                            +   * Output only. Timestamp of the start of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                            +   * Output only. Timestamp of the start of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                            +   * Output only. Timestamp of the end of the trace block.
                                            +   * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + boolean hasCompleteTime(); + + /** + * + * + *
                                            +   * Output only. Timestamp of the end of the trace block.
                                            +   * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + com.google.protobuf.Timestamp getCompleteTime(); + + /** + * + * + *
                                            +   * Output only. Timestamp of the end of the trace block.
                                            +   * 
                                            + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + + /** + * + * + *
                                            +   * Optional. A list of input parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + boolean hasInputParameters(); + + /** + * + * + *
                                            +   * Optional. A list of input parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + com.google.protobuf.Struct getInputParameters(); + + /** + * + * + *
                                            +   * Optional. A list of input parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getInputParametersOrBuilder(); + + /** + * + * + *
                                            +   * Optional. A list of output parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputParameters field is set. + */ + boolean hasOutputParameters(); + + /** + * + * + *
                                            +   * Optional. A list of output parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputParameters. + */ + com.google.protobuf.Struct getOutputParameters(); + + /** + * + * + *
                                            +   * Optional. A list of output parameters of the trace block.
                                            +   * 
                                            + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder(); + + /** + * + * + *
                                            +   * Optional. Output only. The end state of the trace block.
                                            +   * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for endState. + */ + int getEndStateValue(); + + /** + * + * + *
                                            +   * Optional. Output only. The end state of the trace block.
                                            +   * 
                                            + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endState. + */ + com.google.cloud.dialogflow.cx.v3.OutputState getEndState(); + + com.google.cloud.dialogflow.cx.v3.TraceBlock.TraceMetadataCase getTraceMetadataCase(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceProto.java index 26b403887ecb..c337aa032f48 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceProto.java @@ -40,6 +40,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -89,79 +105,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + ")google/cloud/dialogflow/cx/v3/trace.pr" + "\n)google/cloud/dialogflow/cx/v3/trace.pr" + "oto\022\035google.cloud.dialogflow.cx.v3\032\037goog" + "le/api/field_behavior.proto\032\031google/api/" - + "resource.proto\032\034google/protobuf/struct.proto\"<\n\r" - + "PlaybookInput\022+\n" - + "\036preceding_conversation_summary\030\001 \001(\tB\003\340A\001\"0\n" - + "\016PlaybookOutput\022\036\n" - + "\021execution_summary\030\001 \001(\tB\003\340A\001\"\273\004\n" - + "\006Action\022K\n" - + "\016user_utterance\030\001 \001(\0132,.google" - + ".cloud.dialogflow.cx.v3.UserUtteranceB\003\340A\001H\000\022M\n" - + "\017agent_utterance\030\002 \001(\0132-.google.c" - + "loud.dialogflow.cx.v3.AgentUtteranceB\003\340A\001H\000\022?\n" - + "\010tool_use\030\003" - + " \001(\0132&.google.cloud.dialogflow.cx.v3.ToolUseB\003\340A\001H\000\022U\n" - + "\023playbook_invocation\030\004" - + " \001(\01321.google.cloud.dialogflow.cx.v3.PlaybookInvocationB\003\340A\001H\000\022M\n" - + "\017flow_invocation\030\005" - + " \001(\0132-.google.cloud.dialogflow.cx.v3.FlowInvocationB\003\340A\001H\000\022U\n" - + "\023playbook_transition\030\014 \001(\01321.google.cloud.d" - + "ialogflow.cx.v3.PlaybookTransitionB\003\340A\001H\000\022M\n" - + "\017flow_transition\030\r" - + " \001(\0132-.google.cloud.dialogflow.cx.v3.FlowTransitionB\003\340A\001H\000B\010\n" - + "\006action\"\"\n\r" - + "UserUtterance\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\002\"#\n" - + "\016AgentUtterance\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\002\"\356\001\n" - + "\007ToolUse\0224\n" - + "\004tool\030\001 \001(\tB&\340A\002\372A \n" - + "\036dialogflow.googleapis.com/Tool\022\031\n" - + "\014display_name\030\010 \001(\tB\003\340A\003\022\023\n" - + "\006action\030\002 \001(\tB\003\340A\001\022=\n" - + "\027input_action_parameters\030\005" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022>\n" - + "\030output_action_parameters\030\006" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\"\316\002\n" - + "\022PlaybookInvocation\022<\n" - + "\010playbook\030\001 \001(\tB*\340A\002\372A$\n" - + "\"dialogflow.googleapis.com/Playbook\022\031\n" - + "\014display_name\030\005 \001(\tB\003\340A\003\022I\n" - + "\016playbook_input\030\002" - + " \001(\0132,.google.cloud.dialogflow.cx.v3.PlaybookInputB\003\340A\001\022K\n" - + "\017playbook_output\030\003" - + " \001(\0132-.google.cloud.dialogflow.cx.v3.PlaybookOutputB\003\340A\001\022G\n" - + "\016playbook_state\030\004" - + " \001(\0162*.google.cloud.dialogflow.cx.v3.OutputStateB\003\340A\002\"\246\001\n" - + "\016FlowInvocation\0224\n" - + "\004flow\030\001 \001(\tB&\340A\002\372A \n" - + "\036dialogflow.googleapis.com/Flow\022\031\n" - + "\014display_name\030\007 \001(\tB\003\340A\003\022C\n\n" - + "flow_state\030\004" - + " \001(\0162*.google.cloud.dialogflow.cx.v3.OutputStateB\003\340A\002\"m\n" - + "\022PlaybookTransition\022<\n" - + "\010playbook\030\001 \001(\tB*\340A\002\372A$\n" - + "\"dialogflow.googleapis.com/Playbook\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\003\"a\n" - + "\016FlowTransition\0224\n" - + "\004flow\030\001 \001(\tB&\340A\002\372A \n" - + "\036dialogflow.googleapis.com/Flow\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\003*\253\001\n" - + "\013OutputState\022\034\n" - + "\030OUTPUT_STATE_UNSPECIFIED\020\000\022\023\n" - + "\017OUTPUT_STATE_OK\020\001\022\032\n" - + "\026OUTPUT_STATE_CANCELLED\020\002\022\027\n" - + "\023OUTPUT_STATE_FAILED\020\003\022\032\n" - + "\026OUTPUT_STATE_ESCALATED\020\004\022\030\n" - + "\024OUTPUT_STATE_PENDING\020\005B\255\001\n" - + "!com.google.cloud.dialogflow.cx.v3B\n" - + "TraceProtoP\001Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\242\002\002" - + "DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Goo" - + "gle::Cloud::Dialogflow::CX::V3b\006proto3" + + "resource.proto\032\034google/protobuf/struct.p" + + "roto\032\037google/protobuf/timestamp.proto\"\204\005" + + "\n\nTraceBlock\022W\n\027playbook_trace_metadata\030" + + "\001 \001(\01324.google.cloud.dialogflow.cx.v3.Pl" + + "aybookTraceMetadataH\000\022O\n\023flow_trace_meta" + + "data\030\002 \001(\01320.google.cloud.dialogflow.cx." + + "v3.FlowTraceMetadataH\000\022]\n\032speech_process" + + "ing_metadata\030\010 \001(\01327.google.cloud.dialog" + + "flow.cx.v3.SpeechProcessingMetadataH\000\0226\n" + + "\007actions\030\003 \003(\0132%.google.cloud.dialogflow" + + ".cx.v3.Action\0223\n\nstart_time\030\004 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0226\n\rcomplete_t" + + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0226\n\020input_parameters\030\t \001(\0132\027.google.pr" + + "otobuf.StructB\003\340A\001\0227\n\021output_parameters\030" + + "\006 \001(\0132\027.google.protobuf.StructB\003\340A\001\022E\n\te" + + "nd_state\030\007 \001(\0162*.google.cloud.dialogflow" + + ".cx.v3.OutputStateB\006\340A\003\340A\001B\020\n\016trace_meta" + + "data\"5\n\030SpeechProcessingMetadata\022\031\n\014disp" + + "lay_name\030\001 \001(\tB\003\340A\003\"p\n\025PlaybookTraceMeta" + + "data\022<\n\010playbook\030\001 \001(\tB*\340A\002\372A$\n\"dialogfl" + + "ow.googleapis.com/Playbook\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\003\"d\n\021FlowTraceMetadata\0224\n\004fl" + + "ow\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapis." + + "com/Flow\022\031\n\014display_name\030\002 \001(\tB\003\340A\003\"<\n\rP" + + "laybookInput\022+\n\036preceding_conversation_s" + + "ummary\030\001 \001(\tB\003\340A\001\"0\n\016PlaybookOutput\022\036\n\021e" + + "xecution_summary\030\001 \001(\tB\003\340A\001\"\273\004\n\006Action\022K" + + "\n\016user_utterance\030\001 \001(\0132,.google.cloud.di" + + "alogflow.cx.v3.UserUtteranceB\003\340A\001H\000\022M\n\017a" + + "gent_utterance\030\002 \001(\0132-.google.cloud.dial" + + "ogflow.cx.v3.AgentUtteranceB\003\340A\001H\000\022?\n\010to" + + "ol_use\030\003 \001(\0132&.google.cloud.dialogflow.c" + + "x.v3.ToolUseB\003\340A\001H\000\022U\n\023playbook_invocati" + + "on\030\004 \001(\01321.google.cloud.dialogflow.cx.v3" + + ".PlaybookInvocationB\003\340A\001H\000\022M\n\017flow_invoc" + + "ation\030\005 \001(\0132-.google.cloud.dialogflow.cx" + + ".v3.FlowInvocationB\003\340A\001H\000\022U\n\023playbook_tr" + + "ansition\030\014 \001(\01321.google.cloud.dialogflow" + + ".cx.v3.PlaybookTransitionB\003\340A\001H\000\022M\n\017flow" + + "_transition\030\r \001(\0132-.google.cloud.dialogf" + + "low.cx.v3.FlowTransitionB\003\340A\001H\000B\010\n\006actio" + + "n\"\"\n\rUserUtterance\022\021\n\004text\030\001 \001(\tB\003\340A\002\"#\n" + + "\016AgentUtterance\022\021\n\004text\030\001 \001(\tB\003\340A\002\"\356\001\n\007T" + + "oolUse\0224\n\004tool\030\001 \001(\tB&\340A\002\372A \n\036dialogflow" + + ".googleapis.com/Tool\022\031\n\014display_name\030\010 \001" + + "(\tB\003\340A\003\022\023\n\006action\030\002 \001(\tB\003\340A\001\022=\n\027input_ac" + + "tion_parameters\030\005 \001(\0132\027.google.protobuf." + + "StructB\003\340A\001\022>\n\030output_action_parameters\030" + + "\006 \001(\0132\027.google.protobuf.StructB\003\340A\001\"\316\002\n\022" + + "PlaybookInvocation\022<\n\010playbook\030\001 \001(\tB*\340A" + + "\002\372A$\n\"dialogflow.googleapis.com/Playbook" + + "\022\031\n\014display_name\030\005 \001(\tB\003\340A\003\022I\n\016playbook_" + + "input\030\002 \001(\0132,.google.cloud.dialogflow.cx" + + ".v3.PlaybookInputB\003\340A\001\022K\n\017playbook_outpu" + + "t\030\003 \001(\0132-.google.cloud.dialogflow.cx.v3." + + "PlaybookOutputB\003\340A\001\022G\n\016playbook_state\030\004 " + + "\001(\0162*.google.cloud.dialogflow.cx.v3.Outp" + + "utStateB\003\340A\002\"\246\001\n\016FlowInvocation\0224\n\004flow\030" + + "\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapis.com" + + "/Flow\022\031\n\014display_name\030\007 \001(\tB\003\340A\003\022C\n\nflow" + + "_state\030\004 \001(\0162*.google.cloud.dialogflow.c" + + "x.v3.OutputStateB\003\340A\002\"m\n\022PlaybookTransit" + + "ion\022<\n\010playbook\030\001 \001(\tB*\340A\002\372A$\n\"dialogflo" + + "w.googleapis.com/Playbook\022\031\n\014display_nam" + + "e\030\003 \001(\tB\003\340A\003\"a\n\016FlowTransition\0224\n\004flow\030\001" + + " \001(\tB&\340A\002\372A \n\036dialogflow.googleapis.com/" + + "Flow\022\031\n\014display_name\030\003 \001(\tB\003\340A\003*\253\001\n\013Outp" + + "utState\022\034\n\030OUTPUT_STATE_UNSPECIFIED\020\000\022\023\n" + + "\017OUTPUT_STATE_OK\020\001\022\032\n\026OUTPUT_STATE_CANCE" + + "LLED\020\002\022\027\n\023OUTPUT_STATE_FAILED\020\003\022\032\n\026OUTPU" + + "T_STATE_ESCALATED\020\004\022\030\n\024OUTPUT_STATE_PEND" + + "ING\020\005B\255\001\n!com.google.cloud.dialogflow.cx" + + ".v3B\nTraceProtoP\001Z1cloud.google.com/go/d" + + "ialogflow/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Goog" + + "le.Cloud.Dialogflow.Cx.V3\352\002!Google::Clou" + + "d::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -170,9 +193,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor, + new java.lang.String[] { + "PlaybookTraceMetadata", + "FlowTraceMetadata", + "SpeechProcessingMetadata", + "Actions", + "StartTime", + "CompleteTime", + "InputParameters", + "OutputParameters", + "EndState", + "TraceMetadata", + }); + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor, + new java.lang.String[] { + "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor, + new java.lang.String[] { + "Playbook", "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor, + new java.lang.String[] { + "Flow", "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_descriptor = + getDescriptor().getMessageType(4); internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_descriptor, @@ -180,7 +245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrecedingConversationSummary", }); internal_static_google_cloud_dialogflow_cx_v3_PlaybookOutput_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(5); internal_static_google_cloud_dialogflow_cx_v3_PlaybookOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PlaybookOutput_descriptor, @@ -188,7 +253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionSummary", }); internal_static_google_cloud_dialogflow_cx_v3_Action_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(6); internal_static_google_cloud_dialogflow_cx_v3_Action_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_Action_descriptor, @@ -203,7 +268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Action", }); internal_static_google_cloud_dialogflow_cx_v3_UserUtterance_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(7); internal_static_google_cloud_dialogflow_cx_v3_UserUtterance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_UserUtterance_descriptor, @@ -211,7 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", }); internal_static_google_cloud_dialogflow_cx_v3_AgentUtterance_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(8); internal_static_google_cloud_dialogflow_cx_v3_AgentUtterance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_AgentUtterance_descriptor, @@ -219,7 +284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", }); internal_static_google_cloud_dialogflow_cx_v3_ToolUse_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(9); internal_static_google_cloud_dialogflow_cx_v3_ToolUse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_ToolUse_descriptor, @@ -227,7 +292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tool", "DisplayName", "Action", "InputActionParameters", "OutputActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3_PlaybookInvocation_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(10); internal_static_google_cloud_dialogflow_cx_v3_PlaybookInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PlaybookInvocation_descriptor, @@ -235,7 +300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Playbook", "DisplayName", "PlaybookInput", "PlaybookOutput", "PlaybookState", }); internal_static_google_cloud_dialogflow_cx_v3_FlowInvocation_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(11); internal_static_google_cloud_dialogflow_cx_v3_FlowInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_FlowInvocation_descriptor, @@ -243,7 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Flow", "DisplayName", "FlowState", }); internal_static_google_cloud_dialogflow_cx_v3_PlaybookTransition_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(12); internal_static_google_cloud_dialogflow_cx_v3_PlaybookTransition_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PlaybookTransition_descriptor, @@ -251,7 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Playbook", "DisplayName", }); internal_static_google_cloud_dialogflow_cx_v3_FlowTransition_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(13); internal_static_google_cloud_dialogflow_cx_v3_FlowTransition_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_FlowTransition_descriptor, @@ -262,6 +327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto index 3fa8505106cb..38e3d9fb8332 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto @@ -281,6 +281,9 @@ message Intent { // Human readable description for better understanding an intent like its // scope, content, result etc. Maximum character limit: 140 characters. string description = 8; + + // Optional. Matching DTMF pattern for the intent. + string dtmf_pattern = 16 [(google.api.field_behavior) = OPTIONAL]; } // The request message for diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto index 37dbb8ab3538..bf7a6f42f352 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto @@ -30,6 +30,7 @@ import "google/cloud/dialogflow/cx/v3/page.proto"; import "google/cloud/dialogflow/cx/v3/response_message.proto"; import "google/cloud/dialogflow/cx/v3/session_entity_type.proto"; import "google/cloud/dialogflow/cx/v3/tool_call.proto"; +import "google/cloud/dialogflow/cx/v3/trace.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; @@ -1134,6 +1135,13 @@ message QueryResult { // Filled only when data stores are involved in serving the query. DataStoreConnectionSignals data_store_connection_signals = 35 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Contains the sequence of trace blocks from the current + // conversation turn. Trace blocks are ordered chronologically and contain + // detailed traces of runtime behavior such as tool calls, LLM calls, flow and + // playbook invocations, agent utterances and user utterances. + repeated TraceBlock trace_blocks = 37 + [(google.api.field_behavior) = OPTIONAL]; } // Represents the natural language text to be processed. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/trace.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/trace.proto index 797f9b2e85a9..c9473dcc749b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/trace.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/trace.proto @@ -19,6 +19,7 @@ package google.cloud.dialogflow.cx.v3; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; @@ -28,6 +29,83 @@ option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; +// The trace block tracks a sequence of actions taken by the agent in a flow or +// a playbook. +message TraceBlock { + // Metadata of the trace. + oneof trace_metadata { + // Metadata of the playbook trace. + PlaybookTraceMetadata playbook_trace_metadata = 1; + + // Metadata of the flow trace. + FlowTraceMetadata flow_trace_metadata = 2; + + // Metadata of the speech-to-text and speech-to-text processing. + SpeechProcessingMetadata speech_processing_metadata = 8; + } + + // The actions performed by the agent and the user during this session. + repeated Action actions = 3; + + // Output only. Timestamp of the start of the trace block. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp of the end of the trace block. + google.protobuf.Timestamp complete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A list of input parameters of the trace block. + google.protobuf.Struct input_parameters = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of output parameters of the trace block. + google.protobuf.Struct output_parameters = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. The end state of the trace block. + OutputState end_state = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Metadata of the speech-to-text and text-to-speech processing. +message SpeechProcessingMetadata { + // Output only. The display name of the speech processing. + string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata of the playbook trace. +message PlaybookTraceMetadata { + // Required. The unique identifier of the playbook. + // Format: + // `projects//locations//agents//playbooks/`. + string playbook = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Playbook" + } + ]; + + // Output only. The display name of the playbook. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata of the flow trace. +message FlowTraceMetadata { + // Required. The unique identifier of the flow. + // Format: + // `projects//locations//agents//flows/`. + string flow = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } + ]; + + // Output only. The display name of the flow. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Input of the playbook. message PlaybookInput { // Optional. Summary string of the preceding conversation for the child diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index ba31c5e1ee17..0013ded924fa 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.93.0 + 4.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.93.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.94.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index 437523e592b2..1865fe2a86f3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -256,7 +256,10 @@ * * *

                                            ListLocations - *

                                            Lists information about the supported locations for this service. + *

                                            Lists information about the supported locations for this service. + *

                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                            *
                                              @@ -1808,6 +1811,19 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req /** * Lists information about the supported locations for this service. * + *

                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                              Sample code: * *

                                              {@code
                                              @@ -1841,6 +1857,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                 /**
                                                  * Lists information about the supported locations for this service.
                                                  *
                                              +   * 

                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                              Sample code: * *

                                              {@code
                                              @@ -1874,6 +1903,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                 /**
                                                  * Lists information about the supported locations for this service.
                                                  *
                                              +   * 

                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                              Sample code: * *

                                              {@code
                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java
                                              index 39f66ebef174..529cb3afe1a4 100644
                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java
                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java
                                              @@ -109,7 +109,10 @@
                                                *    
                                                *    
                                                *      

                                              ListLocations - *

                                              Lists information about the supported locations for this service. + *

                                              Lists information about the supported locations for this service. + *

                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                              *
                                                @@ -537,6 +540,19 @@ public final UnaryCallable updateAnswer /** * Lists information about the supported locations for this service. * + *

                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                Sample code: * *

                                                {@code
                                                @@ -570,6 +586,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                   /**
                                                    * Lists information about the supported locations for this service.
                                                    *
                                                +   * 

                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                Sample code: * *

                                                {@code
                                                @@ -604,6 +633,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                   /**
                                                    * Lists information about the supported locations for this service.
                                                    *
                                                +   * 

                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                Sample code: * *

                                                {@code
                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java
                                                index d271b0fd7087..0c3b0c5b53f4 100644
                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java
                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java
                                                @@ -185,7 +185,10 @@
                                                  *    
                                                  *    
                                                  *      

                                                ListLocations - *

                                                Lists information about the supported locations for this service. + *

                                                Lists information about the supported locations for this service. + *

                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                *
                                                  @@ -1074,6 +1077,19 @@ public final UnaryCallable deleteAllContextsCal /** * Lists information about the supported locations for this service. * + *

                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                  Sample code: * *

                                                  {@code
                                                  @@ -1107,6 +1123,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                     /**
                                                      * Lists information about the supported locations for this service.
                                                      *
                                                  +   * 

                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                  Sample code: * *

                                                  {@code
                                                  @@ -1140,6 +1169,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                     /**
                                                      * Lists information about the supported locations for this service.
                                                      *
                                                  +   * 

                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                  Sample code: * *

                                                  {@code
                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java
                                                  index a2583bed75e2..334c3ed866c7 100644
                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java
                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java
                                                  @@ -178,7 +178,10 @@
                                                    *    
                                                    *    
                                                    *      

                                                  ListLocations - *

                                                  Lists information about the supported locations for this service. + *

                                                  Lists information about the supported locations for this service. + *

                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                  *
                                                    @@ -1160,6 +1163,19 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( /** * Lists information about the supported locations for this service. * + *

                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                    Sample code: * *

                                                    {@code
                                                    @@ -1194,6 +1210,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                       /**
                                                        * Lists information about the supported locations for this service.
                                                        *
                                                    +   * 

                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                    Sample code: * *

                                                    {@code
                                                    @@ -1229,6 +1258,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                       /**
                                                        * Lists information about the supported locations for this service.
                                                        *
                                                    +   * 

                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                    Sample code: * *

                                                    {@code
                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java
                                                    index 83a37790831a..3cce465d6dfe 100644
                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java
                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java
                                                    @@ -244,7 +244,10 @@
                                                      *    
                                                      *    
                                                      *      

                                                    ListLocations - *

                                                    Lists information about the supported locations for this service. + *

                                                    Lists information about the supported locations for this service. + *

                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                    *
                                                      @@ -1586,6 +1589,19 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel /** * Lists information about the supported locations for this service. * + *

                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                      Sample code: * *

                                                      {@code
                                                      @@ -1619,6 +1635,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                         /**
                                                          * Lists information about the supported locations for this service.
                                                          *
                                                      +   * 

                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                      Sample code: * *

                                                      {@code
                                                      @@ -1653,6 +1682,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                         /**
                                                          * Lists information about the supported locations for this service.
                                                          *
                                                      +   * 

                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                      Sample code: * *

                                                      {@code
                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java
                                                      index 786efeb69f81..1b004e718765 100644
                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java
                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java
                                                      @@ -223,7 +223,10 @@
                                                        *    
                                                        *    
                                                        *      

                                                      ListLocations - *

                                                      Lists information about the supported locations for this service. + *

                                                      Lists information about the supported locations for this service. + *

                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                      *
                                                        @@ -1660,6 +1663,19 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req /** * Lists information about the supported locations for this service. * + *

                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                        Sample code: * *

                                                        {@code
                                                        @@ -1694,6 +1710,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                           /**
                                                            * Lists information about the supported locations for this service.
                                                            *
                                                        +   * 

                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                        Sample code: * *

                                                        {@code
                                                        @@ -1729,6 +1758,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                           /**
                                                            * Lists information about the supported locations for this service.
                                                            *
                                                        +   * 

                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                        Sample code: * *

                                                        {@code
                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java
                                                        index 119a4418d059..4e9f777a93c3 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java
                                                        @@ -272,7 +272,10 @@
                                                          *    
                                                          *    
                                                          *      

                                                        ListLocations - *

                                                        Lists information about the supported locations for this service. + *

                                                        Lists information about the supported locations for this service. + *

                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                        *
                                                          @@ -1950,6 +1953,19 @@ public final GenerateSuggestionsResponse generateSuggestions(GenerateSuggestions /** * Lists information about the supported locations for this service. * + *

                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                          Sample code: * *

                                                          {@code
                                                          @@ -1983,6 +1999,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                             /**
                                                              * Lists information about the supported locations for this service.
                                                              *
                                                          +   * 

                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                          Sample code: * *

                                                          {@code
                                                          @@ -2017,6 +2046,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                             /**
                                                              * Lists information about the supported locations for this service.
                                                              *
                                                          +   * 

                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                          Sample code: * *

                                                          {@code
                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java
                                                          index 3ad3c3a03821..e82c366ed258 100644
                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java
                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java
                                                          @@ -238,7 +238,10 @@
                                                            *    
                                                            *    
                                                            *      

                                                          ListLocations - *

                                                          Lists information about the supported locations for this service. + *

                                                          Lists information about the supported locations for this service. + *

                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                          *
                                                            @@ -1748,6 +1751,19 @@ public final UnaryCallable exportDocumentCalla /** * Lists information about the supported locations for this service. * + *

                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                            Sample code: * *

                                                            {@code
                                                            @@ -1781,6 +1797,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                               /**
                                                                * Lists information about the supported locations for this service.
                                                                *
                                                            +   * 

                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                            Sample code: * *

                                                            {@code
                                                            @@ -1814,6 +1843,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                               /**
                                                                * Lists information about the supported locations for this service.
                                                                *
                                                            +   * 

                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                            Sample code: * *

                                                            {@code
                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java
                                                            index a31cccf255df..076cadadc67f 100644
                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java
                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java
                                                            @@ -112,7 +112,10 @@
                                                              *    
                                                              *    
                                                              *      

                                                            ListLocations - *

                                                            Lists information about the supported locations for this service. + *

                                                            Lists information about the supported locations for this service. + *

                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                            *
                                                              @@ -532,6 +535,19 @@ public final UnaryCallable getEncrypti /** * Lists information about the supported locations for this service. * + *

                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                              Sample code: * *

                                                              {@code
                                                              @@ -566,6 +582,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                 /**
                                                                  * Lists information about the supported locations for this service.
                                                                  *
                                                              +   * 

                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                              Sample code: * *

                                                              {@code
                                                              @@ -601,6 +630,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                 /**
                                                                  * Lists information about the supported locations for this service.
                                                                  *
                                                              +   * 

                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                              Sample code: * *

                                                              {@code
                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
                                                              index dd2244dec335..ac34fe16dc17 100644
                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
                                                              @@ -295,7 +295,10 @@
                                                                *    
                                                                *    
                                                                *      

                                                              ListLocations - *

                                                              Lists information about the supported locations for this service. + *

                                                              Lists information about the supported locations for this service. + *

                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                              *
                                                                @@ -2706,6 +2709,19 @@ public final UnaryCallable batchDeleteEnt /** * Lists information about the supported locations for this service. * + *

                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                Sample code: * *

                                                                {@code
                                                                @@ -2739,6 +2755,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                   /**
                                                                    * Lists information about the supported locations for this service.
                                                                    *
                                                                +   * 

                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                Sample code: * *

                                                                {@code
                                                                @@ -2773,6 +2802,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                   /**
                                                                    * Lists information about the supported locations for this service.
                                                                    *
                                                                +   * 

                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                Sample code: * *

                                                                {@code
                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java
                                                                index b151d1669ec3..b2ff195f4a8a 100644
                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java
                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java
                                                                @@ -164,7 +164,10 @@
                                                                  *    
                                                                  *    
                                                                  *      

                                                                ListLocations - *

                                                                Lists information about the supported locations for this service. + *

                                                                Lists information about the supported locations for this service. + *

                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                *
                                                                  @@ -830,6 +833,19 @@ public final GetEnvironmentHistoryPagedResponse getEnvironmentHistory( /** * Lists information about the supported locations for this service. * + *

                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                  Sample code: * *

                                                                  {@code
                                                                  @@ -863,6 +879,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                     /**
                                                                      * Lists information about the supported locations for this service.
                                                                      *
                                                                  +   * 

                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                  Sample code: * *

                                                                  {@code
                                                                  @@ -897,6 +926,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                     /**
                                                                      * Lists information about the supported locations for this service.
                                                                      *
                                                                  +   * 

                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                  Sample code: * *

                                                                  {@code
                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java
                                                                  index 18f0f9eb74d6..2fea4c43a379 100644
                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java
                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java
                                                                  @@ -105,7 +105,10 @@
                                                                    *    
                                                                    *    
                                                                    *      

                                                                  ListLocations - *

                                                                  Lists information about the supported locations for this service. + *

                                                                  Lists information about the supported locations for this service. + *

                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                  *
                                                                    @@ -441,6 +444,19 @@ public final UnaryCallable updateFulfillm /** * Lists information about the supported locations for this service. * + *

                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                    Sample code: * *

                                                                    {@code
                                                                    @@ -474,6 +490,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                       /**
                                                                        * Lists information about the supported locations for this service.
                                                                        *
                                                                    +   * 

                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                    Sample code: * *

                                                                    {@code
                                                                    @@ -508,6 +537,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                       /**
                                                                        * Lists information about the supported locations for this service.
                                                                        *
                                                                    +   * 

                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                    Sample code: * *

                                                                    {@code
                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java
                                                                    index 8eecfa0549dd..baa94027c703 100644
                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java
                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java
                                                                    @@ -154,7 +154,10 @@
                                                                      *    
                                                                      *    
                                                                      *      

                                                                    ListLocations - *

                                                                    Lists information about the supported locations for this service. + *

                                                                    Lists information about the supported locations for this service. + *

                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                    *
                                                                      @@ -933,6 +936,19 @@ public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest req /** * Lists information about the supported locations for this service. * + *

                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                      Sample code: * *

                                                                      {@code
                                                                      @@ -967,6 +983,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                         /**
                                                                          * Lists information about the supported locations for this service.
                                                                          *
                                                                      +   * 

                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                      Sample code: * *

                                                                      {@code
                                                                      @@ -1002,6 +1031,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                         /**
                                                                          * Lists information about the supported locations for this service.
                                                                          *
                                                                      +   * 

                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                      Sample code: * *

                                                                      {@code
                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java
                                                                      index 35ffdd1cc08b..1006649c04aa 100644
                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java
                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java
                                                                      @@ -169,7 +169,10 @@
                                                                        *    
                                                                        *    
                                                                        *      

                                                                      ListLocations - *

                                                                      Lists information about the supported locations for this service. + *

                                                                      Lists information about the supported locations for this service. + *

                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                      *
                                                                        @@ -923,6 +926,19 @@ public final UnaryCallable updateGeneratorCal /** * Lists information about the supported locations for this service. * + *

                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                        Sample code: * *

                                                                        {@code
                                                                        @@ -956,6 +972,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                           /**
                                                                            * Lists information about the supported locations for this service.
                                                                            *
                                                                        +   * 

                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                        Sample code: * *

                                                                        {@code
                                                                        @@ -990,6 +1019,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                           /**
                                                                            * Lists information about the supported locations for this service.
                                                                            *
                                                                        +   * 

                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                        Sample code: * *

                                                                        {@code
                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java
                                                                        index 0d1d6c959b05..91469ac7b216 100644
                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java
                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java
                                                                        @@ -228,7 +228,10 @@
                                                                          *    
                                                                          *    
                                                                          *      

                                                                        ListLocations - *

                                                                        Lists information about the supported locations for this service. + *

                                                                        Lists information about the supported locations for this service. + *

                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                        *
                                                                          @@ -1854,6 +1857,19 @@ public final UnaryCallable batchDeleteInte /** * Lists information about the supported locations for this service. * + *

                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                          Sample code: * *

                                                                          {@code
                                                                          @@ -1887,6 +1903,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                             /**
                                                                              * Lists information about the supported locations for this service.
                                                                              *
                                                                          +   * 

                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                          Sample code: * *

                                                                          {@code
                                                                          @@ -1920,6 +1949,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                             /**
                                                                              * Lists information about the supported locations for this service.
                                                                              *
                                                                          +   * 

                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                          Sample code: * *

                                                                          {@code
                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java
                                                                          index 9384a69ddb8d..dcad96966805 100644
                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java
                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java
                                                                          @@ -168,7 +168,10 @@
                                                                            *    
                                                                            *    
                                                                            *      

                                                                          ListLocations - *

                                                                          Lists information about the supported locations for this service. + *

                                                                          Lists information about the supported locations for this service. + *

                                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                          *
                                                                            @@ -997,6 +1000,19 @@ public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest reques /** * Lists information about the supported locations for this service. * + *

                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                            Sample code: * *

                                                                            {@code
                                                                            @@ -1030,6 +1046,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                               /**
                                                                                * Lists information about the supported locations for this service.
                                                                                *
                                                                            +   * 

                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                            Sample code: * *

                                                                            {@code
                                                                            @@ -1064,6 +1093,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                               /**
                                                                                * Lists information about the supported locations for this service.
                                                                                *
                                                                            +   * 

                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                            Sample code: * *

                                                                            {@code
                                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java
                                                                            index c808a90a795e..1c4f2e224e28 100644
                                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java
                                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java
                                                                            @@ -254,7 +254,10 @@
                                                                              *    
                                                                              *    
                                                                              *      

                                                                            ListLocations - *

                                                                            Lists information about the supported locations for this service. + *

                                                                            Lists information about the supported locations for this service. + *

                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                            *
                                                                              @@ -1269,6 +1272,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request * .setCxParameters(Struct.newBuilder().build()) * .setEnableExtendedStreaming(true) * .setEnablePartialAutomatedAgentReply(true) + * .setOutputMultipleUtterances(true) * .setEnableDebuggingInfo(true) * .build(); * bidiStream.send(request); @@ -1783,6 +1787,19 @@ public final SuggestKnowledgeAssistResponse suggestKnowledgeAssist( /** * Lists information about the supported locations for this service. * + *

                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                              Sample code: * *

                                                                              {@code
                                                                              @@ -1816,6 +1833,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                 /**
                                                                                  * Lists information about the supported locations for this service.
                                                                                  *
                                                                              +   * 

                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                              Sample code: * *

                                                                              {@code
                                                                              @@ -1850,6 +1880,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                 /**
                                                                                  * Lists information about the supported locations for this service.
                                                                                  *
                                                                              +   * 

                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                              Sample code: * *

                                                                              {@code
                                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java
                                                                              index 323de706dda9..1d242260d5f5 100644
                                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java
                                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java
                                                                              @@ -175,7 +175,10 @@
                                                                                *    
                                                                                *    
                                                                                *      

                                                                              ListLocations - *

                                                                              Lists information about the supported locations for this service. + *

                                                                              Lists information about the supported locations for this service. + *

                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                              *
                                                                                @@ -1086,6 +1089,19 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request /** * Lists information about the supported locations for this service. * + *

                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                Sample code: * *

                                                                                {@code
                                                                                @@ -1119,6 +1135,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                   /**
                                                                                    * Lists information about the supported locations for this service.
                                                                                    *
                                                                                +   * 

                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                Sample code: * *

                                                                                {@code
                                                                                @@ -1153,6 +1182,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                   /**
                                                                                    * Lists information about the supported locations for this service.
                                                                                    *
                                                                                +   * 

                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                Sample code: * *

                                                                                {@code
                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java
                                                                                index 750a8a23d545..f959485f41c0 100644
                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java
                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java
                                                                                @@ -105,7 +105,10 @@
                                                                                  *    
                                                                                  *    
                                                                                  *      

                                                                                ListLocations - *

                                                                                Lists information about the supported locations for this service. + *

                                                                                Lists information about the supported locations for this service. + *

                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                *
                                                                                  @@ -490,6 +493,19 @@ public final UnaryCallable detectInte /** * Lists information about the supported locations for this service. * + *

                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                  Sample code: * *

                                                                                  {@code
                                                                                  @@ -523,6 +539,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                     /**
                                                                                      * Lists information about the supported locations for this service.
                                                                                      *
                                                                                  +   * 

                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                  Sample code: * *

                                                                                  {@code
                                                                                  @@ -556,6 +585,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                     /**
                                                                                      * Lists information about the supported locations for this service.
                                                                                      *
                                                                                  +   * 

                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                  Sample code: * *

                                                                                  {@code
                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java
                                                                                  index 5f24d6a8a58a..655e68435be5 100644
                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java
                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java
                                                                                  @@ -165,7 +165,10 @@
                                                                                    *    
                                                                                    *    
                                                                                    *      

                                                                                  ListLocations - *

                                                                                  Lists information about the supported locations for this service. + *

                                                                                  Lists information about the supported locations for this service. + *

                                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                  *
                                                                                    @@ -888,6 +891,19 @@ public final UnaryCallable updateSipTrunkCallab /** * Lists information about the supported locations for this service. * + *

                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                    Sample code: * *

                                                                                    {@code
                                                                                    @@ -921,6 +937,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                       /**
                                                                                        * Lists information about the supported locations for this service.
                                                                                        *
                                                                                    +   * 

                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                    Sample code: * *

                                                                                    {@code
                                                                                    @@ -954,6 +983,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                       /**
                                                                                        * Lists information about the supported locations for this service.
                                                                                        *
                                                                                    +   * 

                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                    Sample code: * *

                                                                                    {@code
                                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java
                                                                                    index 6c9cae7ff2b1..16d8192d8710 100644
                                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java
                                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java
                                                                                    @@ -167,7 +167,10 @@
                                                                                      *    
                                                                                      *    
                                                                                      *      

                                                                                    ListLocations - *

                                                                                    Lists information about the supported locations for this service. + *

                                                                                    Lists information about the supported locations for this service. + *

                                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                    *
                                                                                      @@ -905,6 +908,19 @@ public final UnaryCallable updateToolCallable() { /** * Lists information about the supported locations for this service. * + *

                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                      Sample code: * *

                                                                                      {@code
                                                                                      @@ -938,6 +954,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                         /**
                                                                                          * Lists information about the supported locations for this service.
                                                                                          *
                                                                                      +   * 

                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                      Sample code: * *

                                                                                      {@code
                                                                                      @@ -971,6 +1000,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                         /**
                                                                                          * Lists information about the supported locations for this service.
                                                                                          *
                                                                                      +   * 

                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                      Sample code: * *

                                                                                      {@code
                                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java
                                                                                      index 634193d2cd67..eac319a2bee0 100644
                                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java
                                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java
                                                                                      @@ -166,7 +166,10 @@
                                                                                        *    
                                                                                        *    
                                                                                        *      

                                                                                      ListLocations - *

                                                                                      Lists information about the supported locations for this service. + *

                                                                                      Lists information about the supported locations for this service. + *

                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      *
                                                                                        @@ -920,6 +923,19 @@ public final UnaryCallable deleteVersionCallable() /** * Lists information about the supported locations for this service. * + *

                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                        Sample code: * *

                                                                                        {@code
                                                                                        @@ -953,6 +969,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                           /**
                                                                                            * Lists information about the supported locations for this service.
                                                                                            *
                                                                                        +   * 

                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                        Sample code: * *

                                                                                        {@code
                                                                                        @@ -986,6 +1015,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                           /**
                                                                                            * Lists information about the supported locations for this service.
                                                                                            *
                                                                                        +   * 

                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                        Sample code: * *

                                                                                        {@code
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java
                                                                                        index 11f84fe8ec79..6e7f1ec41776 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java
                                                                                        @@ -499,6 +499,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java
                                                                                        index f46b346ad45c..e4bfcc0208e2 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java
                                                                                        @@ -388,6 +388,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java
                                                                                        index 6b35d73837f9..633f0e73be37 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java
                                                                                        @@ -408,6 +408,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java
                                                                                        index a24793d8c869..be6c017d0ced 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java
                                                                                        @@ -518,6 +518,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java
                                                                                        index 5ff7f3218cbb..78c2ecba5550 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java
                                                                                        @@ -671,6 +671,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java
                                                                                        index 2e1ae88d29a6..6729a9a774b0 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java
                                                                                        @@ -526,6 +526,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java
                                                                                        index e8be9260a76d..2aa9e1c51424 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java
                                                                                        @@ -541,6 +541,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java
                                                                                        index c5203d085ef5..670a8bd75858 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java
                                                                                        @@ -512,6 +512,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java
                                                                                        index 15fada7873cc..9c2ebfe29985 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java
                                                                                        @@ -376,6 +376,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java
                                                                                        index 6782448113c0..6a3393c0c7fe 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java
                                                                                        @@ -539,6 +539,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java
                                                                                        index 1d0c86a6e111..8dacba277ec1 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java
                                                                                        @@ -484,6 +484,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java
                                                                                        index 556b59ab6e17..e8cfcbb75299 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java
                                                                                        @@ -322,6 +322,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java
                                                                                        index c1ee36218207..f5d1411557d2 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java
                                                                                        @@ -477,6 +477,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java
                                                                                        index 9fce8a102bf6..4d15183cf2cf 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java
                                                                                        @@ -404,6 +404,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java
                                                                                        index 137d33b5ff99..3c99c9a9dbc9 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java
                                                                                        @@ -239,6 +239,7 @@ protected GrpcAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings setAgentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -259,6 +260,7 @@ protected GrpcAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings searchAgentsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -269,6 +271,7 @@ protected GrpcAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings trainAgentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -279,6 +282,7 @@ protected GrpcAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings exportAgentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -289,6 +293,7 @@ protected GrpcAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings importAgentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -299,6 +304,7 @@ protected GrpcAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings restoreAgentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -309,6 +315,7 @@ protected GrpcAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 getValidationResultTransportSettings =
                                                                                        @@ -320,6 +327,7 @@ protected GrpcAgentsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java
                                                                                        index 30867a5aa72a..dc9f0f82bc1b 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java
                                                                                        @@ -155,6 +155,7 @@ protected GrpcAnswerRecordsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings updateAnswerRecordTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java
                                                                                        index 6566a6cba27f..d9f26ea4c0b1 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java
                                                                                        @@ -198,6 +198,7 @@ protected GrpcContextsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings getContextTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -208,6 +209,7 @@ protected GrpcContextsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings createContextTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -218,6 +220,7 @@ protected GrpcContextsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateContextTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -238,6 +241,7 @@ protected GrpcContextsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings deleteAllContextsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -248,6 +252,7 @@ protected GrpcContextsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationDatasetsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationDatasetsStub.java
                                                                                        index f5a90ad46e3e..d2775a898815 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationDatasetsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationDatasetsStub.java
                                                                                        @@ -240,6 +240,7 @@ protected GrpcConversationDatasetsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 listConversationDatasetsTransportSettings =
                                                                                        @@ -252,6 +253,7 @@ protected GrpcConversationDatasetsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 deleteConversationDatasetTransportSettings =
                                                                                        @@ -263,6 +265,7 @@ protected GrpcConversationDatasetsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 importConversationDataTransportSettings =
                                                                                        @@ -274,6 +277,7 @@ protected GrpcConversationDatasetsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationModelsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationModelsStub.java
                                                                                        index 16d26f41cda6..5f5194406fe9 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationModelsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationModelsStub.java
                                                                                        @@ -404,6 +404,7 @@ protected GrpcConversationModelsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java
                                                                                        index 6c7d285336a2..03713f7b7dab 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java
                                                                                        @@ -257,6 +257,7 @@ protected GrpcConversationProfilesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 getConversationProfileTransportSettings =
                                                                                        @@ -268,6 +269,7 @@ protected GrpcConversationProfilesStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 createConversationProfileTransportSettings =
                                                                                        @@ -279,6 +281,7 @@ protected GrpcConversationProfilesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 updateConversationProfileTransportSettings =
                                                                                        @@ -303,6 +306,7 @@ protected GrpcConversationProfilesStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 setSuggestionFeatureConfigTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java
                                                                                        index c878639edf3a..aec9c4a6d013 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java
                                                                                        @@ -306,6 +306,7 @@ protected GrpcConversationsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 listConversationsTransportSettings =
                                                                                        @@ -317,6 +318,7 @@ protected GrpcConversationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings getConversationTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -327,6 +329,7 @@ protected GrpcConversationsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 completeConversationTransportSettings =
                                                                                        @@ -338,6 +341,7 @@ protected GrpcConversationsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 ingestContextReferencesTransportSettings =
                                                                                        @@ -350,6 +354,7 @@ protected GrpcConversationsStub(
                                                                                                               builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                         .build();
                                                                                             GrpcCallSettings listMessagesTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -360,6 +365,7 @@ protected GrpcConversationsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 suggestConversationSummaryTransportSettings =
                                                                                        @@ -372,6 +378,7 @@ protected GrpcConversationsStub(
                                                                                                               builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 generateStatelessSummaryTransportSettings =
                                                                                        @@ -386,6 +393,7 @@ protected GrpcConversationsStub(
                                                                                                                   String.valueOf(request.getStatelessConversation().getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getLatestMessage())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 generateStatelessSuggestionTransportSettings =
                                                                                        @@ -399,6 +407,7 @@ protected GrpcConversationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 searchKnowledgeTransportSettings =
                                                                                        @@ -411,6 +420,7 @@ protected GrpcConversationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getConversationProfile())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 generateSuggestionsTransportSettings =
                                                                                        @@ -422,6 +432,7 @@ protected GrpcConversationsStub(
                                                                                                               builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java
                                                                                        index 80cd394c9225..cbdd594cbb9e 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java
                                                                                        @@ -246,6 +246,7 @@ protected GrpcDocumentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings getDocumentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -256,6 +257,7 @@ protected GrpcDocumentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings createDocumentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -266,6 +268,7 @@ protected GrpcDocumentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings importDocumentsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -276,6 +279,7 @@ protected GrpcDocumentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings deleteDocumentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -286,6 +290,7 @@ protected GrpcDocumentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateDocumentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -306,6 +311,7 @@ protected GrpcDocumentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings exportDocumentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -316,6 +322,7 @@ protected GrpcDocumentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEncryptionSpecServiceStub.java
                                                                                        index 55e38c50d9c4..e94213585506 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEncryptionSpecServiceStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEncryptionSpecServiceStub.java
                                                                                        @@ -162,6 +162,7 @@ protected GrpcEncryptionSpecServiceStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 initializeEncryptionSpecTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java
                                                                                        index 29b839787529..296e6af9dfbd 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java
                                                                                        @@ -277,6 +277,7 @@ protected GrpcEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings getEntityTypeTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -287,6 +288,7 @@ protected GrpcEntityTypesStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings createEntityTypeTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -297,6 +299,7 @@ protected GrpcEntityTypesStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateEntityTypeTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -318,6 +321,7 @@ protected GrpcEntityTypesStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 batchUpdateEntityTypesTransportSettings =
                                                                                        @@ -329,6 +333,7 @@ protected GrpcEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 batchDeleteEntityTypesTransportSettings =
                                                                                        @@ -340,6 +345,7 @@ protected GrpcEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings batchCreateEntitiesTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -350,6 +356,7 @@ protected GrpcEntityTypesStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings batchUpdateEntitiesTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -360,6 +367,7 @@ protected GrpcEntityTypesStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings batchDeleteEntitiesTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -370,6 +378,7 @@ protected GrpcEntityTypesStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java
                                                                                        index a00a9e03fe46..f0758fde81fe 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java
                                                                                        @@ -213,6 +213,7 @@ protected GrpcEnvironmentsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings getEnvironmentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -223,6 +224,7 @@ protected GrpcEnvironmentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings createEnvironmentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -233,6 +235,7 @@ protected GrpcEnvironmentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateEnvironmentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -254,6 +257,7 @@ protected GrpcEnvironmentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 getEnvironmentHistoryTransportSettings =
                                                                                        @@ -265,6 +269,7 @@ protected GrpcEnvironmentsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java
                                                                                        index 018f8387623f..b05c1c4b0034 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java
                                                                                        @@ -148,6 +148,7 @@ protected GrpcFulfillmentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateFulfillmentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorEvaluationsStub.java
                                                                                        index b7083595a76b..aeb2272c422b 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorEvaluationsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorEvaluationsStub.java
                                                                                        @@ -203,6 +203,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 getGeneratorEvaluationTransportSettings =
                                                                                        @@ -214,6 +215,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 listGeneratorEvaluationsTransportSettings =
                                                                                        @@ -226,6 +228,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 deleteGeneratorEvaluationTransportSettings =
                                                                                        @@ -237,6 +240,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorsStub.java
                                                                                        index ad3d92954486..883e83935e94 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorsStub.java
                                                                                        @@ -192,6 +192,7 @@ protected GrpcGeneratorsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings getGeneratorTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -202,6 +203,7 @@ protected GrpcGeneratorsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 listGeneratorsTransportSettings =
                                                                                        @@ -213,6 +215,7 @@ protected GrpcGeneratorsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings deleteGeneratorTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -223,6 +226,7 @@ protected GrpcGeneratorsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateGeneratorTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java
                                                                                        index 7f57f633ce42..05ad013b7052 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java
                                                                                        @@ -215,6 +215,7 @@ protected GrpcIntentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings getIntentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -225,6 +226,7 @@ protected GrpcIntentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings createIntentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -235,6 +237,7 @@ protected GrpcIntentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateIntentTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -255,6 +258,7 @@ protected GrpcIntentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings batchUpdateIntentsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -265,6 +269,7 @@ protected GrpcIntentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings batchDeleteIntentsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -275,6 +280,7 @@ protected GrpcIntentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java
                                                                                        index 781c0e105a2d..128a668eab46 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java
                                                                                        @@ -199,6 +199,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings getKnowledgeBaseTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -209,6 +210,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 createKnowledgeBaseTransportSettings =
                                                                                        @@ -220,6 +222,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings deleteKnowledgeBaseTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -230,6 +233,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 updateKnowledgeBaseTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java
                                                                                        index 1d5e4058e028..13d899dd3509 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java
                                                                                        @@ -281,6 +281,7 @@ protected GrpcParticipantsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings getParticipantTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -291,6 +292,7 @@ protected GrpcParticipantsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 listParticipantsTransportSettings =
                                                                                        @@ -302,6 +304,7 @@ protected GrpcParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings updateParticipantTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -324,12 +327,14 @@ protected GrpcParticipantsStub(
                                                                                                               builder.add("participant", String.valueOf(request.getParticipant()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 streamingAnalyzeContentTransportSettings =
                                                                                                     GrpcCallSettings
                                                                                                         .newBuilder()
                                                                                                         .setMethodDescriptor(streamingAnalyzeContentMethodDescriptor)
                                                                                        +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 suggestArticlesTransportSettings =
                                                                                        @@ -341,6 +346,7 @@ protected GrpcParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 suggestFaqAnswersTransportSettings =
                                                                                        @@ -352,6 +358,7 @@ protected GrpcParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 suggestSmartRepliesTransportSettings =
                                                                                        @@ -363,6 +370,7 @@ protected GrpcParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 suggestKnowledgeAssistTransportSettings =
                                                                                        @@ -375,6 +383,7 @@ protected GrpcParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java
                                                                                        index f803e4edeaeb..1ffe2c5e1f82 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java
                                                                                        @@ -209,6 +209,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 getSessionEntityTypeTransportSettings =
                                                                                        @@ -220,6 +221,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 createSessionEntityTypeTransportSettings =
                                                                                        @@ -231,6 +233,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             GrpcCallSettings
                                                                                                 updateSessionEntityTypeTransportSettings =
                                                                                        @@ -255,6 +258,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java
                                                                                        index 0b48483b1aa6..36702573e854 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java
                                                                                        @@ -149,12 +149,14 @@ protected GrpcSessionsStub(
                                                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getSession())
                                                                                                     .build();
                                                                                             GrpcCallSettings
                                                                                                 streamingDetectIntentTransportSettings =
                                                                                                     GrpcCallSettings
                                                                                                         .newBuilder()
                                                                                                         .setMethodDescriptor(streamingDetectIntentMethodDescriptor)
                                                                                        +                .setResourceNameExtractor(request -> request.getSession())
                                                                                                         .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSipTrunksStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSipTrunksStub.java
                                                                                        index 343b65f36936..8e97cd0e9897 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSipTrunksStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSipTrunksStub.java
                                                                                        @@ -190,6 +190,7 @@ protected GrpcSipTrunksStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings deleteSipTrunkTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -200,6 +201,7 @@ protected GrpcSipTrunksStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings listSipTrunksTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -210,6 +212,7 @@ protected GrpcSipTrunksStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings getSipTrunkTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -220,6 +223,7 @@ protected GrpcSipTrunksStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateSipTrunkTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcToolsStub.java
                                                                                        index b1f1749035fb..af05c78c010b 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcToolsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcToolsStub.java
                                                                                        @@ -179,6 +179,7 @@ protected GrpcToolsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings getToolTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -189,6 +190,7 @@ protected GrpcToolsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings listToolsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -199,6 +201,7 @@ protected GrpcToolsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings deleteToolTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -209,6 +212,7 @@ protected GrpcToolsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateToolTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java
                                                                                        index 113c1406962a..4af039edad96 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java
                                                                                        @@ -185,6 +185,7 @@ protected GrpcVersionsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings getVersionTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -195,6 +196,7 @@ protected GrpcVersionsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings createVersionTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -205,6 +207,7 @@ protected GrpcVersionsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             GrpcCallSettings updateVersionTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        @@ -225,6 +228,7 @@ protected GrpcVersionsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             GrpcCallSettings listLocationsTransportSettings =
                                                                                                 GrpcCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAgentsStub.java
                                                                                        index 08040c5fe865..6959b47815ae 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAgentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAgentsStub.java
                                                                                        @@ -599,6 +599,7 @@ protected HttpJsonAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings setAgentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -621,6 +622,7 @@ protected HttpJsonAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings searchAgentsTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -632,6 +634,7 @@ protected HttpJsonAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings trainAgentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -643,6 +646,7 @@ protected HttpJsonAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings exportAgentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -654,6 +658,7 @@ protected HttpJsonAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings importAgentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -665,6 +670,7 @@ protected HttpJsonAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings restoreAgentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -676,6 +682,7 @@ protected HttpJsonAgentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 getValidationResultTransportSettings =
                                                                                        @@ -688,6 +695,7 @@ protected HttpJsonAgentsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAnswerRecordsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAnswerRecordsStub.java
                                                                                        index 2427a91e0675..034cbf6d1bcd 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAnswerRecordsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAnswerRecordsStub.java
                                                                                        @@ -268,6 +268,7 @@ protected HttpJsonAnswerRecordsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 updateAnswerRecordTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonContextsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonContextsStub.java
                                                                                        index f59fbf9145a6..068800c078ba 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonContextsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonContextsStub.java
                                                                                        @@ -432,6 +432,7 @@ protected HttpJsonContextsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings getContextTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -443,6 +444,7 @@ protected HttpJsonContextsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings createContextTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -454,6 +456,7 @@ protected HttpJsonContextsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateContextTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -476,6 +479,7 @@ protected HttpJsonContextsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings deleteAllContextsTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -487,6 +491,7 @@ protected HttpJsonContextsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationDatasetsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationDatasetsStub.java
                                                                                        index 47c08939721f..e8adc8d5e6c7 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationDatasetsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationDatasetsStub.java
                                                                                        @@ -484,6 +484,7 @@ protected HttpJsonConversationDatasetsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listConversationDatasetsTransportSettings =
                                                                                        @@ -497,6 +498,7 @@ protected HttpJsonConversationDatasetsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 deleteConversationDatasetTransportSettings =
                                                                                        @@ -509,6 +511,7 @@ protected HttpJsonConversationDatasetsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 importConversationDataTransportSettings =
                                                                                        @@ -521,6 +524,7 @@ protected HttpJsonConversationDatasetsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationModelsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationModelsStub.java
                                                                                        index 5252806e1b01..0f83b4877603 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationModelsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationModelsStub.java
                                                                                        @@ -765,6 +765,7 @@ protected HttpJsonConversationModelsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationProfilesStub.java
                                                                                        index 53207a7f6dff..a33bf0511c5b 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationProfilesStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationProfilesStub.java
                                                                                        @@ -567,6 +567,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 getConversationProfileTransportSettings =
                                                                                        @@ -579,6 +580,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 createConversationProfileTransportSettings =
                                                                                        @@ -591,6 +593,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 updateConversationProfileTransportSettings =
                                                                                        @@ -617,6 +620,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 setSuggestionFeatureConfigTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationsStub.java
                                                                                        index 2b205b2322bc..42e6b4ea19c8 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationsStub.java
                                                                                        @@ -673,6 +673,7 @@ protected HttpJsonConversationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listConversationsTransportSettings =
                                                                                        @@ -685,6 +686,7 @@ protected HttpJsonConversationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings getConversationTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -696,6 +698,7 @@ protected HttpJsonConversationsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 completeConversationTransportSettings =
                                                                                        @@ -708,6 +711,7 @@ protected HttpJsonConversationsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 ingestContextReferencesTransportSettings =
                                                                                        @@ -721,6 +725,7 @@ protected HttpJsonConversationsStub(
                                                                                                               builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings listMessagesTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -732,6 +737,7 @@ protected HttpJsonConversationsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 suggestConversationSummaryTransportSettings =
                                                                                        @@ -745,6 +751,7 @@ protected HttpJsonConversationsStub(
                                                                                                               builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 generateStatelessSummaryTransportSettings =
                                                                                        @@ -760,6 +767,7 @@ protected HttpJsonConversationsStub(
                                                                                                                   String.valueOf(request.getStatelessConversation().getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getLatestMessage())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 generateStatelessSuggestionTransportSettings =
                                                                                        @@ -774,6 +782,7 @@ protected HttpJsonConversationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 searchKnowledgeTransportSettings =
                                                                                        @@ -787,6 +796,7 @@ protected HttpJsonConversationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getConversationProfile())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 generateSuggestionsTransportSettings =
                                                                                        @@ -800,6 +810,7 @@ protected HttpJsonConversationsStub(
                                                                                                               builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonDocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonDocumentsStub.java
                                                                                        index 824daae72353..14040252e63e 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonDocumentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonDocumentsStub.java
                                                                                        @@ -594,6 +594,7 @@ protected HttpJsonDocumentsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings getDocumentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -605,6 +606,7 @@ protected HttpJsonDocumentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings createDocumentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -616,6 +618,7 @@ protected HttpJsonDocumentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings importDocumentsTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -627,6 +630,7 @@ protected HttpJsonDocumentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings deleteDocumentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -638,6 +642,7 @@ protected HttpJsonDocumentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateDocumentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -660,6 +665,7 @@ protected HttpJsonDocumentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings exportDocumentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -671,6 +677,7 @@ protected HttpJsonDocumentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                        index 29b24041921b..e5776356c12c 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                        @@ -318,6 +318,7 @@ protected HttpJsonEncryptionSpecServiceStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 initializeEncryptionSpecTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEntityTypesStub.java
                                                                                        index a25f9e76c644..1e0eddde0fa9 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEntityTypesStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEntityTypesStub.java
                                                                                        @@ -671,6 +671,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings getEntityTypeTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -682,6 +683,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings createEntityTypeTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -693,6 +695,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateEntityTypeTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -716,6 +719,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 batchUpdateEntityTypesTransportSettings =
                                                                                        @@ -728,6 +732,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 batchDeleteEntityTypesTransportSettings =
                                                                                        @@ -740,6 +745,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 batchCreateEntitiesTransportSettings =
                                                                                        @@ -752,6 +758,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 batchUpdateEntitiesTransportSettings =
                                                                                        @@ -764,6 +771,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 batchDeleteEntitiesTransportSettings =
                                                                                        @@ -776,6 +784,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEnvironmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEnvironmentsStub.java
                                                                                        index e0e4af2eaf04..1eaf6ad67626 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEnvironmentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEnvironmentsStub.java
                                                                                        @@ -433,6 +433,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings getEnvironmentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -444,6 +445,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings createEnvironmentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -455,6 +457,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateEnvironmentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -478,6 +481,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 getEnvironmentHistoryTransportSettings =
                                                                                        @@ -490,6 +494,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonFulfillmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonFulfillmentsStub.java
                                                                                        index 2c02d9690456..5a8803d40cad 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonFulfillmentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonFulfillmentsStub.java
                                                                                        @@ -259,6 +259,7 @@ protected HttpJsonFulfillmentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateFulfillmentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                        index 49504acd24cb..221f350daf1b 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                        @@ -404,6 +404,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 getGeneratorEvaluationTransportSettings =
                                                                                        @@ -416,6 +417,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listGeneratorEvaluationsTransportSettings =
                                                                                        @@ -429,6 +431,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 deleteGeneratorEvaluationTransportSettings =
                                                                                        @@ -441,6 +444,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorsStub.java
                                                                                        index a7764a2c1867..b0b96a3a835b 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorsStub.java
                                                                                        @@ -378,6 +378,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings getGeneratorTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -389,6 +390,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listGeneratorsTransportSettings =
                                                                                        @@ -401,6 +403,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings deleteGeneratorTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -412,6 +415,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateGeneratorTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonIntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonIntentsStub.java
                                                                                        index 33c0cdb2e302..a3939a23ef10 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonIntentsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonIntentsStub.java
                                                                                        @@ -534,6 +534,7 @@ protected HttpJsonIntentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings getIntentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -545,6 +546,7 @@ protected HttpJsonIntentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings createIntentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -556,6 +558,7 @@ protected HttpJsonIntentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateIntentTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -578,6 +581,7 @@ protected HttpJsonIntentsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings batchUpdateIntentsTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -589,6 +593,7 @@ protected HttpJsonIntentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings batchDeleteIntentsTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -600,6 +605,7 @@ protected HttpJsonIntentsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonKnowledgeBasesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonKnowledgeBasesStub.java
                                                                                        index 1bb4785113b8..2d2829cbb6bb 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonKnowledgeBasesStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonKnowledgeBasesStub.java
                                                                                        @@ -395,6 +395,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings getKnowledgeBaseTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -406,6 +407,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 createKnowledgeBaseTransportSettings =
                                                                                        @@ -418,6 +420,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings deleteKnowledgeBaseTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -429,6 +432,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 updateKnowledgeBaseTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonParticipantsStub.java
                                                                                        index e52dfbc87b55..f63623993a8d 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonParticipantsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonParticipantsStub.java
                                                                                        @@ -567,6 +567,7 @@ protected HttpJsonParticipantsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings getParticipantTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -578,6 +579,7 @@ protected HttpJsonParticipantsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listParticipantsTransportSettings =
                                                                                        @@ -590,6 +592,7 @@ protected HttpJsonParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings updateParticipantTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -614,6 +617,7 @@ protected HttpJsonParticipantsStub(
                                                                                                               builder.add("participant", String.valueOf(request.getParticipant()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 suggestArticlesTransportSettings =
                                                                                        @@ -626,6 +630,7 @@ protected HttpJsonParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 suggestFaqAnswersTransportSettings =
                                                                                        @@ -638,6 +643,7 @@ protected HttpJsonParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 suggestSmartRepliesTransportSettings =
                                                                                        @@ -651,6 +657,7 @@ protected HttpJsonParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 suggestKnowledgeAssistTransportSettings =
                                                                                        @@ -664,6 +671,7 @@ protected HttpJsonParticipantsStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionEntityTypesStub.java
                                                                                        index 7e9ba12c20e2..35e6fc5c7f2d 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionEntityTypesStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionEntityTypesStub.java
                                                                                        @@ -414,6 +414,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 getSessionEntityTypeTransportSettings =
                                                                                        @@ -426,6 +427,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 createSessionEntityTypeTransportSettings =
                                                                                        @@ -438,6 +440,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 updateSessionEntityTypeTransportSettings =
                                                                                        @@ -464,6 +467,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                               builder.add("name", String.valueOf(request.getName()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getName())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionsStub.java
                                                                                        index d18edf0c8559..fff512ebd05b 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionsStub.java
                                                                                        @@ -224,6 +224,7 @@ protected HttpJsonSessionsStub(
                                                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getSession())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSipTrunksStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSipTrunksStub.java
                                                                                        index 419f5cf193ba..f105008e443c 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSipTrunksStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSipTrunksStub.java
                                                                                        @@ -373,6 +373,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings deleteSipTrunkTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -384,6 +385,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listSipTrunksTransportSettings =
                                                                                        @@ -396,6 +398,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                               builder.add("parent", String.valueOf(request.getParent()));
                                                                                                               return builder.build();
                                                                                                             })
                                                                                        +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                         .build();
                                                                                             HttpJsonCallSettings getSipTrunkTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -407,6 +410,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateSipTrunkTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonToolsStub.java
                                                                                        index c84e159e5297..79a94d8850dd 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonToolsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonToolsStub.java
                                                                                        @@ -364,6 +364,7 @@ protected HttpJsonToolsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings getToolTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -375,6 +376,7 @@ protected HttpJsonToolsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings listToolsTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -386,6 +388,7 @@ protected HttpJsonToolsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings deleteToolTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -397,6 +400,7 @@ protected HttpJsonToolsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateToolTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonVersionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonVersionsStub.java
                                                                                        index 493496e4aac5..59fe04992ad1 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonVersionsStub.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonVersionsStub.java
                                                                                        @@ -378,6 +378,7 @@ protected HttpJsonVersionsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings getVersionTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -389,6 +390,7 @@ protected HttpJsonVersionsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings createVersionTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -400,6 +402,7 @@ protected HttpJsonVersionsStub(
                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings updateVersionTransportSettings =
                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                        @@ -422,6 +425,7 @@ protected HttpJsonVersionsStub(
                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                           return builder.build();
                                                                                                         })
                                                                                        +            .setResourceNameExtractor(request -> request.getName())
                                                                                                     .build();
                                                                                             HttpJsonCallSettings
                                                                                                 listLocationsTransportSettings =
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java
                                                                                        index 34820746d926..b401e4c56f12 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java
                                                                                        @@ -467,6 +467,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java
                                                                                        index 58f09fd6e0b2..9c6606a02f6f 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java
                                                                                        @@ -416,6 +416,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java
                                                                                        index 451a42a74ca6..b0849d85485f 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java
                                                                                        @@ -468,6 +468,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java
                                                                                        index c19bcf646eca..09b1b92844f8 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java
                                                                                        @@ -434,6 +434,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java
                                                                                        index 36d1d5398cb3..1a1e324d1c16 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java
                                                                                        @@ -323,6 +323,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java
                                                                                        index 780fa6e90961..c6fdb13904f9 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java
                                                                                        @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java
                                                                                        index 2913369f2726..1471202e8591 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java
                                                                                        @@ -399,6 +399,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java
                                                                                        new file mode 100644
                                                                                        index 000000000000..286cf86ef8b6
                                                                                        --- /dev/null
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java
                                                                                        @@ -0,0 +1,27 @@
                                                                                        +/*
                                                                                        + * Copyright 2026 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.
                                                                                        + */
                                                                                        +
                                                                                        +package com.google.cloud.dialogflow.v2.stub;
                                                                                        +
                                                                                        +import com.google.api.core.InternalApi;
                                                                                        +
                                                                                        +@InternalApi("For internal use only")
                                                                                        +final class Version {
                                                                                        +  // {x-version-update-start:google-cloud-dialogflow:current}
                                                                                        +  static final String VERSION = "0.0.0-SNAPSHOT";
                                                                                        +  // {x-version-update-end}
                                                                                        +
                                                                                        +}
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java
                                                                                        index 093268ffc21d..c97243a33f69 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java
                                                                                        @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                             return LibraryMetadata.newBuilder()
                                                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                 .setRepository("googleapis/google-cloud-java")
                                                                                        +        .setVersion(com.google.cloud.dialogflow.v2.stub.Version.VERSION)
                                                                                                 .build();
                                                                                           }
                                                                                         
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java
                                                                                        index 244456e9b99a..a1d9016b8c9c 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java
                                                                                        @@ -255,7 +255,10 @@
                                                                                          *    
                                                                                          *    
                                                                                          *      

                                                                                        ListLocations - *

                                                                                        Lists information about the supported locations for this service. + *

                                                                                        Lists information about the supported locations for this service. + *

                                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                        *
                                                                                          @@ -1808,6 +1811,19 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req /** * Lists information about the supported locations for this service. * + *

                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                          Sample code: * *

                                                                                          {@code
                                                                                          @@ -1841,6 +1857,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                             /**
                                                                                              * Lists information about the supported locations for this service.
                                                                                              *
                                                                                          +   * 

                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                          Sample code: * *

                                                                                          {@code
                                                                                          @@ -1874,6 +1903,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                             /**
                                                                                              * Lists information about the supported locations for this service.
                                                                                              *
                                                                                          +   * 

                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                          Sample code: * *

                                                                                          {@code
                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java
                                                                                          index 56a844afcd40..e2053860f98f 100644
                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java
                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java
                                                                                          @@ -124,7 +124,10 @@
                                                                                            *    
                                                                                            *    
                                                                                            *      

                                                                                          ListLocations - *

                                                                                          Lists information about the supported locations for this service. + *

                                                                                          Lists information about the supported locations for this service. + *

                                                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                          *
                                                                                            @@ -610,6 +613,19 @@ public final UnaryCallable updateAnswer /** * Lists information about the supported locations for this service. * + *

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            @@ -643,6 +659,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                               /**
                                                                                                * Lists information about the supported locations for this service.
                                                                                                *
                                                                                            +   * 

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            @@ -677,6 +706,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                               /**
                                                                                                * Lists information about the supported locations for this service.
                                                                                                *
                                                                                            +   * 

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java
                                                                                            index a32c027a715b..83942101a190 100644
                                                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java
                                                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java
                                                                                            @@ -187,7 +187,10 @@
                                                                                              *    
                                                                                              *    
                                                                                              *      

                                                                                            ListLocations - *

                                                                                            Lists information about the supported locations for this service. + *

                                                                                            Lists information about the supported locations for this service. + *

                                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                            *
                                                                                              @@ -1153,6 +1156,19 @@ public final UnaryCallable deleteAllContextsCal /** * Lists information about the supported locations for this service. * + *

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              @@ -1186,6 +1202,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                 /**
                                                                                                  * Lists information about the supported locations for this service.
                                                                                                  *
                                                                                              +   * 

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              @@ -1219,6 +1248,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                 /**
                                                                                                  * Lists information about the supported locations for this service.
                                                                                                  *
                                                                                              +   * 

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java
                                                                                              index 61e8a68628ff..4f43c5d878fc 100644
                                                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java
                                                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java
                                                                                              @@ -223,7 +223,10 @@
                                                                                                *    
                                                                                                *    
                                                                                                *      

                                                                                              ListLocations - *

                                                                                              Lists information about the supported locations for this service. + *

                                                                                              Lists information about the supported locations for this service. + *

                                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              *
                                                                                                @@ -1645,6 +1648,19 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req /** * Lists information about the supported locations for this service. * + *

                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                Sample code: * *

                                                                                                {@code
                                                                                                @@ -1679,6 +1695,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                   /**
                                                                                                    * Lists information about the supported locations for this service.
                                                                                                    *
                                                                                                +   * 

                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                Sample code: * *

                                                                                                {@code
                                                                                                @@ -1714,6 +1743,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                   /**
                                                                                                    * Lists information about the supported locations for this service.
                                                                                                    *
                                                                                                +   * 

                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                Sample code: * *

                                                                                                {@code
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java
                                                                                                index 1d24143f90dd..b3ba35035005 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java
                                                                                                @@ -289,7 +289,10 @@
                                                                                                  *    
                                                                                                  *    
                                                                                                  *      

                                                                                                ListLocations - *

                                                                                                Lists information about the supported locations for this service. + *

                                                                                                Lists information about the supported locations for this service. + *

                                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                *
                                                                                                  @@ -2110,6 +2113,19 @@ public final GenerateSuggestionsResponse generateSuggestions(GenerateSuggestions /** * Lists information about the supported locations for this service. * + *

                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                  Sample code: * *

                                                                                                  {@code
                                                                                                  @@ -2143,6 +2159,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                     /**
                                                                                                      * Lists information about the supported locations for this service.
                                                                                                      *
                                                                                                  +   * 

                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                  Sample code: * *

                                                                                                  {@code
                                                                                                  @@ -2177,6 +2206,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                     /**
                                                                                                      * Lists information about the supported locations for this service.
                                                                                                      *
                                                                                                  +   * 

                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                  Sample code: * *

                                                                                                  {@code
                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java
                                                                                                  index e3056a19dbc5..1cd765c617fe 100644
                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java
                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java
                                                                                                  @@ -227,7 +227,10 @@
                                                                                                    *    
                                                                                                    *    
                                                                                                    *      

                                                                                                  ListLocations - *

                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                  *
                                                                                                    @@ -1728,6 +1731,19 @@ public final UnaryCallable reloadDocumentCalla /** * Lists information about the supported locations for this service. * + *

                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                    Sample code: * *

                                                                                                    {@code
                                                                                                    @@ -1761,6 +1777,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                       /**
                                                                                                        * Lists information about the supported locations for this service.
                                                                                                        *
                                                                                                    +   * 

                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                    Sample code: * *

                                                                                                    {@code
                                                                                                    @@ -1794,6 +1823,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                       /**
                                                                                                        * Lists information about the supported locations for this service.
                                                                                                        *
                                                                                                    +   * 

                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                    Sample code: * *

                                                                                                    {@code
                                                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java
                                                                                                    index 8a471a0654b0..9132a17ebc25 100644
                                                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java
                                                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java
                                                                                                    @@ -112,7 +112,10 @@
                                                                                                      *    
                                                                                                      *    
                                                                                                      *      

                                                                                                    ListLocations - *

                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                    *
                                                                                                      @@ -533,6 +536,19 @@ public final UnaryCallable getEncrypti /** * Lists information about the supported locations for this service. * + *

                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                      Sample code: * *

                                                                                                      {@code
                                                                                                      @@ -567,6 +583,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                         /**
                                                                                                          * Lists information about the supported locations for this service.
                                                                                                          *
                                                                                                      +   * 

                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                      Sample code: * *

                                                                                                      {@code
                                                                                                      @@ -602,6 +631,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                         /**
                                                                                                          * Lists information about the supported locations for this service.
                                                                                                          *
                                                                                                      +   * 

                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                      Sample code: * *

                                                                                                      {@code
                                                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
                                                                                                      index cf04fd3baaab..c2baf76d7358 100644
                                                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
                                                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
                                                                                                      @@ -298,7 +298,10 @@
                                                                                                        *    
                                                                                                        *    
                                                                                                        *      

                                                                                                      ListLocations - *

                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                      *
                                                                                                        @@ -2795,6 +2798,19 @@ public final UnaryCallable batchDeleteEnt /** * Lists information about the supported locations for this service. * + *

                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                        Sample code: * *

                                                                                                        {@code
                                                                                                        @@ -2828,6 +2844,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                           /**
                                                                                                            * Lists information about the supported locations for this service.
                                                                                                            *
                                                                                                        +   * 

                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                        Sample code: * *

                                                                                                        {@code
                                                                                                        @@ -2862,6 +2891,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                           /**
                                                                                                            * Lists information about the supported locations for this service.
                                                                                                            *
                                                                                                        +   * 

                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                        Sample code: * *

                                                                                                        {@code
                                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java
                                                                                                        index b174b5f24699..64a7b01939e3 100644
                                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java
                                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java
                                                                                                        @@ -166,7 +166,10 @@
                                                                                                          *    
                                                                                                          *    
                                                                                                          *      

                                                                                                        ListLocations - *

                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                        *
                                                                                                          @@ -833,6 +836,19 @@ public final GetEnvironmentHistoryPagedResponse getEnvironmentHistory( /** * Lists information about the supported locations for this service. * + *

                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                          Sample code: * *

                                                                                                          {@code
                                                                                                          @@ -866,6 +882,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                             /**
                                                                                                              * Lists information about the supported locations for this service.
                                                                                                              *
                                                                                                          +   * 

                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                          Sample code: * *

                                                                                                          {@code
                                                                                                          @@ -900,6 +929,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                             /**
                                                                                                              * Lists information about the supported locations for this service.
                                                                                                              *
                                                                                                          +   * 

                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                          Sample code: * *

                                                                                                          {@code
                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java
                                                                                                          index df68576c0cb5..7f079a0bd964 100644
                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java
                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java
                                                                                                          @@ -107,7 +107,10 @@
                                                                                                            *    
                                                                                                            *    
                                                                                                            *      

                                                                                                          ListLocations - *

                                                                                                          Lists information about the supported locations for this service. + *

                                                                                                          Lists information about the supported locations for this service. + *

                                                                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                          *
                                                                                                            @@ -446,6 +449,19 @@ public final UnaryCallable updateFulfillm /** * Lists information about the supported locations for this service. * + *

                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                            Sample code: * *

                                                                                                            {@code
                                                                                                            @@ -479,6 +495,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                               /**
                                                                                                                * Lists information about the supported locations for this service.
                                                                                                                *
                                                                                                            +   * 

                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                            Sample code: * *

                                                                                                            {@code
                                                                                                            @@ -513,6 +542,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                               /**
                                                                                                                * Lists information about the supported locations for this service.
                                                                                                                *
                                                                                                            +   * 

                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                            Sample code: * *

                                                                                                            {@code
                                                                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java
                                                                                                            index a65b7c00f4b7..bae33359a342 100644
                                                                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java
                                                                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java
                                                                                                            @@ -154,7 +154,10 @@
                                                                                                              *    
                                                                                                              *    
                                                                                                              *      

                                                                                                            ListLocations - *

                                                                                                            Lists information about the supported locations for this service. + *

                                                                                                            Lists information about the supported locations for this service. + *

                                                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                            *
                                                                                                              @@ -934,6 +937,19 @@ public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest req /** * Lists information about the supported locations for this service. * + *

                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                              Sample code: * *

                                                                                                              {@code
                                                                                                              @@ -968,6 +984,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                 /**
                                                                                                                  * Lists information about the supported locations for this service.
                                                                                                                  *
                                                                                                              +   * 

                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                              Sample code: * *

                                                                                                              {@code
                                                                                                              @@ -1003,6 +1032,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                 /**
                                                                                                                  * Lists information about the supported locations for this service.
                                                                                                                  *
                                                                                                              +   * 

                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                              Sample code: * *

                                                                                                              {@code
                                                                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java
                                                                                                              index 032b840c5370..53de3a85af25 100644
                                                                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java
                                                                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java
                                                                                                              @@ -170,7 +170,10 @@
                                                                                                                *    
                                                                                                                *    
                                                                                                                *      

                                                                                                              ListLocations - *

                                                                                                              Lists information about the supported locations for this service. + *

                                                                                                              Lists information about the supported locations for this service. + *

                                                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                              *
                                                                                                                @@ -925,6 +928,19 @@ public final UnaryCallable updateGeneratorCal /** * Lists information about the supported locations for this service. * + *

                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                Sample code: * *

                                                                                                                {@code
                                                                                                                @@ -958,6 +974,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                   /**
                                                                                                                    * Lists information about the supported locations for this service.
                                                                                                                    *
                                                                                                                +   * 

                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                Sample code: * *

                                                                                                                {@code
                                                                                                                @@ -992,6 +1021,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                   /**
                                                                                                                    * Lists information about the supported locations for this service.
                                                                                                                    *
                                                                                                                +   * 

                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                Sample code: * *

                                                                                                                {@code
                                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java
                                                                                                                index 20b08728b2b6..a8fda931343c 100644
                                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java
                                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java
                                                                                                                @@ -230,7 +230,10 @@
                                                                                                                  *    
                                                                                                                  *    
                                                                                                                  *      

                                                                                                                ListLocations - *

                                                                                                                Lists information about the supported locations for this service. + *

                                                                                                                Lists information about the supported locations for this service. + *

                                                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                *
                                                                                                                  @@ -1942,6 +1945,19 @@ public final UnaryCallable batchDeleteInte /** * Lists information about the supported locations for this service. * + *

                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                  Sample code: * *

                                                                                                                  {@code
                                                                                                                  @@ -1975,6 +1991,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                     /**
                                                                                                                      * Lists information about the supported locations for this service.
                                                                                                                      *
                                                                                                                  +   * 

                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                  Sample code: * *

                                                                                                                  {@code
                                                                                                                  @@ -2008,6 +2037,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                     /**
                                                                                                                      * Lists information about the supported locations for this service.
                                                                                                                      *
                                                                                                                  +   * 

                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                  Sample code: * *

                                                                                                                  {@code
                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java
                                                                                                                  index 58effc6fe437..8305f3471e01 100644
                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java
                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java
                                                                                                                  @@ -175,7 +175,10 @@
                                                                                                                    *    
                                                                                                                    *    
                                                                                                                    *      

                                                                                                                  ListLocations - *

                                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                  *
                                                                                                                    @@ -1101,6 +1104,19 @@ public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest reques /** * Lists information about the supported locations for this service. * + *

                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                    Sample code: * *

                                                                                                                    {@code
                                                                                                                    @@ -1134,6 +1150,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                       /**
                                                                                                                        * Lists information about the supported locations for this service.
                                                                                                                        *
                                                                                                                    +   * 

                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                    Sample code: * *

                                                                                                                    {@code
                                                                                                                    @@ -1168,6 +1197,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                       /**
                                                                                                                        * Lists information about the supported locations for this service.
                                                                                                                        *
                                                                                                                    +   * 

                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                    Sample code: * *

                                                                                                                    {@code
                                                                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java
                                                                                                                    index fc03c19bcf11..244aaa9456ed 100644
                                                                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java
                                                                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java
                                                                                                                    @@ -300,7 +300,10 @@
                                                                                                                      *    
                                                                                                                      *    
                                                                                                                      *      

                                                                                                                    ListLocations - *

                                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                    *
                                                                                                                      @@ -2128,6 +2131,19 @@ public final CompileSuggestionResponse compileSuggestion(CompileSuggestionReques /** * Lists information about the supported locations for this service. * + *

                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                      Sample code: * *

                                                                                                                      {@code
                                                                                                                      @@ -2161,6 +2177,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                         /**
                                                                                                                          * Lists information about the supported locations for this service.
                                                                                                                          *
                                                                                                                      +   * 

                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                      Sample code: * *

                                                                                                                      {@code
                                                                                                                      @@ -2195,6 +2224,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                         /**
                                                                                                                          * Lists information about the supported locations for this service.
                                                                                                                          *
                                                                                                                      +   * 

                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                      Sample code: * *

                                                                                                                      {@code
                                                                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java
                                                                                                                      index 0ce20ab276b9..0bb78e93ec1e 100644
                                                                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java
                                                                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java
                                                                                                                      @@ -148,7 +148,10 @@
                                                                                                                        *    
                                                                                                                        *    
                                                                                                                        *      

                                                                                                                      ListLocations - *

                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                      *
                                                                                                                        @@ -854,6 +857,19 @@ public final PhoneNumber undeletePhoneNumber(UndeletePhoneNumberRequest request) /** * Lists information about the supported locations for this service. * + *

                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                        Sample code: * *

                                                                                                                        {@code
                                                                                                                        @@ -887,6 +903,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                           /**
                                                                                                                            * Lists information about the supported locations for this service.
                                                                                                                            *
                                                                                                                        +   * 

                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                        Sample code: * *

                                                                                                                        {@code
                                                                                                                        @@ -921,6 +950,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                           /**
                                                                                                                            * Lists information about the supported locations for this service.
                                                                                                                            *
                                                                                                                        +   * 

                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                        Sample code: * *

                                                                                                                        {@code
                                                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java
                                                                                                                        index 98358cb7bf79..f186ab41e280 100644
                                                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java
                                                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java
                                                                                                                        @@ -176,7 +176,10 @@
                                                                                                                          *    
                                                                                                                          *    
                                                                                                                          *      

                                                                                                                        ListLocations - *

                                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                        *
                                                                                                                          @@ -1132,6 +1135,19 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request /** * Lists information about the supported locations for this service. * + *

                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                          Sample code: * *

                                                                                                                          {@code
                                                                                                                          @@ -1165,6 +1181,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                             /**
                                                                                                                              * Lists information about the supported locations for this service.
                                                                                                                              *
                                                                                                                          +   * 

                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                          Sample code: * *

                                                                                                                          {@code
                                                                                                                          @@ -1199,6 +1228,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                             /**
                                                                                                                              * Lists information about the supported locations for this service.
                                                                                                                              *
                                                                                                                          +   * 

                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                          Sample code: * *

                                                                                                                          {@code
                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
                                                                                                                          index 409fdc453fa6..c9bda589f8de 100644
                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
                                                                                                                          @@ -106,7 +106,10 @@
                                                                                                                            *    
                                                                                                                            *    
                                                                                                                            *      

                                                                                                                          ListLocations - *

                                                                                                                          Lists information about the supported locations for this service. + *

                                                                                                                          Lists information about the supported locations for this service. + *

                                                                                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                          *
                                                                                                                            @@ -500,6 +503,19 @@ public final UnaryCallable detectInte /** * Lists information about the supported locations for this service. * + *

                                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                            Sample code: * *

                                                                                                                            {@code
                                                                                                                            @@ -533,6 +549,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                               /**
                                                                                                                                * Lists information about the supported locations for this service.
                                                                                                                                *
                                                                                                                            +   * 

                                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                            Sample code: * *

                                                                                                                            {@code
                                                                                                                            @@ -566,6 +595,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                               /**
                                                                                                                                * Lists information about the supported locations for this service.
                                                                                                                                *
                                                                                                                            +   * 

                                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                            Sample code: * *

                                                                                                                            {@code
                                                                                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java
                                                                                                                            index e2ec6d8c5ff7..b76d81766279 100644
                                                                                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java
                                                                                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java
                                                                                                                            @@ -166,7 +166,10 @@
                                                                                                                              *    
                                                                                                                              *    
                                                                                                                              *      

                                                                                                                            ListLocations - *

                                                                                                                            Lists information about the supported locations for this service. + *

                                                                                                                            Lists information about the supported locations for this service. + *

                                                                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                            *
                                                                                                                              @@ -890,6 +893,19 @@ public final UnaryCallable updateSipTrunkCallab /** * Lists information about the supported locations for this service. * + *

                                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                              Sample code: * *

                                                                                                                              {@code
                                                                                                                              @@ -923,6 +939,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                 /**
                                                                                                                                  * Lists information about the supported locations for this service.
                                                                                                                                  *
                                                                                                                              +   * 

                                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                              Sample code: * *

                                                                                                                              {@code
                                                                                                                              @@ -956,6 +985,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                 /**
                                                                                                                                  * Lists information about the supported locations for this service.
                                                                                                                                  *
                                                                                                                              +   * 

                                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                              Sample code: * *

                                                                                                                              {@code
                                                                                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java
                                                                                                                              index f705030ea888..b97defe0a0be 100644
                                                                                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java
                                                                                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java
                                                                                                                              @@ -168,7 +168,10 @@
                                                                                                                                *    
                                                                                                                                *    
                                                                                                                                *      

                                                                                                                              ListLocations - *

                                                                                                                              Lists information about the supported locations for this service. + *

                                                                                                                              Lists information about the supported locations for this service. + *

                                                                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                              *
                                                                                                                                @@ -907,6 +910,19 @@ public final UnaryCallable updateToolCallable() { /** * Lists information about the supported locations for this service. * + *

                                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                Sample code: * *

                                                                                                                                {@code
                                                                                                                                @@ -940,6 +956,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                   /**
                                                                                                                                    * Lists information about the supported locations for this service.
                                                                                                                                    *
                                                                                                                                +   * 

                                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                Sample code: * *

                                                                                                                                {@code
                                                                                                                                @@ -973,6 +1002,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                   /**
                                                                                                                                    * Lists information about the supported locations for this service.
                                                                                                                                    *
                                                                                                                                +   * 

                                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                Sample code: * *

                                                                                                                                {@code
                                                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java
                                                                                                                                index d6f8700febe8..b49737579b00 100644
                                                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java
                                                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java
                                                                                                                                @@ -167,7 +167,10 @@
                                                                                                                                  *    
                                                                                                                                  *    
                                                                                                                                  *      

                                                                                                                                ListLocations - *

                                                                                                                                Lists information about the supported locations for this service. + *

                                                                                                                                Lists information about the supported locations for this service. + *

                                                                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                *
                                                                                                                                  @@ -917,6 +920,19 @@ public final UnaryCallable deleteVersionCallable() /** * Lists information about the supported locations for this service. * + *

                                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                  Sample code: * *

                                                                                                                                  {@code
                                                                                                                                  @@ -950,6 +966,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                     /**
                                                                                                                                      * Lists information about the supported locations for this service.
                                                                                                                                      *
                                                                                                                                  +   * 

                                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                  Sample code: * *

                                                                                                                                  {@code
                                                                                                                                  @@ -983,6 +1012,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                     /**
                                                                                                                                      * Lists information about the supported locations for this service.
                                                                                                                                      *
                                                                                                                                  +   * 

                                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                  Sample code: * *

                                                                                                                                  {@code
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java
                                                                                                                                  index 37ba9cf4aebb..8a47d2ed41ad 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java
                                                                                                                                  @@ -500,6 +500,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java
                                                                                                                                  index a07653ac1d53..fbe45def25b3 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java
                                                                                                                                  @@ -402,6 +402,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java
                                                                                                                                  index 4ccfd104559d..350d40f349da 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java
                                                                                                                                  @@ -409,6 +409,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java
                                                                                                                                  index 356959fb9b54..78980be2b736 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java
                                                                                                                                  @@ -527,6 +527,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java
                                                                                                                                  index bead6ed481ab..789c0ae9c287 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java
                                                                                                                                  @@ -553,6 +553,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java
                                                                                                                                  index 39162151ad0a..135f2e37d858 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java
                                                                                                                                  @@ -496,6 +496,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java
                                                                                                                                  index f87d0a16983c..3e0507173a09 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java
                                                                                                                                  @@ -377,6 +377,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java
                                                                                                                                  index 92954a0780b3..94852265f5d1 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java
                                                                                                                                  @@ -540,6 +540,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java
                                                                                                                                  index feb03e7d60b7..cfbadf40062d 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java
                                                                                                                                  @@ -485,6 +485,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java
                                                                                                                                  index d6fddb2f737e..cc1d2ed227e7 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java
                                                                                                                                  @@ -323,6 +323,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java
                                                                                                                                  index 5b09692755c2..54caa757ce6c 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java
                                                                                                                                  @@ -478,6 +478,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java
                                                                                                                                  index 934b1f507e52..ab7552d6dcc0 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java
                                                                                                                                  @@ -405,6 +405,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java
                                                                                                                                  index ce859237ca96..98e29ffc8291 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java
                                                                                                                                  @@ -241,6 +241,7 @@ protected GrpcAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings setAgentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -261,6 +262,7 @@ protected GrpcAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings searchAgentsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -271,6 +273,7 @@ protected GrpcAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings trainAgentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -281,6 +284,7 @@ protected GrpcAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings exportAgentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -291,6 +295,7 @@ protected GrpcAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings importAgentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -301,6 +306,7 @@ protected GrpcAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings restoreAgentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -311,6 +317,7 @@ protected GrpcAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           getValidationResultTransportSettings =
                                                                                                                                  @@ -322,6 +329,7 @@ protected GrpcAgentsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java
                                                                                                                                  index d63e07230fbd..26af644646ea 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java
                                                                                                                                  @@ -180,6 +180,7 @@ protected GrpcAnswerRecordsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings updateAnswerRecordTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java
                                                                                                                                  index 0391decb4e03..e47b3bb1124f 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java
                                                                                                                                  @@ -200,6 +200,7 @@ protected GrpcContextsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings getContextTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -210,6 +211,7 @@ protected GrpcContextsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings createContextTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -220,6 +222,7 @@ protected GrpcContextsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateContextTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -240,6 +243,7 @@ protected GrpcContextsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings deleteAllContextsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -250,6 +254,7 @@ protected GrpcContextsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java
                                                                                                                                  index a4865a127052..1322bd0cfca9 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java
                                                                                                                                  @@ -259,6 +259,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           getConversationProfileTransportSettings =
                                                                                                                                  @@ -270,6 +271,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           createConversationProfileTransportSettings =
                                                                                                                                  @@ -281,6 +283,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           updateConversationProfileTransportSettings =
                                                                                                                                  @@ -305,6 +308,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           setSuggestionFeatureConfigTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java
                                                                                                                                  index 91fabb397784..e45e675fd68d 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java
                                                                                                                                  @@ -328,6 +328,7 @@ protected GrpcConversationsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           listConversationsTransportSettings =
                                                                                                                                  @@ -339,6 +340,7 @@ protected GrpcConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings getConversationTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -349,6 +351,7 @@ protected GrpcConversationsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           completeConversationTransportSettings =
                                                                                                                                  @@ -360,6 +363,7 @@ protected GrpcConversationsStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           ingestContextReferencesTransportSettings =
                                                                                                                                  @@ -372,6 +376,7 @@ protected GrpcConversationsStub(
                                                                                                                                                         builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           batchCreateMessagesTransportSettings =
                                                                                                                                  @@ -383,6 +388,7 @@ protected GrpcConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings listMessagesTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -393,6 +399,7 @@ protected GrpcConversationsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           suggestConversationSummaryTransportSettings =
                                                                                                                                  @@ -405,6 +412,7 @@ protected GrpcConversationsStub(
                                                                                                                                                         builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           generateStatelessSummaryTransportSettings =
                                                                                                                                  @@ -419,6 +427,7 @@ protected GrpcConversationsStub(
                                                                                                                                                             String.valueOf(request.getStatelessConversation().getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getLatestMessage())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           generateStatelessSuggestionTransportSettings =
                                                                                                                                  @@ -432,6 +441,7 @@ protected GrpcConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           searchKnowledgeTransportSettings =
                                                                                                                                  @@ -444,6 +454,7 @@ protected GrpcConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getConversationProfile())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           generateSuggestionsTransportSettings =
                                                                                                                                  @@ -455,6 +466,7 @@ protected GrpcConversationsStub(
                                                                                                                                                         builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java
                                                                                                                                  index 5789e551a206..a052c912aaec 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java
                                                                                                                                  @@ -233,6 +233,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings getDocumentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -243,6 +244,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings createDocumentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -253,6 +255,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings importDocumentsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -263,6 +266,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings deleteDocumentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -273,6 +277,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateDocumentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -293,6 +298,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                                                  index 75dbabfb5815..d9de341b15f7 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                                                  @@ -164,6 +164,7 @@ protected GrpcEncryptionSpecServiceStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           initializeEncryptionSpecTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java
                                                                                                                                  index eb0f9c1a8b56..465f6c353f4e 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java
                                                                                                                                  @@ -281,6 +281,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings getEntityTypeTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -291,6 +292,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings createEntityTypeTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -301,6 +303,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateEntityTypeTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -322,6 +325,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           batchUpdateEntityTypesTransportSettings =
                                                                                                                                  @@ -333,6 +337,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           batchDeleteEntityTypesTransportSettings =
                                                                                                                                  @@ -344,6 +349,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings batchCreateEntitiesTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -354,6 +360,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings batchUpdateEntitiesTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -364,6 +371,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings batchDeleteEntitiesTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -374,6 +382,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java
                                                                                                                                  index 2769a48825c0..ff9fe7aa1fd1 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java
                                                                                                                                  @@ -216,6 +216,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings getEnvironmentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -226,6 +227,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings createEnvironmentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -236,6 +238,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateEnvironmentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -257,6 +260,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           getEnvironmentHistoryTransportSettings =
                                                                                                                                  @@ -268,6 +272,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java
                                                                                                                                  index 90093ac92c90..5f03b0bad517 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java
                                                                                                                                  @@ -150,6 +150,7 @@ protected GrpcFulfillmentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateFulfillmentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                                                  index 22c0a14c92e8..45e8d2b09225 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                                                  @@ -205,6 +205,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           getGeneratorEvaluationTransportSettings =
                                                                                                                                  @@ -216,6 +217,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           listGeneratorEvaluationsTransportSettings =
                                                                                                                                  @@ -228,6 +230,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           deleteGeneratorEvaluationTransportSettings =
                                                                                                                                  @@ -239,6 +242,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorsStub.java
                                                                                                                                  index b991d593e71f..41251121fcc5 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorsStub.java
                                                                                                                                  @@ -194,6 +194,7 @@ protected GrpcGeneratorsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings getGeneratorTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -204,6 +205,7 @@ protected GrpcGeneratorsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           listGeneratorsTransportSettings =
                                                                                                                                  @@ -215,6 +217,7 @@ protected GrpcGeneratorsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings deleteGeneratorTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -225,6 +228,7 @@ protected GrpcGeneratorsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateGeneratorTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java
                                                                                                                                  index 25dbda5d806a..fb688016857c 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java
                                                                                                                                  @@ -217,6 +217,7 @@ protected GrpcIntentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings getIntentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -227,6 +228,7 @@ protected GrpcIntentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings createIntentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -237,6 +239,7 @@ protected GrpcIntentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateIntentTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -257,6 +260,7 @@ protected GrpcIntentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings batchUpdateIntentsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -267,6 +271,7 @@ protected GrpcIntentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings batchDeleteIntentsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -277,6 +282,7 @@ protected GrpcIntentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java
                                                                                                                                  index c1c3d3dd905f..186d457472eb 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java
                                                                                                                                  @@ -205,6 +205,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings getKnowledgeBaseTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -215,6 +216,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           createKnowledgeBaseTransportSettings =
                                                                                                                                  @@ -226,6 +228,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings deleteKnowledgeBaseTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -236,6 +239,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           updateKnowledgeBaseTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java
                                                                                                                                  index 38603d8f3e98..d8a8ae08ae02 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java
                                                                                                                                  @@ -340,6 +340,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings getParticipantTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -350,6 +351,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           listParticipantsTransportSettings =
                                                                                                                                  @@ -361,6 +363,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings updateParticipantTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -383,12 +386,14 @@ protected GrpcParticipantsStub(
                                                                                                                                                         builder.add("participant", String.valueOf(request.getParticipant()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           streamingAnalyzeContentTransportSettings =
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   .newBuilder()
                                                                                                                                                   .setMethodDescriptor(streamingAnalyzeContentMethodDescriptor)
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           bidiStreamingAnalyzeContentTransportSettings =
                                                                                                                                  @@ -407,6 +412,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           suggestFaqAnswersTransportSettings =
                                                                                                                                  @@ -418,6 +424,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           suggestSmartRepliesTransportSettings =
                                                                                                                                  @@ -429,6 +436,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           suggestKnowledgeAssistTransportSettings =
                                                                                                                                  @@ -441,6 +449,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           listSuggestionsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcPhoneNumbersStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcPhoneNumbersStub.java
                                                                                                                                  index 3f5c100e2fe8..e42e8cb4255d 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcPhoneNumbersStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcPhoneNumbersStub.java
                                                                                                                                  @@ -183,6 +183,7 @@ protected GrpcPhoneNumbersStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings updatePhoneNumberTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -204,6 +205,7 @@ protected GrpcPhoneNumbersStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings undeletePhoneNumberTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -214,6 +216,7 @@ protected GrpcPhoneNumbersStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java
                                                                                                                                  index 2e797a5bd049..fcba1cf0877e 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java
                                                                                                                                  @@ -211,6 +211,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           getSessionEntityTypeTransportSettings =
                                                                                                                                  @@ -222,6 +223,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           createSessionEntityTypeTransportSettings =
                                                                                                                                  @@ -233,6 +235,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           updateSessionEntityTypeTransportSettings =
                                                                                                                                  @@ -257,6 +260,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java
                                                                                                                                  index 5fb782a2b88a..372891752250 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java
                                                                                                                                  @@ -151,12 +151,14 @@ protected GrpcSessionsStub(
                                                                                                                                                     builder.add("session", String.valueOf(request.getSession()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getSession())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings
                                                                                                                                           streamingDetectIntentTransportSettings =
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   .newBuilder()
                                                                                                                                                   .setMethodDescriptor(streamingDetectIntentMethodDescriptor)
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getSession())
                                                                                                                                                   .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSipTrunksStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSipTrunksStub.java
                                                                                                                                  index 843ab1723295..c8bdac1e0c88 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSipTrunksStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSipTrunksStub.java
                                                                                                                                  @@ -192,6 +192,7 @@ protected GrpcSipTrunksStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings deleteSipTrunkTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -202,6 +203,7 @@ protected GrpcSipTrunksStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings listSipTrunksTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -212,6 +214,7 @@ protected GrpcSipTrunksStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings getSipTrunkTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -222,6 +225,7 @@ protected GrpcSipTrunksStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateSipTrunkTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java
                                                                                                                                  index cf08a1db1d05..67d6f525d986 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java
                                                                                                                                  @@ -181,6 +181,7 @@ protected GrpcToolsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings getToolTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -191,6 +192,7 @@ protected GrpcToolsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings listToolsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -201,6 +203,7 @@ protected GrpcToolsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings deleteToolTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -211,6 +214,7 @@ protected GrpcToolsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateToolTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java
                                                                                                                                  index 4e25920d0ffc..3663308bd712 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java
                                                                                                                                  @@ -187,6 +187,7 @@ protected GrpcVersionsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings getVersionTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -197,6 +198,7 @@ protected GrpcVersionsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings createVersionTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -207,6 +209,7 @@ protected GrpcVersionsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings updateVersionTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  @@ -227,6 +230,7 @@ protected GrpcVersionsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                           GrpcCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAgentsStub.java
                                                                                                                                  index 44c020a498cd..f95e5117ffb9 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAgentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAgentsStub.java
                                                                                                                                  @@ -602,6 +602,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings setAgentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -624,6 +625,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings searchAgentsTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -635,6 +637,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings trainAgentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -646,6 +649,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings exportAgentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -657,6 +661,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings importAgentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -668,6 +673,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings restoreAgentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -679,6 +685,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           getValidationResultTransportSettings =
                                                                                                                                  @@ -691,6 +698,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAnswerRecordsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAnswerRecordsStub.java
                                                                                                                                  index 60e0ddfbbe15..aa8d2db3d609 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAnswerRecordsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAnswerRecordsStub.java
                                                                                                                                  @@ -318,6 +318,7 @@ protected HttpJsonAnswerRecordsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           updateAnswerRecordTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonContextsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonContextsStub.java
                                                                                                                                  index 485b93b1c570..15dbb8fd3255 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonContextsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonContextsStub.java
                                                                                                                                  @@ -434,6 +434,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings getContextTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -445,6 +446,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings createContextTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -456,6 +458,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateContextTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -478,6 +481,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings deleteAllContextsTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -489,6 +493,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationProfilesStub.java
                                                                                                                                  index 0a00aa745e93..add74a3c1d27 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationProfilesStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationProfilesStub.java
                                                                                                                                  @@ -570,6 +570,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           getConversationProfileTransportSettings =
                                                                                                                                  @@ -582,6 +583,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           createConversationProfileTransportSettings =
                                                                                                                                  @@ -594,6 +596,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           updateConversationProfileTransportSettings =
                                                                                                                                  @@ -620,6 +623,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           setSuggestionFeatureConfigTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationsStub.java
                                                                                                                                  index 933891f0803b..eef8c2eb4d6b 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationsStub.java
                                                                                                                                  @@ -722,6 +722,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listConversationsTransportSettings =
                                                                                                                                  @@ -734,6 +735,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings getConversationTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -745,6 +747,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           completeConversationTransportSettings =
                                                                                                                                  @@ -757,6 +760,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           ingestContextReferencesTransportSettings =
                                                                                                                                  @@ -770,6 +774,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           batchCreateMessagesTransportSettings =
                                                                                                                                  @@ -783,6 +788,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings listMessagesTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -794,6 +800,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           suggestConversationSummaryTransportSettings =
                                                                                                                                  @@ -807,6 +814,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           generateStatelessSummaryTransportSettings =
                                                                                                                                  @@ -822,6 +830,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                             String.valueOf(request.getStatelessConversation().getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getLatestMessage())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           generateStatelessSuggestionTransportSettings =
                                                                                                                                  @@ -836,6 +845,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           searchKnowledgeTransportSettings =
                                                                                                                                  @@ -849,6 +859,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getConversationProfile())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           generateSuggestionsTransportSettings =
                                                                                                                                  @@ -862,6 +873,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                         builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonDocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonDocumentsStub.java
                                                                                                                                  index 33b4a99ab2dd..2e849aad9bb9 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonDocumentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonDocumentsStub.java
                                                                                                                                  @@ -555,6 +555,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings getDocumentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -566,6 +567,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings createDocumentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -577,6 +579,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings importDocumentsTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -588,6 +591,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings deleteDocumentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -599,6 +603,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateDocumentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -621,6 +626,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                                                  index 205d8afd0f5f..2beb0dd908a8 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                                                  @@ -321,6 +321,7 @@ protected HttpJsonEncryptionSpecServiceStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           initializeEncryptionSpecTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEntityTypesStub.java
                                                                                                                                  index 1c2b632a61db..7fee5641b562 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEntityTypesStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEntityTypesStub.java
                                                                                                                                  @@ -680,6 +680,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings getEntityTypeTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -691,6 +692,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings createEntityTypeTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -702,6 +704,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateEntityTypeTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -725,6 +728,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           batchUpdateEntityTypesTransportSettings =
                                                                                                                                  @@ -737,6 +741,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           batchDeleteEntityTypesTransportSettings =
                                                                                                                                  @@ -749,6 +754,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           batchCreateEntitiesTransportSettings =
                                                                                                                                  @@ -761,6 +767,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           batchUpdateEntitiesTransportSettings =
                                                                                                                                  @@ -773,6 +780,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           batchDeleteEntitiesTransportSettings =
                                                                                                                                  @@ -785,6 +793,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEnvironmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEnvironmentsStub.java
                                                                                                                                  index d025c165be6c..c74357d2b359 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEnvironmentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEnvironmentsStub.java
                                                                                                                                  @@ -440,6 +440,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings getEnvironmentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -451,6 +452,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings createEnvironmentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -462,6 +464,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateEnvironmentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -485,6 +488,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           getEnvironmentHistoryTransportSettings =
                                                                                                                                  @@ -497,6 +501,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonFulfillmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonFulfillmentsStub.java
                                                                                                                                  index 5c122f31421d..b048507ef2a9 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonFulfillmentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonFulfillmentsStub.java
                                                                                                                                  @@ -262,6 +262,7 @@ protected HttpJsonFulfillmentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateFulfillmentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                                                  index d2a4e4fc1585..cb2b715e82d5 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                                                  @@ -407,6 +407,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           getGeneratorEvaluationTransportSettings =
                                                                                                                                  @@ -419,6 +420,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listGeneratorEvaluationsTransportSettings =
                                                                                                                                  @@ -432,6 +434,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           deleteGeneratorEvaluationTransportSettings =
                                                                                                                                  @@ -444,6 +447,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorsStub.java
                                                                                                                                  index f28700333fae..1f58409b8fc9 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorsStub.java
                                                                                                                                  @@ -380,6 +380,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings getGeneratorTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -391,6 +392,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listGeneratorsTransportSettings =
                                                                                                                                  @@ -403,6 +405,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings deleteGeneratorTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -414,6 +417,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateGeneratorTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonIntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonIntentsStub.java
                                                                                                                                  index d3f775d6a1ad..2521dee8ee22 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonIntentsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonIntentsStub.java
                                                                                                                                  @@ -537,6 +537,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings getIntentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -548,6 +549,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings createIntentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -559,6 +561,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateIntentTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -581,6 +584,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings batchUpdateIntentsTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -592,6 +596,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings batchDeleteIntentsTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -603,6 +608,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonKnowledgeBasesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                                                  index 699d3569bb0a..f75513a09a49 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                                                  @@ -401,6 +401,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings getKnowledgeBaseTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -412,6 +413,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           createKnowledgeBaseTransportSettings =
                                                                                                                                  @@ -424,6 +426,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings deleteKnowledgeBaseTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -435,6 +438,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           updateKnowledgeBaseTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java
                                                                                                                                  index 3494bdf36114..5b5fddffec22 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java
                                                                                                                                  @@ -657,6 +657,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings getParticipantTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -668,6 +669,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listParticipantsTransportSettings =
                                                                                                                                  @@ -680,6 +682,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings updateParticipantTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -704,6 +707,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                         builder.add("participant", String.valueOf(request.getParticipant()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           suggestArticlesTransportSettings =
                                                                                                                                  @@ -716,6 +720,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           suggestFaqAnswersTransportSettings =
                                                                                                                                  @@ -728,6 +733,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           suggestSmartRepliesTransportSettings =
                                                                                                                                  @@ -741,6 +747,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           suggestKnowledgeAssistTransportSettings =
                                                                                                                                  @@ -754,6 +761,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listSuggestionsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonPhoneNumbersStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonPhoneNumbersStub.java
                                                                                                                                  index ad863a81cdf1..1f0d91a62bb5 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonPhoneNumbersStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonPhoneNumbersStub.java
                                                                                                                                  @@ -349,6 +349,7 @@ protected HttpJsonPhoneNumbersStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings updatePhoneNumberTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -372,6 +373,7 @@ protected HttpJsonPhoneNumbersStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           undeletePhoneNumberTransportSettings =
                                                                                                                                  @@ -384,6 +386,7 @@ protected HttpJsonPhoneNumbersStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                                                  index a84c9f55336e..fb2c2bc40baa 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                                                  @@ -416,6 +416,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           getSessionEntityTypeTransportSettings =
                                                                                                                                  @@ -428,6 +429,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           createSessionEntityTypeTransportSettings =
                                                                                                                                  @@ -440,6 +442,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           updateSessionEntityTypeTransportSettings =
                                                                                                                                  @@ -466,6 +469,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                                                         builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionsStub.java
                                                                                                                                  index 077debb42642..e396cad355b0 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionsStub.java
                                                                                                                                  @@ -226,6 +226,7 @@ protected HttpJsonSessionsStub(
                                                                                                                                                     builder.add("session", String.valueOf(request.getSession()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getSession())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSipTrunksStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSipTrunksStub.java
                                                                                                                                  index 1fe54956e316..bfa502b7bea2 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSipTrunksStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSipTrunksStub.java
                                                                                                                                  @@ -375,6 +375,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings deleteSipTrunkTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -386,6 +387,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listSipTrunksTransportSettings =
                                                                                                                                  @@ -398,6 +400,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                                                         builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                         return builder.build();
                                                                                                                                                       })
                                                                                                                                  +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                   .build();
                                                                                                                                       HttpJsonCallSettings getSipTrunkTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -409,6 +412,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateSipTrunkTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java
                                                                                                                                  index 2d07168342cd..fb541d7ace3d 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java
                                                                                                                                  @@ -366,6 +366,7 @@ protected HttpJsonToolsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings getToolTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -377,6 +378,7 @@ protected HttpJsonToolsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings listToolsTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -388,6 +390,7 @@ protected HttpJsonToolsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings deleteToolTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -399,6 +402,7 @@ protected HttpJsonToolsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateToolTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonVersionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonVersionsStub.java
                                                                                                                                  index 9fab362bb197..63f780c563cf 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonVersionsStub.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonVersionsStub.java
                                                                                                                                  @@ -380,6 +380,7 @@ protected HttpJsonVersionsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings getVersionTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -391,6 +392,7 @@ protected HttpJsonVersionsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings createVersionTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -402,6 +404,7 @@ protected HttpJsonVersionsStub(
                                                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings updateVersionTransportSettings =
                                                                                                                                           HttpJsonCallSettings.newBuilder()
                                                                                                                                  @@ -424,6 +427,7 @@ protected HttpJsonVersionsStub(
                                                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                     return builder.build();
                                                                                                                                                   })
                                                                                                                                  +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                               .build();
                                                                                                                                       HttpJsonCallSettings
                                                                                                                                           listLocationsTransportSettings =
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java
                                                                                                                                  index 23567e888faa..8bec90a29533 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java
                                                                                                                                  @@ -468,6 +468,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java
                                                                                                                                  index 0006f35a7089..bbeb94e5ce76 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java
                                                                                                                                  @@ -417,6 +417,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java
                                                                                                                                  index 501727f5c1b0..4e3212cb62bb 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java
                                                                                                                                  @@ -573,6 +573,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                       return LibraryMetadata.newBuilder()
                                                                                                                                           .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                           .setRepository("googleapis/google-cloud-java")
                                                                                                                                  +        .setVersion(Version.VERSION)
                                                                                                                                           .build();
                                                                                                                                     }
                                                                                                                                   
                                                                                                                                  @@ -629,7 +630,7 @@ public static class Builder extends StubSettings.BuildernewArrayList()));
                                                                                                                                         definitions.put(
                                                                                                                                  -          "retry_policy_8_codes", ImmutableSet.copyOf(Lists.newArrayList()));
                                                                                                                                  +          "retry_policy_7_codes", ImmutableSet.copyOf(Lists.newArrayList()));
                                                                                                                                         RETRYABLE_CODE_DEFINITIONS = definitions.build();
                                                                                                                                       }
                                                                                                                                   
                                                                                                                                  @@ -678,7 +679,7 @@ public static class Builder extends StubSettings.Builder())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -159,7 +161,9 @@ public void createConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -216,7 +220,9 @@ public void createConversationTest3() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -423,7 +429,9 @@ public void getConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -480,7 +488,9 @@ public void getConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -535,7 +545,9 @@ public void completeConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -592,7 +604,9 @@ public void completeConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -1076,6 +1090,7 @@ public void searchKnowledgeTest() throws Exception {
                                                                                                                                           SearchKnowledgeResponse.newBuilder()
                                                                                                                                               .addAllAnswers(new ArrayList())
                                                                                                                                               .setRewrittenQuery("rewrittenQuery-1572767836")
                                                                                                                                  +            .setSearchKnowledgeDebugInfo(SearchKnowledgeDebugInfo.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java
                                                                                                                                  index 70dada9108aa..8c1440426df4 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java
                                                                                                                                  @@ -108,7 +108,9 @@ public void createConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -160,7 +162,9 @@ public void createConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -212,7 +216,9 @@ public void createConversationTest3() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -396,7 +402,9 @@ public void getConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -447,7 +455,9 @@ public void getConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -496,7 +506,9 @@ public void completeConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -548,7 +560,9 @@ public void completeConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -989,6 +1003,7 @@ public void searchKnowledgeTest() throws Exception {
                                                                                                                                           SearchKnowledgeResponse.newBuilder()
                                                                                                                                               .addAllAnswers(new ArrayList())
                                                                                                                                               .setRewrittenQuery("rewrittenQuery-1572767836")
                                                                                                                                  +            .setSearchKnowledgeDebugInfo(SearchKnowledgeDebugInfo.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientHttpJsonTest.java
                                                                                                                                  index 0ebecf09593b..5b00315da7f9 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientHttpJsonTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientHttpJsonTest.java
                                                                                                                                  @@ -97,6 +97,9 @@ public void createGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -152,6 +155,9 @@ public void createGeneratorTest2() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -207,6 +213,9 @@ public void getGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -258,6 +267,9 @@ public void getGeneratorTest2() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -489,6 +501,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -502,6 +517,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                   
                                                                                                                                  @@ -541,6 +559,9 @@ public void updateGeneratorExceptionTest() throws Exception {
                                                                                                                                                 .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                 .addAllTools(new ArrayList())
                                                                                                                                                 .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +              .addAllToolsetTools(new ArrayList())
                                                                                                                                  +              .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +              .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                 .build();
                                                                                                                                         FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                         client.updateGenerator(generator, updateMask);
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientTest.java
                                                                                                                                  index 7d0736aa94a5..51ad6d406f2e 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientTest.java
                                                                                                                                  @@ -104,6 +104,9 @@ public void createGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -155,6 +158,9 @@ public void createGeneratorTest2() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -206,6 +212,9 @@ public void getGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -251,6 +260,9 @@ public void getGeneratorTest2() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -452,6 +464,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java
                                                                                                                                  index 8f2dd022cf2b..c1d7ba44aa3c 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java
                                                                                                                                  @@ -743,6 +743,7 @@ public void streamingAnalyzeContentTest() throws Exception {
                                                                                                                                               .setCxParameters(Struct.newBuilder().build())
                                                                                                                                               .setEnableExtendedStreaming(true)
                                                                                                                                               .setEnablePartialAutomatedAgentReply(true)
                                                                                                                                  +            .setOutputMultipleUtterances(true)
                                                                                                                                               .setEnableDebuggingInfo(true)
                                                                                                                                               .build();
                                                                                                                                   
                                                                                                                                  @@ -778,6 +779,7 @@ public void streamingAnalyzeContentExceptionTest() throws Exception {
                                                                                                                                               .setCxParameters(Struct.newBuilder().build())
                                                                                                                                               .setEnableExtendedStreaming(true)
                                                                                                                                               .setEnablePartialAutomatedAgentReply(true)
                                                                                                                                  +            .setOutputMultipleUtterances(true)
                                                                                                                                               .setEnableDebuggingInfo(true)
                                                                                                                                               .build();
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java
                                                                                                                                  index 17a5152f96a6..e86e200b272b 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java
                                                                                                                                  @@ -251,6 +251,7 @@ public void getConversationProfileTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -317,6 +318,7 @@ public void getConversationProfileTest2() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -379,6 +381,7 @@ public void createConversationProfileTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -444,6 +447,7 @@ public void createConversationProfileTest2() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -509,6 +513,7 @@ public void createConversationProfileTest3() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -574,6 +579,7 @@ public void updateConversationProfileTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -598,6 +604,7 @@ public void updateConversationProfileTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -649,6 +656,7 @@ public void updateConversationProfileExceptionTest() throws Exception {
                                                                                                                                                 .setDisplayName("displayName1714148973")
                                                                                                                                                 .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                 .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +              .setUseBidiStreaming(true)
                                                                                                                                                 .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                 .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                 .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -765,6 +773,7 @@ public void setSuggestionFeatureConfigTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -835,6 +844,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -917,6 +927,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -987,6 +998,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java
                                                                                                                                  index e1904cae4eef..f33ab4cbf1b8 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java
                                                                                                                                  @@ -243,6 +243,7 @@ public void getConversationProfileTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -304,6 +305,7 @@ public void getConversationProfileTest2() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -361,6 +363,7 @@ public void createConversationProfileTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -422,6 +425,7 @@ public void createConversationProfileTest2() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -483,6 +487,7 @@ public void createConversationProfileTest3() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -544,6 +549,7 @@ public void updateConversationProfileTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -679,6 +685,7 @@ public void setSuggestionFeatureConfigTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -745,6 +752,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -825,6 +833,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  @@ -891,6 +900,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception {
                                                                                                                                               .setDisplayName("displayName1714148973")
                                                                                                                                               .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                  +            .setUseBidiStreaming(true)
                                                                                                                                               .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                               .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java
                                                                                                                                  index 3347a1c79662..0726f3a4d064 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java
                                                                                                                                  @@ -102,7 +102,9 @@ public void createConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -159,7 +161,9 @@ public void createConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -216,7 +220,9 @@ public void createConversationTest3() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -423,7 +429,9 @@ public void getConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -480,7 +488,9 @@ public void getConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -535,7 +545,9 @@ public void completeConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -592,7 +604,9 @@ public void completeConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -1166,6 +1180,7 @@ public void searchKnowledgeTest() throws Exception {
                                                                                                                                           SearchKnowledgeResponse.newBuilder()
                                                                                                                                               .addAllAnswers(new ArrayList())
                                                                                                                                               .setRewrittenQuery("rewrittenQuery-1572767836")
                                                                                                                                  +            .setSearchKnowledgeDebugInfo(SearchKnowledgeDebugInfo.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java
                                                                                                                                  index d867d7d25bc3..4116b29e9b66 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java
                                                                                                                                  @@ -108,7 +108,9 @@ public void createConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -160,7 +162,9 @@ public void createConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -212,7 +216,9 @@ public void createConversationTest3() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -396,7 +402,9 @@ public void getConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -447,7 +455,9 @@ public void getConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -496,7 +506,9 @@ public void completeConversationTest() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -548,7 +560,9 @@ public void completeConversationTest2() throws Exception {
                                                                                                                                               .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                               .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                               .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                  +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                               .putAllIngestedContextReferences(new HashMap())
                                                                                                                                  +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -1069,6 +1083,7 @@ public void searchKnowledgeTest() throws Exception {
                                                                                                                                           SearchKnowledgeResponse.newBuilder()
                                                                                                                                               .addAllAnswers(new ArrayList())
                                                                                                                                               .setRewrittenQuery("rewrittenQuery-1572767836")
                                                                                                                                  +            .setSearchKnowledgeDebugInfo(SearchKnowledgeDebugInfo.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockConversations.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java
                                                                                                                                  index e4d76781113b..40f8b3f4efee 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java
                                                                                                                                  @@ -97,6 +97,9 @@ public void createGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -152,6 +155,9 @@ public void createGeneratorTest2() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -207,6 +213,9 @@ public void getGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -258,6 +267,9 @@ public void getGeneratorTest2() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -489,6 +501,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -502,6 +517,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                   
                                                                                                                                  @@ -541,6 +559,9 @@ public void updateGeneratorExceptionTest() throws Exception {
                                                                                                                                                 .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                 .addAllTools(new ArrayList())
                                                                                                                                                 .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +              .addAllToolsetTools(new ArrayList())
                                                                                                                                  +              .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +              .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                 .build();
                                                                                                                                         FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                         client.updateGenerator(generator, updateMask);
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java
                                                                                                                                  index a1d6570f272c..7ec3513200d8 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java
                                                                                                                                  @@ -104,6 +104,9 @@ public void createGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -155,6 +158,9 @@ public void createGeneratorTest2() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -206,6 +212,9 @@ public void getGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -251,6 +260,9 @@ public void getGeneratorTest2() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -452,6 +464,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                               .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                               .addAllTools(new ArrayList())
                                                                                                                                               .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                  +            .addAllToolsetTools(new ArrayList())
                                                                                                                                  +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                  +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                               .build();
                                                                                                                                       mockGenerators.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientHttpJsonTest.java
                                                                                                                                  index e801d10a2b27..e0a5663290b0 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientHttpJsonTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientHttpJsonTest.java
                                                                                                                                  @@ -36,6 +36,7 @@
                                                                                                                                   import com.google.common.collect.Lists;
                                                                                                                                   import com.google.protobuf.Any;
                                                                                                                                   import com.google.protobuf.FieldMask;
                                                                                                                                  +import com.google.protobuf.Timestamp;
                                                                                                                                   import java.io.IOException;
                                                                                                                                   import java.util.Arrays;
                                                                                                                                   import java.util.HashMap;
                                                                                                                                  @@ -241,6 +242,7 @@ public void updatePhoneNumberTest() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -250,6 +252,7 @@ public void updatePhoneNumberTest() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                   
                                                                                                                                  @@ -286,6 +289,7 @@ public void updatePhoneNumberExceptionTest() throws Exception {
                                                                                                                                                         .toString())
                                                                                                                                                 .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                 .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +              .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                         client.updatePhoneNumber(phoneNumber, updateMask);
                                                                                                                                  @@ -303,6 +307,7 @@ public void deletePhoneNumberTest() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -351,6 +356,7 @@ public void deletePhoneNumberTest2() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -398,6 +404,7 @@ public void undeletePhoneNumberTest() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -446,6 +453,7 @@ public void undeletePhoneNumberTest2() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockService.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientTest.java
                                                                                                                                  index deca0b1c5030..a65fe269a873 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientTest.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientTest.java
                                                                                                                                  @@ -34,6 +34,7 @@
                                                                                                                                   import com.google.protobuf.AbstractMessage;
                                                                                                                                   import com.google.protobuf.Any;
                                                                                                                                   import com.google.protobuf.FieldMask;
                                                                                                                                  +import com.google.protobuf.Timestamp;
                                                                                                                                   import io.grpc.StatusRuntimeException;
                                                                                                                                   import java.io.IOException;
                                                                                                                                   import java.util.Arrays;
                                                                                                                                  @@ -229,6 +230,7 @@ public void updatePhoneNumberTest() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -273,6 +275,7 @@ public void deletePhoneNumberTest() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -315,6 +318,7 @@ public void deletePhoneNumberTest2() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -356,6 +360,7 @@ public void undeletePhoneNumberTest() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  @@ -398,6 +403,7 @@ public void undeletePhoneNumberTest2() throws Exception {
                                                                                                                                                   PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                               .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                               .setConversationProfile("conversationProfile1691597734")
                                                                                                                                  +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                               .build();
                                                                                                                                       mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                   
                                                                                                                                  diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java
                                                                                                                                  new file mode 100644
                                                                                                                                  index 000000000000..cbe55897c7de
                                                                                                                                  --- /dev/null
                                                                                                                                  +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java
                                                                                                                                  @@ -0,0 +1,102 @@
                                                                                                                                  +/*
                                                                                                                                  + * Copyright 2026 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!
                                                                                                                                  +// NO CHECKED-IN PROTOBUF GENCODE
                                                                                                                                  +// source: google/cloud/dialogflow/v2/ces_app.proto
                                                                                                                                  +// Protobuf Java Version: 4.33.2
                                                                                                                                  +
                                                                                                                                  +package com.google.cloud.dialogflow.v2;
                                                                                                                                  +
                                                                                                                                  +@com.google.protobuf.Generated
                                                                                                                                  +public final class CesAppProto extends com.google.protobuf.GeneratedFile {
                                                                                                                                  +  private CesAppProto() {}
                                                                                                                                  +
                                                                                                                                  +  static {
                                                                                                                                  +    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
                                                                                                                                  +        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
                                                                                                                                  +        /* major= */ 4,
                                                                                                                                  +        /* minor= */ 33,
                                                                                                                                  +        /* patch= */ 2,
                                                                                                                                  +        /* suffix= */ "",
                                                                                                                                  +        "CesAppProto");
                                                                                                                                  +  }
                                                                                                                                  +
                                                                                                                                  +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
                                                                                                                                  +
                                                                                                                                  +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
                                                                                                                                  +    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
                                                                                                                                  +  }
                                                                                                                                  +
                                                                                                                                  +  static final com.google.protobuf.Descriptors.Descriptor
                                                                                                                                  +      internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor;
                                                                                                                                  +  static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
                                                                                                                                  +      internal_static_google_cloud_dialogflow_v2_CesAppSpec_fieldAccessorTable;
                                                                                                                                  +
                                                                                                                                  +  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                                                                                                                  +    return descriptor;
                                                                                                                                  +  }
                                                                                                                                  +
                                                                                                                                  +  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
                                                                                                                                  +
                                                                                                                                  +  static {
                                                                                                                                  +    java.lang.String[] descriptorData = {
                                                                                                                                  +      "\n(google/cloud/dialogflow/v2/ces_app.pro"
                                                                                                                                  +          + "to\022\032google.cloud.dialogflow.v2\032\037google/a"
                                                                                                                                  +          + "pi/field_behavior.proto\032\031google/api/reso"
                                                                                                                                  +          + "urce.proto\032%google/cloud/dialogflow/v2/t"
                                                                                                                                  +          + "ool.proto\"\236\001\n\nCesAppSpec\022/\n\007ces_app\030\001 \001("
                                                                                                                                  +          + "\tB\036\340A\001\372A\030\n\026ces.googleapis.com/App\022_\n\030con"
                                                                                                                                  +          + "firmation_requirement\030\002 \001(\01628.google.clo"
                                                                                                                                  +          + "ud.dialogflow.v2.Tool.ConfirmationRequir"
                                                                                                                                  +          + "ementB\003\340A\001B\340\001\n\036com.google.cloud.dialogfl"
                                                                                                                                  +          + "ow.v2B\013CesAppProtoP\001Z>cloud.google.com/g"
                                                                                                                                  +          + "o/dialogflow/apiv2/dialogflowpb;dialogfl"
                                                                                                                                  +          + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A"
                                                                                                                                  +          + "L\n\026ces.googleapis.com/App\0222projects/{pro"
                                                                                                                                  +          + "ject}/locations/{location}/apps/{app}b\006p"
                                                                                                                                  +          + "roto3"
                                                                                                                                  +    };
                                                                                                                                  +    descriptor =
                                                                                                                                  +        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
                                                                                                                                  +            descriptorData,
                                                                                                                                  +            new com.google.protobuf.Descriptors.FileDescriptor[] {
                                                                                                                                  +              com.google.api.FieldBehaviorProto.getDescriptor(),
                                                                                                                                  +              com.google.api.ResourceProto.getDescriptor(),
                                                                                                                                  +              com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(),
                                                                                                                                  +            });
                                                                                                                                  +    internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor =
                                                                                                                                  +        getDescriptor().getMessageType(0);
                                                                                                                                  +    internal_static_google_cloud_dialogflow_v2_CesAppSpec_fieldAccessorTable =
                                                                                                                                  +        new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                                                                                                                  +            internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor,
                                                                                                                                  +            new java.lang.String[] {
                                                                                                                                  +              "CesApp", "ConfirmationRequirement",
                                                                                                                                  +            });
                                                                                                                                  +    descriptor.resolveAllFeaturesImmutable();
                                                                                                                                  +    com.google.api.FieldBehaviorProto.getDescriptor();
                                                                                                                                  +    com.google.api.ResourceProto.getDescriptor();
                                                                                                                                  +    com.google.cloud.dialogflow.v2.ToolProto.getDescriptor();
                                                                                                                                  +    com.google.protobuf.ExtensionRegistry registry =
                                                                                                                                  +        com.google.protobuf.ExtensionRegistry.newInstance();
                                                                                                                                  +    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
                                                                                                                                  +    registry.add(com.google.api.ResourceProto.resourceDefinition);
                                                                                                                                  +    registry.add(com.google.api.ResourceProto.resourceReference);
                                                                                                                                  +    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
                                                                                                                                  +        descriptor, registry);
                                                                                                                                  +  }
                                                                                                                                  +
                                                                                                                                  +  // @@protoc_insertion_point(outer_class_scope)
                                                                                                                                  +}
                                                                                                                                  diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java
                                                                                                                                  new file mode 100644
                                                                                                                                  index 000000000000..6b27b0255070
                                                                                                                                  --- /dev/null
                                                                                                                                  +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java
                                                                                                                                  @@ -0,0 +1,799 @@
                                                                                                                                  +/*
                                                                                                                                  + * Copyright 2026 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!
                                                                                                                                  +// NO CHECKED-IN PROTOBUF GENCODE
                                                                                                                                  +// source: google/cloud/dialogflow/v2/ces_app.proto
                                                                                                                                  +// Protobuf Java Version: 4.33.2
                                                                                                                                  +
                                                                                                                                  +package com.google.cloud.dialogflow.v2;
                                                                                                                                  +
                                                                                                                                  +/**
                                                                                                                                  + *
                                                                                                                                  + *
                                                                                                                                  + * 
                                                                                                                                  + * Spec of CES app that the generator can choose from.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.CesAppSpec} + */ +@com.google.protobuf.Generated +public final class CesAppSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CesAppSpec) + CesAppSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesAppSpec"); + } + + // Use CesAppSpec.newBuilder() to construct. + private CesAppSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesAppSpec() { + cesApp_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.CesAppSpec.class, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder.class); + } + + public static final int CES_APP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cesApp_ = ""; + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + @java.lang.Override + public java.lang.String getCesApp() { + java.lang.Object ref = cesApp_; + 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(); + cesApp_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = cesApp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesApp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 2; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(cesApp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cesApp_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesApp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cesApp_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); + } + 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.dialogflow.v2.CesAppSpec)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.CesAppSpec other = + (com.google.cloud.dialogflow.v2.CesAppSpec) obj; + + if (!getCesApp().equals(other.getCesApp())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) 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) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec 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.dialogflow.v2.CesAppSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec 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.dialogflow.v2.CesAppSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.CesAppSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Spec of CES app that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.CesAppSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CesAppSpec) + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.CesAppSpec.class, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.CesAppSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cesApp_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.CesAppSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec build() { + com.google.cloud.dialogflow.v2.CesAppSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec buildPartial() { + com.google.cloud.dialogflow.v2.CesAppSpec result = + new com.google.cloud.dialogflow.v2.CesAppSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.CesAppSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cesApp_ = cesApp_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.CesAppSpec) { + return mergeFrom((com.google.cloud.dialogflow.v2.CesAppSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.CesAppSpec other) { + if (other == com.google.cloud.dialogflow.v2.CesAppSpec.getDefaultInstance()) return this; + if (!other.getCesApp().isEmpty()) { + cesApp_ = other.cesApp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + 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: + { + cesApp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 cesApp_ = ""; + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = cesApp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesApp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = cesApp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesApp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cesApp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesApp() { + cesApp_ = getDefaultInstance().getCesApp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cesApp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000002); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CesAppSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CesAppSpec) + private static final com.google.cloud.dialogflow.v2.CesAppSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CesAppSpec(); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesAppSpec 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.dialogflow.v2.CesAppSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java new file mode 100644 index 000000000000..ec85a9bb4949 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/ces_app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface CesAppSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CesAppSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolProto.java new file mode 100644 index 000000000000..291a5e591149 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolProto.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public final class CesToolProto extends com.google.protobuf.GeneratedFile { + private CesToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_CesToolSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/dialogflow/v2/ces_tool.pr" + + "oto\022\032google.cloud.dialogflow.v2\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032%google/cloud/dialogflow/v2/" + + "tool.proto\"\241\001\n\013CesToolSpec\0221\n\010ces_tool\030\001" + + " \001(\tB\037\340A\001\372A\031\n\027ces.googleapis.com/Tool\022_\n" + + "\030confirmation_requirement\030\002 \001(\01628.google" + + ".cloud.dialogflow.v2.Tool.ConfirmationRe" + + "quirementB\003\340A\001B\222\001\n\036com.google.cloud.dial" + + "ogflow.v2B\014CesToolProtoP\001Z>cloud.google." + + "com/go/dialogflow/apiv2/dialogflowpb;dia" + + "logflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow" + + ".V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2_CesToolSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor, + new java.lang.String[] { + "CesTool", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpec.java new file mode 100644 index 000000000000..e98334875683 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpec.java @@ -0,0 +1,799 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                  + * Spec of CES tool that the generator can choose from.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.CesToolSpec} + */ +@com.google.protobuf.Generated +public final class CesToolSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CesToolSpec) + CesToolSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesToolSpec"); + } + + // Use CesToolSpec.newBuilder() to construct. + private CesToolSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesToolSpec() { + cesTool_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.CesToolSpec.class, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder.class); + } + + public static final int CES_TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cesTool_ = ""; + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>/tools/<tool ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = cesTool_; + 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(); + cesTool_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>/tools/<tool ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = cesTool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesTool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 2; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(cesTool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cesTool_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesTool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cesTool_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); + } + 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.dialogflow.v2.CesToolSpec)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.CesToolSpec other = + (com.google.cloud.dialogflow.v2.CesToolSpec) obj; + + if (!getCesTool().equals(other.getCesTool())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) 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) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec 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.dialogflow.v2.CesToolSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec 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.dialogflow.v2.CesToolSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.CesToolSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Spec of CES tool that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.CesToolSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CesToolSpec) + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.CesToolSpec.class, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.CesToolSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cesTool_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.CesToolSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec build() { + com.google.cloud.dialogflow.v2.CesToolSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec buildPartial() { + com.google.cloud.dialogflow.v2.CesToolSpec result = + new com.google.cloud.dialogflow.v2.CesToolSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.CesToolSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cesTool_ = cesTool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.CesToolSpec) { + return mergeFrom((com.google.cloud.dialogflow.v2.CesToolSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.CesToolSpec other) { + if (other == com.google.cloud.dialogflow.v2.CesToolSpec.getDefaultInstance()) return this; + if (!other.getCesTool().isEmpty()) { + cesTool_ = other.cesTool_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + 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: + { + cesTool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 cesTool_ = ""; + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = cesTool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesTool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = cesTool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesTool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cesTool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + cesTool_ = getDefaultInstance().getCesTool(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cesTool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000002); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CesToolSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CesToolSpec) + private static final com.google.cloud.dialogflow.v2.CesToolSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CesToolSpec(); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesToolSpec 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.dialogflow.v2.CesToolSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpecOrBuilder.java new file mode 100644 index 000000000000..9b3534d2623c --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface CesToolSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CesToolSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>/tools/<tool ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>/tools/<tool ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java index 5acf407a3e65..53c2fa09447e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java @@ -73,6 +73,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 17: return internalGetIngestedContextReferences(); + case 18: + return internalGetInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -7984,6 +7986,885 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface GeneratorContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * Output only. The type of the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + int getGeneratorTypeValue(); + + /** + * + * + *
                                                                                                                                  +     * Output only. The type of the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType getGeneratorType(); + } + + /** + * + * + *
                                                                                                                                  +   * Represents the context of a generator.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.Conversation.GeneratorContext} + */ + public static final class GeneratorContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + GeneratorContextOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeneratorContext"); + } + + // Use GeneratorContext.newBuilder() to construct. + private GeneratorContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GeneratorContext() { + generatorType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.class, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder.class); + } + + /** + * + * + *
                                                                                                                                  +     * The available generator types.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf enum {@code google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType} + */ + public enum GeneratorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +       * Unspecified generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * GENERATOR_TYPE_UNSPECIFIED = 0; + */ + GENERATOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +       * Free form generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * FREE_FORM = 1; + */ + FREE_FORM(1), + /** + * + * + *
                                                                                                                                  +       * Agent coaching generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * AGENT_COACHING = 2; + */ + AGENT_COACHING(2), + /** + * + * + *
                                                                                                                                  +       * Summarization generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * SUMMARIZATION = 3; + */ + SUMMARIZATION(3), + /** + * + * + *
                                                                                                                                  +       * Translation generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * TRANSLATION = 4; + */ + TRANSLATION(4), + /** + * + * + *
                                                                                                                                  +       * Agent feedback generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * AGENT_FEEDBACK = 5; + */ + AGENT_FEEDBACK(5), + /** + * + * + *
                                                                                                                                  +       * Customer message generation generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * CUSTOMER_MESSAGE_GENERATION = 6; + */ + CUSTOMER_MESSAGE_GENERATION(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeneratorType"); + } + + /** + * + * + *
                                                                                                                                  +       * Unspecified generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * GENERATOR_TYPE_UNSPECIFIED = 0; + */ + public static final int GENERATOR_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +       * Free form generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * FREE_FORM = 1; + */ + public static final int FREE_FORM_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +       * Agent coaching generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * AGENT_COACHING = 2; + */ + public static final int AGENT_COACHING_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +       * Summarization generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * SUMMARIZATION = 3; + */ + public static final int SUMMARIZATION_VALUE = 3; + + /** + * + * + *
                                                                                                                                  +       * Translation generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * TRANSLATION = 4; + */ + public static final int TRANSLATION_VALUE = 4; + + /** + * + * + *
                                                                                                                                  +       * Agent feedback generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * AGENT_FEEDBACK = 5; + */ + public static final int AGENT_FEEDBACK_VALUE = 5; + + /** + * + * + *
                                                                                                                                  +       * Customer message generation generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * CUSTOMER_MESSAGE_GENERATION = 6; + */ + public static final int CUSTOMER_MESSAGE_GENERATION_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GeneratorType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GeneratorType forNumber(int value) { + switch (value) { + case 0: + return GENERATOR_TYPE_UNSPECIFIED; + case 1: + return FREE_FORM; + case 2: + return AGENT_COACHING; + case 3: + return SUMMARIZATION; + case 4: + return TRANSLATION; + case 5: + return AGENT_FEEDBACK; + case 6: + return CUSTOMER_MESSAGE_GENERATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GeneratorType findValueByNumber(int number) { + return GeneratorType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GeneratorType[] VALUES = values(); + + public static GeneratorType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GeneratorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType) + } + + public static final int GENERATOR_TYPE_FIELD_NUMBER = 1; + private int generatorType_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Output only. The type of the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + @java.lang.Override + public int getGeneratorTypeValue() { + return generatorType_; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The type of the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + getGeneratorType() { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType result = + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType.forNumber( + generatorType_); + return result == null + ? com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType.UNRECOGNIZED + : result; + } + + 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 (generatorType_ + != com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + .GENERATOR_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, generatorType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (generatorType_ + != com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + .GENERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, generatorType_); + } + 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.dialogflow.v2.Conversation.GeneratorContext)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext other = + (com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) obj; + + if (generatorType_ != other.generatorType_) 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) + GENERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + generatorType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext 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.dialogflow.v2.Conversation.GeneratorContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext 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.dialogflow.v2.Conversation.GeneratorContext parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.Conversation.GeneratorContext 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Represents the context of a generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.Conversation.GeneratorContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.class, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatorType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext build() { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext buildPartial() { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext result = + new com.google.cloud.dialogflow.v2.Conversation.GeneratorContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatorType_ = generatorType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) { + return mergeFrom((com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.Conversation.GeneratorContext other) { + if (other + == com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.getDefaultInstance()) + return this; + if (other.generatorType_ != 0) { + setGeneratorTypeValue(other.getGeneratorTypeValue()); + } + 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 8: + { + generatorType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int generatorType_ = 0; + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + @java.lang.Override + public int getGeneratorTypeValue() { + return generatorType_; + } + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for generatorType to set. + * @return This builder for chaining. + */ + public Builder setGeneratorTypeValue(int value) { + generatorType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + getGeneratorType() { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType result = + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType.forNumber( + generatorType_); + return result == null + ? com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The generatorType to set. + * @return This builder for chaining. + */ + public Builder setGeneratorType( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + generatorType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGeneratorType() { + bitField0_ = (bitField0_ & ~0x00000001); + generatorType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + private static final com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Conversation.GeneratorContext(); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratorContext 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.dialogflow.v2.Conversation.GeneratorContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -8453,6 +9334,72 @@ public boolean hasTelephonyConnectionInfo() { : telephonyConnectionInfo_; } + public static final int INITIAL_CONVERSATION_PROFILE_FIELD_NUMBER = 15; + private com.google.cloud.dialogflow.v2.ConversationProfile initialConversationProfile_; + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + @java.lang.Override + public boolean hasInitialConversationProfile() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ConversationProfile getInitialConversationProfile() { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder() { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } + public static final int INGESTED_CONTEXT_REFERENCES_FIELD_NUMBER = 17; private static final class IngestedContextReferencesDefaultEntryHolder { @@ -8506,58 +9453,194 @@ public boolean containsIngestedContextReferences(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetIngestedContextReferences().getMap().containsKey(key); + return internalGetIngestedContextReferences().getMap().containsKey(key); + } + + /** Use {@link #getIngestedContextReferencesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> + getIngestedContextReferences() { + return getIngestedContextReferencesMap(); + } + + /** + * + * + *
                                                                                                                                  +   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> + getIngestedContextReferencesMap() { + return internalGetIngestedContextReferences().getMap(); + } + + /** + * + * + *
                                                                                                                                  +   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2.Conversation.ContextReference + getIngestedContextReferencesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2.Conversation.ContextReference defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetIngestedContextReferences().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                                                                  +   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.ContextReference + getIngestedContextReferencesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetIngestedContextReferences().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INITIAL_GENERATOR_CONTEXTS_FIELD_NUMBER = 18; + + private static final class InitialGeneratorContextsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + initialGeneratorContexts_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + internalGetInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InitialGeneratorContextsDefaultEntryHolder.defaultEntry); + } + return initialGeneratorContexts_; + } + + public int getInitialGeneratorContextsCount() { + return internalGetInitialGeneratorContexts().getMap().size(); + } + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInitialGeneratorContexts().getMap().containsKey(key); } - /** Use {@link #getIngestedContextReferencesMap()} instead. */ + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> - getIngestedContextReferences() { - return getIngestedContextReferencesMap(); + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getInitialGeneratorContexts() { + return getInitialGeneratorContextsMap(); } /** * * *
                                                                                                                                  -   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                      * 
                                                                                                                                  * * - * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> - getIngestedContextReferencesMap() { - return internalGetIngestedContextReferences().getMap(); + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getInitialGeneratorContextsMap() { + return internalGetInitialGeneratorContexts().getMap(); } /** * * *
                                                                                                                                  -   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                      * 
                                                                                                                                  * * - * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public /* nullable */ com.google.cloud.dialogflow.v2.Conversation.ContextReference - getIngestedContextReferencesOrDefault( + public /* nullable */ com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.dialogflow.v2.Conversation.ContextReference defaultValue) { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext defaultValue) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map - map = internalGetIngestedContextReferences().getMap(); + java.util.Map + map = internalGetInitialGeneratorContexts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -8565,21 +9648,22 @@ public boolean containsIngestedContextReferences(java.lang.String key) { * * *
                                                                                                                                  -   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                      * 
                                                                                                                                  * * - * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2.Conversation.ContextReference - getIngestedContextReferencesOrThrow(java.lang.String key) { + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map - map = internalGetIngestedContextReferences().getMap(); + java.util.Map + map = internalGetInitialGeneratorContexts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8629,11 +9713,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getTelephonyConnectionInfo()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getInitialConversationProfile()); + } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetIngestedContextReferences(), IngestedContextReferencesDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetInitialGeneratorContexts(), + InitialGeneratorContextsDefaultEntryHolder.defaultEntry, + 18); getUnknownFields().writeTo(output); } @@ -8674,6 +9766,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getTelephonyConnectionInfo()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getInitialConversationProfile()); + } for (java.util.Map.Entry< java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> entry : internalGetIngestedContextReferences().getMap().entrySet()) { @@ -8688,6 +9785,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, ingestedContextReferences__); } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + entry : internalGetInitialGeneratorContexts().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + initialGeneratorContexts__ = + InitialGeneratorContextsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, initialGeneratorContexts__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8724,8 +9835,15 @@ public boolean equals(final java.lang.Object obj) { if (hasTelephonyConnectionInfo()) { if (!getTelephonyConnectionInfo().equals(other.getTelephonyConnectionInfo())) return false; } + if (hasInitialConversationProfile() != other.hasInitialConversationProfile()) return false; + if (hasInitialConversationProfile()) { + if (!getInitialConversationProfile().equals(other.getInitialConversationProfile())) + return false; + } if (!internalGetIngestedContextReferences() .equals(other.internalGetIngestedContextReferences())) return false; + if (!internalGetInitialGeneratorContexts().equals(other.internalGetInitialGeneratorContexts())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8761,10 +9879,18 @@ public int hashCode() { hash = (37 * hash) + TELEPHONY_CONNECTION_INFO_FIELD_NUMBER; hash = (53 * hash) + getTelephonyConnectionInfo().hashCode(); } + if (hasInitialConversationProfile()) { + hash = (37 * hash) + INITIAL_CONVERSATION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getInitialConversationProfile().hashCode(); + } if (!internalGetIngestedContextReferences().getMap().isEmpty()) { hash = (37 * hash) + INGESTED_CONTEXT_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + internalGetIngestedContextReferences().hashCode(); } + if (!internalGetInitialGeneratorContexts().getMap().isEmpty()) { + hash = (37 * hash) + INITIAL_GENERATOR_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInitialGeneratorContexts().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -8893,6 +10019,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 17: return internalGetIngestedContextReferences(); + case 18: + return internalGetInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -8904,6 +10032,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 17: return internalGetMutableIngestedContextReferences(); + case 18: + return internalGetMutableInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -8935,6 +10065,7 @@ private void maybeForceBuilderInitialization() { internalGetStartTimeFieldBuilder(); internalGetEndTimeFieldBuilder(); internalGetTelephonyConnectionInfoFieldBuilder(); + internalGetInitialConversationProfileFieldBuilder(); } } @@ -8966,7 +10097,13 @@ public Builder clear() { telephonyConnectionInfoBuilder_.dispose(); telephonyConnectionInfoBuilder_ = null; } + initialConversationProfile_ = null; + if (initialConversationProfileBuilder_ != null) { + initialConversationProfileBuilder_.dispose(); + initialConversationProfileBuilder_ = null; + } internalGetMutableIngestedContextReferences().clear(); + internalGetMutableInitialGeneratorContexts().clear(); return this; } @@ -9037,10 +10174,22 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.Conversation result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.initialConversationProfile_ = + initialConversationProfileBuilder_ == null + ? initialConversationProfile_ + : initialConversationProfileBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.ingestedContextReferences_ = internalGetIngestedContextReferences() .build(IngestedContextReferencesDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.initialGeneratorContexts_ = + internalGetInitialGeneratorContexts() + .build(InitialGeneratorContextsDefaultEntryHolder.defaultEntry); + } result.bitField0_ |= to_bitField0_; } @@ -9084,9 +10233,15 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Conversation other) { if (other.hasTelephonyConnectionInfo()) { mergeTelephonyConnectionInfo(other.getTelephonyConnectionInfo()); } + if (other.hasInitialConversationProfile()) { + mergeInitialConversationProfile(other.getInitialConversationProfile()); + } internalGetMutableIngestedContextReferences() .mergeFrom(other.internalGetIngestedContextReferences()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; + internalGetMutableInitialGeneratorContexts() + .mergeFrom(other.internalGetInitialGeneratorContexts()); + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -9165,6 +10320,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 82 + case 122: + { + input.readMessage( + internalGetInitialConversationProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 122 case 138: { com.google.protobuf.MapEntry< @@ -9180,9 +10343,26 @@ public Builder mergeFrom( .put( ingestedContextReferences__.getKey(), ingestedContextReferences__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 138 + case 146: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + initialGeneratorContexts__ = + input.readMessage( + InitialGeneratorContextsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableInitialGeneratorContexts() + .ensureBuilderMap() + .put( + initialGeneratorContexts__.getKey(), initialGeneratorContexts__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10452,9 +11632,236 @@ public Builder setTelephonyConnectionInfo( } telephonyConnectionInfo_ = value; } else { - telephonyConnectionInfoBuilder_.setMessage(value); + telephonyConnectionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTelephonyConnectionInfo( + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder + builderForValue) { + if (telephonyConnectionInfoBuilder_ == null) { + telephonyConnectionInfo_ = builderForValue.build(); + } else { + telephonyConnectionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTelephonyConnectionInfo( + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo value) { + if (telephonyConnectionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && telephonyConnectionInfo_ != null + && telephonyConnectionInfo_ + != com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo + .getDefaultInstance()) { + getTelephonyConnectionInfoBuilder().mergeFrom(value); + } else { + telephonyConnectionInfo_ = value; + } + } else { + telephonyConnectionInfoBuilder_.mergeFrom(value); + } + if (telephonyConnectionInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTelephonyConnectionInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + telephonyConnectionInfo_ = null; + if (telephonyConnectionInfoBuilder_ != null) { + telephonyConnectionInfoBuilder_.dispose(); + telephonyConnectionInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder + getTelephonyConnectionInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetTelephonyConnectionInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder + getTelephonyConnectionInfoOrBuilder() { + if (telephonyConnectionInfoBuilder_ != null) { + return telephonyConnectionInfoBuilder_.getMessageOrBuilder(); + } else { + return telephonyConnectionInfo_ == null + ? com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo + .getDefaultInstance() + : telephonyConnectionInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo, + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder, + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder> + internalGetTelephonyConnectionInfoFieldBuilder() { + if (telephonyConnectionInfoBuilder_ == null) { + telephonyConnectionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo, + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder, + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder>( + getTelephonyConnectionInfo(), getParentForChildren(), isClean()); + telephonyConnectionInfo_ = null; + } + return telephonyConnectionInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2.ConversationProfile initialConversationProfile_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ConversationProfile, + com.google.cloud.dialogflow.v2.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder> + initialConversationProfileBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + public boolean hasInitialConversationProfile() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + public com.google.cloud.dialogflow.v2.ConversationProfile getInitialConversationProfile() { + if (initialConversationProfileBuilder_ == null) { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } else { + return initialConversationProfileBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInitialConversationProfile( + com.google.cloud.dialogflow.v2.ConversationProfile value) { + if (initialConversationProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialConversationProfile_ = value; + } else { + initialConversationProfileBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10463,22 +11870,23 @@ public Builder setTelephonyConnectionInfo( * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setTelephonyConnectionInfo( - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder - builderForValue) { - if (telephonyConnectionInfoBuilder_ == null) { - telephonyConnectionInfo_ = builderForValue.build(); + public Builder setInitialConversationProfile( + com.google.cloud.dialogflow.v2.ConversationProfile.Builder builderForValue) { + if (initialConversationProfileBuilder_ == null) { + initialConversationProfile_ = builderForValue.build(); } else { - telephonyConnectionInfoBuilder_.setMessage(builderForValue.build()); + initialConversationProfileBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10487,30 +11895,31 @@ public Builder setTelephonyConnectionInfo( * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeTelephonyConnectionInfo( - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo value) { - if (telephonyConnectionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && telephonyConnectionInfo_ != null - && telephonyConnectionInfo_ - != com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo - .getDefaultInstance()) { - getTelephonyConnectionInfoBuilder().mergeFrom(value); + public Builder mergeInitialConversationProfile( + com.google.cloud.dialogflow.v2.ConversationProfile value) { + if (initialConversationProfileBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && initialConversationProfile_ != null + && initialConversationProfile_ + != com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance()) { + getInitialConversationProfileBuilder().mergeFrom(value); } else { - telephonyConnectionInfo_ = value; + initialConversationProfile_ = value; } } else { - telephonyConnectionInfoBuilder_.mergeFrom(value); + initialConversationProfileBuilder_.mergeFrom(value); } - if (telephonyConnectionInfo_ != null) { - bitField0_ |= 0x00000080; + if (initialConversationProfile_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -10520,19 +11929,21 @@ public Builder mergeTelephonyConnectionInfo( * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearTelephonyConnectionInfo() { - bitField0_ = (bitField0_ & ~0x00000080); - telephonyConnectionInfo_ = null; - if (telephonyConnectionInfoBuilder_ != null) { - telephonyConnectionInfoBuilder_.dispose(); - telephonyConnectionInfoBuilder_ = null; + public Builder clearInitialConversationProfile() { + bitField0_ = (bitField0_ & ~0x00000100); + initialConversationProfile_ = null; + if (initialConversationProfileBuilder_ != null) { + initialConversationProfileBuilder_.dispose(); + initialConversationProfileBuilder_ = null; } onChanged(); return this; @@ -10542,40 +11953,43 @@ public Builder clearTelephonyConnectionInfo() { * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder - getTelephonyConnectionInfoBuilder() { - bitField0_ |= 0x00000080; + public com.google.cloud.dialogflow.v2.ConversationProfile.Builder + getInitialConversationProfileBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return internalGetTelephonyConnectionInfoFieldBuilder().getBuilder(); + return internalGetInitialConversationProfileFieldBuilder().getBuilder(); } /** * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder - getTelephonyConnectionInfoOrBuilder() { - if (telephonyConnectionInfoBuilder_ != null) { - return telephonyConnectionInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder() { + if (initialConversationProfileBuilder_ != null) { + return initialConversationProfileBuilder_.getMessageOrBuilder(); } else { - return telephonyConnectionInfo_ == null - ? com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo - .getDefaultInstance() - : telephonyConnectionInfo_; + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; } } @@ -10583,28 +11997,30 @@ public Builder clearTelephonyConnectionInfo() { * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo, - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder, - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder> - internalGetTelephonyConnectionInfoFieldBuilder() { - if (telephonyConnectionInfoBuilder_ == null) { - telephonyConnectionInfoBuilder_ = + com.google.cloud.dialogflow.v2.ConversationProfile, + com.google.cloud.dialogflow.v2.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder> + internalGetInitialConversationProfileFieldBuilder() { + if (initialConversationProfileBuilder_ == null) { + initialConversationProfileBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo, - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder, - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder>( - getTelephonyConnectionInfo(), getParentForChildren(), isClean()); - telephonyConnectionInfo_ = null; + com.google.cloud.dialogflow.v2.ConversationProfile, + com.google.cloud.dialogflow.v2.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder>( + getInitialConversationProfile(), getParentForChildren(), isClean()); + initialConversationProfile_ = null; } - return telephonyConnectionInfoBuilder_; + return initialConversationProfileBuilder_; } private static final class IngestedContextReferencesConverter @@ -10662,7 +12078,7 @@ public com.google.cloud.dialogflow.v2.Conversation.ContextReference build( ingestedContextReferences_ = new com.google.protobuf.MapFieldBuilder<>(ingestedContextReferencesConverter); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return ingestedContextReferences_; } @@ -10774,7 +12190,7 @@ public boolean containsIngestedContextReferences(java.lang.String key) { } public Builder clearIngestedContextReferences() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableIngestedContextReferences().clear(); return this; } @@ -10803,7 +12219,7 @@ public Builder removeIngestedContextReferences(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> getMutableIngestedContextReferences() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableIngestedContextReferences().ensureMessageMap(); } @@ -10827,7 +12243,7 @@ public Builder putIngestedContextReferences( throw new NullPointerException("map value"); } internalGetMutableIngestedContextReferences().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -10854,7 +12270,7 @@ public Builder putAllIngestedContextReferences( } } internalGetMutableIngestedContextReferences().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -10888,6 +12304,295 @@ public Builder putAllIngestedContextReferences( return (com.google.cloud.dialogflow.v2.Conversation.ContextReference.Builder) entry; } + private static final class InitialGeneratorContextsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> { + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext build( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder val) { + if (val instanceof com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) { + return (com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) val; + } + return ((com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + defaultEntry() { + return InitialGeneratorContextsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final InitialGeneratorContextsConverter initialGeneratorContextsConverter = + new InitialGeneratorContextsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder> + initialGeneratorContexts_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder> + internalGetInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(initialGeneratorContextsConverter); + } + return initialGeneratorContexts_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder> + internalGetMutableInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + initialGeneratorContexts_ = + new com.google.protobuf.MapFieldBuilder<>(initialGeneratorContextsConverter); + } + bitField0_ |= 0x00000400; + onChanged(); + return initialGeneratorContexts_; + } + + public int getInitialGeneratorContextsCount() { + return internalGetInitialGeneratorContexts().ensureBuilderMap().size(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInitialGeneratorContexts().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getInitialGeneratorContexts() { + return getInitialGeneratorContextsMap(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getInitialGeneratorContextsMap() { + return internalGetInitialGeneratorContexts().getImmutableMap(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder> + map = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + return map.containsKey(key) + ? initialGeneratorContextsConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder> + map = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return initialGeneratorContextsConverter.build(map.get(key)); + } + + public Builder clearInitialGeneratorContexts() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableInitialGeneratorContexts().clear(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getMutableInitialGeneratorContexts() { + bitField0_ |= 0x00000400; + return internalGetMutableInitialGeneratorContexts().ensureMessageMap(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putInitialGeneratorContexts( + java.lang.String key, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllInitialGeneratorContexts( + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder + putInitialGeneratorContextsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder> + builderMap = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) { + entry = ((com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder) entry; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Conversation) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java index b831cdd339ca..e04f5521b47a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java @@ -356,6 +356,56 @@ public interface ConversationOrBuilder com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder getTelephonyConnectionInfoOrBuilder(); + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + boolean hasInitialConversationProfile(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + com.google.cloud.dialogflow.v2.ConversationProfile getInitialConversationProfile(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder(); + /** * * @@ -432,4 +482,85 @@ public interface ConversationOrBuilder */ com.google.cloud.dialogflow.v2.Conversation.ContextReference getIngestedContextReferencesOrThrow( java.lang.String key); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInitialGeneratorContextsCount(); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsInitialGeneratorContexts(java.lang.String key); + + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getInitialGeneratorContexts(); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getInitialGeneratorContextsMap(); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext getInitialGeneratorContextsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext defaultValue); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext getInitialGeneratorContextsOrThrow( + java.lang.String key); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java index 97727c890cca..0ca9d892264d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java @@ -177,287 +177,295 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "5google/cloud/dialogflow/v2/conversation_profile.proto\022\032google.cloud.dialogflow" + "\n5google/cloud/dialogflow/v2/conversatio" + + "n_profile.proto\022\032google.cloud.dialogflow" + ".v2\032\034google/api/annotations.proto\032\027googl" + "e/api/client.proto\032\037google/api/field_beh" + "avior.proto\032\031google/api/resource.proto\032-" - + "google/cloud/dialogflow/v2/audio_config.proto\032*google/cloud/dialogflow/v2/genera" - + "tor.proto\032,google/cloud/dialogflow/v2/participant.proto\032#google/longrunning/oper" - + "ations.proto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\331\t\n" - + "\023ConversationProfile\022\014\n" - + "\004name\030\001 \001(\t\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" - + "\013create_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022P\n" - + "\026automated_agent_config\030\003" - + " \001(\01320.google.cloud.dialogflow.v2.AutomatedAgentConfig\022[\n" - + "\034human_agent_assistant_config\030\004 \001(\01325.goog" - + "le.cloud.dialogflow.v2.HumanAgentAssistantConfig\022W\n" - + "\032human_agent_handoff_config\030\005" - + " \001(\01323.google.cloud.dialogflow.v2.HumanAgentHandoffConfig\022K\n" - + "\023notification_config\030\006" - + " \001(\0132..google.cloud.dialogflow.v2.NotificationConfig\022A\n" - + "\016logging_config\030\007 \001(\0132).google.cloud.dialogflow.v2.LoggingConfig\022]\n" - + "%new_message_event_notification_config\030\010" - + " \001(\0132..google.cloud.dialogflow.v2.NotificationConfig\022g\n" - + "*new_recognition_result_notification_config\030\025 \001(\0132..google.cl" - + "oud.dialogflow.v2.NotificationConfigB\003\340A\001\022B\n\n" - + "stt_config\030\t \001(\0132..google.cloud.dialogflow.v2.SpeechToTextConfig\022\025\n\r" - + "language_code\030\n" - + " \001(\t\022\021\n" - + "\ttime_zone\030\016 \001(\t\022L\n" - + "\021security_settings\030\r" - + " \001(\tB1\372A.\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022F\n\n" - + "tts_config\030\022" - + " \001(\01322.google.cloud.dialogflow.v2.SynthesizeSpeechConfig:\310\001\352A\304\001\n" - + "-dialogflow.googleapis.com/ConversationProfile\022>pro" - + "jects/{project}/conversationProfiles/{conversation_profile}\022Sprojects/{project}/" - + "locations/{location}/conversationProfiles/{conversation_profile}\"\217\001\n" - + "\037ListConversationProfilesRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A" - + "\002\372A/\022-dialogflow.googleapis.com/ConversationProfile\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\213\001\n" - + " ListConversationProfilesResponse\022N\n" - + "\025conversation_profiles\030\001 \003(\0132/" - + ".google.cloud.dialogflow.v2.ConversationProfile\022\027\n" - + "\017next_page_token\030\002 \001(\t\"d\n" - + "\035GetConversationProfileRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationProfile\"\275\001\n" - + " CreateConversationProfileRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dia" - + "logflow.googleapis.com/ConversationProfile\022R\n" - + "\024conversation_profile\030\002 \001(\0132/.googl" - + "e.cloud.dialogflow.v2.ConversationProfileB\003\340A\002\"\254\001\n" - + " UpdateConversationProfileRequest\022R\n" - + "\024conversation_profile\030\001 \001(\0132/.goog" - + "le.cloud.dialogflow.v2.ConversationProfileB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"g\n" - + " DeleteConversationProfileRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationProfile\"\203\001\n" - + "\024AutomatedAgentConfig\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\0223\n" - + "\013session_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\306\035\n" - + "\031HumanAgentAssistantConfig\022K\n" - + "\023notification_config\030\002 \001(\0132" - + "..google.cloud.dialogflow.v2.NotificationConfig\022m\n" - + "\035human_agent_suggestion_config\030\003 \001(\0132F.google.cloud.dialogflow.v2.Huma" - + "nAgentAssistantConfig.SuggestionConfig\022j\n" - + "\032end_user_suggestion_config\030\004 \001(\0132F.goo" - + "gle.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig\022l\n" - + "\027message_analysis_config\030\005 \001(\0132K.google.cloud.dialo" - + "gflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig\032H\n" - + "\031SuggestionTriggerSettings\022\024\n" - + "\014no_smalltalk\030\001 \001(\010\022\025\n\r" - + "only_end_user\030\002 \001(\010\032\365\006\n" - + "\027SuggestionFeatureConfig\022I\n" - + "\022suggestion_feature\030\005" - + " \001(\0132-.google.cloud.dialogflow.v2.SuggestionFeature\022%\n" - + "\035enable_event_based_suggestion\030\003 \001(\010\022(\n" - + "\033disable_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n" - + "&enable_query_suggestion_when_no_answer\030\017 \001(\010B\003\340A\001\0220\n" - + "#enable_conversation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n" - + "\034enable_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n" - + "\032enable_response_debug_info\030\022 \001(\010B\003\340A\001\022B\n" - + "\014rai_settings\030\023 " - + "\001(\0132\'.google.cloud.dialogflow.v2.RaiSettingsB\003\340A\001\022t\n" - + "\033suggestion_trigger_settings\030\n" - + " \001(\0132O.google.cloud.dialogflow.v2.Huma" - + "nAgentAssistantConfig.SuggestionTriggerSettings\022a\n" - + "\014query_config\030\006 \001(\0132K.google.c" - + "loud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig\022p\n" - + "\031conversation_model_config\030\007 \001(\0132M.google.cloud.dia" - + "logflow.v2.HumanAgentAssistantConfig.ConversationModelConfig\022t\n" - + "\033conversation_process_config\030\010 \001(\0132O.google.cloud.dialogf" - + "low.v2.HumanAgentAssistantConfig.ConversationProcessConfig\032\235\003\n" - + "\020SuggestionConfig\022f\n" - + "\017feature_configs\030\002 \003(\0132M.google.cloud." - + "dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig\022\"\n" - + "\032group_suggestion_responses\030\003 \001(\010\022?\n\n" - + "generators\030\004 \003(\tB+\340A\001\372A%\n" - + "#dialogflow.googleapis.com/Generator\0228\n" - + "+disable_high_latency_features_sync_delivery\030\005 \001(\010B\003\340A\001\022.\n" - + "!skip_empty_event_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n" - + " use_unredacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" - + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\231\r\n" - + "\025SuggestionQueryConfig\022\213\001\n" - + "\033knowledge_base_query_source\030\001 \001(\0132d.google.cloud.dialog" + + "google/cloud/dialogflow/v2/audio_config." + + "proto\032*google/cloud/dialogflow/v2/genera" + + "tor.proto\032,google/cloud/dialogflow/v2/pa" + + "rticipant.proto\032#google/longrunning/oper" + + "ations.proto\032\036google/protobuf/duration.p" + + "roto\032\033google/protobuf/empty.proto\032 googl" + + "e/protobuf/field_mask.proto\032\037google/prot" + + "obuf/timestamp.proto\"\331\t\n\023ConversationPro" + + "file\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\t" + + "B\003\340A\002\0224\n\013create_time\030\013 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022P\n\026aut" + + "omated_agent_config\030\003 \001(\01320.google.cloud" + + ".dialogflow.v2.AutomatedAgentConfig\022[\n\034h" + + "uman_agent_assistant_config\030\004 \001(\01325.goog" + + "le.cloud.dialogflow.v2.HumanAgentAssista" + + "ntConfig\022W\n\032human_agent_handoff_config\030\005" + + " \001(\01323.google.cloud.dialogflow.v2.HumanA" + + "gentHandoffConfig\022K\n\023notification_config" + + "\030\006 \001(\0132..google.cloud.dialogflow.v2.Noti" + + "ficationConfig\022A\n\016logging_config\030\007 \001(\0132)" + + ".google.cloud.dialogflow.v2.LoggingConfi" + + "g\022]\n%new_message_event_notification_conf" + + "ig\030\010 \001(\0132..google.cloud.dialogflow.v2.No" + + "tificationConfig\022g\n*new_recognition_resu" + + "lt_notification_config\030\025 \001(\0132..google.cl" + + "oud.dialogflow.v2.NotificationConfigB\003\340A" + + "\001\022B\n\nstt_config\030\t \001(\0132..google.cloud.dia" + + "logflow.v2.SpeechToTextConfig\022\025\n\rlanguag" + + "e_code\030\n \001(\t\022\021\n\ttime_zone\030\016 \001(\t\022L\n\021secur" + + "ity_settings\030\r \001(\tB1\372A.\n,dialogflow.goog" + + "leapis.com/CXSecuritySettings\022F\n\ntts_con" + + "fig\030\022 \001(\01322.google.cloud.dialogflow.v2.S" + + "ynthesizeSpeechConfig:\310\001\352A\304\001\n-dialogflow" + + ".googleapis.com/ConversationProfile\022>pro" + + "jects/{project}/conversationProfiles/{co" + + "nversation_profile}\022Sprojects/{project}/" + + "locations/{location}/conversationProfile" + + "s/{conversation_profile}\"\217\001\n\037ListConvers" + + "ationProfilesRequest\022E\n\006parent\030\001 \001(\tB5\340A" + + "\002\372A/\022-dialogflow.googleapis.com/Conversa" + + "tionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"\213\001\n ListConversationProfilesR" + + "esponse\022N\n\025conversation_profiles\030\001 \003(\0132/" + + ".google.cloud.dialogflow.v2.Conversation" + + "Profile\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035GetC" + + "onversationProfileRequest\022C\n\004name\030\001 \001(\tB" + + "5\340A\002\372A/\n-dialogflow.googleapis.com/Conve" + + "rsationProfile\"\275\001\n CreateConversationPro" + + "fileRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-dia" + + "logflow.googleapis.com/ConversationProfi" + + "le\022R\n\024conversation_profile\030\002 \001(\0132/.googl" + + "e.cloud.dialogflow.v2.ConversationProfil" + + "eB\003\340A\002\"\254\001\n UpdateConversationProfileRequ" + + "est\022R\n\024conversation_profile\030\001 \001(\0132/.goog" + + "le.cloud.dialogflow.v2.ConversationProfi" + + "leB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\003\340A\002\"g\n DeleteConversat" + + "ionProfileRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n" + + "-dialogflow.googleapis.com/ConversationP" + + "rofile\"\203\001\n\024AutomatedAgentConfig\0226\n\005agent" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.co" + + "m/Agent\0223\n\013session_ttl\030\003 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\001\"\362\035\n\031HumanAgentAssis" + + "tantConfig\022K\n\023notification_config\030\002 \001(\0132" + + "..google.cloud.dialogflow.v2.Notificatio" + + "nConfig\022m\n\035human_agent_suggestion_config" + + "\030\003 \001(\0132F.google.cloud.dialogflow.v2.Huma" + + "nAgentAssistantConfig.SuggestionConfig\022j" + + "\n\032end_user_suggestion_config\030\004 \001(\0132F.goo" + + "gle.cloud.dialogflow.v2.HumanAgentAssist" + + "antConfig.SuggestionConfig\022l\n\027message_an" + + "alysis_config\030\005 \001(\0132K.google.cloud.dialo" + + "gflow.v2.HumanAgentAssistantConfig.Messa" + + "geAnalysisConfig\032H\n\031SuggestionTriggerSet" + + "tings\022\024\n\014no_smalltalk\030\001 \001(\010\022\025\n\ronly_end_" + + "user\030\002 \001(\010\032\365\006\n\027SuggestionFeatureConfig\022I" + + "\n\022suggestion_feature\030\005 \001(\0132-.google.clou" + + "d.dialogflow.v2.SuggestionFeature\022%\n\035ena" + + "ble_event_based_suggestion\030\003 \001(\010\022(\n\033disa" + + "ble_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n&en" + + "able_query_suggestion_when_no_answer\030\017 \001" + + "(\010B\003\340A\001\0220\n#enable_conversation_augmented" + + "_query\030\020 \001(\010B\003\340A\001\022)\n\034enable_query_sugges" + + "tion_only\030\021 \001(\010B\003\340A\001\022\'\n\032enable_response_" + + "debug_info\030\022 \001(\010B\003\340A\001\022B\n\014rai_settings\030\023 " + + "\001(\0132\'.google.cloud.dialogflow.v2.RaiSett" + + "ingsB\003\340A\001\022t\n\033suggestion_trigger_settings" + + "\030\n \001(\0132O.google.cloud.dialogflow.v2.Huma" + + "nAgentAssistantConfig.SuggestionTriggerS" + + "ettings\022a\n\014query_config\030\006 \001(\0132K.google.c" + + "loud.dialogflow.v2.HumanAgentAssistantCo" + + "nfig.SuggestionQueryConfig\022p\n\031conversati" + + "on_model_config\030\007 \001(\0132M.google.cloud.dia" + + "logflow.v2.HumanAgentAssistantConfig.Con" + + "versationModelConfig\022t\n\033conversation_pro" + + "cess_config\030\010 \001(\0132O.google.cloud.dialogf" + + "low.v2.HumanAgentAssistantConfig.Convers" + + "ationProcessConfig\032\235\003\n\020SuggestionConfig\022" + + "f\n\017feature_configs\030\002 \003(\0132M.google.cloud." + + "dialogflow.v2.HumanAgentAssistantConfig." + + "SuggestionFeatureConfig\022\"\n\032group_suggest" + + "ion_responses\030\003 \001(\010\022?\n\ngenerators\030\004 \003(\tB" + + "+\340A\001\372A%\n#dialogflow.googleapis.com/Gener" + + "ator\0228\n+disable_high_latency_features_sy" + + "nc_delivery\030\005 \001(\010B\003\340A\001\022.\n!skip_empty_eve" + + "nt_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n use_un" + + "redacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" + + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\231\r\n\025S" + + "uggestionQueryConfig\022\213\001\n\033knowledge_base_" + + "query_source\030\001 \001(\0132d.google.cloud.dialog" + "flow.v2.HumanAgentAssistantConfig.Sugges" - + "tionQueryConfig.KnowledgeBaseQuerySourceH\000\022\200\001\n" - + "\025document_query_source\030\002 \001(\0132_.goo" + + "tionQueryConfig.KnowledgeBaseQuerySource" + + "H\000\022\200\001\n\025document_query_source\030\002 \001(\0132_.goo" + "gle.cloud.dialogflow.v2.HumanAgentAssist" - + "antConfig.SuggestionQueryConfig.DocumentQuerySourceH\000\022\204\001\n" - + "\027dialogflow_query_source\030\003 \001(\0132a.google.cloud.dialogflow.v2.Hum" - + "anAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" - + "\013max_results\030\004 \001(\005\022\034\n" - + "\024confidence_threshold\030\005 \001(\002\022\202\001\n" - + "\027context_filter_settings\030\007 \001(\0132a.goog" + + "antConfig.SuggestionQueryConfig.Document" + + "QuerySourceH\000\022\204\001\n\027dialogflow_query_sourc" + + "e\030\003 \001(\0132a.google.cloud.dialogflow.v2.Hum" + + "anAgentAssistantConfig.SuggestionQueryCo" + + "nfig.DialogflowQuerySourceH\000\022\023\n\013max_resu" + + "lts\030\004 \001(\005\022\034\n\024confidence_threshold\030\005 \001(\002\022" + + "\202\001\n\027context_filter_settings\030\007 \001(\0132a.goog" + "le.cloud.dialogflow.v2.HumanAgentAssista" - + "ntConfig.SuggestionQueryConfig.ContextFilterSettings\022k\n" - + "\010sections\030\010 \001(\0132T.google.cloud.dialogflow.v2.HumanAgentAssistantC" - + "onfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" - + "\014context_size\030\t \001(\005B\003\340A\001\032d\n" - + "\030KnowledgeBaseQuerySource\022H\n" - + "\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n" - + "\'dialogflow.googleapis.com/KnowledgeBase\032T\n" - + "\023DocumentQuerySource\022=\n" - + "\tdocuments\030\001 \003(\tB*\340A\002\372A$\n" - + "\"dialogflow.googleapis.com/Document\032\276\002\n" - + "\025DialogflowQuerySource\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\022\234\001\n" - + "\027human_agent_side_config\030\003 \001(\0132v.google.cloud.dialogflow.v" + + "ntConfig.SuggestionQueryConfig.ContextFi" + + "lterSettings\022k\n\010sections\030\010 \001(\0132T.google." + + "cloud.dialogflow.v2.HumanAgentAssistantC" + + "onfig.SuggestionQueryConfig.SectionsB\003\340A" + + "\001\022\031\n\014context_size\030\t \001(\005B\003\340A\001\032d\n\030Knowledg" + + "eBaseQuerySource\022H\n\017knowledge_bases\030\001 \003(" + + "\tB/\340A\002\372A)\n\'dialogflow.googleapis.com/Kno" + + "wledgeBase\032T\n\023DocumentQuerySource\022=\n\tdoc" + + "uments\030\001 \003(\tB*\340A\002\372A$\n\"dialogflow.googlea" + + "pis.com/Document\032\276\002\n\025DialogflowQuerySour" + + "ce\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.go" + + "ogleapis.com/Agent\022\234\001\n\027human_agent_side_" + + "config\030\003 \001(\0132v.google.cloud.dialogflow.v" + "2.HumanAgentAssistantConfig.SuggestionQu" - + "eryConfig.DialogflowQuerySource.HumanAgentSideConfigB\003\340A\001\032N\n" - + "\024HumanAgentSideConfig\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\001\372A!\n" - + "\037dialogflow.googleapis.com/Agent\032v\n" - + "\025ContextFilterSettings\022\035\n" - + "\025drop_handoff_messages\030\001 \001(\010\022#\n" - + "\033drop_virtual_agent_messages\030\002 \001(\010\022\031\n" - + "\021drop_ivr_messages\030\003 \001(\010\032\242\002\n" - + "\010Sections\022w\n\r" - + "section_types\030\001 \003(\0162`.google.cloud.dialogflow." - + "v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Sections.SectionType\"\234\001\n" - + "\013SectionType\022\034\n" - + "\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tSITUATION\020\001\022\n\n" - + "\006ACTION\020\002\022\016\n\n" - + "RESOLUTION\020\003\022\033\n" - + "\027REASON_FOR_CANCELLATION\020\004\022\031\n" - + "\025CUSTOMER_SATISFACTION\020\005\022\014\n" - + "\010ENTITIES\020\006B\016\n" - + "\014query_source\032z\n" - + "\027ConversationModelConfig\022?\n" - + "\005model\030\001 \001(\tB0\372A-\n" - + "+dialogflow.googleapis.com/ConversationModel\022\036\n" - + "\026baseline_model_version\030\010 \001(\t\032;\n" - + "\031ConversationProcessConfig\022\036\n" - + "\026recent_sentences_count\030\002 \001(\005\032\\\n" - + "\025MessageAnalysisConfig\022 \n" - + "\030enable_entity_extraction\030\002 \001(\010\022!\n" - + "\031enable_sentiment_analysis\030\003 \001(\010\"\304\003\n" - + "\027HumanAgentHandoffConfig\022b\n" - + "\022live_person_config\030\001 \001(\0132D.google.cloud.dia" - + "logflow.v2.HumanAgentHandoffConfig.LivePersonConfigH\000\022u\n" - + "\034salesforce_live_agent_config\030\002 \001(\0132M.google.cloud.dialogflow.v2" - + ".HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" - + "\020LivePersonConfig\022\033\n" - + "\016account_number\030\001 \001(\tB\003\340A\002\032\213\001\n" - + "\031SalesforceLiveAgentConfig\022\034\n" - + "\017organization_id\030\001 \001(\tB\003\340A\002\022\032\n\r" - + "deployment_id\030\002 \001(\tB\003\340A\002\022\026\n" - + "\tbutton_id\030\003 \001(\tB\003\340A\002\022\034\n" - + "\017endpoint_domain\030\004 \001(\tB\003\340A\002B\017\n\r" - + "agent_service\"\277\001\n" - + "\022NotificationConfig\022\r\n" - + "\005topic\030\001 \001(\t\022T\n" - + "\016message_format\030\002 \001" - + "(\0162<.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat\"D\n\r" - + "MessageFormat\022\036\n" - + "\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" - + "\005PROTO\020\001\022\010\n" - + "\004JSON\020\002\"3\n\r" - + "LoggingConfig\022\"\n" - + "\032enable_stackdriver_logging\030\003 \001(\010\"\362\001\n" - + "\021SuggestionFeature\022@\n" - + "\004type\030\001" - + " \001(\01622.google.cloud.dialogflow.v2.SuggestionFeature.Type\"\232\001\n" - + "\004Type\022\024\n" - + "\020TYPE_UNSPECIFIED\020\000\022\026\n" - + "\022ARTICLE_SUGGESTION\020\001\022\007\n" - + "\003FAQ\020\002\022\017\n" - + "\013SMART_REPLY\020\003\022\036\n" - + "\032CONVERSATION_SUMMARIZATION\020\010\022\024\n" - + "\020KNOWLEDGE_SEARCH\020\016\022\024\n" - + "\020KNOWLEDGE_ASSIST\020\017\"\212\002\n" - + "!SetSuggestionFeatureConfigRequest\022!\n" - + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022K\n" - + "\020participant_role\030\002" - + " \001(\0162,.google.cloud.dialogflow.v2.Participant.RoleB\003\340A\002\022u\n" - + "\031suggestion_feature_config\030\003 \001(\0132M.google.cloud.dialogf" - + "low.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\357\001\n" - + "#ClearSuggestionFeatureConfigRequest\022!\n" - + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022K\n" - + "\020participant_role\030\002 \001" - + "(\0162,.google.cloud.dialogflow.v2.Participant.RoleB\003\340A\002\022X\n" - + "\027suggestion_feature_type\030\003" - + " \001(\01622.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\003\340A\002\"\243\002\n" - + "+SetSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022K\n" - + "\020participant_role\030\002" - + " \001(\0162,.google.cloud.dialogflow.v2.Participant.RoleB\003\340A\002\022X\n" - + "\027suggestion_feature_type\030\003" - + " \001(\01622.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\245\002\n" - + "-ClearSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022K\n" - + "\020participant_role\030\002" - + " \001(\0162,.google.cloud.dialogflow.v2.Participant.RoleB\003\340A\002\022X\n" - + "\027suggestion_feature_type\030\003 \001(\01622.google.clo" - + "ud.dialogflow.v2.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp2\263\024\n" - + "\024ConversationProfiles\022\220\002\n" - + "\030ListConversationProfiles\022;.google.cloud.dialogflow.v2.ListConversationProfile" - + "sRequest\032<.google.cloud.dialogflow.v2.Li" - + "stConversationProfilesResponse\"y\332A\006paren" - + "t\202\323\344\223\002j\022,/v2/{parent=projects/*}/convers" - + "ationProfilesZ:\0228/v2/{parent=projects/*/locations/*}/conversationProfiles\022\375\001\n" - + "\026GetConversationProfile\0229.google.cloud.dial" - + "ogflow.v2.GetConversationProfileRequest\032/.google.cloud.dialogflow.v2.Conversatio" - + "nProfile\"w\332A\004name\202\323\344\223\002j\022,/v2/{name=proje" - + "cts/*/conversationProfiles/*}Z:\0228/v2/{na" - + "me=projects/*/locations/*/conversationProfiles/*}\022\310\002\n" - + "\031CreateConversationProfile\022<.google.cloud.dialogflow.v2.CreateConve" - + "rsationProfileRequest\032/.google.cloud.dia" - + "logflow.v2.ConversationProfile\"\273\001\332A\033pare" - + "nt,conversation_profile\202\323\344\223\002\226\001\",/v2/{par" - + "ent=projects/*}/conversationProfiles:\024conversation_profileZP\"8/v2/{parent=projec" - + "ts/*/locations/*}/conversationProfiles:\024conversation_profile\022\367\002\n" - + "\031UpdateConversationProfile\022<.google.cloud.dialogflow.v2." - + "UpdateConversationProfileRequest\032/.googl" - + "e.cloud.dialogflow.v2.ConversationProfile\"\352\001\332A" - + " conversation_profile,update_mask\202" - + "\323\344\223\002\300\0012A/v2/{conversation_profile.name=p" - + "rojects/*/conversationProfiles/*}:\024conversation_profileZe2M/v2/{conversation_pro" - + "file.name=projects/*/locations/*/convers" - + "ationProfiles/*}:\024conversation_profile\022\352\001\n" - + "\031DeleteConversationProfile\022<.google.cloud.dialogflow.v2.DeleteConversationProf" - + "ileRequest\032\026.google.protobuf.Empty\"w\332A\004n" - + "ame\202\323\344\223\002j*,/v2/{name=projects/*/conversa" - + "tionProfiles/*}Z:*8/v2/{name=projects/*/locations/*/conversationProfiles/*}\022\350\003\n" - + "\032SetSuggestionFeatureConfig\022=.google.clou" - + "d.dialogflow.v2.SetSuggestionFeatureConf" - + "igRequest\032\035.google.longrunning.Operation\"\353\002\312AB\n" - + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024conve" - + "rsation_profile\332A?conversation_profile,participant_role,suggestion_feature_confi" - + "g\202\323\344\223\002\306\001\"W/v2/{conversation_profile=proj" - + "ects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zh\"c/v2/{conversatio" - + "n_profile=projects/*/locations/*/convers" - + "ationProfiles/*}:setSuggestionFeatureConfig:\001*\022\360\003\n" - + "\034ClearSuggestionFeatureConfig\022?.google.cloud.dialogflow.v2.ClearSugges" - + "tionFeatureConfigRequest\032\035.google.longrunning.Operation\"\357\002\312AD\n" - + "\023ConversationProfile\022-ClearSuggestionFeatureConfigOperatio" - + "nMetadata\332A\024conversation_profile\332A=conve" - + "rsation_profile,participant_role,suggest" - + "ion_feature_type\202\323\344\223\002\312\001\"Y/v2/{conversati" - + "on_profile=projects/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\001*Zj\"" - + "e/v2/{conversation_profile=projects/*/locations/*/conversationProfiles/*}:clearS" - + "uggestionFeatureConfig:\001*\032x\312A\031dialogflow" - + ".googleapis.com\322AYhttps://www.googleapis" - + ".com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\235\002\n" - + "\036com.google.cloud.dialogflow.v2B\030ConversationProf" - + "ileProtoP\001Z>cloud.google.com/go/dialogfl" - + "ow/apiv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A|\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022Lp" - + "rojects/{project}/locations/{location}/securitySettings/{security_settings}b\006proto3" + + "eryConfig.DialogflowQuerySource.HumanAge" + + "ntSideConfigB\003\340A\001\032N\n\024HumanAgentSideConfi" + + "g\0226\n\005agent\030\001 \001(\tB\'\340A\001\372A!\n\037dialogflow.goo" + + "gleapis.com/Agent\032v\n\025ContextFilterSettin" + + "gs\022\035\n\025drop_handoff_messages\030\001 \001(\010\022#\n\033dro" + + "p_virtual_agent_messages\030\002 \001(\010\022\031\n\021drop_i" + + "vr_messages\030\003 \001(\010\032\242\002\n\010Sections\022w\n\rsectio" + + "n_types\030\001 \003(\0162`.google.cloud.dialogflow." + + "v2.HumanAgentAssistantConfig.SuggestionQ" + + "ueryConfig.Sections.SectionType\"\234\001\n\013Sect" + + "ionType\022\034\n\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tSITUATION\020\001\022\n\n\006ACTION\020\002\022\016\n\nRESOLUTION\020\003" + + "\022\033\n\027REASON_FOR_CANCELLATION\020\004\022\031\n\025CUSTOME" + + "R_SATISFACTION\020\005\022\014\n\010ENTITIES\020\006B\016\n\014query_" + + "source\032z\n\027ConversationModelConfig\022?\n\005mod" + + "el\030\001 \001(\tB0\372A-\n+dialogflow.googleapis.com" + + "/ConversationModel\022\036\n\026baseline_model_ver" + + "sion\030\010 \001(\t\032;\n\031ConversationProcessConfig\022" + + "\036\n\026recent_sentences_count\030\002 \001(\005\032\207\001\n\025Mess" + + "ageAnalysisConfig\022 \n\030enable_entity_extra" + + "ction\030\002 \001(\010\022!\n\031enable_sentiment_analysis" + + "\030\003 \001(\010\022)\n\034enable_sentiment_analysis_v3\030\005" + + " \001(\010B\003\340A\001\"\304\003\n\027HumanAgentHandoffConfig\022b\n" + + "\022live_person_config\030\001 \001(\0132D.google.cloud" + + ".dialogflow.v2.HumanAgentHandoffConfig.L" + + "ivePersonConfigH\000\022u\n\034salesforce_live_age" + + "nt_config\030\002 \001(\0132M.google.cloud.dialogflo" + + "w.v2.HumanAgentHandoffConfig.SalesforceL" + + "iveAgentConfigH\000\032/\n\020LivePersonConfig\022\033\n\016" + + "account_number\030\001 \001(\tB\003\340A\002\032\213\001\n\031Salesforce" + + "LiveAgentConfig\022\034\n\017organization_id\030\001 \001(\t" + + "B\003\340A\002\022\032\n\rdeployment_id\030\002 \001(\tB\003\340A\002\022\026\n\tbut" + + "ton_id\030\003 \001(\tB\003\340A\002\022\034\n\017endpoint_domain\030\004 \001" + + "(\tB\003\340A\002B\017\n\ragent_service\"\277\001\n\022Notificatio" + + "nConfig\022\r\n\005topic\030\001 \001(\t\022T\n\016message_format" + + "\030\002 \001(\0162<.google.cloud.dialogflow.v2.Noti" + + "ficationConfig.MessageFormat\"D\n\rMessageF" + + "ormat\022\036\n\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" + + "\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfig\022\"\n\032e" + + "nable_stackdriver_logging\030\003 \001(\010\"\362\001\n\021Sugg" + + "estionFeature\022@\n\004type\030\001 \001(\01622.google.clo" + + "ud.dialogflow.v2.SuggestionFeature.Type\"" + + "\232\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022ARTICL" + + "E_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_REPLY\020\003" + + "\022\036\n\032CONVERSATION_SUMMARIZATION\020\010\022\024\n\020KNOW" + + "LEDGE_SEARCH\020\016\022\024\n\020KNOWLEDGE_ASSIST\020\017\"\212\002\n" + + "!SetSuggestionFeatureConfigRequest\022!\n\024co" + + "nversation_profile\030\001 \001(\tB\003\340A\002\022K\n\020partici" + + "pant_role\030\002 \001(\0162,.google.cloud.dialogflo" + + "w.v2.Participant.RoleB\003\340A\002\022u\n\031suggestion" + + "_feature_config\030\003 \001(\0132M.google.cloud.dia" + + "logflow.v2.HumanAgentAssistantConfig.Sug" + + "gestionFeatureConfigB\003\340A\002\"\357\001\n#ClearSugge" + + "stionFeatureConfigRequest\022!\n\024conversatio" + + "n_profile\030\001 \001(\tB\003\340A\002\022K\n\020participant_role" + + "\030\002 \001(\0162,.google.cloud.dialogflow.v2.Part" + + "icipant.RoleB\003\340A\002\022X\n\027suggestion_feature_" + + "type\030\003 \001(\01622.google.cloud.dialogflow.v2." + + "SuggestionFeature.TypeB\003\340A\002\"\243\002\n+SetSugge" + + "stionFeatureConfigOperationMetadata\022\034\n\024c" + + "onversation_profile\030\001 \001(\t\022K\n\020participant" + + "_role\030\002 \001(\0162,.google.cloud.dialogflow.v2" + + ".Participant.RoleB\003\340A\002\022X\n\027suggestion_fea" + + "ture_type\030\003 \001(\01622.google.cloud.dialogflo" + + "w.v2.SuggestionFeature.TypeB\003\340A\002\022/\n\013crea" + + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\"\245\002\n-ClearSuggestionFeatureConfigOperat" + + "ionMetadata\022\034\n\024conversation_profile\030\001 \001(" + + "\t\022K\n\020participant_role\030\002 \001(\0162,.google.clo" + + "ud.dialogflow.v2.Participant.RoleB\003\340A\002\022X" + + "\n\027suggestion_feature_type\030\003 \001(\01622.google" + + ".cloud.dialogflow.v2.SuggestionFeature.T" + + "ypeB\003\340A\002\022/\n\013create_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp2\263\024\n\024ConversationProfil" + + "es\022\220\002\n\030ListConversationProfiles\022;.google" + + ".cloud.dialogflow.v2.ListConversationPro" + + "filesRequest\032<.google.cloud.dialogflow.v" + + "2.ListConversationProfilesResponse\"y\332A\006p" + + "arent\202\323\344\223\002j\022,/v2/{parent=projects/*}/con" + + "versationProfilesZ:\0228/v2/{parent=project" + + "s/*/locations/*}/conversationProfiles\022\375\001" + + "\n\026GetConversationProfile\0229.google.cloud." + + "dialogflow.v2.GetConversationProfileRequ" + + "est\032/.google.cloud.dialogflow.v2.Convers" + + "ationProfile\"w\332A\004name\202\323\344\223\002j\022,/v2/{name=p" + + "rojects/*/conversationProfiles/*}Z:\0228/v2" + + "/{name=projects/*/locations/*/conversati" + + "onProfiles/*}\022\310\002\n\031CreateConversationProf" + + "ile\022<.google.cloud.dialogflow.v2.CreateC" + + "onversationProfileRequest\032/.google.cloud" + + ".dialogflow.v2.ConversationProfile\"\273\001\332A\033" + + "parent,conversation_profile\202\323\344\223\002\226\001\",/v2/" + + "{parent=projects/*}/conversationProfiles" + + ":\024conversation_profileZP\"8/v2/{parent=pr" + + "ojects/*/locations/*}/conversationProfil" + + "es:\024conversation_profile\022\367\002\n\031UpdateConve" + + "rsationProfile\022<.google.cloud.dialogflow" + + ".v2.UpdateConversationProfileRequest\032/.g" + + "oogle.cloud.dialogflow.v2.ConversationPr" + + "ofile\"\352\001\332A conversation_profile,update_m" + + "ask\202\323\344\223\002\300\0012A/v2/{conversation_profile.na" + + "me=projects/*/conversationProfiles/*}:\024c" + + "onversation_profileZe2M/v2/{conversation" + + "_profile.name=projects/*/locations/*/con" + + "versationProfiles/*}:\024conversation_profi" + + "le\022\352\001\n\031DeleteConversationProfile\022<.googl" + + "e.cloud.dialogflow.v2.DeleteConversation" + + "ProfileRequest\032\026.google.protobuf.Empty\"w" + + "\332A\004name\202\323\344\223\002j*,/v2/{name=projects/*/conv" + + "ersationProfiles/*}Z:*8/v2/{name=project" + + "s/*/locations/*/conversationProfiles/*}\022" + + "\350\003\n\032SetSuggestionFeatureConfig\022=.google." + + "cloud.dialogflow.v2.SetSuggestionFeature" + + "ConfigRequest\032\035.google.longrunning.Opera" + + "tion\"\353\002\312AB\n\023ConversationProfile\022+SetSugg" + + "estionFeatureConfigOperationMetadata\332A\024c" + + "onversation_profile\332A?conversation_profi" + + "le,participant_role,suggestion_feature_c" + + "onfig\202\323\344\223\002\306\001\"W/v2/{conversation_profile=" + + "projects/*/conversationProfiles/*}:setSu" + + "ggestionFeatureConfig:\001*Zh\"c/v2/{convers" + + "ation_profile=projects/*/locations/*/con" + + "versationProfiles/*}:setSuggestionFeatur" + + "eConfig:\001*\022\360\003\n\034ClearSuggestionFeatureCon" + + "fig\022?.google.cloud.dialogflow.v2.ClearSu" + + "ggestionFeatureConfigRequest\032\035.google.lo" + + "ngrunning.Operation\"\357\002\312AD\n\023ConversationP" + + "rofile\022-ClearSuggestionFeatureConfigOper" + + "ationMetadata\332A\024conversation_profile\332A=c" + + "onversation_profile,participant_role,sug" + + "gestion_feature_type\202\323\344\223\002\312\001\"Y/v2/{conver" + + "sation_profile=projects/*/conversationPr" + + "ofiles/*}:clearSuggestionFeatureConfig:\001" + + "*Zj\"e/v2/{conversation_profile=projects/" + + "*/locations/*/conversationProfiles/*}:cl" + + "earSuggestionFeatureConfig:\001*\032x\312A\031dialog" + + "flow.googleapis.com\322AYhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/dialogflowB\235\002\n\036com." + + "google.cloud.dialogflow.v2B\030Conversation" + + "ProfileProtoP\001Z>cloud.google.com/go/dial" + + "ogflow/apiv2/dialogflowpb;dialogflowpb\242\002" + + "\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A|\n,dia" + + "logflow.googleapis.com/CXSecuritySetting" + + "s\022Lprojects/{project}/locations/{locatio" + + "n}/securitySettings/{security_settings}b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -706,7 +714,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor, new java.lang.String[] { - "EnableEntityExtraction", "EnableSentimentAnalysis", + "EnableEntityExtraction", "EnableSentimentAnalysis", "EnableSentimentAnalysisV3", }); internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor = getDescriptor().getMessageType(9); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java index 0203625d5985..fe7459b38375 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java @@ -64,10 +64,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_Conversation_ContextReference_ContextContent_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_Conversation_ContextReference_ContextContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -128,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -196,6 +208,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_SearchKnowledgeRequest_SearchConfig_FilterSpecs_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_SearchKnowledgeRequest_SearchConfig_FilterSpecs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -230,7 +250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud/dialogflow/v2/conversation_profile.proto\032*google/cloud/dialogflow/v2/genera" + "tor.proto\032,google/cloud/dialogflow/v2/participant.proto\032(google/cloud/dialogflow" + "/v2/session.proto\032\034google/protobuf/struc" - + "t.proto\032\037google/protobuf/timestamp.proto\"\377\021\n" + + "t.proto\032\037google/protobuf/timestamp.proto\"\364\026\n" + "\014Conversation\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022U\n" + "\017lifecycle_state\030\002 \001(\01627.google.cloud." @@ -244,17 +264,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022conversation_stage\030\007 \001(\0162:.google.cloud.d" + "ialogflow.v2.Conversation.ConversationStageB\003\340A\001\022h\n" + "\031telephony_connection_info\030\n" - + " \001(\0132@.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoB\003\340A\003\022q\n" - + "\033ingested_context_references\030\021 \003(\0132G.google" - + ".cloud.dialogflow.v2.Conversation.IngestedContextReferencesEntryB\003\340A\003\032\216\003\n" + + " \001(\0132@.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoB\003\340A\003\022]\n" + + "\034initial_conversation_profile\030\017 \001(\0132/.googl" + + "e.cloud.dialogflow.v2.ConversationProfileB\006\340A\001\340A\003\022q\n" + + "\033ingested_context_references\030\021 \003(\0132G.google.cloud.dialogflow.v2.Conv" + + "ersation.IngestedContextReferencesEntryB\003\340A\003\022o\n" + + "\032initial_generator_contexts\030\022 \003(\013" + + "2F.google.cloud.dialogflow.v2.Conversati" + + "on.InitialGeneratorContextsEntryB\003\340A\003\032\216\003\n" + "\027TelephonyConnectionInfo\022\032\n\r" + "dialed_number\030\002 \001(\tB\003\340A\003\022\020\n" + "\003sdp\030\005 \001(\tB\003\340A\001\022d\n" - + "\013sip_headers\030\014 \003(\0132J.google.cloud.dialogflow.v2.Conver" - + "sation.TelephonyConnectionInfo.SipHeaderB\003\340A\003\022n\n" + + "\013sip_headers\030\014 \003(\0132J.google.cloud.dialogflow.v" + + "2.Conversation.TelephonyConnectionInfo.SipHeaderB\003\340A\003\022n\n" + "\023extra_mime_contents\030\r" - + " \003(\0132L.goo" - + "gle.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.MimeContentB\003\340A\003\0322\n" + + " \003(\0132L.google.cloud.dialogflow.v2.Conversa" + + "tion.TelephonyConnectionInfo.MimeContentB\003\340A\003\0322\n" + "\tSipHeader\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\tB\003\340A\001\032;\n" @@ -262,19 +287,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmime_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\007content\030\002 \001(\014B\003\340A\001\032\254\005\n" + "\020ContextReference\022g\n" - + "\020context_contents\030\001 \003(\0132H." - + "google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContentB\003\340A\002\022^\n" - + "\013update_mode\030\002 \001(\0162D.google.cloud.dialogf" - + "low.v2.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + + "\020context_contents\030\001 \003(\0132H.google.cloud.dialogflow.v2.Conve" + + "rsation.ContextReference.ContextContentB\003\340A\002\022^\n" + + "\013update_mode\030\002 \001(\0162D.google.cloud" + + ".dialogflow.v2.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\266\002\n" + "\016ContextContent\022\024\n" + "\007content\030\001 \001(\tB\003\340A\002\022s\n" - + "\016content_format\030\002 \001(\0162V.google.cloud.dialogflow.v2.Conversatio" - + "n.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + + "\016content_format\030\002 \001(\0162V.google.cloud.dialogflow.v2.Con" + + "versation.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + "\016ingestion_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n" + + "\r" + "answer_record\030\004 \001(\t\"I\n\r" + "ContentFormat\022\036\n" + "\032CONTENT_FORMAT_UNSPECIFIED\020\000\022\010\n" @@ -283,11 +309,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UpdateMode\022\033\n" + "\027UPDATE_MODE_UNSPECIFIED\020\000\022\n\n" + "\006APPEND\020\001\022\r\n" - + "\tOVERWRITE\020\002\032{\n" + + "\tOVERWRITE\020\002\032\246\002\n" + + "\020GeneratorContext\022d\n" + + "\016generator_type\030\001 \001(\0162G.google.cloud.dialogflow.v2." + + "Conversation.GeneratorContext.GeneratorTypeB\003\340A\003\"\253\001\n\r" + + "GeneratorType\022\036\n" + + "\032GENERATOR_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tFREE_FORM\020\001\022\022\n" + + "\016AGENT_COACHING\020\002\022\021\n\r" + + "SUMMARIZATION\020\003\022\017\n" + + "\013TRANSLATION\020\004\022\022\n" + + "\016AGENT_FEEDBACK\020\005\022\037\n" + + "\033CUSTOMER_MESSAGE_GENERATION\020\006\032{\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.dialo" - + "gflow.v2.Conversation.ContextReference:\0028\001\"Q\n" + + "\005value\030\002" + + " \001(\01329.google.cloud.dialogflow.v2.Conversation.ContextReference:\0028\001\032z\n" + + "\035InitialGeneratorContextsEntry\022\013\n" + + "\003key\030\001 \001(\t\022H\n" + + "\005value\030\002" + + " \001(\01329.google.cloud.dialogflow.v2.Conversation.GeneratorContext:\0028\001\"Q\n" + "\016LifecycleState\022\037\n" + "\033LIFECYCLE_STATE_UNSPECIFIED\020\000\022\017\n" + "\013IN_PROGRESS\020\001\022\r\n" @@ -296,12 +337,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CONVERSATION_STAGE_UNSPECIFIED\020\000\022\027\n" + "\023VIRTUAL_AGENT_STAGE\020\001\022\026\n" + "\022HUMAN_ASSIST_STAGE\020\002:\300\001\352A\274\001\n" - + "&dialogflow.googleapis.com/Conversation\022/projects/{project}/conversations/{conver" - + "sation}\022Dprojects/{project}/locations/{location}/conversations/{conversation}*\r" + + "&dialogflow.googleapis.com/Conversation\022/projects/{p" + + "roject}/conversations/{conversation}\022Dpr" + + "ojects/{project}/locations/{location}/conversations/{conversation}*\r" + "conversations2\014conversation\"\276\001\n" + "\031CreateConversationRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(" - + "\022&dialogflow.googleapis.com/Conversation\022C\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022C\n" + "\014conversation\030\002" + " \001(\0132(.google.cloud.dialogflow.v2.ConversationB\003\340A\002\022\034\n" + "\017conversation_id\030\003 \001(\tB\003\340A\001\"\240\001\n" @@ -335,50 +377,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036IngestContextReferencesRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022r\n" - + "\022context_references\030\002 \003(\0132Q.goog" - + "le.cloud.dialogflow.v2.IngestContextRefe" - + "rencesRequest.ContextReferencesEntryB\003\340A\002\032s\n" + + "\022context_references\030\002 \003(\0132Q.google.cloud.di" + + "alogflow.v2.IngestContextReferencesRequest.ContextReferencesEntryB\003\340A\002\032s\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.dialogflo" - + "w.v2.Conversation.ContextReference:\0028\001\"\237\002\n" + + "\005value\030\002" + + " \001(\01329.google.cloud.dialogflow.v2.Conversation.ContextReference:\0028\001\"\237\002\n" + "\037IngestContextReferencesResponse\022\177\n" - + "\033ingested_context_references\030\001 \003(\0132Z.google" - + ".cloud.dialogflow.v2.IngestContextRefere" - + "ncesResponse.IngestedContextReferencesEntry\032{\n" + + "\033ingested_context_references\030\001 \003(\0132Z.google.cloud.dial" + + "ogflow.v2.IngestContextReferencesResponse.IngestedContextReferencesEntry\032{\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud" - + ".dialogflow.v2.Conversation.ContextReference:\0028\001\"\234\002\n" + + "\005value\030\002 \001(\01329.google.cloud.dialogflow" + + ".v2.Conversation.ContextReference:\0028\001\"\234\002\n" + "!SuggestConversationSummaryRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\004 \001(\005B\003\340A\001\022S\n" - + "\023assist_query_params\030\005 \001(\0132" - + "1.google.cloud.dialogflow.v2.AssistQueryParametersB\003\340A\001\"\367\003\n" + + "\023assist_query_params\030\005 \001(\01321.google.cl" + + "oud.dialogflow.v2.AssistQueryParametersB\003\340A\001\"\252\005\n" + "\"SuggestConversationSummaryResponse\022W\n" - + "\007summary\030\001 \001(\0132F.google" - + ".cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132F.google.cloud.dial" + + "ogflow.v2.SuggestConversationSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" - + "\014context_size\030\003 \001(\005\032\241\002\n" + + "\014context_size\030\003 \001(\005\032\324\003\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022o\n\r" - + "text_sections\030\004 \003(\0132X.google.cloud.dialogflow.v2.SuggestConve" - + "rsationSummaryResponse.Summary.TextSectionsEntry\022B\n\r" + + "text_sections\030\004 \003(\0132X.google.clo" + + "ud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.TextSectionsEntry\022s\n" + + "\024sorted_text_sections\030\006 \003(\0132U.google.clo" + + "ud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\022\036\n" - + "\026baseline_model_version\030\005 \001(\t\0323\n" + + "\026baseline_model_version\030\005 \001(\t\032<\n" + + "\016SummarySection\022\024\n" + + "\007section\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007summary\030\002 \001(\tB\003\340A\003\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\334\003\n" + "\037GenerateStatelessSummaryRequest\022t\n" - + "\026stateless_conversation\030\001 \001(\0132O.google.c" - + "loud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversationB\003\340A\002\022R\n" - + "\024conversation_profile\030\002 \001(\0132/.google.cloud" - + ".dialogflow.v2.ConversationProfileB\003\340A\002\022A\n" + + "\026stateless_conversation\030\001 \001(\0132O." + + "google.cloud.dialogflow.v2.GenerateState" + + "lessSummaryRequest.MinimalConversationB\003\340A\002\022R\n" + + "\024conversation_profile\030\002 \001(\0132/.goog" + + "le.cloud.dialogflow.v2.ConversationProfileB\003\340A\002\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\035\n" + "\020max_context_size\030\004 \001(\005B\003\340A\001\032\214\001\n" @@ -388,15 +434,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\002 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\"\255\003\n" + " GenerateStatelessSummaryResponse\022U\n" - + "\007summary\030\001 \001(\0132D.google.cloud.dialogflow" - + ".v2.GenerateStatelessSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132D.google.cloud.di" + + "alogflow.v2.GenerateStatelessSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\032\333\001\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022m\n\r" - + "text_sections\030\002 \003(\0132V.google.cloud.dialo" - + "gflow.v2.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\022\036\n" + + "text_sections\030\002 \003(\0132V.google.clo" + + "ud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\022\036\n" + "\026baseline_model_version\030\004 \001(\t\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -406,8 +452,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!locations.googleapis.com/Location\022:\n" + "\tgenerator\030\002 \001(\0132%.google.cloud.dialogflow.v2.GeneratorH\000\022\030\n" + "\016generator_name\030\003 \001(\tH\000\022v\n" - + "\022context_references\030\004 \003(\0132U.google.cloud.dialogflow.v2.Genera" - + "teStatelessSuggestionRequest.ContextReferencesEntryB\003\340A\001\022R\n" + + "\022context_references\030\004 \003(\0132U.google.cloud.dialogflow.v" + + "2.GenerateStatelessSuggestionRequest.ContextReferencesEntryB\003\340A\001\022R\n" + "\024conversation_context\030\005" + " \001(\0132/.google.cloud.dialogflow.v2.ConversationContextB\003\340A\001\022E\n" + "\016trigger_events\030\006" @@ -415,8 +461,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021security_settings\030\010 \001(\tB\003\340A\001\032s\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.dialogf" - + "low.v2.Conversation.ContextReference:\0028\001B\024\n" + + "\005value\030\002 \001(\01329.google.cloud" + + ".dialogflow.v2.Conversation.ContextReference:\0028\001B\024\n" + "\022generator_resource\"y\n" + "#GenerateStatelessSuggestionResponse\022R\n" + "\024generator_suggestion\030\001" @@ -432,44 +478,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\005 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022Y\n" - + "\014query_source\030\007 \001(" - + "\0162>.google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + + "\014query_source\030\007 \001(\0162>.google.cloud.dialogflow.v2.S" + + "earchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + "\021end_user_metadata\030\t" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022[\n\r" - + "search_config\030\013 \001(\0132?.google." - + "cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + + "search_config\030\013 \001(\0132?" + + ".google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + "\014exact_search\030\016 \001(\010B\003\340A\001\032\333\014\n" + "\014SearchConfig\022d\n" - + "\013boost_specs\030\001 \003(\0132J.google.cloud.dialogflow.v2.Searc" - + "hKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022f\n" - + "\014filter_specs\030\002 \003(\0132K.google.cl" - + "oud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecsB\003\340A\001\032\276\n\n\n" + + "\013boost_specs\030\001 \003(\0132J.google.cloud.dialogflow." + + "v2.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022f\n" + + "\014filter_specs\030\002 \003(\0132K.google.cloud.dialogflow.v2.SearchKnowledg" + + "eRequest.SearchConfig.FilterSpecsB\003\340A\001\032\276\n\n\n" + "BoostSpecs\022E\n" + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022g\n" - + "\004spec\030\002 \003(\0132T.google.cloud.dialogflow.v2." - + "SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\377\010\n" + + "\004spec\030\002 \003(\0132T.google.cloud.dialog" + + "flow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\377\010\n" + "\tBoostSpec\022\213\001\n" - + "\025condition_boost_specs\030\001 \003(\0132g.google.clo" - + "ud.dialogflow.v2.SearchKnowledgeRequest." - + "SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\343\007\n" + + "\025condition_boost_specs\030\001 \003(\0132g.go" + + "ogle.cloud.dialogflow.v2.SearchKnowledge" + + "Request.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\343\007\n" + "\022ConditionBoostSpec\022\026\n" + "\tcondition\030\001 \001(\tB\003\340A\001\022\022\n" + "\005boost\030\002 \001(\002B\003\340A\001\022\231\001\n" - + "\022boost_control_spec\030\004 \001(\0132x.goog" - + "le.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec." - + "ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\204\006\n" + + "\022boost_control_spec\030\004 \001(\0132x.google.cloud.dialogflow.v2.SearchKno" + + "wledgeRequest.SearchConfig.BoostSpecs.Bo" + + "ostSpec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\204\006\n" + "\020BoostControlSpec\022\027\n\n" + "field_name\030\001 \001(\tB\003\340A\001\022\244\001\n" - + "\016attribute_type\030\002 \001(\0162\206\001.googl" - + "e.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.C" - + "onditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\254\001\n" - + "\022interpolation_type\030\003 \001(\0162\212\001.google.cloud.dialogflow.v2.SearchK" - + "nowledgeRequest.SearchConfig.BoostSpecs." - + "BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022\243\001\n" - + "\016control_points\030\004 \003(\0132\205\001.google.cloud.dialogflow" - + ".v2.SearchKnowledgeRequest.SearchConfig." - + "BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + + "\016attribute_type\030\002 \001(\0162\206\001.google.cloud.dialogflow.v2.SearchKnow" + + "ledgeRequest.SearchConfig.BoostSpecs.Boo" + + "stSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\254\001\n" + + "\022interpolation_type\030\003 \001(\0162\212\001.google.cloud.dialogflow.v2" + + ".SearchKnowledgeRequest.SearchConfig.Boo" + + "stSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022\243\001\n" + + "\016control_points\030\004 \003(\0132\205\001.google.cloud.di" + + "alogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBo" + + "ostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + "\014ControlPoint\022\034\n" + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" @@ -486,17 +532,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013QuerySource\022\034\n" + "\030QUERY_SOURCE_UNSPECIFIED\020\000\022\017\n" + "\013AGENT_QUERY\020\001\022\023\n" - + "\017SUGGESTED_QUERY\020\002\"v\n" + + "\017SUGGESTED_QUERY\020\002\"\244\004\n" + + "\030SearchKnowledgeDebugInfo\022V\n" + + "\031datastore_response_reason\030\001 \001(\01623.googl" + + "e.cloud.dialogflow.v2.DatastoreResponseReason\022o\n" + + "\031search_knowledge_behavior\030\002 \001(\013" + + "2L.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior\022l\n" + + "%ingested_context_reference_debug_info\030\003" + + " \001(\0132=.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" + + "\017service_latency\030\004" + + " \001(\0132*.google.cloud.dialogflow.v2.ServiceLatency\032\213\001\n" + + "\027SearchKnowledgeBehavior\022%\n" + + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + + "\032end_user_metadata_included\030\002 \001(\010\022%\n" + + "\035third_party_connector_allowed\030\004 \001(\010\"\321\001\n" + "\027SearchKnowledgeResponse\022B\n" + "\007answers\030\002" + " \003(\01321.google.cloud.dialogflow.v2.SearchKnowledgeAnswer\022\027\n" - + "\017rewritten_query\030\003 \001(\t\"\316\003\n" + + "\017rewritten_query\030\003 \001(\t\022Y\n" + + "\033search_knowledge_debug_info\030\004 \001(\01324." + + "google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo\"\316\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022Q\n" - + "\013answer_type\030\002 \001(\0162<.google.cloud.d" - + "ialogflow.v2.SearchKnowledgeAnswer.AnswerType\022V\n" - + "\016answer_sources\030\003 \003(\0132>.google.c" - + "loud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + + "\013answer_type\030\002 \001(\0162<.goo" + + "gle.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerType\022V\n" + + "\016answer_sources\030\003 \003(\013" + + "2>.google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + "answer_record\030\005 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\032f\n" + "\014AnswerSource\022\r\n" @@ -506,8 +567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" - + "\003FAQ\020\001\022\016\n" - + "\n" + + "\003FAQ\020\001\022\016\n\n" + "GENERATIVE\020\002\022\n\n" + "\006INTENT\020\003\"\354\001\n" + "\032GenerateSuggestionsRequest\022D\n" @@ -518,75 +578,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016trigger_events\030\003" + " \003(\0162(.google.cloud.dialogflow.v2.TriggerEventB\003\340A\0012\246\032\n\r" + "Conversations\022\214\002\n" - + "\022CreateConversation\0225.google.cloud.dialogflow.v2.CreateConversationRequest" - + "\032(.google.cloud.dialogflow.v2.Conversati" - + "on\"\224\001\332A\023parent,conversation\202\323\344\223\002x\"%/v2/{" - + "parent=projects/*}/conversations:\014conver" - + "sationZA\"1/v2/{parent=projects/*/locations/*}/conversations:\014conversation\022\355\001\n" - + "\021ListConversations\0224.google.cloud.dialogflo" - + "w.v2.ListConversationsRequest\0325.google.cloud.dialogflow.v2.ListConversationsResp" - + "onse\"k\332A\006parent\202\323\344\223\002\\\022%/v2/{parent=proje" - + "cts/*}/conversationsZ3\0221/v2/{parent=projects/*/locations/*}/conversations\022\332\001\n" - + "\017GetConversation\0222.google.cloud.dialogflow." - + "v2.GetConversationRequest\032(.google.cloud" - + ".dialogflow.v2.Conversation\"i\332A\004name\202\323\344\223" - + "\002\\\022%/v2/{name=projects/*/conversations/*" - + "}Z3\0221/v2/{name=projects/*/locations/*/conversations/*}\022\375\001\n" - + "\024CompleteConversation\0227.google.cloud.dialogflow.v2.CompleteCon" - + "versationRequest\032(.google.cloud.dialogfl" - + "ow.v2.Conversation\"\201\001\332A\004name\202\323\344\223\002t\"./v2/" - + "{name=projects/*/conversations/*}:comple" - + "te:\001*Z?\":/v2/{name=projects/*/locations/*/conversations/*}:complete:\001*\022\222\002\n" - + "\027IngestContextReferences\022:.google.cloud.dialog" - + "flow.v2.IngestContextReferencesRequest\032;.google.cloud.dialogflow.v2.IngestContex" - + "tReferencesResponse\"~\332A\037conversation,con" - + "text_references\202\323\344\223\002V\"Q/v2/{conversation" - + "=projects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\365\001\n" - + "\014ListMessages\022/.google.cloud.dialogflow.v2.ListMe" - + "ssagesRequest\0320.google.cloud.dialogflow." - + "v2.ListMessagesResponse\"\201\001\332A\006parent\202\323\344\223\002" - + "r\0220/v2/{parent=projects/*/conversations/" - + "*}/messagesZ>\022.google.cloud.dialogflow.v2.S" - + "uggestConversationSummaryResponse\"\326\001\332A\014c" - + "onversation\202\323\344\223\002\300\001\"T/v2/{conversation=pr" - + "ojects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Ze\"`/v2/{conv" - + "ersation=projects/*/locations/*/conversa" - + "tions/*}/suggestions:suggestConversationSummary:\001*\022\335\002\n" - + "\030GenerateStatelessSummary\022;.google.cloud.dialogflow.v2.GenerateSta" - + "telessSummaryRequest\032<.google.cloud.dialogflow.v2.GenerateStatelessSummaryRespon" - + "se\"\305\001\202\323\344\223\002\276\001\"S/v2/{stateless_conversatio" - + "n.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zd\"_/v2/{stateless_c" - + "onversation.parent=projects/*/locations/" - + "*}/suggestions:generateStatelessSummary:\001*\022\353\001\n" - + "\033GenerateStatelessSuggestion\022>.google.cloud.dialogflow.v2.GenerateStateles" - + "sSuggestionRequest\032?.google.cloud.dialogflow.v2.GenerateStatelessSuggestionRespo" - + "nse\"K\202\323\344\223\002E\"@/v2/{parent=projects/*/loca" - + "tions/*}/statelessSuggestion:generate:\001*\022\256\003\n" - + "\017SearchKnowledge\0222.google.cloud.dialogflow.v2.SearchKnowledgeRequest\0323.googl" - + "e.cloud.dialogflow.v2.SearchKnowledgeRes" - + "ponse\"\261\002\202\323\344\223\002\252\002\"3/v2/{parent=projects/*}" - + "/suggestions:searchKnowledge:\001*ZD\"?/v2/{parent=projects/*/locations/*}/suggestio" - + "ns:searchKnowledge:\001*ZN\"I/v2/{conversation=projects/*/conversations/*}/suggestio" - + "ns:searchKnowledge:\001*ZZ\"U/v2/{conversati" - + "on=projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\273\002\n" - + "\023GenerateSuggestions\0226.google.cloud.dialogf" - + "low.v2.GenerateSuggestionsRequest\0327.google.cloud.dialogflow.v2.GenerateSuggestio" - + "nsResponse\"\262\001\332A\014conversation\202\323\344\223\002\234\001\"B/v2" - + "/{conversation=projects/*/conversations/*}/suggestions:generate:\001*ZS\"N/v2/{conve" - + "rsation=projects/*/locations/*/conversat" - + "ions/*}/suggestions:generate:\001*\032x\312A\031dial" - + "ogflow.googleapis.com\322AYhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\275\003\n" - + "\036com.google.cloud.dialogflow.v2B\021Conversati" - + "onProtoP\001Z>cloud.google.com/go/dialogflo" - + "w/apiv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022Xproje" - + "cts/{project}/locations/{location}/collections/{collection}/dataStores/{data_sto" - + "re}\022?projects/{project}/locations/{location}/dataStores/{data_store}\352AZ\n" - + "\027ces.googleapis.com/Tool\022?projects/{project}/loc" - + "ations/{location}/apps/{app}/tools/{tool}b\006proto3" + + "\022CreateConversation\0225.google.cloud.dialogflow.v2.CreateConversa" + + "tionRequest\032(.google.cloud.dialogflow.v2" + + ".Conversation\"\224\001\332A\023parent,conversation\202\323" + + "\344\223\002x\"%/v2/{parent=projects/*}/conversati" + + "ons:\014conversationZA\"1/v2/{parent=project" + + "s/*/locations/*}/conversations:\014conversation\022\355\001\n" + + "\021ListConversations\0224.google.cloud.dialogflow.v2.ListConversationsRequest" + + "\0325.google.cloud.dialogflow.v2.ListConver" + + "sationsResponse\"k\332A\006parent\202\323\344\223\002\\\022%/v2/{p" + + "arent=projects/*}/conversationsZ3\0221/v2/{" + + "parent=projects/*/locations/*}/conversations\022\332\001\n" + + "\017GetConversation\0222.google.cloud.dialogflow.v2.GetConversationRequest\032(.g" + + "oogle.cloud.dialogflow.v2.Conversation\"i" + + "\332A\004name\202\323\344\223\002\\\022%/v2/{name=projects/*/conv" + + "ersations/*}Z3\0221/v2/{name=projects/*/locations/*/conversations/*}\022\375\001\n" + + "\024CompleteConversation\0227.google.cloud.dialogflow.v2." + + "CompleteConversationRequest\032(.google.clo" + + "ud.dialogflow.v2.Conversation\"\201\001\332A\004name\202" + + "\323\344\223\002t\"./v2/{name=projects/*/conversation" + + "s/*}:complete:\001*Z?\":/v2/{name=projects/*" + + "/locations/*/conversations/*}:complete:\001*\022\222\002\n" + + "\027IngestContextReferences\022:.google.cloud.dialogflow.v2.IngestContextReferenc" + + "esRequest\032;.google.cloud.dialogflow.v2.I" + + "ngestContextReferencesResponse\"~\332A\037conve" + + "rsation,context_references\202\323\344\223\002V\"Q/v2/{c" + + "onversation=projects/*/locations/*/conve" + + "rsations/*}:ingestContextReferences:\001*\022\365\001\n" + + "\014ListMessages\022/.google.cloud.dialogflo" + + "w.v2.ListMessagesRequest\0320.google.cloud." + + "dialogflow.v2.ListMessagesResponse\"\201\001\332A\006" + + "parent\202\323\344\223\002r\0220/v2/{parent=projects/*/con" + + "versations/*}/messagesZ>\022.google.cloud.dialogflow.v2.SuggestConversationSummaryResp" + + "onse\"\326\001\332A\014conversation\202\323\344\223\002\300\001\"T/v2/{conv" + + "ersation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Ze" + + "\"`/v2/{conversation=projects/*/locations" + + "/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\335\002\n" + + "\030GenerateStatelessSummary\022;.google.cloud.dialogflow.v2." + + "GenerateStatelessSummaryRequest\032<.google.cloud.dialogflow.v2.GenerateStatelessSu" + + "mmaryResponse\"\305\001\202\323\344\223\002\276\001\"S/v2/{stateless_" + + "conversation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zd\"_/v2/{" + + "stateless_conversation.parent=projects/*" + + "/locations/*}/suggestions:generateStatelessSummary:\001*\022\353\001\n" + + "\033GenerateStatelessSuggestion\022>.google.cloud.dialogflow.v2.Gener" + + "ateStatelessSuggestionRequest\032?.google.cloud.dialogflow.v2.GenerateStatelessSugg" + + "estionResponse\"K\202\323\344\223\002E\"@/v2/{parent=proj" + + "ects/*/locations/*}/statelessSuggestion:generate:\001*\022\256\003\n" + + "\017SearchKnowledge\0222.google.cloud.dialogflow.v2.SearchKnowledgeRequ" + + "est\0323.google.cloud.dialogflow.v2.SearchK" + + "nowledgeResponse\"\261\002\202\323\344\223\002\252\002\"3/v2/{parent=" + + "projects/*}/suggestions:searchKnowledge:\001*ZD\"?/v2/{parent=projects/*/locations/*" + + "}/suggestions:searchKnowledge:\001*ZN\"I/v2/{conversation=projects/*/conversations/*" + + "}/suggestions:searchKnowledge:\001*ZZ\"U/v2/{conversation=projects/*/locations/*/con" + + "versations/*}/suggestions:searchKnowledge:\001*\022\273\002\n" + + "\023GenerateSuggestions\0226.google.cloud.dialogflow.v2.GenerateSuggestionsReq" + + "uest\0327.google.cloud.dialogflow.v2.Genera" + + "teSuggestionsResponse\"\262\001\332A\014conversation\202" + + "\323\344\223\002\234\001\"B/v2/{conversation=projects/*/con" + + "versations/*}/suggestions:generate:\001*ZS\"N/v2/{conversation=projects/*/locations/" + + "*/conversations/*}/suggestions:generate:" + + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/dialogflowB\275\003\n" + + "\036com.google.cloud.dialogflow.v2B\021ConversationProtoP\001Z>cloud.google.com/g" + + "o/dialogflow/apiv2/dialogflowpb;dialogfl" + + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022Xprojects/{project}/locations/{loca" + + "tion}/collections/{collection}/dataStores/{data_store}\022?projects/{project}/locat" + + "ions/{location}/dataStores/{data_store}\352AZ\n" + + "\027ces.googleapis.com/Tool\022?projects/{project}/locations/{location}/apps/{app}/" + + "tools/{tool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -617,7 +681,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EndTime", "ConversationStage", "TelephonyConnectionInfo", + "InitialConversationProfile", "IngestedContextReferences", + "InitialGeneratorContexts", }); internal_static_google_cloud_dialogflow_v2_Conversation_TelephonyConnectionInfo_descriptor = internal_static_google_cloud_dialogflow_v2_Conversation_descriptor.getNestedType(0); @@ -662,14 +728,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Content", "ContentFormat", "IngestionTime", "AnswerRecord", }); - internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor = internal_static_google_cloud_dialogflow_v2_Conversation_descriptor.getNestedType(2); + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor, + new java.lang.String[] { + "GeneratorType", + }); + internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_Conversation_descriptor.getNestedType(3); internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_Conversation_descriptor.getNestedType(4); + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_fieldAccessorTable = @@ -791,11 +873,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_descriptor, new java.lang.String[] { - "Text", "TextSections", "AnswerRecord", "BaselineModelVersion", + "Text", "TextSections", "SortedTextSections", "AnswerRecord", "BaselineModelVersion", }); - internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor = internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_descriptor .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor, + new java.lang.String[] { + "Section", "Summary", + }); + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_descriptor + .getNestedType(1); internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor, @@ -957,16 +1048,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataStores", "Filter", }); - internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_descriptor = + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor = getDescriptor().getMessageType(18); + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor, + new java.lang.String[] { + "DatastoreResponseReason", + "SearchKnowledgeBehavior", + "IngestedContextReferenceDebugInfo", + "ServiceLatency", + }); + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor = + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor, + new java.lang.String[] { + "AnswerGenerationRewriterOn", "EndUserMetadataIncluded", "ThirdPartyConnectorAllowed", + }); + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_descriptor = + getDescriptor().getMessageType(19); internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_descriptor, new java.lang.String[] { - "Answers", "RewrittenQuery", + "Answers", "RewrittenQuery", "SearchKnowledgeDebugInfo", }); internal_static_google_cloud_dialogflow_v2_SearchKnowledgeAnswer_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_cloud_dialogflow_v2_SearchKnowledgeAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SearchKnowledgeAnswer_descriptor, @@ -983,7 +1094,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Title", "Uri", "Snippet", "Metadata", }); internal_static_google_cloud_dialogflow_v2_GenerateSuggestionsRequest_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(21); internal_static_google_cloud_dialogflow_v2_GenerateSuggestionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_GenerateSuggestionsRequest_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DatastoreResponseReason.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DatastoreResponseReason.java new file mode 100644 index 000000000000..20edc2658820 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DatastoreResponseReason.java @@ -0,0 +1,356 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                  + * Response reason from datastore which indicates data serving status or
                                                                                                                                  + * answer quality degradation.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf enum {@code google.cloud.dialogflow.v2.DatastoreResponseReason} + */ +@com.google.protobuf.Generated +public enum DatastoreResponseReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +   * Default value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + */ + DATASTORE_RESPONSE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +   * No specific response reason from datastore.
                                                                                                                                  +   * 
                                                                                                                                  + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
                                                                                                                                  +   * Search is blocked due to out of quota.
                                                                                                                                  +   * 
                                                                                                                                  + * + * SEARCH_OUT_OF_QUOTA = 2; + */ + SEARCH_OUT_OF_QUOTA(2), + /** + * + * + *
                                                                                                                                  +   * Search returns empty results.
                                                                                                                                  +   * 
                                                                                                                                  + * + * SEARCH_EMPTY_RESULTS = 3; + */ + SEARCH_EMPTY_RESULTS(3), + /** + * + * + *
                                                                                                                                  +   * Generative AI is disabled.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_GEN_AI_DISABLED = 4; + */ + ANSWER_GENERATION_GEN_AI_DISABLED(4), + /** + * + * + *
                                                                                                                                  +   * Answer generation is blocked due to out of quota.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_OUT_OF_QUOTA = 5; + */ + ANSWER_GENERATION_OUT_OF_QUOTA(5), + /** + * + * + *
                                                                                                                                  +   * Answer generation encounters an error.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_ERROR = 6; + */ + ANSWER_GENERATION_ERROR(6), + /** + * + * + *
                                                                                                                                  +   * Answer generation does not have enough information to generate answer.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + */ + ANSWER_GENERATION_NOT_ENOUGH_INFO(7), + /** + * + * + *
                                                                                                                                  +   * Answer generation is blocked by RAI (Responsible AI) failure.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_RAI_FAILED = 8; + */ + ANSWER_GENERATION_RAI_FAILED(8), + /** + * + * + *
                                                                                                                                  +   * Answer generation is not grounded on reliable sources.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_NOT_GROUNDED = 9; + */ + ANSWER_GENERATION_NOT_GROUNDED(9), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DatastoreResponseReason"); + } + + /** + * + * + *
                                                                                                                                  +   * Default value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + */ + public static final int DATASTORE_RESPONSE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +   * No specific response reason from datastore.
                                                                                                                                  +   * 
                                                                                                                                  + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +   * Search is blocked due to out of quota.
                                                                                                                                  +   * 
                                                                                                                                  + * + * SEARCH_OUT_OF_QUOTA = 2; + */ + public static final int SEARCH_OUT_OF_QUOTA_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +   * Search returns empty results.
                                                                                                                                  +   * 
                                                                                                                                  + * + * SEARCH_EMPTY_RESULTS = 3; + */ + public static final int SEARCH_EMPTY_RESULTS_VALUE = 3; + + /** + * + * + *
                                                                                                                                  +   * Generative AI is disabled.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_GEN_AI_DISABLED = 4; + */ + public static final int ANSWER_GENERATION_GEN_AI_DISABLED_VALUE = 4; + + /** + * + * + *
                                                                                                                                  +   * Answer generation is blocked due to out of quota.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_OUT_OF_QUOTA = 5; + */ + public static final int ANSWER_GENERATION_OUT_OF_QUOTA_VALUE = 5; + + /** + * + * + *
                                                                                                                                  +   * Answer generation encounters an error.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_ERROR = 6; + */ + public static final int ANSWER_GENERATION_ERROR_VALUE = 6; + + /** + * + * + *
                                                                                                                                  +   * Answer generation does not have enough information to generate answer.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + */ + public static final int ANSWER_GENERATION_NOT_ENOUGH_INFO_VALUE = 7; + + /** + * + * + *
                                                                                                                                  +   * Answer generation is blocked by RAI (Responsible AI) failure.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_RAI_FAILED = 8; + */ + public static final int ANSWER_GENERATION_RAI_FAILED_VALUE = 8; + + /** + * + * + *
                                                                                                                                  +   * Answer generation is not grounded on reliable sources.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_NOT_GROUNDED = 9; + */ + public static final int ANSWER_GENERATION_NOT_GROUNDED_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatastoreResponseReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatastoreResponseReason forNumber(int value) { + switch (value) { + case 0: + return DATASTORE_RESPONSE_REASON_UNSPECIFIED; + case 1: + return NONE; + case 2: + return SEARCH_OUT_OF_QUOTA; + case 3: + return SEARCH_EMPTY_RESULTS; + case 4: + return ANSWER_GENERATION_GEN_AI_DISABLED; + case 5: + return ANSWER_GENERATION_OUT_OF_QUOTA; + case 6: + return ANSWER_GENERATION_ERROR; + case 7: + return ANSWER_GENERATION_NOT_ENOUGH_INFO; + case 8: + return ANSWER_GENERATION_RAI_FAILED; + case 9: + return ANSWER_GENERATION_NOT_GROUNDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatastoreResponseReason findValueByNumber(int number) { + return DatastoreResponseReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DatastoreResponseReason[] VALUES = values(); + + public static DatastoreResponseReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DatastoreResponseReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.DatastoreResponseReason) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Generator.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Generator.java index 43d168882e4e..8b65d1db6e2c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Generator.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Generator.java @@ -56,6 +56,9 @@ private Generator() { description_ = ""; triggerEvent_ = 0; tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + toolsetTools_ = java.util.Collections.emptyList(); + cesToolSpecs_ = java.util.Collections.emptyList(); + cesAppSpecs_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -885,6 +888,264 @@ public com.google.cloud.dialogflow.v2.SuggestionDedupingConfig getSuggestionDedu : suggestionDedupingConfig_; } + public static final int TOOLSET_TOOLS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List toolsetTools_; + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsetToolsList() { + return toolsetTools_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolsetToolsOrBuilderList() { + return toolsetTools_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsetToolsCount() { + return toolsetTools_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool getToolsetTools(int index) { + return toolsetTools_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index) { + return toolsetTools_.get(index); + } + + public static final int CES_TOOL_SPECS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List cesToolSpecs_; + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCesToolSpecsList() { + return cesToolSpecs_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCesToolSpecsOrBuilderList() { + return cesToolSpecs_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCesToolSpecsCount() { + return cesToolSpecs_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec getCesToolSpecs(int index) { + return cesToolSpecs_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index) { + return cesToolSpecs_.get(index); + } + + public static final int CES_APP_SPECS_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private java.util.List cesAppSpecs_; + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCesAppSpecsList() { + return cesAppSpecs_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCesAppSpecsOrBuilderList() { + return cesAppSpecs_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCesAppSpecsCount() { + return cesAppSpecs_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec getCesAppSpecs(int index) { + return cesAppSpecs_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder getCesAppSpecsOrBuilder(int index) { + return cesAppSpecs_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -936,6 +1197,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(23, getSuggestionDedupingConfig()); } + for (int i = 0; i < toolsetTools_.size(); i++) { + output.writeMessage(27, toolsetTools_.get(i)); + } + for (int i = 0; i < cesToolSpecs_.size(); i++) { + output.writeMessage(28, cesToolSpecs_.get(i)); + } + for (int i = 0; i < cesAppSpecs_.size(); i++) { + output.writeMessage(29, cesAppSpecs_.get(i)); + } getUnknownFields().writeTo(output); } @@ -995,6 +1265,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 23, getSuggestionDedupingConfig()); } + for (int i = 0; i < toolsetTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, toolsetTools_.get(i)); + } + for (int i = 0; i < cesToolSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, cesToolSpecs_.get(i)); + } + for (int i = 0; i < cesAppSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, cesAppSpecs_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1030,6 +1309,9 @@ public boolean equals(final java.lang.Object obj) { if (hasSuggestionDedupingConfig()) { if (!getSuggestionDedupingConfig().equals(other.getSuggestionDedupingConfig())) return false; } + if (!getToolsetToolsList().equals(other.getToolsetToolsList())) return false; + if (!getCesToolSpecsList().equals(other.getCesToolSpecsList())) return false; + if (!getCesAppSpecsList().equals(other.getCesAppSpecsList())) return false; if (!getContextCase().equals(other.getContextCase())) return false; switch (contextCase_) { case 11: @@ -1089,6 +1371,18 @@ public int hashCode() { hash = (37 * hash) + SUGGESTION_DEDUPING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSuggestionDedupingConfig().hashCode(); } + if (getToolsetToolsCount() > 0) { + hash = (37 * hash) + TOOLSET_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsetToolsList().hashCode(); + } + if (getCesToolSpecsCount() > 0) { + hash = (37 * hash) + CES_TOOL_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCesToolSpecsList().hashCode(); + } + if (getCesAppSpecsCount() > 0) { + hash = (37 * hash) + CES_APP_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCesAppSpecsList().hashCode(); + } switch (contextCase_) { case 11: hash = (37 * hash) + FREE_FORM_CONTEXT_FIELD_NUMBER; @@ -1258,6 +1552,9 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetSuggestionDedupingConfigFieldBuilder(); + internalGetToolsetToolsFieldBuilder(); + internalGetCesToolSpecsFieldBuilder(); + internalGetCesAppSpecsFieldBuilder(); } } @@ -1298,6 +1595,27 @@ public Builder clear() { suggestionDedupingConfigBuilder_.dispose(); suggestionDedupingConfigBuilder_ = null; } + if (toolsetToolsBuilder_ == null) { + toolsetTools_ = java.util.Collections.emptyList(); + } else { + toolsetTools_ = null; + toolsetToolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (cesToolSpecsBuilder_ == null) { + cesToolSpecs_ = java.util.Collections.emptyList(); + } else { + cesToolSpecs_ = null; + cesToolSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + if (cesAppSpecsBuilder_ == null) { + cesAppSpecs_ = java.util.Collections.emptyList(); + } else { + cesAppSpecs_ = null; + cesAppSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); contextCase_ = 0; context_ = null; foundationModelCase_ = 0; @@ -1329,6 +1647,7 @@ public com.google.cloud.dialogflow.v2.Generator build() { public com.google.cloud.dialogflow.v2.Generator buildPartial() { com.google.cloud.dialogflow.v2.Generator result = new com.google.cloud.dialogflow.v2.Generator(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1337,6 +1656,36 @@ public com.google.cloud.dialogflow.v2.Generator buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.v2.Generator result) { + if (toolsetToolsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + toolsetTools_ = java.util.Collections.unmodifiableList(toolsetTools_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.toolsetTools_ = toolsetTools_; + } else { + result.toolsetTools_ = toolsetToolsBuilder_.build(); + } + if (cesToolSpecsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + cesToolSpecs_ = java.util.Collections.unmodifiableList(cesToolSpecs_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.cesToolSpecs_ = cesToolSpecs_; + } else { + result.cesToolSpecs_ = cesToolSpecsBuilder_.build(); + } + if (cesAppSpecsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + cesAppSpecs_ = java.util.Collections.unmodifiableList(cesAppSpecs_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.cesAppSpecs_ = cesAppSpecs_; + } else { + result.cesAppSpecs_ = cesAppSpecsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.dialogflow.v2.Generator result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1441,6 +1790,87 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Generator other) { if (other.hasSuggestionDedupingConfig()) { mergeSuggestionDedupingConfig(other.getSuggestionDedupingConfig()); } + if (toolsetToolsBuilder_ == null) { + if (!other.toolsetTools_.isEmpty()) { + if (toolsetTools_.isEmpty()) { + toolsetTools_ = other.toolsetTools_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureToolsetToolsIsMutable(); + toolsetTools_.addAll(other.toolsetTools_); + } + onChanged(); + } + } else { + if (!other.toolsetTools_.isEmpty()) { + if (toolsetToolsBuilder_.isEmpty()) { + toolsetToolsBuilder_.dispose(); + toolsetToolsBuilder_ = null; + toolsetTools_ = other.toolsetTools_; + bitField0_ = (bitField0_ & ~0x00001000); + toolsetToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsetToolsFieldBuilder() + : null; + } else { + toolsetToolsBuilder_.addAllMessages(other.toolsetTools_); + } + } + } + if (cesToolSpecsBuilder_ == null) { + if (!other.cesToolSpecs_.isEmpty()) { + if (cesToolSpecs_.isEmpty()) { + cesToolSpecs_ = other.cesToolSpecs_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.addAll(other.cesToolSpecs_); + } + onChanged(); + } + } else { + if (!other.cesToolSpecs_.isEmpty()) { + if (cesToolSpecsBuilder_.isEmpty()) { + cesToolSpecsBuilder_.dispose(); + cesToolSpecsBuilder_ = null; + cesToolSpecs_ = other.cesToolSpecs_; + bitField0_ = (bitField0_ & ~0x00002000); + cesToolSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCesToolSpecsFieldBuilder() + : null; + } else { + cesToolSpecsBuilder_.addAllMessages(other.cesToolSpecs_); + } + } + } + if (cesAppSpecsBuilder_ == null) { + if (!other.cesAppSpecs_.isEmpty()) { + if (cesAppSpecs_.isEmpty()) { + cesAppSpecs_ = other.cesAppSpecs_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.addAll(other.cesAppSpecs_); + } + onChanged(); + } + } else { + if (!other.cesAppSpecs_.isEmpty()) { + if (cesAppSpecsBuilder_.isEmpty()) { + cesAppSpecsBuilder_.dispose(); + cesAppSpecsBuilder_ = null; + cesAppSpecs_ = other.cesAppSpecs_; + bitField0_ = (bitField0_ & ~0x00004000); + cesAppSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCesAppSpecsFieldBuilder() + : null; + } else { + cesAppSpecsBuilder_.addAllMessages(other.cesAppSpecs_); + } + } + } switch (other.getContextCase()) { case FREE_FORM_CONTEXT: { @@ -1583,6 +2013,45 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 186 + case 218: + { + com.google.cloud.dialogflow.v2.ToolsetTool m = + input.readMessage( + com.google.cloud.dialogflow.v2.ToolsetTool.parser(), extensionRegistry); + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(m); + } else { + toolsetToolsBuilder_.addMessage(m); + } + break; + } // case 218 + case 226: + { + com.google.cloud.dialogflow.v2.CesToolSpec m = + input.readMessage( + com.google.cloud.dialogflow.v2.CesToolSpec.parser(), extensionRegistry); + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(m); + } else { + cesToolSpecsBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + com.google.cloud.dialogflow.v2.CesAppSpec m = + input.readMessage( + com.google.cloud.dialogflow.v2.CesAppSpec.parser(), extensionRegistry); + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(m); + } else { + cesAppSpecsBuilder_.addMessage(m); + } + break; + } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3882,6 +4351,1218 @@ public Builder clearSuggestionDedupingConfig() { return suggestionDedupingConfigBuilder_; } + private java.util.List toolsetTools_ = + java.util.Collections.emptyList(); + + private void ensureToolsetToolsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + toolsetTools_ = + new java.util.ArrayList(toolsetTools_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ToolsetTool, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder> + toolsetToolsBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsetToolsList() { + if (toolsetToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolsetTools_); + } else { + return toolsetToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsetToolsCount() { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.size(); + } else { + return toolsetToolsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetTool getToolsetTools(int index) { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.get(index); + } else { + return toolsetToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTools(int index, com.google.cloud.dialogflow.v2.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.set(index, value); + onChanged(); + } else { + toolsetToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTools( + int index, com.google.cloud.dialogflow.v2.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools(com.google.cloud.dialogflow.v2.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.add(value); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools(int index, com.google.cloud.dialogflow.v2.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.add(index, value); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + com.google.cloud.dialogflow.v2.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + int index, com.google.cloud.dialogflow.v2.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolsetTools( + java.lang.Iterable values) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolsetTools_); + onChanged(); + } else { + toolsetToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsetTools() { + if (toolsetToolsBuilder_ == null) { + toolsetTools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + toolsetToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolsetTools(int index) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.remove(index); + onChanged(); + } else { + toolsetToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetTool.Builder getToolsetToolsBuilder(int index) { + return internalGetToolsetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index) { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.get(index); + } else { + return toolsetToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetToolsOrBuilderList() { + if (toolsetToolsBuilder_ != null) { + return toolsetToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolsetTools_); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetTool.Builder addToolsetToolsBuilder() { + return internalGetToolsetToolsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.ToolsetTool.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetTool.Builder addToolsetToolsBuilder(int index) { + return internalGetToolsetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.ToolsetTool.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetToolsBuilderList() { + return internalGetToolsetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ToolsetTool, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder> + internalGetToolsetToolsFieldBuilder() { + if (toolsetToolsBuilder_ == null) { + toolsetToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ToolsetTool, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder>( + toolsetTools_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + toolsetTools_ = null; + } + return toolsetToolsBuilder_; + } + + private java.util.List cesToolSpecs_ = + java.util.Collections.emptyList(); + + private void ensureCesToolSpecsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + cesToolSpecs_ = + new java.util.ArrayList(cesToolSpecs_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesToolSpec, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder> + cesToolSpecsBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCesToolSpecsList() { + if (cesToolSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cesToolSpecs_); + } else { + return cesToolSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCesToolSpecsCount() { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.size(); + } else { + return cesToolSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpec getCesToolSpecs(int index) { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.get(index); + } else { + return cesToolSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesToolSpecs(int index, com.google.cloud.dialogflow.v2.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.set(index, value); + onChanged(); + } else { + cesToolSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesToolSpecs( + int index, com.google.cloud.dialogflow.v2.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs(com.google.cloud.dialogflow.v2.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(value); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs(int index, com.google.cloud.dialogflow.v2.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(index, value); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + com.google.cloud.dialogflow.v2.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + int index, com.google.cloud.dialogflow.v2.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCesToolSpecs( + java.lang.Iterable values) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cesToolSpecs_); + onChanged(); + } else { + cesToolSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCesToolSpecs() { + if (cesToolSpecsBuilder_ == null) { + cesToolSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + cesToolSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCesToolSpecs(int index) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.remove(index); + onChanged(); + } else { + cesToolSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpec.Builder getCesToolSpecsBuilder(int index) { + return internalGetCesToolSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index) { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.get(index); + } else { + return cesToolSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesToolSpecsOrBuilderList() { + if (cesToolSpecsBuilder_ != null) { + return cesToolSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cesToolSpecs_); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpec.Builder addCesToolSpecsBuilder() { + return internalGetCesToolSpecsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.CesToolSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpec.Builder addCesToolSpecsBuilder(int index) { + return internalGetCesToolSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.CesToolSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesToolSpecsBuilderList() { + return internalGetCesToolSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesToolSpec, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder> + internalGetCesToolSpecsFieldBuilder() { + if (cesToolSpecsBuilder_ == null) { + cesToolSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesToolSpec, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder>( + cesToolSpecs_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + cesToolSpecs_ = null; + } + return cesToolSpecsBuilder_; + } + + private java.util.List cesAppSpecs_ = + java.util.Collections.emptyList(); + + private void ensureCesAppSpecsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + cesAppSpecs_ = + new java.util.ArrayList(cesAppSpecs_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesAppSpec, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder> + cesAppSpecsBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCesAppSpecsList() { + if (cesAppSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cesAppSpecs_); + } else { + return cesAppSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCesAppSpecsCount() { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.size(); + } else { + return cesAppSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpec getCesAppSpecs(int index) { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.get(index); + } else { + return cesAppSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesAppSpecs(int index, com.google.cloud.dialogflow.v2.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.set(index, value); + onChanged(); + } else { + cesAppSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesAppSpecs( + int index, com.google.cloud.dialogflow.v2.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs(com.google.cloud.dialogflow.v2.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(value); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs(int index, com.google.cloud.dialogflow.v2.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(index, value); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs( + com.google.cloud.dialogflow.v2.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs( + int index, com.google.cloud.dialogflow.v2.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCesAppSpecs( + java.lang.Iterable values) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cesAppSpecs_); + onChanged(); + } else { + cesAppSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCesAppSpecs() { + if (cesAppSpecsBuilder_ == null) { + cesAppSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + cesAppSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCesAppSpecs(int index) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.remove(index); + onChanged(); + } else { + cesAppSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpec.Builder getCesAppSpecsBuilder(int index) { + return internalGetCesAppSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder getCesAppSpecsOrBuilder(int index) { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.get(index); + } else { + return cesAppSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesAppSpecsOrBuilderList() { + if (cesAppSpecsBuilder_ != null) { + return cesAppSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cesAppSpecs_); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpec.Builder addCesAppSpecsBuilder() { + return internalGetCesAppSpecsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.CesAppSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpec.Builder addCesAppSpecsBuilder(int index) { + return internalGetCesAppSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.CesAppSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesAppSpecsBuilderList() { + return internalGetCesAppSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesAppSpec, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder> + internalGetCesAppSpecsFieldBuilder() { + if (cesAppSpecsBuilder_ == null) { + cesAppSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesAppSpec, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder>( + cesAppSpecs_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + cesAppSpecs_ = null; + } + return cesAppSpecsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Generator) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorOrBuilder.java index 4234a8b3d083..4f15ec310623 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorOrBuilder.java @@ -514,6 +514,204 @@ public interface GeneratorOrBuilder com.google.cloud.dialogflow.v2.SuggestionDedupingConfigOrBuilder getSuggestionDedupingConfigOrBuilder(); + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsetToolsList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.ToolsetTool getToolsetTools(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsetToolsCount(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolsetToolsOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCesToolSpecsList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.CesToolSpec getCesToolSpecs(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCesToolSpecsCount(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCesToolSpecsOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCesAppSpecsList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.CesAppSpec getCesAppSpecs(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCesAppSpecsCount(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCesAppSpecsOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder getCesAppSpecsOrBuilder(int index); + com.google.cloud.dialogflow.v2.Generator.ContextCase getContextCase(); com.google.cloud.dialogflow.v2.Generator.FoundationModelCase getFoundationModelCase(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorProto.java index 2cda79284201..f6ba5716a81e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorProto.java @@ -179,8 +179,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/annotations.proto\032\027google/api/clien" + "t.proto\032\037google/api/field_behavior.proto" + "\032\031google/api/resource.proto\032;google/clou" - + "d/dialogflow/v2/agent_coaching_instruction.proto\032*google/cloud/dialogflow/v2/too" - + "l_call.proto\032\033google/protobuf/empty.proto\032" + + "d/dialogflow/v2/agent_coaching_instruction.proto\032(google/cloud/dialogflow/v2/ces" + + "_app.proto\032)google/cloud/dialogflow/v2/ces_tool.proto\032*google/cloud/dialogflow/v" + + "2/tool_call.proto\032(google/cloud/dialogfl" + + "ow/v2/toolset.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\267\001\n" + "\026CreateGeneratorRequest\022C\n" + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" @@ -203,8 +205,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#dialogflow.googleapis.com/Generator\"\215\001\n" + "\026UpdateGeneratorRequest\022=\n" - + "\tgenerator\030\001 \001(" - + "\0132%.google.cloud.dialogflow.v2.GeneratorB\003\340A\002\0224\n" + + "\tgenerator\030\001" + + " \001(\0132%.google.cloud.dialogflow.v2.GeneratorB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\207\002\n" + "\014MessageEntry\022@\n" @@ -222,17 +224,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017message_entries\030\001" + " \003(\0132(.google.cloud.dialogflow.v2.MessageEntryB\003\340A\001\"q\n" + "\030SummarizationSectionList\022U\n" - + "\026summarization_sections\030\001 \003(\013" - + "20.google.cloud.dialogflow.v2.SummarizationSectionB\003\340A\001\"\240\003\n" + + "\026summarization_sections\030\001" + + " \003(\01320.google.cloud.dialogflow.v2.SummarizationSectionB\003\340A\001\"\240\003\n" + "\016FewShotExample\022R\n" - + "\024conversation_context\030\003 \001(\0132/.google.cloud." - + "dialogflow.v2.ConversationContextB\003\340A\001\022R\n\n" - + "extra_info\030\004 \003(\01329.google.cloud.dialog" - + "flow.v2.FewShotExample.ExtraInfoEntryB\003\340A\001\022Z\n" - + "\032summarization_section_list\030\006 \001(\01324" - + ".google.cloud.dialogflow.v2.SummarizationSectionListH\000\022D\n" - + "\006output\030\007 \001(\0132/.google." - + "cloud.dialogflow.v2.GeneratorSuggestionB\003\340A\002\0320\n" + + "\024conversation_context\030\003 \001(\0132/.google" + + ".cloud.dialogflow.v2.ConversationContextB\003\340A\001\022R\n\n" + + "extra_info\030\004 \003(\01329.google.cloud" + + ".dialogflow.v2.FewShotExample.ExtraInfoEntryB\003\340A\001\022Z\n" + + "\032summarization_section_list\030\006" + + " \001(\01324.google.cloud.dialogflow.v2.SummarizationSectionListH\000\022D\n" + + "\006output\030\007 \001(\0132/." + + "google.cloud.dialogflow.v2.GeneratorSuggestionB\003\340A\002\0320\n" + "\016ExtraInfoEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\022\n" @@ -248,15 +250,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_top_p\"\303\001\n" + "\024AgentCoachingContext\022!\n" + "\024overarching_guidance\030\007 \001(\tB\003\340A\001\022O\n" - + "\014instructions\030\001 \003(\01324.go" - + "ogle.cloud.dialogflow.v2.AgentCoachingInstructionB\003\340A\001\022\024\n" + + "\014instructions\030\001 \003" + + "(\01324.google.cloud.dialogflow.v2.AgentCoachingInstructionB\003\340A\001\022\024\n" + "\007version\030\002 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\t \001(\tB\003\340A\001\"\334\002\n" + "\024SummarizationSection\022\020\n" + "\003key\030\001 \001(\tB\003\340A\001\022\027\n\n" + "definition\030\002 \001(\tB\003\340A\001\022H\n" - + "\004type\030\003 \001(\01625.goog" - + "le.cloud.dialogflow.v2.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + + "\004type\030\003 \001(\016" + + "25.google.cloud.dialogflow.v2.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSITUATION\020\001\022\n\n" @@ -270,90 +272,95 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ACTION_CONCISE\020\n" + "\"\362\001\n" + "\024SummarizationContext\022U\n" - + "\026summarization_sections\030\001 \003(\0132" - + "0.google.cloud.dialogflow.v2.SummarizationSectionB\003\340A\001\022J\n" - + "\021few_shot_examples\030\002 \003(" - + "\0132*.google.cloud.dialogflow.v2.FewShotExampleB\003\340A\001\022\024\n" + + "\026summarization_sections\030\001" + + " \003(\01320.google.cloud.dialogflow.v2.SummarizationSectionB\003\340A\001\022J\n" + + "\021few_shot_examples\030\002" + + " \003(\0132*.google.cloud.dialogflow.v2.FewShotExampleB\003\340A\001\022\024\n" + "\007version\030\003 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\006 \001(\tB\003\340A\001\"$\n" + "\017FreeFormContext\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\001\"\206\007\n" + + "\004text\030\001 \001(\tB\003\340A\001\"\325\010\n" + "\tGenerator\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022H\n" - + "\021free_form_context\030\013 \001(\0132+.goo" - + "gle.cloud.dialogflow.v2.FreeFormContextH\000\022R\n" - + "\026agent_coaching_context\030\014 \001(\01320.goog" - + "le.cloud.dialogflow.v2.AgentCoachingContextH\000\022Q\n" + + "\021free_form_context\030\013 \001(" + + "\0132+.google.cloud.dialogflow.v2.FreeFormContextH\000\022R\n" + + "\026agent_coaching_context\030\014 \001(\013" + + "20.google.cloud.dialogflow.v2.AgentCoachingContextH\000\022Q\n" + "\025summarization_context\030\r" + " \001(\01320.google.cloud.dialogflow.v2.SummarizationContextH\000\022P\n" - + "\023inference_parameter\030\004 \001(\0132.." - + "google.cloud.dialogflow.v2.InferenceParameterB\003\340A\001\022D\n\r" - + "trigger_event\030\005 \001(\0162(.goog" - + "le.cloud.dialogflow.v2.TriggerEventB\003\340A\001\022\036\n" + + "\023inference_parameter\030\004" + + " \001(\0132..google.cloud.dialogflow.v2.InferenceParameterB\003\340A\001\022D\n\r" + + "trigger_event\030\005 \001(\016" + + "2(.google.cloud.dialogflow.v2.TriggerEventB\003\340A\001\022\036\n" + "\017published_model\030\017 \001(\tB\003\340A\001H\001\0224\n" + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + "\005tools\030\016 \003(\tB&\340A\001\372A \n" + "\036dialogflow.googleapis.com/Tool\022]\n" - + "\032suggestion_deduping_config\030\027 \001(\01324.google" - + ".cloud.dialogflow.v2.SuggestionDedupingConfigB\003\340A\001:\177\352A|\n" - + "#dialogflow.googleapis.c" - + "om/Generator\022>projects/{project}/locations/{location}/generators/{generator}*\n" + + "\032suggestion_deduping_config\030\027 \001(\01324" + + ".google.cloud.dialogflow.v2.SuggestionDedupingConfigB\003\340A\001\022C\n\r" + + "toolset_tools\030\033 \003(\013" + + "2\'.google.cloud.dialogflow.v2.ToolsetToolB\003\340A\001\022D\n" + + "\016ces_tool_specs\030\034" + + " \003(\0132\'.google.cloud.dialogflow.v2.CesToolSpecB\003\340A\001\022B\n\r" + + "ces_app_specs\030\035" + + " \003(\0132&.google.cloud.dialogflow.v2.CesAppSpecB\003\340A\001:\177\352A|\n" + + "#dialogflow.googleapis.com/Generator\022>projects/{pr" + + "oject}/locations/{location}/generators/{generator}*\n" + "generators2\tgeneratorB\t\n" + "\007contextB\022\n" + "\020foundation_model\"+\n" + "\022FreeFormSuggestion\022\025\n" + "\010response\030\001 \001(\tB\003\340A\002\"\256\001\n" + "\021SummarySuggestion\022[\n" - + "\020summary_sections\030\001 \003(\0132<.google.cloud.d" - + "ialogflow.v2.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + + "\020summary_sections\030\001 \003(\0132<." + + "google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + "\016SummarySection\022\024\n" + "\007section\030\001 \001(\tB\003\340A\002\022\024\n" + "\007summary\030\002 \001(\tB\003\340A\002\"\300\t\n" + "\027AgentCoachingSuggestion\022Z\n" - + "\027applicable_instructions\030\001" - + " \003(\01324.google.cloud.dialogflow.v2.AgentCoachingInstructionB\003\340A\001\022p\n" - + "\030agent_action_suggestions\030\002 \003(\0132I.google.clou" - + "d.dialogflow.v2.AgentCoachingSuggestion.AgentActionSuggestionB\003\340A\001\022a\n" - + "\020sample_responses\030\003 \003(\0132B.google.cloud.dialogflow.v" - + "2.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + + "\027applicable_instructions\030\001 \003(\01324.google.clo" + + "ud.dialogflow.v2.AgentCoachingInstructionB\003\340A\001\022p\n" + + "\030agent_action_suggestions\030\002 \003(\0132I.google.cloud.dialogflow.v2.AgentCoach" + + "ingSuggestion.AgentActionSuggestionB\003\340A\001\022a\n" + + "\020sample_responses\030\003 \003(\0132B.google.clou" + + "d.dialogflow.v2.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + "\007Sources\022 \n" + "\023instruction_indexes\030\002 \003(\005B\003\340A\003\032\336\002\n" + "\024DuplicateCheckResult\022\200\001\n" - + "\025duplicate_suggestions\030\001 \003(\0132\\.google.clo" - + "ud.dialogflow.v2.AgentCoachingSuggestion" - + ".DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\302\001\n" + + "\025duplicate_suggestions\030\001 \003(\0132\\.google.cloud.dialogflow.v2.AgentCoac" + + "hingSuggestion.DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\302\001\n" + "\023DuplicateSuggestion\022\032\n\r" + "answer_record\030\001 \001(\tB\003\340A\003\022Q\n" - + "\007sources\030\002 \001(\0132;.go" - + "ogle.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + + "\007sources\030\002" + + " \001(\0132;.google.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + "\020suggestion_index\030\003 \001(\005B\003\340A\003\022\035\n" + "\020similarity_score\030\004 \001(\002B\003\340A\003\032\364\001\n" + "\025AgentActionSuggestion\022\031\n" + "\014agent_action\030\001 \001(\tB\003\340A\001\022Q\n" - + "\007sources\030\002 \001(\0132;.goog" - + "le.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022m\n" - + "\026duplicate_check_result\030\003 \001(\0132H.google.cloud.dialogflow.v2" - + ".AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\356\001\n" + + "\007sources\030\002" + + " \001(\0132;.google.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022m\n" + + "\026duplicate_check_result\030\003 \001(\0132H.google.cloud" + + ".dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\356\001\n" + "\016SampleResponse\022\032\n\r" + "response_text\030\001 \001(\tB\003\340A\001\022Q\n" - + "\007sources\030\002 \001(\0132;.goo" - + "gle.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022m\n" - + "\026duplicate_check_result\030\003 \001(\0132H.google.cloud.dialogflow.v" - + "2.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\236\004\n" + + "\007sources\030\002" + + " \001(\0132;.google.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022m\n" + + "\026duplicate_check_result\030\003 \001(\0132H.google.clou" + + "d.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\236\004\n" + "\023GeneratorSuggestion\022S\n" - + "\024free_form_suggestion\030\001 \001(\0132..google.cloud" - + ".dialogflow.v2.FreeFormSuggestionB\003\340A\001H\000\022P\n" - + "\022summary_suggestion\030\002 \001(\0132-.google.cl" - + "oud.dialogflow.v2.SummarySuggestionB\003\340A\001H\000\022]\n" - + "\031agent_coaching_suggestion\030\003 \001(\01323." - + "google.cloud.dialogflow.v2.AgentCoachingSuggestionB\003\340A\001H\000\022Y\n" - + "\016tool_call_info\030\t \003(" - + "\0132<.google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\227\001\n" + + "\024free_form_suggestion\030\001 \001(\0132" + + "..google.cloud.dialogflow.v2.FreeFormSuggestionB\003\340A\001H\000\022P\n" + + "\022summary_suggestion\030\002 \001" + + "(\0132-.google.cloud.dialogflow.v2.SummarySuggestionB\003\340A\001H\000\022]\n" + + "\031agent_coaching_suggestion\030\003" + + " \001(\01323.google.cloud.dialogflow.v2.AgentCoachingSuggestionB\003\340A\001H\000\022Y\n" + + "\016tool_call_info\030\t \003(\0132<.google.cloud.dialogflo" + + "w.v2.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\227\001\n" + "\014ToolCallInfo\022<\n" - + "\ttool_call\030\001" - + " \001(\0132$.google.cloud.dialogflow.v2.ToolCallB\003\340A\002\022I\n" + + "\ttool_call\030\001 \001(\0132$" + + ".google.cloud.dialogflow.v2.ToolCallB\003\340A\002\022I\n" + "\020tool_call_result\030\002" + " \001(\0132*.google.cloud.dialogflow.v2.ToolCallResultB\003\340A\002B\014\n\n" + "suggestion\"[\n" @@ -361,13 +368,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017enable_deduping\030\001 \001(\010B\003\340A\001\022!\n" + "\024similarity_threshold\030\002 \001(\002B\003\340A\001\"\270\004\n" + "\013RaiSettings\022W\n" - + "\024rai_category_configs\030\001" - + " \003(\01329.google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig\032\317\003\n" + + "\024rai_category_configs\030\001 \003(\01329.google.c" + + "loud.dialogflow.v2.RaiSettings.RaiCategoryConfig\032\317\003\n" + "\021RaiCategoryConfig\022\\\n" - + "\010category\030\001 \001(\0162E.goo" - + "gle.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022j\n" - + "\021sensitivity_level\030\002 \001(\0162J.google.cloud.dialogf" - + "low.v2.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + + "\010category\030\001 \001(\0162E.google.cloud.dialogflow.v2.Ra" + + "iSettings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022j\n" + + "\021sensitivity_level\030\002 \001(\0162J.google" + + ".cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + "\013RaiCategory\022\034\n" + "\030RAI_CATEGORY_UNSPECIFIED\020\000\022\025\n" + "\021DANGEROUS_CONTENT\020\001\022\025\n" @@ -375,8 +382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "HARASSMENT\020\003\022\017\n" + "\013HATE_SPEECH\020\004\"t\n" + "\020SensitivityLevel\022!\n" - + "\035SENSITIVITY_LEVEL_UNSPECIFIED\020\000\022\016\n" - + "\n" + + "\035SENSITIVITY_LEVEL_UNSPECIFIED\020\000\022\016\n\n" + "BLOCK_MOST\020\001\022\016\n\n" + "BLOCK_SOME\020\002\022\r\n" + "\tBLOCK_FEW\020\003\022\016\n\n" @@ -388,33 +394,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020CUSTOMER_MESSAGE\020\003\022\021\n\r" + "AGENT_MESSAGE\020\0042\206\t\n\n" + "Generators\022\201\002\n" - + "\017CreateGenerator\0222.google.cloud.dialogflow.v2.CreateGeneratorRequest\032%.goo" - + "gle.cloud.dialogflow.v2.Generator\"\222\001\332A\035p" - + "arent,generator,generator_id\202\323\344\223\002l\"./v2/" - + "{parent=projects/*/locations/*}/generators:" - + "\tgeneratorZ/\"\"/v2/{parent=projects/*}/generators:\tgenerator\022\245\001\n" - + "\014GetGenerator\022/.google.cloud.dialogflow.v2.GetGenerato" + + "\017CreateGenerator\0222.google.cloud.dialogflow.v2.CreateGenerato" + "rRequest\032%.google.cloud.dialogflow.v2.Ge" - + "nerator\"=\332A\004name\202\323\344\223\0020\022./v2/{name=projects/*/locations/*/generators/*}\022\336\001\n" - + "\016ListGenerators\0221.google.cloud.dialogflow.v2.L" - + "istGeneratorsRequest\0322.google.cloud.dial" - + "ogflow.v2.ListGeneratorsResponse\"e\332A\006par" - + "ent\202\323\344\223\002V\022./v2/{parent=projects/*/locati" - + "ons/*}/generatorsZ$\022\"/v2/{parent=projects/*}/generators\022\234\001\n" - + "\017DeleteGenerator\0222.google.cloud.dialogflow.v2.DeleteGenerator" - + "Request\032\026.google.protobuf.Empty\"=\332A\004name" - + "\202\323\344\223\0020*./v2/{name=projects/*/locations/*/generators/*}\022\321\001\n" - + "\017UpdateGenerator\0222.google.cloud.dialogflow.v2.UpdateGeneratorR" - + "equest\032%.google.cloud.dialogflow.v2.Gene" - + "rator\"c\332A\025generator,update_mask\202\323\344\223\002E28/" - + "v2/{generator.name=projects/*/locations/*/generators/*}:" - + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\221\002\n" - + "\036com.google.cloud.dialogflow.v2B\016GeneratorProtoP" - + "\001Z>cloud.google.com/go/dialogflow/apiv2/" - + "dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project" - + "}/locations/{location}/collections/{collection}/engines/{engine}b\006proto3" + + "nerator\"\222\001\332A\035parent,generator,generator_" + + "id\202\323\344\223\002l\"./v2/{parent=projects/*/locations/*}/generators:" + + "\tgeneratorZ/\"\"/v2/{parent=projects/*}/generators:\tgenerator\022\245\001\n" + + "\014GetGenerator\022/.google.cloud.dialogflow." + + "v2.GetGeneratorRequest\032%.google.cloud.di" + + "alogflow.v2.Generator\"=\332A\004name\202\323\344\223\0020\022./v" + + "2/{name=projects/*/locations/*/generators/*}\022\336\001\n" + + "\016ListGenerators\0221.google.cloud.dialogflow.v2.ListGeneratorsRequest\0322.goo" + + "gle.cloud.dialogflow.v2.ListGeneratorsRe" + + "sponse\"e\332A\006parent\202\323\344\223\002V\022./v2/{parent=pro" + + "jects/*/locations/*}/generatorsZ$\022\"/v2/{parent=projects/*}/generators\022\234\001\n" + + "\017DeleteGenerator\0222.google.cloud.dialogflow.v2.D" + + "eleteGeneratorRequest\032\026.google.protobuf." + + "Empty\"=\332A\004name\202\323\344\223\0020*./v2/{name=projects/*/locations/*/generators/*}\022\321\001\n" + + "\017UpdateGenerator\0222.google.cloud.dialogflow.v2.Up" + + "dateGeneratorRequest\032%.google.cloud.dial" + + "ogflow.v2.Generator\"c\332A\025generator,update" + + "_mask\202\323\344\223\002E28/v2/{generator.name=projects/*/locations/*/generators/*}:" + + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYhttps:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/dialogflowB\221\002\n" + + "\036com.google.cloud.dialogflow.v2B\016GeneratorProtoP\001Z>cloud.google.com/go/dia" + + "logflow/apiv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{location}/col" + + "lections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -425,7 +431,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.v2.AgentCoachingInstructionProto.getDescriptor(), + com.google.cloud.dialogflow.v2.CesAppProto.getDescriptor(), + com.google.cloud.dialogflow.v2.CesToolProto.getDescriptor(), com.google.cloud.dialogflow.v2.ToolCallProto.getDescriptor(), + com.google.cloud.dialogflow.v2.ToolsetProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -580,6 +589,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Tools", "SuggestionDedupingConfig", + "ToolsetTools", + "CesToolSpecs", + "CesAppSpecs", "Context", "FoundationModel", }); @@ -710,7 +722,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.v2.AgentCoachingInstructionProto.getDescriptor(); + com.google.cloud.dialogflow.v2.CesAppProto.getDescriptor(); + com.google.cloud.dialogflow.v2.CesToolProto.getDescriptor(); com.google.cloud.dialogflow.v2.ToolCallProto.getDescriptor(); + com.google.cloud.dialogflow.v2.ToolsetProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java index 47ea0a164d8e..67cca5aa60a6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java @@ -16904,6 +16904,40 @@ public interface MessageAnalysisConfigOrBuilder * @return The enableSentimentAnalysis. */ boolean getEnableSentimentAnalysis(); + + /** + * + * + *
                                                                                                                                  +     * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +     * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +     * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +     *
                                                                                                                                  +     * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +     * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +     * positive, negative, or neutral.
                                                                                                                                  +     * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +     * For
                                                                                                                                  +     * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +     * For
                                                                                                                                  +     * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                  +     * For
                                                                                                                                  +     * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                  +     * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +     * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSentimentAnalysisV3. + */ + boolean getEnableSentimentAnalysisV3(); } /** @@ -17017,6 +17051,46 @@ public boolean getEnableSentimentAnalysis() { return enableSentimentAnalysis_; } + public static final int ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER = 5; + private boolean enableSentimentAnalysisV3_ = false; + + /** + * + * + *
                                                                                                                                  +     * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +     * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +     * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +     *
                                                                                                                                  +     * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +     * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +     * positive, negative, or neutral.
                                                                                                                                  +     * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +     * For
                                                                                                                                  +     * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +     * For
                                                                                                                                  +     * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                  +     * For
                                                                                                                                  +     * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                  +     * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +     * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSentimentAnalysisV3. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysisV3() { + return enableSentimentAnalysisV3_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -17037,6 +17111,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableSentimentAnalysis_ != false) { output.writeBool(3, enableSentimentAnalysis_); } + if (enableSentimentAnalysisV3_ != false) { + output.writeBool(5, enableSentimentAnalysisV3_); + } getUnknownFields().writeTo(output); } @@ -17052,6 +17129,10 @@ public int getSerializedSize() { if (enableSentimentAnalysis_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableSentimentAnalysis_); } + if (enableSentimentAnalysisV3_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableSentimentAnalysisV3_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -17072,6 +17153,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableEntityExtraction() != other.getEnableEntityExtraction()) return false; if (getEnableSentimentAnalysis() != other.getEnableSentimentAnalysis()) return false; + if (getEnableSentimentAnalysisV3() != other.getEnableSentimentAnalysisV3()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17087,6 +17169,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableEntityExtraction()); hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysis()); + hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysisV3()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -17240,6 +17324,7 @@ public Builder clear() { bitField0_ = 0; enableEntityExtraction_ = false; enableSentimentAnalysis_ = false; + enableSentimentAnalysisV3_ = false; return this; } @@ -17289,6 +17374,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.enableSentimentAnalysis_ = enableSentimentAnalysis_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableSentimentAnalysisV3_ = enableSentimentAnalysisV3_; + } } @java.lang.Override @@ -17316,6 +17404,9 @@ public Builder mergeFrom( if (other.getEnableSentimentAnalysis() != false) { setEnableSentimentAnalysis(other.getEnableSentimentAnalysis()); } + if (other.getEnableSentimentAnalysisV3() != false) { + setEnableSentimentAnalysisV3(other.getEnableSentimentAnalysisV3()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -17354,6 +17445,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 40: + { + enableSentimentAnalysisV3_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17557,6 +17654,128 @@ public Builder clearEnableSentimentAnalysis() { return this; } + private boolean enableSentimentAnalysisV3_; + + /** + * + * + *
                                                                                                                                  +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +       *
                                                                                                                                  +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +       * positive, negative, or neutral.
                                                                                                                                  +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                  +       * For
                                                                                                                                  +       * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                  +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableSentimentAnalysisV3. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysisV3() { + return enableSentimentAnalysisV3_; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +       *
                                                                                                                                  +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +       * positive, negative, or neutral.
                                                                                                                                  +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                  +       * For
                                                                                                                                  +       * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                  +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableSentimentAnalysisV3 to set. + * @return This builder for chaining. + */ + public Builder setEnableSentimentAnalysisV3(boolean value) { + + enableSentimentAnalysisV3_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +       *
                                                                                                                                  +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +       * positive, negative, or neutral.
                                                                                                                                  +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                  +       * For
                                                                                                                                  +       * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                  +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableSentimentAnalysisV3() { + bitField0_ = (bitField0_ & ~0x00000004); + enableSentimentAnalysisV3_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfo.java new file mode 100644 index 000000000000..9cb682b894a4 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfo.java @@ -0,0 +1,2429 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                  + * Debug information related to ingested context reference.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo} + */ +@com.google.protobuf.Generated +public final class IngestedContextReferenceDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + IngestedContextReferenceDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestedContextReferenceDebugInfo"); + } + + // Use IngestedContextReferenceDebugInfo.newBuilder() to construct. + private IngestedContextReferenceDebugInfo( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestedContextReferenceDebugInfo() { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.class, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder.class); + } + + public interface IngestedParameterDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * The name of the parameter in the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The parameter. + */ + java.lang.String getParameter(); + + /** + * + * + *
                                                                                                                                  +     * The name of the parameter in the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + com.google.protobuf.ByteString getParameterBytes(); + + /** + * + * + *
                                                                                                                                  +     * The ingestion status for this specific parameter.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + int getIngestionStatusValue(); + + /** + * + * + *
                                                                                                                                  +     * The ingestion status for this specific parameter.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .IngestionStatus + getIngestionStatus(); + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to ingested parameters from context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo} + */ + public static final class IngestedParameterDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + IngestedParameterDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestedParameterDebugInfo"); + } + + // Use IngestedParameterDebugInfo.newBuilder() to construct. + private IngestedParameterDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestedParameterDebugInfo() { + parameter_ = ""; + ingestionStatus_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.class, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder.class); + } + + /** + * + * + *
                                                                                                                                  +     * Enum representing the various states of parameter ingestion.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus} + */ + public enum IngestionStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +       * Default value, indicates that the ingestion status is not specified.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_UNSPECIFIED = 0; + */ + INGESTION_STATUS_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +       * Indicates that the parameter was successfully ingested.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_SUCCEEDED = 1; + */ + INGESTION_STATUS_SUCCEEDED(1), + /** + * + * + *
                                                                                                                                  +       * Indicates that the parameter was not available for ingestion.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + */ + INGESTION_STATUS_CONTEXT_NOT_AVAILABLE(2), + /** + * + * + *
                                                                                                                                  +       * Indicates that there was a failure parsing the parameter content.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_PARSE_FAILED = 3; + */ + INGESTION_STATUS_PARSE_FAILED(3), + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference had an unexpected number of
                                                                                                                                  +       * content entries as Context reference should only have one entry.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_INVALID_ENTRY = 4; + */ + INGESTION_STATUS_INVALID_ENTRY(4), + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference content was not in the expected
                                                                                                                                  +       * format (e.g., JSON).
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_INVALID_FORMAT = 5; + */ + INGESTION_STATUS_INVALID_FORMAT(5), + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference language does not match the
                                                                                                                                  +       * conversation language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + */ + INGESTION_STATUS_LANGUAGE_MISMATCH(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestionStatus"); + } + + /** + * + * + *
                                                                                                                                  +       * Default value, indicates that the ingestion status is not specified.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_UNSPECIFIED = 0; + */ + public static final int INGESTION_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the parameter was successfully ingested.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_SUCCEEDED = 1; + */ + public static final int INGESTION_STATUS_SUCCEEDED_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the parameter was not available for ingestion.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + */ + public static final int INGESTION_STATUS_CONTEXT_NOT_AVAILABLE_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +       * Indicates that there was a failure parsing the parameter content.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_PARSE_FAILED = 3; + */ + public static final int INGESTION_STATUS_PARSE_FAILED_VALUE = 3; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference had an unexpected number of
                                                                                                                                  +       * content entries as Context reference should only have one entry.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_INVALID_ENTRY = 4; + */ + public static final int INGESTION_STATUS_INVALID_ENTRY_VALUE = 4; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference content was not in the expected
                                                                                                                                  +       * format (e.g., JSON).
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_INVALID_FORMAT = 5; + */ + public static final int INGESTION_STATUS_INVALID_FORMAT_VALUE = 5; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference language does not match the
                                                                                                                                  +       * conversation language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + */ + public static final int INGESTION_STATUS_LANGUAGE_MISMATCH_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IngestionStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static IngestionStatus forNumber(int value) { + switch (value) { + case 0: + return INGESTION_STATUS_UNSPECIFIED; + case 1: + return INGESTION_STATUS_SUCCEEDED; + case 2: + return INGESTION_STATUS_CONTEXT_NOT_AVAILABLE; + case 3: + return INGESTION_STATUS_PARSE_FAILED; + case 4: + return INGESTION_STATUS_INVALID_ENTRY; + case 5: + return INGESTION_STATUS_INVALID_FORMAT; + case 6: + return INGESTION_STATUS_LANGUAGE_MISMATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngestionStatus findValueByNumber(int number) { + return IngestionStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IngestionStatus[] VALUES = values(); + + public static IngestionStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IngestionStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus) + } + + public static final int PARAMETER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameter_ = ""; + + /** + * + * + *
                                                                                                                                  +     * The name of the parameter in the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + 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(); + parameter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +     * The name of the parameter in the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INGESTION_STATUS_FIELD_NUMBER = 2; + private int ingestionStatus_ = 0; + + /** + * + * + *
                                                                                                                                  +     * The ingestion status for this specific parameter.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + @java.lang.Override + public int getIngestionStatusValue() { + return ingestionStatus_; + } + + /** + * + * + *
                                                                                                                                  +     * The ingestion status for this specific parameter.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + getIngestionStatus() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .IngestionStatus + result = + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.forNumber(ingestionStatus_); + return result == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(parameter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parameter_); + } + if (ingestionStatus_ + != com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.INGESTION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, ingestionStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parameter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parameter_); + } + if (ingestionStatus_ + != com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.INGESTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, ingestionStatus_); + } + 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.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + other = + (com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) + obj; + + if (!getParameter().equals(other.getParameter())) return false; + if (ingestionStatus_ != other.ingestionStatus_) 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) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (37 * hash) + INGESTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + ingestionStatus_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + 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.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + 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.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to ingested parameters from context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.class, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parameter_ = ""; + ingestionStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + build() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + buildPartial() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + result = + new com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameter_ = parameter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ingestionStatus_ = ingestionStatus_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + other) { + if (other + == com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()) return this; + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.ingestionStatus_ != 0) { + setIngestionStatusValue(other.getIngestionStatusValue()); + } + 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: + { + parameter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + ingestionStatus_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 parameter_ = ""; + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @param value The parameter to set. + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { + parameter_ = getDefaultInstance().getParameter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @param value The bytes for parameter to set. + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int ingestionStatus_ = 0; + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + @java.lang.Override + public int getIngestionStatusValue() { + return ingestionStatus_; + } + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @param value The enum numeric value on the wire for ingestionStatus to set. + * @return This builder for chaining. + */ + public Builder setIngestionStatusValue(int value) { + ingestionStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + getIngestionStatus() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .IngestionStatus + result = + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.forNumber(ingestionStatus_); + return result == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @param value The ingestionStatus to set. + * @return This builder for chaining. + */ + public Builder setIngestionStatus( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + ingestionStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearIngestionStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + ingestionStatus_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + private static final com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestedParameterDebugInfo 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.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PROJECT_NOT_ALLOWLISTED_FIELD_NUMBER = 1; + private boolean projectNotAllowlisted_ = false; + + /** + * + * + *
                                                                                                                                  +   * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +   * reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + @java.lang.Override + public boolean getProjectNotAllowlisted() { + return projectNotAllowlisted_; + } + + public static final int CONTEXT_REFERENCE_RETRIEVED_FIELD_NUMBER = 2; + private boolean contextReferenceRetrieved_ = false; + + /** + * + * + *
                                                                                                                                  +   * The status of context_reference retrieval from database.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + @java.lang.Override + public boolean getContextReferenceRetrieved() { + return contextReferenceRetrieved_; + } + + public static final int INGESTED_PARAMETERS_DEBUG_INFO_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + ingestedParametersDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList() { + return ingestedParametersDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList() { + return ingestedParametersDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public int getIngestedParametersDebugInfoCount() { + return ingestedParametersDebugInfo_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index) { + return ingestedParametersDebugInfo_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index) { + return ingestedParametersDebugInfo_.get(index); + } + + 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 (projectNotAllowlisted_ != false) { + output.writeBool(1, projectNotAllowlisted_); + } + if (contextReferenceRetrieved_ != false) { + output.writeBool(2, contextReferenceRetrieved_); + } + for (int i = 0; i < ingestedParametersDebugInfo_.size(); i++) { + output.writeMessage(3, ingestedParametersDebugInfo_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (projectNotAllowlisted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, projectNotAllowlisted_); + } + if (contextReferenceRetrieved_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, contextReferenceRetrieved_); + } + for (int i = 0; i < ingestedParametersDebugInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, ingestedParametersDebugInfo_.get(i)); + } + 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.dialogflow.v2.IngestedContextReferenceDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo other = + (com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) obj; + + if (getProjectNotAllowlisted() != other.getProjectNotAllowlisted()) return false; + if (getContextReferenceRetrieved() != other.getContextReferenceRetrieved()) return false; + if (!getIngestedParametersDebugInfoList().equals(other.getIngestedParametersDebugInfoList())) + 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) + PROJECT_NOT_ALLOWLISTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProjectNotAllowlisted()); + hash = (37 * hash) + CONTEXT_REFERENCE_RETRIEVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContextReferenceRetrieved()); + if (getIngestedParametersDebugInfoCount() > 0) { + hash = (37 * hash) + INGESTED_PARAMETERS_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedParametersDebugInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo 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.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo 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.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.IngestedContextReferenceDebugInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to ingested context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.class, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectNotAllowlisted_ = false; + contextReferenceRetrieved_ = false; + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + } else { + ingestedParametersDebugInfo_ = null; + ingestedParametersDebugInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo build() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo result = + new com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo result) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + ingestedParametersDebugInfo_ = + java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.ingestedParametersDebugInfo_ = ingestedParametersDebugInfo_; + } else { + result.ingestedParametersDebugInfo_ = ingestedParametersDebugInfoBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectNotAllowlisted_ = projectNotAllowlisted_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contextReferenceRetrieved_ = contextReferenceRetrieved_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance()) + return this; + if (other.getProjectNotAllowlisted() != false) { + setProjectNotAllowlisted(other.getProjectNotAllowlisted()); + } + if (other.getContextReferenceRetrieved() != false) { + setContextReferenceRetrieved(other.getContextReferenceRetrieved()); + } + if (ingestedParametersDebugInfoBuilder_ == null) { + if (!other.ingestedParametersDebugInfo_.isEmpty()) { + if (ingestedParametersDebugInfo_.isEmpty()) { + ingestedParametersDebugInfo_ = other.ingestedParametersDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.addAll(other.ingestedParametersDebugInfo_); + } + onChanged(); + } + } else { + if (!other.ingestedParametersDebugInfo_.isEmpty()) { + if (ingestedParametersDebugInfoBuilder_.isEmpty()) { + ingestedParametersDebugInfoBuilder_.dispose(); + ingestedParametersDebugInfoBuilder_ = null; + ingestedParametersDebugInfo_ = other.ingestedParametersDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + ingestedParametersDebugInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIngestedParametersDebugInfoFieldBuilder() + : null; + } else { + ingestedParametersDebugInfoBuilder_.addAllMessages(other.ingestedParametersDebugInfo_); + } + } + } + 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 8: + { + projectNotAllowlisted_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + contextReferenceRetrieved_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + m = + input.readMessage( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.parser(), + extensionRegistry); + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(m); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(m); + } + break; + } // case 26 + 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 boolean projectNotAllowlisted_; + + /** + * + * + *
                                                                                                                                  +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +     * reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + @java.lang.Override + public boolean getProjectNotAllowlisted() { + return projectNotAllowlisted_; + } + + /** + * + * + *
                                                                                                                                  +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +     * reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @param value The projectNotAllowlisted to set. + * @return This builder for chaining. + */ + public Builder setProjectNotAllowlisted(boolean value) { + + projectNotAllowlisted_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +     * reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @return This builder for chaining. + */ + public Builder clearProjectNotAllowlisted() { + bitField0_ = (bitField0_ & ~0x00000001); + projectNotAllowlisted_ = false; + onChanged(); + return this; + } + + private boolean contextReferenceRetrieved_; + + /** + * + * + *
                                                                                                                                  +     * The status of context_reference retrieval from database.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + @java.lang.Override + public boolean getContextReferenceRetrieved() { + return contextReferenceRetrieved_; + } + + /** + * + * + *
                                                                                                                                  +     * The status of context_reference retrieval from database.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @param value The contextReferenceRetrieved to set. + * @return This builder for chaining. + */ + public Builder setContextReferenceRetrieved(boolean value) { + + contextReferenceRetrieved_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The status of context_reference retrieval from database.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @return This builder for chaining. + */ + public Builder clearContextReferenceRetrieved() { + bitField0_ = (bitField0_ & ~0x00000002); + contextReferenceRetrieved_ = false; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + + private void ensureIngestedParametersDebugInfoIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + ingestedParametersDebugInfo_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo>(ingestedParametersDebugInfo_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + ingestedParametersDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList() { + if (ingestedParametersDebugInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + } else { + return ingestedParametersDebugInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public int getIngestedParametersDebugInfoCount() { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.size(); + } else { + return ingestedParametersDebugInfoBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.get(index); + } else { + return ingestedParametersDebugInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder setIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.set(index, value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder setIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(index, value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addAllIngestedParametersDebugInfo( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + values) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ingestedParametersDebugInfo_); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder clearIngestedParametersDebugInfo() { + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder removeIngestedParametersDebugInfo(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.remove(index); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + getIngestedParametersDebugInfoBuilder(int index) { + return internalGetIngestedParametersDebugInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.get(index); + } else { + return ingestedParametersDebugInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList() { + if (ingestedParametersDebugInfoBuilder_ != null) { + return ingestedParametersDebugInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + addIngestedParametersDebugInfoBuilder() { + return internalGetIngestedParametersDebugInfoFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + addIngestedParametersDebugInfoBuilder(int index) { + return internalGetIngestedParametersDebugInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder> + getIngestedParametersDebugInfoBuilderList() { + return internalGetIngestedParametersDebugInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + internalGetIngestedParametersDebugInfoFieldBuilder() { + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder>( + ingestedParametersDebugInfo_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + ingestedParametersDebugInfo_ = null; + } + return ingestedParametersDebugInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + private static final com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestedContextReferenceDebugInfo 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.dialogflow.v2.IngestedContextReferenceDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfoOrBuilder.java new file mode 100644 index 000000000000..4f879b370aa3 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfoOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface IngestedContextReferenceDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +   * reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + boolean getProjectNotAllowlisted(); + + /** + * + * + *
                                                                                                                                  +   * The status of context_reference retrieval from database.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + boolean getContextReferenceRetrieved(); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList(); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + int getIngestedParametersDebugInfoCount(); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java index 5600335d1b51..0fe3e83e9a37 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java @@ -5697,6 +5697,63 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { } } + public static final int KNOWLEDGE_ASSIST_DEBUG_INFO_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledgeAssistDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getKnowledgeAssistDebugInfo() { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder() { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5720,6 +5777,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, answerRecord_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getKnowledgeAssistDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -5739,6 +5799,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, answerRecord_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getKnowledgeAssistDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5764,6 +5829,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSuggestedQueryAnswer().equals(other.getSuggestedQueryAnswer())) return false; } if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (hasKnowledgeAssistDebugInfo() != other.hasKnowledgeAssistDebugInfo()) return false; + if (hasKnowledgeAssistDebugInfo()) { + if (!getKnowledgeAssistDebugInfo().equals(other.getKnowledgeAssistDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5785,6 +5854,10 @@ public int hashCode() { } hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; hash = (53 * hash) + getAnswerRecord().hashCode(); + if (hasKnowledgeAssistDebugInfo()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5928,6 +6001,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSuggestedQueryFieldBuilder(); internalGetSuggestedQueryAnswerFieldBuilder(); + internalGetKnowledgeAssistDebugInfoFieldBuilder(); } } @@ -5946,6 +6020,11 @@ public Builder clear() { suggestedQueryAnswerBuilder_ = null; } answerRecord_ = ""; + knowledgeAssistDebugInfo_ = null; + if (knowledgeAssistDebugInfoBuilder_ != null) { + knowledgeAssistDebugInfoBuilder_.dispose(); + knowledgeAssistDebugInfoBuilder_ = null; + } return this; } @@ -5998,6 +6077,13 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer if (((from_bitField0_ & 0x00000004) != 0)) { result.answerRecord_ = answerRecord_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistDebugInfo_ = + knowledgeAssistDebugInfoBuilder_ == null + ? knowledgeAssistDebugInfo_ + : knowledgeAssistDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -6025,6 +6111,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer ot bitField0_ |= 0x00000004; onChanged(); } + if (other.hasKnowledgeAssistDebugInfo()) { + mergeKnowledgeAssistDebugInfo(other.getKnowledgeAssistDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6071,6 +6160,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 58: + { + input.readMessage( + internalGetKnowledgeAssistDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6666,6 +6763,215 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledgeAssistDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder> + knowledgeAssistDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + public boolean hasKnowledgeAssistDebugInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getKnowledgeAssistDebugInfo() { + if (knowledgeAssistDebugInfoBuilder_ == null) { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } else { + return knowledgeAssistDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder setKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo value) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistDebugInfo_ = value; + } else { + knowledgeAssistDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder setKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder builderForValue) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + knowledgeAssistDebugInfo_ = builderForValue.build(); + } else { + knowledgeAssistDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder mergeKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo value) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistDebugInfo_ != null + && knowledgeAssistDebugInfo_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance()) { + getKnowledgeAssistDebugInfoBuilder().mergeFrom(value); + } else { + knowledgeAssistDebugInfo_ = value; + } + } else { + knowledgeAssistDebugInfoBuilder_.mergeFrom(value); + } + if (knowledgeAssistDebugInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder clearKnowledgeAssistDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistDebugInfo_ = null; + if (knowledgeAssistDebugInfoBuilder_ != null) { + knowledgeAssistDebugInfoBuilder_.dispose(); + knowledgeAssistDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder + getKnowledgeAssistDebugInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetKnowledgeAssistDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder() { + if (knowledgeAssistDebugInfoBuilder_ != null) { + return knowledgeAssistDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder> + internalGetKnowledgeAssistDebugInfoFieldBuilder() { + if (knowledgeAssistDebugInfoBuilder_ == null) { + knowledgeAssistDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder>( + getKnowledgeAssistDebugInfo(), getParentForChildren(), isClean()); + knowledgeAssistDebugInfo_ = null; + } + return knowledgeAssistDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswerOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswerOrBuilder.java index bea7f2679dd9..94bb6ddf79ab 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswerOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswerOrBuilder.java @@ -146,4 +146,45 @@ public interface KnowledgeAssistAnswerOrBuilder * @return The bytes for answerRecord. */ com.google.protobuf.ByteString getAnswerRecordBytes(); + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + boolean hasKnowledgeAssistDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getKnowledgeAssistDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java new file mode 100644 index 000000000000..7f1838a4aa52 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java @@ -0,0 +1,4857 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                  + * Debug information related to Knowledge Assist feature.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo} + */ +@com.google.protobuf.Generated +public final class KnowledgeAssistDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + KnowledgeAssistDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAssistDebugInfo"); + } + + // Use KnowledgeAssistDebugInfo.newBuilder() to construct. + private KnowledgeAssistDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAssistDebugInfo() { + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder.class); + } + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation failure.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason} + */ + public enum QueryGenerationFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +     * Default value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +     * Query generation is blocked due to out of quota.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_OUT_OF_QUOTA = 1; + */ + QUERY_GENERATION_OUT_OF_QUOTA(1), + /** + * + * + *
                                                                                                                                  +     * Call to Knowedge Assist query generation model fails.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_FAILED = 2; + */ + QUERY_GENERATION_FAILED(2), + /** + * + * + *
                                                                                                                                  +     * Query generation model decides that there is no new topic change or
                                                                                                                                  +     * there has been similar queries generated in the previous turns.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_NO_QUERY_GENERATED = 3; + */ + QUERY_GENERATION_NO_QUERY_GENERATED(3), + /** + * + * + *
                                                                                                                                  +     * Knowedge Assist generated query is blocked by RAI (Responsible AI).
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_RAI_FAILED = 4; + */ + QUERY_GENERATION_RAI_FAILED(4), + /** + * + * + *
                                                                                                                                  +     * Query generation is blocked by Knowledge Assist conversation profile
                                                                                                                                  +     * level / agent id level filtering.
                                                                                                                                  +     * 
                                                                                                                                  + * + * NOT_IN_ALLOWLIST = 5; + */ + NOT_IN_ALLOWLIST(5), + /** + * + * + *
                                                                                                                                  +     * The generated query is blocked due to redaction.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_QUERY_REDACTED = 6; + */ + QUERY_GENERATION_QUERY_REDACTED(6), + /** + * + * + *
                                                                                                                                  +     * Query generation failed due to LLM response parse failure.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + */ + QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED(10), + /** + * + * + *
                                                                                                                                  +     * The conversation has no messages.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_EMPTY_CONVERSATION = 11; + */ + QUERY_GENERATION_EMPTY_CONVERSATION(11), + /** + * + * + *
                                                                                                                                  +     * The last message in the conversation is empty.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + */ + QUERY_GENERATION_EMPTY_LAST_MESSAGE(12), + /** + * + * + *
                                                                                                                                  +     * The trigger event condition is not met.
                                                                                                                                  +     * This occurs in the following scenarios:
                                                                                                                                  +     * 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last
                                                                                                                                  +     * message is not from the customer.
                                                                                                                                  +     * 2. The trigger_event is AGENT_MESSAGE, but the last message is not from
                                                                                                                                  +     * the agent.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + */ + QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET(13), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryGenerationFailureReason"); + } + + /** + * + * + *
                                                                                                                                  +     * Default value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +     * Query generation is blocked due to out of quota.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_OUT_OF_QUOTA = 1; + */ + public static final int QUERY_GENERATION_OUT_OF_QUOTA_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +     * Call to Knowedge Assist query generation model fails.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_FAILED = 2; + */ + public static final int QUERY_GENERATION_FAILED_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +     * Query generation model decides that there is no new topic change or
                                                                                                                                  +     * there has been similar queries generated in the previous turns.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_NO_QUERY_GENERATED = 3; + */ + public static final int QUERY_GENERATION_NO_QUERY_GENERATED_VALUE = 3; + + /** + * + * + *
                                                                                                                                  +     * Knowedge Assist generated query is blocked by RAI (Responsible AI).
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_RAI_FAILED = 4; + */ + public static final int QUERY_GENERATION_RAI_FAILED_VALUE = 4; + + /** + * + * + *
                                                                                                                                  +     * Query generation is blocked by Knowledge Assist conversation profile
                                                                                                                                  +     * level / agent id level filtering.
                                                                                                                                  +     * 
                                                                                                                                  + * + * NOT_IN_ALLOWLIST = 5; + */ + public static final int NOT_IN_ALLOWLIST_VALUE = 5; + + /** + * + * + *
                                                                                                                                  +     * The generated query is blocked due to redaction.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_QUERY_REDACTED = 6; + */ + public static final int QUERY_GENERATION_QUERY_REDACTED_VALUE = 6; + + /** + * + * + *
                                                                                                                                  +     * Query generation failed due to LLM response parse failure.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + */ + public static final int QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED_VALUE = 10; + + /** + * + * + *
                                                                                                                                  +     * The conversation has no messages.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_EMPTY_CONVERSATION = 11; + */ + public static final int QUERY_GENERATION_EMPTY_CONVERSATION_VALUE = 11; + + /** + * + * + *
                                                                                                                                  +     * The last message in the conversation is empty.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + */ + public static final int QUERY_GENERATION_EMPTY_LAST_MESSAGE_VALUE = 12; + + /** + * + * + *
                                                                                                                                  +     * The trigger event condition is not met.
                                                                                                                                  +     * This occurs in the following scenarios:
                                                                                                                                  +     * 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last
                                                                                                                                  +     * message is not from the customer.
                                                                                                                                  +     * 2. The trigger_event is AGENT_MESSAGE, but the last message is not from
                                                                                                                                  +     * the agent.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + */ + public static final int QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET_VALUE = 13; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryGenerationFailureReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryGenerationFailureReason forNumber(int value) { + switch (value) { + case 0: + return QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED; + case 1: + return QUERY_GENERATION_OUT_OF_QUOTA; + case 2: + return QUERY_GENERATION_FAILED; + case 3: + return QUERY_GENERATION_NO_QUERY_GENERATED; + case 4: + return QUERY_GENERATION_RAI_FAILED; + case 5: + return NOT_IN_ALLOWLIST; + case 6: + return QUERY_GENERATION_QUERY_REDACTED; + case 10: + return QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED; + case 11: + return QUERY_GENERATION_EMPTY_CONVERSATION; + case 12: + return QUERY_GENERATION_EMPTY_LAST_MESSAGE; + case 13: + return QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryGenerationFailureReason findValueByNumber(int number) { + return QueryGenerationFailureReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final QueryGenerationFailureReason[] VALUES = values(); + + public static QueryGenerationFailureReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryGenerationFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason) + } + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization failure.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason} + */ + public enum QueryCategorizationFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +     * Default value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search config supplied for query categorization is invalid.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + */ + QUERY_CATEGORIZATION_INVALID_CONFIG(1), + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search result does not contain a query categorization result.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + */ + QUERY_CATEGORIZATION_RESULT_NOT_FOUND(2), + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search call fails.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_FAILED = 3; + */ + QUERY_CATEGORIZATION_FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryCategorizationFailureReason"); + } + + /** + * + * + *
                                                                                                                                  +     * Default value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search config supplied for query categorization is invalid.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + */ + public static final int QUERY_CATEGORIZATION_INVALID_CONFIG_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search result does not contain a query categorization result.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + */ + public static final int QUERY_CATEGORIZATION_RESULT_NOT_FOUND_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search call fails.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_FAILED = 3; + */ + public static final int QUERY_CATEGORIZATION_FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryCategorizationFailureReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryCategorizationFailureReason forNumber(int value) { + switch (value) { + case 0: + return QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED; + case 1: + return QUERY_CATEGORIZATION_INVALID_CONFIG; + case 2: + return QUERY_CATEGORIZATION_RESULT_NOT_FOUND; + case 3: + return QUERY_CATEGORIZATION_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryCategorizationFailureReason findValueByNumber(int number) { + return QueryCategorizationFailureReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final QueryCategorizationFailureReason[] VALUES = values(); + + public static QueryCategorizationFailureReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryCategorizationFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason) + } + + public interface KnowledgeAssistBehaviorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + boolean getAnswerGenerationRewriterOn(); + + /** + * + * + *
                                                                                                                                  +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + boolean getEndUserMetadataIncluded(); + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to return query only in the
                                                                                                                                  +     * conversation profile.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + boolean getReturnQueryOnly(); + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + boolean getUsePubsubDelivery(); + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +     * Knowedge Assist response.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + boolean getDisableSyncDelivery(); + + /** + * + * + *
                                                                                                                                  +     * Whether previously suggested queries are included in the query generation
                                                                                                                                  +     * process.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + boolean getPreviousQueriesIncluded(); + + /** + * + * + *
                                                                                                                                  +     * Translated message is included in query generation process.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + boolean getUseTranslatedMessage(); + + /** + * + * + *
                                                                                                                                  +     * Safety filter is adjusted by user.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + boolean getUseCustomSafetyFilterLevel(); + + /** + * + * + *
                                                                                                                                  +     * Conversation transcript has mixed languages.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + boolean getConversationTranscriptHasMixedLanguages(); + + /** + * + * + *
                                                                                                                                  +     * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +     * end-user language.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + boolean getQueryGenerationAgentLanguageMismatch(); + + /** + * + * + *
                                                                                                                                  +     * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +     * the end-user language.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + boolean getQueryGenerationEndUserLanguageMismatch(); + + /** + * + * + *
                                                                                                                                  +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +     * project
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + boolean getThirdPartyConnectorAllowed(); + + /** + * + * + *
                                                                                                                                  +     * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + boolean getMultipleQueriesGenerated(); + + /** + * + * + *
                                                                                                                                  +     * Indicates that the generated query contains search context.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + boolean getQueryContainedSearchContext(); + + /** + * + * + *
                                                                                                                                  +     * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + boolean getInvalidItemsQuerySuggestionSkipped(); + + /** + * + * + *
                                                                                                                                  +     * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +     * additional query.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + boolean getPrimaryQueryRedactedAndReplaced(); + + /** + * + * + *
                                                                                                                                  +     * The number of search contexts appended to the query.
                                                                                                                                  +     * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + int getAppendedSearchContextCount(); + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior} + */ + public static final class KnowledgeAssistBehavior extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + KnowledgeAssistBehaviorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAssistBehavior"); + } + + // Use KnowledgeAssistBehavior.newBuilder() to construct. + private KnowledgeAssistBehavior(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAssistBehavior() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder.class); + } + + public static final int ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER = 1; + private boolean answerGenerationRewriterOn_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + public static final int END_USER_METADATA_INCLUDED_FIELD_NUMBER = 2; + private boolean endUserMetadataIncluded_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + public static final int RETURN_QUERY_ONLY_FIELD_NUMBER = 4; + private boolean returnQueryOnly_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to return query only in the
                                                                                                                                  +     * conversation profile.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + @java.lang.Override + public boolean getReturnQueryOnly() { + return returnQueryOnly_; + } + + public static final int USE_PUBSUB_DELIVERY_FIELD_NUMBER = 5; + private boolean usePubsubDelivery_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + @java.lang.Override + public boolean getUsePubsubDelivery() { + return usePubsubDelivery_; + } + + public static final int DISABLE_SYNC_DELIVERY_FIELD_NUMBER = 6; + private boolean disableSyncDelivery_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +     * Knowedge Assist response.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + @java.lang.Override + public boolean getDisableSyncDelivery() { + return disableSyncDelivery_; + } + + public static final int PREVIOUS_QUERIES_INCLUDED_FIELD_NUMBER = 7; + private boolean previousQueriesIncluded_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether previously suggested queries are included in the query generation
                                                                                                                                  +     * process.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + @java.lang.Override + public boolean getPreviousQueriesIncluded() { + return previousQueriesIncluded_; + } + + public static final int USE_TRANSLATED_MESSAGE_FIELD_NUMBER = 8; + private boolean useTranslatedMessage_ = false; + + /** + * + * + *
                                                                                                                                  +     * Translated message is included in query generation process.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + @java.lang.Override + public boolean getUseTranslatedMessage() { + return useTranslatedMessage_; + } + + public static final int USE_CUSTOM_SAFETY_FILTER_LEVEL_FIELD_NUMBER = 9; + private boolean useCustomSafetyFilterLevel_ = false; + + /** + * + * + *
                                                                                                                                  +     * Safety filter is adjusted by user.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + @java.lang.Override + public boolean getUseCustomSafetyFilterLevel() { + return useCustomSafetyFilterLevel_; + } + + public static final int CONVERSATION_TRANSCRIPT_HAS_MIXED_LANGUAGES_FIELD_NUMBER = 10; + private boolean conversationTranscriptHasMixedLanguages_ = false; + + /** + * + * + *
                                                                                                                                  +     * Conversation transcript has mixed languages.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + @java.lang.Override + public boolean getConversationTranscriptHasMixedLanguages() { + return conversationTranscriptHasMixedLanguages_; + } + + public static final int QUERY_GENERATION_AGENT_LANGUAGE_MISMATCH_FIELD_NUMBER = 11; + private boolean queryGenerationAgentLanguageMismatch_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +     * end-user language.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationAgentLanguageMismatch() { + return queryGenerationAgentLanguageMismatch_; + } + + public static final int QUERY_GENERATION_END_USER_LANGUAGE_MISMATCH_FIELD_NUMBER = 12; + private boolean queryGenerationEndUserLanguageMismatch_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +     * the end-user language.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationEndUserLanguageMismatch() { + return queryGenerationEndUserLanguageMismatch_; + } + + public static final int THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER = 13; + private boolean thirdPartyConnectorAllowed_ = false; + + /** + * + * + *
                                                                                                                                  +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +     * project
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + public static final int MULTIPLE_QUERIES_GENERATED_FIELD_NUMBER = 14; + private boolean multipleQueriesGenerated_ = false; + + /** + * + * + *
                                                                                                                                  +     * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + @java.lang.Override + public boolean getMultipleQueriesGenerated() { + return multipleQueriesGenerated_; + } + + public static final int QUERY_CONTAINED_SEARCH_CONTEXT_FIELD_NUMBER = 15; + private boolean queryContainedSearchContext_ = false; + + /** + * + * + *
                                                                                                                                  +     * Indicates that the generated query contains search context.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + @java.lang.Override + public boolean getQueryContainedSearchContext() { + return queryContainedSearchContext_; + } + + public static final int INVALID_ITEMS_QUERY_SUGGESTION_SKIPPED_FIELD_NUMBER = 16; + private boolean invalidItemsQuerySuggestionSkipped_ = false; + + /** + * + * + *
                                                                                                                                  +     * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + @java.lang.Override + public boolean getInvalidItemsQuerySuggestionSkipped() { + return invalidItemsQuerySuggestionSkipped_; + } + + public static final int PRIMARY_QUERY_REDACTED_AND_REPLACED_FIELD_NUMBER = 17; + private boolean primaryQueryRedactedAndReplaced_ = false; + + /** + * + * + *
                                                                                                                                  +     * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +     * additional query.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + @java.lang.Override + public boolean getPrimaryQueryRedactedAndReplaced() { + return primaryQueryRedactedAndReplaced_; + } + + public static final int APPENDED_SEARCH_CONTEXT_COUNT_FIELD_NUMBER = 18; + private int appendedSearchContextCount_ = 0; + + /** + * + * + *
                                                                                                                                  +     * The number of search contexts appended to the query.
                                                                                                                                  +     * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + @java.lang.Override + public int getAppendedSearchContextCount() { + return appendedSearchContextCount_; + } + + 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 (answerGenerationRewriterOn_ != false) { + output.writeBool(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + output.writeBool(2, endUserMetadataIncluded_); + } + if (returnQueryOnly_ != false) { + output.writeBool(4, returnQueryOnly_); + } + if (usePubsubDelivery_ != false) { + output.writeBool(5, usePubsubDelivery_); + } + if (disableSyncDelivery_ != false) { + output.writeBool(6, disableSyncDelivery_); + } + if (previousQueriesIncluded_ != false) { + output.writeBool(7, previousQueriesIncluded_); + } + if (useTranslatedMessage_ != false) { + output.writeBool(8, useTranslatedMessage_); + } + if (useCustomSafetyFilterLevel_ != false) { + output.writeBool(9, useCustomSafetyFilterLevel_); + } + if (conversationTranscriptHasMixedLanguages_ != false) { + output.writeBool(10, conversationTranscriptHasMixedLanguages_); + } + if (queryGenerationAgentLanguageMismatch_ != false) { + output.writeBool(11, queryGenerationAgentLanguageMismatch_); + } + if (queryGenerationEndUserLanguageMismatch_ != false) { + output.writeBool(12, queryGenerationEndUserLanguageMismatch_); + } + if (thirdPartyConnectorAllowed_ != false) { + output.writeBool(13, thirdPartyConnectorAllowed_); + } + if (multipleQueriesGenerated_ != false) { + output.writeBool(14, multipleQueriesGenerated_); + } + if (queryContainedSearchContext_ != false) { + output.writeBool(15, queryContainedSearchContext_); + } + if (invalidItemsQuerySuggestionSkipped_ != false) { + output.writeBool(16, invalidItemsQuerySuggestionSkipped_); + } + if (primaryQueryRedactedAndReplaced_ != false) { + output.writeBool(17, primaryQueryRedactedAndReplaced_); + } + if (appendedSearchContextCount_ != 0) { + output.writeInt32(18, appendedSearchContextCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answerGenerationRewriterOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, endUserMetadataIncluded_); + } + if (returnQueryOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnQueryOnly_); + } + if (usePubsubDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, usePubsubDelivery_); + } + if (disableSyncDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableSyncDelivery_); + } + if (previousQueriesIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, previousQueriesIncluded_); + } + if (useTranslatedMessage_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, useTranslatedMessage_); + } + if (useCustomSafetyFilterLevel_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, useCustomSafetyFilterLevel_); + } + if (conversationTranscriptHasMixedLanguages_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, conversationTranscriptHasMixedLanguages_); + } + if (queryGenerationAgentLanguageMismatch_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 11, queryGenerationAgentLanguageMismatch_); + } + if (queryGenerationEndUserLanguageMismatch_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 12, queryGenerationEndUserLanguageMismatch_); + } + if (thirdPartyConnectorAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(13, thirdPartyConnectorAllowed_); + } + if (multipleQueriesGenerated_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(14, multipleQueriesGenerated_); + } + if (queryContainedSearchContext_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(15, queryContainedSearchContext_); + } + if (invalidItemsQuerySuggestionSkipped_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 16, invalidItemsQuerySuggestionSkipped_); + } + if (primaryQueryRedactedAndReplaced_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 17, primaryQueryRedactedAndReplaced_); + } + if (appendedSearchContextCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(18, appendedSearchContextCount_); + } + 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.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) obj; + + if (getAnswerGenerationRewriterOn() != other.getAnswerGenerationRewriterOn()) return false; + if (getEndUserMetadataIncluded() != other.getEndUserMetadataIncluded()) return false; + if (getReturnQueryOnly() != other.getReturnQueryOnly()) return false; + if (getUsePubsubDelivery() != other.getUsePubsubDelivery()) return false; + if (getDisableSyncDelivery() != other.getDisableSyncDelivery()) return false; + if (getPreviousQueriesIncluded() != other.getPreviousQueriesIncluded()) return false; + if (getUseTranslatedMessage() != other.getUseTranslatedMessage()) return false; + if (getUseCustomSafetyFilterLevel() != other.getUseCustomSafetyFilterLevel()) return false; + if (getConversationTranscriptHasMixedLanguages() + != other.getConversationTranscriptHasMixedLanguages()) return false; + if (getQueryGenerationAgentLanguageMismatch() + != other.getQueryGenerationAgentLanguageMismatch()) return false; + if (getQueryGenerationEndUserLanguageMismatch() + != other.getQueryGenerationEndUserLanguageMismatch()) return false; + if (getThirdPartyConnectorAllowed() != other.getThirdPartyConnectorAllowed()) return false; + if (getMultipleQueriesGenerated() != other.getMultipleQueriesGenerated()) return false; + if (getQueryContainedSearchContext() != other.getQueryContainedSearchContext()) return false; + if (getInvalidItemsQuerySuggestionSkipped() != other.getInvalidItemsQuerySuggestionSkipped()) + return false; + if (getPrimaryQueryRedactedAndReplaced() != other.getPrimaryQueryRedactedAndReplaced()) + return false; + if (getAppendedSearchContextCount() != other.getAppendedSearchContextCount()) 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) + ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerGenerationRewriterOn()); + hash = (37 * hash) + END_USER_METADATA_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndUserMetadataIncluded()); + hash = (37 * hash) + RETURN_QUERY_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnQueryOnly()); + hash = (37 * hash) + USE_PUBSUB_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsePubsubDelivery()); + hash = (37 * hash) + DISABLE_SYNC_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSyncDelivery()); + hash = (37 * hash) + PREVIOUS_QUERIES_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreviousQueriesIncluded()); + hash = (37 * hash) + USE_TRANSLATED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTranslatedMessage()); + hash = (37 * hash) + USE_CUSTOM_SAFETY_FILTER_LEVEL_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseCustomSafetyFilterLevel()); + hash = (37 * hash) + CONVERSATION_TRANSCRIPT_HAS_MIXED_LANGUAGES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getConversationTranscriptHasMixedLanguages()); + hash = (37 * hash) + QUERY_GENERATION_AGENT_LANGUAGE_MISMATCH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getQueryGenerationAgentLanguageMismatch()); + hash = (37 * hash) + QUERY_GENERATION_END_USER_LANGUAGE_MISMATCH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getQueryGenerationEndUserLanguageMismatch()); + hash = (37 * hash) + THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThirdPartyConnectorAllowed()); + hash = (37 * hash) + MULTIPLE_QUERIES_GENERATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultipleQueriesGenerated()); + hash = (37 * hash) + QUERY_CONTAINED_SEARCH_CONTEXT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getQueryContainedSearchContext()); + hash = (37 * hash) + INVALID_ITEMS_QUERY_SUGGESTION_SKIPPED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getInvalidItemsQuerySuggestionSkipped()); + hash = (37 * hash) + PRIMARY_QUERY_REDACTED_AND_REPLACED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getPrimaryQueryRedactedAndReplaced()); + hash = (37 * hash) + APPENDED_SEARCH_CONTEXT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAppendedSearchContextCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + 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.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + 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.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerGenerationRewriterOn_ = false; + endUserMetadataIncluded_ = false; + returnQueryOnly_ = false; + usePubsubDelivery_ = false; + disableSyncDelivery_ = false; + previousQueriesIncluded_ = false; + useTranslatedMessage_ = false; + useCustomSafetyFilterLevel_ = false; + conversationTranscriptHasMixedLanguages_ = false; + queryGenerationAgentLanguageMismatch_ = false; + queryGenerationEndUserLanguageMismatch_ = false; + thirdPartyConnectorAllowed_ = false; + multipleQueriesGenerated_ = false; + queryContainedSearchContext_ = false; + invalidItemsQuerySuggestionSkipped_ = false; + primaryQueryRedactedAndReplaced_ = false; + appendedSearchContextCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerGenerationRewriterOn_ = answerGenerationRewriterOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endUserMetadataIncluded_ = endUserMetadataIncluded_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnQueryOnly_ = returnQueryOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.usePubsubDelivery_ = usePubsubDelivery_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableSyncDelivery_ = disableSyncDelivery_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previousQueriesIncluded_ = previousQueriesIncluded_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.useTranslatedMessage_ = useTranslatedMessage_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.useCustomSafetyFilterLevel_ = useCustomSafetyFilterLevel_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.conversationTranscriptHasMixedLanguages_ = + conversationTranscriptHasMixedLanguages_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.queryGenerationAgentLanguageMismatch_ = queryGenerationAgentLanguageMismatch_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.queryGenerationEndUserLanguageMismatch_ = queryGenerationEndUserLanguageMismatch_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.thirdPartyConnectorAllowed_ = thirdPartyConnectorAllowed_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.multipleQueriesGenerated_ = multipleQueriesGenerated_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.queryContainedSearchContext_ = queryContainedSearchContext_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.invalidItemsQuerySuggestionSkipped_ = invalidItemsQuerySuggestionSkipped_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.primaryQueryRedactedAndReplaced_ = primaryQueryRedactedAndReplaced_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.appendedSearchContextCount_ = appendedSearchContextCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance()) return this; + if (other.getAnswerGenerationRewriterOn() != false) { + setAnswerGenerationRewriterOn(other.getAnswerGenerationRewriterOn()); + } + if (other.getEndUserMetadataIncluded() != false) { + setEndUserMetadataIncluded(other.getEndUserMetadataIncluded()); + } + if (other.getReturnQueryOnly() != false) { + setReturnQueryOnly(other.getReturnQueryOnly()); + } + if (other.getUsePubsubDelivery() != false) { + setUsePubsubDelivery(other.getUsePubsubDelivery()); + } + if (other.getDisableSyncDelivery() != false) { + setDisableSyncDelivery(other.getDisableSyncDelivery()); + } + if (other.getPreviousQueriesIncluded() != false) { + setPreviousQueriesIncluded(other.getPreviousQueriesIncluded()); + } + if (other.getUseTranslatedMessage() != false) { + setUseTranslatedMessage(other.getUseTranslatedMessage()); + } + if (other.getUseCustomSafetyFilterLevel() != false) { + setUseCustomSafetyFilterLevel(other.getUseCustomSafetyFilterLevel()); + } + if (other.getConversationTranscriptHasMixedLanguages() != false) { + setConversationTranscriptHasMixedLanguages( + other.getConversationTranscriptHasMixedLanguages()); + } + if (other.getQueryGenerationAgentLanguageMismatch() != false) { + setQueryGenerationAgentLanguageMismatch(other.getQueryGenerationAgentLanguageMismatch()); + } + if (other.getQueryGenerationEndUserLanguageMismatch() != false) { + setQueryGenerationEndUserLanguageMismatch( + other.getQueryGenerationEndUserLanguageMismatch()); + } + if (other.getThirdPartyConnectorAllowed() != false) { + setThirdPartyConnectorAllowed(other.getThirdPartyConnectorAllowed()); + } + if (other.getMultipleQueriesGenerated() != false) { + setMultipleQueriesGenerated(other.getMultipleQueriesGenerated()); + } + if (other.getQueryContainedSearchContext() != false) { + setQueryContainedSearchContext(other.getQueryContainedSearchContext()); + } + if (other.getInvalidItemsQuerySuggestionSkipped() != false) { + setInvalidItemsQuerySuggestionSkipped(other.getInvalidItemsQuerySuggestionSkipped()); + } + if (other.getPrimaryQueryRedactedAndReplaced() != false) { + setPrimaryQueryRedactedAndReplaced(other.getPrimaryQueryRedactedAndReplaced()); + } + if (other.getAppendedSearchContextCount() != 0) { + setAppendedSearchContextCount(other.getAppendedSearchContextCount()); + } + 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 8: + { + answerGenerationRewriterOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endUserMetadataIncluded_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + returnQueryOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + usePubsubDelivery_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + disableSyncDelivery_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + previousQueriesIncluded_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + useTranslatedMessage_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + useCustomSafetyFilterLevel_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 80: + { + conversationTranscriptHasMixedLanguages_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + queryGenerationAgentLanguageMismatch_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + queryGenerationEndUserLanguageMismatch_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 104: + { + thirdPartyConnectorAllowed_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 112: + { + multipleQueriesGenerated_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 112 + case 120: + { + queryContainedSearchContext_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 120 + case 128: + { + invalidItemsQuerySuggestionSkipped_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 128 + case 136: + { + primaryQueryRedactedAndReplaced_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 136 + case 144: + { + appendedSearchContextCount_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 144 + 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 boolean answerGenerationRewriterOn_; + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @param value The answerGenerationRewriterOn to set. + * @return This builder for chaining. + */ + public Builder setAnswerGenerationRewriterOn(boolean value) { + + answerGenerationRewriterOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerGenerationRewriterOn() { + bitField0_ = (bitField0_ & ~0x00000001); + answerGenerationRewriterOn_ = false; + onChanged(); + return this; + } + + private boolean endUserMetadataIncluded_; + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @param value The endUserMetadataIncluded to set. + * @return This builder for chaining. + */ + public Builder setEndUserMetadataIncluded(boolean value) { + + endUserMetadataIncluded_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndUserMetadataIncluded() { + bitField0_ = (bitField0_ & ~0x00000002); + endUserMetadataIncluded_ = false; + onChanged(); + return this; + } + + private boolean returnQueryOnly_; + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to return query only in the
                                                                                                                                  +       * conversation profile.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + @java.lang.Override + public boolean getReturnQueryOnly() { + return returnQueryOnly_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to return query only in the
                                                                                                                                  +       * conversation profile.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @param value The returnQueryOnly to set. + * @return This builder for chaining. + */ + public Builder setReturnQueryOnly(boolean value) { + + returnQueryOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to return query only in the
                                                                                                                                  +       * conversation profile.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @return This builder for chaining. + */ + public Builder clearReturnQueryOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + returnQueryOnly_ = false; + onChanged(); + return this; + } + + private boolean usePubsubDelivery_; + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + @java.lang.Override + public boolean getUsePubsubDelivery() { + return usePubsubDelivery_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @param value The usePubsubDelivery to set. + * @return This builder for chaining. + */ + public Builder setUsePubsubDelivery(boolean value) { + + usePubsubDelivery_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @return This builder for chaining. + */ + public Builder clearUsePubsubDelivery() { + bitField0_ = (bitField0_ & ~0x00000008); + usePubsubDelivery_ = false; + onChanged(); + return this; + } + + private boolean disableSyncDelivery_; + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +       * Knowedge Assist response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + @java.lang.Override + public boolean getDisableSyncDelivery() { + return disableSyncDelivery_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +       * Knowedge Assist response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @param value The disableSyncDelivery to set. + * @return This builder for chaining. + */ + public Builder setDisableSyncDelivery(boolean value) { + + disableSyncDelivery_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +       * Knowedge Assist response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisableSyncDelivery() { + bitField0_ = (bitField0_ & ~0x00000010); + disableSyncDelivery_ = false; + onChanged(); + return this; + } + + private boolean previousQueriesIncluded_; + + /** + * + * + *
                                                                                                                                  +       * Whether previously suggested queries are included in the query generation
                                                                                                                                  +       * process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + @java.lang.Override + public boolean getPreviousQueriesIncluded() { + return previousQueriesIncluded_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether previously suggested queries are included in the query generation
                                                                                                                                  +       * process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @param value The previousQueriesIncluded to set. + * @return This builder for chaining. + */ + public Builder setPreviousQueriesIncluded(boolean value) { + + previousQueriesIncluded_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether previously suggested queries are included in the query generation
                                                                                                                                  +       * process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @return This builder for chaining. + */ + public Builder clearPreviousQueriesIncluded() { + bitField0_ = (bitField0_ & ~0x00000020); + previousQueriesIncluded_ = false; + onChanged(); + return this; + } + + private boolean useTranslatedMessage_; + + /** + * + * + *
                                                                                                                                  +       * Translated message is included in query generation process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + @java.lang.Override + public boolean getUseTranslatedMessage() { + return useTranslatedMessage_; + } + + /** + * + * + *
                                                                                                                                  +       * Translated message is included in query generation process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @param value The useTranslatedMessage to set. + * @return This builder for chaining. + */ + public Builder setUseTranslatedMessage(boolean value) { + + useTranslatedMessage_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Translated message is included in query generation process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @return This builder for chaining. + */ + public Builder clearUseTranslatedMessage() { + bitField0_ = (bitField0_ & ~0x00000040); + useTranslatedMessage_ = false; + onChanged(); + return this; + } + + private boolean useCustomSafetyFilterLevel_; + + /** + * + * + *
                                                                                                                                  +       * Safety filter is adjusted by user.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + @java.lang.Override + public boolean getUseCustomSafetyFilterLevel() { + return useCustomSafetyFilterLevel_; + } + + /** + * + * + *
                                                                                                                                  +       * Safety filter is adjusted by user.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @param value The useCustomSafetyFilterLevel to set. + * @return This builder for chaining. + */ + public Builder setUseCustomSafetyFilterLevel(boolean value) { + + useCustomSafetyFilterLevel_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Safety filter is adjusted by user.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @return This builder for chaining. + */ + public Builder clearUseCustomSafetyFilterLevel() { + bitField0_ = (bitField0_ & ~0x00000080); + useCustomSafetyFilterLevel_ = false; + onChanged(); + return this; + } + + private boolean conversationTranscriptHasMixedLanguages_; + + /** + * + * + *
                                                                                                                                  +       * Conversation transcript has mixed languages.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + @java.lang.Override + public boolean getConversationTranscriptHasMixedLanguages() { + return conversationTranscriptHasMixedLanguages_; + } + + /** + * + * + *
                                                                                                                                  +       * Conversation transcript has mixed languages.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @param value The conversationTranscriptHasMixedLanguages to set. + * @return This builder for chaining. + */ + public Builder setConversationTranscriptHasMixedLanguages(boolean value) { + + conversationTranscriptHasMixedLanguages_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Conversation transcript has mixed languages.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return This builder for chaining. + */ + public Builder clearConversationTranscriptHasMixedLanguages() { + bitField0_ = (bitField0_ & ~0x00000100); + conversationTranscriptHasMixedLanguages_ = false; + onChanged(); + return this; + } + + private boolean queryGenerationAgentLanguageMismatch_; + + /** + * + * + *
                                                                                                                                  +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +       * end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationAgentLanguageMismatch() { + return queryGenerationAgentLanguageMismatch_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +       * end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @param value The queryGenerationAgentLanguageMismatch to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationAgentLanguageMismatch(boolean value) { + + queryGenerationAgentLanguageMismatch_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +       * end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationAgentLanguageMismatch() { + bitField0_ = (bitField0_ & ~0x00000200); + queryGenerationAgentLanguageMismatch_ = false; + onChanged(); + return this; + } + + private boolean queryGenerationEndUserLanguageMismatch_; + + /** + * + * + *
                                                                                                                                  +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +       * the end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationEndUserLanguageMismatch() { + return queryGenerationEndUserLanguageMismatch_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +       * the end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @param value The queryGenerationEndUserLanguageMismatch to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationEndUserLanguageMismatch(boolean value) { + + queryGenerationEndUserLanguageMismatch_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +       * the end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationEndUserLanguageMismatch() { + bitField0_ = (bitField0_ & ~0x00000400); + queryGenerationEndUserLanguageMismatch_ = false; + onChanged(); + return this; + } + + private boolean thirdPartyConnectorAllowed_; + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @param value The thirdPartyConnectorAllowed to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyConnectorAllowed(boolean value) { + + thirdPartyConnectorAllowed_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyConnectorAllowed() { + bitField0_ = (bitField0_ & ~0x00000800); + thirdPartyConnectorAllowed_ = false; + onChanged(); + return this; + } + + private boolean multipleQueriesGenerated_; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + @java.lang.Override + public boolean getMultipleQueriesGenerated() { + return multipleQueriesGenerated_; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @param value The multipleQueriesGenerated to set. + * @return This builder for chaining. + */ + public Builder setMultipleQueriesGenerated(boolean value) { + + multipleQueriesGenerated_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @return This builder for chaining. + */ + public Builder clearMultipleQueriesGenerated() { + bitField0_ = (bitField0_ & ~0x00001000); + multipleQueriesGenerated_ = false; + onChanged(); + return this; + } + + private boolean queryContainedSearchContext_; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the generated query contains search context.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + @java.lang.Override + public boolean getQueryContainedSearchContext() { + return queryContainedSearchContext_; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that the generated query contains search context.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @param value The queryContainedSearchContext to set. + * @return This builder for chaining. + */ + public Builder setQueryContainedSearchContext(boolean value) { + + queryContainedSearchContext_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that the generated query contains search context.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @return This builder for chaining. + */ + public Builder clearQueryContainedSearchContext() { + bitField0_ = (bitField0_ & ~0x00002000); + queryContainedSearchContext_ = false; + onChanged(); + return this; + } + + private boolean invalidItemsQuerySuggestionSkipped_; + + /** + * + * + *
                                                                                                                                  +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + @java.lang.Override + public boolean getInvalidItemsQuerySuggestionSkipped() { + return invalidItemsQuerySuggestionSkipped_; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @param value The invalidItemsQuerySuggestionSkipped to set. + * @return This builder for chaining. + */ + public Builder setInvalidItemsQuerySuggestionSkipped(boolean value) { + + invalidItemsQuerySuggestionSkipped_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return This builder for chaining. + */ + public Builder clearInvalidItemsQuerySuggestionSkipped() { + bitField0_ = (bitField0_ & ~0x00004000); + invalidItemsQuerySuggestionSkipped_ = false; + onChanged(); + return this; + } + + private boolean primaryQueryRedactedAndReplaced_; + + /** + * + * + *
                                                                                                                                  +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +       * additional query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + @java.lang.Override + public boolean getPrimaryQueryRedactedAndReplaced() { + return primaryQueryRedactedAndReplaced_; + } + + /** + * + * + *
                                                                                                                                  +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +       * additional query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @param value The primaryQueryRedactedAndReplaced to set. + * @return This builder for chaining. + */ + public Builder setPrimaryQueryRedactedAndReplaced(boolean value) { + + primaryQueryRedactedAndReplaced_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +       * additional query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryQueryRedactedAndReplaced() { + bitField0_ = (bitField0_ & ~0x00008000); + primaryQueryRedactedAndReplaced_ = false; + onChanged(); + return this; + } + + private int appendedSearchContextCount_; + + /** + * + * + *
                                                                                                                                  +       * The number of search contexts appended to the query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + @java.lang.Override + public int getAppendedSearchContextCount() { + return appendedSearchContextCount_; + } + + /** + * + * + *
                                                                                                                                  +       * The number of search contexts appended to the query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @param value The appendedSearchContextCount to set. + * @return This builder for chaining. + */ + public Builder setAppendedSearchContextCount(int value) { + + appendedSearchContextCount_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The number of search contexts appended to the query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @return This builder for chaining. + */ + public Builder clearAppendedSearchContextCount() { + bitField0_ = (bitField0_ & ~0x00010000); + appendedSearchContextCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeAssistBehavior 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.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason result = + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .UNRECOGNIZED + : result; + } + + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER = 2; + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .UNRECOGNIZED + : result; + } + + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 3; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2.DatastoreResponseReason.forNumber(datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.v2.ServiceLatency serviceLatency_; + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + 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 (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getServiceLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); + } + 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.dialogflow.v2.KnowledgeAssistDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) obj; + + if (queryGenerationFailureReason_ != other.queryGenerationFailureReason_) return false; + if (queryCategorizationFailureReason_ != other.queryCategorizationFailureReason_) return false; + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasKnowledgeAssistBehavior() != other.hasKnowledgeAssistBehavior()) return false; + if (hasKnowledgeAssistBehavior()) { + if (!getKnowledgeAssistBehavior().equals(other.getKnowledgeAssistBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) 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) + QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryGenerationFailureReason_; + hash = (37 * hash) + QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryCategorizationFailureReason_; + hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasKnowledgeAssistBehavior()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo 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.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo 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.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.KnowledgeAssistDebugInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetKnowledgeAssistBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryGenerationFailureReason_ = queryGenerationFailureReason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryCategorizationFailureReason_ = queryCategorizationFailureReason_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistBehavior_ = + knowledgeAssistBehaviorBuilder_ == null + ? knowledgeAssistBehavior_ + : knowledgeAssistBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo other) { + if (other == com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance()) + return this; + if (other.queryGenerationFailureReason_ != 0) { + setQueryGenerationFailureReasonValue(other.getQueryGenerationFailureReasonValue()); + } + if (other.queryCategorizationFailureReason_ != 0) { + setQueryCategorizationFailureReasonValue(other.getQueryCategorizationFailureReasonValue()); + } + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasKnowledgeAssistBehavior()) { + mergeKnowledgeAssistBehavior(other.getKnowledgeAssistBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + 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 8: + { + queryGenerationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + queryCategorizationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + 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 int queryGenerationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The enum numeric value on the wire for queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReasonValue(int value) { + queryGenerationFailureReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason result = + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReason( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + queryGenerationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000001); + queryGenerationFailureReason_ = 0; + onChanged(); + return this; + } + + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The enum numeric value on the wire for queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReasonValue(int value) { + queryCategorizationFailureReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReason( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + queryCategorizationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryCategorizationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000002); + queryCategorizationFailureReason_ = 0; + onChanged(); + return this; + } + + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + datastoreResponseReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000004); + datastoreResponseReason_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + knowledgeAssistBehaviorBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + if (knowledgeAssistBehaviorBuilder_ == null) { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } else { + return knowledgeAssistBehaviorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistBehavior_ = value; + } else { + knowledgeAssistBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder + builderForValue) { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehavior_ = builderForValue.build(); + } else { + knowledgeAssistBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder mergeKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistBehavior_ != null + && knowledgeAssistBehavior_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance()) { + getKnowledgeAssistBehaviorBuilder().mergeFrom(value); + } else { + knowledgeAssistBehavior_ = value; + } + } else { + knowledgeAssistBehaviorBuilder_.mergeFrom(value); + } + if (knowledgeAssistBehavior_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder clearKnowledgeAssistBehavior() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder + getKnowledgeAssistBehaviorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + if (knowledgeAssistBehaviorBuilder_ != null) { + return knowledgeAssistBehaviorBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + internalGetKnowledgeAssistBehaviorFieldBuilder() { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder>( + getKnowledgeAssistBehavior(), getParentForChildren(), isClean()); + knowledgeAssistBehavior_ = null; + } + return knowledgeAssistBehaviorBuilder_; + } + + private com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2.ServiceLatency serviceLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + public com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } else { + return serviceLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public Builder setServiceLatency(com.google.cloud.dialogflow.v2.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceLatency_ = value; + } else { + serviceLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); + } else { + serviceLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); + } else { + serviceLatency_ = value; + } + } else { + serviceLatencyBuilder_.mergeFrom(value); + } + if (serviceLatency_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000020); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); + } else { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; + } + return serviceLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeAssistDebugInfo 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.dialogflow.v2.KnowledgeAssistDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java new file mode 100644 index 000000000000..e98334a4f44f --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java @@ -0,0 +1,245 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface KnowledgeAssistDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + int getQueryGenerationFailureReasonValue(); + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason(); + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + int getQueryCategorizationFailureReasonValue(); + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + getQueryCategorizationFailureReason(); + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + int getDatastoreResponseReasonValue(); + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * @return The datastoreResponseReason. + */ + com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + boolean hasKnowledgeAssistBehavior(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + boolean hasIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + boolean hasServiceLatency(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java index 1a9f0ac770b9..ec6904ff8ae5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java @@ -200,6 +200,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -338,7 +362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033end_user_suggestion_results\030\007" + " \003(\0132,.google.cloud.dialogflow.v2.SuggestionResult\022C\n" + "\017dtmf_parameters\030\t" - + " \001(\0132*.google.cloud.dialogflow.v2.DtmfParameters\"\375\005\n" + + " \001(\0132*.google.cloud.dialogflow.v2.DtmfParameters\"\246\006\n" + "\036StreamingAnalyzeContentRequest\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022D\n" @@ -358,7 +382,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cx_parameters\030\r" + " \001(\0132\027.google.protobuf.Struct\022&\n" + "\031enable_extended_streaming\030\013 \001(\010B\003\340A\001\0221\n" - + "$enable_partial_automated_agent_reply\030\014 \001(\010B\003\340A\001\022\035\n" + + "$enable_partial_automated_agent_reply\030\014 \001(\010B\003\340A\001\022\'\n" + + "\032output_multiple_utterances\030\022 \001(\010B\003\340A\001\022\035\n" + "\025enable_debugging_info\030\023 \001(\010B\010\n" + "\006configB\007\n" + "\005input\"\245\005\n" @@ -376,8 +401,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132,.google.cloud.dialogflow.v2.SuggestionResult\022C\n" + "\017dtmf_parameters\030\n" + " \001(\0132*.google.cloud.dialogflow.v2.DtmfParameters\022R\n" - + "\016debugging_info\030\013 \001(\0132:.google.clo" - + "ud.dialogflow.v2.CloudConversationDebuggingInfo\022\024\n" + + "\016debugging_info\030\013 \001(\0132:.google.cl" + + "oud.dialogflow.v2.CloudConversationDebuggingInfo\022\024\n" + "\014speech_model\030\r" + " \001(\t\"\205\002\n" + "\026SuggestArticlesRequest\022=\n" @@ -386,8 +411,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022N\n" - + "\023assist_query_params\030\004 \001" - + "(\01321.google.cloud.dialogflow.v2.AssistQueryParameters\"\213\001\n" + + "\023assist_query_params\030\004 " + + "\001(\01321.google.cloud.dialogflow.v2.AssistQueryParameters\"\213\001\n" + "\027SuggestArticlesResponse\022B\n" + "\017article_answers\030\001" + " \003(\0132).google.cloud.dialogflow.v2.ArticleAnswer\022\026\n" @@ -406,13 +431,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\241\003\n" + "\033GenerateSuggestionsResponse\022w\n" - + "\034generator_suggestion_answers\030\001 \003(\0132Q.google.clo" - + "ud.dialogflow.v2.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + + "\034generator_suggestion_answers\030\001 \003(\0132Q.google.cl" + + "oud.dialogflow.v2.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\032\310\001\n" + "\031GeneratorSuggestionAnswer\022M\n" - + "\024generator_suggestion\030\001 \001(\0132/.goo" - + "gle.cloud.dialogflow.v2.GeneratorSuggestion\022\030\n" + + "\024generator_suggestion\030\001 \001(\0132/.go" + + "ogle.cloud.dialogflow.v2.GeneratorSuggestion\022\030\n" + "\020source_generator\030\002 \001(\t\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\"\364\001\n" @@ -437,23 +462,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006config\030\001 \001(\0132-.google.cloud.dialogflow.v2.OutputAudioConfig\022\r\n" + "\005audio\030\002 \001(\014\"\350\002\n" + "\023AutomatedAgentReply\022P\n" - + "\026detect_intent_response\030\001 \001(\01320.googl" - + "e.cloud.dialogflow.v2.DetectIntentResponse\022k\n" - + "\032automated_agent_reply_type\030\007 \001(\0162G" - + ".google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType\022\032\n" + + "\026detect_intent_response\030\001 \001(\01320.goog" + + "le.cloud.dialogflow.v2.DetectIntentResponse\022k\n" + + "\032automated_agent_reply_type\030\007 \001(\0162" + + "G.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType\022\032\n" + "\022allow_cancellation\030\010 \001(\010\022\027\n" + "\017cx_current_page\030\013 \001(\t\"]\n" + "\027AutomatedAgentReplyType\022*\n" + "&AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007PARTIAL\020\001\022\t\n" + "\005FINAL\020\002\"\344\001\n\r" - + "ArticleAnswer\022\r\n" + + "ArticleAnswer\022\r" + + "\n" + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\020\n" + "\010snippets\030\003 \003(\t\022\022\n\n" + "confidence\030\004 \001(\002\022I\n" - + "\010metadata\030\005 \003(" - + "\01327.google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry\022\025\n\r" + + "\010metadata\030\005 \003" + + "(\01327.google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -463,8 +489,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "confidence\030\002 \001(\002\022\020\n" + "\010question\030\003 \001(\t\022\016\n" + "\006source\030\004 \001(\t\022E\n" - + "\010metadata\030\005 \003(\01323.googl" - + "e.cloud.dialogflow.v2.FaqAnswer.MetadataEntry\022\025\n\r" + + "\010metadata\030\005 \003(\01323.goog" + + "le.cloud.dialogflow.v2.FaqAnswer.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -488,16 +514,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006result\"\265\004\n" + "\020SuggestionResult\022#\n" + "\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022X\n" - + "\031suggest_articles_response\030\002 \001(\01323.google.clo" - + "ud.dialogflow.v2.SuggestArticlesResponseH\000\022g\n" + + "\031suggest_articles_response\030\002 \001(\01323.google.cl" + + "oud.dialogflow.v2.SuggestArticlesResponseH\000\022g\n" + "!suggest_knowledge_assist_response\030\010" + " \001(\0132:.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponseH\000\022]\n" - + "\034suggest_faq_answers_response\030\003 \001(\01325.google.cloud" - + ".dialogflow.v2.SuggestFaqAnswersResponseH\000\022a\n" - + "\036suggest_smart_replies_response\030\004 \001" - + "(\01327.google.cloud.dialogflow.v2.SuggestSmartRepliesResponseH\000\022`\n" - + "\035generate_suggestions_response\030\t \001(\01327.google.cloud.dial" - + "ogflow.v2.GenerateSuggestionsResponseH\000B\025\n" + + "\034suggest_faq_answers_response\030\003 \001(\01325.google.clou" + + "d.dialogflow.v2.SuggestFaqAnswersResponseH\000\022a\n" + + "\036suggest_smart_replies_response\030\004 " + + "\001(\01327.google.cloud.dialogflow.v2.SuggestSmartRepliesResponseH\000\022`\n" + + "\035generate_suggestions_response\030\t \001(\01327.google.cloud.dia" + + "logflow.v2.GenerateSuggestionsResponseH\000B\025\n" + "\023suggestion_response\"-\n" + "\017InputTextConfig\022\032\n\r" + "language_code\030\001 \001(\tB\003\340A\002\"j\n" @@ -512,18 +538,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017SuggestionInput\022\032\n\r" + "answer_record\030\001 \001(\tB\003\340A\002\0220\n\n" + "parameters\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\001\022G\n" - + "\006action\030\005 " - + "\001(\01622.google.cloud.dialogflow.v2.SuggestionInput.ActionB\003\340A\001\0222\n" + + "\006action\030\005" + + " \001(\01622.google.cloud.dialogflow.v2.SuggestionInput.ActionB\003\340A\001\0222\n" + "\tsend_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"E\n" + "\006Action\022\026\n" + "\022ACTION_UNSPECIFIED\020\000\022\n\n" - + "\006CANCEL\020\001\022\n" - + "\n" + + "\006CANCEL\020\001\022\n\n" + "\006REVISE\020\002\022\013\n" + "\007CONFIRM\020\003\"\315\001\n" + "\025AssistQueryParameters\022s\n" - + "\032documents_metadata_filters\030\001 \003(\0132O.google.cloud.dialogflow.v2.Assis" - + "tQueryParameters.DocumentsMetadataFiltersEntry\032?\n" + + "\032documents_metadata_filters\030\001 \003(\0132O.google.cloud.dialogflow.v2.Assi" + + "stQueryParameters.DocumentsMetadataFiltersEntry\032?\n" + "\035DocumentsMetadataFiltersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\343\001\n" @@ -538,95 +563,201 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027knowledge_assist_answer\030\001" + " \001(\01321.google.cloud.dialogflow.v2.KnowledgeAssistAnswerB\003\340A\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" - + "\014context_size\030\003 \001(\005\"\233\006\n" + + "\014context_size\030\003 \001(\005\"\271\005\n" + + "!IngestedContextReferenceDebugInfo\022\037\n" + + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + + "\033context_reference_retrieved\030\002 \001(\010\022\200\001\n" + + "\036ingested_parameters_debug_info\030\003 \003(\0132X.google.cloud.dia" + + "logflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo\032\312\003\n" + + "\032IngestedParameterDebugInfo\022\021\n" + + "\tparameter\030\001 \001(\t\022\202\001\n" + + "\020ingestion_status\030\002 \001(\0162h.google.cl" + + "oud.dialogflow.v2.IngestedContextReferen" + + "ceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\017IngestionStatus\022 \n" + + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" + + "&INGESTION_STATUS_CONTEXT_NOT_AVAILABLE\020\002\022!\n" + + "\035INGESTION_STATUS_PARSE_FAILED\020\003\022\"\n" + + "\036INGESTION_STATUS_INVALID_ENTRY\020\004\022#\n" + + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\227\002\n" + + "\016ServiceLatency\022e\n" + + "\032internal_service_latencies\030\001 \003(\0132A.google.clo" + + "ud.dialogflow.v2.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\026InternalServiceLatency\022\014\n" + + "\004step\030\001 \001(\t\022\022\n\n" + + "latency_ms\030\002 \001(\002\022.\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\364\017\n" + + "\030KnowledgeAssistDebugInfo\022z\n" + + "\037query_generation_failure_reason\030\001" + + " \001(\0162Q.google.cloud.dialogflow.v2.Knowle" + + "dgeAssistDebugInfo.QueryGenerationFailureReason\022\202\001\n" + + "#query_categorization_failure_reason\030\002 \001(\0162U.google.cloud.dialogflow." + + "v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022V\n" + + "\031datastore_response_reason\030\003" + + " \001(\01623.google.cloud.dialogflow.v2.DatastoreResponseReason\022o\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132L.google.cloud.d" + + "ialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022l\n" + + "%ingested_context_reference_debug_info\030\005 \001(\0132=.google.cl" + + "oud.dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" + + "\017service_latency\030\006 \001(\0132*.g" + + "oogle.cloud.dialogflow.v2.ServiceLatency\032\271\005\n" + + "\027KnowledgeAssistBehavior\022%\n" + + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + + "\032end_user_metadata_included\030\002 \001(\010\022\031\n" + + "\021return_query_only\030\004 \001(\010\022\033\n" + + "\023use_pubsub_delivery\030\005 \001(\010\022\035\n" + + "\025disable_sync_delivery\030\006 \001(\010\022!\n" + + "\031previous_queries_included\030\007 \001(\010\022\036\n" + + "\026use_translated_message\030\010 \001(\010\022&\n" + + "\036use_custom_safety_filter_level\030\t \001(\010\0223\n" + + "+conversation_transcript_has_mixed_languages\030\n" + + " \001(\010\0220\n" + + "(query_generation_agent_language_mismatch\030\013 \001(\010\0223\n" + + "+query_generation_end_user_language_mismatch\030\014 \001(\010\022%\n" + + "\035third_party_connector_allowed\030\r" + + " \001(\010\022\"\n" + + "\032multiple_queries_generated\030\016 \001(\010\022&\n" + + "\036query_contained_search_context\030\017 \001(\010\022.\n" + + "&invalid_items_query_suggestion_skipped\030\020 \001(\010\022+\n" + + "#primary_query_redacted_and_replaced\030\021 \001(\010\022%\n" + + "\035appended_search_context_count\030\022 \001(\005\"\317\003\n" + + "\034QueryGenerationFailureReason\022/\n" + + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" + + "\027QUERY_GENERATION_FAILED\020\002\022\'\n" + + "#QUERY_GENERATION_NO_QUERY_GENERATED\020\003\022\037\n" + + "\033QUERY_GENERATION_RAI_FAILED\020\004\022\024\n" + + "\020NOT_IN_ALLOWLIST\020\005\022#\n" + + "\037QUERY_GENERATION_QUERY_REDACTED\020\006\022.\n" + + "*QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED\020\n" + + "\022\'\n" + + "#QUERY_GENERATION_EMPTY_CONVERSATION\020\013\022\'\n" + + "#QUERY_GENERATION_EMPTY_LAST_MESSAGE\020\014\0227\n" + + "3QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET\020\r" + + "\"\314\001\n" + + " QueryCategorizationFailureReason\0223\n" + + "/QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED\020\000\022\'\n" + + "#QUERY_CATEGORIZATION_INVALID_CONFIG\020\001\022)\n" + + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" + + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\366\006\n" + "\025KnowledgeAssistAnswer\022Y\n" - + "\017suggested_query\030\001 \001" - + "(\0132@.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" - + "\026suggested_query_answer\030\002 \001(\0132A.google.cloud.dial" - + "ogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" - + "answer_record\030\003 \001(\t\032$\n" + + "\017suggested_query\030\001 \001(\0132@.google.cloud." + + "dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" + + "\026suggested_query_answer\030\002 \001" + + "(\0132A.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "answer_record\030\003 \001(\t\022Y\n" + + "\033knowledge_assist_debug_info\030\007" + + " \001(\01324.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo\032$\n" + "\016SuggestedQuery\022\022\n\n" + "query_text\030\001 \001(\t\032\206\004\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022a\n\n" - + "faq_source\030\003 \001(\0132K.google.cloud.dialogflow.v2.K" - + "nowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" - + "\021generative_source\030\004 \001(\0132R.google.cloud.dialogflow.v2.KnowledgeAssist" - + "Answer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132K.google.cloud.dialogflow.v2.Knowledg" + + "eAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" + + "\021generative_source\030\004 \001(\0132R.google.cl" + + "oud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\340\001\n" + "\020GenerativeSource\022l\n" - + "\010snippets\030\001 \003(\0132Z.google.cloud.dialogflow.v2.KnowledgeAssistAnsw" - + "er.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132Z.google.cloud." + + "dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" + "\005title\030\004 \001(\t\022)\n" + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" - + "\006source2\372\030\n" + + "\006source*\326\002\n" + + "\027DatastoreResponseReason\022)\n" + + "%DATASTORE_RESPONSE_REASON_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\027\n" + + "\023SEARCH_OUT_OF_QUOTA\020\002\022\030\n" + + "\024SEARCH_EMPTY_RESULTS\020\003\022%\n" + + "!ANSWER_GENERATION_GEN_AI_DISABLED\020\004\022\"\n" + + "\036ANSWER_GENERATION_OUT_OF_QUOTA\020\005\022\033\n" + + "\027ANSWER_GENERATION_ERROR\020\006\022%\n" + + "!ANSWER_GENERATION_NOT_ENOUGH_INFO\020\007\022 \n" + + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\372\030\n" + "\014Participants\022\245\002\n" - + "\021CreateParticipant\0224.google.cloud.dialogflow.v2.CreateParticipantReque" - + "st\032\'.google.cloud.dialogflow.v2.Particip" - + "ant\"\260\001\332A\022parent,participant\202\323\344\223\002\224\001\"4/v2/" - + "{parent=projects/*/conversations/*}/participants:\013participantZO\"@/v2/{parent=pro" - + "jects/*/locations/*/conversations/*}/participants:\013participant\022\366\001\n" - + "\016GetParticipant\0221.google.cloud.dialogflow.v2.GetPartic" - + "ipantRequest\032\'.google.cloud.dialogflow.v" - + "2.Participant\"\207\001\332A\004name\202\323\344\223\002z\0224/v2/{name" - + "=projects/*/conversations/*/participants" - + "/*}ZB\022@/v2/{name=projects/*/locations/*/conversations/*/participants/*}\022\211\002\n" - + "\020ListParticipants\0223.google.cloud.dialogflow.v" - + "2.ListParticipantsRequest\0324.google.cloud.dialogflow.v2.ListParticipantsResponse\"" - + "\211\001\332A\006parent\202\323\344\223\002z\0224/v2/{parent=projects/" - + "*/conversations/*}/participantsZB\022@/v2/{" - + "parent=projects/*/locations/*/conversations/*}/participants\022\302\002\n" - + "\021UpdateParticipant\0224.google.cloud.dialogflow.v2.UpdatePar" - + "ticipantRequest\032\'.google.cloud.dialogflo" - + "w.v2.Participant\"\315\001\332A\027participant,update" - + "_mask\202\323\344\223\002\254\0012@/v2/{participant.name=proj" - + "ects/*/conversations/*/participants/*}:\013participantZ[2L/v2/{participant.name=pro" - + "jects/*/locations/*/conversations/*/participants/*}:\013participant\022\372\002\n" - + "\016AnalyzeContent\0221.google.cloud.dialogflow.v2.Analyze" - + "ContentRequest\0322.google.cloud.dialogflow" - + ".v2.AnalyzeContentResponse\"\200\002\332A\026particip" - + "ant,text_input\332A\027participant,event_input" - + "\332A\027participant,audio_input\202\323\344\223\002\254\001\"J/v2/{" - + "participant=projects/*/conversations/*/participants/*}:analyzeContent:\001*Z[\"V/v2/" - + "{participant=projects/*/locations/*/conv" - + "ersations/*/participants/*}:analyzeContent:\001*\022\230\001\n" - + "\027StreamingAnalyzeContent\022:.google.cloud.dialogflow.v2.StreamingAnalyzeC" - + "ontentRequest\032;.google.cloud.dialogflow." - + "v2.StreamingAnalyzeContentResponse\"\000(\0010\001\022\311\002\n" - + "\017SuggestArticles\0222.google.cloud.dialogflow.v2.SuggestArticlesRequest\0323.googl" - + "e.cloud.dialogflow.v2.SuggestArticlesRes" - + "ponse\"\314\001\332A\006parent\202\323\344\223\002\274\001\"R/v2/{parent=pr" - + "ojects/*/conversations/*/participants/*}/suggestions:suggestArticles:\001*Zc\"^/v2/{" - + "parent=projects/*/locations/*/conversati" - + "ons/*/participants/*}/suggestions:suggestArticles:\001*\022\323\002\n" - + "\021SuggestFaqAnswers\0224.google.cloud.dialogflow.v2.SuggestFaqAnswer" - + "sRequest\0325.google.cloud.dialogflow.v2.Su" - + "ggestFaqAnswersResponse\"\320\001\332A\006parent\202\323\344\223\002" - + "\300\001\"T/v2/{parent=projects/*/conversations" - + "/*/participants/*}/suggestions:suggestFaqAnswers:\001*Ze\"`/v2/{parent=projects/*/lo" - + "cations/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\001*\022\335\002\n" - + "\023SuggestSmartReplies\0226.google.cloud.dialog" - + "flow.v2.SuggestSmartRepliesRequest\0327.google.cloud.dialogflow.v2.SuggestSmartRepl" - + "iesResponse\"\324\001\332A\006parent\202\323\344\223\002\304\001\"V/v2/{par" - + "ent=projects/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\001" - + "*Zg\"b/v2/{parent=projects/*/locations/*/" - + "conversations/*/participants/*}/suggestions:suggestSmartReplies:\001*\022\343\002\n" - + "\026SuggestKnowledgeAssist\0229.google.cloud.dialogflow." - + "v2.SuggestKnowledgeAssistRequest\032:.google.cloud.dialogflow.v2.SuggestKnowledgeAs" - + "sistResponse\"\321\001\202\323\344\223\002\312\001\"Y/v2/{parent=proj" - + "ects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*Zj\"e" - + "/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:s" - + "uggestKnowledgeAssist:\001*\032x\312A\031dialogflow." - + "googleapis.com\322AYhttps://www.googleapis." - + "com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\226\001\n" - + "\036com.google.cloud.dialogflow.v2B\020ParticipantProtoP" - + "\001Z>cloud.google.com/go/dialogflow/apiv2/" - + "dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google." - + "Cloud.Dialogflow.V2b\006proto3" + + "\021CreateParticipant\0224.google.cloud.dialogflow.v2.Crea" + + "teParticipantRequest\032\'.google.cloud.dial" + + "ogflow.v2.Participant\"\260\001\332A\022parent,partic" + + "ipant\202\323\344\223\002\224\001\"4/v2/{parent=projects/*/con" + + "versations/*}/participants:\013participantZO\"@/v2/{parent=projects/*/locations/*/co" + + "nversations/*}/participants:\013participant\022\366\001\n" + + "\016GetParticipant\0221.google.cloud.dialogflow.v2.GetParticipantRequest\032\'.google." + + "cloud.dialogflow.v2.Participant\"\207\001\332A\004nam" + + "e\202\323\344\223\002z\0224/v2/{name=projects/*/conversati" + + "ons/*/participants/*}ZB\022@/v2/{name=proje" + + "cts/*/locations/*/conversations/*/participants/*}\022\211\002\n" + + "\020ListParticipants\0223.google.cloud.dialogflow.v2.ListParticipantsRequ" + + "est\0324.google.cloud.dialogflow.v2.ListPar" + + "ticipantsResponse\"\211\001\332A\006parent\202\323\344\223\002z\0224/v2" + + "/{parent=projects/*/conversations/*}/participantsZB\022@/v2/{parent=projects/*/loca" + + "tions/*/conversations/*}/participants\022\302\002\n" + + "\021UpdateParticipant\0224.google.cloud.dialo" + + "gflow.v2.UpdateParticipantRequest\032\'.goog" + + "le.cloud.dialogflow.v2.Participant\"\315\001\332A\027" + + "participant,update_mask\202\323\344\223\002\254\0012@/v2/{par" + + "ticipant.name=projects/*/conversations/*/participants/*}:\013participantZ[2L/v2/{pa" + + "rticipant.name=projects/*/locations/*/co" + + "nversations/*/participants/*}:\013participant\022\372\002\n" + + "\016AnalyzeContent\0221.google.cloud.dialogflow.v2.AnalyzeContentRequest\0322.googl" + + "e.cloud.dialogflow.v2.AnalyzeContentResp" + + "onse\"\200\002\332A\026participant,text_input\332A\027parti" + + "cipant,event_input\332A\027participant,audio_i" + + "nput\202\323\344\223\002\254\001\"J/v2/{participant=projects/*" + + "/conversations/*/participants/*}:analyzeContent:\001*Z[\"V/v2/{participant=projects/" + + "*/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\230\001\n" + + "\027StreamingAnalyzeContent\022:.google.cloud.dialogflow.v2", + ".StreamingAnalyzeContentRequest\032;.google" + + ".cloud.dialogflow.v2.StreamingAnalyzeCon" + + "tentResponse\"\000(\0010\001\022\311\002\n\017SuggestArticles\0222" + + ".google.cloud.dialogflow.v2.SuggestArtic" + + "lesRequest\0323.google.cloud.dialogflow.v2." + + "SuggestArticlesResponse\"\314\001\332A\006parent\202\323\344\223\002" + + "\274\001\"R/v2/{parent=projects/*/conversations" + + "/*/participants/*}/suggestions:suggestAr" + + "ticles:\001*Zc\"^/v2/{parent=projects/*/loca" + + "tions/*/conversations/*/participants/*}/" + + "suggestions:suggestArticles:\001*\022\323\002\n\021Sugge" + + "stFaqAnswers\0224.google.cloud.dialogflow.v" + + "2.SuggestFaqAnswersRequest\0325.google.clou" + + "d.dialogflow.v2.SuggestFaqAnswersRespons" + + "e\"\320\001\332A\006parent\202\323\344\223\002\300\001\"T/v2/{parent=projec" + + "ts/*/conversations/*/participants/*}/sug" + + "gestions:suggestFaqAnswers:\001*Ze\"`/v2/{pa" + + "rent=projects/*/locations/*/conversation" + + "s/*/participants/*}/suggestions:suggestF" + + "aqAnswers:\001*\022\335\002\n\023SuggestSmartReplies\0226.g" + + "oogle.cloud.dialogflow.v2.SuggestSmartRe" + + "pliesRequest\0327.google.cloud.dialogflow.v" + + "2.SuggestSmartRepliesResponse\"\324\001\332A\006paren" + + "t\202\323\344\223\002\304\001\"V/v2/{parent=projects/*/convers" + + "ations/*/participants/*}/suggestions:sug" + + "gestSmartReplies:\001*Zg\"b/v2/{parent=proje" + + "cts/*/locations/*/conversations/*/partic" + + "ipants/*}/suggestions:suggestSmartReplie" + + "s:\001*\022\343\002\n\026SuggestKnowledgeAssist\0229.google" + + ".cloud.dialogflow.v2.SuggestKnowledgeAss" + + "istRequest\032:.google.cloud.dialogflow.v2." + + "SuggestKnowledgeAssistResponse\"\321\001\202\323\344\223\002\312\001" + + "\"Y/v2/{parent=projects/*/conversations/*" + + "/participants/*}/suggestions:suggestKnow" + + "ledgeAssist:\001*Zj\"e/v2/{parent=projects/*" + + "/locations/*/conversations/*/participant" + + "s/*}/suggestions:suggestKnowledgeAssist:" + + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/dialog" + + "flowB\226\001\n\036com.google.cloud.dialogflow.v2B" + + "\020ParticipantProtoP\001Z>cloud.google.com/go" + + "/dialogflow/apiv2/dialogflowpb;dialogflo" + + "wpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -779,6 +910,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CxParameters", "EnableExtendedStreaming", "EnablePartialAutomatedAgentReply", + "OutputMultipleUtterances", "EnableDebuggingInfo", "Config", "Input", @@ -1027,13 +1159,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "KnowledgeAssistAnswer", "LatestMessage", "ContextSize", }); - internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor = getDescriptor().getMessageType(35); + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor, + new java.lang.String[] { + "ProjectNotAllowlisted", "ContextReferenceRetrieved", "IngestedParametersDebugInfo", + }); + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor = + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor, + new java.lang.String[] { + "Parameter", "IngestionStatus", + }); + internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor, + new java.lang.String[] { + "InternalServiceLatencies", + }); + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor = + internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor.getNestedType(0); + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor, + new java.lang.String[] { + "Step", "LatencyMs", "StartTime", "CompleteTime", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor, + new java.lang.String[] { + "QueryGenerationFailureReason", + "QueryCategorizationFailureReason", + "DatastoreResponseReason", + "KnowledgeAssistBehavior", + "IngestedContextReferenceDebugInfo", + "ServiceLatency", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor, + new java.lang.String[] { + "AnswerGenerationRewriterOn", + "EndUserMetadataIncluded", + "ReturnQueryOnly", + "UsePubsubDelivery", + "DisableSyncDelivery", + "PreviousQueriesIncluded", + "UseTranslatedMessage", + "UseCustomSafetyFilterLevel", + "ConversationTranscriptHasMixedLanguages", + "QueryGenerationAgentLanguageMismatch", + "QueryGenerationEndUserLanguageMismatch", + "ThirdPartyConnectorAllowed", + "MultipleQueriesGenerated", + "QueryContainedSearchContext", + "InvalidItemsQuerySuggestionSkipped", + "PrimaryQueryRedactedAndReplaced", + "AppendedSearchContextCount", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor = + getDescriptor().getMessageType(38); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor, new java.lang.String[] { - "SuggestedQuery", "SuggestedQueryAnswer", "AnswerRecord", + "SuggestedQuery", "SuggestedQueryAnswer", "AnswerRecord", "KnowledgeAssistDebugInfo", }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor = internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor.getNestedType( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfo.java new file mode 100644 index 000000000000..a513a55f38f0 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfo.java @@ -0,0 +1,2306 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                  + * Debug information related to SearchKnowledge feature.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo} + */ +@com.google.protobuf.Generated +public final class SearchKnowledgeDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + SearchKnowledgeDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchKnowledgeDebugInfo"); + } + + // Use SearchKnowledgeDebugInfo.newBuilder() to construct. + private SearchKnowledgeDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchKnowledgeDebugInfo() { + datastoreResponseReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.class, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder.class); + } + + public interface SearchKnowledgeBehaviorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + boolean getAnswerGenerationRewriterOn(); + + /** + * + * + *
                                                                                                                                  +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + boolean getEndUserMetadataIncluded(); + + /** + * + * + *
                                                                                                                                  +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +     * project. Note that this field only indicates if the project is
                                                                                                                                  +     * allowlisted for connectors.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + boolean getThirdPartyConnectorAllowed(); + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior} + */ + public static final class SearchKnowledgeBehavior extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + SearchKnowledgeBehaviorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchKnowledgeBehavior"); + } + + // Use SearchKnowledgeBehavior.newBuilder() to construct. + private SearchKnowledgeBehavior(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchKnowledgeBehavior() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.class, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder.class); + } + + public static final int ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER = 1; + private boolean answerGenerationRewriterOn_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + public static final int END_USER_METADATA_INCLUDED_FIELD_NUMBER = 2; + private boolean endUserMetadataIncluded_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + public static final int THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER = 4; + private boolean thirdPartyConnectorAllowed_ = false; + + /** + * + * + *
                                                                                                                                  +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +     * project. Note that this field only indicates if the project is
                                                                                                                                  +     * allowlisted for connectors.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + 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 (answerGenerationRewriterOn_ != false) { + output.writeBool(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + output.writeBool(2, endUserMetadataIncluded_); + } + if (thirdPartyConnectorAllowed_ != false) { + output.writeBool(4, thirdPartyConnectorAllowed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answerGenerationRewriterOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, endUserMetadataIncluded_); + } + if (thirdPartyConnectorAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, thirdPartyConnectorAllowed_); + } + 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.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior other = + (com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) obj; + + if (getAnswerGenerationRewriterOn() != other.getAnswerGenerationRewriterOn()) return false; + if (getEndUserMetadataIncluded() != other.getEndUserMetadataIncluded()) return false; + if (getThirdPartyConnectorAllowed() != other.getThirdPartyConnectorAllowed()) 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) + ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerGenerationRewriterOn()); + hash = (37 * hash) + END_USER_METADATA_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndUserMetadataIncluded()); + hash = (37 * hash) + THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThirdPartyConnectorAllowed()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + 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.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + 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.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .class, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerGenerationRewriterOn_ = false; + endUserMetadataIncluded_ = false; + thirdPartyConnectorAllowed_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + build() { + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + buildPartial() { + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior result = + new com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerGenerationRewriterOn_ = answerGenerationRewriterOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endUserMetadataIncluded_ = endUserMetadataIncluded_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thirdPartyConnectorAllowed_ = thirdPartyConnectorAllowed_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior other) { + if (other + == com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance()) return this; + if (other.getAnswerGenerationRewriterOn() != false) { + setAnswerGenerationRewriterOn(other.getAnswerGenerationRewriterOn()); + } + if (other.getEndUserMetadataIncluded() != false) { + setEndUserMetadataIncluded(other.getEndUserMetadataIncluded()); + } + if (other.getThirdPartyConnectorAllowed() != false) { + setThirdPartyConnectorAllowed(other.getThirdPartyConnectorAllowed()); + } + 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 8: + { + answerGenerationRewriterOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endUserMetadataIncluded_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + thirdPartyConnectorAllowed_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + 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 boolean answerGenerationRewriterOn_; + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @param value The answerGenerationRewriterOn to set. + * @return This builder for chaining. + */ + public Builder setAnswerGenerationRewriterOn(boolean value) { + + answerGenerationRewriterOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerGenerationRewriterOn() { + bitField0_ = (bitField0_ & ~0x00000001); + answerGenerationRewriterOn_ = false; + onChanged(); + return this; + } + + private boolean endUserMetadataIncluded_; + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @param value The endUserMetadataIncluded to set. + * @return This builder for chaining. + */ + public Builder setEndUserMetadataIncluded(boolean value) { + + endUserMetadataIncluded_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndUserMetadataIncluded() { + bitField0_ = (bitField0_ & ~0x00000002); + endUserMetadataIncluded_ = false; + onChanged(); + return this; + } + + private boolean thirdPartyConnectorAllowed_; + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project. Note that this field only indicates if the project is
                                                                                                                                  +       * allowlisted for connectors.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project. Note that this field only indicates if the project is
                                                                                                                                  +       * allowlisted for connectors.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @param value The thirdPartyConnectorAllowed to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyConnectorAllowed(boolean value) { + + thirdPartyConnectorAllowed_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project. Note that this field only indicates if the project is
                                                                                                                                  +       * allowlisted for connectors.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyConnectorAllowed() { + bitField0_ = (bitField0_ & ~0x00000004); + thirdPartyConnectorAllowed_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + private static final com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior(); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchKnowledgeBehavior 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.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 1; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2.DatastoreResponseReason.forNumber(datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int SEARCH_KNOWLEDGE_BEHAVIOR_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + searchKnowledgeBehavior_; + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + @java.lang.Override + public boolean hasSearchKnowledgeBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior() { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder() { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.ServiceLatency serviceLatency_; + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + 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 (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSearchKnowledgeBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getServiceLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSearchKnowledgeBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceLatency()); + } + 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.dialogflow.v2.SearchKnowledgeDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo other = + (com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) obj; + + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasSearchKnowledgeBehavior() != other.hasSearchKnowledgeBehavior()) return false; + if (hasSearchKnowledgeBehavior()) { + if (!getSearchKnowledgeBehavior().equals(other.getSearchKnowledgeBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) 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) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasSearchKnowledgeBehavior()) { + hash = (37 * hash) + SEARCH_KNOWLEDGE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getSearchKnowledgeBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo 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.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo 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.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.SearchKnowledgeDebugInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to SearchKnowledge feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.class, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSearchKnowledgeBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datastoreResponseReason_ = 0; + searchKnowledgeBehavior_ = null; + if (searchKnowledgeBehaviorBuilder_ != null) { + searchKnowledgeBehaviorBuilder_.dispose(); + searchKnowledgeBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo build() { + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo result = + new com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchKnowledgeBehavior_ = + searchKnowledgeBehaviorBuilder_ == null + ? searchKnowledgeBehavior_ + : searchKnowledgeBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo other) { + if (other == com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance()) + return this; + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasSearchKnowledgeBehavior()) { + mergeSearchKnowledgeBehavior(other.getSearchKnowledgeBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + 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 8: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetSearchKnowledgeBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + datastoreResponseReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000001); + datastoreResponseReason_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + searchKnowledgeBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder> + searchKnowledgeBehaviorBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + public boolean hasSearchKnowledgeBehavior() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior() { + if (searchKnowledgeBehaviorBuilder_ == null) { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } else { + return searchKnowledgeBehaviorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder setSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior value) { + if (searchKnowledgeBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchKnowledgeBehavior_ = value; + } else { + searchKnowledgeBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder setSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder + builderForValue) { + if (searchKnowledgeBehaviorBuilder_ == null) { + searchKnowledgeBehavior_ = builderForValue.build(); + } else { + searchKnowledgeBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder mergeSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior value) { + if (searchKnowledgeBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && searchKnowledgeBehavior_ != null + && searchKnowledgeBehavior_ + != com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance()) { + getSearchKnowledgeBehaviorBuilder().mergeFrom(value); + } else { + searchKnowledgeBehavior_ = value; + } + } else { + searchKnowledgeBehaviorBuilder_.mergeFrom(value); + } + if (searchKnowledgeBehavior_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder clearSearchKnowledgeBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + searchKnowledgeBehavior_ = null; + if (searchKnowledgeBehaviorBuilder_ != null) { + searchKnowledgeBehaviorBuilder_.dispose(); + searchKnowledgeBehaviorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder + getSearchKnowledgeBehaviorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSearchKnowledgeBehaviorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder() { + if (searchKnowledgeBehaviorBuilder_ != null) { + return searchKnowledgeBehaviorBuilder_.getMessageOrBuilder(); + } else { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder> + internalGetSearchKnowledgeBehaviorFieldBuilder() { + if (searchKnowledgeBehaviorBuilder_ == null) { + searchKnowledgeBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder>( + getSearchKnowledgeBehavior(), getParentForChildren(), isClean()); + searchKnowledgeBehavior_ = null; + } + return searchKnowledgeBehaviorBuilder_; + } + + private com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2.ServiceLatency serviceLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + public com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } else { + return serviceLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public Builder setServiceLatency(com.google.cloud.dialogflow.v2.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceLatency_ = value; + } else { + serviceLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); + } else { + serviceLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); + } else { + serviceLatency_ = value; + } + } else { + serviceLatencyBuilder_.mergeFrom(value); + } + if (serviceLatency_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); + } else { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; + } + return serviceLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + private static final com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchKnowledgeDebugInfo 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.dialogflow.v2.SearchKnowledgeDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfoOrBuilder.java new file mode 100644 index 000000000000..055fc6a1231b --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfoOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface SearchKnowledgeDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + int getDatastoreResponseReasonValue(); + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * @return The datastoreResponseReason. + */ + com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + boolean hasSearchKnowledgeBehavior(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + boolean hasIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + boolean hasServiceLatency(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponse.java index d6b1afb351ca..c33b57c07827 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponse.java @@ -72,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2.SearchKnowledgeResponse.Builder.class); } + private int bitField0_; public static final int ANSWERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -207,6 +208,63 @@ public com.google.protobuf.ByteString getRewrittenQueryBytes() { } } + public static final int SEARCH_KNOWLEDGE_DEBUG_INFO_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo searchKnowledgeDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + @java.lang.Override + public boolean hasSearchKnowledgeDebugInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getSearchKnowledgeDebugInfo() { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder() { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -227,6 +285,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, rewrittenQuery_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSearchKnowledgeDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -242,6 +303,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rewrittenQuery_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getSearchKnowledgeDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -260,6 +326,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAnswersList().equals(other.getAnswersList())) return false; if (!getRewrittenQuery().equals(other.getRewrittenQuery())) return false; + if (hasSearchKnowledgeDebugInfo() != other.hasSearchKnowledgeDebugInfo()) return false; + if (hasSearchKnowledgeDebugInfo()) { + if (!getSearchKnowledgeDebugInfo().equals(other.getSearchKnowledgeDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,6 +347,10 @@ public int hashCode() { } hash = (37 * hash) + REWRITTEN_QUERY_FIELD_NUMBER; hash = (53 * hash) + getRewrittenQuery().hashCode(); + if (hasSearchKnowledgeDebugInfo()) { + hash = (37 * hash) + SEARCH_KNOWLEDGE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSearchKnowledgeDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -409,10 +483,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.v2.SearchKnowledgeResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAnswersFieldBuilder(); + internalGetSearchKnowledgeDebugInfoFieldBuilder(); + } } @java.lang.Override @@ -427,6 +511,11 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); rewrittenQuery_ = ""; + searchKnowledgeDebugInfo_ = null; + if (searchKnowledgeDebugInfoBuilder_ != null) { + searchKnowledgeDebugInfoBuilder_.dispose(); + searchKnowledgeDebugInfoBuilder_ = null; + } return this; } @@ -480,6 +569,15 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.SearchKnowledgeRespons if (((from_bitField0_ & 0x00000002) != 0)) { result.rewrittenQuery_ = rewrittenQuery_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchKnowledgeDebugInfo_ = + searchKnowledgeDebugInfoBuilder_ == null + ? searchKnowledgeDebugInfo_ + : searchKnowledgeDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -527,6 +625,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SearchKnowledgeResponse bitField0_ |= 0x00000002; onChanged(); } + if (other.hasSearchKnowledgeDebugInfo()) { + mergeSearchKnowledgeDebugInfo(other.getSearchKnowledgeDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -573,6 +674,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 34: + { + input.readMessage( + internalGetSearchKnowledgeDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1095,6 +1204,215 @@ public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo searchKnowledgeDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder> + searchKnowledgeDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + public boolean hasSearchKnowledgeDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getSearchKnowledgeDebugInfo() { + if (searchKnowledgeDebugInfoBuilder_ == null) { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } else { + return searchKnowledgeDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder setSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo value) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchKnowledgeDebugInfo_ = value; + } else { + searchKnowledgeDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder setSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder builderForValue) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + searchKnowledgeDebugInfo_ = builderForValue.build(); + } else { + searchKnowledgeDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder mergeSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo value) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && searchKnowledgeDebugInfo_ != null + && searchKnowledgeDebugInfo_ + != com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance()) { + getSearchKnowledgeDebugInfoBuilder().mergeFrom(value); + } else { + searchKnowledgeDebugInfo_ = value; + } + } else { + searchKnowledgeDebugInfoBuilder_.mergeFrom(value); + } + if (searchKnowledgeDebugInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder clearSearchKnowledgeDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + searchKnowledgeDebugInfo_ = null; + if (searchKnowledgeDebugInfoBuilder_ != null) { + searchKnowledgeDebugInfoBuilder_.dispose(); + searchKnowledgeDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder + getSearchKnowledgeDebugInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSearchKnowledgeDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder() { + if (searchKnowledgeDebugInfoBuilder_ != null) { + return searchKnowledgeDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder> + internalGetSearchKnowledgeDebugInfoFieldBuilder() { + if (searchKnowledgeDebugInfoBuilder_ == null) { + searchKnowledgeDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder>( + getSearchKnowledgeDebugInfo(), getParentForChildren(), isClean()); + searchKnowledgeDebugInfo_ = null; + } + return searchKnowledgeDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SearchKnowledgeResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponseOrBuilder.java index ca3076de2dc9..9ce2bcc97ac6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponseOrBuilder.java @@ -112,4 +112,45 @@ public interface SearchKnowledgeResponseOrBuilder * @return The bytes for rewrittenQuery. */ com.google.protobuf.ByteString getRewrittenQueryBytes(); + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + boolean hasSearchKnowledgeDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getSearchKnowledgeDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatency.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatency.java new file mode 100644 index 000000000000..f01cdd4e2554 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatency.java @@ -0,0 +1,2382 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                  + * Message to represent the latency of the service.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.ServiceLatency} + */ +@com.google.protobuf.Generated +public final class ServiceLatency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ServiceLatency) + ServiceLatencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ServiceLatency"); + } + + // Use ServiceLatency.newBuilder() to construct. + private ServiceLatency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceLatency() { + internalServiceLatencies_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ServiceLatency.class, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder.class); + } + + public interface InternalServiceLatencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * The name of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string step = 1; + * + * @return The step. + */ + java.lang.String getStep(); + + /** + * + * + *
                                                                                                                                  +     * The name of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string step = 1; + * + * @return The bytes for step. + */ + com.google.protobuf.ByteString getStepBytes(); + + /** + * + * + *
                                                                                                                                  +     * The latency of the internal service in milliseconds.
                                                                                                                                  +     * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + float getLatencyMs(); + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + boolean hasCompleteTime(); + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + com.google.protobuf.Timestamp getCompleteTime(); + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + } + + /** + * + * + *
                                                                                                                                  +   * Message to represent the latency of an internal service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency} + */ + public static final class InternalServiceLatency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + InternalServiceLatencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InternalServiceLatency"); + } + + // Use InternalServiceLatency.newBuilder() to construct. + private InternalServiceLatency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InternalServiceLatency() { + step_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.class, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder.class); + } + + private int bitField0_; + public static final int STEP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object step_ = ""; + + /** + * + * + *
                                                                                                                                  +     * The name of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string step = 1; + * + * @return The step. + */ + @java.lang.Override + public java.lang.String getStep() { + java.lang.Object ref = step_; + 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(); + step_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +     * The name of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string step = 1; + * + * @return The bytes for step. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATENCY_MS_FIELD_NUMBER = 2; + private float latencyMs_ = 0F; + + /** + * + * + *
                                                                                                                                  +     * The latency of the internal service in milliseconds.
                                                                                                                                  +     * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + @java.lang.Override + public float getLatencyMs() { + return latencyMs_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int COMPLETE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp completeTime_; + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + 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.GeneratedMessage.isStringEmpty(step_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, step_); + } + if (java.lang.Float.floatToRawIntBits(latencyMs_) != 0) { + output.writeFloat(2, latencyMs_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCompleteTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(step_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, step_); + } + if (java.lang.Float.floatToRawIntBits(latencyMs_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, latencyMs_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompleteTime()); + } + 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.dialogflow.v2.ServiceLatency.InternalServiceLatency)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency other = + (com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) obj; + + if (!getStep().equals(other.getStep())) return false; + if (java.lang.Float.floatToIntBits(getLatencyMs()) + != java.lang.Float.floatToIntBits(other.getLatencyMs())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) 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) + STEP_FIELD_NUMBER; + hash = (53 * hash) + getStep().hashCode(); + hash = (37 * hash) + LATENCY_MS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLatencyMs()); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency 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.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency 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.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.ServiceLatency.InternalServiceLatency 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Message to represent the latency of an internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.class, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetCompleteTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + step_ = ""; + latencyMs_ = 0F; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency build() { + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency buildPartial() { + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency result = + new com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.latencyMs_ = latencyMs_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency other) { + if (other + == com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .getDefaultInstance()) return this; + if (!other.getStep().isEmpty()) { + step_ = other.step_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getLatencyMs()) != 0) { + setLatencyMs(other.getLatencyMs()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + 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: + { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + latencyMs_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 step_ = ""; + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @return The step. + */ + public java.lang.String getStep() { + java.lang.Object ref = step_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + step_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @return The bytes for step. + */ + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + step_ = getDefaultInstance().getStep(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @param value The bytes for step to set. + * @return This builder for chaining. + */ + public Builder setStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float latencyMs_; + + /** + * + * + *
                                                                                                                                  +       * The latency of the internal service in milliseconds.
                                                                                                                                  +       * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + @java.lang.Override + public float getLatencyMs() { + return latencyMs_; + } + + /** + * + * + *
                                                                                                                                  +       * The latency of the internal service in milliseconds.
                                                                                                                                  +       * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @param value The latencyMs to set. + * @return This builder for chaining. + */ + public Builder setLatencyMs(float value) { + + latencyMs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The latency of the internal service in milliseconds.
                                                                                                                                  +       * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @return This builder for chaining. + */ + public Builder clearLatencyMs() { + bitField0_ = (bitField0_ & ~0x00000002); + latencyMs_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp completeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000008); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCompleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + private static final com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency(); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalServiceLatency 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.dialogflow.v2.ServiceLatency.InternalServiceLatency + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int INTERNAL_SERVICE_LATENCIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + internalServiceLatencies_; + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public java.util.List + getInternalServiceLatenciesList() { + return internalServiceLatencies_; + } + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList() { + return internalServiceLatencies_; + } + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public int getInternalServiceLatenciesCount() { + return internalServiceLatencies_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index) { + return internalServiceLatencies_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index) { + return internalServiceLatencies_.get(index); + } + + 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 < internalServiceLatencies_.size(); i++) { + output.writeMessage(1, internalServiceLatencies_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < internalServiceLatencies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, internalServiceLatencies_.get(i)); + } + 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.dialogflow.v2.ServiceLatency)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ServiceLatency other = + (com.google.cloud.dialogflow.v2.ServiceLatency) obj; + + if (!getInternalServiceLatenciesList().equals(other.getInternalServiceLatenciesList())) + 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 (getInternalServiceLatenciesCount() > 0) { + hash = (37 * hash) + INTERNAL_SERVICE_LATENCIES_FIELD_NUMBER; + hash = (53 * hash) + getInternalServiceLatenciesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency 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.dialogflow.v2.ServiceLatency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency 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.dialogflow.v2.ServiceLatency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.ServiceLatency 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Message to represent the latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.ServiceLatency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ServiceLatency) + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ServiceLatency.class, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.ServiceLatency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatencies_ = java.util.Collections.emptyList(); + } else { + internalServiceLatencies_ = null; + internalServiceLatenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency build() { + com.google.cloud.dialogflow.v2.ServiceLatency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency buildPartial() { + com.google.cloud.dialogflow.v2.ServiceLatency result = + new com.google.cloud.dialogflow.v2.ServiceLatency(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.v2.ServiceLatency result) { + if (internalServiceLatenciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + internalServiceLatencies_ = + java.util.Collections.unmodifiableList(internalServiceLatencies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.internalServiceLatencies_ = internalServiceLatencies_; + } else { + result.internalServiceLatencies_ = internalServiceLatenciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.ServiceLatency result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ServiceLatency) { + return mergeFrom((com.google.cloud.dialogflow.v2.ServiceLatency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.ServiceLatency other) { + if (other == com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance()) return this; + if (internalServiceLatenciesBuilder_ == null) { + if (!other.internalServiceLatencies_.isEmpty()) { + if (internalServiceLatencies_.isEmpty()) { + internalServiceLatencies_ = other.internalServiceLatencies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.addAll(other.internalServiceLatencies_); + } + onChanged(); + } + } else { + if (!other.internalServiceLatencies_.isEmpty()) { + if (internalServiceLatenciesBuilder_.isEmpty()) { + internalServiceLatenciesBuilder_.dispose(); + internalServiceLatenciesBuilder_ = null; + internalServiceLatencies_ = other.internalServiceLatencies_; + bitField0_ = (bitField0_ & ~0x00000001); + internalServiceLatenciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInternalServiceLatenciesFieldBuilder() + : null; + } else { + internalServiceLatenciesBuilder_.addAllMessages(other.internalServiceLatencies_); + } + } + } + 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: + { + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency m = + input.readMessage( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .parser(), + extensionRegistry); + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(m); + } else { + internalServiceLatenciesBuilder_.addMessage(m); + } + 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 bitField0_; + + private java.util.List + internalServiceLatencies_ = java.util.Collections.emptyList(); + + private void ensureInternalServiceLatenciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + internalServiceLatencies_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency>( + internalServiceLatencies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + internalServiceLatenciesBuilder_; + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List + getInternalServiceLatenciesList() { + if (internalServiceLatenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(internalServiceLatencies_); + } else { + return internalServiceLatenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public int getInternalServiceLatenciesCount() { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.size(); + } else { + return internalServiceLatenciesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index) { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.get(index); + } else { + return internalServiceLatenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder setInternalServiceLatencies( + int index, com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.set(index, value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder setInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.set(index, builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + int index, com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(index, value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(index, builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addAllInternalServiceLatencies( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency> + values) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, internalServiceLatencies_); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder clearInternalServiceLatencies() { + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + internalServiceLatenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder removeInternalServiceLatencies(int index) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.remove(index); + onChanged(); + } else { + internalServiceLatenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + getInternalServiceLatenciesBuilder(int index) { + return internalGetInternalServiceLatenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index) { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.get(index); + } else { + return internalServiceLatenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList() { + if (internalServiceLatenciesBuilder_ != null) { + return internalServiceLatenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(internalServiceLatencies_); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + addInternalServiceLatenciesBuilder() { + return internalGetInternalServiceLatenciesFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + addInternalServiceLatenciesBuilder(int index) { + return internalGetInternalServiceLatenciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder> + getInternalServiceLatenciesBuilderList() { + return internalGetInternalServiceLatenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + internalGetInternalServiceLatenciesFieldBuilder() { + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder>( + internalServiceLatencies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + internalServiceLatencies_ = null; + } + return internalServiceLatenciesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ServiceLatency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ServiceLatency) + private static final com.google.cloud.dialogflow.v2.ServiceLatency DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ServiceLatency(); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceLatency 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.dialogflow.v2.ServiceLatency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatencyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatencyOrBuilder.java new file mode 100644 index 000000000000..d21a9d1ad084 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatencyOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface ServiceLatencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ServiceLatency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + java.util.List + getInternalServiceLatenciesList(); + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency getInternalServiceLatencies( + int index); + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + int getInternalServiceLatenciesCount(); + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + java.util.List< + ? extends com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java index 13b928eec918..1a48eeda0f9d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java @@ -864,6 +864,27 @@ public boolean getEnablePartialAutomatedAgentReply() { return enablePartialAutomatedAgentReply_; } + public static final int OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER = 18; + private boolean outputMultipleUtterances_ = false; + + /** + * + * + *
                                                                                                                                  +   * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                  +   * them individually instead of stitching them together to form a single
                                                                                                                                  +   * utterance.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + @java.lang.Override + public boolean getOutputMultipleUtterances() { + return outputMultipleUtterances_; + } + public static final int ENABLE_DEBUGGING_INFO_FIELD_NUMBER = 19; private boolean enableDebuggingInfo_ = false; @@ -934,6 +955,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(13, getCxParameters()); } + if (outputMultipleUtterances_ != false) { + output.writeBool(18, outputMultipleUtterances_); + } if (enableDebuggingInfo_ != false) { output.writeBool(19, enableDebuggingInfo_); } @@ -992,6 +1016,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCxParameters()); } + if (outputMultipleUtterances_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, outputMultipleUtterances_); + } if (enableDebuggingInfo_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, enableDebuggingInfo_); } @@ -1031,6 +1058,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableExtendedStreaming() != other.getEnableExtendedStreaming()) return false; if (getEnablePartialAutomatedAgentReply() != other.getEnablePartialAutomatedAgentReply()) return false; + if (getOutputMultipleUtterances() != other.getOutputMultipleUtterances()) return false; if (getEnableDebuggingInfo() != other.getEnableDebuggingInfo()) return false; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { @@ -1092,6 +1120,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePartialAutomatedAgentReply()); + hash = (37 * hash) + OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputMultipleUtterances()); hash = (37 * hash) + ENABLE_DEBUGGING_INFO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDebuggingInfo()); switch (configCase_) { @@ -1345,6 +1375,7 @@ public Builder clear() { } enableExtendedStreaming_ = false; enablePartialAutomatedAgentReply_ = false; + outputMultipleUtterances_ = false; enableDebuggingInfo_ = false; configCase_ = 0; config_ = null; @@ -1422,6 +1453,9 @@ private void buildPartial0( result.enablePartialAutomatedAgentReply_ = enablePartialAutomatedAgentReply_; } if (((from_bitField0_ & 0x00001000) != 0)) { + result.outputMultipleUtterances_ = outputMultipleUtterances_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.enableDebuggingInfo_ = enableDebuggingInfo_; } result.bitField0_ |= to_bitField0_; @@ -1481,6 +1515,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.StreamingAnalyzeContentR if (other.getEnablePartialAutomatedAgentReply() != false) { setEnablePartialAutomatedAgentReply(other.getEnablePartialAutomatedAgentReply()); } + if (other.getOutputMultipleUtterances() != false) { + setOutputMultipleUtterances(other.getOutputMultipleUtterances()); + } if (other.getEnableDebuggingInfo() != false) { setEnableDebuggingInfo(other.getEnableDebuggingInfo()); } @@ -1629,10 +1666,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 106 + case 144: + { + outputMultipleUtterances_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 144 case 152: { enableDebuggingInfo_ = input.readBool(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 152 default: @@ -3786,6 +3829,68 @@ public Builder clearEnablePartialAutomatedAgentReply() { return this; } + private boolean outputMultipleUtterances_; + + /** + * + * + *
                                                                                                                                  +     * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                  +     * them individually instead of stitching them together to form a single
                                                                                                                                  +     * utterance.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + @java.lang.Override + public boolean getOutputMultipleUtterances() { + return outputMultipleUtterances_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                  +     * them individually instead of stitching them together to form a single
                                                                                                                                  +     * utterance.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputMultipleUtterances to set. + * @return This builder for chaining. + */ + public Builder setOutputMultipleUtterances(boolean value) { + + outputMultipleUtterances_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                  +     * them individually instead of stitching them together to form a single
                                                                                                                                  +     * utterance.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputMultipleUtterances() { + bitField0_ = (bitField0_ & ~0x00001000); + outputMultipleUtterances_ = false; + onChanged(); + return this; + } + private boolean enableDebuggingInfo_; /** @@ -3821,7 +3926,7 @@ public boolean getEnableDebuggingInfo() { public Builder setEnableDebuggingInfo(boolean value) { enableDebuggingInfo_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3839,7 +3944,7 @@ public Builder setEnableDebuggingInfo(boolean value) { * @return This builder for chaining. */ public Builder clearEnableDebuggingInfo() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); enableDebuggingInfo_ = false; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java index fb864d5f2622..58280f42c5b1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java @@ -482,6 +482,21 @@ public interface StreamingAnalyzeContentRequestOrBuilder */ boolean getEnablePartialAutomatedAgentReply(); + /** + * + * + *
                                                                                                                                  +   * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                  +   * them individually instead of stitching them together to form a single
                                                                                                                                  +   * utterance.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + boolean getOutputMultipleUtterances(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java index 761b3b0d8e76..ab9b4f40fa60 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java @@ -176,6 +176,86 @@ java.lang.String getTextSectionsOrDefault( */ java.lang.String getTextSectionsOrThrow(java.lang.String key); + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList(); + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + getSortedTextSections(int index); + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + int getSortedTextSectionsCount(); + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index); + /** * * @@ -265,6 +345,7 @@ private Summary(com.google.protobuf.GeneratedMessage.Builder builder) { private Summary() { text_ = ""; + sortedTextSections_ = java.util.Collections.emptyList(); answerRecord_ = ""; baselineModelVersion_ = ""; } @@ -297,6 +378,895 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl .class); } + public interface SummarySectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +       * Output only. Name of the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + java.lang.String getSection(); + + /** + * + * + *
                                                                                                                                  +       * Output only. Name of the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + com.google.protobuf.ByteString getSectionBytes(); + + /** + * + * + *
                                                                                                                                  +       * Output only. Summary text for the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + java.lang.String getSummary(); + + /** + * + * + *
                                                                                                                                  +       * Output only. Summary text for the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + com.google.protobuf.ByteString getSummaryBytes(); + } + + /** + * + * + *
                                                                                                                                  +     * A component of the generated summary.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection} + */ + public static final class SummarySection extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + SummarySectionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SummarySection"); + } + + // Use SummarySection.newBuilder() to construct. + private SummarySection(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SummarySection() { + section_ = ""; + summary_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.class, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder.class); + } + + public static final int SECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object section_ = ""; + + /** + * + * + *
                                                                                                                                  +       * Output only. Name of the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + @java.lang.Override + public java.lang.String getSection() { + java.lang.Object ref = section_; + 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(); + section_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +       * Output only. Name of the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + + /** + * + * + *
                                                                                                                                  +       * Output only. Summary text for the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + 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(); + summary_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +       * Output only. Summary text for the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(section_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, section_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, summary_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(section_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, section_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, summary_); + } + 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.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + other = + (com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection) + obj; + + if (!getSection().equals(other.getSection())) return false; + if (!getSummary().equals(other.getSummary())) 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) + SECTION_FIELD_NUMBER; + hash = (53 * hash) + getSection().hashCode(); + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + 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.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + 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.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +       * A component of the generated summary.
                                                                                                                                  +       * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.class, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + section_ = ""; + summary_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + build() { + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + buildPartial() { + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + result = + new com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.section_ = section_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summary_ = summary_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + other) { + if (other + == com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()) return this; + if (!other.getSection().isEmpty()) { + section_ = other.section_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + 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: + { + section_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + summary_ = 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 java.lang.Object section_ = ""; + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The section to set. + * @return This builder for chaining. + */ + public Builder setSection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSection() { + section_ = getDefaultInstance().getSection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for section to set. + * @return This builder for chaining. + */ + public Builder setSectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object summary_ = ""; + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + private static final com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection(); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarySection 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.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int TEXT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -467,6 +1437,109 @@ public java.lang.String getTextSectionsOrThrow(java.lang.String key) { return map.get(key); } + public static final int SORTED_TEXT_SECTIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + sortedTextSections_; + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList() { + return sortedTextSections_; + } + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList() { + return sortedTextSections_; + } + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public int getSortedTextSectionsCount() { + return sortedTextSections_.size(); + } + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + getSortedTextSections(int index) { + return sortedTextSections_.get(index); + } + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index) { + return sortedTextSections_.get(index); + } + public static final int ANSWER_RECORD_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -602,6 +1675,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, baselineModelVersion_); } + for (int i = 0; i < sortedTextSections_.size(); i++) { + output.writeMessage(6, sortedTextSections_.get(i)); + } getUnknownFields().writeTo(output); } @@ -630,6 +1706,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, baselineModelVersion_); } + for (int i = 0; i < sortedTextSections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, sortedTextSections_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -649,6 +1729,7 @@ public boolean equals(final java.lang.Object obj) { if (!getText().equals(other.getText())) return false; if (!internalGetTextSections().equals(other.internalGetTextSections())) return false; + if (!getSortedTextSectionsList().equals(other.getSortedTextSectionsList())) return false; if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; if (!getBaselineModelVersion().equals(other.getBaselineModelVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -668,6 +1749,10 @@ public int hashCode() { hash = (37 * hash) + TEXT_SECTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetTextSections().hashCode(); } + if (getSortedTextSectionsCount() > 0) { + hash = (37 * hash) + SORTED_TEXT_SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSortedTextSectionsList().hashCode(); + } hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; hash = (53 * hash) + getAnswerRecord().hashCode(); hash = (37 * hash) + BASELINE_MODEL_VERSION_FIELD_NUMBER; @@ -845,6 +1930,13 @@ public Builder clear() { bitField0_ = 0; text_ = ""; internalGetMutableTextSections().clear(); + if (sortedTextSectionsBuilder_ == null) { + sortedTextSections_ = java.util.Collections.emptyList(); + } else { + sortedTextSections_ = null; + sortedTextSectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); answerRecord_ = ""; baselineModelVersion_ = ""; return this; @@ -878,6 +1970,7 @@ public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary buildPartial() { com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary result = new com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -885,6 +1978,19 @@ public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary result) { + if (sortedTextSectionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sortedTextSections_ = java.util.Collections.unmodifiableList(sortedTextSections_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sortedTextSections_ = sortedTextSections_; + } else { + result.sortedTextSections_ = sortedTextSectionsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary result) { int from_bitField0_ = bitField0_; @@ -895,10 +2001,10 @@ private void buildPartial0( result.textSections_ = internalGetTextSections(); result.textSections_.makeImmutable(); } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.answerRecord_ = answerRecord_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.baselineModelVersion_ = baselineModelVersion_; } } @@ -927,14 +2033,41 @@ public Builder mergeFrom( } internalGetMutableTextSections().mergeFrom(other.internalGetTextSections()); bitField0_ |= 0x00000002; + if (sortedTextSectionsBuilder_ == null) { + if (!other.sortedTextSections_.isEmpty()) { + if (sortedTextSections_.isEmpty()) { + sortedTextSections_ = other.sortedTextSections_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.addAll(other.sortedTextSections_); + } + onChanged(); + } + } else { + if (!other.sortedTextSections_.isEmpty()) { + if (sortedTextSectionsBuilder_.isEmpty()) { + sortedTextSectionsBuilder_.dispose(); + sortedTextSectionsBuilder_ = null; + sortedTextSections_ = other.sortedTextSections_; + bitField0_ = (bitField0_ & ~0x00000004); + sortedTextSectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSortedTextSectionsFieldBuilder() + : null; + } else { + sortedTextSectionsBuilder_.addAllMessages(other.sortedTextSections_); + } + } + } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getBaselineModelVersion().isEmpty()) { baselineModelVersion_ = other.baselineModelVersion_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -972,7 +2105,7 @@ public Builder mergeFrom( case 26: { answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -990,9 +2123,26 @@ public Builder mergeFrom( case 42: { baselineModelVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + m = + input.readMessage( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse + .Summary.SummarySection.parser(), + extensionRegistry); + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(m); + } else { + sortedTextSectionsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1312,6 +2462,487 @@ public Builder putAllTextSections(java.util.Map + sortedTextSections_ = java.util.Collections.emptyList(); + + private void ensureSortedTextSectionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sortedTextSections_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection>(sortedTextSections_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + sortedTextSectionsBuilder_; + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList() { + if (sortedTextSectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sortedTextSections_); + } else { + return sortedTextSectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public int getSortedTextSectionsCount() { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.size(); + } else { + return sortedTextSectionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + getSortedTextSections(int index) { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.get(index); + } else { + return sortedTextSectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder setSortedTextSections( + int index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.set(index, value); + onChanged(); + } else { + sortedTextSectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder setSortedTextSections( + int index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + .Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.set(index, builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(value); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + int index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(index, value); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + .Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + int index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + .Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(index, builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addAllSortedTextSections( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + values) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sortedTextSections_); + onChanged(); + } else { + sortedTextSectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder clearSortedTextSections() { + if (sortedTextSectionsBuilder_ == null) { + sortedTextSections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sortedTextSectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder removeSortedTextSections(int index) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.remove(index); + onChanged(); + } else { + sortedTextSectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + getSortedTextSectionsBuilder(int index) { + return internalGetSortedTextSectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index) { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.get(index); + } else { + return sortedTextSectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList() { + if (sortedTextSectionsBuilder_ != null) { + return sortedTextSectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sortedTextSections_); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + addSortedTextSectionsBuilder() { + return internalGetSortedTextSectionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + addSortedTextSectionsBuilder(int index) { + return internalGetSortedTextSectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder> + getSortedTextSectionsBuilderList() { + return internalGetSortedTextSectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + internalGetSortedTextSectionsFieldBuilder() { + if (sortedTextSectionsBuilder_ == null) { + sortedTextSectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder>( + sortedTextSections_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sortedTextSections_ = null; + } + return sortedTextSectionsBuilder_; + } + private java.lang.Object answerRecord_ = ""; /** @@ -1380,7 +3011,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1399,7 +3030,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1423,7 +3054,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1496,7 +3127,7 @@ public Builder setBaselineModelVersion(java.lang.String value) { throw new NullPointerException(); } baselineModelVersion_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1515,7 +3146,7 @@ public Builder setBaselineModelVersion(java.lang.String value) { */ public Builder clearBaselineModelVersion() { baselineModelVersion_ = getDefaultInstance().getBaselineModelVersion(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1539,7 +3170,7 @@ public Builder setBaselineModelVersionBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); baselineModelVersion_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCall.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCall.java index 7418293da86d..7a19a2a180e0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCall.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCall.java @@ -254,6 +254,9 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TOOL(1), + CES_TOOL(11), + CES_TOOLSET(12), + CES_APP(8), SOURCE_NOT_SET(0); private final int value; @@ -275,6 +278,12 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return TOOL; + case 11: + return CES_TOOL; + case 12: + return CES_TOOLSET; + case 8: + return CES_APP; case 0: return SOURCE_NOT_SET; default: @@ -376,6 +385,261 @@ public com.google.protobuf.ByteString getToolBytes() { } } + public static final int CES_TOOL_FIELD_NUMBER = 11; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + public boolean hasCesTool() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + 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(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_TOOLSET_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + public boolean hasCesToolset() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + 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(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_APP_FIELD_NUMBER = 8; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + public boolean hasCesApp() { + return sourceCase_ == 8; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 8) { + ref = source_; + } + 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(); + if (sourceCase_ == 8) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 8) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 8) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TOOL_DISPLAY_NAME_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -769,12 +1033,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.dialogflow.v2.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } + if (sourceCase_ == 8) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, source_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, toolDisplayName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayDetails_)) { com.google.protobuf.GeneratedMessage.writeString(output, 10, toolDisplayDetails_); } + if (sourceCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, source_); + } + if (sourceCase_ == 12) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, source_); + } getUnknownFields().writeTo(output); } @@ -802,12 +1075,21 @@ public int getSerializedSize() { if (state_ != com.google.cloud.dialogflow.v2.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } + if (sourceCase_ == 8) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, source_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, toolDisplayName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayDetails_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, toolDisplayDetails_); } + if (sourceCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, source_); + } + if (sourceCase_ == 12) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -841,6 +1123,15 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTool().equals(other.getTool())) return false; break; + case 11: + if (!getCesTool().equals(other.getCesTool())) return false; + break; + case 12: + if (!getCesToolset().equals(other.getCesToolset())) return false; + break; + case 8: + if (!getCesApp().equals(other.getCesApp())) return false; + break; case 0: default: } @@ -878,6 +1169,18 @@ public int hashCode() { hash = (37 * hash) + TOOL_FIELD_NUMBER; hash = (53 * hash) + getTool().hashCode(); break; + case 11: + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + break; + case 12: + hash = (37 * hash) + CES_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getCesToolset().hashCode(); + break; + case 8: + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + break; case 0: default: } @@ -1085,29 +1388,29 @@ public com.google.cloud.dialogflow.v2.ToolCall buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.v2.ToolCall result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.toolDisplayName_ = toolDisplayName_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.toolDisplayDetails_ = toolDisplayDetails_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.action_ = action_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.inputParameters_ = inputParametersBuilder_ == null ? inputParameters_ : inputParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.answerRecord_ = answerRecord_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.state_ = state_; } result.bitField0_ |= to_bitField0_; @@ -1132,17 +1435,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCall other) { if (other == com.google.cloud.dialogflow.v2.ToolCall.getDefaultInstance()) return this; if (!other.getToolDisplayName().isEmpty()) { toolDisplayName_ = other.toolDisplayName_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getToolDisplayDetails().isEmpty()) { toolDisplayDetails_ = other.toolDisplayDetails_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAction().isEmpty()) { action_ = other.action_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasInputParameters()) { @@ -1153,180 +1456,711 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCall other) { } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } - switch (other.getSourceCase()) { - case TOOL: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + switch (other.getSourceCase()) { + case TOOL: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOL: + { + sourceCase_ = 11; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOLSET: + { + sourceCase_ = 12; + source_ = other.source_; + onChanged(); + break; + } + case CES_APP: + { + sourceCase_ = 8; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_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: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 18: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 34 + case 50: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 56 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 8; + source_ = s; + break; + } // case 66 + case 74: + { + toolDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 74 + case 82: + { + toolDisplayDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 11; + source_ = s; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 12; + source_ = s; + break; + } // case 98 + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  +     * this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return sourceCase_ == 1; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  +     * this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  +     * this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  +     * this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  +     * this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  +     * this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + @java.lang.Override + public boolean hasCesTool() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + if (sourceCase_ == 11) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + @java.lang.Override + public boolean hasCesToolset() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + @java.lang.Override + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; } + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - @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(); + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolset(java.lang.String value) { + if (value == null) { + throw new 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(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 18: - { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 50: - { - answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 74: - { - toolDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 82: - { - toolDisplayDetails_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 82 - 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 + sourceCase_ = 12; + source_ = value; + onChanged(); return this; } - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesToolset() { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 12; + source_ = value; onChanged(); return this; } - private int bitField0_; - /** * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  -     * this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return Whether the tool field is set. + * @return Whether the cesApp field is set. */ @java.lang.Override - public boolean hasTool() { - return sourceCase_ == 1; + public boolean hasCesApp() { + return sourceCase_ == 8; } /** * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  -     * this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The tool. + * @return The cesApp. */ @java.lang.Override - public java.lang.String getTool() { + public java.lang.String getCesApp() { java.lang.Object ref = ""; - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { ref = source_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { source_ = s; } return s; @@ -1339,27 +2173,27 @@ public java.lang.String getTool() { * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  -     * this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The bytes for tool. + * @return The bytes for cesApp. */ @java.lang.Override - public com.google.protobuf.ByteString getToolBytes() { + public com.google.protobuf.ByteString getCesAppBytes() { java.lang.Object ref = ""; - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { ref = source_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { source_ = b; } return b; @@ -1372,23 +2206,23 @@ public com.google.protobuf.ByteString getToolBytes() { * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  -     * this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The tool to set. + * @param value The cesApp to set. * @return This builder for chaining. */ - public Builder setTool(java.lang.String value) { + public Builder setCesApp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceCase_ = 1; + sourceCase_ = 8; source_ = value; onChanged(); return this; @@ -1398,19 +2232,19 @@ public Builder setTool(java.lang.String value) { * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  -     * this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ - public Builder clearTool() { - if (sourceCase_ == 1) { + public Builder clearCesApp() { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; onChanged(); @@ -1422,24 +2256,24 @@ public Builder clearTool() { * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                  -     * this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The bytes for tool to set. + * @param value The bytes for cesApp to set. * @return This builder for chaining. */ - public Builder setToolBytes(com.google.protobuf.ByteString value) { + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceCase_ = 1; + sourceCase_ = 8; source_ = value; onChanged(); return this; @@ -1510,7 +2344,7 @@ public Builder setToolDisplayName(java.lang.String value) { throw new NullPointerException(); } toolDisplayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1528,7 +2362,7 @@ public Builder setToolDisplayName(java.lang.String value) { */ public Builder clearToolDisplayName() { toolDisplayName_ = getDefaultInstance().getToolDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1551,7 +2385,7 @@ public Builder setToolDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); toolDisplayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1621,7 +2455,7 @@ public Builder setToolDisplayDetails(java.lang.String value) { throw new NullPointerException(); } toolDisplayDetails_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1639,7 +2473,7 @@ public Builder setToolDisplayDetails(java.lang.String value) { */ public Builder clearToolDisplayDetails() { toolDisplayDetails_ = getDefaultInstance().getToolDisplayDetails(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1662,7 +2496,7 @@ public Builder setToolDisplayDetailsBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); toolDisplayDetails_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1732,7 +2566,7 @@ public Builder setAction(java.lang.String value) { throw new NullPointerException(); } action_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1750,7 +2584,7 @@ public Builder setAction(java.lang.String value) { */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -1773,7 +2607,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); action_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1798,7 +2632,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { * @return Whether the inputParameters field is set. */ public boolean hasInputParameters() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1842,7 +2676,7 @@ public Builder setInputParameters(com.google.protobuf.Struct value) { } else { inputParametersBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1863,7 +2697,7 @@ public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForV } else { inputParametersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1880,7 +2714,7 @@ public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForV */ public Builder mergeInputParameters(com.google.protobuf.Struct value) { if (inputParametersBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000080) != 0) && inputParameters_ != null && inputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { getInputParametersBuilder().mergeFrom(value); @@ -1891,7 +2725,7 @@ public Builder mergeInputParameters(com.google.protobuf.Struct value) { inputParametersBuilder_.mergeFrom(value); } if (inputParameters_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -1908,7 +2742,7 @@ public Builder mergeInputParameters(com.google.protobuf.Struct value) { * */ public Builder clearInputParameters() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); inputParameters_ = null; if (inputParametersBuilder_ != null) { inputParametersBuilder_.dispose(); @@ -1929,7 +2763,7 @@ public Builder clearInputParameters() { * */ public com.google.protobuf.Struct.Builder getInputParametersBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return internalGetInputParametersFieldBuilder().getBuilder(); } @@ -2002,7 +2836,7 @@ public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2048,7 +2882,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2070,7 +2904,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2088,7 +2922,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2099,7 +2933,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2117,7 +2951,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2139,7 +2973,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2258,7 +3092,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2276,7 +3110,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2299,7 +3133,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2340,7 +3174,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2383,7 +3217,7 @@ public Builder setState(com.google.cloud.dialogflow.v2.ToolCall.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; state_ = value.getNumber(); onChanged(); return this; @@ -2403,7 +3237,7 @@ public Builder setState(com.google.cloud.dialogflow.v2.ToolCall.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); state_ = 0; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallOrBuilder.java index e43c12d22670..57e77ac8672e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallOrBuilder.java @@ -77,6 +77,159 @@ public interface ToolCallOrBuilder */ com.google.protobuf.ByteString getToolBytes(); + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + boolean hasCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + boolean hasCesToolset(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + java.lang.String getCesToolset(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + com.google.protobuf.ByteString getCesToolsetBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + boolean hasCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallProto.java index 0ae04259cf48..899af33a2631 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallProto.java @@ -65,10 +65,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*google/cloud/dialogflow/v2/tool_call.p" + "roto\022\032google.cloud.dialogflow.v2\032\037google" + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\265\003\n" + + "source.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\330\004\n" + "\010ToolCall\0226\n" + "\004tool\030\001 \001(\tB&\340A\001\372A \n" - + "\036dialogflow.googleapis.com/ToolH\000\022\036\n" + + "\036dialogflow.googleapis.com/ToolH\000\0223\n" + + "\010ces_tool\030\013 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\0229\n" + + "\013ces_toolset\030\014 \001(\tB\"\340A\001\372A\034\n" + + "\032ces.googleapis.com/ToolsetH\000\0221\n" + + "\007ces_app\030\010 \001(\tB\036\340A\001\372A\030\n" + + "\026ces.googleapis.com/AppH\000\022\036\n" + "\021tool_display_name\030\t \001(\tB\003\340A\001\022!\n" + "\024tool_display_details\030\n" + " \001(\tB\003\340A\001\022\023\n" @@ -84,13 +90,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\r\n" + "\tTRIGGERED\020\001\022\026\n" + "\022NEEDS_CONFIRMATION\020\002B\010\n" - + "\006source\"\317\002\n" + + "\006source\"\362\003\n" + "\016ToolCallResult\0226\n" + "\004tool\030\001 \001(\tB&\340A\001\372A \n" - + "\036dialogflow.googleapis.com/ToolH\000\022\023\n" + + "\036dialogflow.googleapis.com/ToolH\000\0229\n" + + "\013ces_toolset\030\r" + + " \001(\tB\"\340A\001\372A\034\n" + + "\032ces.googleapis.com/ToolsetH\000\0223\n" + + "\010ces_tool\030\014 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\0221\n" + + "\007ces_app\030\013 \001(\tB\036\340A\001\372A\030\n" + + "\026ces.googleapis.com/AppH\000\022\023\n" + "\006action\030\002 \001(\tB\003\340A\001\022A\n" - + "\005error\030\003 \001(\01320.google.clou" - + "d.dialogflow.v2.ToolCallResult.ErrorH\001\022\025\n" + + "\005error\030\003 \001(\01320.googl" + + "e.cloud.dialogflow.v2.ToolCallResult.ErrorH\001\022\025\n" + "\013raw_content\030\005 \001(\014H\001\022\021\n" + "\007content\030\006 \001(\tH\001\0224\n" + "\013create_time\030\007" @@ -101,8 +114,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006sourceB\010\n" + "\006resultB\223\001\n" + "\036com.google.cloud.dialogflow.v2B\r" - + "ToolCallProtoP\001Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dia" - + "logflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006proto3" + + "ToolCallProtoP\001Z>cloud.google.com/go/dialogflow/apiv2/dialogflow" + + "pb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -120,6 +133,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2_ToolCall_descriptor, new java.lang.String[] { "Tool", + "CesTool", + "CesToolset", + "CesApp", "ToolDisplayName", "ToolDisplayDetails", "Action", @@ -136,6 +152,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2_ToolCallResult_descriptor, new java.lang.String[] { "Tool", + "CesToolset", + "CesTool", + "CesApp", "Action", "Error", "RawContent", diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResult.java index bb55e4ead02a..9ac071471e2c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResult.java @@ -690,6 +690,9 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TOOL(1), + CES_TOOLSET(13), + CES_TOOL(12), + CES_APP(11), SOURCE_NOT_SET(0); private final int value; @@ -711,6 +714,12 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return TOOL; + case 13: + return CES_TOOLSET; + case 12: + return CES_TOOL; + case 11: + return CES_APP; case 0: return SOURCE_NOT_SET; default: @@ -865,6 +874,261 @@ public com.google.protobuf.ByteString getToolBytes() { } } + public static final int CES_TOOLSET_FIELD_NUMBER = 13; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + public boolean hasCesToolset() { + return sourceCase_ == 13; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + 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(); + if (sourceCase_ == 13) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 13) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_TOOL_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + public boolean hasCesTool() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + 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(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_APP_FIELD_NUMBER = 11; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + public boolean hasCesApp() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + 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(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ACTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -1224,6 +1488,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, answerRecord_); } + if (sourceCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, source_); + } + if (sourceCase_ == 12) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, source_); + } + if (sourceCase_ == 13) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, source_); + } getUnknownFields().writeTo(output); } @@ -1258,6 +1531,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, answerRecord_); } + if (sourceCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, source_); + } + if (sourceCase_ == 12) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, source_); + } + if (sourceCase_ == 13) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1285,6 +1567,15 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTool().equals(other.getTool())) return false; break; + case 13: + if (!getCesToolset().equals(other.getCesToolset())) return false; + break; + case 12: + if (!getCesTool().equals(other.getCesTool())) return false; + break; + case 11: + if (!getCesApp().equals(other.getCesApp())) return false; + break; case 0: default: } @@ -1326,6 +1617,18 @@ public int hashCode() { hash = (37 * hash) + TOOL_FIELD_NUMBER; hash = (53 * hash) + getTool().hashCode(); break; + case 13: + hash = (37 * hash) + CES_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getCesToolset().hashCode(); + break; + case 12: + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + break; + case 11: + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + break; case 0: default: } @@ -1545,15 +1848,15 @@ public com.google.cloud.dialogflow.v2.ToolCallResult buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.v2.ToolCallResult result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.action_ = action_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.answerRecord_ = answerRecord_; } result.bitField0_ |= to_bitField0_; @@ -1583,7 +1886,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCallResult other) { if (other == com.google.cloud.dialogflow.v2.ToolCallResult.getDefaultInstance()) return this; if (!other.getAction().isEmpty()) { action_ = other.action_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCreateTime()) { @@ -1591,7 +1894,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCallResult other) { } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } switch (other.getSourceCase()) { @@ -1602,6 +1905,27 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCallResult other) { onChanged(); break; } + case CES_TOOLSET: + { + sourceCase_ = 13; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOL: + { + sourceCase_ = 12; + source_ = other.source_; + onChanged(); + break; + } + case CES_APP: + { + sourceCase_ = 11; + source_ = other.source_; + onChanged(); + break; + } case SOURCE_NOT_SET: { break; @@ -1666,7 +1990,7 @@ public Builder mergeFrom( case 18: { action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; break; } // case 18 case 26: @@ -1692,15 +2016,36 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; break; } // case 58 case 74: { answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; break; } // case 74 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 11; + source_ = s; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 12; + source_ = s; + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 13; + source_ = s; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1911,6 +2256,495 @@ public Builder setToolBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + @java.lang.Override + public boolean hasCesToolset() { + return sourceCase_ == 13; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + @java.lang.Override + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 13) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 13) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 13; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesToolset() { + if (sourceCase_ == 13) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 13; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + @java.lang.Override + public boolean hasCesTool() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 12; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 12; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + @java.lang.Override + public boolean hasCesApp() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + @java.lang.Override + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesApp() { + if (sourceCase_ == 11) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + private java.lang.Object action_ = ""; /** @@ -1976,7 +2810,7 @@ public Builder setAction(java.lang.String value) { throw new NullPointerException(); } action_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1994,7 +2828,7 @@ public Builder setAction(java.lang.String value) { */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2017,7 +2851,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); action_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2480,7 +3314,7 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2526,7 +3360,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2548,7 +3382,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2566,7 +3400,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2577,7 +3411,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2595,7 +3429,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2617,7 +3451,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2736,7 +3570,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2754,7 +3588,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2777,7 +3611,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResultOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResultOrBuilder.java index f61ca2f448b2..ee4915312f2c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResultOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResultOrBuilder.java @@ -77,6 +77,159 @@ public interface ToolCallResultOrBuilder */ com.google.protobuf.ByteString getToolBytes(); + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + boolean hasCesToolset(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + java.lang.String getCesToolset(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + com.google.protobuf.ByteString getCesToolsetBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + boolean hasCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + boolean hasCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetProto.java new file mode 100644 index 000000000000..ffc1de3398fd --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public final class ToolsetProto extends com.google.protobuf.GeneratedFile { + private ToolsetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ToolsetTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/dialogflow/v2/toolset.pro" + + "to\022\032google.cloud.dialogflow.v2\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\032%google/cloud/dialogflow/v2/t" + + "ool.proto\"\276\001\n\013ToolsetTool\0223\n\007toolset\030\001 \001" + + "(\tB\"\340A\002\372A\034\n\032ces.googleapis.com/Toolset\022\031" + + "\n\014operation_id\030\002 \001(\tB\003\340A\001\022_\n\030confirmatio" + + "n_requirement\030\003 \001(\01628.google.cloud.dialo" + + "gflow.v2.Tool.ConfirmationRequirementB\003\340" + + "A\001B\370\001\n\036com.google.cloud.dialogflow.v2B\014T" + + "oolsetProtoP\001Z>cloud.google.com/go/dialo" + + "gflow/apiv2/dialogflowpb;dialogflowpb\242\002\002" + + "DF\252\002\032Google.Cloud.Dialogflow.V2\352Ac\n\032ces." + + "googleapis.com/Toolset\022Eprojects/{projec" + + "t}/locations/{location}/apps/{app}/tools" + + "ets/{toolset}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2_ToolsetTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor, + new java.lang.String[] { + "Toolset", "OperationId", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetTool.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetTool.java new file mode 100644 index 000000000000..7ff800d8178d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetTool.java @@ -0,0 +1,1002 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                  + * A tool that is created from a toolset.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.ToolsetTool} + */ +@com.google.protobuf.Generated +public final class ToolsetTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ToolsetTool) + ToolsetToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetTool"); + } + + // Use ToolsetTool.newBuilder() to construct. + private ToolsetTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolsetTool() { + toolset_ = ""; + operationId_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ToolsetTool.class, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
                                                                                                                                  +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + 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(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationId_ = ""; + + /** + * + * + *
                                                                                                                                  +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +   * must be present in the toolset's definition.
                                                                                                                                  +   * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + 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(); + operationId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +   * must be present in the toolset's definition.
                                                                                                                                  +   * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 3; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, operationId_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, operationId_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, confirmationRequirement_); + } + 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.dialogflow.v2.ToolsetTool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ToolsetTool other = + (com.google.cloud.dialogflow.v2.ToolsetTool) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getOperationId().equals(other.getOperationId())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) 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) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool 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.dialogflow.v2.ToolsetTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool 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.dialogflow.v2.ToolsetTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2.ToolsetTool 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * A tool that is created from a toolset.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2.ToolsetTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ToolsetTool) + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ToolsetTool.class, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.ToolsetTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + operationId_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ToolsetTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool build() { + com.google.cloud.dialogflow.v2.ToolsetTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool buildPartial() { + com.google.cloud.dialogflow.v2.ToolsetTool result = + new com.google.cloud.dialogflow.v2.ToolsetTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.ToolsetTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ToolsetTool) { + return mergeFrom((com.google.cloud.dialogflow.v2.ToolsetTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolsetTool other) { + if (other == com.google.cloud.dialogflow.v2.ToolsetTool.getDefaultInstance()) return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + 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: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + confirmationRequirement_ = input.readEnum(); + 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 toolset_ = ""; + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000004); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ToolsetTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ToolsetTool) + private static final com.google.cloud.dialogflow.v2.ToolsetTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ToolsetTool(); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolsetTool 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.dialogflow.v2.ToolsetTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetToolOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetToolOrBuilder.java new file mode 100644 index 000000000000..142ae8e0f29d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetToolOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface ToolsetToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ToolsetTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
                                                                                                                                  +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +   * must be present in the toolset's definition.
                                                                                                                                  +   * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + java.lang.String getOperationId(); + + /** + * + * + *
                                                                                                                                  +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +   * must be present in the toolset's definition.
                                                                                                                                  +   * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString getOperationIdBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto index c7896c22796e..8fe79a056471 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent_coaching_instruction.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent_coaching_instruction.proto index 9ed21cd3e138..756e625272c7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent_coaching_instruction.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent_coaching_instruction.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto index 300f1076612c..013dffeaed9d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto index b3dbed6fa782..af0626faf2f8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto new file mode 100644 index 000000000000..bb2e780590b0 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto @@ -0,0 +1,46 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "CesAppProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/App" + pattern: "projects/{project}/locations/{location}/apps/{app}" +}; + +// Spec of CES app that the generator can choose from. +message CesAppSpec { + // Optional. Format: `projects//locations//apps/`. + string ces_app = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Optional. Indicates whether the app requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_tool.proto new file mode 100644 index 000000000000..1f1c3a66b624 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_tool.proto @@ -0,0 +1,42 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "CesToolProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Spec of CES tool that the generator can choose from. +message CesToolSpec { + // Optional. Format: `projects//locations//apps//tools/`. + string ces_tool = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. Indicates whether the tool requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto index dd7aa6aa0c24..01ace7907184 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto index 6fc9ff8de6e0..75020dc96d69 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -367,6 +367,37 @@ message Conversation { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Represents the context of a generator. + message GeneratorContext { + // The available generator types. + enum GeneratorType { + // Unspecified generator type. + GENERATOR_TYPE_UNSPECIFIED = 0; + + // Free form generator type. + FREE_FORM = 1; + + // Agent coaching generator type. + AGENT_COACHING = 2; + + // Summarization generator type. + SUMMARIZATION = 3; + + // Translation generator type. + TRANSLATION = 4; + + // Agent feedback generator type. + AGENT_FEEDBACK = 5; + + // Customer message generation generator type. + CUSTOMER_MESSAGE_GENERATION = 6; + } + + // Output only. The type of the generator. + GeneratorType generator_type = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Output only. Identifier. The unique identifier of this conversation. // Format: `projects//locations//conversations/`. @@ -426,9 +457,22 @@ message Conversation { TelephonyConnectionInfo telephony_connection_info = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Output only. The initial conversation profile to be used to + // configure this conversation, which is a copy of the conversation profile + // config read at conversation creation time. + ConversationProfile initial_conversation_profile = 15 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + // Output only. The context reference updates provided by external systems. map ingested_context_references = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A map with generator name as key and generator context as + // value. + map initial_generator_contexts = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request message for @@ -651,6 +695,15 @@ message SuggestConversationSummaryRequest { message SuggestConversationSummaryResponse { // Generated summary for a conversation. message Summary { + // A component of the generated summary. + message SummarySection { + // Output only. Name of the section. + string section = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary text for the section. + string summary = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The summary content that is concatenated into one string. string text = 1; @@ -659,6 +712,10 @@ message SuggestConversationSummaryResponse { // specific format for the key or value. map text_sections = 4; + // Same as text_sections, but in an order that is consistent with the order + // of the sections in the generator. + repeated SummarySection sorted_text_sections = 6; + // The name of the answer record. Format: // "projects//answerRecords/" string answer_record = 3 [(google.api.resource_reference) = { @@ -1117,6 +1174,36 @@ message SearchKnowledgeRequest { bool exact_search = 14 [(google.api.field_behavior) = OPTIONAL]; } +// Debug information related to SearchKnowledge feature. +message SearchKnowledgeDebugInfo { + // Configured behaviors for SearchKnowledge. + message SearchKnowledgeBehavior { + // Whether data store agent rewriter was turned on for the request. + bool answer_generation_rewriter_on = 1; + + // Whether end_user_metadata is included in the data store agent call. + bool end_user_metadata_included = 2; + + // This field indicates whether third party connectors are enabled for the + // project. Note that this field only indicates if the project is + // allowlisted for connectors. + bool third_party_connector_allowed = 4; + } + + // Response reason from datastore which indicates data serving status or + // answer quality degradation. + DatastoreResponseReason datastore_response_reason = 1; + + // Configured behaviors for SearchKnowledge. + SearchKnowledgeBehavior search_knowledge_behavior = 2; + + // Information about parameters ingested for search knowledge. + IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + + // The latency of the service. + ServiceLatency service_latency = 4; +} + // The response message for // [Conversations.SearchKnowledge][google.cloud.dialogflow.v2.Conversations.SearchKnowledge]. message SearchKnowledgeResponse { @@ -1126,6 +1213,9 @@ message SearchKnowledgeResponse { // The rewritten query used to search knowledge. string rewritten_query = 3; + + // Debug info for SearchKnowledge. + SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; } // Represents a SearchKnowledge answer. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto index bf126d212326..7c39a06bd05f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto index c7f8faafc21f..9ed3d9ebca63 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_model.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_model.proto index adc56a3d3166..ec7f4bd212e7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_model.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_model.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto index da2faf83fc2c..3cbee623c8e6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -785,6 +785,31 @@ message HumanAgentAssistantConfig { // If Pub/Sub notification is configured, result will be in // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. bool enable_sentiment_analysis = 3; + + // Optional. Enables sentiment analysis for audio input and conversation + // messages. If unspecified, defaults to false. If this flag is set to true, + // other 'enable_sentiment_analysis' fields will be ignored. + // + // Sentiment analysis inspects user input and identifies the prevailing + // subjective opinion, especially to determine a user's attitude as + // positive, negative, or neutral. + // https://cloud.google.com/natural-language/docs/basics#sentiment_analysis + // For + // [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] + // method, result will be in + // [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message]. + // For + // [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + // method, result will be in + // [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message] + // For + // [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] + // method, result will be in + // [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages] + // If Pub/Sub notification is configured, result will be in + // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. + bool enable_sentiment_analysis_v3 = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Pub/Sub topic on which to publish new agent assistant events. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/document.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/document.proto index 10677935a91e..2d42c45f6ea1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/document.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/document.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/encryption_spec.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/encryption_spec.proto index c311958d5b79..0d441c3aa616 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/encryption_spec.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/encryption_spec.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto index 7112a605dbf6..94e665ed0049 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto index dbcbb3cc2832..f8eac1db1ece 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto index ddfba0c773f9..819d9a802e00 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/gcs.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/gcs.proto index 8e4706530081..4a5f70513206 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/gcs.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/gcs.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto index 8f7ecbfd068c..afbbe1d153da 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,10 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/v2/agent_coaching_instruction.proto"; +import "google/cloud/dialogflow/v2/ces_app.proto"; +import "google/cloud/dialogflow/v2/ces_tool.proto"; import "google/cloud/dialogflow/v2/tool_call.proto"; +import "google/cloud/dialogflow/v2/toolset.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -462,6 +465,18 @@ message Generator { // AI Coach feature. SuggestionDedupingConfig suggestion_deduping_config = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES toolset specs that the generator can choose from. + repeated ToolsetTool toolset_tools = 27 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES tool specs that the generator can choose from. + repeated CesToolSpec ces_tool_specs = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES app specs that the generator can choose from. + repeated CesAppSpec ces_app_specs = 29 + [(google.api.field_behavior) = OPTIONAL]; } // Suggestion generated using free form generator. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator_evaluation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator_evaluation.proto index 91c3d3520210..2a37a3b136ec 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator_evaluation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator_evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto index 06cb7ced4a92..ba87fae3afc5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto index 99138f724029..efebee31d34b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto index 6646ec87b4d3..0f15305276cf 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/operations.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/operations.proto index 60d676019bac..698f70e68504 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/operations.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto index cdab1d59421c..d60c6bb8619f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -689,6 +689,11 @@ message StreamingAnalyzeContentRequest { bool enable_partial_automated_agent_reply = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If multiple uttereances are detected in the audio stream, process + // them individually instead of stitching them together to form a single + // utterance. + bool output_multiple_utterances = 18 [(google.api.field_behavior) = OPTIONAL]; + // If true, `StreamingAnalyzeContentResponse.debugging_info` will get // populated. bool enable_debugging_info = 19; @@ -1340,6 +1345,217 @@ message SuggestKnowledgeAssistResponse { int32 context_size = 3; } +// Debug information related to ingested context reference. +message IngestedContextReferenceDebugInfo { + // Debug information related to ingested parameters from context reference. + message IngestedParameterDebugInfo { + // Enum representing the various states of parameter ingestion. + enum IngestionStatus { + // Default value, indicates that the ingestion status is not specified. + INGESTION_STATUS_UNSPECIFIED = 0; + + // Indicates that the parameter was successfully ingested. + INGESTION_STATUS_SUCCEEDED = 1; + + // Indicates that the parameter was not available for ingestion. + INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + + // Indicates that there was a failure parsing the parameter content. + INGESTION_STATUS_PARSE_FAILED = 3; + + // Indicates that the context reference had an unexpected number of + // content entries as Context reference should only have one entry. + INGESTION_STATUS_INVALID_ENTRY = 4; + + // Indicates that the context reference content was not in the expected + // format (e.g., JSON). + INGESTION_STATUS_INVALID_FORMAT = 5; + + // Indicates that the context reference language does not match the + // conversation language. + INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + } + + // The name of the parameter in the context reference. + string parameter = 1; + + // The ingestion status for this specific parameter. + IngestionStatus ingestion_status = 2; + } + + // Indicates if the project is allowlisted to use ingested context + // reference. + bool project_not_allowlisted = 1; + + // The status of context_reference retrieval from database. + bool context_reference_retrieved = 2; + + // Parameters ingested from the context reference. + repeated IngestedParameterDebugInfo ingested_parameters_debug_info = 3; +} + +// Message to represent the latency of the service. +message ServiceLatency { + // Message to represent the latency of an internal service. + message InternalServiceLatency { + // The name of the internal service. + string step = 1; + + // The latency of the internal service in milliseconds. + float latency_ms = 2; + + // The start time of the internal service. + google.protobuf.Timestamp start_time = 3; + + // The completion time of the internal service. + google.protobuf.Timestamp complete_time = 4; + } + + // A list of internal service latencies. + repeated InternalServiceLatency internal_service_latencies = 1; +} + +// Debug information related to Knowledge Assist feature. +message KnowledgeAssistDebugInfo { + // Reason for query generation failure. + enum QueryGenerationFailureReason { + // Default value. + QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + + // Query generation is blocked due to out of quota. + QUERY_GENERATION_OUT_OF_QUOTA = 1; + + // Call to Knowedge Assist query generation model fails. + QUERY_GENERATION_FAILED = 2; + + // Query generation model decides that there is no new topic change or + // there has been similar queries generated in the previous turns. + QUERY_GENERATION_NO_QUERY_GENERATED = 3; + + // Knowedge Assist generated query is blocked by RAI (Responsible AI). + QUERY_GENERATION_RAI_FAILED = 4; + + // Query generation is blocked by Knowledge Assist conversation profile + // level / agent id level filtering. + NOT_IN_ALLOWLIST = 5; + + // The generated query is blocked due to redaction. + QUERY_GENERATION_QUERY_REDACTED = 6; + + // Query generation failed due to LLM response parse failure. + QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + + // The conversation has no messages. + QUERY_GENERATION_EMPTY_CONVERSATION = 11; + + // The last message in the conversation is empty. + QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + + // The trigger event condition is not met. + // This occurs in the following scenarios: + // 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last + // message is not from the customer. + // 2. The trigger_event is AGENT_MESSAGE, but the last message is not from + // the agent. + QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + } + + // Reason for query categorization failure. + enum QueryCategorizationFailureReason { + // Default value. + QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + + // Vertex AI Search config supplied for query categorization is invalid. + QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + + // Vertex AI Search result does not contain a query categorization result. + QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + + // Vertex AI Search call fails. + QUERY_CATEGORIZATION_FAILED = 3; + } + + // Configured behaviors for Knowedge Assist. + message KnowledgeAssistBehavior { + // Whether data store agent rewriter was turned off for the request. + bool answer_generation_rewriter_on = 1; + + // Whether end_user_metadata is included in the data store agent call. + bool end_user_metadata_included = 2; + + // Whether customers configured to return query only in the + // conversation profile. + bool return_query_only = 4; + + // Whether customers configured to use pubsub to deliver. + bool use_pubsub_delivery = 5; + + // Whether customers configured to disable the synchronous delivery of + // Knowedge Assist response. + bool disable_sync_delivery = 6; + + // Whether previously suggested queries are included in the query generation + // process. + bool previous_queries_included = 7; + + // Translated message is included in query generation process. + bool use_translated_message = 8; + + // Safety filter is adjusted by user. + bool use_custom_safety_filter_level = 9; + + // Conversation transcript has mixed languages. + bool conversation_transcript_has_mixed_languages = 10; + + // Whether the agent language from the translation generator mismatches the + // end-user language. + bool query_generation_agent_language_mismatch = 11; + + // Whether the end-user language from the translation generator mismatches + // the end-user language. + bool query_generation_end_user_language_mismatch = 12; + + // This field indicates whether third party connectors are enabled for the + // project + bool third_party_connector_allowed = 13; + + // Indicates that the query generation model generated multiple queries. + bool multiple_queries_generated = 14; + + // Indicates that the generated query contains search context. + bool query_contained_search_context = 15; + + // Indicates that invalid items were skipped when parsing the LLM response. + bool invalid_items_query_suggestion_skipped = 16; + + // True if the primary suggested query was redacted and replaced by an + // additional query. + bool primary_query_redacted_and_replaced = 17; + + // The number of search contexts appended to the query. + int32 appended_search_context_count = 18; + } + + // Reason for query generation. + QueryGenerationFailureReason query_generation_failure_reason = 1; + + // Reason for query categorization. + QueryCategorizationFailureReason query_categorization_failure_reason = 2; + + // Response reason from datastore which indicates data serving status or + // answer quality degradation. + DatastoreResponseReason datastore_response_reason = 3; + + // Configured behaviors for Knowedge Assist. + KnowledgeAssistBehavior knowledge_assist_behavior = 4; + + // Information about parameters ingested for search knowledge. + IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + + // The latency of the service. + ServiceLatency service_latency = 6; +} + // Represents a Knowledge Assist answer. message KnowledgeAssistAnswer { // Represents a suggested query. @@ -1404,4 +1620,41 @@ message KnowledgeAssistAnswer { // Format: `projects//locations//answer // Records/`. string answer_record = 3; + + // Debug information related to Knowledge Assist feature. + KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; +} + +// Response reason from datastore which indicates data serving status or +// answer quality degradation. +enum DatastoreResponseReason { + // Default value. + DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + + // No specific response reason from datastore. + NONE = 1; + + // Search is blocked due to out of quota. + SEARCH_OUT_OF_QUOTA = 2; + + // Search returns empty results. + SEARCH_EMPTY_RESULTS = 3; + + // Generative AI is disabled. + ANSWER_GENERATION_GEN_AI_DISABLED = 4; + + // Answer generation is blocked due to out of quota. + ANSWER_GENERATION_OUT_OF_QUOTA = 5; + + // Answer generation encounters an error. + ANSWER_GENERATION_ERROR = 6; + + // Answer generation does not have enough information to generate answer. + ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + + // Answer generation is blocked by RAI (Responsible AI) failure. + ANSWER_GENERATION_RAI_FAILED = 8; + + // Answer generation is not grounded on reliable sources. + ANSWER_GENERATION_NOT_GROUNDED = 9; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto index 8580c792b5d4..a4b6c2cd7b37 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto index 4fe1a1cee2a7..ee935f1da3e2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/sip_trunk.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/sip_trunk.proto index b5982f22e8b7..1c2ebbe4f5fb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/sip_trunk.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/sip_trunk.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool.proto index 76c44b3d28e4..f1bb49543a45 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool_call.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool_call.proto index 3b838539fe2f..827c619d2a26 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool_call.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool_call.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,6 +53,30 @@ message ToolCall { type: "dialogflow.googleapis.com/Tool" } ]; + + // Optional. CES tool name for this call. + // Format: + // `projects//locations//apps//tools/`. + string ces_tool = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. CES toolset name for this call. + // Format: + // `projects//locations//apps//toolsets/ToolsetID>`. + string ces_toolset = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. CES app name for this call. + // Format: + // `projects//locations//apps/`. + string ces_app = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; } // Optional. A human readable short name of the tool, to be shown on the UI. @@ -98,6 +122,30 @@ message ToolCallResult { type: "dialogflow.googleapis.com/Tool" } ]; + + // Optional. CES toolset name for this call. + // Format: + // `projects//locations//apps//toolsets/ToolsetID>`. + string ces_toolset = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. CES tool name for this call. + // Format: + // `projects//locations//apps//tools/`. + string ces_tool = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. CES app name for this call. + // Format: + // `projects//locations//apps/`. + string ces_app = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; } // Optional. The name of the tool's action associated with this call. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/toolset.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/toolset.proto new file mode 100644 index 000000000000..840f53dce151 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/toolset.proto @@ -0,0 +1,51 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "ToolsetProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/Toolset" + pattern: "projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}" +}; + +// A tool that is created from a toolset. +message ToolsetTool { + // Required. The name of the toolset to retrieve the schema for. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + string toolset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. The operationId field of the OpenAPI endpoint. The operationId + // must be present in the toolset's definition. + string operation_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether the tool requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto index debaae21d6cc..c3cec8bb41f4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/version.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/version.proto index 6624cb363fad..3c6246443c6b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/version.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto index 9ca45adc6b18..671b57ec2b41 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java new file mode 100644 index 000000000000..33651db0df69 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public final class CesAppProto extends com.google.protobuf.GeneratedFile { + private CesAppProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesAppProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/dialogflow/v2beta1/ces_ap" + + "p.proto\022\037google.cloud.dialogflow.v2beta1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032*google/cloud/dialo" + + "gflow/v2beta1/tool.proto\"\243\001\n\nCesAppSpec\022" + + "/\n\007ces_app\030\001 \001(\tB\036\340A\001\372A\030\n\026ces.googleapis" + + ".com/App\022d\n\030confirmation_requirement\030\002 \001" + + "(\0162=.google.cloud.dialogflow.v2beta1.Too" + + "l.ConfirmationRequirementB\003\340A\001B\357\001\n#com.g" + + "oogle.cloud.dialogflow.v2beta1B\013CesAppPr" + + "otoP\001ZCcloud.google.com/go/dialogflow/ap" + + "iv2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252" + + "\002\037Google.Cloud.Dialogflow.V2Beta1\352AL\n\026ce" + + "s.googleapis.com/App\0222projects/{project}" + + "/locations/{location}/apps/{app}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor, + new java.lang.String[] { + "CesApp", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java new file mode 100644 index 000000000000..c52ee5f60455 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java @@ -0,0 +1,800 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                  + * Spec of CES app that the generator can choose from.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CesAppSpec} + */ +@com.google.protobuf.Generated +public final class CesAppSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CesAppSpec) + CesAppSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesAppSpec"); + } + + // Use CesAppSpec.newBuilder() to construct. + private CesAppSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesAppSpec() { + cesApp_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CesAppSpec.class, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder.class); + } + + public static final int CES_APP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cesApp_ = ""; + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + @java.lang.Override + public java.lang.String getCesApp() { + java.lang.Object ref = cesApp_; + 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(); + cesApp_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = cesApp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesApp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 2; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(cesApp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cesApp_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesApp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cesApp_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); + } + 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.dialogflow.v2beta1.CesAppSpec)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.CesAppSpec other = + (com.google.cloud.dialogflow.v2beta1.CesAppSpec) obj; + + if (!getCesApp().equals(other.getCesApp())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) 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) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec 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.dialogflow.v2beta1.CesAppSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec 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.dialogflow.v2beta1.CesAppSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.CesAppSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Spec of CES app that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CesAppSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.CesAppSpec) + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CesAppSpec.class, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.CesAppSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cesApp_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.CesAppSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec build() { + com.google.cloud.dialogflow.v2beta1.CesAppSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec buildPartial() { + com.google.cloud.dialogflow.v2beta1.CesAppSpec result = + new com.google.cloud.dialogflow.v2beta1.CesAppSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.CesAppSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cesApp_ = cesApp_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.CesAppSpec) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.CesAppSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.CesAppSpec other) { + if (other == com.google.cloud.dialogflow.v2beta1.CesAppSpec.getDefaultInstance()) return this; + if (!other.getCesApp().isEmpty()) { + cesApp_ = other.cesApp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + 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: + { + cesApp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 cesApp_ = ""; + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = cesApp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesApp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = cesApp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesApp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cesApp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesApp() { + cesApp_ = getDefaultInstance().getCesApp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cesApp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000002); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CesAppSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CesAppSpec) + private static final com.google.cloud.dialogflow.v2beta1.CesAppSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CesAppSpec(); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesAppSpec 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.dialogflow.v2beta1.CesAppSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java new file mode 100644 index 000000000000..ad0919cce9c8 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface CesAppSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.CesAppSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolProto.java new file mode 100644 index 000000000000..5c51310a273e --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolProto.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public final class CesToolProto extends com.google.protobuf.GeneratedFile { + private CesToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/dialogflow/v2beta1/ces_to" + + "ol.proto\022\037google.cloud.dialogflow.v2beta" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032*google/cloud/dial" + + "ogflow/v2beta1/tool.proto\"\246\001\n\013CesToolSpe" + + "c\0221\n\010ces_tool\030\001 \001(\tB\037\340A\001\372A\031\n\027ces.googlea" + + "pis.com/Tool\022d\n\030confirmation_requirement" + + "\030\002 \001(\0162=.google.cloud.dialogflow.v2beta1" + + ".Tool.ConfirmationRequirementB\003\340A\001B\241\001\n#c" + + "om.google.cloud.dialogflow.v2beta1B\014CesT" + + "oolProtoP\001ZCcloud.google.com/go/dialogfl" + + "ow/apiv2beta1/dialogflowpb;dialogflowpb\242" + + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor, + new java.lang.String[] { + "CesTool", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpec.java new file mode 100644 index 000000000000..45d75e88d36a --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpec.java @@ -0,0 +1,801 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                  + * Spec of CES tool that the generator can choose from.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CesToolSpec} + */ +@com.google.protobuf.Generated +public final class CesToolSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CesToolSpec) + CesToolSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesToolSpec"); + } + + // Use CesToolSpec.newBuilder() to construct. + private CesToolSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesToolSpec() { + cesTool_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CesToolSpec.class, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder.class); + } + + public static final int CES_TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cesTool_ = ""; + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>/tools/<tool ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = cesTool_; + 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(); + cesTool_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>/tools/<tool ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = cesTool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesTool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 2; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(cesTool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cesTool_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesTool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cesTool_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); + } + 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.dialogflow.v2beta1.CesToolSpec)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.CesToolSpec other = + (com.google.cloud.dialogflow.v2beta1.CesToolSpec) obj; + + if (!getCesTool().equals(other.getCesTool())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) 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) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec 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.dialogflow.v2beta1.CesToolSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec 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.dialogflow.v2beta1.CesToolSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.CesToolSpec 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Spec of CES tool that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CesToolSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.CesToolSpec) + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CesToolSpec.class, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.CesToolSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cesTool_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.CesToolSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec build() { + com.google.cloud.dialogflow.v2beta1.CesToolSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec buildPartial() { + com.google.cloud.dialogflow.v2beta1.CesToolSpec result = + new com.google.cloud.dialogflow.v2beta1.CesToolSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.CesToolSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cesTool_ = cesTool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.CesToolSpec) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.CesToolSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.CesToolSpec other) { + if (other == com.google.cloud.dialogflow.v2beta1.CesToolSpec.getDefaultInstance()) + return this; + if (!other.getCesTool().isEmpty()) { + cesTool_ = other.cesTool_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + 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: + { + cesTool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 cesTool_ = ""; + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = cesTool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesTool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = cesTool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesTool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cesTool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + cesTool_ = getDefaultInstance().getCesTool(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +     * ID>/tools/<tool ID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cesTool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000002); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CesToolSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CesToolSpec) + private static final com.google.cloud.dialogflow.v2beta1.CesToolSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CesToolSpec(); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesToolSpec 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.dialogflow.v2beta1.CesToolSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpecOrBuilder.java new file mode 100644 index 000000000000..0042dc5f5943 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface CesToolSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.CesToolSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>/tools/<tool ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                  +   * ID>/tools/<tool ID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java index 3a74171c8561..428642edf021 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java @@ -73,6 +73,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 17: return internalGetIngestedContextReferences(); + case 18: + return internalGetInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -8096,6 +8098,893 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface GeneratorContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * Output only. The type of the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + int getGeneratorTypeValue(); + + /** + * + * + *
                                                                                                                                  +     * Output only. The type of the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + getGeneratorType(); + } + + /** + * + * + *
                                                                                                                                  +   * Represents the context of a generator.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext} + */ + public static final class GeneratorContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + GeneratorContextOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeneratorContext"); + } + + // Use GeneratorContext.newBuilder() to construct. + private GeneratorContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GeneratorContext() { + generatorType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.class, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder.class); + } + + /** + * + * + *
                                                                                                                                  +     * The available generator types.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType} + */ + public enum GeneratorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +       * Unspecified generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * GENERATOR_TYPE_UNSPECIFIED = 0; + */ + GENERATOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +       * Free form generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * FREE_FORM = 1; + */ + FREE_FORM(1), + /** + * + * + *
                                                                                                                                  +       * Agent coaching generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * AGENT_COACHING = 2; + */ + AGENT_COACHING(2), + /** + * + * + *
                                                                                                                                  +       * Summarization generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * SUMMARIZATION = 3; + */ + SUMMARIZATION(3), + /** + * + * + *
                                                                                                                                  +       * Translation generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * TRANSLATION = 4; + */ + TRANSLATION(4), + /** + * + * + *
                                                                                                                                  +       * Agent feedback generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * AGENT_FEEDBACK = 5; + */ + AGENT_FEEDBACK(5), + /** + * + * + *
                                                                                                                                  +       * Customer message generation generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * CUSTOMER_MESSAGE_GENERATION = 6; + */ + CUSTOMER_MESSAGE_GENERATION(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeneratorType"); + } + + /** + * + * + *
                                                                                                                                  +       * Unspecified generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * GENERATOR_TYPE_UNSPECIFIED = 0; + */ + public static final int GENERATOR_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +       * Free form generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * FREE_FORM = 1; + */ + public static final int FREE_FORM_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +       * Agent coaching generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * AGENT_COACHING = 2; + */ + public static final int AGENT_COACHING_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +       * Summarization generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * SUMMARIZATION = 3; + */ + public static final int SUMMARIZATION_VALUE = 3; + + /** + * + * + *
                                                                                                                                  +       * Translation generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * TRANSLATION = 4; + */ + public static final int TRANSLATION_VALUE = 4; + + /** + * + * + *
                                                                                                                                  +       * Agent feedback generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * AGENT_FEEDBACK = 5; + */ + public static final int AGENT_FEEDBACK_VALUE = 5; + + /** + * + * + *
                                                                                                                                  +       * Customer message generation generator type.
                                                                                                                                  +       * 
                                                                                                                                  + * + * CUSTOMER_MESSAGE_GENERATION = 6; + */ + public static final int CUSTOMER_MESSAGE_GENERATION_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GeneratorType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GeneratorType forNumber(int value) { + switch (value) { + case 0: + return GENERATOR_TYPE_UNSPECIFIED; + case 1: + return FREE_FORM; + case 2: + return AGENT_COACHING; + case 3: + return SUMMARIZATION; + case 4: + return TRANSLATION; + case 5: + return AGENT_FEEDBACK; + case 6: + return CUSTOMER_MESSAGE_GENERATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GeneratorType findValueByNumber(int number) { + return GeneratorType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GeneratorType[] VALUES = values(); + + public static GeneratorType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GeneratorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType) + } + + public static final int GENERATOR_TYPE_FIELD_NUMBER = 1; + private int generatorType_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Output only. The type of the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + @java.lang.Override + public int getGeneratorTypeValue() { + return generatorType_; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The type of the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + getGeneratorType() { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType result = + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType.forNumber( + generatorType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .UNRECOGNIZED + : result; + } + + 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 (generatorType_ + != com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .GENERATOR_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, generatorType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (generatorType_ + != com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .GENERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, generatorType_); + } + 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.dialogflow.v2beta1.Conversation.GeneratorContext)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext other = + (com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) obj; + + if (generatorType_ != other.generatorType_) 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) + GENERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + generatorType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext 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.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext 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.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.Conversation.GeneratorContext 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Represents the context of a generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.class, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatorType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext build() { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext buildPartial() { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext result = + new com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatorType_ = generatorType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + .getDefaultInstance()) return this; + if (other.generatorType_ != 0) { + setGeneratorTypeValue(other.getGeneratorTypeValue()); + } + 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 8: + { + generatorType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int generatorType_ = 0; + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + @java.lang.Override + public int getGeneratorTypeValue() { + return generatorType_; + } + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for generatorType to set. + * @return This builder for chaining. + */ + public Builder setGeneratorTypeValue(int value) { + generatorType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + getGeneratorType() { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType result = + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .forNumber(generatorType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The generatorType to set. + * @return This builder for chaining. + */ + public Builder setGeneratorType( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + generatorType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Output only. The type of the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGeneratorType() { + bitField0_ = (bitField0_ & ~0x00000001); + generatorType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + private static final com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext(); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratorContext 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.dialogflow.v2beta1.Conversation.GeneratorContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -8569,6 +9458,72 @@ public boolean hasTelephonyConnectionInfo() { : telephonyConnectionInfo_; } + public static final int INITIAL_CONVERSATION_PROFILE_FIELD_NUMBER = 15; + private com.google.cloud.dialogflow.v2beta1.ConversationProfile initialConversationProfile_; + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + @java.lang.Override + public boolean hasInitialConversationProfile() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ConversationProfile getInitialConversationProfile() { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder() { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } + public static final int INGESTED_CONTEXT_REFERENCES_FIELD_NUMBER = 17; private static final class IngestedContextReferencesDefaultEntryHolder { @@ -8619,63 +9574,202 @@ public int getIngestedContextReferencesCount() { * */ @java.lang.Override - public boolean containsIngestedContextReferences(java.lang.String key) { + public boolean containsIngestedContextReferences(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetIngestedContextReferences().getMap().containsKey(key); + } + + /** Use {@link #getIngestedContextReferencesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> + getIngestedContextReferences() { + return getIngestedContextReferencesMap(); + } + + /** + * + * + *
                                                                                                                                  +   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> + getIngestedContextReferencesMap() { + return internalGetIngestedContextReferences().getMap(); + } + + /** + * + * + *
                                                                                                                                  +   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference + getIngestedContextReferencesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> + map = internalGetIngestedContextReferences().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                                                                  +   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference + getIngestedContextReferencesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> + map = internalGetIngestedContextReferences().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INITIAL_GENERATOR_CONTEXTS_FIELD_NUMBER = 18; + + private static final class InitialGeneratorContextsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + initialGeneratorContexts_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + internalGetInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InitialGeneratorContextsDefaultEntryHolder.defaultEntry); + } + return initialGeneratorContexts_; + } + + public int getInitialGeneratorContextsCount() { + return internalGetInitialGeneratorContexts().getMap().size(); + } + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInitialGeneratorContexts(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetIngestedContextReferences().getMap().containsKey(key); + return internalGetInitialGeneratorContexts().getMap().containsKey(key); } - /** Use {@link #getIngestedContextReferencesMap()} instead. */ + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> - getIngestedContextReferences() { - return getIngestedContextReferencesMap(); + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getInitialGeneratorContexts() { + return getInitialGeneratorContextsMap(); } /** * * *
                                                                                                                                  -   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                      * 
                                                                                                                                  * * - * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> - getIngestedContextReferencesMap() { - return internalGetIngestedContextReferences().getMap(); + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getInitialGeneratorContextsMap() { + return internalGetInitialGeneratorContexts().getMap(); } /** * * *
                                                                                                                                  -   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                      * 
                                                                                                                                  * * - * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public /* nullable */ com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference - getIngestedContextReferencesOrDefault( + public /* nullable */ com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference defaultValue) { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> - map = internalGetIngestedContextReferences().getMap(); + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + map = internalGetInitialGeneratorContexts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -8683,22 +9777,23 @@ public boolean containsIngestedContextReferences(java.lang.String key) { * * *
                                                                                                                                  -   * Output only. The context reference updates provided by external systems.
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                      * 
                                                                                                                                  * * - * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference - getIngestedContextReferencesOrThrow(java.lang.String key) { + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> - map = internalGetIngestedContextReferences().getMap(); + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + map = internalGetInitialGeneratorContexts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8749,11 +9844,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getTelephonyConnectionInfo()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getInitialConversationProfile()); + } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetIngestedContextReferences(), IngestedContextReferencesDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetInitialGeneratorContexts(), + InitialGeneratorContextsDefaultEntryHolder.defaultEntry, + 18); getUnknownFields().writeTo(output); } @@ -8795,6 +9898,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getTelephonyConnectionInfo()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getInitialConversationProfile()); + } for (java.util.Map.Entry< java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> entry : internalGetIngestedContextReferences().getMap().entrySet()) { @@ -8809,6 +9917,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, ingestedContextReferences__); } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + entry : internalGetInitialGeneratorContexts().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + initialGeneratorContexts__ = + InitialGeneratorContextsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, initialGeneratorContexts__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8845,8 +9967,15 @@ public boolean equals(final java.lang.Object obj) { if (hasTelephonyConnectionInfo()) { if (!getTelephonyConnectionInfo().equals(other.getTelephonyConnectionInfo())) return false; } + if (hasInitialConversationProfile() != other.hasInitialConversationProfile()) return false; + if (hasInitialConversationProfile()) { + if (!getInitialConversationProfile().equals(other.getInitialConversationProfile())) + return false; + } if (!internalGetIngestedContextReferences() .equals(other.internalGetIngestedContextReferences())) return false; + if (!internalGetInitialGeneratorContexts().equals(other.internalGetInitialGeneratorContexts())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8882,10 +10011,18 @@ public int hashCode() { hash = (37 * hash) + TELEPHONY_CONNECTION_INFO_FIELD_NUMBER; hash = (53 * hash) + getTelephonyConnectionInfo().hashCode(); } + if (hasInitialConversationProfile()) { + hash = (37 * hash) + INITIAL_CONVERSATION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getInitialConversationProfile().hashCode(); + } if (!internalGetIngestedContextReferences().getMap().isEmpty()) { hash = (37 * hash) + INGESTED_CONTEXT_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + internalGetIngestedContextReferences().hashCode(); } + if (!internalGetInitialGeneratorContexts().getMap().isEmpty()) { + hash = (37 * hash) + INITIAL_GENERATOR_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInitialGeneratorContexts().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -9014,6 +10151,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 17: return internalGetIngestedContextReferences(); + case 18: + return internalGetInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -9025,6 +10164,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 17: return internalGetMutableIngestedContextReferences(); + case 18: + return internalGetMutableInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -9056,6 +10197,7 @@ private void maybeForceBuilderInitialization() { internalGetStartTimeFieldBuilder(); internalGetEndTimeFieldBuilder(); internalGetTelephonyConnectionInfoFieldBuilder(); + internalGetInitialConversationProfileFieldBuilder(); } } @@ -9087,7 +10229,13 @@ public Builder clear() { telephonyConnectionInfoBuilder_.dispose(); telephonyConnectionInfoBuilder_ = null; } + initialConversationProfile_ = null; + if (initialConversationProfileBuilder_ != null) { + initialConversationProfileBuilder_.dispose(); + initialConversationProfileBuilder_ = null; + } internalGetMutableIngestedContextReferences().clear(); + internalGetMutableInitialGeneratorContexts().clear(); return this; } @@ -9158,10 +10306,22 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Conversation resu to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.initialConversationProfile_ = + initialConversationProfileBuilder_ == null + ? initialConversationProfile_ + : initialConversationProfileBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.ingestedContextReferences_ = internalGetIngestedContextReferences() .build(IngestedContextReferencesDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.initialGeneratorContexts_ = + internalGetInitialGeneratorContexts() + .build(InitialGeneratorContextsDefaultEntryHolder.defaultEntry); + } result.bitField0_ |= to_bitField0_; } @@ -9206,9 +10366,15 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Conversation other) if (other.hasTelephonyConnectionInfo()) { mergeTelephonyConnectionInfo(other.getTelephonyConnectionInfo()); } + if (other.hasInitialConversationProfile()) { + mergeInitialConversationProfile(other.getInitialConversationProfile()); + } internalGetMutableIngestedContextReferences() .mergeFrom(other.internalGetIngestedContextReferences()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; + internalGetMutableInitialGeneratorContexts() + .mergeFrom(other.internalGetInitialGeneratorContexts()); + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -9287,6 +10453,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 82 + case 122: + { + input.readMessage( + internalGetInitialConversationProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 122 case 138: { com.google.protobuf.MapEntry< @@ -9302,9 +10476,26 @@ public Builder mergeFrom( .put( ingestedContextReferences__.getKey(), ingestedContextReferences__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 138 + case 146: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + initialGeneratorContexts__ = + input.readMessage( + InitialGeneratorContextsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableInitialGeneratorContexts() + .ensureBuilderMap() + .put( + initialGeneratorContexts__.getKey(), initialGeneratorContexts__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10591,22 +11782,250 @@ public Builder setTelephonyConnectionInfo( * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTelephonyConnectionInfo( + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder + builderForValue) { + if (telephonyConnectionInfoBuilder_ == null) { + telephonyConnectionInfo_ = builderForValue.build(); + } else { + telephonyConnectionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTelephonyConnectionInfo( + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo value) { + if (telephonyConnectionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && telephonyConnectionInfo_ != null + && telephonyConnectionInfo_ + != com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo + .getDefaultInstance()) { + getTelephonyConnectionInfoBuilder().mergeFrom(value); + } else { + telephonyConnectionInfo_ = value; + } + } else { + telephonyConnectionInfoBuilder_.mergeFrom(value); + } + if (telephonyConnectionInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTelephonyConnectionInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + telephonyConnectionInfo_ = null; + if (telephonyConnectionInfoBuilder_ != null) { + telephonyConnectionInfoBuilder_.dispose(); + telephonyConnectionInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder + getTelephonyConnectionInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetTelephonyConnectionInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder + getTelephonyConnectionInfoOrBuilder() { + if (telephonyConnectionInfoBuilder_ != null) { + return telephonyConnectionInfoBuilder_.getMessageOrBuilder(); + } else { + return telephonyConnectionInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo + .getDefaultInstance() + : telephonyConnectionInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The telephony connection information.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo, + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder, + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder> + internalGetTelephonyConnectionInfoFieldBuilder() { + if (telephonyConnectionInfoBuilder_ == null) { + telephonyConnectionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo, + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder, + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder>( + getTelephonyConnectionInfo(), getParentForChildren(), isClean()); + telephonyConnectionInfo_ = null; + } + return telephonyConnectionInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.ConversationProfile initialConversationProfile_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ConversationProfile, + com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder> + initialConversationProfileBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + public boolean hasInitialConversationProfile() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + public com.google.cloud.dialogflow.v2beta1.ConversationProfile getInitialConversationProfile() { + if (initialConversationProfileBuilder_ == null) { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } else { + return initialConversationProfileBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInitialConversationProfile( + com.google.cloud.dialogflow.v2beta1.ConversationProfile value) { + if (initialConversationProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialConversationProfile_ = value; + } else { + initialConversationProfileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setTelephonyConnectionInfo( - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder - builderForValue) { - if (telephonyConnectionInfoBuilder_ == null) { - telephonyConnectionInfo_ = builderForValue.build(); + public Builder setInitialConversationProfile( + com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder builderForValue) { + if (initialConversationProfileBuilder_ == null) { + initialConversationProfile_ = builderForValue.build(); } else { - telephonyConnectionInfoBuilder_.setMessage(builderForValue.build()); + initialConversationProfileBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10615,30 +12034,31 @@ public Builder setTelephonyConnectionInfo( * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeTelephonyConnectionInfo( - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo value) { - if (telephonyConnectionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && telephonyConnectionInfo_ != null - && telephonyConnectionInfo_ - != com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo - .getDefaultInstance()) { - getTelephonyConnectionInfoBuilder().mergeFrom(value); + public Builder mergeInitialConversationProfile( + com.google.cloud.dialogflow.v2beta1.ConversationProfile value) { + if (initialConversationProfileBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && initialConversationProfile_ != null + && initialConversationProfile_ + != com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance()) { + getInitialConversationProfileBuilder().mergeFrom(value); } else { - telephonyConnectionInfo_ = value; + initialConversationProfile_ = value; } } else { - telephonyConnectionInfoBuilder_.mergeFrom(value); + initialConversationProfileBuilder_.mergeFrom(value); } - if (telephonyConnectionInfo_ != null) { - bitField0_ |= 0x00000080; + if (initialConversationProfile_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -10648,19 +12068,21 @@ public Builder mergeTelephonyConnectionInfo( * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearTelephonyConnectionInfo() { - bitField0_ = (bitField0_ & ~0x00000080); - telephonyConnectionInfo_ = null; - if (telephonyConnectionInfoBuilder_ != null) { - telephonyConnectionInfoBuilder_.dispose(); - telephonyConnectionInfoBuilder_ = null; + public Builder clearInitialConversationProfile() { + bitField0_ = (bitField0_ & ~0x00000100); + initialConversationProfile_ = null; + if (initialConversationProfileBuilder_ != null) { + initialConversationProfileBuilder_.dispose(); + initialConversationProfileBuilder_ = null; } onChanged(); return this; @@ -10670,40 +12092,43 @@ public Builder clearTelephonyConnectionInfo() { * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder - getTelephonyConnectionInfoBuilder() { - bitField0_ |= 0x00000080; + public com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder + getInitialConversationProfileBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return internalGetTelephonyConnectionInfoFieldBuilder().getBuilder(); + return internalGetInitialConversationProfileFieldBuilder().getBuilder(); } /** * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder - getTelephonyConnectionInfoOrBuilder() { - if (telephonyConnectionInfoBuilder_ != null) { - return telephonyConnectionInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder() { + if (initialConversationProfileBuilder_ != null) { + return initialConversationProfileBuilder_.getMessageOrBuilder(); } else { - return telephonyConnectionInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo - .getDefaultInstance() - : telephonyConnectionInfo_; + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; } } @@ -10711,28 +12136,30 @@ public Builder clearTelephonyConnectionInfo() { * * *
                                                                                                                                  -     * Output only. The telephony connection information.
                                                                                                                                  +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +     * config read at conversation creation time.
                                                                                                                                        * 
                                                                                                                                  * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo, - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder, - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder> - internalGetTelephonyConnectionInfoFieldBuilder() { - if (telephonyConnectionInfoBuilder_ == null) { - telephonyConnectionInfoBuilder_ = + com.google.cloud.dialogflow.v2beta1.ConversationProfile, + com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder> + internalGetInitialConversationProfileFieldBuilder() { + if (initialConversationProfileBuilder_ == null) { + initialConversationProfileBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo, - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder, - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder>( - getTelephonyConnectionInfo(), getParentForChildren(), isClean()); - telephonyConnectionInfo_ = null; + com.google.cloud.dialogflow.v2beta1.ConversationProfile, + com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder>( + getInitialConversationProfile(), getParentForChildren(), isClean()); + initialConversationProfile_ = null; } - return telephonyConnectionInfoBuilder_; + return initialConversationProfileBuilder_; } private static final class IngestedContextReferencesConverter @@ -10791,7 +12218,7 @@ public com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference build( ingestedContextReferences_ = new com.google.protobuf.MapFieldBuilder<>(ingestedContextReferencesConverter); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return ingestedContextReferences_; } @@ -10903,7 +12330,7 @@ public boolean containsIngestedContextReferences(java.lang.String key) { } public Builder clearIngestedContextReferences() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableIngestedContextReferences().clear(); return this; } @@ -10932,7 +12359,7 @@ public Builder removeIngestedContextReferences(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> getMutableIngestedContextReferences() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableIngestedContextReferences().ensureMessageMap(); } @@ -10957,7 +12384,7 @@ public Builder putIngestedContextReferences( throw new NullPointerException("map value"); } internalGetMutableIngestedContextReferences().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -10984,7 +12411,7 @@ public Builder putAllIngestedContextReferences( } } internalGetMutableIngestedContextReferences().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -11019,6 +12446,298 @@ public Builder putAllIngestedContextReferences( return (com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference.Builder) entry; } + private static final class InitialGeneratorContextsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> { + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext build( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder val) { + if (val instanceof com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) { + return (com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) val; + } + return ((com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + defaultEntry() { + return InitialGeneratorContextsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final InitialGeneratorContextsConverter initialGeneratorContextsConverter = + new InitialGeneratorContextsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder> + initialGeneratorContexts_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder> + internalGetInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(initialGeneratorContextsConverter); + } + return initialGeneratorContexts_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder> + internalGetMutableInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + initialGeneratorContexts_ = + new com.google.protobuf.MapFieldBuilder<>(initialGeneratorContextsConverter); + } + bitField0_ |= 0x00000400; + onChanged(); + return initialGeneratorContexts_; + } + + public int getInitialGeneratorContextsCount() { + return internalGetInitialGeneratorContexts().ensureBuilderMap().size(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInitialGeneratorContexts().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getInitialGeneratorContexts() { + return getInitialGeneratorContextsMap(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getInitialGeneratorContextsMap() { + return internalGetInitialGeneratorContexts().getImmutableMap(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder> + map = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + return map.containsKey(key) + ? initialGeneratorContextsConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder> + map = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return initialGeneratorContextsConverter.build(map.get(key)); + } + + public Builder clearInitialGeneratorContexts() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableInitialGeneratorContexts().clear(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getMutableInitialGeneratorContexts() { + bitField0_ |= 0x00000400; + return internalGetMutableInitialGeneratorContexts().ensureMessageMap(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putInitialGeneratorContexts( + java.lang.String key, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllInitialGeneratorContexts( + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. A map with generator name as key and generator context as
                                                                                                                                  +     * value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder + putInitialGeneratorContextsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder> + builderMap = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) { + entry = + ((com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder) entry; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Conversation) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java index 767317709374..b9720518e6d9 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java @@ -357,6 +357,56 @@ public interface ConversationOrBuilder com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder getTelephonyConnectionInfoOrBuilder(); + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + boolean hasInitialConversationProfile(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + com.google.cloud.dialogflow.v2beta1.ConversationProfile getInitialConversationProfile(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                  +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                  +   * config read at conversation creation time.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder(); + /** * * @@ -433,4 +483,86 @@ public interface ConversationOrBuilder */ com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference getIngestedContextReferencesOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInitialGeneratorContextsCount(); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsInitialGeneratorContexts(java.lang.String key); + + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getInitialGeneratorContexts(); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getInitialGeneratorContextsMap(); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext defaultValue); + + /** + * + * + *
                                                                                                                                  +   * Output only. A map with generator name as key and generator context as
                                                                                                                                  +   * value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java index 6803695a061e..ec8a35a14efd 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java @@ -289,6 +289,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int USE_BIDI_STREAMING_FIELD_NUMBER = 23; + private boolean useBidiStreaming_ = false; + + /** + * + * + *
                                                                                                                                  +   * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                  +   * for the conversation profile.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useBidiStreaming. + */ + @java.lang.Override + public boolean getUseBidiStreaming() { + return useBidiStreaming_; + } + public static final int AUTOMATED_AGENT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig automatedAgentConfig_; @@ -1083,6 +1103,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(21, getNewRecognitionResultNotificationConfig()); } + if (useBidiStreaming_ != false) { + output.writeBool(23, useBidiStreaming_); + } getUnknownFields().writeTo(output); } @@ -1148,6 +1171,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 21, getNewRecognitionResultNotificationConfig()); } + if (useBidiStreaming_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, useBidiStreaming_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1174,6 +1200,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (getUseBidiStreaming() != other.getUseBidiStreaming()) return false; if (hasAutomatedAgentConfig() != other.hasAutomatedAgentConfig()) return false; if (hasAutomatedAgentConfig()) { if (!getAutomatedAgentConfig().equals(other.getAutomatedAgentConfig())) return false; @@ -1241,6 +1268,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + USE_BIDI_STREAMING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseBidiStreaming()); if (hasAutomatedAgentConfig()) { hash = (37 * hash) + AUTOMATED_AGENT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAutomatedAgentConfig().hashCode(); @@ -1455,6 +1484,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + useBidiStreaming_ = false; automatedAgentConfig_ = null; if (automatedAgentConfigBuilder_ != null) { automatedAgentConfigBuilder_.dispose(); @@ -1555,66 +1585,69 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ConversationProfi to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.useBidiStreaming_ = useBidiStreaming_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.automatedAgentConfig_ = automatedAgentConfigBuilder_ == null ? automatedAgentConfig_ : automatedAgentConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.humanAgentAssistantConfig_ = humanAgentAssistantConfigBuilder_ == null ? humanAgentAssistantConfig_ : humanAgentAssistantConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.humanAgentHandoffConfig_ = humanAgentHandoffConfigBuilder_ == null ? humanAgentHandoffConfig_ : humanAgentHandoffConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.notificationConfig_ = notificationConfigBuilder_ == null ? notificationConfig_ : notificationConfigBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.loggingConfig_ = loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.newMessageEventNotificationConfig_ = newMessageEventNotificationConfigBuilder_ == null ? newMessageEventNotificationConfig_ : newMessageEventNotificationConfigBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.newRecognitionResultNotificationConfig_ = newRecognitionResultNotificationConfigBuilder_ == null ? newRecognitionResultNotificationConfig_ : newRecognitionResultNotificationConfigBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.sttConfig_ = sttConfigBuilder_ == null ? sttConfig_ : sttConfigBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.languageCode_ = languageCode_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.timeZone_ = timeZone_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.securitySettings_ = securitySettings_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.ttsConfig_ = ttsConfigBuilder_ == null ? ttsConfig_ : ttsConfigBuilder_.build(); to_bitField0_ |= 0x00000400; } @@ -1650,6 +1683,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ConversationProfile if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (other.getUseBidiStreaming() != false) { + setUseBidiStreaming(other.getUseBidiStreaming()); + } if (other.hasAutomatedAgentConfig()) { mergeAutomatedAgentConfig(other.getAutomatedAgentConfig()); } @@ -1677,17 +1713,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ConversationProfile } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasTtsConfig()) { @@ -1735,7 +1771,7 @@ public Builder mergeFrom( { input.readMessage( internalGetAutomatedAgentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -1743,7 +1779,7 @@ public Builder mergeFrom( input.readMessage( internalGetHumanAgentAssistantConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 42: @@ -1751,21 +1787,21 @@ public Builder mergeFrom( input.readMessage( internalGetHumanAgentHandoffConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 42 case 50: { input.readMessage( internalGetNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( internalGetLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 58 case 66: @@ -1773,20 +1809,20 @@ public Builder mergeFrom( input.readMessage( internalGetNewMessageEventNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 66 case 74: { input.readMessage( internalGetSttConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 74 case 82: { languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 82 case 90: @@ -1806,20 +1842,20 @@ public Builder mergeFrom( case 106: { securitySettings_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 114: { timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 case 146: { input.readMessage( internalGetTtsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 146 case 170: @@ -1827,9 +1863,15 @@ public Builder mergeFrom( input.readMessage( internalGetNewRecognitionResultNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 170 + case 184: + { + useBidiStreaming_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 184 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2505,6 +2547,65 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private boolean useBidiStreaming_; + + /** + * + * + *
                                                                                                                                  +     * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                  +     * for the conversation profile.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useBidiStreaming. + */ + @java.lang.Override + public boolean getUseBidiStreaming() { + return useBidiStreaming_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                  +     * for the conversation profile.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useBidiStreaming to set. + * @return This builder for chaining. + */ + public Builder setUseBidiStreaming(boolean value) { + + useBidiStreaming_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                  +     * for the conversation profile.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseBidiStreaming() { + bitField0_ = (bitField0_ & ~0x00000010); + useBidiStreaming_ = false; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig automatedAgentConfig_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig, @@ -2525,7 +2626,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the automatedAgentConfig field is set. */ public boolean hasAutomatedAgentConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2570,7 +2671,7 @@ public Builder setAutomatedAgentConfig( } else { automatedAgentConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2592,7 +2693,7 @@ public Builder setAutomatedAgentConfig( } else { automatedAgentConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2610,7 +2711,7 @@ public Builder setAutomatedAgentConfig( public Builder mergeAutomatedAgentConfig( com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig value) { if (automatedAgentConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && automatedAgentConfig_ != null && automatedAgentConfig_ != com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig.getDefaultInstance()) { @@ -2622,7 +2723,7 @@ public Builder mergeAutomatedAgentConfig( automatedAgentConfigBuilder_.mergeFrom(value); } if (automatedAgentConfig_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2639,7 +2740,7 @@ public Builder mergeAutomatedAgentConfig( * */ public Builder clearAutomatedAgentConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); automatedAgentConfig_ = null; if (automatedAgentConfigBuilder_ != null) { automatedAgentConfigBuilder_.dispose(); @@ -2661,7 +2762,7 @@ public Builder clearAutomatedAgentConfig() { */ public com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig.Builder getAutomatedAgentConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetAutomatedAgentConfigFieldBuilder().getBuilder(); } @@ -2736,7 +2837,7 @@ public Builder clearAutomatedAgentConfig() { * @return Whether the humanAgentAssistantConfig field is set. */ public boolean hasHumanAgentAssistantConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2784,7 +2885,7 @@ public Builder setHumanAgentAssistantConfig( } else { humanAgentAssistantConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2807,7 +2908,7 @@ public Builder setHumanAgentAssistantConfig( } else { humanAgentAssistantConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2826,7 +2927,7 @@ public Builder setHumanAgentAssistantConfig( public Builder mergeHumanAgentAssistantConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig value) { if (humanAgentAssistantConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && humanAgentAssistantConfig_ != null && humanAgentAssistantConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -2839,7 +2940,7 @@ public Builder mergeHumanAgentAssistantConfig( humanAgentAssistantConfigBuilder_.mergeFrom(value); } if (humanAgentAssistantConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2857,7 +2958,7 @@ public Builder mergeHumanAgentAssistantConfig( * */ public Builder clearHumanAgentAssistantConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); humanAgentAssistantConfig_ = null; if (humanAgentAssistantConfigBuilder_ != null) { humanAgentAssistantConfigBuilder_.dispose(); @@ -2880,7 +2981,7 @@ public Builder clearHumanAgentAssistantConfig() { */ public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.Builder getHumanAgentAssistantConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetHumanAgentAssistantConfigFieldBuilder().getBuilder(); } @@ -2959,7 +3060,7 @@ public Builder clearHumanAgentAssistantConfig() { * @return Whether the humanAgentHandoffConfig field is set. */ public boolean hasHumanAgentHandoffConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3013,7 +3114,7 @@ public Builder setHumanAgentHandoffConfig( } else { humanAgentHandoffConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3039,7 +3140,7 @@ public Builder setHumanAgentHandoffConfig( } else { humanAgentHandoffConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3061,7 +3162,7 @@ public Builder setHumanAgentHandoffConfig( public Builder mergeHumanAgentHandoffConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig value) { if (humanAgentHandoffConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && humanAgentHandoffConfig_ != null && humanAgentHandoffConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig @@ -3074,7 +3175,7 @@ public Builder mergeHumanAgentHandoffConfig( humanAgentHandoffConfigBuilder_.mergeFrom(value); } if (humanAgentHandoffConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -3095,7 +3196,7 @@ public Builder mergeHumanAgentHandoffConfig( * */ public Builder clearHumanAgentHandoffConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); humanAgentHandoffConfig_ = null; if (humanAgentHandoffConfigBuilder_ != null) { humanAgentHandoffConfigBuilder_.dispose(); @@ -3121,7 +3222,7 @@ public Builder clearHumanAgentHandoffConfig() { */ public com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.Builder getHumanAgentHandoffConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetHumanAgentHandoffConfigFieldBuilder().getBuilder(); } @@ -3201,7 +3302,7 @@ public Builder clearHumanAgentHandoffConfig() { * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3244,7 +3345,7 @@ public Builder setNotificationConfig( } else { notificationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3265,7 +3366,7 @@ public Builder setNotificationConfig( } else { notificationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3282,7 +3383,7 @@ public Builder setNotificationConfig( public Builder mergeNotificationConfig( com.google.cloud.dialogflow.v2beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && notificationConfig_ != null && notificationConfig_ != com.google.cloud.dialogflow.v2beta1.NotificationConfig.getDefaultInstance()) { @@ -3294,7 +3395,7 @@ public Builder mergeNotificationConfig( notificationConfigBuilder_.mergeFrom(value); } if (notificationConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3310,7 +3411,7 @@ public Builder mergeNotificationConfig( * .google.cloud.dialogflow.v2beta1.NotificationConfig notification_config = 6; */ public Builder clearNotificationConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); notificationConfig_ = null; if (notificationConfigBuilder_ != null) { notificationConfigBuilder_.dispose(); @@ -3331,7 +3432,7 @@ public Builder clearNotificationConfig() { */ public com.google.cloud.dialogflow.v2beta1.NotificationConfig.Builder getNotificationConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetNotificationConfigFieldBuilder().getBuilder(); } @@ -3401,7 +3502,7 @@ public Builder clearNotificationConfig() { * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -3443,7 +3544,7 @@ public Builder setLoggingConfig(com.google.cloud.dialogflow.v2beta1.LoggingConfi } else { loggingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3464,7 +3565,7 @@ public Builder setLoggingConfig( } else { loggingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3480,7 +3581,7 @@ public Builder setLoggingConfig( */ public Builder mergeLoggingConfig(com.google.cloud.dialogflow.v2beta1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && loggingConfig_ != null && loggingConfig_ != com.google.cloud.dialogflow.v2beta1.LoggingConfig.getDefaultInstance()) { @@ -3492,7 +3593,7 @@ public Builder mergeLoggingConfig(com.google.cloud.dialogflow.v2beta1.LoggingCon loggingConfigBuilder_.mergeFrom(value); } if (loggingConfig_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3508,7 +3609,7 @@ public Builder mergeLoggingConfig(com.google.cloud.dialogflow.v2beta1.LoggingCon * .google.cloud.dialogflow.v2beta1.LoggingConfig logging_config = 7; */ public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); loggingConfig_ = null; if (loggingConfigBuilder_ != null) { loggingConfigBuilder_.dispose(); @@ -3528,7 +3629,7 @@ public Builder clearLoggingConfig() { * .google.cloud.dialogflow.v2beta1.LoggingConfig logging_config = 7; */ public com.google.cloud.dialogflow.v2beta1.LoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetLoggingConfigFieldBuilder().getBuilder(); } @@ -3602,7 +3703,7 @@ public com.google.cloud.dialogflow.v2beta1.LoggingConfigOrBuilder getLoggingConf * @return Whether the newMessageEventNotificationConfig field is set. */ public boolean hasNewMessageEventNotificationConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3654,7 +3755,7 @@ public Builder setNewMessageEventNotificationConfig( } else { newMessageEventNotificationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3679,7 +3780,7 @@ public Builder setNewMessageEventNotificationConfig( } else { newMessageEventNotificationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3700,7 +3801,7 @@ public Builder setNewMessageEventNotificationConfig( public Builder mergeNewMessageEventNotificationConfig( com.google.cloud.dialogflow.v2beta1.NotificationConfig value) { if (newMessageEventNotificationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && newMessageEventNotificationConfig_ != null && newMessageEventNotificationConfig_ != com.google.cloud.dialogflow.v2beta1.NotificationConfig.getDefaultInstance()) { @@ -3712,7 +3813,7 @@ public Builder mergeNewMessageEventNotificationConfig( newMessageEventNotificationConfigBuilder_.mergeFrom(value); } if (newMessageEventNotificationConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3732,7 +3833,7 @@ public Builder mergeNewMessageEventNotificationConfig( * */ public Builder clearNewMessageEventNotificationConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); newMessageEventNotificationConfig_ = null; if (newMessageEventNotificationConfigBuilder_ != null) { newMessageEventNotificationConfigBuilder_.dispose(); @@ -3757,7 +3858,7 @@ public Builder clearNewMessageEventNotificationConfig() { */ public com.google.cloud.dialogflow.v2beta1.NotificationConfig.Builder getNewMessageEventNotificationConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetNewMessageEventNotificationConfigFieldBuilder().getBuilder(); } @@ -3846,7 +3947,7 @@ public Builder clearNewMessageEventNotificationConfig() { * @return Whether the newRecognitionResultNotificationConfig field is set. */ public boolean hasNewRecognitionResultNotificationConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3910,7 +4011,7 @@ public Builder setNewRecognitionResultNotificationConfig( } else { newRecognitionResultNotificationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3941,7 +4042,7 @@ public Builder setNewRecognitionResultNotificationConfig( } else { newRecognitionResultNotificationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3968,7 +4069,7 @@ public Builder setNewRecognitionResultNotificationConfig( public Builder mergeNewRecognitionResultNotificationConfig( com.google.cloud.dialogflow.v2beta1.NotificationConfig value) { if (newRecognitionResultNotificationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && newRecognitionResultNotificationConfig_ != null && newRecognitionResultNotificationConfig_ != com.google.cloud.dialogflow.v2beta1.NotificationConfig.getDefaultInstance()) { @@ -3980,7 +4081,7 @@ public Builder mergeNewRecognitionResultNotificationConfig( newRecognitionResultNotificationConfigBuilder_.mergeFrom(value); } if (newRecognitionResultNotificationConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4006,7 +4107,7 @@ public Builder mergeNewRecognitionResultNotificationConfig( * */ public Builder clearNewRecognitionResultNotificationConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); newRecognitionResultNotificationConfig_ = null; if (newRecognitionResultNotificationConfigBuilder_ != null) { newRecognitionResultNotificationConfigBuilder_.dispose(); @@ -4037,7 +4138,7 @@ public Builder clearNewRecognitionResultNotificationConfig() { */ public com.google.cloud.dialogflow.v2beta1.NotificationConfig.Builder getNewRecognitionResultNotificationConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetNewRecognitionResultNotificationConfigFieldBuilder().getBuilder(); } @@ -4127,7 +4228,7 @@ public Builder clearNewRecognitionResultNotificationConfig() { * @return Whether the sttConfig field is set. */ public boolean hasSttConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4169,7 +4270,7 @@ public Builder setSttConfig(com.google.cloud.dialogflow.v2beta1.SpeechToTextConf } else { sttConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4190,7 +4291,7 @@ public Builder setSttConfig( } else { sttConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4206,7 +4307,7 @@ public Builder setSttConfig( */ public Builder mergeSttConfig(com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig value) { if (sttConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && sttConfig_ != null && sttConfig_ != com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig.getDefaultInstance()) { @@ -4218,7 +4319,7 @@ public Builder mergeSttConfig(com.google.cloud.dialogflow.v2beta1.SpeechToTextCo sttConfigBuilder_.mergeFrom(value); } if (sttConfig_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4234,7 +4335,7 @@ public Builder mergeSttConfig(com.google.cloud.dialogflow.v2beta1.SpeechToTextCo * .google.cloud.dialogflow.v2beta1.SpeechToTextConfig stt_config = 9; */ public Builder clearSttConfig() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); sttConfig_ = null; if (sttConfigBuilder_ != null) { sttConfigBuilder_.dispose(); @@ -4254,7 +4355,7 @@ public Builder clearSttConfig() { * .google.cloud.dialogflow.v2beta1.SpeechToTextConfig stt_config = 9; */ public com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig.Builder getSttConfigBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetSttConfigFieldBuilder().getBuilder(); } @@ -4381,7 +4482,7 @@ public Builder setLanguageCode(java.lang.String value) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4403,7 +4504,7 @@ public Builder setLanguageCode(java.lang.String value) { */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4430,7 +4531,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4506,7 +4607,7 @@ public Builder setTimeZone(java.lang.String value) { throw new NullPointerException(); } timeZone_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4526,7 +4627,7 @@ public Builder setTimeZone(java.lang.String value) { */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4551,7 +4652,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); timeZone_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4627,7 +4728,7 @@ public Builder setSecuritySettings(java.lang.String value) { throw new NullPointerException(); } securitySettings_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4647,7 +4748,7 @@ public Builder setSecuritySettings(java.lang.String value) { */ public Builder clearSecuritySettings() { securitySettings_ = getDefaultInstance().getSecuritySettings(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4672,7 +4773,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); securitySettings_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4699,7 +4800,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * @return Whether the ttsConfig field is set. */ public boolean hasTtsConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4747,7 +4848,7 @@ public Builder setTtsConfig(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeech } else { ttsConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4771,7 +4872,7 @@ public Builder setTtsConfig( } else { ttsConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4791,7 +4892,7 @@ public Builder setTtsConfig( public Builder mergeTtsConfig( com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig value) { if (ttsConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && ttsConfig_ != null && ttsConfig_ != com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig @@ -4804,7 +4905,7 @@ public Builder mergeTtsConfig( ttsConfigBuilder_.mergeFrom(value); } if (ttsConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -4823,7 +4924,7 @@ public Builder mergeTtsConfig( * .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig tts_config = 18; */ public Builder clearTtsConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ttsConfig_ = null; if (ttsConfigBuilder_ != null) { ttsConfigBuilder_.dispose(); @@ -4847,7 +4948,7 @@ public Builder clearTtsConfig() { */ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder getTtsConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetTtsConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java index d267ff5d788c..d0e9002565c1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java @@ -162,6 +162,20 @@ public interface ConversationProfileOrBuilder */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** + * + * + *
                                                                                                                                  +   * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                  +   * for the conversation profile.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useBidiStreaming. + */ + boolean getUseBidiStreaming(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java index 1ccaf354a926..0d8d7cfc2a44 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java @@ -182,53 +182,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gflow/v2beta1/generator.proto\0321google/cloud/dialogflow/v2beta1/participant.proto" + "\032#google/longrunning/operations.proto\032\036g" + "oogle/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\206\n\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\247\n\n" + "\023ConversationProfile\022\014\n" + "\004name\030\001 \001(\t\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" + "\013create_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" - + "\026automated_agent_config\030\003" - + " \001(\01325.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig\022`\n" - + "\034human_agent_assistant_config\030\004 \001(\0132:.google.cloud.d" - + "ialogflow.v2beta1.HumanAgentAssistantConfig\022\\\n" - + "\032human_agent_handoff_config\030\005 \001(\0132" - + "8.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig\022P\n" - + "\023notification_config\030\006" - + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022F\n" - + "\016logging_config\030\007 " - + "\001(\0132..google.cloud.dialogflow.v2beta1.LoggingConfig\022b\n" + + "\013update_time\030\014" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" + + "\022use_bidi_streaming\030\027 \001(\010B\003\340A\001\022U\n" + + "\026automated_agent_config\030\003 " + + "\001(\01325.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig\022`\n" + + "\034human_agent_assistant_config\030\004" + + " \001(\0132:.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig\022\\\n" + + "\032human_agent_handoff_config\030\005 \001(\01328.googl" + + "e.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig\022P\n" + + "\023notification_config\030\006 \001(\0132" + + "3.google.cloud.dialogflow.v2beta1.NotificationConfig\022F\n" + + "\016logging_config\030\007 \001(\0132..g" + + "oogle.cloud.dialogflow.v2beta1.LoggingConfig\022b\n" + "%new_message_event_notification_config\030\010" + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022l\n" - + "*new_recognition_result_notification_config\030\025 " - + "\001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfigB\003\340A\001\022G\n\n" - + "stt_config\030\t \001(" - + "\01323.google.cloud.dialogflow.v2beta1.SpeechToTextConfig\022\025\n\r" + + "*new_recognition_result_notification_config\030\025 \001(\01323.g" + + "oogle.cloud.dialogflow.v2beta1.NotificationConfigB\003\340A\001\022G\n\n" + + "stt_config\030\t \001(\01323.goo" + + "gle.cloud.dialogflow.v2beta1.SpeechToTextConfig\022\025\n\r" + "language_code\030\n" + " \001(\t\022\021\n" + "\ttime_zone\030\016 \001(\t\022L\n" + "\021security_settings\030\r" + " \001(\tB1\372A.\n" + ",dialogflow.googleapis.com/CXSecuritySettings\022K\n\n" - + "tts_config\030\022 \001(\01327.goo" - + "gle.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001\n" - + "-dialogflow.googleapis.com/ConversationProfile\022>projects/{pro" - + "ject}/conversationProfiles/{conversation_profile}\022Sprojects/{project}/locations/" - + "{location}/conversationProfiles/{conversation_profile}\"\203\001\n" + + "tts_config\030\022 \001(\01327.google.clo" + + "ud.dialogflow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001\n" + + "-dialogflow.googleapis.com/ConversationProfile\022>projects/{project}/c" + + "onversationProfiles/{conversation_profile}\022Sprojects/{project}/locations/{locati" + + "on}/conversationProfiles/{conversation_profile}\"\203\001\n" + "\024AutomatedAgentConfig\0226\n" + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037dialogflow.googleapis.com/Agent\0223\n" + "\013session_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\234\036\n" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\310\036\n" + "\031HumanAgentAssistantConfig\022P\n" - + "\023notification_config\030\002" - + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022r\n" - + "\035human_agent_suggestion_config\030\003 \001(\0132K.google.cloud.dialo" - + "gflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig\022o\n" - + "\032end_user_suggestion_config\030\004 \001(\0132K.google.cloud.dialogflow.v" - + "2beta1.HumanAgentAssistantConfig.SuggestionConfig\022q\n" - + "\027message_analysis_config\030\005 \001(\0132P.google.cloud.dialogflow.v2beta1.Hum" - + "anAgentAssistantConfig.MessageAnalysisConfig\032I\n" + + "\023notification_config\030\002 \001(\013" + + "23.google.cloud.dialogflow.v2beta1.NotificationConfig\022r\n" + + "\035human_agent_suggestion_config\030\003 \001(\0132K.google.cloud.dialogflow.v" + + "2beta1.HumanAgentAssistantConfig.SuggestionConfig\022o\n" + + "\032end_user_suggestion_config\030\004 \001(\0132K.google.cloud.dialogflow.v2beta1." + + "HumanAgentAssistantConfig.SuggestionConfig\022q\n" + + "\027message_analysis_config\030\005 \001(\0132P.go" + + "ogle.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.MessageAnalysisConfig\032I\n" + "\031SuggestionTriggerSettings\022\025\n\r" + "no_small_talk\030\001 \001(\010\022\025\n\r" + "only_end_user\030\002 \001(\010\032\223\007\n" @@ -241,21 +243,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#enable_conversation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n" + "\034enable_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n" + "\032enable_response_debug_info\030\022 \001(\010B\003\340A\001\022G\n" - + "\014rai_settings\030\023 \001(\0132,." - + "google.cloud.dialogflow.v2beta1.RaiSettingsB\003\340A\001\022y\n" + + "\014rai_settings\030\023 \001(\0132,.google." + + "cloud.dialogflow.v2beta1.RaiSettingsB\003\340A\001\022y\n" + "\033suggestion_trigger_settings\030\n" - + " \001(\0132T.google.cloud.dialogflow.v2beta1." - + "HumanAgentAssistantConfig.SuggestionTriggerSettings\022f\n" - + "\014query_config\030\006 \001(\0132P.goog" - + "le.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig\022u\n" - + "\031conversation_model_config\030\007 \001(\0132R.google." - + "cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig\022y\n" - + "\033conversation_process_config\030\010 \001(\0132T.google" - + ".cloud.dialogflow.v2beta1.HumanAgentAssi" - + "stantConfig.ConversationProcessConfig\032\242\003\n" + + " \001(\0132T.google.cloud.dialogflow.v2beta1.HumanAg" + + "entAssistantConfig.SuggestionTriggerSettings\022f\n" + + "\014query_config\030\006 \001(\0132P.google.clou" + + "d.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig\022u\n" + + "\031conversation_model_config\030\007 \001(\0132R.google.cloud.d" + + "ialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig\022y\n" + + "\033conversation_process_config\030\010 \001(\0132T.google.cloud." + + "dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig\032\242\003\n" + "\020SuggestionConfig\022k\n" - + "\017feature_configs\030\002 \003(\0132R.google.cloud.dialogflow.v2beta1.Hu" - + "manAgentAssistantConfig.SuggestionFeatureConfig\022\"\n" + + "\017feature_configs\030\002 \003(\0132R.google.cloud.dialogflow.v2beta1.HumanAgen" + + "tAssistantConfig.SuggestionFeatureConfig\022\"\n" + "\032group_suggestion_responses\030\003 \001(\010\022?\n\n" + "generators\030\004 \003(\tB+\340A\001\372A%\n" + "#dialogflow.googleapis.com/Generator\0228\n" @@ -264,21 +265,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " use_unredacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\267\r\n" + "\025SuggestionQueryConfig\022\220\001\n" - + "\033knowledge_base_query_source\030\001 \001" - + "(\0132i.google.cloud.dialogflow.v2beta1.Hum" - + "anAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\000\022\205\001\n" - + "\025document_query_source\030\002 \001(\0132d.google.cloud.d" - + "ialogflow.v2beta1.HumanAgentAssistantCon" - + "fig.SuggestionQueryConfig.DocumentQuerySourceH\000\022\211\001\n" - + "\027dialogflow_query_source\030\003 \001(\0132f.google.cloud.dialogflow.v2beta1.Huma" - + "nAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" + + "\033knowledge_base_query_source\030\001 \001(\0132i.go" + + "ogle.cloud.dialogflow.v2beta1.HumanAgent" + + "AssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\000\022\205\001\n" + + "\025document_query_source\030\002 \001(\0132d.google.cloud.dialogfl" + + "ow.v2beta1.HumanAgentAssistantConfig.Sug" + + "gestionQueryConfig.DocumentQuerySourceH\000\022\211\001\n" + + "\027dialogflow_query_source\030\003 \001(\0132f.goo" + + "gle.cloud.dialogflow.v2beta1.HumanAgentA" + + "ssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" + "\013max_results\030\004 \001(\005\022\034\n" + "\024confidence_threshold\030\005 \001(\002\022\207\001\n" - + "\027context_filter_settings\030\007 \001(\0132f.googl" - + "e.cloud.dialogflow.v2beta1.HumanAgentAss" - + "istantConfig.SuggestionQueryConfig.ContextFilterSettings\022p\n" - + "\010sections\030\010 \001(\0132Y.google.cloud.dialogflow.v2beta1.HumanAgentA" - + "ssistantConfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" + + "\027context_filter_settings\030\007 \001(\0132f.google.cloud" + + ".dialogflow.v2beta1.HumanAgentAssistantC" + + "onfig.SuggestionQueryConfig.ContextFilterSettings\022p\n" + + "\010sections\030\010 \001(\0132Y.google.cloud.dialogflow.v2beta1.HumanAgentAssistan" + + "tConfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" + "\014context_size\030\t \001(\005B\003\340A\001\032d\n" + "\030KnowledgeBaseQuerySource\022H\n" + "\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n" @@ -289,9 +291,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025DialogflowQuerySource\0226\n" + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037dialogflow.googleapis.com/Agent\022\234\001\n" - + "\027human_agent_side_config\030\003 \001(\0132{.google.cloud.dia" - + "logflow.v2beta1.HumanAgentAssistantConfi" - + "g.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig\032N\n" + + "\027human_agent_side_config\030\003 \001(\0132{.google.cloud.dialogflow" + + ".v2beta1.HumanAgentAssistantConfig.Sugge" + + "stionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig\032N\n" + "\024HumanAgentSideConfig\0226\n" + "\005agent\030\001 \001(\tB\'\340A\001\372A!\n" + "\037dialogflow.googleapis.com/Agent\032v\n" @@ -300,9 +302,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033drop_virtual_agent_messages\030\002 \001(\010\022\031\n" + "\021drop_ivr_messages\030\003 \001(\010\032\247\002\n" + "\010Sections\022|\n\r" - + "section_types\030\001 \003(\0162e.google.cloud.di" - + "alogflow.v2beta1.HumanAgentAssistantConf" - + "ig.SuggestionQueryConfig.Sections.SectionType\"\234\001\n" + + "section_types\030\001 \003(\0162e.google.cloud.dialogflo" + + "w.v2beta1.HumanAgentAssistantConfig.Sugg" + + "estionQueryConfig.Sections.SectionType\"\234\001\n" + "\013SectionType\022\034\n" + "\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSITUATION\020\001\022\n\n" @@ -317,15 +319,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+dialogflow.googleapis.com/ConversationModel\022\036\n" + "\026baseline_model_version\030\010 \001(\t\032;\n" + "\031ConversationProcessConfig\022\036\n" - + "\026recent_sentences_count\030\002 \001(\005\032\\\n" + + "\026recent_sentences_count\030\002 \001(\005\032\207\001\n" + "\025MessageAnalysisConfig\022 \n" + "\030enable_entity_extraction\030\002 \001(\010\022!\n" - + "\031enable_sentiment_analysis\030\003 \001(\010\"\316\003\n" + + "\031enable_sentiment_analysis\030\003 \001(\010\022)\n" + + "\034enable_sentiment_analysis_v3\030\005 \001(\010B\003\340A\001\"\316\003\n" + "\027HumanAgentHandoffConfig\022g\n" - + "\022live_person_config\030\001 \001(\0132I.go" - + "ogle.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.LivePersonConfigH\000\022z\n" - + "\034salesforce_live_agent_config\030\002 \001(\0132R.google." - + "cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" + + "\022live_person_config\030\001 \001(\0132I.googl" + + "e.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.LivePersonConfigH\000\022z\n" + + "\034salesforce_live_agent_config\030\002 \001(\0132R.google.clo" + + "ud.dialogflow.v2beta1.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" + "\020LivePersonConfig\022\033\n" + "\016account_number\030\001 \001(\tB\003\340A\002\032\213\001\n" + "\031SalesforceLiveAgentConfig\022\034\n" @@ -336,8 +339,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "agent_service\"\304\001\n" + "\022NotificationConfig\022\r\n" + "\005topic\030\001 \001(\t\022Y\n" - + "\016message_format\030\002 \001(\0162A.google.clou" - + "d.dialogflow.v2beta1.NotificationConfig.MessageFormat\"D\n\r" + + "\016message_format\030\002 \001(\0162A.google.cloud.d" + + "ialogflow.v2beta1.NotificationConfig.MessageFormat\"D\n\r" + "MessageFormat\022\036\n" + "\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" + "\005PROTO\020\001\022\010\n" @@ -345,114 +348,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "LoggingConfig\022\"\n" + "\032enable_stackdriver_logging\030\003 \001(\010\"\217\001\n" + "\037ListConversationProfilesRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-di" - + "alogflow.googleapis.com/ConversationProfile\022\021\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialo" + + "gflow.googleapis.com/ConversationProfile\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\220\001\n" + " ListConversationProfilesResponse\022S\n" - + "\025conversation_profiles\030\001 \003(\01324.google." - + "cloud.dialogflow.v2beta1.ConversationProfile\022\027\n" + + "\025conversation_profiles\030\001 \003(\01324.google.clo" + + "ud.dialogflow.v2beta1.ConversationProfile\022\027\n" + "\017next_page_token\030\002 \001(\t\"d\n" + "\035GetConversationProfileRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-dialogflow.googleapis.com/ConversationProfile\"\302\001\n" + " CreateConversationProfileRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialog" - + "flow.googleapis.com/ConversationProfile\022W\n" - + "\024conversation_profile\030\002 \001(\01324.google.c" - + "loud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\"\261\001\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-dialogflow.googleapis.com/ConversationProfile\022W\n" + + "\024conversation_profile\030\002 \001(\01324.google.clou" + + "d.dialogflow.v2beta1.ConversationProfileB\003\340A\002\"\261\001\n" + " UpdateConversationProfileRequest\022W\n" - + "\024conversation_profile\030\001 \001(\01324.go" - + "ogle.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\0224\n" + + "\024conversation_profile\030\001 \001(\01324.googl" + + "e.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"g\n" + " DeleteConversationProfileRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-dialogflow.googleapis.com/ConversationProfile\"\224\002\n" + "!SetSuggestionFeatureConfigRequest\022!\n" + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002 \001(\01621.googl" - + "e.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022z\n" - + "\031suggestion_feature_config\030\003 \001(\0132R.google.cloud.dialogflow.v2beta1.Hu" - + "manAgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\371\001\n" + + "\020participant_role\030\002 \001(\01621.google.c" + + "loud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022z\n" + + "\031suggestion_feature_config\030\003 \001(\013" + + "2R.google.cloud.dialogflow.v2beta1.Human" + + "AgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\371\001\n" + "#ClearSuggestionFeatureConfigRequest\022!\n" + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002 \001(\01621.goog" - + "le.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001" - + "(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n" + + "\020participant_role\030\002 \001(\01621.google." + + "cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" + + "\027suggestion_feature_type\030\003 \001(\0162" + + "7.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n" + "+SetSuggestionFeatureConfigOperationMetadata\022\034\n" + "\024conversation_profile\030\001 \001(\t\022P\n" + "\020participant_role\030\002" + " \001(\01621.google.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001(\01627.google.cloud.dialogf" - + "low.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + + "\027suggestion_feature_type\030\003" + + " \001(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\257\002\n" + "-ClearSuggestionFeatureConfigOperationMetadata\022\034\n" + "\024conversation_profile\030\001 \001(\t\022P\n" - + "\020participant_role\030\002 \001(\01621.goo" - + "gle.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 " - + "\001(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + + "\020participant_role\030\002 \001(\01621.google" + + ".cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" + + "\027suggestion_feature_type\030\003 \001(\016" + + "27.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp2\263\025\n" + "\024ConversationProfiles\022\245\002\n" - + "\030ListConversationProfiles\022@.google.cloud.dialogflow.v2bet" - + "a1.ListConversationProfilesRequest\032A.google.cloud.dialogflow.v2beta1.ListConvers" - + "ationProfilesResponse\"\203\001\332A\006parent\202\323\344\223\002t\022" - + "1/v2beta1/{parent=projects/*}/conversati" - + "onProfilesZ?\022=/v2beta1/{parent=projects/*/locations/*}/conversationProfiles\022\222\002\n" - + "\026GetConversationProfile\022>.google.cloud.di" - + "alogflow.v2beta1.GetConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1" - + ".ConversationProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v" - + "2beta1/{name=projects/*/conversationProf" - + "iles/*}Z?\022=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\334\002\n" - + "\031CreateConversationProfile\022A.google.cloud.di" - + "alogflow.v2beta1.CreateConversationProfileRequest\0324.google.cloud.dialogflow.v2be" - + "ta1.ConversationProfile\"\305\001\332A\033parent,conv" - + "ersation_profile\202\323\344\223\002\240\001\"1/v2beta1/{paren" - + "t=projects/*}/conversationProfiles:\024conversation_profileZU\"=/v2beta1/{parent=pro" - + "jects/*/locations/*}/conversationProfiles:\024conversation_profile\022\213\003\n" - + "\031UpdateConversationProfile\022A.google.cloud.dialogflow." - + "v2beta1.UpdateConversationProfileRequest" - + "\0324.google.cloud.dialogflow.v2beta1.ConversationProfile\"\364\001\332A" - + " conversation_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1/{conversat" - + "ion_profile.name=projects/*/conversationProfiles/*}:\024conversation_profileZj2R/v2" - + "beta1/{conversation_profile.name=project" - + "s/*/locations/*/conversationProfiles/*}:\024conversation_profile\022\372\001\n" - + "\031DeleteConversationProfile\022A.google.cloud.dialogflow.v2" - + "beta1.DeleteConversationProfileRequest\032\026" - + ".google.protobuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1" - + "/v2beta1/{name=projects/*/conversationPr" - + "ofiles/*}Z?*=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\367\003\n" - + "\032SetSuggestionFeatureConfig\022B.google.cloud" - + ".dialogflow.v2beta1.SetSuggestionFeature" - + "ConfigRequest\032\035.google.longrunning.Operation\"\365\002\312AB\n" - + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024c" - + "onversation_profile\332A?conversation_profile,participant_role,suggestion_feature_c" - + "onfig\202\323\344\223\002\320\001\"\\/v2beta1/{conversation_pro" - + "file=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zm\"h/v2beta" - + "1/{conversation_profile=projects/*/locat" - + "ions/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*\022\377\003\n" - + "\034ClearSuggestionFeatureConfig\022D.google.cloud.dialogflow." - + "v2beta1.ClearSuggestionFeatureConfigRequ" - + "est\032\035.google.longrunning.Operation\"\371\002\312AD\n" - + "\023ConversationProfile\022-ClearSuggestionFe" - + "atureConfigOperationMetadata\332A\024conversat" - + "ion_profile\332A=conversation_profile,parti" - + "cipant_role,suggestion_feature_type\202\323\344\223\002" - + "\324\001\"^/v2beta1/{conversation_profile=proje" - + "cts/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\001*Zo\"j/v2beta1/{conve" - + "rsation_profile=projects/*/locations/*/conversationProfiles/*}:clearSuggestionFe" - + "atureConfig:\001*\032x\312A\031dialogflow.googleapis" - + ".com\322AYhttps://www.googleapis.com/auth/c" - + "loud-platform,https://www.googleapis.com/auth/dialogflowB\255\003\n" - + "#com.google.cloud.dialogflow.v2beta1B\030ConversationProfilePro" - + "toP\001ZCcloud.google.com/go/dialogflow/api" - + "v2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A|\n" - + ",dialogflow.googleapis.com/CXSecuritySetting" - + "s\022Lprojects/{project}/locations/{locatio" - + "n}/securitySettings/{security_settings}\352A~\n" - + "+dialogflow.googleapis.com/ConversationModel\022Oprojects/{project}/locations/{l" - + "ocation}/conversationModels/{conversation_model}b\006proto3" + + "\030ListConversationProfiles\022@.google.cloud.dialogflow.v2beta1." + + "ListConversationProfilesRequest\032A.google.cloud.dialogflow.v2beta1.ListConversati" + + "onProfilesResponse\"\203\001\332A\006parent\202\323\344\223\002t\0221/v" + + "2beta1/{parent=projects/*}/conversationP" + + "rofilesZ?\022=/v2beta1/{parent=projects/*/locations/*}/conversationProfiles\022\222\002\n" + + "\026GetConversationProfile\022>.google.cloud.dialo" + + "gflow.v2beta1.GetConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1.Co" + + "nversationProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v2be" + + "ta1/{name=projects/*/conversationProfile" + + "s/*}Z?\022=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\334\002\n" + + "\031CreateConversationProfile\022A.google.cloud.dialo" + + "gflow.v2beta1.CreateConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1" + + ".ConversationProfile\"\305\001\332A\033parent,convers" + + "ation_profile\202\323\344\223\002\240\001\"1/v2beta1/{parent=p" + + "rojects/*}/conversationProfiles:\024conversation_profileZU\"=/v2beta1/{parent=projec" + + "ts/*/locations/*}/conversationProfiles:\024conversation_profile\022\213\003\n" + + "\031UpdateConversationProfile\022A.google.cloud.dialogflow.v2b" + + "eta1.UpdateConversationProfileRequest\0324." + + "google.cloud.dialogflow.v2beta1.ConversationProfile\"\364\001\332A" + + " conversation_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1/{conversation" + + "_profile.name=projects/*/conversationProfiles/*}:\024conversation_profileZj2R/v2bet" + + "a1/{conversation_profile.name=projects/*" + + "/locations/*/conversationProfiles/*}:\024conversation_profile\022\372\001\n" + + "\031DeleteConversationProfile\022A.google.cloud.dialogflow.v2bet" + + "a1.DeleteConversationProfileRequest\032\026.go" + + "ogle.protobuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1/v2" + + "beta1/{name=projects/*/conversationProfi" + + "les/*}Z?*=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\367\003\n" + + "\032SetSuggestionFeatureConfig\022B.google.cloud.di" + + "alogflow.v2beta1.SetSuggestionFeatureCon" + + "figRequest\032\035.google.longrunning.Operation\"\365\002\312AB\n" + + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024conv" + + "ersation_profile\332A?conversation_profile,participant_role,suggestion_feature_conf" + + "ig\202\323\344\223\002\320\001\"\\/v2beta1/{conversation_profil" + + "e=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zm\"h/v2beta1/{" + + "conversation_profile=projects/*/location" + + "s/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*\022\377\003\n" + + "\034ClearSuggestionFeatureConfig\022D.google.cloud.dialogflow.v2b" + + "eta1.ClearSuggestionFeatureConfigRequest\032\035.google.longrunning.Operation\"\371\002\312AD\n" + + "\023ConversationProfile\022-ClearSuggestionFeatu" + + "reConfigOperationMetadata\332A\024conversation" + + "_profile\332A=conversation_profile,particip" + + "ant_role,suggestion_feature_type\202\323\344\223\002\324\001\"" + + "^/v2beta1/{conversation_profile=projects/*/conversationProfiles/*}:clearSuggesti" + + "onFeatureConfig:\001*Zo\"j/v2beta1/{conversation_profile=projects/*/locations/*/conv" + + "ersationProfiles/*}:clearSuggestionFeatu" + + "reConfig:\001*\032x\312A\031dialogflow.googleapis.co" + + "m\322AYhttps://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/auth/dialogflowB\255\003\n" + + "#com.google.cloud.dialogflow.v2beta1B\030ConversationProfileProtoP" + + "\001ZCcloud.google.com/go/dialogflow/apiv2b" + + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A|\n" + + ",dialogflow.googleapis.com/CXSecuritySettings\022L" + + "projects/{project}/locations/{location}/securitySettings/{security_settings}\352A~\n" + + "+dialogflow.googleapis.com/ConversationModel\022Oprojects/{project}/locations/{loca" + + "tion}/conversationModels/{conversation_model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -481,6 +483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "CreateTime", "UpdateTime", + "UseBidiStreaming", "AutomatedAgentConfig", "HumanAgentAssistantConfig", "HumanAgentHandoffConfig", @@ -653,7 +656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor, new java.lang.String[] { - "EnableEntityExtraction", "EnableSentimentAnalysis", + "EnableEntityExtraction", "EnableSentimentAnalysis", "EnableSentimentAnalysisV3", }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentHandoffConfig_descriptor = getDescriptor().getMessageType(3); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java index 385558f14cfa..9c808c556ba9 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java @@ -64,10 +64,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_Conversation_ContextReference_ContextContent_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_Conversation_ContextReference_ContextContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_ConversationPhoneNumber_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -140,6 +148,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -208,6 +220,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeRequest_SearchConfig_FilterSpecs_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeRequest_SearchConfig_FilterSpecs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -241,7 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032:google/cloud/dialogflow/v2beta1/conversation_profile.proto\032/google/cloud/dialo" + "gflow/v2beta1/generator.proto\0321google/cloud/dialogflow/v2beta1/participant.proto" + "\032-google/cloud/dialogflow/v2beta1/sessio" - + "n.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\267\022\n" + + "n.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\300\027\n" + "\014Conversation\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022Z\n" + "\017lifecycle_state\030\002 \001(\0162<.google.cloud.dialogflow" @@ -256,18 +276,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022m\n" + "\031telephony_connection_info\030\n" + " \001(\0132E.google.cloud.dialogflow.v2bet" - + "a1.Conversation.TelephonyConnectionInfoB\003\340A\003\022v\n" - + "\033ingested_context_references\030\021 \003(" - + "\0132L.google.cloud.dialogflow.v2beta1.Conv" - + "ersation.IngestedContextReferencesEntryB\003\340A\003\032\230\003\n" + + "a1.Conversation.TelephonyConnectionInfoB\003\340A\003\022b\n" + + "\034initial_conversation_profile\030\017 \001" + + "(\01324.google.cloud.dialogflow.v2beta1.ConversationProfileB\006\340A\001\340A\003\022v\n" + + "\033ingested_context_references\030\021 \003(\0132L.google.cloud.dia" + + "logflow.v2beta1.Conversation.IngestedContextReferencesEntryB\003\340A\003\022t\n" + + "\032initial_generator_contexts\030\022 \003(\0132K.google.cloud.dial" + + "ogflow.v2beta1.Conversation.InitialGeneratorContextsEntryB\003\340A\003\032\230\003\n" + "\027TelephonyConnectionInfo\022\032\n\r" + "dialed_number\030\002 \001(\tB\003\340A\003\022\020\n" + "\003sdp\030\005 \001(\tB\003\340A\001\022i\n" - + "\013sip_headers\030\014 \003(\0132O.google.cloud.dialo" - + "gflow.v2beta1.Conversation.TelephonyConnectionInfo.SipHeaderB\003\340A\003\022s\n" + + "\013sip_headers\030\014 \003(\0132O.google.cloud.dialogflow.v2beta1.Conversa" + + "tion.TelephonyConnectionInfo.SipHeaderB\003\340A\003\022s\n" + "\023extra_mime_contents\030\r" - + " \003(\0132Q.google.cloud.dialogflow" - + ".v2beta1.Conversation.TelephonyConnectionInfo.MimeContentB\003\340A\003\0322\n" + + " \003(\0132Q.google.cloud.dialogflow.v2beta1.Conversation." + + "TelephonyConnectionInfo.MimeContentB\003\340A\003\0322\n" + "\tSipHeader\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\tB\003\340A\001\032;\n" @@ -275,17 +298,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmime_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\007content\030\002 \001(\014B\003\340A\001\032\273\005\n" + "\020ContextReference\022l\n" - + "\020context_contents\030\001 \003(\0132M.google.cloud.di" - + "alogflow.v2beta1.Conversation.ContextReference.ContextContentB\003\340A\002\022c\n" - + "\013update_mode\030\002 \001(\0162I.google.cloud.dialogflow.v2beta" - + "1.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + + "\020context_contents\030\001 \003(\0132M.google.cloud.dialogflow.v2beta1.Conve" + + "rsation.ContextReference.ContextContentB\003\340A\002\022c\n" + + "\013update_mode\030\002 \001(\0162I.google.cloud" + + ".dialogflow.v2beta1.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\273\002\n" + "\016ContextContent\022\024\n" + "\007content\030\001 \001(\tB\003\340A\002\022x\n" - + "\016content_format\030\002 \001(\0162[.google.cloud.dialogflow.v2beta1.Conversatio" - + "n.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + + "\016content_format\030\002 \001(\0162[.google.cloud.dialogflow.v" + + "2beta1.Conversation.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + "\016ingestion_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + "answer_record\030\004 \001(\t\"I\n\r" @@ -296,11 +319,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UpdateMode\022\033\n" + "\027UPDATE_MODE_UNSPECIFIED\020\000\022\n\n" + "\006APPEND\020\001\022\r\n" - + "\tOVERWRITE\020\002\032\200\001\n" + + "\tOVERWRITE\020\002\032\253\002\n" + + "\020GeneratorContext\022i\n" + + "\016generator_type\030\001 \001(\0162L.google.cloud.dial" + + "ogflow.v2beta1.Conversation.GeneratorContext.GeneratorTypeB\003\340A\003\"\253\001\n\r" + + "GeneratorType\022\036\n" + + "\032GENERATOR_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tFREE_FORM\020\001\022\022\n" + + "\016AGENT_COACHING\020\002\022\021\n\r" + + "SUMMARIZATION\020\003\022\017\n" + + "\013TRANSLATION\020\004\022\022\n" + + "\016AGENT_FEEDBACK\020\005\022\037\n" + + "\033CUSTOMER_MESSAGE_GENERATION\020\006\032\200\001\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" + "\005value\030\002 \001(\0132>.google.cloud.dial" - + "ogflow.v2beta1.Conversation.ContextReference:\0028\001\"Q\n" + + "ogflow.v2beta1.Conversation.ContextReference:\0028\001\032\177\n" + + "\035InitialGeneratorContextsEntry\022\013\n" + + "\003key\030\001 \001(\t\022M\n" + + "\005value\030\002 \001(\0132>.google.c" + + "loud.dialogflow.v2beta1.Conversation.GeneratorContext:\0028\001\"Q\n" + "\016LifecycleState\022\037\n" + "\033LIFECYCLE_STATE_UNSPECIFIED\020\000\022\017\n" + "\013IN_PROGRESS\020\001\022\r\n" @@ -309,23 +347,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CONVERSATION_STAGE_UNSPECIFIED\020\000\022\027\n" + "\023VIRTUAL_AGENT_STAGE\020\001\022\026\n" + "\022HUMAN_ASSIST_STAGE\020\002:\300\001\352A\274\001\n" - + "&dialogflow.googleapis.com/Conversation\022/projects/{project}/conversations/{" - + "conversation}\022Dprojects/{project}/locati" - + "ons/{location}/conversations/{conversation}*\r" + + "&dialogflow.googleapis.com/Conversation\022/projects/{project}/conver" + + "sations/{conversation}\022Dprojects/{projec" + + "t}/locations/{location}/conversations/{conversation}*\r" + "conversations2\014conversation\"O\n" + "\027ConversationPhoneNumber\022\031\n" + "\014country_code\030\002 \001(\005B\003\340A\003\022\031\n" + "\014phone_number\030\003 \001(\tB\003\340A\003\"\303\001\n" + "\031CreateConversationRequest\022>\n" - + "\006parent\030\001 \001(\tB" - + ".\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022H\n" - + "\014conversation\030\002 \001(\0132-.google.c" - + "loud.dialogflow.v2beta1.ConversationB\003\340A\002\022\034\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022H\n" + + "\014conversation\030\002 \001(\0132-" + + ".google.cloud.dialogflow.v2beta1.ConversationB\003\340A\002\022\034\n" + "\017conversation_id\030\003 \001(\tB\003\340A\001\"\240\001\n" + "\030ListConversationsRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A" - + "\002\372A(\022&dialogflow.googleapis.com/Conversation\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"z\n" + "\031ListConversationsResponse\022D\n\r" @@ -351,8 +390,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033BatchCreateMessagesResponse\022:\n" + "\010messages\030\001 \003(\0132(.google.cloud.dialogflow.v2beta1.Message\"\226\001\n" + "\023ListMessagesRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\022!dialogflow.googleapis.com/Message\022\023\n" + + "\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\022!dialogflow.googleapis.com/Message\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"k\n" @@ -362,50 +401,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036IngestContextReferencesRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022w\n" - + "\022context_references\030\002 \003(\0132V.google" - + ".cloud.dialogflow.v2beta1.IngestContextR" - + "eferencesRequest.ContextReferencesEntryB\003\340A\002\032x\n" + + "\022context_references\030\002 \003(\0132V.google.cloud.dialogflow.v2beta1.Inges" + + "tContextReferencesRequest.ContextReferencesEntryB\003\340A\002\032x\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google.cloud.dialog" - + "flow.v2beta1.Conversation.ContextReference:\0028\001\"\253\002\n" + + "\005value\030\002 \001(\0132>.google.clo" + + "ud.dialogflow.v2beta1.Conversation.ContextReference:\0028\001\"\253\002\n" + "\037IngestContextReferencesResponse\022\204\001\n" - + "\033ingested_context_references\030\001 \003(\013" - + "2_.google.cloud.dialogflow.v2beta1.Inges" - + "tContextReferencesResponse.IngestedContextReferencesEntry\032\200\001\n" + + "\033ingested_context_references\030\001 \003(\0132_.google.cloud.dialogflow.v2be" + + "ta1.IngestContextReferencesResponse.IngestedContextReferencesEntry\032\200\001\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\013" - + "2>.google.cloud.dialogflow.v2beta1.Conversation.ContextReference:\0028\001\"\241\002\n" + + "\005value\030\002 \001(\0132>.google.cloud.dialogflow.v2be" + + "ta1.Conversation.ContextReference:\0028\001\"\241\002\n" + "!SuggestConversationSummaryRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\004 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\005 \001(\01326.google.cloud.dialo" - + "gflow.v2beta1.AssistQueryParametersB\003\340A\001\"\201\004\n" + + "\023assist_query_params\030\005 \001(\01326.google.cl" + + "oud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\271\005\n" + "\"SuggestConversationSummaryResponse\022\\\n" - + "\007summary\030\001 \001(\0132K.google.cloud.dialogfl" - + "ow.v2beta1.SuggestConversationSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132K.google.cloud" + + ".dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" - + "\014context_size\030\003 \001(\005\032\246\002\n" + + "\014context_size\030\003 \001(\005\032\336\003\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022t\n\r" - + "text_sections\030\004 \003(\0132].google.cloud.dialogflow.v2beta1.SuggestConversati" - + "onSummaryResponse.Summary.TextSectionsEntry\022B\n\r" + + "text_sections\030\004 \003(\0132].google.cloud.dialogflow.v2beta1.SuggestC" + + "onversationSummaryResponse.Summary.TextSectionsEntry\022x\n" + + "\024sorted_text_sections\030\006 \003(\0132Z.google.cloud.dialogflow.v2beta1.Sug" + + "gestConversationSummaryResponse.Summary.SummarySection\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\022\036\n" - + "\026baseline_model_version\030\005 \001(\t\0323\n" + + "\026baseline_model_version\030\005 \001(\t\032<\n" + + "\016SummarySection\022\024\n" + + "\007section\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007summary\030\002 \001(\tB\003\340A\003\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\353\003\n" + "\037GenerateStatelessSummaryRequest\022y\n" - + "\026stateless_conversation\030\001 \001(\0132T.google.cloud." - + "dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversationB\003\340A\002\022W\n" - + "\024conversation_profile\030\002 \001(\01324.google.cloud" - + ".dialogflow.v2beta1.ConversationProfileB\003\340A\002\022A\n" + + "\026stateless_conversation\030\001 \001(\0132T.google.cloud.dialogf" + + "low.v2beta1.GenerateStatelessSummaryRequest.MinimalConversationB\003\340A\002\022W\n" + + "\024conversation_profile\030\002" + + " \001(\01324.google.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\035\n" + "\020max_context_size\030\004 \001(\005B\003\340A\001\032\221\001\n" @@ -415,15 +457,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\002 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\"\267\003\n" + " GenerateStatelessSummaryResponse\022Z\n" - + "\007summary\030\001 \001(\0132I.google.cloud." - + "dialogflow.v2beta1.GenerateStatelessSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132I.google.cloud.dialogf" + + "low.v2beta1.GenerateStatelessSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\032\340\001\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022r\n\r" - + "text_sections\030\002 \003(\0132[.google.cloud.dialogflow.v2beta1.GenerateSta" - + "telessSummaryResponse.Summary.TextSectionsEntry\022\036\n" + + "text_sections\030\002 \003(\0132[.google.cloud.dialogflow.v2beta1.GenerateStatelessS" + + "ummaryResponse.Summary.TextSectionsEntry\022\036\n" + "\026baseline_model_version\030\004 \001(\t\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -431,21 +473,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"GenerateStatelessSuggestionRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022?\n" - + "\tgenerator\030\002" - + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorH\000\022\030\n" + + "\tgenerator\030\002 \001" + + "(\0132*.google.cloud.dialogflow.v2beta1.GeneratorH\000\022\030\n" + "\016generator_name\030\003 \001(\tH\000\022{\n" - + "\022context_references\030\004 \003(\0132Z.google.c" - + "loud.dialogflow.v2beta1.GenerateStateles" - + "sSuggestionRequest.ContextReferencesEntryB\003\340A\001\022W\n" - + "\024conversation_context\030\005 \001(\01324.g" - + "oogle.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022J\n" - + "\016trigger_events\030\006 \003(\0162" - + "-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\022\036\n" + + "\022context_references\030\004 \003(\0132Z.google.cloud.di" + + "alogflow.v2beta1.GenerateStatelessSugges" + + "tionRequest.ContextReferencesEntryB\003\340A\001\022W\n" + + "\024conversation_context\030\005 \001(\01324.google.c" + + "loud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022J\n" + + "\016trigger_events\030\006 \003(\0162-.googl" + + "e.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\022\036\n" + "\021security_settings\030\010 \001(\tB\003\340A\001\032x\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google.cloud.dialogf" - + "low.v2beta1.Conversation.ContextReference:\0028\001B\024\n" + + "\005value\030\002 \001(\0132>.google.cloud.dialogflow.v2b" + + "eta1.Conversation.ContextReference:\0028\001B\024\n" + "\022generator_resource\"~\n" + "#GenerateStatelessSuggestionResponse\022W\n" + "\024generator_suggestion\030\001" @@ -461,44 +503,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\005 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022^\n" - + "\014query_source\030\007 \001(\0162C.google.cloud.dialogfl" - + "ow.v2beta1.SearchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + + "\014query_source\030\007 \001(\0162C.google.cloud.dialogflow.v2be" + + "ta1.SearchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + "\021end_user_metadata\030\t" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022`\n\r" - + "search_config\030\013 \001(\0132D.google.cloud.dialogflow.v2b" - + "eta1.SearchKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + + "search_config\030\013 \001(\0132D.google.cloud.dialogflow.v2beta1.Se" + + "archKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + "\014exact_search\030\016 \001(\010B\003\340A\001\032\203\r\n" + "\014SearchConfig\022i\n" - + "\013boost_specs\030\001 \003(\0132O.google." - + "cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022k\n" - + "\014filter_specs\030\002 \003(\0132P.google.cloud.dialog" - + "flow.v2beta1.SearchKnowledgeRequest.SearchConfig.FilterSpecsB\003\340A\001\032\334\n\n\n" + + "\013boost_specs\030\001 \003(\0132O.google.cloud.d" + + "ialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022k\n" + + "\014filter_specs\030\002 \003(\0132P.google.cloud.dialogflow.v2" + + "beta1.SearchKnowledgeRequest.SearchConfig.FilterSpecsB\003\340A\001\032\334\n\n\n" + "BoostSpecs\022E\n" + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022l\n" - + "\004spec\030\002 \003(\0132Y.google.cloud.dialogflow.v2beta1." - + "SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\230\t\n" + + "\004spec\030\002 \003(\0132Y.google.cloud.dialogflow.v2beta1.SearchK" + + "nowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\230\t\n" + "\tBoostSpec\022\220\001\n" - + "\025condition_boost_specs\030\001 \003(\0132l.google.clo" - + "ud.dialogflow.v2beta1.SearchKnowledgeReq" - + "uest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\367\007\n" + + "\025condition_boost_specs\030\001 \003(\0132l.google.cloud.dial" + + "ogflow.v2beta1.SearchKnowledgeRequest.Se" + + "archConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\367\007\n" + "\022ConditionBoostSpec\022\026\n" + "\tcondition\030\001 \001(\tB\003\340A\001\022\022\n" + "\005boost\030\002 \001(\002B\003\340A\001\022\236\001\n" - + "\022boost_control_spec\030\004 \001(\0132}.google.cloud.dialogflow.v2beta1.SearchK" - + "nowledgeRequest.SearchConfig.BoostSpecs." - + "BoostSpec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\223\006\n" + + "\022boost_control_spec\030\004 \001(\0132}.google" + + ".cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSp" + + "ec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\223\006\n" + "\020BoostControlSpec\022\027\n\n" + "field_name\030\001 \001(\tB\003\340A\001\022\251\001\n" - + "\016attribute_type\030\002 \001(\0162\213\001.google.cloud.dialogflow.v2beta1.Sea" - + "rchKnowledgeRequest.SearchConfig.BoostSp" - + "ecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\261\001\n" - + "\022interpolation_type\030\003 \001(\0162\217\001.google.cloud.dialog" - + "flow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionB" - + "oostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022\250\001\n" - + "\016control_points\030\004 \003(\0132\212\001.goo" - + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.Boos" - + "tSpec.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + + "\016attribute_type\030\002 \001(\0162\213\001.go" + + "ogle.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.Boo" + + "stSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\261\001\n" + + "\022interpolation_type\030\003 \001(\0162\217\001.google.cloud.dialogflow.v2" + + "beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpe" + + "c.BoostControlSpec.InterpolationTypeB\003\340A\001\022\250\001\n" + + "\016control_points\030\004 \003(\0132\212\001.google.clo" + + "ud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.C" + + "onditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + "\014ControlPoint\022\034\n" + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" @@ -515,28 +557,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013QuerySource\022\034\n" + "\030QUERY_SOURCE_UNSPECIFIED\020\000\022\017\n" + "\013AGENT_QUERY\020\001\022\023\n" - + "\017SUGGESTED_QUERY\020\002\"{\n" + + "\017SUGGESTED_QUERY\020\002\"\270\004\n" + + "\030SearchKnowledgeDebugInfo\022[\n" + + "\031datastore_response_reason\030\001 \001" + + "(\01628.google.cloud.dialogflow.v2beta1.DatastoreResponseReason\022t\n" + + "\031search_knowledge_behavior\030\002 \001(\0132Q.google.cloud.dialogflo" + + "w.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior\022q\n" + + "%ingested_context_reference_debug_info\030\003 \001(\0132B.google.cloud" + + ".dialogflow.v2beta1.IngestedContextReferenceDebugInfo\022H\n" + + "\017service_latency\030\004 \001(\0132/" + + ".google.cloud.dialogflow.v2beta1.ServiceLatency\032\213\001\n" + + "\027SearchKnowledgeBehavior\022%\n" + + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + + "\032end_user_metadata_included\030\002 \001(\010\022%\n" + + "\035third_party_connector_allowed\030\004 \001(\010\"\333\001\n" + "\027SearchKnowledgeResponse\022G\n" - + "\007answers\030\002 \003(\01326.google.c" - + "loud.dialogflow.v2beta1.SearchKnowledgeAnswer\022\027\n" - + "\017rewritten_query\030\003 \001(\t\"\330\003\n" + + "\007answers\030\002 \003(\01326.goo" + + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer\022\027\n" + + "\017rewritten_query\030\003 \001(\t\022^\n" + + "\033search_knowledge_debug_info\030\004 \001(\01329.googl" + + "e.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo\"\330\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022V\n" - + "\013answer_type\030\002 \001(\0162A.google.cloud.dialogflow." - + "v2beta1.SearchKnowledgeAnswer.AnswerType\022[\n" - + "\016answer_sources\030\003 \003(\0132C.google.cloud." - + "dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + + "\013answer_type\030\002 \001(\0162A.goo" + + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerType\022[\n" + + "\016answer_sources\030\003" + + " \003(\0132C.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + "answer_record\030\005 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\032f\n" - + "\014AnswerSource\022\r\n" + + "\014AnswerSource\022\r" + + "\n" + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\017\n" + "\007snippet\030\003 \001(\t\022)\n" + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" - + "\003FAQ\020\001\022\016\n" - + "\n" + + "\003FAQ\020\001\022\016\n\n" + "GENERATIVE\020\002\022\n\n" + "\006INTENT\020\003\"\361\001\n" + "\032GenerateSuggestionsRequest\022D\n" @@ -544,88 +601,94 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022J\n" - + "\016trigger_events\030\003" - + " \003(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + + "\016trigger_events\030\003 \003(\0162-" + + ".google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + "Conversations\022\241\002\n" - + "\022CreateConversation\022:.google.cloud.dialogflow.v2beta1.CreateConversat" - + "ionRequest\032-.google.cloud.dialogflow.v2b" - + "eta1.Conversation\"\237\001\332A\023parent,conversati" - + "on\202\323\344\223\002\202\001\"*/v2beta1/{parent=projects/*}/" - + "conversations:\014conversationZF\"6/v2beta1/" - + "{parent=projects/*/locations/*}/conversations:\014conversation\022\201\002\n" - + "\021ListConversations\0229.google.cloud.dialogflow.v2beta1.List" - + "ConversationsRequest\032:.google.cloud.dialogflow.v2beta1.ListConversationsResponse" - + "\"u\332A\006parent\202\323\344\223\002f\022*/v2beta1/{parent=proj" - + "ects/*}/conversationsZ8\0226/v2beta1/{paren" - + "t=projects/*/locations/*}/conversations\022\356\001\n" - + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetConversationRequest\032-.g" - + "oogle.cloud.dialogflow.v2beta1.Conversat" - + "ion\"s\332A\004name\202\323\344\223\002f\022*/v2beta1/{name=proje" - + "cts/*/conversations/*}Z8\0226/v2beta1/{name" - + "=projects/*/locations/*/conversations/*}\022\221\002\n" - + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1.CompleteConversation" - + "Request\032-.google.cloud.dialogflow.v2beta" - + "1.Conversation\"\213\001\332A\004name\202\323\344\223\002~\"3/v2beta1" - + "/{name=projects/*/conversations/*}:compl" - + "ete:\001*ZD\"?/v2beta1/{name=projects/*/locations/*/conversations/*}:complete:\001*\022\242\002\n" - + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1.IngestContextReferenc" - + "esRequest\032@.google.cloud.dialogflow.v2be" - + "ta1.IngestContextReferencesResponse\"\203\001\332A" - + "\037conversation,context_references\202\323\344\223\002[\"V" - + "/v2beta1/{conversation=projects/*/locati" - + "ons/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" - + "\023BatchCreateMessages\022;.google.cloud.dialogflow.v2beta1.BatchCreateM" - + "essagesRequest\032<.google.cloud.dialogflow" - + ".v2beta1.BatchCreateMessagesResponse\"\263\001\332" - + "A\017parent,requests\202\323\344\223\002\232\001\"A/v2beta1/{pare" - + "nt=projects/*/conversations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent=proje" - + "cts/*/locations/*/conversations/*}/messages:batchCreate:\001*\022\211\002\n" - + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.ListMessag" - + "esRequest\0325.google.cloud.dialogflow.v2be" - + "ta1.ListMessagesResponse\"\213\001\332A\006parent\202\323\344\223" - + "\002|\0225/v2beta1/{parent=projects/*/conversa" - + "tions/*}/messagesZC\022A/v2beta1/{parent=pr" - + "ojects/*/locations/*/conversations/*}/messages\022\210\003\n" - + "\032SuggestConversationSummary\022B.google.cloud.dialogflow.v2beta1.SuggestC" - + "onversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1.SuggestConversationS" - + "ummaryResponse\"\340\001\332A\014conversation\202\323\344\223\002\312\001\"" - + "Y/v2beta1/{conversation=projects/*/conversations/*}/suggestions:suggestConversat" - + "ionSummary:\001*Zj\"e/v2beta1/{conversation=projects/*/locations/*/conversations/*}/" - + "suggestions:suggestConversationSummary:\001*\022\361\002\n" - + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2beta1.GenerateStatele" - + "ssSummaryRequest\032A.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRespo" - + "nse\"\317\001\202\323\344\223\002\310\001\"X/v2beta1/{stateless_conve" - + "rsation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zi\"d/v2beta1/{" - + "stateless_conversation.parent=projects/*" - + "/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" - + "\033GenerateStatelessSuggestion\022C.google.cloud.dialogflow.v2beta1." - + "GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflow.v2beta1.GenerateSta" - + "telessSuggestionResponse\"P\202\323\344\223\002J\"E/v2bet" - + "a1/{parent=projects/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" - + "\017SearchKnowledge\0227.google.cloud.dialogflow.v2beta1" - + ".SearchKnowledgeRequest\0328.google.cloud.dialogflow.v2beta1.SearchKnowledgeRespons" - + "e\"\305\002\202\323\344\223\002\276\002\"8/v2beta1/{parent=projects/*" - + "}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projects/*/locations/*}/sug" - + "gestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=projects/*/conversations/*" - + "}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=projects/*/locations/" - + "*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" - + "\023GenerateSuggestions\022;.google.cloud.dialogflow.v2beta1.GenerateSugg" - + "estionsRequest\032<.google.cloud.dialogflow" - + ".v2beta1.GenerateSuggestionsResponse\"\274\001\332" - + "A\014conversation\202\323\344\223\002\246\001\"G/v2beta1/{convers" - + "ation=projects/*/conversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{conversat" - + "ion=projects/*/locations/*/conversations" - + "/*}/suggestions:generate:\001*\032x\312A\031dialogfl" - + "ow.googleapis.com\322AYhttps://www.googleap" - + "is.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\314\003\n" - + "#com.google.cloud.dialogflow.v2beta1B\021Conversat" - + "ionProtoP\001ZCcloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb\242" - + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022Xprojects/{project}/locations/{loca" - + "tion}/collections/{collection}/dataStores/{data_store}\022?projects/{project}/locat" - + "ions/{location}/dataStores/{data_store}\352AZ\n" - + "\027ces.googleapis.com/Tool\022?projects/{project}/locations/{location}/apps/{app}/" - + "tools/{tool}b\006proto3" + + "\022CreateConversation\022:.google.cloud.dialogflow.v2" + + "beta1.CreateConversationRequest\032-.google" + + ".cloud.dialogflow.v2beta1.Conversation\"\237" + + "\001\332A\023parent,conversation\202\323\344\223\002\202\001\"*/v2beta1" + + "/{parent=projects/*}/conversations:\014conversationZF\"6/v2beta1/{parent=projects/*/" + + "locations/*}/conversations:\014conversation\022\201\002\n" + + "\021ListConversations\0229.google.cloud.dialogflow.v2beta1.ListConversationsReques" + + "t\032:.google.cloud.dialogflow.v2beta1.List" + + "ConversationsResponse\"u\332A\006parent\202\323\344\223\002f\022*" + + "/v2beta1/{parent=projects/*}/conversatio" + + "nsZ8\0226/v2beta1/{parent=projects/*/locations/*}/conversations\022\356\001\n" + + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetCo" + + "nversationRequest\032-.google.cloud.dialogf" + + "low.v2beta1.Conversation\"s\332A\004name\202\323\344\223\002f\022" + + "*/v2beta1/{name=projects/*/conversations" + + "/*}Z8\0226/v2beta1/{name=projects/*/locations/*/conversations/*}\022\221\002\n" + + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1" + + ".CompleteConversationRequest\032-.google.cl" + + "oud.dialogflow.v2beta1.Conversation\"\213\001\332A" + + "\004name\202\323\344\223\002~\"3/v2beta1/{name=projects/*/c" + + "onversations/*}:complete:\001*ZD\"?/v2beta1/" + + "{name=projects/*/locations/*/conversations/*}:complete:\001*\022\242\002\n" + + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1." + + "IngestContextReferencesRequest\032@.google.cloud.dialogflow.v2beta1.IngestContextRe" + + "ferencesResponse\"\203\001\332A\037conversation,conte" + + "xt_references\202\323\344\223\002[\"V/v2beta1/{conversat" + + "ion=projects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" + + "\023BatchCreateMessages\022;.google.cloud.dialogflow" + + ".v2beta1.BatchCreateMessagesRequest\032<.google.cloud.dialogflow.v2beta1.BatchCreat" + + "eMessagesResponse\"\263\001\332A\017parent,requests\202\323" + + "\344\223\002\232\001\"A/v2beta1/{parent=projects/*/conve" + + "rsations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent=projects/*/locations/*/c" + + "onversations/*}/messages:batchCreate:\001*\022\211\002\n" + + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.ListMessagesRequest\0325.google." + + "cloud.dialogflow.v2beta1.ListMessagesRes" + + "ponse\"\213\001\332A\006parent\202\323\344\223\002|\0225/v2beta1/{paren" + + "t=projects/*/conversations/*}/messagesZC" + + "\022A/v2beta1/{parent=projects/*/locations/*/conversations/*}/messages\022\210\003\n" + + "\032SuggestConversationSummary\022B.google.cloud.dialog" + + "flow.v2beta1.SuggestConversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1" + + ".SuggestConversationSummaryResponse\"\340\001\332A" + + "\014conversation\202\323\344\223\002\312\001\"Y/v2beta1/{conversa" + + "tion=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Zj\"e/v" + + "2beta1/{conversation=projects/*/location" + + "s/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\361\002\n" + + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2" + + "beta1.GenerateStatelessSummaryRequest\032A.google.cloud.dialogflow.v2beta1.Generate" + + "StatelessSummaryResponse\"\317\001\202\323\344\223\002\310\001\"X/v2b" + + "eta1/{stateless_conversation.parent=projects/*}/suggestions:generateStatelessSum" + + "mary:\001*Zi\"d/v2beta1/{stateless_conversat" + + "ion.parent=projects/*/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" + + "\033GenerateStatelessSuggestion\022C.google.clou" + + "d.dialogflow.v2beta1.GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflo" + + "w.v2beta1.GenerateStatelessSuggestionRes" + + "ponse\"P\202\323\344\223\002J\"E/v2beta1/{parent=projects" + + "/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" + + "\017SearchKnowledge\0227.google.cloud.dialogflow.v2beta1.SearchKnowledgeReq" + + "uest\0328.google.cloud.dialogflow.v2beta1.S" + + "earchKnowledgeResponse\"\305\002\202\323\344\223\002\276\002\"8/v2bet" + + "a1/{parent=projects/*}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projec" + + "ts/*/locations/*}/suggestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=proje" + + "cts/*/conversations/*}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=" + + "projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" + + "\023GenerateSuggestions\022;.google.cloud.dialogflow" + + ".v2beta1.GenerateSuggestionsRequest\032<.google.cloud.dialogflow.v2beta1.GenerateSu" + + "ggestionsResponse\"\274\001\332A\014conversation\202\323\344\223\002" + + "\246\001\"G/v2beta1/{conversation=projects/*/co" + + "nversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{conversation=projects/*/loca" + + "tions/*/conversations/*}/suggestions:gen" + + "erate:\001*\032x\312A\031dialogflow.googleapis.com\322A", + "Yhttps://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "dialogflowB\314\003\n#com.google.cloud.dialogfl" + + "ow.v2beta1B\021ConversationProtoP\001ZCcloud.g" + + "oogle.com/go/dialogflow/apiv2beta1/dialo" + + "gflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud" + + ".Dialogflow.V2Beta1\352A\305\001\n(discoveryengine" + + ".googleapis.com/DataStore\022Xprojects/{pro" + + "ject}/locations/{location}/collections/{" + + "collection}/dataStores/{data_store}\022?pro" + + "jects/{project}/locations/{location}/dat" + + "aStores/{data_store}\352AZ\n\027ces.googleapis." + + "com/Tool\022?projects/{project}/locations/{" + + "location}/apps/{app}/tools/{tool}b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -656,7 +719,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", "TelephonyConnectionInfo", + "InitialConversationProfile", "IngestedContextReferences", + "InitialGeneratorContexts", }); internal_static_google_cloud_dialogflow_v2beta1_Conversation_TelephonyConnectionInfo_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor.getNestedType(0); @@ -701,14 +766,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Content", "ContentFormat", "IngestionTime", "AnswerRecord", }); - internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor.getNestedType(2); + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor, + new java.lang.String[] { + "GeneratorType", + }); + internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor.getNestedType(3); internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor.getNestedType(4); + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_dialogflow_v2beta1_ConversationPhoneNumber_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_dialogflow_v2beta1_ConversationPhoneNumber_fieldAccessorTable = @@ -854,11 +935,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_descriptor, new java.lang.String[] { - "Text", "TextSections", "AnswerRecord", "BaselineModelVersion", + "Text", "TextSections", "SortedTextSections", "AnswerRecord", "BaselineModelVersion", }); - internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor = internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_descriptor .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor, + new java.lang.String[] { + "Section", "Summary", + }); + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_descriptor + .getNestedType(1); internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor, @@ -1020,16 +1110,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataStores", "Filter", }); - internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor = getDescriptor().getMessageType(21); + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor, + new java.lang.String[] { + "DatastoreResponseReason", + "SearchKnowledgeBehavior", + "IngestedContextReferenceDebugInfo", + "ServiceLatency", + }); + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor, + new java.lang.String[] { + "AnswerGenerationRewriterOn", "EndUserMetadataIncluded", "ThirdPartyConnectorAllowed", + }); + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_descriptor = + getDescriptor().getMessageType(22); internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_descriptor, new java.lang.String[] { - "Answers", "RewrittenQuery", + "Answers", "RewrittenQuery", "SearchKnowledgeDebugInfo", }); internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeAnswer_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(23); internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeAnswer_descriptor, @@ -1046,7 +1156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Title", "Uri", "Snippet", "Metadata", }); internal_static_google_cloud_dialogflow_v2beta1_GenerateSuggestionsRequest_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(24); internal_static_google_cloud_dialogflow_v2beta1_GenerateSuggestionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_GenerateSuggestionsRequest_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DatastoreResponseReason.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DatastoreResponseReason.java new file mode 100644 index 000000000000..c0d457e6708f --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DatastoreResponseReason.java @@ -0,0 +1,358 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                  + * Response reason from datastore which indicates data serving status or
                                                                                                                                  + * answer quality degradation.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.DatastoreResponseReason} + */ +@com.google.protobuf.Generated +public enum DatastoreResponseReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +   * Default value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + */ + DATASTORE_RESPONSE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +   * No specific response reason from datastore.
                                                                                                                                  +   * 
                                                                                                                                  + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
                                                                                                                                  +   * Search is blocked due to out of quota.
                                                                                                                                  +   * 
                                                                                                                                  + * + * SEARCH_OUT_OF_QUOTA = 2; + */ + SEARCH_OUT_OF_QUOTA(2), + /** + * + * + *
                                                                                                                                  +   * Search returns empty results.
                                                                                                                                  +   * 
                                                                                                                                  + * + * SEARCH_EMPTY_RESULTS = 3; + */ + SEARCH_EMPTY_RESULTS(3), + /** + * + * + *
                                                                                                                                  +   * Generative AI is disabled.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_GEN_AI_DISABLED = 4; + */ + ANSWER_GENERATION_GEN_AI_DISABLED(4), + /** + * + * + *
                                                                                                                                  +   * Answer generation is blocked due to out of quota.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_OUT_OF_QUOTA = 5; + */ + ANSWER_GENERATION_OUT_OF_QUOTA(5), + /** + * + * + *
                                                                                                                                  +   * Answer generation encounters an error.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_ERROR = 6; + */ + ANSWER_GENERATION_ERROR(6), + /** + * + * + *
                                                                                                                                  +   * Answer generation does not have enough information to generate answer.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + */ + ANSWER_GENERATION_NOT_ENOUGH_INFO(7), + /** + * + * + *
                                                                                                                                  +   * Answer generation is blocked by RAI (Responsible AI) failure.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_RAI_FAILED = 8; + */ + ANSWER_GENERATION_RAI_FAILED(8), + /** + * + * + *
                                                                                                                                  +   * Answer generation is not grounded on reliable sources.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_NOT_GROUNDED = 9; + */ + ANSWER_GENERATION_NOT_GROUNDED(9), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DatastoreResponseReason"); + } + + /** + * + * + *
                                                                                                                                  +   * Default value.
                                                                                                                                  +   * 
                                                                                                                                  + * + * DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + */ + public static final int DATASTORE_RESPONSE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +   * No specific response reason from datastore.
                                                                                                                                  +   * 
                                                                                                                                  + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +   * Search is blocked due to out of quota.
                                                                                                                                  +   * 
                                                                                                                                  + * + * SEARCH_OUT_OF_QUOTA = 2; + */ + public static final int SEARCH_OUT_OF_QUOTA_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +   * Search returns empty results.
                                                                                                                                  +   * 
                                                                                                                                  + * + * SEARCH_EMPTY_RESULTS = 3; + */ + public static final int SEARCH_EMPTY_RESULTS_VALUE = 3; + + /** + * + * + *
                                                                                                                                  +   * Generative AI is disabled.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_GEN_AI_DISABLED = 4; + */ + public static final int ANSWER_GENERATION_GEN_AI_DISABLED_VALUE = 4; + + /** + * + * + *
                                                                                                                                  +   * Answer generation is blocked due to out of quota.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_OUT_OF_QUOTA = 5; + */ + public static final int ANSWER_GENERATION_OUT_OF_QUOTA_VALUE = 5; + + /** + * + * + *
                                                                                                                                  +   * Answer generation encounters an error.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_ERROR = 6; + */ + public static final int ANSWER_GENERATION_ERROR_VALUE = 6; + + /** + * + * + *
                                                                                                                                  +   * Answer generation does not have enough information to generate answer.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + */ + public static final int ANSWER_GENERATION_NOT_ENOUGH_INFO_VALUE = 7; + + /** + * + * + *
                                                                                                                                  +   * Answer generation is blocked by RAI (Responsible AI) failure.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_RAI_FAILED = 8; + */ + public static final int ANSWER_GENERATION_RAI_FAILED_VALUE = 8; + + /** + * + * + *
                                                                                                                                  +   * Answer generation is not grounded on reliable sources.
                                                                                                                                  +   * 
                                                                                                                                  + * + * ANSWER_GENERATION_NOT_GROUNDED = 9; + */ + public static final int ANSWER_GENERATION_NOT_GROUNDED_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatastoreResponseReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatastoreResponseReason forNumber(int value) { + switch (value) { + case 0: + return DATASTORE_RESPONSE_REASON_UNSPECIFIED; + case 1: + return NONE; + case 2: + return SEARCH_OUT_OF_QUOTA; + case 3: + return SEARCH_EMPTY_RESULTS; + case 4: + return ANSWER_GENERATION_GEN_AI_DISABLED; + case 5: + return ANSWER_GENERATION_OUT_OF_QUOTA; + case 6: + return ANSWER_GENERATION_ERROR; + case 7: + return ANSWER_GENERATION_NOT_ENOUGH_INFO; + case 8: + return ANSWER_GENERATION_RAI_FAILED; + case 9: + return ANSWER_GENERATION_NOT_GROUNDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatastoreResponseReason findValueByNumber(int number) { + return DatastoreResponseReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DatastoreResponseReason[] VALUES = values(); + + public static DatastoreResponseReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DatastoreResponseReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.DatastoreResponseReason) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java index df583b2aba74..6cfddfcc2c72 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java @@ -56,6 +56,9 @@ private Generator() { description_ = ""; triggerEvent_ = 0; tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + toolsetTools_ = java.util.Collections.emptyList(); + cesToolSpecs_ = java.util.Collections.emptyList(); + cesAppSpecs_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -887,6 +890,267 @@ public boolean hasSuggestionDedupingConfig() { : suggestionDedupingConfig_; } + public static final int TOOLSET_TOOLS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List toolsetTools_; + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsetToolsList() { + return toolsetTools_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolsetToolsOrBuilderList() { + return toolsetTools_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsetToolsCount() { + return toolsetTools_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool getToolsetTools(int index) { + return toolsetTools_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder getToolsetToolsOrBuilder( + int index) { + return toolsetTools_.get(index); + } + + public static final int CES_TOOL_SPECS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List cesToolSpecs_; + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCesToolSpecsList() { + return cesToolSpecs_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCesToolSpecsOrBuilderList() { + return cesToolSpecs_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCesToolSpecsCount() { + return cesToolSpecs_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec getCesToolSpecs(int index) { + return cesToolSpecs_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder getCesToolSpecsOrBuilder( + int index) { + return cesToolSpecs_.get(index); + } + + public static final int CES_APP_SPECS_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private java.util.List cesAppSpecs_; + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCesAppSpecsList() { + return cesAppSpecs_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCesAppSpecsOrBuilderList() { + return cesAppSpecs_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCesAppSpecsCount() { + return cesAppSpecs_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec getCesAppSpecs(int index) { + return cesAppSpecs_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder getCesAppSpecsOrBuilder( + int index) { + return cesAppSpecs_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -938,6 +1202,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(23, getSuggestionDedupingConfig()); } + for (int i = 0; i < toolsetTools_.size(); i++) { + output.writeMessage(27, toolsetTools_.get(i)); + } + for (int i = 0; i < cesToolSpecs_.size(); i++) { + output.writeMessage(28, cesToolSpecs_.get(i)); + } + for (int i = 0; i < cesAppSpecs_.size(); i++) { + output.writeMessage(29, cesAppSpecs_.get(i)); + } getUnknownFields().writeTo(output); } @@ -997,6 +1270,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 23, getSuggestionDedupingConfig()); } + for (int i = 0; i < toolsetTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, toolsetTools_.get(i)); + } + for (int i = 0; i < cesToolSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, cesToolSpecs_.get(i)); + } + for (int i = 0; i < cesAppSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, cesAppSpecs_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1033,6 +1315,9 @@ public boolean equals(final java.lang.Object obj) { if (hasSuggestionDedupingConfig()) { if (!getSuggestionDedupingConfig().equals(other.getSuggestionDedupingConfig())) return false; } + if (!getToolsetToolsList().equals(other.getToolsetToolsList())) return false; + if (!getCesToolSpecsList().equals(other.getCesToolSpecsList())) return false; + if (!getCesAppSpecsList().equals(other.getCesAppSpecsList())) return false; if (!getContextCase().equals(other.getContextCase())) return false; switch (contextCase_) { case 11: @@ -1092,6 +1377,18 @@ public int hashCode() { hash = (37 * hash) + SUGGESTION_DEDUPING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSuggestionDedupingConfig().hashCode(); } + if (getToolsetToolsCount() > 0) { + hash = (37 * hash) + TOOLSET_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsetToolsList().hashCode(); + } + if (getCesToolSpecsCount() > 0) { + hash = (37 * hash) + CES_TOOL_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCesToolSpecsList().hashCode(); + } + if (getCesAppSpecsCount() > 0) { + hash = (37 * hash) + CES_APP_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCesAppSpecsList().hashCode(); + } switch (contextCase_) { case 11: hash = (37 * hash) + FREE_FORM_CONTEXT_FIELD_NUMBER; @@ -1261,6 +1558,9 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetSuggestionDedupingConfigFieldBuilder(); + internalGetToolsetToolsFieldBuilder(); + internalGetCesToolSpecsFieldBuilder(); + internalGetCesAppSpecsFieldBuilder(); } } @@ -1301,6 +1601,27 @@ public Builder clear() { suggestionDedupingConfigBuilder_.dispose(); suggestionDedupingConfigBuilder_ = null; } + if (toolsetToolsBuilder_ == null) { + toolsetTools_ = java.util.Collections.emptyList(); + } else { + toolsetTools_ = null; + toolsetToolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (cesToolSpecsBuilder_ == null) { + cesToolSpecs_ = java.util.Collections.emptyList(); + } else { + cesToolSpecs_ = null; + cesToolSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + if (cesAppSpecsBuilder_ == null) { + cesAppSpecs_ = java.util.Collections.emptyList(); + } else { + cesAppSpecs_ = null; + cesAppSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); contextCase_ = 0; context_ = null; foundationModelCase_ = 0; @@ -1332,6 +1653,7 @@ public com.google.cloud.dialogflow.v2beta1.Generator build() { public com.google.cloud.dialogflow.v2beta1.Generator buildPartial() { com.google.cloud.dialogflow.v2beta1.Generator result = new com.google.cloud.dialogflow.v2beta1.Generator(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1340,6 +1662,36 @@ public com.google.cloud.dialogflow.v2beta1.Generator buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.v2beta1.Generator result) { + if (toolsetToolsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + toolsetTools_ = java.util.Collections.unmodifiableList(toolsetTools_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.toolsetTools_ = toolsetTools_; + } else { + result.toolsetTools_ = toolsetToolsBuilder_.build(); + } + if (cesToolSpecsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + cesToolSpecs_ = java.util.Collections.unmodifiableList(cesToolSpecs_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.cesToolSpecs_ = cesToolSpecs_; + } else { + result.cesToolSpecs_ = cesToolSpecsBuilder_.build(); + } + if (cesAppSpecsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + cesAppSpecs_ = java.util.Collections.unmodifiableList(cesAppSpecs_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.cesAppSpecs_ = cesAppSpecs_; + } else { + result.cesAppSpecs_ = cesAppSpecsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Generator result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1444,6 +1796,87 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Generator other) { if (other.hasSuggestionDedupingConfig()) { mergeSuggestionDedupingConfig(other.getSuggestionDedupingConfig()); } + if (toolsetToolsBuilder_ == null) { + if (!other.toolsetTools_.isEmpty()) { + if (toolsetTools_.isEmpty()) { + toolsetTools_ = other.toolsetTools_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureToolsetToolsIsMutable(); + toolsetTools_.addAll(other.toolsetTools_); + } + onChanged(); + } + } else { + if (!other.toolsetTools_.isEmpty()) { + if (toolsetToolsBuilder_.isEmpty()) { + toolsetToolsBuilder_.dispose(); + toolsetToolsBuilder_ = null; + toolsetTools_ = other.toolsetTools_; + bitField0_ = (bitField0_ & ~0x00001000); + toolsetToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsetToolsFieldBuilder() + : null; + } else { + toolsetToolsBuilder_.addAllMessages(other.toolsetTools_); + } + } + } + if (cesToolSpecsBuilder_ == null) { + if (!other.cesToolSpecs_.isEmpty()) { + if (cesToolSpecs_.isEmpty()) { + cesToolSpecs_ = other.cesToolSpecs_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.addAll(other.cesToolSpecs_); + } + onChanged(); + } + } else { + if (!other.cesToolSpecs_.isEmpty()) { + if (cesToolSpecsBuilder_.isEmpty()) { + cesToolSpecsBuilder_.dispose(); + cesToolSpecsBuilder_ = null; + cesToolSpecs_ = other.cesToolSpecs_; + bitField0_ = (bitField0_ & ~0x00002000); + cesToolSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCesToolSpecsFieldBuilder() + : null; + } else { + cesToolSpecsBuilder_.addAllMessages(other.cesToolSpecs_); + } + } + } + if (cesAppSpecsBuilder_ == null) { + if (!other.cesAppSpecs_.isEmpty()) { + if (cesAppSpecs_.isEmpty()) { + cesAppSpecs_ = other.cesAppSpecs_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.addAll(other.cesAppSpecs_); + } + onChanged(); + } + } else { + if (!other.cesAppSpecs_.isEmpty()) { + if (cesAppSpecsBuilder_.isEmpty()) { + cesAppSpecsBuilder_.dispose(); + cesAppSpecsBuilder_ = null; + cesAppSpecs_ = other.cesAppSpecs_; + bitField0_ = (bitField0_ & ~0x00004000); + cesAppSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCesAppSpecsFieldBuilder() + : null; + } else { + cesAppSpecsBuilder_.addAllMessages(other.cesAppSpecs_); + } + } + } switch (other.getContextCase()) { case FREE_FORM_CONTEXT: { @@ -1586,6 +2019,47 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 186 + case 218: + { + com.google.cloud.dialogflow.v2beta1.ToolsetTool m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.ToolsetTool.parser(), + extensionRegistry); + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(m); + } else { + toolsetToolsBuilder_.addMessage(m); + } + break; + } // case 218 + case 226: + { + com.google.cloud.dialogflow.v2beta1.CesToolSpec m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.CesToolSpec.parser(), + extensionRegistry); + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(m); + } else { + cesToolSpecsBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + com.google.cloud.dialogflow.v2beta1.CesAppSpec m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.CesAppSpec.parser(), extensionRegistry); + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(m); + } else { + cesAppSpecsBuilder_.addMessage(m); + } + break; + } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3910,6 +4384,1229 @@ public Builder clearSuggestionDedupingConfig() { return suggestionDedupingConfigBuilder_; } + private java.util.List toolsetTools_ = + java.util.Collections.emptyList(); + + private void ensureToolsetToolsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + toolsetTools_ = + new java.util.ArrayList(toolsetTools_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ToolsetTool, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder> + toolsetToolsBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsetToolsList() { + if (toolsetToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolsetTools_); + } else { + return toolsetToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsetToolsCount() { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.size(); + } else { + return toolsetToolsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetTool getToolsetTools(int index) { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.get(index); + } else { + return toolsetToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTools( + int index, com.google.cloud.dialogflow.v2beta1.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.set(index, value); + onChanged(); + } else { + toolsetToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTools( + int index, com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools(com.google.cloud.dialogflow.v2beta1.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.add(value); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + int index, com.google.cloud.dialogflow.v2beta1.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.add(index, value); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + int index, com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolsetTools( + java.lang.Iterable values) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolsetTools_); + onChanged(); + } else { + toolsetToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsetTools() { + if (toolsetToolsBuilder_ == null) { + toolsetTools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + toolsetToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolsetTools(int index) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.remove(index); + onChanged(); + } else { + toolsetToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder getToolsetToolsBuilder( + int index) { + return internalGetToolsetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder getToolsetToolsOrBuilder( + int index) { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.get(index); + } else { + return toolsetToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetToolsOrBuilderList() { + if (toolsetToolsBuilder_ != null) { + return toolsetToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolsetTools_); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder addToolsetToolsBuilder() { + return internalGetToolsetToolsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.ToolsetTool.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder addToolsetToolsBuilder( + int index) { + return internalGetToolsetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2beta1.ToolsetTool.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetToolsBuilderList() { + return internalGetToolsetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ToolsetTool, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder> + internalGetToolsetToolsFieldBuilder() { + if (toolsetToolsBuilder_ == null) { + toolsetToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ToolsetTool, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder>( + toolsetTools_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + toolsetTools_ = null; + } + return toolsetToolsBuilder_; + } + + private java.util.List cesToolSpecs_ = + java.util.Collections.emptyList(); + + private void ensureCesToolSpecsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + cesToolSpecs_ = + new java.util.ArrayList(cesToolSpecs_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesToolSpec, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder> + cesToolSpecsBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCesToolSpecsList() { + if (cesToolSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cesToolSpecs_); + } else { + return cesToolSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCesToolSpecsCount() { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.size(); + } else { + return cesToolSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpec getCesToolSpecs(int index) { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.get(index); + } else { + return cesToolSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesToolSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.set(index, value); + onChanged(); + } else { + cesToolSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesToolSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs(com.google.cloud.dialogflow.v2beta1.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(value); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(index, value); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCesToolSpecs( + java.lang.Iterable values) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cesToolSpecs_); + onChanged(); + } else { + cesToolSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCesToolSpecs() { + if (cesToolSpecsBuilder_ == null) { + cesToolSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + cesToolSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCesToolSpecs(int index) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.remove(index); + onChanged(); + } else { + cesToolSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder getCesToolSpecsBuilder( + int index) { + return internalGetCesToolSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder getCesToolSpecsOrBuilder( + int index) { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.get(index); + } else { + return cesToolSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesToolSpecsOrBuilderList() { + if (cesToolSpecsBuilder_ != null) { + return cesToolSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cesToolSpecs_); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder addCesToolSpecsBuilder() { + return internalGetCesToolSpecsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.CesToolSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder addCesToolSpecsBuilder( + int index) { + return internalGetCesToolSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2beta1.CesToolSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesToolSpecsBuilderList() { + return internalGetCesToolSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesToolSpec, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder> + internalGetCesToolSpecsFieldBuilder() { + if (cesToolSpecsBuilder_ == null) { + cesToolSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesToolSpec, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder>( + cesToolSpecs_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + cesToolSpecs_ = null; + } + return cesToolSpecsBuilder_; + } + + private java.util.List cesAppSpecs_ = + java.util.Collections.emptyList(); + + private void ensureCesAppSpecsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + cesAppSpecs_ = + new java.util.ArrayList(cesAppSpecs_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesAppSpec, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder> + cesAppSpecsBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCesAppSpecsList() { + if (cesAppSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cesAppSpecs_); + } else { + return cesAppSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCesAppSpecsCount() { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.size(); + } else { + return cesAppSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpec getCesAppSpecs(int index) { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.get(index); + } else { + return cesAppSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesAppSpecs(int index, com.google.cloud.dialogflow.v2beta1.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.set(index, value); + onChanged(); + } else { + cesAppSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesAppSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs(com.google.cloud.dialogflow.v2beta1.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(value); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs(int index, com.google.cloud.dialogflow.v2beta1.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(index, value); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs( + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCesAppSpecs( + java.lang.Iterable values) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cesAppSpecs_); + onChanged(); + } else { + cesAppSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCesAppSpecs() { + if (cesAppSpecsBuilder_ == null) { + cesAppSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + cesAppSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCesAppSpecs(int index) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.remove(index); + onChanged(); + } else { + cesAppSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder getCesAppSpecsBuilder(int index) { + return internalGetCesAppSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder getCesAppSpecsOrBuilder( + int index) { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.get(index); + } else { + return cesAppSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesAppSpecsOrBuilderList() { + if (cesAppSpecsBuilder_ != null) { + return cesAppSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cesAppSpecs_); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder addCesAppSpecsBuilder() { + return internalGetCesAppSpecsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.CesAppSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder addCesAppSpecsBuilder(int index) { + return internalGetCesAppSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2beta1.CesAppSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesAppSpecsBuilderList() { + return internalGetCesAppSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesAppSpec, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder> + internalGetCesAppSpecsFieldBuilder() { + if (cesAppSpecsBuilder_ == null) { + cesAppSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesAppSpec, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder>( + cesAppSpecs_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + cesAppSpecs_ = null; + } + return cesAppSpecsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Generator) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java index 9e555f64e8c9..dc22c521bd97 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java @@ -516,6 +516,204 @@ public interface GeneratorOrBuilder com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder getSuggestionDedupingConfigOrBuilder(); + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsetToolsList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.ToolsetTool getToolsetTools(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsetToolsCount(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolsetToolsOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCesToolSpecsList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.CesToolSpec getCesToolSpecs(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCesToolSpecsCount(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCesToolSpecsOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCesAppSpecsList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.CesAppSpec getCesAppSpecs(int index); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCesAppSpecsCount(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCesAppSpecsOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder getCesAppSpecsOrBuilder(int index); + com.google.cloud.dialogflow.v2beta1.Generator.ContextCase getContextCase(); com.google.cloud.dialogflow.v2beta1.Generator.FoundationModelCase getFoundationModelCase(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java index b77bcb1c8720..540fe43f3d50 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java @@ -178,14 +178,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "a1\032\034google/api/annotations.proto\032\027google" + "/api/client.proto\032\037google/api/field_beha" + "vior.proto\032\031google/api/resource.proto\032@g" - + "oogle/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto\032/google/cloud/di" - + "alogflow/v2beta1/tool_call.proto\032\033google/protobuf/empty.proto\032" + + "oogle/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto\032-google/cloud/di" + + "alogflow/v2beta1/ces_app.proto\032.google/cloud/dialogflow/v2beta1/ces_tool.proto\032/" + + "google/cloud/dialogflow/v2beta1/tool_call.proto\032-google/cloud/dialogflow/v2beta1" + + "/toolset.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\274\001\n" + "\026CreateGeneratorRequest\022C\n" + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022B\n" - + "\tgenerator\030\002 " - + "\001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\022\031\n" + + "\tgenerator\030\002" + + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\022\031\n" + "\014generator_id\030\003 \001(\tB\003\340A\001\"P\n" + "\023GetGeneratorRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" @@ -202,13 +204,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#dialogflow.googleapis.com/Generator\"\222\001\n" + "\026UpdateGeneratorRequest\022B\n" - + "\tgenerator\030\001 \001(\0132*.google" - + ".cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\0224\n" + + "\tgenerator\030\001" + + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\214\002\n" + "\014MessageEntry\022E\n" - + "\004role\030\001" - + " \001(\01622.google.cloud.dialogflow.v2beta1.MessageEntry.RoleB\003\340A\001\022\021\n" + + "\004role\030\001 \001(\01622.google.clo" + + "ud.dialogflow.v2beta1.MessageEntry.RoleB\003\340A\001\022\021\n" + "\004text\030\002 \001(\tB\003\340A\001\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"P\n" @@ -218,20 +220,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017AUTOMATED_AGENT\020\002\022\014\n" + "\010END_USER\020\003\"b\n" + "\023ConversationContext\022K\n" - + "\017message_entries\030\001" - + " \003(\0132-.google.cloud.dialogflow.v2beta1.MessageEntryB\003\340A\001\"v\n" + + "\017message_entries\030\001 \003(\0132-.go" + + "ogle.cloud.dialogflow.v2beta1.MessageEntryB\003\340A\001\"v\n" + "\030SummarizationSectionList\022Z\n" - + "\026summarization_sections\030\001" - + " \003(\01325.google.cloud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\"\264\003\n" + + "\026summarization_sections\030\001 \003(\01325.google.clo" + + "ud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\"\264\003\n" + "\016FewShotExample\022W\n" - + "\024conversation_context\030\003 \001(\01324.goo" - + "gle.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022W\n\n" - + "extra_info\030\004 \003(\0132>.goog" - + "le.cloud.dialogflow.v2beta1.FewShotExample.ExtraInfoEntryB\003\340A\001\022_\n" - + "\032summarization_section_list\030\006 \001(\01329.google.cloud.dialog" - + "flow.v2beta1.SummarizationSectionListH\000\022I\n" - + "\006output\030\007" - + " \001(\01324.google.cloud.dialogflow.v2beta1.GeneratorSuggestionB\003\340A\002\0320\n" + + "\024conversation_context\030\003" + + " \001(\01324.google.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022W\n\n" + + "extra_info\030\004 \003(\0132>.google.cloud.dialogflo" + + "w.v2beta1.FewShotExample.ExtraInfoEntryB\003\340A\001\022_\n" + + "\032summarization_section_list\030\006 \001(\013" + + "29.google.cloud.dialogflow.v2beta1.SummarizationSectionListH\000\022I\n" + + "\006output\030\007 \001(\01324." + + "google.cloud.dialogflow.v2beta1.GeneratorSuggestionB\003\340A\002\0320\n" + "\016ExtraInfoEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\022\n" @@ -247,15 +249,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_top_p\"\310\001\n" + "\024AgentCoachingContext\022!\n" + "\024overarching_guidance\030\007 \001(\tB\003\340A\001\022T\n" - + "\014instructions\030\001 \003(\01329.google.cloud" - + ".dialogflow.v2beta1.AgentCoachingInstructionB\003\340A\001\022\024\n" + + "\014instructions\030\001" + + " \003(\01329.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionB\003\340A\001\022\024\n" + "\007version\030\002 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\t \001(\tB\003\340A\001\"\341\002\n" + "\024SummarizationSection\022\020\n" + "\003key\030\001 \001(\tB\003\340A\001\022\027\n\n" + "definition\030\002 \001(\tB\003\340A\001\022M\n" - + "\004type\030\003 \001(\0162:.google.cl" - + "oud.dialogflow.v2beta1.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + + "\004type\030\003" + + " \001(\0162:.google.cloud.dialogflow.v2beta1.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSITUATION\020\001\022\n\n" @@ -269,25 +271,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ACTION_CONCISE\020\n" + "\"\374\001\n" + "\024SummarizationContext\022Z\n" - + "\026summarization_sections\030\001 \003(\0132" - + "5.google.cloud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\022O\n" - + "\021few_shot_examples\030\002" - + " \003(\0132/.google.cloud.dialogflow.v2beta1.FewShotExampleB\003\340A\001\022\024\n" + + "\026summarization_sections\030\001 \003(\01325.google.cloud.dia" + + "logflow.v2beta1.SummarizationSectionB\003\340A\001\022O\n" + + "\021few_shot_examples\030\002 \003(\0132/.google.cl" + + "oud.dialogflow.v2beta1.FewShotExampleB\003\340A\001\022\024\n" + "\007version\030\003 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\006 \001(\tB\003\340A\001\"$\n" + "\017FreeFormContext\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\001\"\244\007\n" + + "\004text\030\001 \001(\tB\003\340A\001\"\202\t\n" + "\tGenerator\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022M\n" - + "\021free_form_context\030\013" - + " \001(\01320.google.cloud.dialogflow.v2beta1.FreeFormContextH\000\022W\n" - + "\026agent_coaching_context\030\014" - + " \001(\01325.google.cloud.dialogflow.v2beta1.AgentCoachingContextH\000\022V\n" + + "\021free_form_context\030\013 \001(\01320.google.clou" + + "d.dialogflow.v2beta1.FreeFormContextH\000\022W\n" + + "\026agent_coaching_context\030\014 \001(\01325.google." + + "cloud.dialogflow.v2beta1.AgentCoachingContextH\000\022V\n" + "\025summarization_context\030\r" + " \001(\01325.google.cloud.dialogflow.v2beta1.SummarizationContextH\000\022U\n" - + "\023inference_parameter\030\004 \001(\01323.google.cloud.di" - + "alogflow.v2beta1.InferenceParameterB\003\340A\001\022I\n\r" + + "\023inference_parameter\030\004" + + " \001(\01323.google.cloud.dialogflow.v2beta1.InferenceParameterB\003\340A\001\022I\n\r" + "trigger_event\030\005" + " \001(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\022\036\n" + "\017published_model\030\017 \001(\tB\003\340A\001H\001\0224\n" @@ -295,61 +297,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + "\005tools\030\016 \003(\tB&\340A\001\372A \n" + "\036dialogflow.googleapis.com/Tool\022b\n" - + "\032suggestion_deduping_config\030\027 \001(\01329.google.clou" - + "d.dialogflow.v2beta1.SuggestionDedupingConfigB\003\340A\001:\177\352A|\n" - + "#dialogflow.googleapis.c" - + "om/Generator\022>projects/{project}/locations/{location}/generators/{generator}*\n" + + "\032suggestion_deduping_config\030\027" + + " \001(\01329.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigB\003\340A\001\022H\n\r" + + "toolset_tools\030\033" + + " \003(\0132,.google.cloud.dialogflow.v2beta1.ToolsetToolB\003\340A\001\022I\n" + + "\016ces_tool_specs\030\034" + + " \003(\0132,.google.cloud.dialogflow.v2beta1.CesToolSpecB\003\340A\001\022G\n\r" + + "ces_app_specs\030\035" + + " \003(\0132+.google.cloud.dialogflow.v2beta1.CesAppSpecB\003\340A\001:\177\352A|\n" + + "#dialogflow.googleapis.com/Generator\022>projects/{project}/loc" + + "ations/{location}/generators/{generator}*\n" + "generators2\tgeneratorB\t\n" + "\007contextB\022\n" + "\020foundation_model\"+\n" + "\022FreeFormSuggestion\022\025\n" + "\010response\030\001 \001(\tB\003\340A\002\"\263\001\n" + "\021SummarySuggestion\022`\n" - + "\020summary_sections\030\001 \003(\0132A.google.cloud.d" - + "ialogflow.v2beta1.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + + "\020summary_sections\030\001 \003(\0132A.google.clo" + + "ud.dialogflow.v2beta1.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + "\016SummarySection\022\024\n" + "\007section\030\001 \001(\tB\003\340A\002\022\024\n" + "\007summary\030\002 \001(\tB\003\340A\002\"\355\t\n" + "\027AgentCoachingSuggestion\022_\n" - + "\027applicable_instructions\030\001 \003(\01329.google.cloud.dialog" - + "flow.v2beta1.AgentCoachingInstructionB\003\340A\001\022u\n" - + "\030agent_action_suggestions\030\002 \003(\0132N.g" - + "oogle.cloud.dialogflow.v2beta1.AgentCoac" - + "hingSuggestion.AgentActionSuggestionB\003\340A\001\022f\n" - + "\020sample_responses\030\003 \003(\0132G.google.clo" - + "ud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + + "\027applicable_instructions\030\001 \003(\01329.google.cloud.di" + + "alogflow.v2beta1.AgentCoachingInstructionB\003\340A\001\022u\n" + + "\030agent_action_suggestions\030\002 \003(\0132N.google.cloud.dialogflow.v2beta1.Agent" + + "CoachingSuggestion.AgentActionSuggestionB\003\340A\001\022f\n" + + "\020sample_responses\030\003 \003(\0132G.google" + + ".cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + "\007Sources\022 \n" + "\023instruction_indexes\030\002 \003(\005B\003\340A\003\032\350\002\n" + "\024DuplicateCheckResult\022\205\001\n" - + "\025duplicate_suggestions\030\001 \003(\0132a.google.cloud.dialogflow.v2beta" - + "1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\307\001\n" + + "\025duplicate_suggestions\030\001 \003(\0132a.google.cloud.dialogflow.v2" + + "beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\307\001\n" + "\023DuplicateSuggestion\022\032\n\r" + "answer_record\030\001 \001(\tB\003\340A\003\022V\n" - + "\007sources\030\002 \001(\0132@.google.cloud.dial" - + "ogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + + "\007sources\030\002 \001(\0132@.google.cloud." + + "dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + "\020suggestion_index\030\003 \001(\005B\003\340A\003\022\035\n" + "\020similarity_score\030\004 \001(\002B\003\340A\003\032\376\001\n" + "\025AgentActionSuggestion\022\031\n" + "\014agent_action\030\001 \001(\tB\003\340A\001\022V\n" - + "\007sources\030\002 \001(\0132@.google.cloud.d" - + "ialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" - + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dialogflow.v2beta1" - + ".AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\370\001\n" + + "\007sources\030\002 \001(\0132@.google.clo" + + "ud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" + + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dialogflow.v2b" + + "eta1.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\370\001\n" + "\016SampleResponse\022\032\n\r" + "response_text\030\001 \001(\tB\003\340A\001\022V\n" - + "\007sources\030\002 \001(\0132@.goo" - + "gle.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" - + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dialogf" - + "low.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\274\004\n" + + "\007sources\030\002 \001(\0132@" + + ".google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" + + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dia" + + "logflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\274\004\n" + "\023GeneratorSuggestion\022X\n" - + "\024free_form_suggestion\030\001 \001(\01323.go" - + "ogle.cloud.dialogflow.v2beta1.FreeFormSuggestionB\003\340A\001H\000\022U\n" - + "\022summary_suggestion\030\002 " - + "\001(\01322.google.cloud.dialogflow.v2beta1.SummarySuggestionB\003\340A\001H\000\022b\n" - + "\031agent_coaching_suggestion\030\003 \001(\01328.google.cloud.dialogf" - + "low.v2beta1.AgentCoachingSuggestionB\003\340A\001H\000\022^\n" - + "\016tool_call_info\030\t \003(\0132A.google.clou" - + "d.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\241\001\n" + + "\024free_form_suggestion\030\001 \001(\0132" + + "3.google.cloud.dialogflow.v2beta1.FreeFormSuggestionB\003\340A\001H\000\022U\n" + + "\022summary_suggestion\030\002" + + " \001(\01322.google.cloud.dialogflow.v2beta1.SummarySuggestionB\003\340A\001H\000\022b\n" + + "\031agent_coaching_suggestion\030\003 \001(\01328.google.cloud.dia" + + "logflow.v2beta1.AgentCoachingSuggestionB\003\340A\001H\000\022^\n" + + "\016tool_call_info\030\t \003(\0132A.google." + + "cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\241\001\n" + "\014ToolCallInfo\022A\n" + "\ttool_call\030\001" + " \001(\0132).google.cloud.dialogflow.v2beta1.ToolCallB\003\340A\002\022N\n" @@ -360,13 +367,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017enable_deduping\030\001 \001(\010B\003\340A\001\022!\n" + "\024similarity_threshold\030\002 \001(\002B\003\340A\001\"\307\004\n" + "\013RaiSettings\022\\\n" - + "\024rai_category_configs\030\001 \003(\0132>.google.cloud.dialogflo" - + "w.v2beta1.RaiSettings.RaiCategoryConfig\032\331\003\n" + + "\024rai_category_configs\030\001 \003(\0132>.google.cloud.dialo" + + "gflow.v2beta1.RaiSettings.RaiCategoryConfig\032\331\003\n" + "\021RaiCategoryConfig\022a\n" - + "\010category\030\001 \001(\0162J.google.cloud.dialogflow.v2beta1.RaiSet" - + "tings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022o\n" - + "\021sensitivity_level\030\002 \001(\0162O.google.clo" - + "ud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + + "\010category\030\001 \001(\0162J.google.cloud.dialogflow.v2beta1.Ra" + + "iSettings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022o\n" + + "\021sensitivity_level\030\002 \001(\0162O.google" + + ".cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + "\013RaiCategory\022\034\n" + "\030RAI_CATEGORY_UNSPECIFIED\020\000\022\025\n" + "\021DANGEROUS_CONTENT\020\001\022\025\n" @@ -386,35 +393,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020CUSTOMER_MESSAGE\020\003\022\021\n\r" + "AGENT_MESSAGE\020\0042\326\t\n\n" + "Generators\022\225\002\n" - + "\017CreateGenerator\0227.google.cloud.dialogflow.v2beta1.CreateGe" - + "neratorRequest\032*.google.cloud.dialogflow" - + ".v2beta1.Generator\"\234\001\332A\035parent,generator" - + ",generator_id\202\323\344\223\002v\"3/v2beta1/{parent=projects/*/locations/*}/generators:" + + "\017CreateGenerator\0227.google.cloud.dialogflow.v2beta1.Crea" + + "teGeneratorRequest\032*.google.cloud.dialog" + + "flow.v2beta1.Generator\"\234\001\332A\035parent,gener" + + "ator,generator_id\202\323\344\223\002v\"3/v2beta1/{parent=projects/*/locations/*}/generators:" + "\tgeneratorZ4\"\'/v2beta1/{parent=projects/*}/generators:\tgenerator\022\264\001\n" - + "\014GetGenerator\0224.google.cloud.dialogflow.v2beta1.GetGenerato" - + "rRequest\032*.google.cloud.dialogflow.v2bet" - + "a1.Generator\"B\332A\004name\202\323\344\223\0025\0223/v2beta1/{n" - + "ame=projects/*/locations/*/generators/*}\022\362\001\n" - + "\016ListGenerators\0226.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest\0327.go" - + "ogle.cloud.dialogflow.v2beta1.ListGenera" - + "torsResponse\"o\332A\006parent\202\323\344\223\002`\0223/v2beta1/" - + "{parent=projects/*/locations/*}/generato" - + "rsZ)\022\'/v2beta1/{parent=projects/*}/generators\022\246\001\n" - + "\017DeleteGenerator\0227.google.cloud.dialogflow.v2beta1.DeleteGeneratorReque" - + "st\032\026.google.protobuf.Empty\"B\332A\004name\202\323\344\223\002" - + "5*3/v2beta1/{name=projects/*/locations/*/generators/*}\022\340\001\n" - + "\017UpdateGenerator\0227.google.cloud.dialogflow.v2beta1.UpdateGener" - + "atorRequest\032*.google.cloud.dialogflow.v2" - + "beta1.Generator\"h\332A\025generator,update_mas" - + "k\202\323\344\223\002J2=/v2beta1/{generator.name=projects/*/locations/*/generators/*}:" - + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYhttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/dialogflowB\240\002\n" - + "#com.google.cloud.dialogflow.v2beta1B\016GeneratorProtoP\001ZCcloud.google.com/" - + "go/dialogflow/apiv2beta1/dialogflowpb;di" - + "alogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/location" - + "s/{location}/collections/{collection}/engines/{engine}b\006proto3" + + "\014GetGenerator\0224.google.cloud.dialogflow.v2beta1.GetGene" + + "ratorRequest\032*.google.cloud.dialogflow.v" + + "2beta1.Generator\"B\332A\004name\202\323\344\223\0025\0223/v2beta" + + "1/{name=projects/*/locations/*/generators/*}\022\362\001\n" + + "\016ListGenerators\0226.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest\032" + + "7.google.cloud.dialogflow.v2beta1.ListGe" + + "neratorsResponse\"o\332A\006parent\202\323\344\223\002`\0223/v2be" + + "ta1/{parent=projects/*/locations/*}/gene" + + "ratorsZ)\022\'/v2beta1/{parent=projects/*}/generators\022\246\001\n" + + "\017DeleteGenerator\0227.google.cloud.dialogflow.v2beta1.DeleteGeneratorR" + + "equest\032\026.google.protobuf.Empty\"B\332A\004name\202" + + "\323\344\223\0025*3/v2beta1/{name=projects/*/locations/*/generators/*}\022\340\001\n" + + "\017UpdateGenerator\0227.google.cloud.dialogflow.v2beta1.UpdateG" + + "eneratorRequest\032*.google.cloud.dialogflo" + + "w.v2beta1.Generator\"h\332A\025generator,update" + + "_mask\202\323\344\223\002J2=/v2beta1/{generator.name=projects/*/locations/*/generators/*}:" + + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form,https://www.googleapis.com/auth/dialogflowB\240\002\n" + + "#com.google.cloud.dialogflow.v2beta1B\016GeneratorProtoP\001ZCcloud.google." + + "com/go/dialogflow/apiv2beta1/dialogflowp" + + "b;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/loca" + + "tions/{location}/collections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -425,7 +432,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.CesAppProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.CesToolProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.ToolCallProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolsetProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -580,6 +590,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Tools", "SuggestionDedupingConfig", + "ToolsetTools", + "CesToolSpecs", + "CesAppSpecs", "Context", "FoundationModel", }); @@ -712,7 +725,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.CesAppProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.CesToolProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ToolCallProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolsetProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java index ff827f4db851..b46be1fef9fa 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java @@ -17097,6 +17097,40 @@ public interface MessageAnalysisConfigOrBuilder * @return The enableSentimentAnalysis. */ boolean getEnableSentimentAnalysis(); + + /** + * + * + *
                                                                                                                                  +     * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +     * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +     * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +     *
                                                                                                                                  +     * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +     * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +     * positive, negative, or neutral.
                                                                                                                                  +     * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +     * For
                                                                                                                                  +     * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +     * For
                                                                                                                                  +     * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                  +     * For
                                                                                                                                  +     * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                  +     * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +     * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSentimentAnalysisV3. + */ + boolean getEnableSentimentAnalysisV3(); } /** @@ -17211,6 +17245,46 @@ public boolean getEnableSentimentAnalysis() { return enableSentimentAnalysis_; } + public static final int ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER = 5; + private boolean enableSentimentAnalysisV3_ = false; + + /** + * + * + *
                                                                                                                                  +     * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +     * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +     * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +     *
                                                                                                                                  +     * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +     * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +     * positive, negative, or neutral.
                                                                                                                                  +     * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +     * For
                                                                                                                                  +     * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +     * For
                                                                                                                                  +     * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                  +     * For
                                                                                                                                  +     * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                  +     * method, result will be in
                                                                                                                                  +     * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                  +     * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +     * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSentimentAnalysisV3. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysisV3() { + return enableSentimentAnalysisV3_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -17231,6 +17305,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableSentimentAnalysis_ != false) { output.writeBool(3, enableSentimentAnalysis_); } + if (enableSentimentAnalysisV3_ != false) { + output.writeBool(5, enableSentimentAnalysisV3_); + } getUnknownFields().writeTo(output); } @@ -17246,6 +17323,10 @@ public int getSerializedSize() { if (enableSentimentAnalysis_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableSentimentAnalysis_); } + if (enableSentimentAnalysisV3_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableSentimentAnalysisV3_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -17266,6 +17347,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableEntityExtraction() != other.getEnableEntityExtraction()) return false; if (getEnableSentimentAnalysis() != other.getEnableSentimentAnalysis()) return false; + if (getEnableSentimentAnalysisV3() != other.getEnableSentimentAnalysisV3()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17281,6 +17363,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableEntityExtraction()); hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysis()); + hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysisV3()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -17448,6 +17532,7 @@ public Builder clear() { bitField0_ = 0; enableEntityExtraction_ = false; enableSentimentAnalysis_ = false; + enableSentimentAnalysisV3_ = false; return this; } @@ -17498,6 +17583,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.enableSentimentAnalysis_ = enableSentimentAnalysis_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableSentimentAnalysisV3_ = enableSentimentAnalysisV3_; + } } @java.lang.Override @@ -17526,6 +17614,9 @@ public Builder mergeFrom( if (other.getEnableSentimentAnalysis() != false) { setEnableSentimentAnalysis(other.getEnableSentimentAnalysis()); } + if (other.getEnableSentimentAnalysisV3() != false) { + setEnableSentimentAnalysisV3(other.getEnableSentimentAnalysisV3()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -17564,6 +17655,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 40: + { + enableSentimentAnalysisV3_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17767,6 +17864,128 @@ public Builder clearEnableSentimentAnalysis() { return this; } + private boolean enableSentimentAnalysisV3_; + + /** + * + * + *
                                                                                                                                  +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +       *
                                                                                                                                  +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +       * positive, negative, or neutral.
                                                                                                                                  +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                  +       * For
                                                                                                                                  +       * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                  +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableSentimentAnalysisV3. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysisV3() { + return enableSentimentAnalysisV3_; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +       *
                                                                                                                                  +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +       * positive, negative, or neutral.
                                                                                                                                  +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                  +       * For
                                                                                                                                  +       * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                  +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableSentimentAnalysisV3 to set. + * @return This builder for chaining. + */ + public Builder setEnableSentimentAnalysisV3(boolean value) { + + enableSentimentAnalysisV3_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                  +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                  +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                  +       *
                                                                                                                                  +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                  +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                  +       * positive, negative, or neutral.
                                                                                                                                  +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                  +       * For
                                                                                                                                  +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                  +       * For
                                                                                                                                  +       * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                  +       * method, result will be in
                                                                                                                                  +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                  +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                  +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableSentimentAnalysisV3() { + bitField0_ = (bitField0_ & ~0x00000004); + enableSentimentAnalysisV3_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.MessageAnalysisConfig) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfo.java new file mode 100644 index 000000000000..4cb45aa15751 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfo.java @@ -0,0 +1,2441 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                  + * Debug information related to ingested context reference.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo} + */ +@com.google.protobuf.Generated +public final class IngestedContextReferenceDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + IngestedContextReferenceDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestedContextReferenceDebugInfo"); + } + + // Use IngestedContextReferenceDebugInfo.newBuilder() to construct. + private IngestedContextReferenceDebugInfo( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestedContextReferenceDebugInfo() { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder.class); + } + + public interface IngestedParameterDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * The name of the parameter in the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The parameter. + */ + java.lang.String getParameter(); + + /** + * + * + *
                                                                                                                                  +     * The name of the parameter in the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + com.google.protobuf.ByteString getParameterBytes(); + + /** + * + * + *
                                                                                                                                  +     * The ingestion status for this specific parameter.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + int getIngestionStatusValue(); + + /** + * + * + *
                                                                                                                                  +     * The ingestion status for this specific parameter.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .IngestionStatus + getIngestionStatus(); + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to ingested parameters from context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo} + */ + public static final class IngestedParameterDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + IngestedParameterDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestedParameterDebugInfo"); + } + + // Use IngestedParameterDebugInfo.newBuilder() to construct. + private IngestedParameterDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestedParameterDebugInfo() { + parameter_ = ""; + ingestionStatus_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder.class); + } + + /** + * + * + *
                                                                                                                                  +     * Enum representing the various states of parameter ingestion.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus} + */ + public enum IngestionStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +       * Default value, indicates that the ingestion status is not specified.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_UNSPECIFIED = 0; + */ + INGESTION_STATUS_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +       * Indicates that the parameter was successfully ingested.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_SUCCEEDED = 1; + */ + INGESTION_STATUS_SUCCEEDED(1), + /** + * + * + *
                                                                                                                                  +       * Indicates that the parameter was not available for ingestion.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + */ + INGESTION_STATUS_CONTEXT_NOT_AVAILABLE(2), + /** + * + * + *
                                                                                                                                  +       * Indicates that there was a failure parsing the parameter content.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_PARSE_FAILED = 3; + */ + INGESTION_STATUS_PARSE_FAILED(3), + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference had an unexpected number of
                                                                                                                                  +       * content entries as Context reference should only have one entry.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_INVALID_ENTRY = 4; + */ + INGESTION_STATUS_INVALID_ENTRY(4), + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference content was not in the expected
                                                                                                                                  +       * format (e.g., JSON).
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_INVALID_FORMAT = 5; + */ + INGESTION_STATUS_INVALID_FORMAT(5), + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference language does not match the
                                                                                                                                  +       * conversation language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + */ + INGESTION_STATUS_LANGUAGE_MISMATCH(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestionStatus"); + } + + /** + * + * + *
                                                                                                                                  +       * Default value, indicates that the ingestion status is not specified.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_UNSPECIFIED = 0; + */ + public static final int INGESTION_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the parameter was successfully ingested.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_SUCCEEDED = 1; + */ + public static final int INGESTION_STATUS_SUCCEEDED_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the parameter was not available for ingestion.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + */ + public static final int INGESTION_STATUS_CONTEXT_NOT_AVAILABLE_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +       * Indicates that there was a failure parsing the parameter content.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_PARSE_FAILED = 3; + */ + public static final int INGESTION_STATUS_PARSE_FAILED_VALUE = 3; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference had an unexpected number of
                                                                                                                                  +       * content entries as Context reference should only have one entry.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_INVALID_ENTRY = 4; + */ + public static final int INGESTION_STATUS_INVALID_ENTRY_VALUE = 4; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference content was not in the expected
                                                                                                                                  +       * format (e.g., JSON).
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_INVALID_FORMAT = 5; + */ + public static final int INGESTION_STATUS_INVALID_FORMAT_VALUE = 5; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the context reference language does not match the
                                                                                                                                  +       * conversation language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + */ + public static final int INGESTION_STATUS_LANGUAGE_MISMATCH_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IngestionStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static IngestionStatus forNumber(int value) { + switch (value) { + case 0: + return INGESTION_STATUS_UNSPECIFIED; + case 1: + return INGESTION_STATUS_SUCCEEDED; + case 2: + return INGESTION_STATUS_CONTEXT_NOT_AVAILABLE; + case 3: + return INGESTION_STATUS_PARSE_FAILED; + case 4: + return INGESTION_STATUS_INVALID_ENTRY; + case 5: + return INGESTION_STATUS_INVALID_FORMAT; + case 6: + return INGESTION_STATUS_LANGUAGE_MISMATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngestionStatus findValueByNumber(int number) { + return IngestionStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IngestionStatus[] VALUES = values(); + + public static IngestionStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IngestionStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus) + } + + public static final int PARAMETER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameter_ = ""; + + /** + * + * + *
                                                                                                                                  +     * The name of the parameter in the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + 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(); + parameter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +     * The name of the parameter in the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INGESTION_STATUS_FIELD_NUMBER = 2; + private int ingestionStatus_ = 0; + + /** + * + * + *
                                                                                                                                  +     * The ingestion status for this specific parameter.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + @java.lang.Override + public int getIngestionStatusValue() { + return ingestionStatus_; + } + + /** + * + * + *
                                                                                                                                  +     * The ingestion status for this specific parameter.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + getIngestionStatus() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + result = + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.forNumber(ingestionStatus_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(parameter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parameter_); + } + if (ingestionStatus_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.INGESTION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, ingestionStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parameter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parameter_); + } + if (ingestionStatus_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.INGESTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, ingestionStatus_); + } + 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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + other = + (com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) + obj; + + if (!getParameter().equals(other.getParameter())) return false; + if (ingestionStatus_ != other.ingestionStatus_) 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) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (37 * hash) + INGESTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + ingestionStatus_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + 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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + 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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to ingested parameters from context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parameter_ = ""; + ingestionStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + build() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + buildPartial() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + result = + new com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameter_ = parameter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ingestionStatus_ = ingestionStatus_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()) return this; + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.ingestionStatus_ != 0) { + setIngestionStatusValue(other.getIngestionStatusValue()); + } + 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: + { + parameter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + ingestionStatus_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 parameter_ = ""; + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @param value The parameter to set. + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { + parameter_ = getDefaultInstance().getParameter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The name of the parameter in the context reference.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string parameter = 1; + * + * @param value The bytes for parameter to set. + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int ingestionStatus_ = 0; + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + @java.lang.Override + public int getIngestionStatusValue() { + return ingestionStatus_; + } + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @param value The enum numeric value on the wire for ingestionStatus to set. + * @return This builder for chaining. + */ + public Builder setIngestionStatusValue(int value) { + ingestionStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + getIngestionStatus() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + result = + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.forNumber(ingestionStatus_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @param value The ingestionStatus to set. + * @return This builder for chaining. + */ + public Builder setIngestionStatus( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + ingestionStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The ingestion status for this specific parameter.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearIngestionStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + ingestionStatus_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestedParameterDebugInfo 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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PROJECT_NOT_ALLOWLISTED_FIELD_NUMBER = 1; + private boolean projectNotAllowlisted_ = false; + + /** + * + * + *
                                                                                                                                  +   * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +   * reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + @java.lang.Override + public boolean getProjectNotAllowlisted() { + return projectNotAllowlisted_; + } + + public static final int CONTEXT_REFERENCE_RETRIEVED_FIELD_NUMBER = 2; + private boolean contextReferenceRetrieved_ = false; + + /** + * + * + *
                                                                                                                                  +   * The status of context_reference retrieval from database.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + @java.lang.Override + public boolean getContextReferenceRetrieved() { + return contextReferenceRetrieved_; + } + + public static final int INGESTED_PARAMETERS_DEBUG_INFO_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + ingestedParametersDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList() { + return ingestedParametersDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList() { + return ingestedParametersDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public int getIngestedParametersDebugInfoCount() { + return ingestedParametersDebugInfo_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index) { + return ingestedParametersDebugInfo_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index) { + return ingestedParametersDebugInfo_.get(index); + } + + 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 (projectNotAllowlisted_ != false) { + output.writeBool(1, projectNotAllowlisted_); + } + if (contextReferenceRetrieved_ != false) { + output.writeBool(2, contextReferenceRetrieved_); + } + for (int i = 0; i < ingestedParametersDebugInfo_.size(); i++) { + output.writeMessage(3, ingestedParametersDebugInfo_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (projectNotAllowlisted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, projectNotAllowlisted_); + } + if (contextReferenceRetrieved_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, contextReferenceRetrieved_); + } + for (int i = 0; i < ingestedParametersDebugInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, ingestedParametersDebugInfo_.get(i)); + } + 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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) obj; + + if (getProjectNotAllowlisted() != other.getProjectNotAllowlisted()) return false; + if (getContextReferenceRetrieved() != other.getContextReferenceRetrieved()) return false; + if (!getIngestedParametersDebugInfoList().equals(other.getIngestedParametersDebugInfoList())) + 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) + PROJECT_NOT_ALLOWLISTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProjectNotAllowlisted()); + hash = (37 * hash) + CONTEXT_REFERENCE_RETRIEVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContextReferenceRetrieved()); + if (getIngestedParametersDebugInfoCount() > 0) { + hash = (37 * hash) + INGESTED_PARAMETERS_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedParametersDebugInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo 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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo 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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to ingested context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectNotAllowlisted_ = false; + contextReferenceRetrieved_ = false; + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + } else { + ingestedParametersDebugInfo_ = null; + ingestedParametersDebugInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo build() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo result = + new com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo result) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + ingestedParametersDebugInfo_ = + java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.ingestedParametersDebugInfo_ = ingestedParametersDebugInfo_; + } else { + result.ingestedParametersDebugInfo_ = ingestedParametersDebugInfoBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectNotAllowlisted_ = projectNotAllowlisted_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contextReferenceRetrieved_ = contextReferenceRetrieved_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance()) return this; + if (other.getProjectNotAllowlisted() != false) { + setProjectNotAllowlisted(other.getProjectNotAllowlisted()); + } + if (other.getContextReferenceRetrieved() != false) { + setContextReferenceRetrieved(other.getContextReferenceRetrieved()); + } + if (ingestedParametersDebugInfoBuilder_ == null) { + if (!other.ingestedParametersDebugInfo_.isEmpty()) { + if (ingestedParametersDebugInfo_.isEmpty()) { + ingestedParametersDebugInfo_ = other.ingestedParametersDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.addAll(other.ingestedParametersDebugInfo_); + } + onChanged(); + } + } else { + if (!other.ingestedParametersDebugInfo_.isEmpty()) { + if (ingestedParametersDebugInfoBuilder_.isEmpty()) { + ingestedParametersDebugInfoBuilder_.dispose(); + ingestedParametersDebugInfoBuilder_ = null; + ingestedParametersDebugInfo_ = other.ingestedParametersDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + ingestedParametersDebugInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIngestedParametersDebugInfoFieldBuilder() + : null; + } else { + ingestedParametersDebugInfoBuilder_.addAllMessages(other.ingestedParametersDebugInfo_); + } + } + } + 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 8: + { + projectNotAllowlisted_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + contextReferenceRetrieved_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.parser(), + extensionRegistry); + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(m); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(m); + } + break; + } // case 26 + 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 boolean projectNotAllowlisted_; + + /** + * + * + *
                                                                                                                                  +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +     * reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + @java.lang.Override + public boolean getProjectNotAllowlisted() { + return projectNotAllowlisted_; + } + + /** + * + * + *
                                                                                                                                  +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +     * reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @param value The projectNotAllowlisted to set. + * @return This builder for chaining. + */ + public Builder setProjectNotAllowlisted(boolean value) { + + projectNotAllowlisted_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +     * reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @return This builder for chaining. + */ + public Builder clearProjectNotAllowlisted() { + bitField0_ = (bitField0_ & ~0x00000001); + projectNotAllowlisted_ = false; + onChanged(); + return this; + } + + private boolean contextReferenceRetrieved_; + + /** + * + * + *
                                                                                                                                  +     * The status of context_reference retrieval from database.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + @java.lang.Override + public boolean getContextReferenceRetrieved() { + return contextReferenceRetrieved_; + } + + /** + * + * + *
                                                                                                                                  +     * The status of context_reference retrieval from database.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @param value The contextReferenceRetrieved to set. + * @return This builder for chaining. + */ + public Builder setContextReferenceRetrieved(boolean value) { + + contextReferenceRetrieved_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The status of context_reference retrieval from database.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @return This builder for chaining. + */ + public Builder clearContextReferenceRetrieved() { + bitField0_ = (bitField0_ & ~0x00000002); + contextReferenceRetrieved_ = false; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + + private void ensureIngestedParametersDebugInfoIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + ingestedParametersDebugInfo_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo>(ingestedParametersDebugInfo_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + ingestedParametersDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList() { + if (ingestedParametersDebugInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + } else { + return ingestedParametersDebugInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public int getIngestedParametersDebugInfoCount() { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.size(); + } else { + return ingestedParametersDebugInfoBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.get(index); + } else { + return ingestedParametersDebugInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder setIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.set(index, value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder setIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(index, value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addAllIngestedParametersDebugInfo( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + values) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ingestedParametersDebugInfo_); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder clearIngestedParametersDebugInfo() { + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder removeIngestedParametersDebugInfo(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.remove(index); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + getIngestedParametersDebugInfoBuilder(int index) { + return internalGetIngestedParametersDebugInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.get(index); + } else { + return ingestedParametersDebugInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList() { + if (ingestedParametersDebugInfoBuilder_ != null) { + return ingestedParametersDebugInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + } + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + addIngestedParametersDebugInfoBuilder() { + return internalGetIngestedParametersDebugInfoFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + addIngestedParametersDebugInfoBuilder(int index) { + return internalGetIngestedParametersDebugInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * Parameters ingested from the context reference.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder> + getIngestedParametersDebugInfoBuilderList() { + return internalGetIngestedParametersDebugInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + internalGetIngestedParametersDebugInfoFieldBuilder() { + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder>( + ingestedParametersDebugInfo_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + ingestedParametersDebugInfo_ = null; + } + return ingestedParametersDebugInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestedContextReferenceDebugInfo 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.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfoOrBuilder.java new file mode 100644 index 000000000000..12050537f9e6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfoOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface IngestedContextReferenceDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Indicates if the project is allowlisted to use ingested context
                                                                                                                                  +   * reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + boolean getProjectNotAllowlisted(); + + /** + * + * + *
                                                                                                                                  +   * The status of context_reference retrieval from database.
                                                                                                                                  +   * 
                                                                                                                                  + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + boolean getContextReferenceRetrieved(); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList(); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + int getIngestedParametersDebugInfoCount(); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * Parameters ingested from the context reference.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java index b031efae8f24..f15e0f14a638 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java @@ -5775,6 +5775,67 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { } } + public static final int KNOWLEDGE_ASSIST_DEBUG_INFO_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledgeAssistDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + getKnowledgeAssistDebugInfo() { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder() { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5798,6 +5859,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, answerRecord_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getKnowledgeAssistDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -5817,6 +5881,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, answerRecord_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getKnowledgeAssistDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5842,6 +5911,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSuggestedQueryAnswer().equals(other.getSuggestedQueryAnswer())) return false; } if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (hasKnowledgeAssistDebugInfo() != other.hasKnowledgeAssistDebugInfo()) return false; + if (hasKnowledgeAssistDebugInfo()) { + if (!getKnowledgeAssistDebugInfo().equals(other.getKnowledgeAssistDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5863,6 +5936,10 @@ public int hashCode() { } hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; hash = (53 * hash) + getAnswerRecord().hashCode(); + if (hasKnowledgeAssistDebugInfo()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6007,6 +6084,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSuggestedQueryFieldBuilder(); internalGetSuggestedQueryAnswerFieldBuilder(); + internalGetKnowledgeAssistDebugInfoFieldBuilder(); } } @@ -6025,6 +6103,11 @@ public Builder clear() { suggestedQueryAnswerBuilder_ = null; } answerRecord_ = ""; + knowledgeAssistDebugInfo_ = null; + if (knowledgeAssistDebugInfoBuilder_ != null) { + knowledgeAssistDebugInfoBuilder_.dispose(); + knowledgeAssistDebugInfoBuilder_ = null; + } return this; } @@ -6077,6 +6160,13 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAn if (((from_bitField0_ & 0x00000004) != 0)) { result.answerRecord_ = answerRecord_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistDebugInfo_ = + knowledgeAssistDebugInfoBuilder_ == null + ? knowledgeAssistDebugInfo_ + : knowledgeAssistDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -6104,6 +6194,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnsw bitField0_ |= 0x00000004; onChanged(); } + if (other.hasKnowledgeAssistDebugInfo()) { + mergeKnowledgeAssistDebugInfo(other.getKnowledgeAssistDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6150,6 +6243,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 58: + { + input.readMessage( + internalGetKnowledgeAssistDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6756,6 +6857,226 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledgeAssistDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder> + knowledgeAssistDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + public boolean hasKnowledgeAssistDebugInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + getKnowledgeAssistDebugInfo() { + if (knowledgeAssistDebugInfoBuilder_ == null) { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } else { + return knowledgeAssistDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder setKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo value) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistDebugInfo_ = value; + } else { + knowledgeAssistDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder setKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder builderForValue) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + knowledgeAssistDebugInfo_ = builderForValue.build(); + } else { + knowledgeAssistDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder mergeKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo value) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistDebugInfo_ != null + && knowledgeAssistDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .getDefaultInstance()) { + getKnowledgeAssistDebugInfoBuilder().mergeFrom(value); + } else { + knowledgeAssistDebugInfo_ = value; + } + } else { + knowledgeAssistDebugInfoBuilder_.mergeFrom(value); + } + if (knowledgeAssistDebugInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder clearKnowledgeAssistDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistDebugInfo_ = null; + if (knowledgeAssistDebugInfoBuilder_ != null) { + knowledgeAssistDebugInfoBuilder_.dispose(); + knowledgeAssistDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder + getKnowledgeAssistDebugInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetKnowledgeAssistDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder() { + if (knowledgeAssistDebugInfoBuilder_ != null) { + return knowledgeAssistDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Debug information related to Knowledge Assist feature.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder> + internalGetKnowledgeAssistDebugInfoFieldBuilder() { + if (knowledgeAssistDebugInfoBuilder_ == null) { + knowledgeAssistDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder>( + getKnowledgeAssistDebugInfo(), getParentForChildren(), isClean()); + knowledgeAssistDebugInfo_ = null; + } + return knowledgeAssistDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswerOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswerOrBuilder.java index 4c218e927428..87a1ba54198e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswerOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswerOrBuilder.java @@ -150,4 +150,48 @@ public interface KnowledgeAssistAnswerOrBuilder * @return The bytes for answerRecord. */ com.google.protobuf.ByteString getAnswerRecordBytes(); + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + boolean hasKnowledgeAssistDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo getKnowledgeAssistDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java new file mode 100644 index 000000000000..c0831883f277 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java @@ -0,0 +1,4903 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                  + * Debug information related to Knowledge Assist feature.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo} + */ +@com.google.protobuf.Generated +public final class KnowledgeAssistDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + KnowledgeAssistDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAssistDebugInfo"); + } + + // Use KnowledgeAssistDebugInfo.newBuilder() to construct. + private KnowledgeAssistDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAssistDebugInfo() { + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder.class); + } + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation failure.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason} + */ + public enum QueryGenerationFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +     * Default value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +     * Query generation is blocked due to out of quota.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_OUT_OF_QUOTA = 1; + */ + QUERY_GENERATION_OUT_OF_QUOTA(1), + /** + * + * + *
                                                                                                                                  +     * Call to Knowedge Assist query generation model fails.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_FAILED = 2; + */ + QUERY_GENERATION_FAILED(2), + /** + * + * + *
                                                                                                                                  +     * Query generation model decides that there is no new topic change or
                                                                                                                                  +     * there has been similar queries generated in the previous turns.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_NO_QUERY_GENERATED = 3; + */ + QUERY_GENERATION_NO_QUERY_GENERATED(3), + /** + * + * + *
                                                                                                                                  +     * Knowedge Assist generated query is blocked by RAI (Responsible AI).
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_RAI_FAILED = 4; + */ + QUERY_GENERATION_RAI_FAILED(4), + /** + * + * + *
                                                                                                                                  +     * Query generation is blocked by Knowledge Assist conversation profile
                                                                                                                                  +     * level / agent id level filtering.
                                                                                                                                  +     * 
                                                                                                                                  + * + * NOT_IN_ALLOWLIST = 5; + */ + NOT_IN_ALLOWLIST(5), + /** + * + * + *
                                                                                                                                  +     * The generated query is blocked due to redaction.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_QUERY_REDACTED = 6; + */ + QUERY_GENERATION_QUERY_REDACTED(6), + /** + * + * + *
                                                                                                                                  +     * Query generation failed due to LLM response parse failure.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + */ + QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED(10), + /** + * + * + *
                                                                                                                                  +     * The conversation has no messages.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_EMPTY_CONVERSATION = 11; + */ + QUERY_GENERATION_EMPTY_CONVERSATION(11), + /** + * + * + *
                                                                                                                                  +     * The last message in the conversation is empty.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + */ + QUERY_GENERATION_EMPTY_LAST_MESSAGE(12), + /** + * + * + *
                                                                                                                                  +     * The trigger event condition is not met.
                                                                                                                                  +     * This occurs in the following scenarios:
                                                                                                                                  +     * 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last
                                                                                                                                  +     * message is not from the customer.
                                                                                                                                  +     * 2. The trigger_event is AGENT_MESSAGE, but the last message is not from
                                                                                                                                  +     * the agent.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + */ + QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET(13), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryGenerationFailureReason"); + } + + /** + * + * + *
                                                                                                                                  +     * Default value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +     * Query generation is blocked due to out of quota.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_OUT_OF_QUOTA = 1; + */ + public static final int QUERY_GENERATION_OUT_OF_QUOTA_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +     * Call to Knowedge Assist query generation model fails.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_FAILED = 2; + */ + public static final int QUERY_GENERATION_FAILED_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +     * Query generation model decides that there is no new topic change or
                                                                                                                                  +     * there has been similar queries generated in the previous turns.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_NO_QUERY_GENERATED = 3; + */ + public static final int QUERY_GENERATION_NO_QUERY_GENERATED_VALUE = 3; + + /** + * + * + *
                                                                                                                                  +     * Knowedge Assist generated query is blocked by RAI (Responsible AI).
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_RAI_FAILED = 4; + */ + public static final int QUERY_GENERATION_RAI_FAILED_VALUE = 4; + + /** + * + * + *
                                                                                                                                  +     * Query generation is blocked by Knowledge Assist conversation profile
                                                                                                                                  +     * level / agent id level filtering.
                                                                                                                                  +     * 
                                                                                                                                  + * + * NOT_IN_ALLOWLIST = 5; + */ + public static final int NOT_IN_ALLOWLIST_VALUE = 5; + + /** + * + * + *
                                                                                                                                  +     * The generated query is blocked due to redaction.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_QUERY_REDACTED = 6; + */ + public static final int QUERY_GENERATION_QUERY_REDACTED_VALUE = 6; + + /** + * + * + *
                                                                                                                                  +     * Query generation failed due to LLM response parse failure.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + */ + public static final int QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED_VALUE = 10; + + /** + * + * + *
                                                                                                                                  +     * The conversation has no messages.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_EMPTY_CONVERSATION = 11; + */ + public static final int QUERY_GENERATION_EMPTY_CONVERSATION_VALUE = 11; + + /** + * + * + *
                                                                                                                                  +     * The last message in the conversation is empty.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + */ + public static final int QUERY_GENERATION_EMPTY_LAST_MESSAGE_VALUE = 12; + + /** + * + * + *
                                                                                                                                  +     * The trigger event condition is not met.
                                                                                                                                  +     * This occurs in the following scenarios:
                                                                                                                                  +     * 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last
                                                                                                                                  +     * message is not from the customer.
                                                                                                                                  +     * 2. The trigger_event is AGENT_MESSAGE, but the last message is not from
                                                                                                                                  +     * the agent.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + */ + public static final int QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET_VALUE = 13; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryGenerationFailureReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryGenerationFailureReason forNumber(int value) { + switch (value) { + case 0: + return QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED; + case 1: + return QUERY_GENERATION_OUT_OF_QUOTA; + case 2: + return QUERY_GENERATION_FAILED; + case 3: + return QUERY_GENERATION_NO_QUERY_GENERATED; + case 4: + return QUERY_GENERATION_RAI_FAILED; + case 5: + return NOT_IN_ALLOWLIST; + case 6: + return QUERY_GENERATION_QUERY_REDACTED; + case 10: + return QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED; + case 11: + return QUERY_GENERATION_EMPTY_CONVERSATION; + case 12: + return QUERY_GENERATION_EMPTY_LAST_MESSAGE; + case 13: + return QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryGenerationFailureReason findValueByNumber(int number) { + return QueryGenerationFailureReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final QueryGenerationFailureReason[] VALUES = values(); + + public static QueryGenerationFailureReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryGenerationFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason) + } + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization failure.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason} + */ + public enum QueryCategorizationFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                  +     * Default value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search config supplied for query categorization is invalid.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + */ + QUERY_CATEGORIZATION_INVALID_CONFIG(1), + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search result does not contain a query categorization result.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + */ + QUERY_CATEGORIZATION_RESULT_NOT_FOUND(2), + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search call fails.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_FAILED = 3; + */ + QUERY_CATEGORIZATION_FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryCategorizationFailureReason"); + } + + /** + * + * + *
                                                                                                                                  +     * Default value.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search config supplied for query categorization is invalid.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + */ + public static final int QUERY_CATEGORIZATION_INVALID_CONFIG_VALUE = 1; + + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search result does not contain a query categorization result.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + */ + public static final int QUERY_CATEGORIZATION_RESULT_NOT_FOUND_VALUE = 2; + + /** + * + * + *
                                                                                                                                  +     * Vertex AI Search call fails.
                                                                                                                                  +     * 
                                                                                                                                  + * + * QUERY_CATEGORIZATION_FAILED = 3; + */ + public static final int QUERY_CATEGORIZATION_FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryCategorizationFailureReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryCategorizationFailureReason forNumber(int value) { + switch (value) { + case 0: + return QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED; + case 1: + return QUERY_CATEGORIZATION_INVALID_CONFIG; + case 2: + return QUERY_CATEGORIZATION_RESULT_NOT_FOUND; + case 3: + return QUERY_CATEGORIZATION_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryCategorizationFailureReason findValueByNumber(int number) { + return QueryCategorizationFailureReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final QueryCategorizationFailureReason[] VALUES = values(); + + public static QueryCategorizationFailureReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryCategorizationFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason) + } + + public interface KnowledgeAssistBehaviorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + boolean getAnswerGenerationRewriterOn(); + + /** + * + * + *
                                                                                                                                  +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + boolean getEndUserMetadataIncluded(); + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to return query only in the
                                                                                                                                  +     * conversation profile.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + boolean getReturnQueryOnly(); + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + boolean getUsePubsubDelivery(); + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +     * Knowedge Assist response.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + boolean getDisableSyncDelivery(); + + /** + * + * + *
                                                                                                                                  +     * Whether previously suggested queries are included in the query generation
                                                                                                                                  +     * process.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + boolean getPreviousQueriesIncluded(); + + /** + * + * + *
                                                                                                                                  +     * Translated message is included in query generation process.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + boolean getUseTranslatedMessage(); + + /** + * + * + *
                                                                                                                                  +     * Safety filter is adjusted by user.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + boolean getUseCustomSafetyFilterLevel(); + + /** + * + * + *
                                                                                                                                  +     * Conversation transcript has mixed languages.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + boolean getConversationTranscriptHasMixedLanguages(); + + /** + * + * + *
                                                                                                                                  +     * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +     * end-user language.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + boolean getQueryGenerationAgentLanguageMismatch(); + + /** + * + * + *
                                                                                                                                  +     * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +     * the end-user language.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + boolean getQueryGenerationEndUserLanguageMismatch(); + + /** + * + * + *
                                                                                                                                  +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +     * project.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + boolean getThirdPartyConnectorAllowed(); + + /** + * + * + *
                                                                                                                                  +     * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + boolean getMultipleQueriesGenerated(); + + /** + * + * + *
                                                                                                                                  +     * Indicates that the generated query contains search context.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + boolean getQueryContainedSearchContext(); + + /** + * + * + *
                                                                                                                                  +     * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + boolean getInvalidItemsQuerySuggestionSkipped(); + + /** + * + * + *
                                                                                                                                  +     * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +     * additional query.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + boolean getPrimaryQueryRedactedAndReplaced(); + + /** + * + * + *
                                                                                                                                  +     * The number of search contexts appended to the query.
                                                                                                                                  +     * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + int getAppendedSearchContextCount(); + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior} + */ + public static final class KnowledgeAssistBehavior extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + KnowledgeAssistBehaviorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAssistBehavior"); + } + + // Use KnowledgeAssistBehavior.newBuilder() to construct. + private KnowledgeAssistBehavior(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAssistBehavior() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder.class); + } + + public static final int ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER = 1; + private boolean answerGenerationRewriterOn_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + public static final int END_USER_METADATA_INCLUDED_FIELD_NUMBER = 2; + private boolean endUserMetadataIncluded_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + public static final int RETURN_QUERY_ONLY_FIELD_NUMBER = 4; + private boolean returnQueryOnly_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to return query only in the
                                                                                                                                  +     * conversation profile.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + @java.lang.Override + public boolean getReturnQueryOnly() { + return returnQueryOnly_; + } + + public static final int USE_PUBSUB_DELIVERY_FIELD_NUMBER = 5; + private boolean usePubsubDelivery_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + @java.lang.Override + public boolean getUsePubsubDelivery() { + return usePubsubDelivery_; + } + + public static final int DISABLE_SYNC_DELIVERY_FIELD_NUMBER = 6; + private boolean disableSyncDelivery_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +     * Knowedge Assist response.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + @java.lang.Override + public boolean getDisableSyncDelivery() { + return disableSyncDelivery_; + } + + public static final int PREVIOUS_QUERIES_INCLUDED_FIELD_NUMBER = 7; + private boolean previousQueriesIncluded_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether previously suggested queries are included in the query generation
                                                                                                                                  +     * process.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + @java.lang.Override + public boolean getPreviousQueriesIncluded() { + return previousQueriesIncluded_; + } + + public static final int USE_TRANSLATED_MESSAGE_FIELD_NUMBER = 8; + private boolean useTranslatedMessage_ = false; + + /** + * + * + *
                                                                                                                                  +     * Translated message is included in query generation process.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + @java.lang.Override + public boolean getUseTranslatedMessage() { + return useTranslatedMessage_; + } + + public static final int USE_CUSTOM_SAFETY_FILTER_LEVEL_FIELD_NUMBER = 9; + private boolean useCustomSafetyFilterLevel_ = false; + + /** + * + * + *
                                                                                                                                  +     * Safety filter is adjusted by user.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + @java.lang.Override + public boolean getUseCustomSafetyFilterLevel() { + return useCustomSafetyFilterLevel_; + } + + public static final int CONVERSATION_TRANSCRIPT_HAS_MIXED_LANGUAGES_FIELD_NUMBER = 10; + private boolean conversationTranscriptHasMixedLanguages_ = false; + + /** + * + * + *
                                                                                                                                  +     * Conversation transcript has mixed languages.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + @java.lang.Override + public boolean getConversationTranscriptHasMixedLanguages() { + return conversationTranscriptHasMixedLanguages_; + } + + public static final int QUERY_GENERATION_AGENT_LANGUAGE_MISMATCH_FIELD_NUMBER = 11; + private boolean queryGenerationAgentLanguageMismatch_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +     * end-user language.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationAgentLanguageMismatch() { + return queryGenerationAgentLanguageMismatch_; + } + + public static final int QUERY_GENERATION_END_USER_LANGUAGE_MISMATCH_FIELD_NUMBER = 12; + private boolean queryGenerationEndUserLanguageMismatch_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +     * the end-user language.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationEndUserLanguageMismatch() { + return queryGenerationEndUserLanguageMismatch_; + } + + public static final int THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER = 13; + private boolean thirdPartyConnectorAllowed_ = false; + + /** + * + * + *
                                                                                                                                  +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +     * project.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + public static final int MULTIPLE_QUERIES_GENERATED_FIELD_NUMBER = 14; + private boolean multipleQueriesGenerated_ = false; + + /** + * + * + *
                                                                                                                                  +     * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + @java.lang.Override + public boolean getMultipleQueriesGenerated() { + return multipleQueriesGenerated_; + } + + public static final int QUERY_CONTAINED_SEARCH_CONTEXT_FIELD_NUMBER = 15; + private boolean queryContainedSearchContext_ = false; + + /** + * + * + *
                                                                                                                                  +     * Indicates that the generated query contains search context.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + @java.lang.Override + public boolean getQueryContainedSearchContext() { + return queryContainedSearchContext_; + } + + public static final int INVALID_ITEMS_QUERY_SUGGESTION_SKIPPED_FIELD_NUMBER = 16; + private boolean invalidItemsQuerySuggestionSkipped_ = false; + + /** + * + * + *
                                                                                                                                  +     * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + @java.lang.Override + public boolean getInvalidItemsQuerySuggestionSkipped() { + return invalidItemsQuerySuggestionSkipped_; + } + + public static final int PRIMARY_QUERY_REDACTED_AND_REPLACED_FIELD_NUMBER = 17; + private boolean primaryQueryRedactedAndReplaced_ = false; + + /** + * + * + *
                                                                                                                                  +     * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +     * additional query.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + @java.lang.Override + public boolean getPrimaryQueryRedactedAndReplaced() { + return primaryQueryRedactedAndReplaced_; + } + + public static final int APPENDED_SEARCH_CONTEXT_COUNT_FIELD_NUMBER = 18; + private int appendedSearchContextCount_ = 0; + + /** + * + * + *
                                                                                                                                  +     * The number of search contexts appended to the query.
                                                                                                                                  +     * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + @java.lang.Override + public int getAppendedSearchContextCount() { + return appendedSearchContextCount_; + } + + 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 (answerGenerationRewriterOn_ != false) { + output.writeBool(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + output.writeBool(2, endUserMetadataIncluded_); + } + if (returnQueryOnly_ != false) { + output.writeBool(4, returnQueryOnly_); + } + if (usePubsubDelivery_ != false) { + output.writeBool(5, usePubsubDelivery_); + } + if (disableSyncDelivery_ != false) { + output.writeBool(6, disableSyncDelivery_); + } + if (previousQueriesIncluded_ != false) { + output.writeBool(7, previousQueriesIncluded_); + } + if (useTranslatedMessage_ != false) { + output.writeBool(8, useTranslatedMessage_); + } + if (useCustomSafetyFilterLevel_ != false) { + output.writeBool(9, useCustomSafetyFilterLevel_); + } + if (conversationTranscriptHasMixedLanguages_ != false) { + output.writeBool(10, conversationTranscriptHasMixedLanguages_); + } + if (queryGenerationAgentLanguageMismatch_ != false) { + output.writeBool(11, queryGenerationAgentLanguageMismatch_); + } + if (queryGenerationEndUserLanguageMismatch_ != false) { + output.writeBool(12, queryGenerationEndUserLanguageMismatch_); + } + if (thirdPartyConnectorAllowed_ != false) { + output.writeBool(13, thirdPartyConnectorAllowed_); + } + if (multipleQueriesGenerated_ != false) { + output.writeBool(14, multipleQueriesGenerated_); + } + if (queryContainedSearchContext_ != false) { + output.writeBool(15, queryContainedSearchContext_); + } + if (invalidItemsQuerySuggestionSkipped_ != false) { + output.writeBool(16, invalidItemsQuerySuggestionSkipped_); + } + if (primaryQueryRedactedAndReplaced_ != false) { + output.writeBool(17, primaryQueryRedactedAndReplaced_); + } + if (appendedSearchContextCount_ != 0) { + output.writeInt32(18, appendedSearchContextCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answerGenerationRewriterOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, endUserMetadataIncluded_); + } + if (returnQueryOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnQueryOnly_); + } + if (usePubsubDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, usePubsubDelivery_); + } + if (disableSyncDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableSyncDelivery_); + } + if (previousQueriesIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, previousQueriesIncluded_); + } + if (useTranslatedMessage_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, useTranslatedMessage_); + } + if (useCustomSafetyFilterLevel_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, useCustomSafetyFilterLevel_); + } + if (conversationTranscriptHasMixedLanguages_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, conversationTranscriptHasMixedLanguages_); + } + if (queryGenerationAgentLanguageMismatch_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 11, queryGenerationAgentLanguageMismatch_); + } + if (queryGenerationEndUserLanguageMismatch_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 12, queryGenerationEndUserLanguageMismatch_); + } + if (thirdPartyConnectorAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(13, thirdPartyConnectorAllowed_); + } + if (multipleQueriesGenerated_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(14, multipleQueriesGenerated_); + } + if (queryContainedSearchContext_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(15, queryContainedSearchContext_); + } + if (invalidItemsQuerySuggestionSkipped_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 16, invalidItemsQuerySuggestionSkipped_); + } + if (primaryQueryRedactedAndReplaced_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 17, primaryQueryRedactedAndReplaced_); + } + if (appendedSearchContextCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(18, appendedSearchContextCount_); + } + 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + obj; + + if (getAnswerGenerationRewriterOn() != other.getAnswerGenerationRewriterOn()) return false; + if (getEndUserMetadataIncluded() != other.getEndUserMetadataIncluded()) return false; + if (getReturnQueryOnly() != other.getReturnQueryOnly()) return false; + if (getUsePubsubDelivery() != other.getUsePubsubDelivery()) return false; + if (getDisableSyncDelivery() != other.getDisableSyncDelivery()) return false; + if (getPreviousQueriesIncluded() != other.getPreviousQueriesIncluded()) return false; + if (getUseTranslatedMessage() != other.getUseTranslatedMessage()) return false; + if (getUseCustomSafetyFilterLevel() != other.getUseCustomSafetyFilterLevel()) return false; + if (getConversationTranscriptHasMixedLanguages() + != other.getConversationTranscriptHasMixedLanguages()) return false; + if (getQueryGenerationAgentLanguageMismatch() + != other.getQueryGenerationAgentLanguageMismatch()) return false; + if (getQueryGenerationEndUserLanguageMismatch() + != other.getQueryGenerationEndUserLanguageMismatch()) return false; + if (getThirdPartyConnectorAllowed() != other.getThirdPartyConnectorAllowed()) return false; + if (getMultipleQueriesGenerated() != other.getMultipleQueriesGenerated()) return false; + if (getQueryContainedSearchContext() != other.getQueryContainedSearchContext()) return false; + if (getInvalidItemsQuerySuggestionSkipped() != other.getInvalidItemsQuerySuggestionSkipped()) + return false; + if (getPrimaryQueryRedactedAndReplaced() != other.getPrimaryQueryRedactedAndReplaced()) + return false; + if (getAppendedSearchContextCount() != other.getAppendedSearchContextCount()) 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) + ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerGenerationRewriterOn()); + hash = (37 * hash) + END_USER_METADATA_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndUserMetadataIncluded()); + hash = (37 * hash) + RETURN_QUERY_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnQueryOnly()); + hash = (37 * hash) + USE_PUBSUB_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsePubsubDelivery()); + hash = (37 * hash) + DISABLE_SYNC_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSyncDelivery()); + hash = (37 * hash) + PREVIOUS_QUERIES_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreviousQueriesIncluded()); + hash = (37 * hash) + USE_TRANSLATED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTranslatedMessage()); + hash = (37 * hash) + USE_CUSTOM_SAFETY_FILTER_LEVEL_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseCustomSafetyFilterLevel()); + hash = (37 * hash) + CONVERSATION_TRANSCRIPT_HAS_MIXED_LANGUAGES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getConversationTranscriptHasMixedLanguages()); + hash = (37 * hash) + QUERY_GENERATION_AGENT_LANGUAGE_MISMATCH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getQueryGenerationAgentLanguageMismatch()); + hash = (37 * hash) + QUERY_GENERATION_END_USER_LANGUAGE_MISMATCH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getQueryGenerationEndUserLanguageMismatch()); + hash = (37 * hash) + THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThirdPartyConnectorAllowed()); + hash = (37 * hash) + MULTIPLE_QUERIES_GENERATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultipleQueriesGenerated()); + hash = (37 * hash) + QUERY_CONTAINED_SEARCH_CONTEXT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getQueryContainedSearchContext()); + hash = (37 * hash) + INVALID_ITEMS_QUERY_SUGGESTION_SKIPPED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getInvalidItemsQuerySuggestionSkipped()); + hash = (37 * hash) + PRIMARY_QUERY_REDACTED_AND_REPLACED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getPrimaryQueryRedactedAndReplaced()); + hash = (37 * hash) + APPENDED_SEARCH_CONTEXT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAppendedSearchContextCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerGenerationRewriterOn_ = false; + endUserMetadataIncluded_ = false; + returnQueryOnly_ = false; + usePubsubDelivery_ = false; + disableSyncDelivery_ = false; + previousQueriesIncluded_ = false; + useTranslatedMessage_ = false; + useCustomSafetyFilterLevel_ = false; + conversationTranscriptHasMixedLanguages_ = false; + queryGenerationAgentLanguageMismatch_ = false; + queryGenerationEndUserLanguageMismatch_ = false; + thirdPartyConnectorAllowed_ = false; + multipleQueriesGenerated_ = false; + queryContainedSearchContext_ = false; + invalidItemsQuerySuggestionSkipped_ = false; + primaryQueryRedactedAndReplaced_ = false; + appendedSearchContextCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerGenerationRewriterOn_ = answerGenerationRewriterOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endUserMetadataIncluded_ = endUserMetadataIncluded_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnQueryOnly_ = returnQueryOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.usePubsubDelivery_ = usePubsubDelivery_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableSyncDelivery_ = disableSyncDelivery_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previousQueriesIncluded_ = previousQueriesIncluded_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.useTranslatedMessage_ = useTranslatedMessage_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.useCustomSafetyFilterLevel_ = useCustomSafetyFilterLevel_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.conversationTranscriptHasMixedLanguages_ = + conversationTranscriptHasMixedLanguages_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.queryGenerationAgentLanguageMismatch_ = queryGenerationAgentLanguageMismatch_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.queryGenerationEndUserLanguageMismatch_ = queryGenerationEndUserLanguageMismatch_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.thirdPartyConnectorAllowed_ = thirdPartyConnectorAllowed_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.multipleQueriesGenerated_ = multipleQueriesGenerated_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.queryContainedSearchContext_ = queryContainedSearchContext_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.invalidItemsQuerySuggestionSkipped_ = invalidItemsQuerySuggestionSkipped_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.primaryQueryRedactedAndReplaced_ = primaryQueryRedactedAndReplaced_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.appendedSearchContextCount_ = appendedSearchContextCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance()) return this; + if (other.getAnswerGenerationRewriterOn() != false) { + setAnswerGenerationRewriterOn(other.getAnswerGenerationRewriterOn()); + } + if (other.getEndUserMetadataIncluded() != false) { + setEndUserMetadataIncluded(other.getEndUserMetadataIncluded()); + } + if (other.getReturnQueryOnly() != false) { + setReturnQueryOnly(other.getReturnQueryOnly()); + } + if (other.getUsePubsubDelivery() != false) { + setUsePubsubDelivery(other.getUsePubsubDelivery()); + } + if (other.getDisableSyncDelivery() != false) { + setDisableSyncDelivery(other.getDisableSyncDelivery()); + } + if (other.getPreviousQueriesIncluded() != false) { + setPreviousQueriesIncluded(other.getPreviousQueriesIncluded()); + } + if (other.getUseTranslatedMessage() != false) { + setUseTranslatedMessage(other.getUseTranslatedMessage()); + } + if (other.getUseCustomSafetyFilterLevel() != false) { + setUseCustomSafetyFilterLevel(other.getUseCustomSafetyFilterLevel()); + } + if (other.getConversationTranscriptHasMixedLanguages() != false) { + setConversationTranscriptHasMixedLanguages( + other.getConversationTranscriptHasMixedLanguages()); + } + if (other.getQueryGenerationAgentLanguageMismatch() != false) { + setQueryGenerationAgentLanguageMismatch(other.getQueryGenerationAgentLanguageMismatch()); + } + if (other.getQueryGenerationEndUserLanguageMismatch() != false) { + setQueryGenerationEndUserLanguageMismatch( + other.getQueryGenerationEndUserLanguageMismatch()); + } + if (other.getThirdPartyConnectorAllowed() != false) { + setThirdPartyConnectorAllowed(other.getThirdPartyConnectorAllowed()); + } + if (other.getMultipleQueriesGenerated() != false) { + setMultipleQueriesGenerated(other.getMultipleQueriesGenerated()); + } + if (other.getQueryContainedSearchContext() != false) { + setQueryContainedSearchContext(other.getQueryContainedSearchContext()); + } + if (other.getInvalidItemsQuerySuggestionSkipped() != false) { + setInvalidItemsQuerySuggestionSkipped(other.getInvalidItemsQuerySuggestionSkipped()); + } + if (other.getPrimaryQueryRedactedAndReplaced() != false) { + setPrimaryQueryRedactedAndReplaced(other.getPrimaryQueryRedactedAndReplaced()); + } + if (other.getAppendedSearchContextCount() != 0) { + setAppendedSearchContextCount(other.getAppendedSearchContextCount()); + } + 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 8: + { + answerGenerationRewriterOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endUserMetadataIncluded_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + returnQueryOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + usePubsubDelivery_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + disableSyncDelivery_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + previousQueriesIncluded_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + useTranslatedMessage_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + useCustomSafetyFilterLevel_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 80: + { + conversationTranscriptHasMixedLanguages_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + queryGenerationAgentLanguageMismatch_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + queryGenerationEndUserLanguageMismatch_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 104: + { + thirdPartyConnectorAllowed_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 112: + { + multipleQueriesGenerated_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 112 + case 120: + { + queryContainedSearchContext_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 120 + case 128: + { + invalidItemsQuerySuggestionSkipped_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 128 + case 136: + { + primaryQueryRedactedAndReplaced_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 136 + case 144: + { + appendedSearchContextCount_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 144 + 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 boolean answerGenerationRewriterOn_; + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @param value The answerGenerationRewriterOn to set. + * @return This builder for chaining. + */ + public Builder setAnswerGenerationRewriterOn(boolean value) { + + answerGenerationRewriterOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerGenerationRewriterOn() { + bitField0_ = (bitField0_ & ~0x00000001); + answerGenerationRewriterOn_ = false; + onChanged(); + return this; + } + + private boolean endUserMetadataIncluded_; + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @param value The endUserMetadataIncluded to set. + * @return This builder for chaining. + */ + public Builder setEndUserMetadataIncluded(boolean value) { + + endUserMetadataIncluded_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndUserMetadataIncluded() { + bitField0_ = (bitField0_ & ~0x00000002); + endUserMetadataIncluded_ = false; + onChanged(); + return this; + } + + private boolean returnQueryOnly_; + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to return query only in the
                                                                                                                                  +       * conversation profile.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + @java.lang.Override + public boolean getReturnQueryOnly() { + return returnQueryOnly_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to return query only in the
                                                                                                                                  +       * conversation profile.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @param value The returnQueryOnly to set. + * @return This builder for chaining. + */ + public Builder setReturnQueryOnly(boolean value) { + + returnQueryOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to return query only in the
                                                                                                                                  +       * conversation profile.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool return_query_only = 4; + * + * @return This builder for chaining. + */ + public Builder clearReturnQueryOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + returnQueryOnly_ = false; + onChanged(); + return this; + } + + private boolean usePubsubDelivery_; + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + @java.lang.Override + public boolean getUsePubsubDelivery() { + return usePubsubDelivery_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @param value The usePubsubDelivery to set. + * @return This builder for chaining. + */ + public Builder setUsePubsubDelivery(boolean value) { + + usePubsubDelivery_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_pubsub_delivery = 5; + * + * @return This builder for chaining. + */ + public Builder clearUsePubsubDelivery() { + bitField0_ = (bitField0_ & ~0x00000008); + usePubsubDelivery_ = false; + onChanged(); + return this; + } + + private boolean disableSyncDelivery_; + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +       * Knowedge Assist response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + @java.lang.Override + public boolean getDisableSyncDelivery() { + return disableSyncDelivery_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +       * Knowedge Assist response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @param value The disableSyncDelivery to set. + * @return This builder for chaining. + */ + public Builder setDisableSyncDelivery(boolean value) { + + disableSyncDelivery_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                  +       * Knowedge Assist response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool disable_sync_delivery = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisableSyncDelivery() { + bitField0_ = (bitField0_ & ~0x00000010); + disableSyncDelivery_ = false; + onChanged(); + return this; + } + + private boolean previousQueriesIncluded_; + + /** + * + * + *
                                                                                                                                  +       * Whether previously suggested queries are included in the query generation
                                                                                                                                  +       * process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + @java.lang.Override + public boolean getPreviousQueriesIncluded() { + return previousQueriesIncluded_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether previously suggested queries are included in the query generation
                                                                                                                                  +       * process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @param value The previousQueriesIncluded to set. + * @return This builder for chaining. + */ + public Builder setPreviousQueriesIncluded(boolean value) { + + previousQueriesIncluded_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether previously suggested queries are included in the query generation
                                                                                                                                  +       * process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool previous_queries_included = 7; + * + * @return This builder for chaining. + */ + public Builder clearPreviousQueriesIncluded() { + bitField0_ = (bitField0_ & ~0x00000020); + previousQueriesIncluded_ = false; + onChanged(); + return this; + } + + private boolean useTranslatedMessage_; + + /** + * + * + *
                                                                                                                                  +       * Translated message is included in query generation process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + @java.lang.Override + public boolean getUseTranslatedMessage() { + return useTranslatedMessage_; + } + + /** + * + * + *
                                                                                                                                  +       * Translated message is included in query generation process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @param value The useTranslatedMessage to set. + * @return This builder for chaining. + */ + public Builder setUseTranslatedMessage(boolean value) { + + useTranslatedMessage_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Translated message is included in query generation process.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_translated_message = 8; + * + * @return This builder for chaining. + */ + public Builder clearUseTranslatedMessage() { + bitField0_ = (bitField0_ & ~0x00000040); + useTranslatedMessage_ = false; + onChanged(); + return this; + } + + private boolean useCustomSafetyFilterLevel_; + + /** + * + * + *
                                                                                                                                  +       * Safety filter is adjusted by user.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + @java.lang.Override + public boolean getUseCustomSafetyFilterLevel() { + return useCustomSafetyFilterLevel_; + } + + /** + * + * + *
                                                                                                                                  +       * Safety filter is adjusted by user.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @param value The useCustomSafetyFilterLevel to set. + * @return This builder for chaining. + */ + public Builder setUseCustomSafetyFilterLevel(boolean value) { + + useCustomSafetyFilterLevel_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Safety filter is adjusted by user.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool use_custom_safety_filter_level = 9; + * + * @return This builder for chaining. + */ + public Builder clearUseCustomSafetyFilterLevel() { + bitField0_ = (bitField0_ & ~0x00000080); + useCustomSafetyFilterLevel_ = false; + onChanged(); + return this; + } + + private boolean conversationTranscriptHasMixedLanguages_; + + /** + * + * + *
                                                                                                                                  +       * Conversation transcript has mixed languages.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + @java.lang.Override + public boolean getConversationTranscriptHasMixedLanguages() { + return conversationTranscriptHasMixedLanguages_; + } + + /** + * + * + *
                                                                                                                                  +       * Conversation transcript has mixed languages.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @param value The conversationTranscriptHasMixedLanguages to set. + * @return This builder for chaining. + */ + public Builder setConversationTranscriptHasMixedLanguages(boolean value) { + + conversationTranscriptHasMixedLanguages_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Conversation transcript has mixed languages.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return This builder for chaining. + */ + public Builder clearConversationTranscriptHasMixedLanguages() { + bitField0_ = (bitField0_ & ~0x00000100); + conversationTranscriptHasMixedLanguages_ = false; + onChanged(); + return this; + } + + private boolean queryGenerationAgentLanguageMismatch_; + + /** + * + * + *
                                                                                                                                  +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +       * end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationAgentLanguageMismatch() { + return queryGenerationAgentLanguageMismatch_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +       * end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @param value The queryGenerationAgentLanguageMismatch to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationAgentLanguageMismatch(boolean value) { + + queryGenerationAgentLanguageMismatch_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                  +       * end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationAgentLanguageMismatch() { + bitField0_ = (bitField0_ & ~0x00000200); + queryGenerationAgentLanguageMismatch_ = false; + onChanged(); + return this; + } + + private boolean queryGenerationEndUserLanguageMismatch_; + + /** + * + * + *
                                                                                                                                  +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +       * the end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationEndUserLanguageMismatch() { + return queryGenerationEndUserLanguageMismatch_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +       * the end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @param value The queryGenerationEndUserLanguageMismatch to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationEndUserLanguageMismatch(boolean value) { + + queryGenerationEndUserLanguageMismatch_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                  +       * the end-user language.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationEndUserLanguageMismatch() { + bitField0_ = (bitField0_ & ~0x00000400); + queryGenerationEndUserLanguageMismatch_ = false; + onChanged(); + return this; + } + + private boolean thirdPartyConnectorAllowed_; + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @param value The thirdPartyConnectorAllowed to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyConnectorAllowed(boolean value) { + + thirdPartyConnectorAllowed_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 13; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyConnectorAllowed() { + bitField0_ = (bitField0_ & ~0x00000800); + thirdPartyConnectorAllowed_ = false; + onChanged(); + return this; + } + + private boolean multipleQueriesGenerated_; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + @java.lang.Override + public boolean getMultipleQueriesGenerated() { + return multipleQueriesGenerated_; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @param value The multipleQueriesGenerated to set. + * @return This builder for chaining. + */ + public Builder setMultipleQueriesGenerated(boolean value) { + + multipleQueriesGenerated_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool multiple_queries_generated = 14; + * + * @return This builder for chaining. + */ + public Builder clearMultipleQueriesGenerated() { + bitField0_ = (bitField0_ & ~0x00001000); + multipleQueriesGenerated_ = false; + onChanged(); + return this; + } + + private boolean queryContainedSearchContext_; + + /** + * + * + *
                                                                                                                                  +       * Indicates that the generated query contains search context.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + @java.lang.Override + public boolean getQueryContainedSearchContext() { + return queryContainedSearchContext_; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that the generated query contains search context.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @param value The queryContainedSearchContext to set. + * @return This builder for chaining. + */ + public Builder setQueryContainedSearchContext(boolean value) { + + queryContainedSearchContext_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that the generated query contains search context.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool query_contained_search_context = 15; + * + * @return This builder for chaining. + */ + public Builder clearQueryContainedSearchContext() { + bitField0_ = (bitField0_ & ~0x00002000); + queryContainedSearchContext_ = false; + onChanged(); + return this; + } + + private boolean invalidItemsQuerySuggestionSkipped_; + + /** + * + * + *
                                                                                                                                  +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + @java.lang.Override + public boolean getInvalidItemsQuerySuggestionSkipped() { + return invalidItemsQuerySuggestionSkipped_; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @param value The invalidItemsQuerySuggestionSkipped to set. + * @return This builder for chaining. + */ + public Builder setInvalidItemsQuerySuggestionSkipped(boolean value) { + + invalidItemsQuerySuggestionSkipped_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return This builder for chaining. + */ + public Builder clearInvalidItemsQuerySuggestionSkipped() { + bitField0_ = (bitField0_ & ~0x00004000); + invalidItemsQuerySuggestionSkipped_ = false; + onChanged(); + return this; + } + + private boolean primaryQueryRedactedAndReplaced_; + + /** + * + * + *
                                                                                                                                  +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +       * additional query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + @java.lang.Override + public boolean getPrimaryQueryRedactedAndReplaced() { + return primaryQueryRedactedAndReplaced_; + } + + /** + * + * + *
                                                                                                                                  +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +       * additional query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @param value The primaryQueryRedactedAndReplaced to set. + * @return This builder for chaining. + */ + public Builder setPrimaryQueryRedactedAndReplaced(boolean value) { + + primaryQueryRedactedAndReplaced_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                  +       * additional query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryQueryRedactedAndReplaced() { + bitField0_ = (bitField0_ & ~0x00008000); + primaryQueryRedactedAndReplaced_ = false; + onChanged(); + return this; + } + + private int appendedSearchContextCount_; + + /** + * + * + *
                                                                                                                                  +       * The number of search contexts appended to the query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + @java.lang.Override + public int getAppendedSearchContextCount() { + return appendedSearchContextCount_; + } + + /** + * + * + *
                                                                                                                                  +       * The number of search contexts appended to the query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @param value The appendedSearchContextCount to set. + * @return This builder for chaining. + */ + public Builder setAppendedSearchContextCount(int value) { + + appendedSearchContextCount_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The number of search contexts appended to the query.
                                                                                                                                  +       * 
                                                                                                                                  + * + * int32 appended_search_context_count = 18; + * + * @return This builder for chaining. + */ + public Builder clearAppendedSearchContextCount() { + bitField0_ = (bitField0_ & ~0x00010000); + appendedSearchContextCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeAssistBehavior 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .UNRECOGNIZED + : result; + } + + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER = 2; + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.UNRECOGNIZED + : result; + } + + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 3; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + 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 (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getServiceLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); + } + 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) obj; + + if (queryGenerationFailureReason_ != other.queryGenerationFailureReason_) return false; + if (queryCategorizationFailureReason_ != other.queryCategorizationFailureReason_) return false; + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasKnowledgeAssistBehavior() != other.hasKnowledgeAssistBehavior()) return false; + if (hasKnowledgeAssistBehavior()) { + if (!getKnowledgeAssistBehavior().equals(other.getKnowledgeAssistBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) 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) + QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryGenerationFailureReason_; + hash = (37 * hash) + QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryCategorizationFailureReason_; + hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasKnowledgeAssistBehavior()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.KnowledgeAssistDebugInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to Knowledge Assist feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetKnowledgeAssistBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryGenerationFailureReason_ = queryGenerationFailureReason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryCategorizationFailureReason_ = queryCategorizationFailureReason_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistBehavior_ = + knowledgeAssistBehaviorBuilder_ == null + ? knowledgeAssistBehavior_ + : knowledgeAssistBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance()) + return this; + if (other.queryGenerationFailureReason_ != 0) { + setQueryGenerationFailureReasonValue(other.getQueryGenerationFailureReasonValue()); + } + if (other.queryCategorizationFailureReason_ != 0) { + setQueryCategorizationFailureReasonValue(other.getQueryCategorizationFailureReasonValue()); + } + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasKnowledgeAssistBehavior()) { + mergeKnowledgeAssistBehavior(other.getKnowledgeAssistBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + 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 8: + { + queryGenerationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + queryCategorizationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + 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 int queryGenerationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The enum numeric value on the wire for queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReasonValue(int value) { + queryGenerationFailureReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReason( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + queryGenerationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query generation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000001); + queryGenerationFailureReason_ = 0; + onChanged(); + return this; + } + + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The enum numeric value on the wire for queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReasonValue(int value) { + queryCategorizationFailureReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReason( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + queryCategorizationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Reason for query categorization.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryCategorizationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000002); + queryCategorizationFailureReason_ = 0; + onChanged(); + return this; + } + + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + datastoreResponseReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000004); + datastoreResponseReason_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + knowledgeAssistBehaviorBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + if (knowledgeAssistBehaviorBuilder_ == null) { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } else { + return knowledgeAssistBehaviorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistBehavior_ = value; + } else { + knowledgeAssistBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder + builderForValue) { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehavior_ = builderForValue.build(); + } else { + knowledgeAssistBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder mergeKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistBehavior_ != null + && knowledgeAssistBehavior_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior.getDefaultInstance()) { + getKnowledgeAssistBehaviorBuilder().mergeFrom(value); + } else { + knowledgeAssistBehavior_ = value; + } + } else { + knowledgeAssistBehaviorBuilder_.mergeFrom(value); + } + if (knowledgeAssistBehavior_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder clearKnowledgeAssistBehavior() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder + getKnowledgeAssistBehaviorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + if (knowledgeAssistBehaviorBuilder_ != null) { + return knowledgeAssistBehaviorBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for Knowedge Assist.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + internalGetKnowledgeAssistBehaviorFieldBuilder() { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder>( + getKnowledgeAssistBehavior(), getParentForChildren(), isClean()); + knowledgeAssistBehavior_ = null; + } + return knowledgeAssistBehaviorBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } else { + return serviceLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceLatency_ = value; + } else { + serviceLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); + } else { + serviceLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); + } else { + serviceLatency_ = value; + } + } else { + serviceLatencyBuilder_.mergeFrom(value); + } + if (serviceLatency_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000020); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder + getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); + } else { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; + } + return serviceLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeAssistDebugInfo 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java new file mode 100644 index 000000000000..152900bb067e --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java @@ -0,0 +1,247 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface KnowledgeAssistDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + int getQueryGenerationFailureReasonValue(); + + /** + * + * + *
                                                                                                                                  +   * Reason for query generation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason(); + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + int getQueryCategorizationFailureReasonValue(); + + /** + * + * + *
                                                                                                                                  +   * Reason for query categorization.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + getQueryCategorizationFailureReason(); + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + int getDatastoreResponseReasonValue(); + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + boolean hasKnowledgeAssistBehavior(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for Knowedge Assist.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + boolean hasIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + boolean hasServiceLatency(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 864779f4dac2..e4c78d9777d9 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -276,6 +276,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SuggestKnowledgeAssistResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SuggestKnowledgeAssistResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -777,26 +801,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027knowledge_assist_answer\030\001" + " \001(\01326.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswerB\003\340A\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" - + "\014context_size\030\003 \001(\005\"\264\006\n" + + "\014context_size\030\003 \001(\005\"\303\005\n" + + "!IngestedContextReferenceDebugInfo\022\037\n" + + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + + "\033context_reference_retrieved\030\002 \001(\010\022\205\001\n" + + "\036ingested_parameters_debug_info\030\003 \003(\0132].google.cl" + + "oud.dialogflow.v2beta1.IngestedContextRe" + + "ferenceDebugInfo.IngestedParameterDebugInfo\032\317\003\n" + + "\032IngestedParameterDebugInfo\022\021\n" + + "\tparameter\030\001 \001(\t\022\207\001\n" + + "\020ingestion_status\030\002 \001(\0162m.google.cloud.dialogflow.v2beta1.Inges" + + "tedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\017IngestionStatus\022 \n" + + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" + + "&INGESTION_STATUS_CONTEXT_NOT_AVAILABLE\020\002\022!\n" + + "\035INGESTION_STATUS_PARSE_FAILED\020\003\022\"\n" + + "\036INGESTION_STATUS_INVALID_ENTRY\020\004\022#\n" + + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\234\002\n" + + "\016ServiceLatency\022j\n" + + "\032internal_service_latencies\030\001" + + " \003(\0132F.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\026InternalServiceLatency\022\014\n" + + "\004step\030\001 \001(\t\022\022\n" + + "\n" + + "latency_ms\030\002 \001(\002\022.\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\222\020\n" + + "\030KnowledgeAssistDebugInfo\022\177\n" + + "\037query_generation_failure_reason\030\001 \001(\0162V.google.clou" + + "d.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason\022\207\001\n" + + "#query_categorization_failure_reason\030\002 \001(\016" + + "2Z.google.cloud.dialogflow.v2beta1.Knowl" + + "edgeAssistDebugInfo.QueryCategorizationFailureReason\022[\n" + + "\031datastore_response_reason\030\003" + + " \001(\01628.google.cloud.dialogflow.v2beta1.DatastoreResponseReason\022t\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132Q.google.cloud.dial" + + "ogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022q\n" + + "%ingested_context_reference_debug_info\030\005 \001(\0132B.google." + + "cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo\022H\n" + + "\017service_latency\030\006 " + + "\001(\0132/.google.cloud.dialogflow.v2beta1.ServiceLatency\032\271\005\n" + + "\027KnowledgeAssistBehavior\022%\n" + + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + + "\032end_user_metadata_included\030\002 \001(\010\022\031\n" + + "\021return_query_only\030\004 \001(\010\022\033\n" + + "\023use_pubsub_delivery\030\005 \001(\010\022\035\n" + + "\025disable_sync_delivery\030\006 \001(\010\022!\n" + + "\031previous_queries_included\030\007 \001(\010\022\036\n" + + "\026use_translated_message\030\010 \001(\010\022&\n" + + "\036use_custom_safety_filter_level\030\t \001(\010\0223\n" + + "+convers", + "ation_transcript_has_mixed_languages\030\n" + + " \001(\010\0220\n" + + "(query_generation_agent_language_mismatch\030\013 \001(\010\0223\n" + + "+query_generation_end_user_language_mismatch\030\014 \001(\010\022%\n" + + "\035third_party_connector_allowed\030\r" + + " \001(\010\022\"\n" + + "\032multiple_queries_generated\030\016 \001(\010\022&\n" + + "\036query_contained_search_context\030\017 \001(\010\022.\n" + + "&invalid_items_query_suggestion_skipped\030\020 \001(\010\022+\n" + + "#primary_query_redacted_and_replaced\030\021 \001(\010\022%\n" + + "\035appended_search_context_count\030\022 \001(\005\"\317\003\n" + + "\034QueryGenerationFailureReason\022/\n" + + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" + + "\027QUERY_GENERATION_FAILED\020\002\022\'\n" + + "#QUERY_GENERATION_NO_QUERY_GENERATED\020\003\022\037\n" + + "\033QUERY_GENERATION_RAI_FAILED\020\004\022\024\n" + + "\020NOT_IN_ALLOWLIST\020\005\022#\n" + + "\037QUERY_GENERATION_QUERY_REDACTED\020\006\022.\n" + + "*QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED\020\n" + + "\022\'\n" + + "#QUERY_GENERATION_EMPTY_CONVERSATION\020\013\022\'\n" + + "#QUERY_GENERATION_EMPTY_LAST_MESSAGE\020\014\0227\n" + + "3QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET\020\r" + + "\"\314\001\n" + + " QueryCategorizationFailureReason\0223\n" + + "/QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED\020\000\022\'\n" + + "#QUERY_CATEGORIZATION_INVALID_CONFIG\020\001\022)\n" + + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" + + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\224\007\n" + "\025KnowledgeAssistAnswer\022^\n" - + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialogflow.v2b" - + "eta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" - + "\026suggested_query_answer\030\002 \001(\0132F.goog" - + "le.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" - + "answer_record\030\003 \001(\t\032$\n" + + "\017suggested_query\030\001 \001(\0132E.g" + + "oogle.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" + + "\026suggested_query_answer\030\002 \001(\0132F.google.cloud.dialo" + + "gflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "answer_record\030\003 \001(\t\022^\n" + + "\033knowledge_assist_debug_info\030\007 \001(\01329.google" + + ".cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo\032$\n" + "\016SuggestedQuery\022\022\n\n" + "query_text\030\001 \001(\t\032\225\004\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022f\n\n" - + "faq_source\030\003 \001(\0132P.google.clo" - + "ud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" - + "\021generative_source\030\004 \001(\0132W.google.cloud.dialog" - + "flow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132P.google.c" + + "loud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" + + "\021generative_source\030\004 \001(\0132W.google.cloud.dial" + + "ogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\345\001\n" + "\020GenerativeSource\022q\n" - + "\010snippets\030\001 \003(\0132_.google.cloud.dialo" - + "gflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132_.google.cloud.dia" + + "logflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" @@ -804,25 +911,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" + "\006source\"\327\n\n" + "\"BidiStreamingAnalyzeContentRequest\022\\\n" - + "\006config\030\001 \001(\0132J." - + "google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" - + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v2b" - + "eta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + + "\006config\030\001 \001(\0132" + + "J.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" + + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v" + + "2beta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + "\006Config\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022}\n" - + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiStrea" - + "mingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiStr" + + "eamingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + " initial_virtual_agent_parameters\030\003" + " \001(\0132\027.google.protobuf.Struct\022\\\n" + "\"initial_virtual_agent_query_params\030\004" + " \001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + "\022VoiceSessionConfig\022Q\n" - + "\024input_audio_encoding\030\001 \001(\0162..google.clo" - + "ud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + + "\024input_audio_encoding\030\001 \001(\0162..google.c" + + "loud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + "\035input_audio_sample_rate_hertz\030\002 \001(\005B\003\340A\002\022X\n" - + "\025output_audio_encoding\030\003 \001(\01624.go" - + "ogle.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + + "\025output_audio_encoding\030\003 \001(\01624." + + "google.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + "\036output_audio_sample_rate_hertz\030\004 \001(\005B\003\340A\002\022+\n" + "\036enable_cx_proactive_processing\030\005 \001(\010B\003\340A\001\022(\n" + "\033enable_streaming_synthesize\030\027 \001(\010B\003\340A\001B\010\n" @@ -836,129 +943,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\016\n" + "\014main_content\032\306\001\n" + "\005Input\022\017\n" - + "\005audio\030", - "\001 \001(\014H\000\022D\n\004dtmf\030\002 \001(\01324.google.cloud.dia" - + "logflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" - + "\004turn\030\003 \001(\0132M.google.cloud.dialogflow.v2" - + "beta1.BidiStreamingAnalyzeContentRequest" - + ".TurnInputH\000B\007\n\005inputB\t\n\007request\"\345\003\n#Bid" - + "iStreamingAnalyzeContentResponse\022Y\n\022reco" - + "gnition_result\030\001 \001(\0132;.google.cloud.dial" - + "ogflow.v2beta1.StreamingRecognitionResul" - + "tH\000\022m\n\017barge_in_signal\030\002 \001(\0132R.google.cl" - + "oud.dialogflow.v2beta1.BidiStreamingAnal" - + "yzeContentResponse.BargeInSignalH\000\022[\n\030an" - + "alyze_content_response\030\003 \001(\01327.google.cl" - + "oud.dialogflow.v2beta1.AnalyzeContentRes" - + "ponseH\000\022j\n\rturn_complete\030\004 \001(\0132Q.google." - + "cloud.dialogflow.v2beta1.BidiStreamingAn" - + "alyzeContentResponse.TurnCompleteH\000\032\017\n\rB" - + "argeInSignal\032\016\n\014TurnCompleteB\n\n\010response" - + "2\262\037\n\014Participants\022\271\002\n\021CreateParticipant\022" - + "9.google.cloud.dialogflow.v2beta1.Create" - + "ParticipantRequest\032,.google.cloud.dialog" - + "flow.v2beta1.Participant\"\272\001\332A\022parent,par" - + "ticipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=projec" - + "ts/*/conversations/*}/participants:\013part" - + "icipantZT\"E/v2beta1/{parent=projects/*/l" - + "ocations/*/conversations/*}/participants" - + ":\013participant\022\213\002\n\016GetParticipant\0226.googl" - + "e.cloud.dialogflow.v2beta1.GetParticipan" - + "tRequest\032,.google.cloud.dialogflow.v2bet" - + "a1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta" - + "1/{name=projects/*/conversations/*/parti" - + "cipants/*}ZG\022E/v2beta1/{name=projects/*/" - + "locations/*/conversations/*/participants" - + "/*}\022\236\002\n\020ListParticipants\0228.google.cloud." - + "dialogflow.v2beta1.ListParticipantsReque" - + "st\0329.google.cloud.dialogflow.v2beta1.Lis" - + "tParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001" - + "\0229/v2beta1/{parent=projects/*/conversati" - + "ons/*}/participantsZG\022E/v2beta1/{parent=" - + "projects/*/locations/*/conversations/*}/" - + "participants\022\326\002\n\021UpdateParticipant\0229.goo" - + "gle.cloud.dialogflow.v2beta1.UpdateParti" - + "cipantRequest\032,.google.cloud.dialogflow." - + "v2beta1.Participant\"\327\001\332A\027participant,upd" - + "ate_mask\202\323\344\223\002\266\0012E/v2beta1/{participant.n" - + "ame=projects/*/conversations/*/participa" - + "nts/*}:\013participantZ`2Q/v2beta1/{partici" - + "pant.name=projects/*/locations/*/convers" - + "ations/*/participants/*}:\013participant\022\216\003" - + "\n\016AnalyzeContent\0226.google.cloud.dialogfl" - + "ow.v2beta1.AnalyzeContentRequest\0327.googl" - + "e.cloud.dialogflow.v2beta1.AnalyzeConten" - + "tResponse\"\212\002\332A\026participant,text_input\332A\027" - + "participant,audio_input\332A\027participant,ev" - + "ent_input\202\323\344\223\002\266\001\"O/v2beta1/{participant=" - + "projects/*/conversations/*/participants/" - + "*}:analyzeContent:\001*Z`\"[/v2beta1/{partic" - + "ipant=projects/*/locations/*/conversatio" - + "ns/*/participants/*}:analyzeContent:\001*\022\242" - + "\001\n\027StreamingAnalyzeContent\022?.google.clou" - + "d.dialogflow.v2beta1.StreamingAnalyzeCon" - + "tentRequest\032@.google.cloud.dialogflow.v2" - + "beta1.StreamingAnalyzeContentResponse\"\000(" - + "\0010\001\022\256\001\n\033BidiStreamingAnalyzeContent\022C.go" - + "ogle.cloud.dialogflow.v2beta1.BidiStream" - + "ingAnalyzeContentRequest\032D.google.cloud." - + "dialogflow.v2beta1.BidiStreamingAnalyzeC" - + "ontentResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles" - + "\0227.google.cloud.dialogflow.v2beta1.Sugge" - + "stArticlesRequest\0328.google.cloud.dialogf" - + "low.v2beta1.SuggestArticlesResponse\"\326\001\332A" - + "\006parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=project" - + "s/*/conversations/*/participants/*}/sugg" - + "estions:suggestArticles:\001*Zh\"c/v2beta1/{" - + "parent=projects/*/locations/*/conversati" - + "ons/*/participants/*}/suggestions:sugges" - + "tArticles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.goo" - + "gle.cloud.dialogflow.v2beta1.SuggestFaqA" - + "nswersRequest\032:.google.cloud.dialogflow." - + "v2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006p" - + "arent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/" - + "*/conversations/*/participants/*}/sugges" - + "tions:suggestFaqAnswers:\001*Zj\"e/v2beta1/{" - + "parent=projects/*/locations/*/conversati" - + "ons/*/participants/*}/suggestions:sugges" - + "tFaqAnswers:\001*\022\361\002\n\023SuggestSmartReplies\022;" - + ".google.cloud.dialogflow.v2beta1.Suggest" - + "SmartRepliesRequest\032<.google.cloud.dialo" - + "gflow.v2beta1.SuggestSmartRepliesRespons" - + "e\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=p" - + "rojects/*/conversations/*/participants/*" - + "}/suggestions:suggestSmartReplies:\001*Zl\"g" - + "/v2beta1/{parent=projects/*/locations/*/" - + "conversations/*/participants/*}/suggesti" - + "ons:suggestSmartReplies:\001*\022\367\002\n\026SuggestKn" - + "owledgeAssist\022>.google.cloud.dialogflow." - + "v2beta1.SuggestKnowledgeAssistRequest\032?." - + "google.cloud.dialogflow.v2beta1.SuggestK" - + "nowledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2bet" - + "a1/{parent=projects/*/conversations/*/pa" - + "rticipants/*}/suggestions:suggestKnowled" - + "geAssist:\001*Zo\"j/v2beta1/{parent=projects" - + "/*/locations/*/conversations/*/participa" - + "nts/*}/suggestions:suggestKnowledgeAssis" - + "t:\001*\022\330\001\n\017ListSuggestions\0227.google.cloud." - + "dialogflow.v2beta1.ListSuggestionsReques" - + "t\0328.google.cloud.dialogflow.v2beta1.List" - + "SuggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1" - + "/{parent=projects/*/conversations/*/part" - + "icipants/*}/suggestions\022\351\001\n\021CompileSugge" - + "stion\0229.google.cloud.dialogflow.v2beta1." - + "CompileSuggestionRequest\032:.google.cloud." - + "dialogflow.v2beta1.CompileSuggestionResp" - + "onse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=projec" - + "ts/*/conversations/*/participants/*}/sug" - + "gestions:compile:\001*\032x\312A\031dialogflow.googl" - + "eapis.com\322AYhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/dialogflowB\245\001\n#com.google.clo" - + "ud.dialogflow.v2beta1B\020ParticipantProtoP" - + "\001ZCcloud.google.com/go/dialogflow/apiv2b" - + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Go" - + "ogle.Cloud.Dialogflow.V2Beta1b\006proto3" + + "\005audio\030\001 \001(\014H\000\022D\n" + + "\004dtmf\030\002 \001(\01324.google.cloud.d" + + "ialogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" + + "\004turn\030\003 \001(\0132M.google.cloud.dialogflow." + + "v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputH\000B\007\n" + + "\005inputB\t\n" + + "\007request\"\345\003\n" + + "#BidiStreamingAnalyzeContentResponse\022Y\n" + + "\022recognition_result\030\001 \001(\0132;.google.cloud.di" + + "alogflow.v2beta1.StreamingRecognitionResultH\000\022m\n" + + "\017barge_in_signal\030\002 \001(\0132R.google." + + "cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignalH\000\022[\n" + + "\030analyze_content_response\030\003 \001(\01327.google." + + "cloud.dialogflow.v2beta1.AnalyzeContentResponseH\000\022j\n\r" + + "turn_complete\030\004 \001(\0132Q.googl" + + "e.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnCompleteH\000\032\017\n" + + "\r" + + "BargeInSignal\032\016\n" + + "\014TurnCompleteB\n\n" + + "\010response*\326\002\n" + + "\027DatastoreResponseReason\022)\n" + + "%DATASTORE_RESPONSE_REASON_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\027\n" + + "\023SEARCH_OUT_OF_QUOTA\020\002\022\030\n" + + "\024SEARCH_EMPTY_RESULTS\020\003\022%\n" + + "!ANSWER_GENERATION_GEN_AI_DISABLED\020\004\022\"\n" + + "\036ANSWER_GENERATION_OUT_OF_QUOTA\020\005\022\033\n" + + "\027ANSWER_GENERATION_ERROR\020\006\022%\n" + + "!ANSWER_GENERATION_NOT_ENOUGH_INFO\020\007\022 \n" + + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\262\037\n" + + "\014Participants\022\271\002\n" + + "\021CreateParticipant\0229.google.cloud.dialogflow.v2beta1.CreateParticipantRe" + + "quest\032,.google.cloud.dialogflow.v2beta1." + + "Participant\"\272\001\332A\022parent,participant\202\323\344\223\002" + + "\236\001\"9/v2beta1/{parent=projects/*/conversa" + + "tions/*}/participants:\013participantZT\"E/v2beta1/{parent=projects/*/locations/*/co" + + "nversations/*}/participants:\013participant\022\213\002\n" + + "\016GetParticipant\0226.google.cloud.dialogflow.v2beta1.GetParticipantRequest\032,.go" + + "ogle.cloud.dialogflow.v2beta1.Participan" + + "t\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1/{name=proje" + + "cts/*/conversations/*/participants/*}ZG\022" + + "E/v2beta1/{name=projects/*/locations/*/conversations/*/participants/*}\022\236\002\n" + + "\020ListParticipants\0228.google.cloud.dialogflow.v2" + + "beta1.ListParticipantsRequest\0329.google.cloud.dialogflow.v2beta1.ListParticipants" + + "Response\"\224\001\332A\006parent\202\323\344\223\002\204\001\0229/v2beta1/{p" + + "arent=projects/*/conversations/*}/participantsZG\022E/v2beta1/{parent=projects/*/lo" + + "cations/*/conversations/*}/participants\022\326\002\n" + + "\021UpdateParticipant\0229.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest" + + "\032,.google.cloud.dialogflow.v2beta1.Parti" + + "cipant\"\327\001\332A\027participant,update_mask\202\323\344\223\002" + + "\266\0012E/v2beta1/{participant.name=projects/" + + "*/conversations/*/participants/*}:\013participantZ`2Q/v2beta1/{participant.name=pro" + + "jects/*/locations/*/conversations/*/participants/*}:\013participant\022\216\003\n" + + "\016AnalyzeContent\0226.google.cloud.dialogflow.v2beta1.An" + + "alyzeContentRequest\0327.google.cloud.dialo" + + "gflow.v2beta1.AnalyzeContentResponse\"\212\002\332" + + "A\026participant,text_input\332A\027participant,a" + + "udio_input\332A\027participant,event_input\202\323\344\223" + + "\002\266\001\"O/v2beta1/{participant=projects/*/co" + + "nversations/*/participants/*}:analyzeContent:\001*Z`\"[/v2beta1/{participant=project" + + "s/*/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\242\001\n" + + "\027StreamingAnalyzeContent\022?.google.cloud.dialogflow." + + "v2beta1.StreamingAnalyzeContentRequest\032@" + + ".google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse\"\000(\0010\001\022\256\001\n" + + "\033BidiStreamingAnalyzeContent\022C.google.cloud.di" + + "alogflow.v2beta1.BidiStreamingAnalyzeContentRequest\032D.google.cloud.dialogflow.v2" + + "beta1.BidiStreamingAnalyzeContentResponse\"\000(\0010\001\022\335\002\n" + + "\017SuggestArticles\0227.google.cloud.dialogflow.v2beta1.SuggestArticlesReq" + + "uest\0328.google.cloud.dialogflow.v2beta1.S" + + "uggestArticlesResponse\"\326\001\332A\006parent\202\323\344\223\002\306" + + "\001\"W/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:sugge" + + "stArticles:\001*Zh\"c/v2beta1/{parent=projects/*/locations/*/conversations/*/partici" + + "pants/*}/suggestions:suggestArticles:\001*\022\347\002\n" + + "\021SuggestFaqAnswers\0229.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest" + + "\032:.google.cloud.dialogflow.v2beta1.Sugge" + + "stFaqAnswersResponse\"\332\001\332A\006parent\202\323\344\223\002\312\001\"" + + "Y/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggest" + + "FaqAnswers:\001*Zj\"e/v2beta1/{parent=projects/*/locations/*/conversations/*/partici" + + "pants/*}/suggestions:suggestFaqAnswers:\001*\022\361\002\n" + + "\023SuggestSmartReplies\022;.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesR" + + "equest\032<.google.cloud.dialogflow.v2beta1" + + ".SuggestSmartRepliesResponse\"\336\001\332A\006parent" + + "\202\323\344\223\002\316\001\"[/v2beta1/{parent=projects/*/con" + + "versations/*/participants/*}/suggestions:suggestSmartReplies:\001*Zl\"g/v2beta1/{par" + + "ent=projects/*/locations/*/conversations" + + "/*/participants/*}/suggestions:suggestSmartReplies:\001*\022\367\002\n" + + "\026SuggestKnowledgeAssist\022>.google.cloud.dialogflow.v2beta1.Sugge" + + "stKnowledgeAssistRequest\032?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssis" + + "tResponse\"\333\001\202\323\344\223\002\324\001\"^/v2beta1/{parent=pr" + + "ojects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*Zo" + + "\"j/v2beta1/{parent=projects/*/locations/" + + "*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*\022\330\001\n" + + "\017ListSuggestions\0227.google.cloud.dialogflow.v2" + + "beta1.ListSuggestionsRequest\0328.google.cloud.dialogflow.v2beta1.ListSuggestionsRe" + + "sponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/{parent=proj" + + "ects/*/conversations/*/participants/*}/suggestions\022\351\001\n" + + "\021CompileSuggestion\0229.google.cloud.dialogflow.v2beta1.CompileSugges" + + "tionRequest\032:.google.cloud.dialogflow.v2" + + "beta1.CompileSuggestionResponse\"]\210\002\001\202\323\344\223" + + "\002T\"O/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:comp" + + "ile:\001*\032x\312A\031dialogflow.googleapis.com\322AYh" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform,https://www.googleapis.com/auth/dialogflowB\245\001\n" + + "#com.google.cloud.dialogflow.v2beta1B\020ParticipantProtoP\001ZCcloud.goog" + + "le.com/go/dialogflow/apiv2beta1/dialogfl" + + "owpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1536,13 +1627,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "KnowledgeAssistAnswer", "LatestMessage", "ContextSize", }); - internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor = getDescriptor().getMessageType(44); + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor, + new java.lang.String[] { + "ProjectNotAllowlisted", "ContextReferenceRetrieved", "IngestedParametersDebugInfo", + }); + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor, + new java.lang.String[] { + "Parameter", "IngestionStatus", + }); + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor = + getDescriptor().getMessageType(45); + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor, + new java.lang.String[] { + "InternalServiceLatencies", + }); + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor.getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor, + new java.lang.String[] { + "Step", "LatencyMs", "StartTime", "CompleteTime", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor = + getDescriptor().getMessageType(46); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor, + new java.lang.String[] { + "QueryGenerationFailureReason", + "QueryCategorizationFailureReason", + "DatastoreResponseReason", + "KnowledgeAssistBehavior", + "IngestedContextReferenceDebugInfo", + "ServiceLatency", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor, + new java.lang.String[] { + "AnswerGenerationRewriterOn", + "EndUserMetadataIncluded", + "ReturnQueryOnly", + "UsePubsubDelivery", + "DisableSyncDelivery", + "PreviousQueriesIncluded", + "UseTranslatedMessage", + "UseCustomSafetyFilterLevel", + "ConversationTranscriptHasMixedLanguages", + "QueryGenerationAgentLanguageMismatch", + "QueryGenerationEndUserLanguageMismatch", + "ThirdPartyConnectorAllowed", + "MultipleQueriesGenerated", + "QueryContainedSearchContext", + "InvalidItemsQuerySuggestionSkipped", + "PrimaryQueryRedactedAndReplaced", + "AppendedSearchContextCount", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor = + getDescriptor().getMessageType(47); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor, new java.lang.String[] { - "SuggestedQuery", "SuggestedQueryAnswer", "AnswerRecord", + "SuggestedQuery", "SuggestedQueryAnswer", "AnswerRecord", "KnowledgeAssistDebugInfo", }); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor = internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor @@ -1590,7 +1752,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Text", "Title", "Metadata", }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(48); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor, @@ -1643,7 +1805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Audio", "Dtmf", "Turn", "Input", }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(49); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumber.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumber.java index 862cd7157d46..3953947145f3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumber.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumber.java @@ -245,6 +245,1197 @@ private LifecycleState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState) } + public interface AllowedSipTrunksOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * If empty, any SIP trunk is allowed.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the sipTrunks. + */ + java.util.List getSipTrunksList(); + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * If empty, any SIP trunk is allowed.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of sipTrunks. + */ + int getSipTrunksCount(); + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * If empty, any SIP trunk is allowed.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The sipTrunks at the given index. + */ + java.lang.String getSipTrunks(int index); + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * If empty, any SIP trunk is allowed.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the sipTrunks at the given index. + */ + com.google.protobuf.ByteString getSipTrunksBytes(int index); + + /** + * + * + *
                                                                                                                                  +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +     * applicable.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the carrierIds. + */ + java.util.List getCarrierIdsList(); + + /** + * + * + *
                                                                                                                                  +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +     * applicable.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of carrierIds. + */ + int getCarrierIdsCount(); + + /** + * + * + *
                                                                                                                                  +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +     * applicable.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The carrierIds at the given index. + */ + java.lang.String getCarrierIds(int index); + + /** + * + * + *
                                                                                                                                  +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +     * applicable.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the carrierIds at the given index. + */ + com.google.protobuf.ByteString getCarrierIdsBytes(int index); + } + + /** + * + * + *
                                                                                                                                  +   * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks} + */ + public static final class AllowedSipTrunks extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + AllowedSipTrunksOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AllowedSipTrunks"); + } + + // Use AllowedSipTrunks.newBuilder() to construct. + private AllowedSipTrunks(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AllowedSipTrunks() { + sipTrunks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + carrierIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.class, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder.class); + } + + public static final int SIP_TRUNKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sipTrunks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * If empty, any SIP trunk is allowed.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the sipTrunks. + */ + public com.google.protobuf.ProtocolStringList getSipTrunksList() { + return sipTrunks_; + } + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * If empty, any SIP trunk is allowed.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of sipTrunks. + */ + public int getSipTrunksCount() { + return sipTrunks_.size(); + } + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * If empty, any SIP trunk is allowed.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The sipTrunks at the given index. + */ + public java.lang.String getSipTrunks(int index) { + return sipTrunks_.get(index); + } + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * If empty, any SIP trunk is allowed.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the sipTrunks at the given index. + */ + public com.google.protobuf.ByteString getSipTrunksBytes(int index) { + return sipTrunks_.getByteString(index); + } + + public static final int CARRIER_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList carrierIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                                                                  +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +     * applicable.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the carrierIds. + */ + public com.google.protobuf.ProtocolStringList getCarrierIdsList() { + return carrierIds_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +     * applicable.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of carrierIds. + */ + public int getCarrierIdsCount() { + return carrierIds_.size(); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +     * applicable.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The carrierIds at the given index. + */ + public java.lang.String getCarrierIds(int index) { + return carrierIds_.get(index); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +     * applicable.
                                                                                                                                  +     * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the carrierIds at the given index. + */ + public com.google.protobuf.ByteString getCarrierIdsBytes(int index) { + return carrierIds_.getByteString(index); + } + + 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 < sipTrunks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sipTrunks_.getRaw(i)); + } + for (int i = 0; i < carrierIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, carrierIds_.getRaw(i)); + } + 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 < sipTrunks_.size(); i++) { + dataSize += computeStringSizeNoTag(sipTrunks_.getRaw(i)); + } + size += dataSize; + size += 1 * getSipTrunksList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < carrierIds_.size(); i++) { + dataSize += computeStringSizeNoTag(carrierIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCarrierIdsList().size(); + } + 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.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks other = + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) obj; + + if (!getSipTrunksList().equals(other.getSipTrunksList())) return false; + if (!getCarrierIdsList().equals(other.getCarrierIdsList())) 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 (getSipTrunksCount() > 0) { + hash = (37 * hash) + SIP_TRUNKS_FIELD_NUMBER; + hash = (53 * hash) + getSipTrunksList().hashCode(); + } + if (getCarrierIdsCount() > 0) { + hash = (37 * hash) + CARRIER_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCarrierIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks 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.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks 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.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.class, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sipTrunks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + carrierIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks build() { + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks buildPartial() { + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks result = + new com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + sipTrunks_.makeImmutable(); + result.sipTrunks_ = sipTrunks_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + carrierIds_.makeImmutable(); + result.carrierIds_ = carrierIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks other) { + if (other + == com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance()) return this; + if (!other.sipTrunks_.isEmpty()) { + if (sipTrunks_.isEmpty()) { + sipTrunks_ = other.sipTrunks_; + bitField0_ |= 0x00000001; + } else { + ensureSipTrunksIsMutable(); + sipTrunks_.addAll(other.sipTrunks_); + } + onChanged(); + } + if (!other.carrierIds_.isEmpty()) { + if (carrierIds_.isEmpty()) { + carrierIds_ = other.carrierIds_; + bitField0_ |= 0x00000002; + } else { + ensureCarrierIdsIsMutable(); + carrierIds_.addAll(other.carrierIds_); + } + 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(); + ensureSipTrunksIsMutable(); + sipTrunks_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCarrierIdsIsMutable(); + carrierIds_.add(s); + 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 sipTrunks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSipTrunksIsMutable() { + if (!sipTrunks_.isModifiable()) { + sipTrunks_ = new com.google.protobuf.LazyStringArrayList(sipTrunks_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the sipTrunks. + */ + public com.google.protobuf.ProtocolStringList getSipTrunksList() { + sipTrunks_.makeImmutable(); + return sipTrunks_; + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of sipTrunks. + */ + public int getSipTrunksCount() { + return sipTrunks_.size(); + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The sipTrunks at the given index. + */ + public java.lang.String getSipTrunks(int index) { + return sipTrunks_.get(index); + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the sipTrunks at the given index. + */ + public com.google.protobuf.ByteString getSipTrunksBytes(int index) { + return sipTrunks_.getByteString(index); + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The sipTrunks to set. + * @return This builder for chaining. + */ + public Builder setSipTrunks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSipTrunksIsMutable(); + sipTrunks_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The sipTrunks to add. + * @return This builder for chaining. + */ + public Builder addSipTrunks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSipTrunksIsMutable(); + sipTrunks_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param values The sipTrunks to add. + * @return This builder for chaining. + */ + public Builder addAllSipTrunks(java.lang.Iterable values) { + ensureSipTrunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sipTrunks_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSipTrunks() { + sipTrunks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                  +       * If empty, any SIP trunk is allowed.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the sipTrunks to add. + * @return This builder for chaining. + */ + public Builder addSipTrunksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSipTrunksIsMutable(); + sipTrunks_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList carrierIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCarrierIdsIsMutable() { + if (!carrierIds_.isModifiable()) { + carrierIds_ = new com.google.protobuf.LazyStringArrayList(carrierIds_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the carrierIds. + */ + public com.google.protobuf.ProtocolStringList getCarrierIdsList() { + carrierIds_.makeImmutable(); + return carrierIds_; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of carrierIds. + */ + public int getCarrierIdsCount() { + return carrierIds_.size(); + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The carrierIds at the given index. + */ + public java.lang.String getCarrierIds(int index) { + return carrierIds_.get(index); + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the carrierIds at the given index. + */ + public com.google.protobuf.ByteString getCarrierIdsBytes(int index) { + return carrierIds_.getByteString(index); + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The carrierIds to set. + * @return This builder for chaining. + */ + public Builder setCarrierIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCarrierIdsIsMutable(); + carrierIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The carrierIds to add. + * @return This builder for chaining. + */ + public Builder addCarrierIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCarrierIdsIsMutable(); + carrierIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The carrierIds to add. + * @return This builder for chaining. + */ + public Builder addAllCarrierIds(java.lang.Iterable values) { + ensureCarrierIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, carrierIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCarrierIds() { + carrierIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                  +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                  +       * applicable.
                                                                                                                                  +       * 
                                                                                                                                  + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the carrierIds to add. + * @return This builder for chaining. + */ + public Builder addCarrierIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCarrierIdsIsMutable(); + carrierIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + private static final com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks(); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedSipTrunks 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.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int inboundRestrictionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object inboundRestriction_; + + public enum InboundRestrictionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ALLOWED_SIP_TRUNKS(7), + INBOUNDRESTRICTION_NOT_SET(0); + private final int value; + + private InboundRestrictionCase(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 InboundRestrictionCase valueOf(int value) { + return forNumber(value); + } + + public static InboundRestrictionCase forNumber(int value) { + switch (value) { + case 7: + return ALLOWED_SIP_TRUNKS; + case 0: + return INBOUNDRESTRICTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InboundRestrictionCase getInboundRestrictionCase() { + return InboundRestrictionCase.forNumber(inboundRestrictionCase_); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -475,6 +1666,119 @@ public com.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState getLifecyc : result; } + public static final int ALLOWED_SIP_TRUNKS_FIELD_NUMBER = 7; + + /** + * + * + *
                                                                                                                                  +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedSipTrunks field is set. + */ + @java.lang.Override + public boolean hasAllowedSipTrunks() { + return inboundRestrictionCase_ == 7; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedSipTrunks. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks getAllowedSipTrunks() { + if (inboundRestrictionCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) inboundRestriction_; + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.getDefaultInstance(); + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder + getAllowedSipTrunksOrBuilder() { + if (inboundRestrictionCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) inboundRestriction_; + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.getDefaultInstance(); + } + + public static final int PURGE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp purgeTime_; + + /** + * + * + *
                                                                                                                                  +   * Output only. The time at which this resource will be purged.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + @java.lang.Override + public boolean hasPurgeTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Output only. The time at which this resource will be purged.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getPurgeTime() { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + + /** + * + * + *
                                                                                                                                  +   * Output only. The time at which this resource will be purged.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -504,6 +1808,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(4, lifecycleState_); } + if (inboundRestrictionCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) inboundRestriction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getPurgeTime()); + } getUnknownFields().writeTo(output); } @@ -528,6 +1840,16 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, lifecycleState_); } + if (inboundRestrictionCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPurgeTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -548,6 +1870,18 @@ public boolean equals(final java.lang.Object obj) { if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; if (!getConversationProfile().equals(other.getConversationProfile())) return false; if (lifecycleState_ != other.lifecycleState_) return false; + if (hasPurgeTime() != other.hasPurgeTime()) return false; + if (hasPurgeTime()) { + if (!getPurgeTime().equals(other.getPurgeTime())) return false; + } + if (!getInboundRestrictionCase().equals(other.getInboundRestrictionCase())) return false; + switch (inboundRestrictionCase_) { + case 7: + if (!getAllowedSipTrunks().equals(other.getAllowedSipTrunks())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -567,6 +1901,18 @@ public int hashCode() { hash = (53 * hash) + getConversationProfile().hashCode(); hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; hash = (53 * hash) + lifecycleState_; + if (hasPurgeTime()) { + hash = (37 * hash) + PURGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPurgeTime().hashCode(); + } + switch (inboundRestrictionCase_) { + case 7: + hash = (37 * hash) + ALLOWED_SIP_TRUNKS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedSipTrunks().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -700,10 +2046,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.v2beta1.PhoneNumber.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPurgeTimeFieldBuilder(); + } } @java.lang.Override @@ -714,6 +2069,16 @@ public Builder clear() { phoneNumber_ = ""; conversationProfile_ = ""; lifecycleState_ = 0; + if (allowedSipTrunksBuilder_ != null) { + allowedSipTrunksBuilder_.clear(); + } + purgeTime_ = null; + if (purgeTimeBuilder_ != null) { + purgeTimeBuilder_.dispose(); + purgeTimeBuilder_ = null; + } + inboundRestrictionCase_ = 0; + inboundRestriction_ = null; return this; } @@ -744,6 +2109,7 @@ public com.google.cloud.dialogflow.v2beta1.PhoneNumber buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -762,6 +2128,20 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.PhoneNumber resul if (((from_bitField0_ & 0x00000008) != 0)) { result.lifecycleState_ = lifecycleState_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.purgeTime_ = purgeTimeBuilder_ == null ? purgeTime_ : purgeTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.PhoneNumber result) { + result.inboundRestrictionCase_ = inboundRestrictionCase_; + result.inboundRestriction_ = this.inboundRestriction_; + if (inboundRestrictionCase_ == 7 && allowedSipTrunksBuilder_ != null) { + result.inboundRestriction_ = allowedSipTrunksBuilder_.build(); + } } @java.lang.Override @@ -795,6 +2175,20 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.PhoneNumber other) if (other.lifecycleState_ != 0) { setLifecycleStateValue(other.getLifecycleStateValue()); } + if (other.hasPurgeTime()) { + mergePurgeTime(other.getPurgeTime()); + } + switch (other.getInboundRestrictionCase()) { + case ALLOWED_SIP_TRUNKS: + { + mergeAllowedSipTrunks(other.getAllowedSipTrunks()); + break; + } + case INBOUNDRESTRICTION_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -845,6 +2239,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 58: + { + input.readMessage( + internalGetAllowedSipTrunksFieldBuilder().getBuilder(), extensionRegistry); + inboundRestrictionCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -862,6 +2270,20 @@ public Builder mergeFrom( return this; } + private int inboundRestrictionCase_ = 0; + private java.lang.Object inboundRestriction_; + + public InboundRestrictionCase getInboundRestrictionCase() { + return InboundRestrictionCase.forNumber(inboundRestrictionCase_); + } + + public Builder clearInboundRestriction() { + inboundRestrictionCase_ = 0; + inboundRestriction_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object name_ = ""; @@ -1375,6 +2797,455 @@ public Builder clearLifecycleState() { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder> + allowedSipTrunksBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedSipTrunks field is set. + */ + @java.lang.Override + public boolean hasAllowedSipTrunks() { + return inboundRestrictionCase_ == 7; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedSipTrunks. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks getAllowedSipTrunks() { + if (allowedSipTrunksBuilder_ == null) { + if (inboundRestrictionCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_; + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance(); + } else { + if (inboundRestrictionCase_ == 7) { + return allowedSipTrunksBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAllowedSipTrunks( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks value) { + if (allowedSipTrunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inboundRestriction_ = value; + onChanged(); + } else { + allowedSipTrunksBuilder_.setMessage(value); + } + inboundRestrictionCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAllowedSipTrunks( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder builderForValue) { + if (allowedSipTrunksBuilder_ == null) { + inboundRestriction_ = builderForValue.build(); + onChanged(); + } else { + allowedSipTrunksBuilder_.setMessage(builderForValue.build()); + } + inboundRestrictionCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAllowedSipTrunks( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks value) { + if (allowedSipTrunksBuilder_ == null) { + if (inboundRestrictionCase_ == 7 + && inboundRestriction_ + != com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance()) { + inboundRestriction_ = + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.newBuilder( + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_) + .mergeFrom(value) + .buildPartial(); + } else { + inboundRestriction_ = value; + } + onChanged(); + } else { + if (inboundRestrictionCase_ == 7) { + allowedSipTrunksBuilder_.mergeFrom(value); + } else { + allowedSipTrunksBuilder_.setMessage(value); + } + } + inboundRestrictionCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAllowedSipTrunks() { + if (allowedSipTrunksBuilder_ == null) { + if (inboundRestrictionCase_ == 7) { + inboundRestrictionCase_ = 0; + inboundRestriction_ = null; + onChanged(); + } + } else { + if (inboundRestrictionCase_ == 7) { + inboundRestrictionCase_ = 0; + inboundRestriction_ = null; + } + allowedSipTrunksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder + getAllowedSipTrunksBuilder() { + return internalGetAllowedSipTrunksFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder + getAllowedSipTrunksOrBuilder() { + if ((inboundRestrictionCase_ == 7) && (allowedSipTrunksBuilder_ != null)) { + return allowedSipTrunksBuilder_.getMessageOrBuilder(); + } else { + if (inboundRestrictionCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_; + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder> + internalGetAllowedSipTrunksFieldBuilder() { + if (allowedSipTrunksBuilder_ == null) { + if (!(inboundRestrictionCase_ == 7)) { + inboundRestriction_ = + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.getDefaultInstance(); + } + allowedSipTrunksBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_, + getParentForChildren(), + isClean()); + inboundRestriction_ = null; + } + inboundRestrictionCase_ = 7; + onChanged(); + return allowedSipTrunksBuilder_; + } + + private com.google.protobuf.Timestamp purgeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + purgeTimeBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + public boolean hasPurgeTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + public com.google.protobuf.Timestamp getPurgeTime() { + if (purgeTimeBuilder_ == null) { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } else { + return purgeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPurgeTime(com.google.protobuf.Timestamp value) { + if (purgeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + purgeTime_ = value; + } else { + purgeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (purgeTimeBuilder_ == null) { + purgeTime_ = builderForValue.build(); + } else { + purgeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePurgeTime(com.google.protobuf.Timestamp value) { + if (purgeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && purgeTime_ != null + && purgeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getPurgeTimeBuilder().mergeFrom(value); + } else { + purgeTime_ = value; + } + } else { + purgeTimeBuilder_.mergeFrom(value); + } + if (purgeTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPurgeTime() { + bitField0_ = (bitField0_ & ~0x00000020); + purgeTime_ = null; + if (purgeTimeBuilder_ != null) { + purgeTimeBuilder_.dispose(); + purgeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getPurgeTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPurgeTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { + if (purgeTimeBuilder_ != null) { + return purgeTimeBuilder_.getMessageOrBuilder(); + } else { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Output only. The time at which this resource will be purged.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetPurgeTimeFieldBuilder() { + if (purgeTimeBuilder_ == null) { + purgeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPurgeTime(), getParentForChildren(), isClean()); + purgeTime_ = null; + } + return purgeTimeBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.PhoneNumber) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberOrBuilder.java index b6e94e2183a7..7d949d5af537 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberOrBuilder.java @@ -161,4 +161,91 @@ public interface PhoneNumberOrBuilder * @return The lifecycleState. */ com.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState getLifecycleState(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedSipTrunks field is set. + */ + boolean hasAllowedSipTrunks(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedSipTrunks. + */ + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks getAllowedSipTrunks(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder + getAllowedSipTrunksOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * Output only. The time at which this resource will be purged.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + boolean hasPurgeTime(); + + /** + * + * + *
                                                                                                                                  +   * Output only. The time at which this resource will be purged.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + com.google.protobuf.Timestamp getPurgeTime(); + + /** + * + * + *
                                                                                                                                  +   * Output only. The time at which this resource will be purged.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.PhoneNumber.InboundRestrictionCase + getInboundRestrictionCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberProto.java index 3fc8dd21bb01..23c8820eef95 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_DeletePhoneNumberRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -78,69 +82,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "beta1\032\034google/api/annotations.proto\032\027goo" + "gle/api/client.proto\032\037google/api/field_b" + "ehavior.proto\032\031google/api/resource.proto" - + "\032 google/protobuf/field_mask.proto\"\261\003\n\013P" - + "honeNumber\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014phone_n" - + "umber\030\002 \001(\tB\003\340A\003\022!\n\024conversation_profile" - + "\030\003 \001(\tB\003\340A\001\022Y\n\017lifecycle_state\030\004 \001(\0162;.g" - + "oogle.cloud.dialogflow.v2beta1.PhoneNumb" - + "er.LifecycleStateB\003\340A\003\"S\n\016LifecycleState" - + "\022\037\n\033LIFECYCLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\001\022\024\n\020DELETE_REQUESTED\020\002:\240\001\352A\234\001\n%dial" - + "ogflow.googleapis.com/PhoneNumber\022.proje" - + "cts/{project}/phoneNumbers/{phone_number" - + "}\022Cprojects/{project}/locations/{locatio" - + "n}/phoneNumbers/{phone_number}\"W\n\030Delete" - + "PhoneNumberRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" - + "\n%dialogflow.googleapis.com/PhoneNumber\"" - + "Y\n\032UndeletePhoneNumberRequest\022;\n\004name\030\001 " - + "\001(\tB-\340A\002\372A\'\n%dialogflow.googleapis.com/P" - + "honeNumber\"\244\001\n\027ListPhoneNumbersRequest\022=" - + "\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.googl" - + "eapis.com/PhoneNumber\022\026\n\tpage_size\030\002 \001(\005" - + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014show_d" - + "eleted\030\004 \001(\010B\003\340A\001\"x\n\030ListPhoneNumbersRes" - + "ponse\022C\n\rphone_numbers\030\001 \003(\0132,.google.cl" - + "oud.dialogflow.v2beta1.PhoneNumber\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\231\001\n\030UpdatePhoneNumbe" - + "rRequest\022G\n\014phone_number\030\001 \001(\0132,.google." - + "cloud.dialogflow.v2beta1.PhoneNumberB\003\340A" - + "\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\0012\306\t\n\014PhoneNumbers\022\374\001\n\020Lis" - + "tPhoneNumbers\0228.google.cloud.dialogflow." - + "v2beta1.ListPhoneNumbersRequest\0329.google" - + ".cloud.dialogflow.v2beta1.ListPhoneNumbe" - + "rsResponse\"s\332A\006parent\202\323\344\223\002d\022)/v2beta1/{p" - + "arent=projects/*}/phoneNumbersZ7\0225/v2bet" - + "a1/{parent=projects/*/locations/*}/phone" - + "Numbers\022\273\002\n\021UpdatePhoneNumber\0229.google.c" - + "loud.dialogflow.v2beta1.UpdatePhoneNumbe" - + "rRequest\032,.google.cloud.dialogflow.v2bet" - + "a1.PhoneNumber\"\274\001\332A\030phone_number,update_" - + "mask\202\323\344\223\002\232\00126/v2beta1/{phone_number.name" - + "=projects/*/phoneNumbers/*}:\014phone_numbe" - + "rZR2B/v2beta1/{phone_number.name=project" - + "s/*/locations/*/phoneNumbers/*}:\014phone_n" - + "umber\022\357\001\n\021DeletePhoneNumber\0229.google.clo" - + "ud.dialogflow.v2beta1.DeletePhoneNumberR" + + "\032 google/protobuf/field_mask.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\312\005\n\013PhoneNum" + + "ber\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014phone_number\030\002" + + " \001(\tB\003\340A\003\022!\n\024conversation_profile\030\003 \001(\tB" + + "\003\340A\001\022Y\n\017lifecycle_state\030\004 \001(\0162;.google.c" + + "loud.dialogflow.v2beta1.PhoneNumber.Life" + + "cycleStateB\003\340A\003\022`\n\022allowed_sip_trunks\030\007 " + + "\001(\0132=.google.cloud.dialogflow.v2beta1.Ph" + + "oneNumber.AllowedSipTrunksB\003\340A\001H\000\0223\n\npur" + + "ge_time\030\010 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\032i\n\020AllowedSipTrunks\022;\n\nsip_trunks" + + "\030\001 \003(\tB\'\372A$\n\"dialogflow.googleapis.com/S" + + "ipTrunk\022\030\n\013carrier_ids\030\002 \003(\tB\003\340A\001\"S\n\016Lif" + + "ecycleState\022\037\n\033LIFECYCLE_STATE_UNSPECIFI" + + "ED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DELETE_REQUESTED\020\002:\240" + + "\001\352A\234\001\n%dialogflow.googleapis.com/PhoneNu" + + "mber\022.projects/{project}/phoneNumbers/{p" + + "hone_number}\022Cprojects/{project}/locatio" + + "ns/{location}/phoneNumbers/{phone_number" + + "}B\025\n\023inbound_restriction\"W\n\030DeletePhoneN" + + "umberRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dial" + + "ogflow.googleapis.com/PhoneNumber\"Y\n\032Und" + + "eletePhoneNumberRequest\022;\n\004name\030\001 \001(\tB-\340" + + "A\002\372A\'\n%dialogflow.googleapis.com/PhoneNu" + + "mber\"\244\001\n\027ListPhoneNumbersRequest\022=\n\006pare" + + "nt\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.googleapis." + + "com/PhoneNumber\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022" + + "\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014show_deleted" + + "\030\004 \001(\010B\003\340A\001\"x\n\030ListPhoneNumbersResponse\022" + + "C\n\rphone_numbers\030\001 \003(\0132,.google.cloud.di" + + "alogflow.v2beta1.PhoneNumber\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\231\001\n\030UpdatePhoneNumberReque" + + "st\022G\n\014phone_number\030\001 \001(\0132,.google.cloud." + + "dialogflow.v2beta1.PhoneNumberB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\0012\306\t\n\014PhoneNumbers\022\374\001\n\020ListPhone" + + "Numbers\0228.google.cloud.dialogflow.v2beta" + + "1.ListPhoneNumbersRequest\0329.google.cloud" + + ".dialogflow.v2beta1.ListPhoneNumbersResp" + + "onse\"s\332A\006parent\202\323\344\223\002d\022)/v2beta1/{parent=" + + "projects/*}/phoneNumbersZ7\0225/v2beta1/{pa" + + "rent=projects/*/locations/*}/phoneNumber" + + "s\022\273\002\n\021UpdatePhoneNumber\0229.google.cloud.d" + + "ialogflow.v2beta1.UpdatePhoneNumberReque" + + "st\032,.google.cloud.dialogflow.v2beta1.Pho" + + "neNumber\"\274\001\332A\030phone_number,update_mask\202\323" + + "\344\223\002\232\00126/v2beta1/{phone_number.name=proje" + + "cts/*/phoneNumbers/*}:\014phone_numberZR2B/" + + "v2beta1/{phone_number.name=projects/*/lo" + + "cations/*/phoneNumbers/*}:\014phone_number\022" + + "\357\001\n\021DeletePhoneNumber\0229.google.cloud.dia" + + "logflow.v2beta1.DeletePhoneNumberRequest" + + "\032,.google.cloud.dialogflow.v2beta1.Phone" + + "Number\"q\332A\004name\202\323\344\223\002d*)/v2beta1/{name=pr" + + "ojects/*/phoneNumbers/*}Z7*5/v2beta1/{na" + + "me=projects/*/locations/*/phoneNumbers/*" + + "}\022\214\002\n\023UndeletePhoneNumber\022;.google.cloud" + + ".dialogflow.v2beta1.UndeletePhoneNumberR" + "equest\032,.google.cloud.dialogflow.v2beta1" - + ".PhoneNumber\"q\332A\004name\202\323\344\223\002d*)/v2beta1/{n" - + "ame=projects/*/phoneNumbers/*}Z7*5/v2bet" - + "a1/{name=projects/*/locations/*/phoneNum" - + "bers/*}\022\214\002\n\023UndeletePhoneNumber\022;.google" - + ".cloud.dialogflow.v2beta1.UndeletePhoneN" - + "umberRequest\032,.google.cloud.dialogflow.v" - + "2beta1.PhoneNumber\"\211\001\332A\004name\202\323\344\223\002|\"2/v2b" - + "eta1/{name=projects/*/phoneNumbers/*}:un" - + "delete:\001*ZC\">/v2beta1/{name=projects/*/l" - + "ocations/*/phoneNumbers/*}:undelete:\001*\032x" - + "\312A\031dialogflow.googleapis.com\322AYhttps://w" - + "ww.googleapis.com/auth/cloud-platform,ht" - + "tps://www.googleapis.com/auth/dialogflow" - + "B\245\001\n#com.google.cloud.dialogflow.v2beta1" - + "B\020PhoneNumberProtoP\001ZCcloud.google.com/g" - + "o/dialogflow/apiv2beta1/dialogflowpb;dia" - + "logflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow" - + ".V2Beta1b\006proto3" + + ".PhoneNumber\"\211\001\332A\004name\202\323\344\223\002|\"2/v2beta1/{" + + "name=projects/*/phoneNumbers/*}:undelete" + + ":\001*ZC\">/v2beta1/{name=projects/*/locatio" + + "ns/*/phoneNumbers/*}:undelete:\001*\032x\312A\031dia" + + "logflow.googleapis.com\322AYhttps://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/dialogflowB\245\001\n#c" + + "om.google.cloud.dialogflow.v2beta1B\020Phon" + + "eNumberProtoP\001ZCcloud.google.com/go/dial" + + "ogflow/apiv2beta1/dialogflowpb;dialogflo" + + "wpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,6 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_descriptor = getDescriptor().getMessageType(0); @@ -158,7 +171,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_descriptor, new java.lang.String[] { - "Name", "PhoneNumber", "ConversationProfile", "LifecycleState", + "Name", + "PhoneNumber", + "ConversationProfile", + "LifecycleState", + "AllowedSipTrunks", + "PurgeTime", + "InboundRestriction", + }); + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_descriptor.getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor, + new java.lang.String[] { + "SipTrunks", "CarrierIds", }); internal_static_google_cloud_dialogflow_v2beta1_DeletePhoneNumberRequest_descriptor = getDescriptor().getMessageType(1); @@ -206,6 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfo.java new file mode 100644 index 000000000000..9f703401ddd9 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfo.java @@ -0,0 +1,2347 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                  + * Debug information related to SearchKnowledge feature.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo} + */ +@com.google.protobuf.Generated +public final class SearchKnowledgeDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + SearchKnowledgeDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchKnowledgeDebugInfo"); + } + + // Use SearchKnowledgeDebugInfo.newBuilder() to construct. + private SearchKnowledgeDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchKnowledgeDebugInfo() { + datastoreResponseReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder.class); + } + + public interface SearchKnowledgeBehaviorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + boolean getAnswerGenerationRewriterOn(); + + /** + * + * + *
                                                                                                                                  +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + boolean getEndUserMetadataIncluded(); + + /** + * + * + *
                                                                                                                                  +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +     * project. Note that this field only indicates if the project is
                                                                                                                                  +     * allowlisted for connectors.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + boolean getThirdPartyConnectorAllowed(); + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior} + */ + public static final class SearchKnowledgeBehavior extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + SearchKnowledgeBehaviorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchKnowledgeBehavior"); + } + + // Use SearchKnowledgeBehavior.newBuilder() to construct. + private SearchKnowledgeBehavior(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchKnowledgeBehavior() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .class, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder.class); + } + + public static final int ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER = 1; + private boolean answerGenerationRewriterOn_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + public static final int END_USER_METADATA_INCLUDED_FIELD_NUMBER = 2; + private boolean endUserMetadataIncluded_ = false; + + /** + * + * + *
                                                                                                                                  +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + public static final int THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER = 4; + private boolean thirdPartyConnectorAllowed_ = false; + + /** + * + * + *
                                                                                                                                  +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +     * project. Note that this field only indicates if the project is
                                                                                                                                  +     * allowlisted for connectors.
                                                                                                                                  +     * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + 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 (answerGenerationRewriterOn_ != false) { + output.writeBool(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + output.writeBool(2, endUserMetadataIncluded_); + } + if (thirdPartyConnectorAllowed_ != false) { + output.writeBool(4, thirdPartyConnectorAllowed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answerGenerationRewriterOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, endUserMetadataIncluded_); + } + if (thirdPartyConnectorAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, thirdPartyConnectorAllowed_); + } + 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.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior other = + (com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + obj; + + if (getAnswerGenerationRewriterOn() != other.getAnswerGenerationRewriterOn()) return false; + if (getEndUserMetadataIncluded() != other.getEndUserMetadataIncluded()) return false; + if (getThirdPartyConnectorAllowed() != other.getThirdPartyConnectorAllowed()) 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) + ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerGenerationRewriterOn()); + hash = (37 * hash) + END_USER_METADATA_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndUserMetadataIncluded()); + hash = (37 * hash) + THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThirdPartyConnectorAllowed()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + 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.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + 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.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .class, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerGenerationRewriterOn_ = false; + endUserMetadataIncluded_ = false; + thirdPartyConnectorAllowed_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + build() { + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + result = + new com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerGenerationRewriterOn_ = answerGenerationRewriterOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endUserMetadataIncluded_ = endUserMetadataIncluded_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thirdPartyConnectorAllowed_ = thirdPartyConnectorAllowed_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance()) return this; + if (other.getAnswerGenerationRewriterOn() != false) { + setAnswerGenerationRewriterOn(other.getAnswerGenerationRewriterOn()); + } + if (other.getEndUserMetadataIncluded() != false) { + setEndUserMetadataIncluded(other.getEndUserMetadataIncluded()); + } + if (other.getThirdPartyConnectorAllowed() != false) { + setThirdPartyConnectorAllowed(other.getThirdPartyConnectorAllowed()); + } + 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 8: + { + answerGenerationRewriterOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endUserMetadataIncluded_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + thirdPartyConnectorAllowed_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + 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 boolean answerGenerationRewriterOn_; + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @param value The answerGenerationRewriterOn to set. + * @return This builder for chaining. + */ + public Builder setAnswerGenerationRewriterOn(boolean value) { + + answerGenerationRewriterOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool answer_generation_rewriter_on = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerGenerationRewriterOn() { + bitField0_ = (bitField0_ & ~0x00000001); + answerGenerationRewriterOn_ = false; + onChanged(); + return this; + } + + private boolean endUserMetadataIncluded_; + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @param value The endUserMetadataIncluded to set. + * @return This builder for chaining. + */ + public Builder setEndUserMetadataIncluded(boolean value) { + + endUserMetadataIncluded_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool end_user_metadata_included = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndUserMetadataIncluded() { + bitField0_ = (bitField0_ & ~0x00000002); + endUserMetadataIncluded_ = false; + onChanged(); + return this; + } + + private boolean thirdPartyConnectorAllowed_; + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project. Note that this field only indicates if the project is
                                                                                                                                  +       * allowlisted for connectors.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project. Note that this field only indicates if the project is
                                                                                                                                  +       * allowlisted for connectors.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @param value The thirdPartyConnectorAllowed to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyConnectorAllowed(boolean value) { + + thirdPartyConnectorAllowed_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                  +       * project. Note that this field only indicates if the project is
                                                                                                                                  +       * allowlisted for connectors.
                                                                                                                                  +       * 
                                                                                                                                  + * + * bool third_party_connector_allowed = 4; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyConnectorAllowed() { + bitField0_ = (bitField0_ & ~0x00000004); + thirdPartyConnectorAllowed_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + private static final com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior(); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchKnowledgeBehavior 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.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 1; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int SEARCH_KNOWLEDGE_BEHAVIOR_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + searchKnowledgeBehavior_; + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + @java.lang.Override + public boolean hasSearchKnowledgeBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior() { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder() { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + 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 (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSearchKnowledgeBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getServiceLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSearchKnowledgeBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceLatency()); + } + 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.dialogflow.v2beta1.SearchKnowledgeDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) obj; + + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasSearchKnowledgeBehavior() != other.hasSearchKnowledgeBehavior()) return false; + if (hasSearchKnowledgeBehavior()) { + if (!getSearchKnowledgeBehavior().equals(other.getSearchKnowledgeBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) 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) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasSearchKnowledgeBehavior()) { + hash = (37 * hash) + SEARCH_KNOWLEDGE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getSearchKnowledgeBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo 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.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo 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.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.SearchKnowledgeDebugInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Debug information related to SearchKnowledge feature.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSearchKnowledgeBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datastoreResponseReason_ = 0; + searchKnowledgeBehavior_ = null; + if (searchKnowledgeBehaviorBuilder_ != null) { + searchKnowledgeBehaviorBuilder_.dispose(); + searchKnowledgeBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo build() { + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo result = + new com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchKnowledgeBehavior_ = + searchKnowledgeBehaviorBuilder_ == null + ? searchKnowledgeBehavior_ + : searchKnowledgeBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance()) + return this; + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasSearchKnowledgeBehavior()) { + mergeSearchKnowledgeBehavior(other.getSearchKnowledgeBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + 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 8: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetSearchKnowledgeBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + datastoreResponseReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Response reason from datastore which indicates data serving status or
                                                                                                                                  +     * answer quality degradation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000001); + datastoreResponseReason_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + searchKnowledgeBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder> + searchKnowledgeBehaviorBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + public boolean hasSearchKnowledgeBehavior() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior() { + if (searchKnowledgeBehaviorBuilder_ == null) { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } else { + return searchKnowledgeBehaviorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder setSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + value) { + if (searchKnowledgeBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchKnowledgeBehavior_ = value; + } else { + searchKnowledgeBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder setSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder + builderForValue) { + if (searchKnowledgeBehaviorBuilder_ == null) { + searchKnowledgeBehavior_ = builderForValue.build(); + } else { + searchKnowledgeBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder mergeSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + value) { + if (searchKnowledgeBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && searchKnowledgeBehavior_ != null + && searchKnowledgeBehavior_ + != com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior.getDefaultInstance()) { + getSearchKnowledgeBehaviorBuilder().mergeFrom(value); + } else { + searchKnowledgeBehavior_ = value; + } + } else { + searchKnowledgeBehaviorBuilder_.mergeFrom(value); + } + if (searchKnowledgeBehavior_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder clearSearchKnowledgeBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + searchKnowledgeBehavior_ = null; + if (searchKnowledgeBehaviorBuilder_ != null) { + searchKnowledgeBehaviorBuilder_.dispose(); + searchKnowledgeBehaviorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder + getSearchKnowledgeBehaviorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSearchKnowledgeBehaviorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder() { + if (searchKnowledgeBehaviorBuilder_ != null) { + return searchKnowledgeBehaviorBuilder_.getMessageOrBuilder(); + } else { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Configured behaviors for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder> + internalGetSearchKnowledgeBehaviorFieldBuilder() { + if (searchKnowledgeBehaviorBuilder_ == null) { + searchKnowledgeBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder>( + getSearchKnowledgeBehavior(), getParentForChildren(), isClean()); + searchKnowledgeBehavior_ = null; + } + return searchKnowledgeBehaviorBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Information about parameters ingested for search knowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } else { + return serviceLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceLatency_ = value; + } else { + serviceLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); + } else { + serviceLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); + } else { + serviceLatency_ = value; + } + } else { + serviceLatencyBuilder_.mergeFrom(value); + } + if (serviceLatency_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder + getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); + } else { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + } + + /** + * + * + *
                                                                                                                                  +     * The latency of the service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; + } + return serviceLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchKnowledgeDebugInfo 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.dialogflow.v2beta1.SearchKnowledgeDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfoOrBuilder.java new file mode 100644 index 000000000000..2175c8fb7ba6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfoOrBuilder.java @@ -0,0 +1,185 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface SearchKnowledgeDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + int getDatastoreResponseReasonValue(); + + /** + * + * + *
                                                                                                                                  +   * Response reason from datastore which indicates data serving status or
                                                                                                                                  +   * answer quality degradation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The datastoreResponseReason. + */ + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + boolean hasSearchKnowledgeBehavior(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior(); + + /** + * + * + *
                                                                                                                                  +   * Configured behaviors for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + boolean hasIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Information about parameters ingested for search knowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + boolean hasServiceLatency(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency(); + + /** + * + * + *
                                                                                                                                  +   * The latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponse.java index 8a407338e971..dd6bf4a3fae6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponse.java @@ -72,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse.Builder.class); } + private int bitField0_; public static final int ANSWERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -209,6 +210,67 @@ public com.google.protobuf.ByteString getRewrittenQueryBytes() { } } + public static final int SEARCH_KNOWLEDGE_DEBUG_INFO_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo searchKnowledgeDebugInfo_; + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + @java.lang.Override + public boolean hasSearchKnowledgeDebugInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + getSearchKnowledgeDebugInfo() { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder() { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -229,6 +291,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, rewrittenQuery_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSearchKnowledgeDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -244,6 +309,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rewrittenQuery_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getSearchKnowledgeDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -262,6 +332,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAnswersList().equals(other.getAnswersList())) return false; if (!getRewrittenQuery().equals(other.getRewrittenQuery())) return false; + if (hasSearchKnowledgeDebugInfo() != other.hasSearchKnowledgeDebugInfo()) return false; + if (hasSearchKnowledgeDebugInfo()) { + if (!getSearchKnowledgeDebugInfo().equals(other.getSearchKnowledgeDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,6 +353,10 @@ public int hashCode() { } hash = (37 * hash) + REWRITTEN_QUERY_FIELD_NUMBER; hash = (53 * hash) + getRewrittenQuery().hashCode(); + if (hasSearchKnowledgeDebugInfo()) { + hash = (37 * hash) + SEARCH_KNOWLEDGE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSearchKnowledgeDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -411,10 +489,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAnswersFieldBuilder(); + internalGetSearchKnowledgeDebugInfoFieldBuilder(); + } } @java.lang.Override @@ -429,6 +517,11 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); rewrittenQuery_ = ""; + searchKnowledgeDebugInfo_ = null; + if (searchKnowledgeDebugInfoBuilder_ != null) { + searchKnowledgeDebugInfoBuilder_.dispose(); + searchKnowledgeDebugInfoBuilder_ = null; + } return this; } @@ -482,6 +575,15 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRe if (((from_bitField0_ & 0x00000002) != 0)) { result.rewrittenQuery_ = rewrittenQuery_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchKnowledgeDebugInfo_ = + searchKnowledgeDebugInfoBuilder_ == null + ? searchKnowledgeDebugInfo_ + : searchKnowledgeDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -529,6 +631,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResp bitField0_ |= 0x00000002; onChanged(); } + if (other.hasSearchKnowledgeDebugInfo()) { + mergeSearchKnowledgeDebugInfo(other.getSearchKnowledgeDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -575,6 +680,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 34: + { + input.readMessage( + internalGetSearchKnowledgeDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1105,6 +1218,226 @@ public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo searchKnowledgeDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder> + searchKnowledgeDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + public boolean hasSearchKnowledgeDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + getSearchKnowledgeDebugInfo() { + if (searchKnowledgeDebugInfoBuilder_ == null) { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } else { + return searchKnowledgeDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder setSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo value) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchKnowledgeDebugInfo_ = value; + } else { + searchKnowledgeDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder setSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder builderForValue) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + searchKnowledgeDebugInfo_ = builderForValue.build(); + } else { + searchKnowledgeDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder mergeSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo value) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && searchKnowledgeDebugInfo_ != null + && searchKnowledgeDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .getDefaultInstance()) { + getSearchKnowledgeDebugInfoBuilder().mergeFrom(value); + } else { + searchKnowledgeDebugInfo_ = value; + } + } else { + searchKnowledgeDebugInfoBuilder_.mergeFrom(value); + } + if (searchKnowledgeDebugInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder clearSearchKnowledgeDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + searchKnowledgeDebugInfo_ = null; + if (searchKnowledgeDebugInfoBuilder_ != null) { + searchKnowledgeDebugInfoBuilder_.dispose(); + searchKnowledgeDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder + getSearchKnowledgeDebugInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSearchKnowledgeDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder() { + if (searchKnowledgeDebugInfoBuilder_ != null) { + return searchKnowledgeDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                  +     * Debug info for SearchKnowledge.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder> + internalGetSearchKnowledgeDebugInfoFieldBuilder() { + if (searchKnowledgeDebugInfoBuilder_ == null) { + searchKnowledgeDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder>( + getSearchKnowledgeDebugInfo(), getParentForChildren(), isClean()); + searchKnowledgeDebugInfo_ = null; + } + return searchKnowledgeDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponseOrBuilder.java index bb4e7d23542e..b09434567139 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponseOrBuilder.java @@ -112,4 +112,48 @@ public interface SearchKnowledgeResponseOrBuilder * @return The bytes for rewrittenQuery. */ com.google.protobuf.ByteString getRewrittenQueryBytes(); + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + boolean hasSearchKnowledgeDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo getSearchKnowledgeDebugInfo(); + + /** + * + * + *
                                                                                                                                  +   * Debug info for SearchKnowledge.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatency.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatency.java new file mode 100644 index 000000000000..437aea3828cb --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatency.java @@ -0,0 +1,2400 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                  + * Message to represent the latency of the service.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ServiceLatency} + */ +@com.google.protobuf.Generated +public final class ServiceLatency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ServiceLatency) + ServiceLatencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ServiceLatency"); + } + + // Use ServiceLatency.newBuilder() to construct. + private ServiceLatency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceLatency() { + internalServiceLatencies_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.class, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder.class); + } + + public interface InternalServiceLatencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +     * The name of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string step = 1; + * + * @return The step. + */ + java.lang.String getStep(); + + /** + * + * + *
                                                                                                                                  +     * The name of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string step = 1; + * + * @return The bytes for step. + */ + com.google.protobuf.ByteString getStepBytes(); + + /** + * + * + *
                                                                                                                                  +     * The latency of the internal service in milliseconds.
                                                                                                                                  +     * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + float getLatencyMs(); + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + boolean hasCompleteTime(); + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + com.google.protobuf.Timestamp getCompleteTime(); + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + } + + /** + * + * + *
                                                                                                                                  +   * Message to represent the latency of an internal service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency} + */ + public static final class InternalServiceLatency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + InternalServiceLatencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InternalServiceLatency"); + } + + // Use InternalServiceLatency.newBuilder() to construct. + private InternalServiceLatency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InternalServiceLatency() { + step_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.class, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + .class); + } + + private int bitField0_; + public static final int STEP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object step_ = ""; + + /** + * + * + *
                                                                                                                                  +     * The name of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string step = 1; + * + * @return The step. + */ + @java.lang.Override + public java.lang.String getStep() { + java.lang.Object ref = step_; + 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(); + step_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +     * The name of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string step = 1; + * + * @return The bytes for step. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATENCY_MS_FIELD_NUMBER = 2; + private float latencyMs_ = 0F; + + /** + * + * + *
                                                                                                                                  +     * The latency of the internal service in milliseconds.
                                                                                                                                  +     * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + @java.lang.Override + public float getLatencyMs() { + return latencyMs_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                                                                                                                  +     * The start time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int COMPLETE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp completeTime_; + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + /** + * + * + *
                                                                                                                                  +     * The completion time of the internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + 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.GeneratedMessage.isStringEmpty(step_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, step_); + } + if (java.lang.Float.floatToRawIntBits(latencyMs_) != 0) { + output.writeFloat(2, latencyMs_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCompleteTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(step_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, step_); + } + if (java.lang.Float.floatToRawIntBits(latencyMs_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, latencyMs_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompleteTime()); + } + 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.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency other = + (com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) obj; + + if (!getStep().equals(other.getStep())) return false; + if (java.lang.Float.floatToIntBits(getLatencyMs()) + != java.lang.Float.floatToIntBits(other.getLatencyMs())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) 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) + STEP_FIELD_NUMBER; + hash = (53 * hash) + getStep().hashCode(); + hash = (37 * hash) + LATENCY_MS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLatencyMs()); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + 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.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + 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.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +     * Message to represent the latency of an internal service.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.class, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetCompleteTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + step_ = ""; + latencyMs_ = 0F; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency build() { + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + buildPartial() { + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency result = + new com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.latencyMs_ = latencyMs_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency other) { + if (other + == com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .getDefaultInstance()) return this; + if (!other.getStep().isEmpty()) { + step_ = other.step_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getLatencyMs()) != 0) { + setLatencyMs(other.getLatencyMs()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + 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: + { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + latencyMs_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 step_ = ""; + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @return The step. + */ + public java.lang.String getStep() { + java.lang.Object ref = step_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + step_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @return The bytes for step. + */ + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + step_ = getDefaultInstance().getStep(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The name of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string step = 1; + * + * @param value The bytes for step to set. + * @return This builder for chaining. + */ + public Builder setStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float latencyMs_; + + /** + * + * + *
                                                                                                                                  +       * The latency of the internal service in milliseconds.
                                                                                                                                  +       * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + @java.lang.Override + public float getLatencyMs() { + return latencyMs_; + } + + /** + * + * + *
                                                                                                                                  +       * The latency of the internal service in milliseconds.
                                                                                                                                  +       * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @param value The latencyMs to set. + * @return This builder for chaining. + */ + public Builder setLatencyMs(float value) { + + latencyMs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The latency of the internal service in milliseconds.
                                                                                                                                  +       * 
                                                                                                                                  + * + * float latency_ms = 2; + * + * @return This builder for chaining. + */ + public Builder clearLatencyMs() { + bitField0_ = (bitField0_ & ~0x00000002); + latencyMs_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
                                                                                                                                  +       * The start time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp completeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000008); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCompleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + } + + /** + * + * + *
                                                                                                                                  +       * The completion time of the internal service.
                                                                                                                                  +       * 
                                                                                                                                  + * + * .google.protobuf.Timestamp complete_time = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + private static final com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency(); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalServiceLatency 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.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int INTERNAL_SERVICE_LATENCIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + internalServiceLatencies_; + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public java.util.List + getInternalServiceLatenciesList() { + return internalServiceLatencies_; + } + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList() { + return internalServiceLatencies_; + } + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public int getInternalServiceLatenciesCount() { + return internalServiceLatencies_.size(); + } + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index) { + return internalServiceLatencies_.get(index); + } + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index) { + return internalServiceLatencies_.get(index); + } + + 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 < internalServiceLatencies_.size(); i++) { + output.writeMessage(1, internalServiceLatencies_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < internalServiceLatencies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, internalServiceLatencies_.get(i)); + } + 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.dialogflow.v2beta1.ServiceLatency)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ServiceLatency other = + (com.google.cloud.dialogflow.v2beta1.ServiceLatency) obj; + + if (!getInternalServiceLatenciesList().equals(other.getInternalServiceLatenciesList())) + 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 (getInternalServiceLatenciesCount() > 0) { + hash = (37 * hash) + INTERNAL_SERVICE_LATENCIES_FIELD_NUMBER; + hash = (53 * hash) + getInternalServiceLatenciesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency 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.dialogflow.v2beta1.ServiceLatency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency 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.dialogflow.v2beta1.ServiceLatency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.ServiceLatency 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * Message to represent the latency of the service.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ServiceLatency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ServiceLatency) + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.class, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ServiceLatency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatencies_ = java.util.Collections.emptyList(); + } else { + internalServiceLatencies_ = null; + internalServiceLatenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency build() { + com.google.cloud.dialogflow.v2beta1.ServiceLatency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency buildPartial() { + com.google.cloud.dialogflow.v2beta1.ServiceLatency result = + new com.google.cloud.dialogflow.v2beta1.ServiceLatency(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.ServiceLatency result) { + if (internalServiceLatenciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + internalServiceLatencies_ = + java.util.Collections.unmodifiableList(internalServiceLatencies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.internalServiceLatencies_ = internalServiceLatencies_; + } else { + result.internalServiceLatencies_ = internalServiceLatenciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ServiceLatency result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ServiceLatency) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ServiceLatency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ServiceLatency other) { + if (other == com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) + return this; + if (internalServiceLatenciesBuilder_ == null) { + if (!other.internalServiceLatencies_.isEmpty()) { + if (internalServiceLatencies_.isEmpty()) { + internalServiceLatencies_ = other.internalServiceLatencies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.addAll(other.internalServiceLatencies_); + } + onChanged(); + } + } else { + if (!other.internalServiceLatencies_.isEmpty()) { + if (internalServiceLatenciesBuilder_.isEmpty()) { + internalServiceLatenciesBuilder_.dispose(); + internalServiceLatenciesBuilder_ = null; + internalServiceLatencies_ = other.internalServiceLatencies_; + bitField0_ = (bitField0_ & ~0x00000001); + internalServiceLatenciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInternalServiceLatenciesFieldBuilder() + : null; + } else { + internalServiceLatenciesBuilder_.addAllMessages(other.internalServiceLatencies_); + } + } + } + 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: + { + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .parser(), + extensionRegistry); + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(m); + } else { + internalServiceLatenciesBuilder_.addMessage(m); + } + 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 bitField0_; + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency> + internalServiceLatencies_ = java.util.Collections.emptyList(); + + private void ensureInternalServiceLatenciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + internalServiceLatencies_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency>( + internalServiceLatencies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + internalServiceLatenciesBuilder_; + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List + getInternalServiceLatenciesList() { + if (internalServiceLatenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(internalServiceLatencies_); + } else { + return internalServiceLatenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public int getInternalServiceLatenciesCount() { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.size(); + } else { + return internalServiceLatenciesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index) { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.get(index); + } else { + return internalServiceLatenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder setInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.set(index, value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder setInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.set(index, builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(index, value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(index, builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addAllInternalServiceLatencies( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency> + values) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, internalServiceLatencies_); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder clearInternalServiceLatencies() { + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + internalServiceLatenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder removeInternalServiceLatencies(int index) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.remove(index); + onChanged(); + } else { + internalServiceLatenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + getInternalServiceLatenciesBuilder(int index) { + return internalGetInternalServiceLatenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index) { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.get(index); + } else { + return internalServiceLatenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList() { + if (internalServiceLatenciesBuilder_ != null) { + return internalServiceLatenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(internalServiceLatencies_); + } + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + addInternalServiceLatenciesBuilder() { + return internalGetInternalServiceLatenciesFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + addInternalServiceLatenciesBuilder(int index) { + return internalGetInternalServiceLatenciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +     * A list of internal service latencies.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder> + getInternalServiceLatenciesBuilderList() { + return internalGetInternalServiceLatenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + internalGetInternalServiceLatenciesFieldBuilder() { + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder>( + internalServiceLatencies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + internalServiceLatencies_ = null; + } + return internalServiceLatenciesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ServiceLatency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ServiceLatency) + private static final com.google.cloud.dialogflow.v2beta1.ServiceLatency DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ServiceLatency(); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceLatency 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.dialogflow.v2beta1.ServiceLatency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatencyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatencyOrBuilder.java new file mode 100644 index 000000000000..509fdf69969a --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatencyOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface ServiceLatencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ServiceLatency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + java.util.List + getInternalServiceLatenciesList(); + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index); + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + int getInternalServiceLatenciesCount(); + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +   * A list of internal service latencies.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryResponse.java index 5066096f0f72..1419182117ea 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryResponse.java @@ -176,6 +176,86 @@ java.lang.String getTextSectionsOrDefault( */ java.lang.String getTextSectionsOrThrow(java.lang.String key); + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList(); + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection + getSortedTextSections(int index); + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + int getSortedTextSectionsCount(); + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList(); + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index); + /** * * @@ -266,6 +346,7 @@ private Summary(com.google.protobuf.GeneratedMessage.Builder builder) { private Summary() { text_ = ""; + sortedTextSections_ = java.util.Collections.emptyList(); answerRecord_ = ""; baselineModelVersion_ = ""; } @@ -298,6 +379,901 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl .class); } + public interface SummarySectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +       * Output only. Name of the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + java.lang.String getSection(); + + /** + * + * + *
                                                                                                                                  +       * Output only. Name of the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + com.google.protobuf.ByteString getSectionBytes(); + + /** + * + * + *
                                                                                                                                  +       * Output only. Summary text for the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + java.lang.String getSummary(); + + /** + * + * + *
                                                                                                                                  +       * Output only. Summary text for the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + com.google.protobuf.ByteString getSummaryBytes(); + } + + /** + * + * + *
                                                                                                                                  +     * A component of the generated summary.
                                                                                                                                  +     * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection} + */ + public static final class SummarySection extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + SummarySectionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SummarySection"); + } + + // Use SummarySection.newBuilder() to construct. + private SummarySection(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SummarySection() { + section_ = ""; + summary_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.class, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder.class); + } + + public static final int SECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object section_ = ""; + + /** + * + * + *
                                                                                                                                  +       * Output only. Name of the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + @java.lang.Override + public java.lang.String getSection() { + java.lang.Object ref = section_; + 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(); + section_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +       * Output only. Name of the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + + /** + * + * + *
                                                                                                                                  +       * Output only. Summary text for the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + 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(); + summary_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +       * Output only. Summary text for the section.
                                                                                                                                  +       * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(section_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, section_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, summary_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(section_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, section_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, summary_); + } + 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.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + other = + (com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection) + obj; + + if (!getSection().equals(other.getSection())) return false; + if (!getSummary().equals(other.getSummary())) 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) + SECTION_FIELD_NUMBER; + hash = (53 * hash) + getSection().hashCode(); + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + 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.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + 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.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +       * A component of the generated summary.
                                                                                                                                  +       * 
                                                                                                                                  + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.class, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + section_ = ""; + summary_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + build() { + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + result = + new com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.section_ = section_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summary_ = summary_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()) return this; + if (!other.getSection().isEmpty()) { + section_ = other.section_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + 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: + { + section_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + summary_ = 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 java.lang.Object section_ = ""; + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The section to set. + * @return This builder for chaining. + */ + public Builder setSection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSection() { + section_ = getDefaultInstance().getSection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Name of the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for section to set. + * @return This builder for chaining. + */ + public Builder setSectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object summary_ = ""; + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +         * Output only. Summary text for the section.
                                                                                                                                  +         * 
                                                                                                                                  + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + private static final com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse + .Summary.SummarySection + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection(); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarySection 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.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int TEXT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -468,6 +1444,110 @@ public java.lang.String getTextSectionsOrThrow(java.lang.String key) { return map.get(key); } + public static final int SORTED_TEXT_SECTIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + sortedTextSections_; + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList() { + return sortedTextSections_; + } + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList() { + return sortedTextSections_; + } + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public int getSortedTextSectionsCount() { + return sortedTextSections_.size(); + } + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getSortedTextSections(int index) { + return sortedTextSections_.get(index); + } + + /** + * + * + *
                                                                                                                                  +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +     * of the sections in the generator.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index) { + return sortedTextSections_.get(index); + } + public static final int ANSWER_RECORD_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -603,6 +1683,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, baselineModelVersion_); } + for (int i = 0; i < sortedTextSections_.size(); i++) { + output.writeMessage(6, sortedTextSections_.get(i)); + } getUnknownFields().writeTo(output); } @@ -631,6 +1714,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, baselineModelVersion_); } + for (int i = 0; i < sortedTextSections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, sortedTextSections_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -651,6 +1738,7 @@ public boolean equals(final java.lang.Object obj) { if (!getText().equals(other.getText())) return false; if (!internalGetTextSections().equals(other.internalGetTextSections())) return false; + if (!getSortedTextSectionsList().equals(other.getSortedTextSectionsList())) return false; if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; if (!getBaselineModelVersion().equals(other.getBaselineModelVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -670,6 +1758,10 @@ public int hashCode() { hash = (37 * hash) + TEXT_SECTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetTextSections().hashCode(); } + if (getSortedTextSectionsCount() > 0) { + hash = (37 * hash) + SORTED_TEXT_SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSortedTextSectionsList().hashCode(); + } hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; hash = (53 * hash) + getAnswerRecord().hashCode(); hash = (37 * hash) + BASELINE_MODEL_VERSION_FIELD_NUMBER; @@ -849,6 +1941,13 @@ public Builder clear() { bitField0_ = 0; text_ = ""; internalGetMutableTextSections().clear(); + if (sortedTextSectionsBuilder_ == null) { + sortedTextSections_ = java.util.Collections.emptyList(); + } else { + sortedTextSections_ = null; + sortedTextSectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); answerRecord_ = ""; baselineModelVersion_ = ""; return this; @@ -884,6 +1983,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary result = new com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary( this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -891,6 +1991,19 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary result) { + if (sortedTextSectionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sortedTextSections_ = java.util.Collections.unmodifiableList(sortedTextSections_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sortedTextSections_ = sortedTextSections_; + } else { + result.sortedTextSections_ = sortedTextSectionsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary result) { int from_bitField0_ = bitField0_; @@ -901,10 +2014,10 @@ private void buildPartial0( result.textSections_ = internalGetTextSections(); result.textSections_.makeImmutable(); } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.answerRecord_ = answerRecord_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.baselineModelVersion_ = baselineModelVersion_; } } @@ -935,14 +2048,41 @@ public Builder mergeFrom( } internalGetMutableTextSections().mergeFrom(other.internalGetTextSections()); bitField0_ |= 0x00000002; + if (sortedTextSectionsBuilder_ == null) { + if (!other.sortedTextSections_.isEmpty()) { + if (sortedTextSections_.isEmpty()) { + sortedTextSections_ = other.sortedTextSections_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.addAll(other.sortedTextSections_); + } + onChanged(); + } + } else { + if (!other.sortedTextSections_.isEmpty()) { + if (sortedTextSectionsBuilder_.isEmpty()) { + sortedTextSectionsBuilder_.dispose(); + sortedTextSectionsBuilder_ = null; + sortedTextSections_ = other.sortedTextSections_; + bitField0_ = (bitField0_ & ~0x00000004); + sortedTextSectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSortedTextSectionsFieldBuilder() + : null; + } else { + sortedTextSectionsBuilder_.addAllMessages(other.sortedTextSections_); + } + } + } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getBaselineModelVersion().isEmpty()) { baselineModelVersion_ = other.baselineModelVersion_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -980,7 +2120,7 @@ public Builder mergeFrom( case 26: { answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -998,9 +2138,26 @@ public Builder mergeFrom( case 42: { baselineModelVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse + .Summary.SummarySection.parser(), + extensionRegistry); + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(m); + } else { + sortedTextSectionsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1320,6 +2477,490 @@ public Builder putAllTextSections(java.util.Map + sortedTextSections_ = java.util.Collections.emptyList(); + + private void ensureSortedTextSectionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sortedTextSections_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection>(sortedTextSections_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + sortedTextSectionsBuilder_; + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList() { + if (sortedTextSectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sortedTextSections_); + } else { + return sortedTextSectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public int getSortedTextSectionsCount() { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.size(); + } else { + return sortedTextSectionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getSortedTextSections(int index) { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.get(index); + } else { + return sortedTextSectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder setSortedTextSections( + int index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.set(index, value); + onChanged(); + } else { + sortedTextSectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder setSortedTextSections( + int index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.set(index, builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(value); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + int index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(index, value); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + int index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(index, builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addAllSortedTextSections( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + values) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sortedTextSections_); + onChanged(); + } else { + sortedTextSectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder clearSortedTextSections() { + if (sortedTextSectionsBuilder_ == null) { + sortedTextSections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sortedTextSectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder removeSortedTextSections(int index) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.remove(index); + onChanged(); + } else { + sortedTextSectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + getSortedTextSectionsBuilder(int index) { + return internalGetSortedTextSectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index) { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.get(index); + } else { + return sortedTextSectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList() { + if (sortedTextSectionsBuilder_ != null) { + return sortedTextSectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sortedTextSections_); + } + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + addSortedTextSectionsBuilder() { + return internalGetSortedTextSectionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + addSortedTextSectionsBuilder(int index) { + return internalGetSortedTextSectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                  +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                  +       * of the sections in the generator.
                                                                                                                                  +       * 
                                                                                                                                  + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder> + getSortedTextSectionsBuilderList() { + return internalGetSortedTextSectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + internalGetSortedTextSectionsFieldBuilder() { + if (sortedTextSectionsBuilder_ == null) { + sortedTextSectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder>( + sortedTextSections_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sortedTextSections_ = null; + } + return sortedTextSectionsBuilder_; + } + private java.lang.Object answerRecord_ = ""; /** @@ -1388,7 +3029,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1407,7 +3048,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1431,7 +3072,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1504,7 +3145,7 @@ public Builder setBaselineModelVersion(java.lang.String value) { throw new NullPointerException(); } baselineModelVersion_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1523,7 +3164,7 @@ public Builder setBaselineModelVersion(java.lang.String value) { */ public Builder clearBaselineModelVersion() { baselineModelVersion_ = getDefaultInstance().getBaselineModelVersion(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1547,7 +3188,7 @@ public Builder setBaselineModelVersionBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); baselineModelVersion_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java index 12bce9231114..d33f54c3a91c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java @@ -254,6 +254,9 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TOOL(1), + CES_TOOL(11), + CES_TOOLSET(12), + CES_APP(8), SOURCE_NOT_SET(0); private final int value; @@ -275,6 +278,12 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return TOOL; + case 11: + return CES_TOOL; + case 12: + return CES_TOOLSET; + case 8: + return CES_APP; case 0: return SOURCE_NOT_SET; default: @@ -376,6 +385,261 @@ public com.google.protobuf.ByteString getToolBytes() { } } + public static final int CES_TOOL_FIELD_NUMBER = 11; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + public boolean hasCesTool() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + 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(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_TOOLSET_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + public boolean hasCesToolset() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + 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(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_APP_FIELD_NUMBER = 8; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + public boolean hasCesApp() { + return sourceCase_ == 8; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 8) { + ref = source_; + } + 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(); + if (sourceCase_ == 8) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 8) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 8) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TOOL_DISPLAY_NAME_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -772,12 +1036,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.dialogflow.v2beta1.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } + if (sourceCase_ == 8) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, source_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, toolDisplayName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayDetails_)) { com.google.protobuf.GeneratedMessage.writeString(output, 10, toolDisplayDetails_); } + if (sourceCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, source_); + } + if (sourceCase_ == 12) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, source_); + } getUnknownFields().writeTo(output); } @@ -806,12 +1079,21 @@ public int getSerializedSize() { != com.google.cloud.dialogflow.v2beta1.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } + if (sourceCase_ == 8) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, source_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, toolDisplayName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayDetails_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, toolDisplayDetails_); } + if (sourceCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, source_); + } + if (sourceCase_ == 12) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -846,6 +1128,15 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTool().equals(other.getTool())) return false; break; + case 11: + if (!getCesTool().equals(other.getCesTool())) return false; + break; + case 12: + if (!getCesToolset().equals(other.getCesToolset())) return false; + break; + case 8: + if (!getCesApp().equals(other.getCesApp())) return false; + break; case 0: default: } @@ -883,6 +1174,18 @@ public int hashCode() { hash = (37 * hash) + TOOL_FIELD_NUMBER; hash = (53 * hash) + getTool().hashCode(); break; + case 11: + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + break; + case 12: + hash = (37 * hash) + CES_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getCesToolset().hashCode(); + break; + case 8: + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + break; case 0: default: } @@ -1090,29 +1393,29 @@ public com.google.cloud.dialogflow.v2beta1.ToolCall buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolCall result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.toolDisplayName_ = toolDisplayName_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.toolDisplayDetails_ = toolDisplayDetails_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.action_ = action_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.inputParameters_ = inputParametersBuilder_ == null ? inputParameters_ : inputParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.answerRecord_ = answerRecord_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.state_ = state_; } result.bitField0_ |= to_bitField0_; @@ -1137,17 +1440,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCall other) { if (other == com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance()) return this; if (!other.getToolDisplayName().isEmpty()) { toolDisplayName_ = other.toolDisplayName_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getToolDisplayDetails().isEmpty()) { toolDisplayDetails_ = other.toolDisplayDetails_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAction().isEmpty()) { action_ = other.action_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasInputParameters()) { @@ -1158,180 +1461,711 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCall other) { } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } - switch (other.getSourceCase()) { - case TOOL: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + switch (other.getSourceCase()) { + case TOOL: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOL: + { + sourceCase_ = 11; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOLSET: + { + sourceCase_ = 12; + source_ = other.source_; + onChanged(); + break; + } + case CES_APP: + { + sourceCase_ = 8; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_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: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 18: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 34 + case 50: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 56 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 8; + source_ = s; + break; + } // case 66 + case 74: + { + toolDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 74 + case 82: + { + toolDisplayDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 11; + source_ = s; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 12; + source_ = s; + break; + } // case 98 + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  +     * with this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return sourceCase_ == 1; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  +     * with this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  +     * with this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  +     * with this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  +     * with this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  +     * with this call. Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + @java.lang.Override + public boolean hasCesTool() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + if (sourceCase_ == 11) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + @java.lang.Override + public boolean hasCesToolset() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + @java.lang.Override + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; } + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - @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(); + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolset(java.lang.String value) { + if (value == null) { + throw new 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(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 18: - { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 50: - { - answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 74: - { - toolDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 82: - { - toolDisplayDetails_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 82 - 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 + sourceCase_ = 12; + source_ = value; + onChanged(); return this; } - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesToolset() { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 12; + source_ = value; onChanged(); return this; } - private int bitField0_; - /** * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  -     * with this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return Whether the tool field is set. + * @return Whether the cesApp field is set. */ @java.lang.Override - public boolean hasTool() { - return sourceCase_ == 1; + public boolean hasCesApp() { + return sourceCase_ == 8; } /** * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  -     * with this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The tool. + * @return The cesApp. */ @java.lang.Override - public java.lang.String getTool() { + public java.lang.String getCesApp() { java.lang.Object ref = ""; - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { ref = source_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { source_ = s; } return s; @@ -1344,27 +2178,27 @@ public java.lang.String getTool() { * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  -     * with this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The bytes for tool. + * @return The bytes for cesApp. */ @java.lang.Override - public com.google.protobuf.ByteString getToolBytes() { + public com.google.protobuf.ByteString getCesAppBytes() { java.lang.Object ref = ""; - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { ref = source_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { source_ = b; } return b; @@ -1377,23 +2211,23 @@ public com.google.protobuf.ByteString getToolBytes() { * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  -     * with this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The tool to set. + * @param value The cesApp to set. * @return This builder for chaining. */ - public Builder setTool(java.lang.String value) { + public Builder setCesApp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceCase_ = 1; + sourceCase_ = 8; source_ = value; onChanged(); return this; @@ -1403,19 +2237,19 @@ public Builder setTool(java.lang.String value) { * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  -     * with this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ - public Builder clearTool() { - if (sourceCase_ == 1) { + public Builder clearCesApp() { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; onChanged(); @@ -1427,24 +2261,24 @@ public Builder clearTool() { * * *
                                                                                                                                  -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                  -     * with this call. Format:
                                                                                                                                  -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                        * 
                                                                                                                                  * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The bytes for tool to set. + * @param value The bytes for cesApp to set. * @return This builder for chaining. */ - public Builder setToolBytes(com.google.protobuf.ByteString value) { + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceCase_ = 1; + sourceCase_ = 8; source_ = value; onChanged(); return this; @@ -1515,7 +2349,7 @@ public Builder setToolDisplayName(java.lang.String value) { throw new NullPointerException(); } toolDisplayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1533,7 +2367,7 @@ public Builder setToolDisplayName(java.lang.String value) { */ public Builder clearToolDisplayName() { toolDisplayName_ = getDefaultInstance().getToolDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1556,7 +2390,7 @@ public Builder setToolDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); toolDisplayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1626,7 +2460,7 @@ public Builder setToolDisplayDetails(java.lang.String value) { throw new NullPointerException(); } toolDisplayDetails_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1644,7 +2478,7 @@ public Builder setToolDisplayDetails(java.lang.String value) { */ public Builder clearToolDisplayDetails() { toolDisplayDetails_ = getDefaultInstance().getToolDisplayDetails(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1667,7 +2501,7 @@ public Builder setToolDisplayDetailsBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); toolDisplayDetails_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1737,7 +2571,7 @@ public Builder setAction(java.lang.String value) { throw new NullPointerException(); } action_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1755,7 +2589,7 @@ public Builder setAction(java.lang.String value) { */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -1778,7 +2612,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); action_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1803,7 +2637,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { * @return Whether the inputParameters field is set. */ public boolean hasInputParameters() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1847,7 +2681,7 @@ public Builder setInputParameters(com.google.protobuf.Struct value) { } else { inputParametersBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1868,7 +2702,7 @@ public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForV } else { inputParametersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1885,7 +2719,7 @@ public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForV */ public Builder mergeInputParameters(com.google.protobuf.Struct value) { if (inputParametersBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000080) != 0) && inputParameters_ != null && inputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { getInputParametersBuilder().mergeFrom(value); @@ -1896,7 +2730,7 @@ public Builder mergeInputParameters(com.google.protobuf.Struct value) { inputParametersBuilder_.mergeFrom(value); } if (inputParameters_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -1913,7 +2747,7 @@ public Builder mergeInputParameters(com.google.protobuf.Struct value) { * */ public Builder clearInputParameters() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); inputParameters_ = null; if (inputParametersBuilder_ != null) { inputParametersBuilder_.dispose(); @@ -1934,7 +2768,7 @@ public Builder clearInputParameters() { * */ public com.google.protobuf.Struct.Builder getInputParametersBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return internalGetInputParametersFieldBuilder().getBuilder(); } @@ -2007,7 +2841,7 @@ public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2053,7 +2887,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2075,7 +2909,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2093,7 +2927,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2104,7 +2938,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2122,7 +2956,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2144,7 +2978,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2263,7 +3097,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2281,7 +3115,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2304,7 +3138,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2345,7 +3179,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2390,7 +3224,7 @@ public Builder setState(com.google.cloud.dialogflow.v2beta1.ToolCall.State value if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; state_ = value.getNumber(); onChanged(); return this; @@ -2410,7 +3244,7 @@ public Builder setState(com.google.cloud.dialogflow.v2beta1.ToolCall.State value * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); state_ = 0; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java index 78f2ffbde798..2bba3db7fcb4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java @@ -77,6 +77,159 @@ public interface ToolCallOrBuilder */ com.google.protobuf.ByteString getToolBytes(); + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + boolean hasCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + boolean hasCesToolset(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + java.lang.String getCesToolset(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + com.google.protobuf.ByteString getCesToolsetBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + boolean hasCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java index 7763302c3fef..5b7a57cb8179 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java @@ -61,49 +61,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "/google/cloud/dialogflow/v2beta1/tool_call.proto\022\037google.cloud.dialogflow.v2bet" + "\n/google/cloud/dialogflow/v2beta1/tool_c" + + "all.proto\022\037google.cloud.dialogflow.v2bet" + "a1\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\032\034google/protobuf/" - + "struct.proto\032\037google/protobuf/timestamp.proto\"\272\003\n" - + "\010ToolCall\0226\n" - + "\004tool\030\001 \001(\tB&\340A\001\372A \n" - + "\036dialogflow.googleapis.com/ToolH\000\022\036\n" - + "\021tool_display_name\030\t \001(\tB\003\340A\001\022!\n" - + "\024tool_display_details\030\n" - + " \001(\tB\003\340A\001\022\023\n" - + "\006action\030\002 \001(\tB\003\340A\001\0226\n" - + "\020input_parameters\030\003" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0224\n" - + "\013create_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\r" - + "answer_record\030\006 \001(\tB\003\340A\001\022C\n" - + "\005state\030\007 \001(\0162/.go" - + "ogle.cloud.dialogflow.v2beta1.ToolCall.StateB\003\340A\003\"E\n" - + "\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\r\n" - + "\tTRIGGERED\020\001\022\026\n" - + "\022NEEDS_CONFIRMATION\020\002B\010\n" - + "\006source\"\324\002\n" - + "\016ToolCallResult\0226\n" - + "\004tool\030\001 \001(\tB&\340A\001\372A \n" - + "\036dialogflow.googleapis.com/ToolH\000\022\023\n" - + "\006action\030\002 \001(\tB\003\340A\001\022F\n" - + "\005error\030\003 \001(" - + "\01325.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorH\001\022\025\n" - + "\013raw_content\030\005 \001(\014H\001\022\021\n" - + "\007content\030\006 \001(\tH\001\0224\n" - + "\013create_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\r" - + "answer_record\030\t \001(\tB\003\340A\001\032\035\n" - + "\005Error\022\024\n" - + "\007message\030\001 \001(\tB\003\340A\001B\010\n" - + "\006sourceB\010\n" - + "\006resultB\242\001\n" - + "#com.google.cloud.dialogflow.v2beta1B\r" - + "ToolCallProtoP\001ZCcloud.google.com/go/dialogfl" - + "ow/apiv2beta1/dialogflowpb;dialogflowpb\242" - + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006proto3" + + "struct.proto\032\037google/protobuf/timestamp." + + "proto\"\335\004\n\010ToolCall\0226\n\004tool\030\001 \001(\tB&\340A\001\372A " + + "\n\036dialogflow.googleapis.com/ToolH\000\0223\n\010ce" + + "s_tool\030\013 \001(\tB\037\340A\001\372A\031\n\027ces.googleapis.com" + + "/ToolH\000\0229\n\013ces_toolset\030\014 \001(\tB\"\340A\001\372A\034\n\032ce" + + "s.googleapis.com/ToolsetH\000\0221\n\007ces_app\030\010 " + + "\001(\tB\036\340A\001\372A\030\n\026ces.googleapis.com/AppH\000\022\036\n" + + "\021tool_display_name\030\t \001(\tB\003\340A\001\022!\n\024tool_di" + + "splay_details\030\n \001(\tB\003\340A\001\022\023\n\006action\030\002 \001(\t" + + "B\003\340A\001\0226\n\020input_parameters\030\003 \001(\0132\027.google" + + ".protobuf.StructB\003\340A\001\0224\n\013create_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\ra" + + "nswer_record\030\006 \001(\tB\003\340A\001\022C\n\005state\030\007 \001(\0162/" + + ".google.cloud.dialogflow.v2beta1.ToolCal" + + "l.StateB\003\340A\003\"E\n\005State\022\025\n\021STATE_UNSPECIFI" + + "ED\020\000\022\r\n\tTRIGGERED\020\001\022\026\n\022NEEDS_CONFIRMATIO" + + "N\020\002B\010\n\006source\"\367\003\n\016ToolCallResult\0226\n\004tool" + + "\030\001 \001(\tB&\340A\001\372A \n\036dialogflow.googleapis.co" + + "m/ToolH\000\0223\n\010ces_tool\030\014 \001(\tB\037\340A\001\372A\031\n\027ces." + + "googleapis.com/ToolH\000\0229\n\013ces_toolset\030\r \001" + + "(\tB\"\340A\001\372A\034\n\032ces.googleapis.com/ToolsetH\000" + + "\0221\n\007ces_app\030\013 \001(\tB\036\340A\001\372A\030\n\026ces.googleapi" + + "s.com/AppH\000\022\023\n\006action\030\002 \001(\tB\003\340A\001\022F\n\005erro" + + "r\030\003 \001(\01325.google.cloud.dialogflow.v2beta" + + "1.ToolCallResult.ErrorH\001\022\025\n\013raw_content\030" + + "\005 \001(\014H\001\022\021\n\007content\030\006 \001(\tH\001\0224\n\013create_tim" + + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022\032\n\ranswer_record\030\t \001(\tB\003\340A\001\032\035\n\005Error\022\024\n" + + "\007message\030\001 \001(\tB\003\340A\001B\010\n\006sourceB\010\n\006resultB" + + "\242\001\n#com.google.cloud.dialogflow.v2beta1B" + + "\rToolCallProtoP\001ZCcloud.google.com/go/di" + + "alogflow/apiv2beta1/dialogflowpb;dialogf" + + "lowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2B" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -121,6 +116,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2beta1_ToolCall_descriptor, new java.lang.String[] { "Tool", + "CesTool", + "CesToolset", + "CesApp", "ToolDisplayName", "ToolDisplayDetails", "Action", @@ -137,6 +135,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor, new java.lang.String[] { "Tool", + "CesTool", + "CesToolset", + "CesApp", "Action", "Error", "RawContent", diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java index f2599122a987..8072aaa750c3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java @@ -690,6 +690,9 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TOOL(1), + CES_TOOL(12), + CES_TOOLSET(13), + CES_APP(11), SOURCE_NOT_SET(0); private final int value; @@ -711,6 +714,12 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return TOOL; + case 12: + return CES_TOOL; + case 13: + return CES_TOOLSET; + case 11: + return CES_APP; case 0: return SOURCE_NOT_SET; default: @@ -865,6 +874,261 @@ public com.google.protobuf.ByteString getToolBytes() { } } + public static final int CES_TOOL_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + public boolean hasCesTool() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + 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(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_TOOLSET_FIELD_NUMBER = 13; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + public boolean hasCesToolset() { + return sourceCase_ == 13; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + 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(); + if (sourceCase_ == 13) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 13) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_APP_FIELD_NUMBER = 11; + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + public boolean hasCesApp() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + 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(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ACTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -1224,6 +1488,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, answerRecord_); } + if (sourceCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, source_); + } + if (sourceCase_ == 12) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, source_); + } + if (sourceCase_ == 13) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, source_); + } getUnknownFields().writeTo(output); } @@ -1258,6 +1531,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, answerRecord_); } + if (sourceCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, source_); + } + if (sourceCase_ == 12) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, source_); + } + if (sourceCase_ == 13) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1285,6 +1567,15 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTool().equals(other.getTool())) return false; break; + case 12: + if (!getCesTool().equals(other.getCesTool())) return false; + break; + case 13: + if (!getCesToolset().equals(other.getCesToolset())) return false; + break; + case 11: + if (!getCesApp().equals(other.getCesApp())) return false; + break; case 0: default: } @@ -1326,6 +1617,18 @@ public int hashCode() { hash = (37 * hash) + TOOL_FIELD_NUMBER; hash = (53 * hash) + getTool().hashCode(); break; + case 12: + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + break; + case 13: + hash = (37 * hash) + CES_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getCesToolset().hashCode(); + break; + case 11: + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + break; case 0: default: } @@ -1545,15 +1848,15 @@ public com.google.cloud.dialogflow.v2beta1.ToolCallResult buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolCallResult result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.action_ = action_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.answerRecord_ = answerRecord_; } result.bitField0_ |= to_bitField0_; @@ -1584,7 +1887,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCallResult othe return this; if (!other.getAction().isEmpty()) { action_ = other.action_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCreateTime()) { @@ -1592,7 +1895,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCallResult othe } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } switch (other.getSourceCase()) { @@ -1603,6 +1906,27 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCallResult othe onChanged(); break; } + case CES_TOOL: + { + sourceCase_ = 12; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOLSET: + { + sourceCase_ = 13; + source_ = other.source_; + onChanged(); + break; + } + case CES_APP: + { + sourceCase_ = 11; + source_ = other.source_; + onChanged(); + break; + } case SOURCE_NOT_SET: { break; @@ -1667,7 +1991,7 @@ public Builder mergeFrom( case 18: { action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; break; } // case 18 case 26: @@ -1693,15 +2017,36 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; break; } // case 58 case 74: { answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; break; } // case 74 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 11; + source_ = s; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 12; + source_ = s; + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 13; + source_ = s; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1912,6 +2257,495 @@ public Builder setToolBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + @java.lang.Override + public boolean hasCesTool() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 12; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES tool name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 12; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + @java.lang.Override + public boolean hasCesToolset() { + return sourceCase_ == 13; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + @java.lang.Override + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 13) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 13) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 13; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesToolset() { + if (sourceCase_ == 13) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES toolset name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 13; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + @java.lang.Override + public boolean hasCesApp() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + @java.lang.Override + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesApp() { + if (sourceCase_ == 11) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. CES app name for this call.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + private java.lang.Object action_ = ""; /** @@ -1977,7 +2811,7 @@ public Builder setAction(java.lang.String value) { throw new NullPointerException(); } action_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1995,7 +2829,7 @@ public Builder setAction(java.lang.String value) { */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2018,7 +2852,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); action_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2481,7 +3315,7 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2527,7 +3361,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2549,7 +3383,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2567,7 +3401,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2578,7 +3412,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2596,7 +3430,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2618,7 +3452,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2737,7 +3571,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2755,7 +3589,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2778,7 +3612,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java index f9552414c612..0c2d1ad5a921 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java @@ -77,6 +77,159 @@ public interface ToolCallResultOrBuilder */ com.google.protobuf.ByteString getToolBytes(); + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + boolean hasCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES tool name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + boolean hasCesToolset(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + java.lang.String getCesToolset(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES toolset name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + com.google.protobuf.ByteString getCesToolsetBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + boolean hasCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                  +   * Optional. CES app name for this call.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetProto.java new file mode 100644 index 000000000000..acb1bd045756 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetProto.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public final class ToolsetProto extends com.google.protobuf.GeneratedFile { + private ToolsetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/dialogflow/v2beta1/toolse" + + "t.proto\022\037google.cloud.dialogflow.v2beta1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032*google/cloud/dialo" + + "gflow/v2beta1/tool.proto\"\303\001\n\013ToolsetTool" + + "\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.googleapi" + + "s.com/Toolset\022\031\n\014operation_id\030\002 \001(\tB\003\340A\001" + + "\022d\n\030confirmation_requirement\030\003 \001(\0162=.goo" + + "gle.cloud.dialogflow.v2beta1.Tool.Confir" + + "mationRequirementB\003\340A\001B\207\002\n#com.google.cl" + + "oud.dialogflow.v2beta1B\014ToolsetProtoP\001ZC" + + "cloud.google.com/go/dialogflow/apiv2beta" + + "1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Googl" + + "e.Cloud.Dialogflow.V2Beta1\352Ac\n\032ces.googl" + + "eapis.com/Toolset\022Eprojects/{project}/lo" + + "cations/{location}/apps/{app}/toolsets/{" + + "toolset}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor, + new java.lang.String[] { + "Toolset", "OperationId", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetTool.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetTool.java new file mode 100644 index 000000000000..a89b780e8332 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetTool.java @@ -0,0 +1,1004 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                  + * A tool that is created from a toolset.
                                                                                                                                  + * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolsetTool} + */ +@com.google.protobuf.Generated +public final class ToolsetTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ToolsetTool) + ToolsetToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetTool"); + } + + // Use ToolsetTool.newBuilder() to construct. + private ToolsetTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolsetTool() { + toolset_ = ""; + operationId_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolsetTool.class, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
                                                                                                                                  +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + 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(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationId_ = ""; + + /** + * + * + *
                                                                                                                                  +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +   * must be present in the toolset's definition.
                                                                                                                                  +   * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + 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(); + operationId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                  +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +   * must be present in the toolset's definition.
                                                                                                                                  +   * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 3; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, operationId_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, operationId_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, confirmationRequirement_); + } + 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.dialogflow.v2beta1.ToolsetTool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ToolsetTool other = + (com.google.cloud.dialogflow.v2beta1.ToolsetTool) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getOperationId().equals(other.getOperationId())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) 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) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool 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.dialogflow.v2beta1.ToolsetTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool 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.dialogflow.v2beta1.ToolsetTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.dialogflow.v2beta1.ToolsetTool 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                  +   * A tool that is created from a toolset.
                                                                                                                                  +   * 
                                                                                                                                  + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolsetTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ToolsetTool) + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolsetTool.class, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ToolsetTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + operationId_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ToolsetTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool build() { + com.google.cloud.dialogflow.v2beta1.ToolsetTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool buildPartial() { + com.google.cloud.dialogflow.v2beta1.ToolsetTool result = + new com.google.cloud.dialogflow.v2beta1.ToolsetTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolsetTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ToolsetTool) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ToolsetTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolsetTool other) { + if (other == com.google.cloud.dialogflow.v2beta1.ToolsetTool.getDefaultInstance()) + return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + 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: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + confirmationRequirement_ = input.readEnum(); + 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 toolset_ = ""; + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +     * Format:
                                                                                                                                  +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +     * must be present in the toolset's definition.
                                                                                                                                  +     * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                  +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +     * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000004); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ToolsetTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ToolsetTool) + private static final com.google.cloud.dialogflow.v2beta1.ToolsetTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ToolsetTool(); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolsetTool 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.dialogflow.v2beta1.ToolsetTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetToolOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetToolOrBuilder.java new file mode 100644 index 000000000000..2d1650aa1fb8 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetToolOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface ToolsetToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ToolsetTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                  +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
                                                                                                                                  +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                  +   * Format:
                                                                                                                                  +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +   * must be present in the toolset's definition.
                                                                                                                                  +   * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + java.lang.String getOperationId(); + + /** + * + * + *
                                                                                                                                  +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                  +   * must be present in the toolset's definition.
                                                                                                                                  +   * 
                                                                                                                                  + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString getOperationIdBytes(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                  +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                  +   * 
                                                                                                                                  + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto index 221685a1c6a0..12d1b8cb61ac 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto index b5cd1cea028e..2e8165a3a49a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto index 491947ad1f02..5fd9b776bfe5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto index 52bbce5e2d24..be89c0b9b754 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto new file mode 100644 index 000000000000..7ca2c052537e --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto @@ -0,0 +1,46 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "CesAppProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/App" + pattern: "projects/{project}/locations/{location}/apps/{app}" +}; + +// Spec of CES app that the generator can choose from. +message CesAppSpec { + // Optional. Format: `projects//locations//apps/`. + string ces_app = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Optional. Indicates whether the app requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_tool.proto new file mode 100644 index 000000000000..109d04a0b5bf --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_tool.proto @@ -0,0 +1,42 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "CesToolProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Spec of CES tool that the generator can choose from. +message CesToolSpec { + // Optional. Format: `projects//locations//apps//tools/`. + string ces_tool = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. Indicates whether the tool requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto index 1e2b00827aff..50b73de943a5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto index ef9a92b62795..baf437a5b5e1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -382,6 +382,37 @@ message Conversation { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Represents the context of a generator. + message GeneratorContext { + // The available generator types. + enum GeneratorType { + // Unspecified generator type. + GENERATOR_TYPE_UNSPECIFIED = 0; + + // Free form generator type. + FREE_FORM = 1; + + // Agent coaching generator type. + AGENT_COACHING = 2; + + // Summarization generator type. + SUMMARIZATION = 3; + + // Translation generator type. + TRANSLATION = 4; + + // Agent feedback generator type. + AGENT_FEEDBACK = 5; + + // Customer message generation generator type. + CUSTOMER_MESSAGE_GENERATION = 6; + } + + // Output only. The type of the generator. + GeneratorType generator_type = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Output only. Identifier. The unique identifier of this conversation. // Format: `projects//locations//conversations/`. @@ -441,9 +472,22 @@ message Conversation { TelephonyConnectionInfo telephony_connection_info = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Output only. The initial conversation profile to be used to + // configure this conversation, which is a copy of the conversation profile + // config read at conversation creation time. + ConversationProfile initial_conversation_profile = 15 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + // Output only. The context reference updates provided by external systems. map ingested_context_references = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A map with generator name as key and generator context as + // value. + map initial_generator_contexts = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents a phone number for telephony integration. It allows for connecting @@ -711,6 +755,15 @@ message SuggestConversationSummaryRequest { message SuggestConversationSummaryResponse { // Generated summary for a conversation. message Summary { + // A component of the generated summary. + message SummarySection { + // Output only. Name of the section. + string section = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary text for the section. + string summary = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The summary content that is concatenated into one string. string text = 1; @@ -719,6 +772,10 @@ message SuggestConversationSummaryResponse { // specific format for the key or value. map text_sections = 4; + // Same as text_sections, but in an order that is consistent with the order + // of the sections in the generator. + repeated SummarySection sorted_text_sections = 6; + // The name of the answer record. Format: // "projects//answerRecords/" string answer_record = 3 [(google.api.resource_reference) = { @@ -1173,6 +1230,36 @@ message SearchKnowledgeRequest { bool exact_search = 14 [(google.api.field_behavior) = OPTIONAL]; } +// Debug information related to SearchKnowledge feature. +message SearchKnowledgeDebugInfo { + // Configured behaviors for SearchKnowledge. + message SearchKnowledgeBehavior { + // Whether data store agent rewriter was turned on for the request. + bool answer_generation_rewriter_on = 1; + + // Whether end_user_metadata is included in the data store agent call. + bool end_user_metadata_included = 2; + + // This field indicates whether third party connectors are enabled for the + // project. Note that this field only indicates if the project is + // allowlisted for connectors. + bool third_party_connector_allowed = 4; + } + + // Response reason from datastore which indicates data serving status or + // answer quality degradation. + DatastoreResponseReason datastore_response_reason = 1; + + // Configured behaviors for SearchKnowledge. + SearchKnowledgeBehavior search_knowledge_behavior = 2; + + // Information about parameters ingested for search knowledge. + IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + + // The latency of the service. + ServiceLatency service_latency = 4; +} + // The response message for // [Conversations.SearchKnowledge][google.cloud.dialogflow.v2beta1.Conversations.SearchKnowledge]. message SearchKnowledgeResponse { @@ -1182,6 +1269,9 @@ message SearchKnowledgeResponse { // The rewritten query used to search knowledge. string rewritten_query = 3; + + // Debug info for SearchKnowledge. + SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; } // Represents a SearchKnowledge answer. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto index 1d15f22172b9..b4a23633c8af 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto index 2da9d2d6c146..68a5f84631a3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -218,6 +218,10 @@ message ConversationProfile { google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Whether to use the bidi streaming API in telephony integration + // for the conversation profile. + bool use_bidi_streaming = 23 [(google.api.field_behavior) = OPTIONAL]; + // Configuration for an automated agent to use with this profile. AutomatedAgentConfig automated_agent_config = 3; @@ -695,6 +699,31 @@ message HumanAgentAssistantConfig { // If Pub/Sub notification is configured, result will be in // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload]. bool enable_sentiment_analysis = 3; + + // Optional. Enables sentiment analysis for audio input and conversation + // messages. If unspecified, defaults to false. If this flag is set to true, + // other 'enable_sentiment_analysis' fields will be ignored. + // + // Sentiment analysis inspects user input and identifies the prevailing + // subjective opinion, especially to determine a user's attitude as + // positive, negative, or neutral. + // https://cloud.google.com/natural-language/docs/basics#sentiment_analysis + // For + // [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] + // method, result will be in + // [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message]. + // For + // [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] + // method, result will be in + // [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message] + // For + // [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages] + // method, result will be in + // [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages] + // If Pub/Sub notification is configured, result will be in + // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload]. + bool enable_sentiment_analysis_v3 = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Pub/Sub topic on which to publish new agent assistant events. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto index ffdf4bb4789a..6404b7c7eb5b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/encryption_spec.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/encryption_spec.proto index f947fb589586..63e033ae6e28 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/encryption_spec.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/encryption_spec.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto index 5b0a3180cb0a..7780972dfc4b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto index f059c0e04a41..bf424e39ffc6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto index a303463aab32..3819080b1838 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto index 1772e27a7825..335839f91337 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto index d4128e60a9a4..c6dda7baae76 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,10 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto"; +import "google/cloud/dialogflow/v2beta1/ces_app.proto"; +import "google/cloud/dialogflow/v2beta1/ces_tool.proto"; import "google/cloud/dialogflow/v2beta1/tool_call.proto"; +import "google/cloud/dialogflow/v2beta1/toolset.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -462,6 +465,18 @@ message Generator { // AI Coach feature. SuggestionDedupingConfig suggestion_deduping_config = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES toolset specs that the generator can choose from. + repeated ToolsetTool toolset_tools = 27 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES tool specs that the generator can choose from. + repeated CesToolSpec ces_tool_specs = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES app specs that the generator can choose from. + repeated CesAppSpec ces_app_specs = 29 + [(google.api.field_behavior) = OPTIONAL]; } // Suggestion generated using free form generator. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto index b0fbfe8046e3..767811b2dc30 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto index ca623f503205..7d5558412fe5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto index c6b1df5062ed..289f6f1fe817 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto index 21dd52bca4e7..67f923cbdb2a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto index 82e7e8262b39..03c12f49df85 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index 61cd31352728..b15ae6e9561b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -1859,6 +1859,217 @@ message SuggestKnowledgeAssistResponse { int32 context_size = 3; } +// Debug information related to ingested context reference. +message IngestedContextReferenceDebugInfo { + // Debug information related to ingested parameters from context reference. + message IngestedParameterDebugInfo { + // Enum representing the various states of parameter ingestion. + enum IngestionStatus { + // Default value, indicates that the ingestion status is not specified. + INGESTION_STATUS_UNSPECIFIED = 0; + + // Indicates that the parameter was successfully ingested. + INGESTION_STATUS_SUCCEEDED = 1; + + // Indicates that the parameter was not available for ingestion. + INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + + // Indicates that there was a failure parsing the parameter content. + INGESTION_STATUS_PARSE_FAILED = 3; + + // Indicates that the context reference had an unexpected number of + // content entries as Context reference should only have one entry. + INGESTION_STATUS_INVALID_ENTRY = 4; + + // Indicates that the context reference content was not in the expected + // format (e.g., JSON). + INGESTION_STATUS_INVALID_FORMAT = 5; + + // Indicates that the context reference language does not match the + // conversation language. + INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + } + + // The name of the parameter in the context reference. + string parameter = 1; + + // The ingestion status for this specific parameter. + IngestionStatus ingestion_status = 2; + } + + // Indicates if the project is allowlisted to use ingested context + // reference. + bool project_not_allowlisted = 1; + + // The status of context_reference retrieval from database. + bool context_reference_retrieved = 2; + + // Parameters ingested from the context reference. + repeated IngestedParameterDebugInfo ingested_parameters_debug_info = 3; +} + +// Message to represent the latency of the service. +message ServiceLatency { + // Message to represent the latency of an internal service. + message InternalServiceLatency { + // The name of the internal service. + string step = 1; + + // The latency of the internal service in milliseconds. + float latency_ms = 2; + + // The start time of the internal service. + google.protobuf.Timestamp start_time = 3; + + // The completion time of the internal service. + google.protobuf.Timestamp complete_time = 4; + } + + // A list of internal service latencies. + repeated InternalServiceLatency internal_service_latencies = 1; +} + +// Debug information related to Knowledge Assist feature. +message KnowledgeAssistDebugInfo { + // Reason for query generation failure. + enum QueryGenerationFailureReason { + // Default value. + QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + + // Query generation is blocked due to out of quota. + QUERY_GENERATION_OUT_OF_QUOTA = 1; + + // Call to Knowedge Assist query generation model fails. + QUERY_GENERATION_FAILED = 2; + + // Query generation model decides that there is no new topic change or + // there has been similar queries generated in the previous turns. + QUERY_GENERATION_NO_QUERY_GENERATED = 3; + + // Knowedge Assist generated query is blocked by RAI (Responsible AI). + QUERY_GENERATION_RAI_FAILED = 4; + + // Query generation is blocked by Knowledge Assist conversation profile + // level / agent id level filtering. + NOT_IN_ALLOWLIST = 5; + + // The generated query is blocked due to redaction. + QUERY_GENERATION_QUERY_REDACTED = 6; + + // Query generation failed due to LLM response parse failure. + QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + + // The conversation has no messages. + QUERY_GENERATION_EMPTY_CONVERSATION = 11; + + // The last message in the conversation is empty. + QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + + // The trigger event condition is not met. + // This occurs in the following scenarios: + // 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last + // message is not from the customer. + // 2. The trigger_event is AGENT_MESSAGE, but the last message is not from + // the agent. + QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + } + + // Reason for query categorization failure. + enum QueryCategorizationFailureReason { + // Default value. + QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + + // Vertex AI Search config supplied for query categorization is invalid. + QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + + // Vertex AI Search result does not contain a query categorization result. + QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + + // Vertex AI Search call fails. + QUERY_CATEGORIZATION_FAILED = 3; + } + + // Configured behaviors for Knowedge Assist. + message KnowledgeAssistBehavior { + // Whether data store agent rewriter was turned off for the request. + bool answer_generation_rewriter_on = 1; + + // Whether end_user_metadata is included in the data store agent call. + bool end_user_metadata_included = 2; + + // Whether customers configured to return query only in the + // conversation profile. + bool return_query_only = 4; + + // Whether customers configured to use pubsub to deliver. + bool use_pubsub_delivery = 5; + + // Whether customers configured to disable the synchronous delivery of + // Knowedge Assist response. + bool disable_sync_delivery = 6; + + // Whether previously suggested queries are included in the query generation + // process. + bool previous_queries_included = 7; + + // Translated message is included in query generation process. + bool use_translated_message = 8; + + // Safety filter is adjusted by user. + bool use_custom_safety_filter_level = 9; + + // Conversation transcript has mixed languages. + bool conversation_transcript_has_mixed_languages = 10; + + // Whether the agent language from the translation generator mismatches the + // end-user language. + bool query_generation_agent_language_mismatch = 11; + + // Whether the end-user language from the translation generator mismatches + // the end-user language. + bool query_generation_end_user_language_mismatch = 12; + + // This field indicates whether third party connectors are enabled for the + // project. + bool third_party_connector_allowed = 13; + + // Indicates that the query generation model generated multiple queries. + bool multiple_queries_generated = 14; + + // Indicates that the generated query contains search context. + bool query_contained_search_context = 15; + + // Indicates that invalid items were skipped when parsing the LLM response. + bool invalid_items_query_suggestion_skipped = 16; + + // True if the primary suggested query was redacted and replaced by an + // additional query. + bool primary_query_redacted_and_replaced = 17; + + // The number of search contexts appended to the query. + int32 appended_search_context_count = 18; + } + + // Reason for query generation. + QueryGenerationFailureReason query_generation_failure_reason = 1; + + // Reason for query categorization. + QueryCategorizationFailureReason query_categorization_failure_reason = 2; + + // Response reason from datastore which indicates data serving status or + // answer quality degradation. + DatastoreResponseReason datastore_response_reason = 3; + + // Configured behaviors for Knowedge Assist. + KnowledgeAssistBehavior knowledge_assist_behavior = 4; + + // Information about parameters ingested for search knowledge. + IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + + // The latency of the service. + ServiceLatency service_latency = 6; +} + // Represents a Knowledge Assist answer. message KnowledgeAssistAnswer { // Represents a suggested query. @@ -1923,6 +2134,9 @@ message KnowledgeAssistAnswer { // Format: `projects//locations//answer // Records/`. string answer_record = 3; + + // Debug information related to Knowledge Assist feature. + KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; } // The request message for @@ -2062,3 +2276,37 @@ message BidiStreamingAnalyzeContentResponse { TurnComplete turn_complete = 4; } } + +// Response reason from datastore which indicates data serving status or +// answer quality degradation. +enum DatastoreResponseReason { + // Default value. + DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + + // No specific response reason from datastore. + NONE = 1; + + // Search is blocked due to out of quota. + SEARCH_OUT_OF_QUOTA = 2; + + // Search returns empty results. + SEARCH_EMPTY_RESULTS = 3; + + // Generative AI is disabled. + ANSWER_GENERATION_GEN_AI_DISABLED = 4; + + // Answer generation is blocked due to out of quota. + ANSWER_GENERATION_OUT_OF_QUOTA = 5; + + // Answer generation encounters an error. + ANSWER_GENERATION_ERROR = 6; + + // Answer generation does not have enough information to generate answer. + ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + + // Answer generation is blocked by RAI (Responsible AI) failure. + ANSWER_GENERATION_RAI_FAILED = 8; + + // Answer generation is not grounded on reliable sources. + ANSWER_GENERATION_NOT_GROUNDED = 9; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/phone_number.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/phone_number.proto index 55df47a0c2be..43ecb8e8a068 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/phone_number.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/phone_number.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; @@ -118,6 +119,20 @@ message PhoneNumber { DELETE_REQUESTED = 2; } + // List of SIP trunks that are allowed to make calls to this phone number. + message AllowedSipTrunks { + // List of SIP trunks that are allowed to make calls to this phone number. + // If empty, any SIP trunk is allowed. + repeated string sip_trunks = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SipTrunk" + }]; + + // Optional. List of GTP carrier IDs allowed to make calls to this phone + // number. Used for private interconnects where standard SIP trunks aren't + // applicable. + repeated string carrier_ids = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. The unique identifier of this phone number. // Required for // [PhoneNumbers.UpdatePhoneNumber][google.cloud.dialogflow.v2beta1.PhoneNumbers.UpdatePhoneNumber] @@ -144,6 +159,17 @@ message PhoneNumber { // calls and can be removed completely within 30 days. LifecycleState lifecycle_state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Restricts inbound calls + oneof inbound_restriction { + // Optional. Only allow calls from the specified SIP trunks. + AllowedSipTrunks allowed_sip_trunks = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. The time at which this resource will be purged. + google.protobuf.Timestamp purge_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request message for diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index f23e915d499c..159b2c9f0818 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto index b36ab3d0ea93..dd6c640653ae 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/sip_trunk.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/sip_trunk.proto index 0700fc72b46b..fbf6d95470dc 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/sip_trunk.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/sip_trunk.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto index f638695b5b56..9d6570261f50 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto index 5086b9d8b70c..fd2e16f25fb0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,6 +53,30 @@ message ToolCall { type: "dialogflow.googleapis.com/Tool" } ]; + + // Optional. CES tool name for this call. + // Format: + // `projects//locations//apps//tools/`. + string ces_tool = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. CES toolset name for this call. + // Format: + // `projects//locations//apps//toolsets/ToolsetID>`. + string ces_toolset = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. CES app name for this call. + // Format: + // `projects//locations//apps/`. + string ces_app = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; } // Optional. A human readable short name of the tool, to be shown on the UI. @@ -98,6 +122,30 @@ message ToolCallResult { type: "dialogflow.googleapis.com/Tool" } ]; + + // Optional. CES tool name for this call. + // Format: + // `projects//locations//apps//tools/`. + string ces_tool = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. CES toolset name for this call. + // Format: + // `projects//locations//apps//toolsets/ToolsetID>`. + string ces_toolset = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. CES app name for this call. + // Format: + // `projects//locations//apps/`. + string ces_app = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; } // Optional. The name of the tool's action associated with this call. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/toolset.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/toolset.proto new file mode 100644 index 000000000000..cd2859d6662d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/toolset.proto @@ -0,0 +1,51 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "ToolsetProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/Toolset" + pattern: "projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}" +}; + +// A tool that is created from a toolset. +message ToolsetTool { + // Required. The name of the toolset to retrieve the schema for. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + string toolset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. The operationId field of the OpenAPI endpoint. The operationId + // must be present in the toolset's definition. + string operation_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether the tool requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto index dea9e795b11f..0ac66e39f871 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto index ac7e6e94bf7a..486e4d65e4fe 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto index a9f5e291bebf..69ec9b2f2bd0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java index c1060cbed10f..c0f0f16f0285 100644 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java @@ -54,6 +54,7 @@ public static void asyncStreamingAnalyzeContent() throws Exception { .setCxParameters(Struct.newBuilder().build()) .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) + .setOutputMultipleUtterances(true) .setEnableDebuggingInfo(true) .build(); bidiStream.send(request); diff --git a/java-netapp/README.md b/java-netapp/README.md index e635d4b85e82..6c87ce97582f 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.66.0' +implementation 'com.google.cloud:google-cloud-netapp:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.67.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-netapp/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java index 356bbe7daabb..df61e87e53c6 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java @@ -314,6 +314,21 @@ * * * + *

                                                                                                                                  EstablishVolumePeering + *

                                                                                                                                  Establish volume peering. This is used to establish cluster and svm peerings between the GCNV and OnPrem clusters. + * + *

                                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • establishVolumePeeringAsync(EstablishVolumePeeringRequest request) + *

                                                                                                                                  + *

                                                                                                                                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • establishVolumePeeringOperationCallable() + *

                                                                                                                                  • establishVolumePeeringCallable() + *

                                                                                                                                  + * + * + * *

                                                                                                                                  ListSnapshots *

                                                                                                                                  Returns descriptions of all snapshots for a volume. * @@ -1315,8 +1330,67 @@ * * * + *

                                                                                                                                  ExecuteOntapPost + *

                                                                                                                                  `ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster. + * + *

                                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • executeOntapPost(ExecuteOntapPostRequest request) + *

                                                                                                                                  + *

                                                                                                                                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • executeOntapPostCallable() + *

                                                                                                                                  + * + * + * + *

                                                                                                                                  ExecuteOntapGet + *

                                                                                                                                  `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster. + * + *

                                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • executeOntapGet(ExecuteOntapGetRequest request) + *

                                                                                                                                  + *

                                                                                                                                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • executeOntapGetCallable() + *

                                                                                                                                  + * + * + * + *

                                                                                                                                  ExecuteOntapDelete + *

                                                                                                                                  `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster. + * + *

                                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • executeOntapDelete(ExecuteOntapDeleteRequest request) + *

                                                                                                                                  + *

                                                                                                                                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • executeOntapDeleteCallable() + *

                                                                                                                                  + * + * + * + *

                                                                                                                                  ExecuteOntapPatch + *

                                                                                                                                  `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster. + * + *

                                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • executeOntapPatch(ExecuteOntapPatchRequest request) + *

                                                                                                                                  + *

                                                                                                                                  Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                  + *
                                                                                                                                    + *
                                                                                                                                  • executeOntapPatchCallable() + *

                                                                                                                                  + * + * + * *

                                                                                                                                  ListLocations - *

                                                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                  *
                                                                                                                                    @@ -3156,6 +3230,108 @@ public final UnaryCallable revertVolumeCallable( return stub.revertVolumeCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Establish volume peering. This is used to establish cluster and svm peerings between the GCNV + * and OnPrem clusters. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   EstablishVolumePeeringRequest request =
                                                                                                                                    +   *       EstablishVolumePeeringRequest.newBuilder()
                                                                                                                                    +   *           .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +   *           .setPeerClusterName("peerClusterName313022691")
                                                                                                                                    +   *           .setPeerSvmName("peerSvmName1014209619")
                                                                                                                                    +   *           .addAllPeerIpAddresses(new ArrayList())
                                                                                                                                    +   *           .setPeerVolumeName("peerVolumeName1542206407")
                                                                                                                                    +   *           .build();
                                                                                                                                    +   *   Volume response = netAppClient.establishVolumePeeringAsync(request).get();
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture establishVolumePeeringAsync( + EstablishVolumePeeringRequest request) { + return establishVolumePeeringOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Establish volume peering. This is used to establish cluster and svm peerings between the GCNV + * and OnPrem clusters. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   EstablishVolumePeeringRequest request =
                                                                                                                                    +   *       EstablishVolumePeeringRequest.newBuilder()
                                                                                                                                    +   *           .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +   *           .setPeerClusterName("peerClusterName313022691")
                                                                                                                                    +   *           .setPeerSvmName("peerSvmName1014209619")
                                                                                                                                    +   *           .addAllPeerIpAddresses(new ArrayList())
                                                                                                                                    +   *           .setPeerVolumeName("peerVolumeName1542206407")
                                                                                                                                    +   *           .build();
                                                                                                                                    +   *   OperationFuture future =
                                                                                                                                    +   *       netAppClient.establishVolumePeeringOperationCallable().futureCall(request);
                                                                                                                                    +   *   // Do something.
                                                                                                                                    +   *   Volume response = future.get();
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + */ + public final OperationCallable + establishVolumePeeringOperationCallable() { + return stub.establishVolumePeeringOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Establish volume peering. This is used to establish cluster and svm peerings between the GCNV + * and OnPrem clusters. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   EstablishVolumePeeringRequest request =
                                                                                                                                    +   *       EstablishVolumePeeringRequest.newBuilder()
                                                                                                                                    +   *           .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +   *           .setPeerClusterName("peerClusterName313022691")
                                                                                                                                    +   *           .setPeerSvmName("peerSvmName1014209619")
                                                                                                                                    +   *           .addAllPeerIpAddresses(new ArrayList())
                                                                                                                                    +   *           .setPeerVolumeName("peerVolumeName1542206407")
                                                                                                                                    +   *           .build();
                                                                                                                                    +   *   ApiFuture future =
                                                                                                                                    +   *       netAppClient.establishVolumePeeringCallable().futureCall(request);
                                                                                                                                    +   *   // Do something.
                                                                                                                                    +   *   Operation response = future.get();
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + */ + public final UnaryCallable + establishVolumePeeringCallable() { + return stub.establishVolumePeeringCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns descriptions of all snapshots for a volume. @@ -10371,10 +10547,247 @@ public final UnaryCallable deleteHostGroupCal return stub.deleteHostGroupCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   ExecuteOntapPostRequest request =
                                                                                                                                    +   *       ExecuteOntapPostRequest.newBuilder()
                                                                                                                                    +   *           .setBody(Struct.newBuilder().build())
                                                                                                                                    +   *           .setOntapPath("ontapPath-1869187159")
                                                                                                                                    +   *           .build();
                                                                                                                                    +   *   ExecuteOntapPostResponse response = netAppClient.executeOntapPost(request);
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteOntapPostResponse executeOntapPost(ExecuteOntapPostRequest request) { + return executeOntapPostCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   ExecuteOntapPostRequest request =
                                                                                                                                    +   *       ExecuteOntapPostRequest.newBuilder()
                                                                                                                                    +   *           .setBody(Struct.newBuilder().build())
                                                                                                                                    +   *           .setOntapPath("ontapPath-1869187159")
                                                                                                                                    +   *           .build();
                                                                                                                                    +   *   ApiFuture future =
                                                                                                                                    +   *       netAppClient.executeOntapPostCallable().futureCall(request);
                                                                                                                                    +   *   // Do something.
                                                                                                                                    +   *   ExecuteOntapPostResponse response = future.get();
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + */ + public final UnaryCallable + executeOntapPostCallable() { + return stub.executeOntapPostCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   ExecuteOntapGetRequest request =
                                                                                                                                    +   *       ExecuteOntapGetRequest.newBuilder().setOntapPath("ontapPath-1869187159").build();
                                                                                                                                    +   *   ExecuteOntapGetResponse response = netAppClient.executeOntapGet(request);
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteOntapGetResponse executeOntapGet(ExecuteOntapGetRequest request) { + return executeOntapGetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   ExecuteOntapGetRequest request =
                                                                                                                                    +   *       ExecuteOntapGetRequest.newBuilder().setOntapPath("ontapPath-1869187159").build();
                                                                                                                                    +   *   ApiFuture future =
                                                                                                                                    +   *       netAppClient.executeOntapGetCallable().futureCall(request);
                                                                                                                                    +   *   // Do something.
                                                                                                                                    +   *   ExecuteOntapGetResponse response = future.get();
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + */ + public final UnaryCallable + executeOntapGetCallable() { + return stub.executeOntapGetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   ExecuteOntapDeleteRequest request =
                                                                                                                                    +   *       ExecuteOntapDeleteRequest.newBuilder().setOntapPath("ontapPath-1869187159").build();
                                                                                                                                    +   *   ExecuteOntapDeleteResponse response = netAppClient.executeOntapDelete(request);
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteOntapDeleteResponse executeOntapDelete(ExecuteOntapDeleteRequest request) { + return executeOntapDeleteCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   ExecuteOntapDeleteRequest request =
                                                                                                                                    +   *       ExecuteOntapDeleteRequest.newBuilder().setOntapPath("ontapPath-1869187159").build();
                                                                                                                                    +   *   ApiFuture future =
                                                                                                                                    +   *       netAppClient.executeOntapDeleteCallable().futureCall(request);
                                                                                                                                    +   *   // Do something.
                                                                                                                                    +   *   ExecuteOntapDeleteResponse response = future.get();
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + */ + public final UnaryCallable + executeOntapDeleteCallable() { + return stub.executeOntapDeleteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   ExecuteOntapPatchRequest request =
                                                                                                                                    +   *       ExecuteOntapPatchRequest.newBuilder()
                                                                                                                                    +   *           .setBody(Struct.newBuilder().build())
                                                                                                                                    +   *           .setOntapPath("ontapPath-1869187159")
                                                                                                                                    +   *           .build();
                                                                                                                                    +   *   ExecuteOntapPatchResponse response = netAppClient.executeOntapPatch(request);
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteOntapPatchResponse executeOntapPatch(ExecuteOntapPatchRequest request) { + return executeOntapPatchCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster. + * + *

                                                                                                                                    Sample code: + * + *

                                                                                                                                    {@code
                                                                                                                                    +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                    +   * // It will require modifications to work:
                                                                                                                                    +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                    +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                    +   * try (NetAppClient netAppClient = NetAppClient.create()) {
                                                                                                                                    +   *   ExecuteOntapPatchRequest request =
                                                                                                                                    +   *       ExecuteOntapPatchRequest.newBuilder()
                                                                                                                                    +   *           .setBody(Struct.newBuilder().build())
                                                                                                                                    +   *           .setOntapPath("ontapPath-1869187159")
                                                                                                                                    +   *           .build();
                                                                                                                                    +   *   ApiFuture future =
                                                                                                                                    +   *       netAppClient.executeOntapPatchCallable().futureCall(request);
                                                                                                                                    +   *   // Do something.
                                                                                                                                    +   *   ExecuteOntapPatchResponse response = future.get();
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    + */ + public final UnaryCallable + executeOntapPatchCallable() { + return stub.executeOntapPatchCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. * + *

                                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                    Sample code: * *

                                                                                                                                    {@code
                                                                                                                                    @@ -10408,6 +10821,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                       /**
                                                                                                                                        * Lists information about the supported locations for this service.
                                                                                                                                        *
                                                                                                                                    +   * 

                                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                    Sample code: * *

                                                                                                                                    {@code
                                                                                                                                    @@ -10441,6 +10867,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                       /**
                                                                                                                                        * Lists information about the supported locations for this service.
                                                                                                                                        *
                                                                                                                                    +   * 

                                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                    Sample code: * *

                                                                                                                                    {@code
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java
                                                                                                                                    index 1dc18294cdff..208bb306fc0c 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java
                                                                                                                                    @@ -254,6 +254,18 @@ public UnaryCallSettings revertVolumeSettings()
                                                                                                                                         return ((NetAppStubSettings) getStubSettings()).revertVolumeOperationSettings();
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  /** Returns the object with the settings used for calls to establishVolumePeering. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      establishVolumePeeringSettings() {
                                                                                                                                    +    return ((NetAppStubSettings) getStubSettings()).establishVolumePeeringSettings();
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  /** Returns the object with the settings used for calls to establishVolumePeering. */
                                                                                                                                    +  public OperationCallSettings
                                                                                                                                    +      establishVolumePeeringOperationSettings() {
                                                                                                                                    +    return ((NetAppStubSettings) getStubSettings()).establishVolumePeeringOperationSettings();
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       /** Returns the object with the settings used for calls to listSnapshots. */
                                                                                                                                       public PagedCallSettings
                                                                                                                                           listSnapshotsSettings() {
                                                                                                                                    @@ -748,6 +760,30 @@ public UnaryCallSettings deleteHostGroupSetti
                                                                                                                                         return ((NetAppStubSettings) getStubSettings()).deleteHostGroupOperationSettings();
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  /** Returns the object with the settings used for calls to executeOntapPost. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      executeOntapPostSettings() {
                                                                                                                                    +    return ((NetAppStubSettings) getStubSettings()).executeOntapPostSettings();
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  /** Returns the object with the settings used for calls to executeOntapGet. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      executeOntapGetSettings() {
                                                                                                                                    +    return ((NetAppStubSettings) getStubSettings()).executeOntapGetSettings();
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  /** Returns the object with the settings used for calls to executeOntapDelete. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      executeOntapDeleteSettings() {
                                                                                                                                    +    return ((NetAppStubSettings) getStubSettings()).executeOntapDeleteSettings();
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  /** Returns the object with the settings used for calls to executeOntapPatch. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      executeOntapPatchSettings() {
                                                                                                                                    +    return ((NetAppStubSettings) getStubSettings()).executeOntapPatchSettings();
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       /** Returns the object with the settings used for calls to listLocations. */
                                                                                                                                       public PagedCallSettings
                                                                                                                                           listLocationsSettings() {
                                                                                                                                    @@ -999,6 +1035,18 @@ public UnaryCallSettings.Builder revertVolumeSet
                                                                                                                                           return getStubSettingsBuilder().revertVolumeOperationSettings();
                                                                                                                                         }
                                                                                                                                     
                                                                                                                                    +    /** Returns the builder for the settings used for calls to establishVolumePeering. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        establishVolumePeeringSettings() {
                                                                                                                                    +      return getStubSettingsBuilder().establishVolumePeeringSettings();
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                    +    /** Returns the builder for the settings used for calls to establishVolumePeering. */
                                                                                                                                    +    public OperationCallSettings.Builder
                                                                                                                                    +        establishVolumePeeringOperationSettings() {
                                                                                                                                    +      return getStubSettingsBuilder().establishVolumePeeringOperationSettings();
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                         /** Returns the builder for the settings used for calls to listSnapshots. */
                                                                                                                                         public PagedCallSettings.Builder<
                                                                                                                                                 ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>
                                                                                                                                    @@ -1511,6 +1559,30 @@ public UnaryCallSettings.Builder deleteHostGr
                                                                                                                                           return getStubSettingsBuilder().deleteHostGroupOperationSettings();
                                                                                                                                         }
                                                                                                                                     
                                                                                                                                    +    /** Returns the builder for the settings used for calls to executeOntapPost. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapPostSettings() {
                                                                                                                                    +      return getStubSettingsBuilder().executeOntapPostSettings();
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                    +    /** Returns the builder for the settings used for calls to executeOntapGet. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapGetSettings() {
                                                                                                                                    +      return getStubSettingsBuilder().executeOntapGetSettings();
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                    +    /** Returns the builder for the settings used for calls to executeOntapDelete. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapDeleteSettings() {
                                                                                                                                    +      return getStubSettingsBuilder().executeOntapDeleteSettings();
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                    +    /** Returns the builder for the settings used for calls to executeOntapPatch. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapPatchSettings() {
                                                                                                                                    +      return getStubSettingsBuilder().executeOntapPatchSettings();
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                         /** Returns the builder for the settings used for calls to listLocations. */
                                                                                                                                         public PagedCallSettings.Builder<
                                                                                                                                                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json
                                                                                                                                    index d8dc1ac4ecc1..75afefd35510 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/gapic_metadata.json
                                                                                                                                    @@ -82,6 +82,21 @@
                                                                                                                                                 "EstablishPeering": {
                                                                                                                                                   "methods": ["establishPeeringAsync", "establishPeeringOperationCallable", "establishPeeringCallable"]
                                                                                                                                                 },
                                                                                                                                    +            "EstablishVolumePeering": {
                                                                                                                                    +              "methods": ["establishVolumePeeringAsync", "establishVolumePeeringOperationCallable", "establishVolumePeeringCallable"]
                                                                                                                                    +            },
                                                                                                                                    +            "ExecuteOntapDelete": {
                                                                                                                                    +              "methods": ["executeOntapDelete", "executeOntapDeleteCallable"]
                                                                                                                                    +            },
                                                                                                                                    +            "ExecuteOntapGet": {
                                                                                                                                    +              "methods": ["executeOntapGet", "executeOntapGetCallable"]
                                                                                                                                    +            },
                                                                                                                                    +            "ExecuteOntapPatch": {
                                                                                                                                    +              "methods": ["executeOntapPatch", "executeOntapPatchCallable"]
                                                                                                                                    +            },
                                                                                                                                    +            "ExecuteOntapPost": {
                                                                                                                                    +              "methods": ["executeOntapPost", "executeOntapPostCallable"]
                                                                                                                                    +            },
                                                                                                                                                 "GetActiveDirectory": {
                                                                                                                                                   "methods": ["getActiveDirectory", "getActiveDirectory", "getActiveDirectory", "getActiveDirectoryCallable"]
                                                                                                                                                 },
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java
                                                                                                                                    index a47859627220..fbdb674e96d3 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/GrpcNetAppStub.java
                                                                                                                                    @@ -69,6 +69,15 @@
                                                                                                                                     import com.google.cloud.netapp.v1.DeleteVolumeRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.EncryptVolumesRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.EstablishPeeringRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.EstablishVolumePeeringRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapGetRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapGetResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPatchRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPatchResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPostRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPostResponse;
                                                                                                                                     import com.google.cloud.netapp.v1.GetActiveDirectoryRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.GetBackupPolicyRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.GetBackupRequest;
                                                                                                                                    @@ -287,6 +296,17 @@ public class GrpcNetAppStub extends NetAppStub {
                                                                                                                                                   .setSampledToLocalTracing(true)
                                                                                                                                                   .build();
                                                                                                                                     
                                                                                                                                    +  private static final MethodDescriptor
                                                                                                                                    +      establishVolumePeeringMethodDescriptor =
                                                                                                                                    +          MethodDescriptor.newBuilder()
                                                                                                                                    +              .setType(MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/EstablishVolumePeering")
                                                                                                                                    +              .setRequestMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(EstablishVolumePeeringRequest.getDefaultInstance()))
                                                                                                                                    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
                                                                                                                                    +              .setSampledToLocalTracing(true)
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                       private static final MethodDescriptor
                                                                                                                                           listSnapshotsMethodDescriptor =
                                                                                                                                               MethodDescriptor.newBuilder()
                                                                                                                                    @@ -869,6 +889,54 @@ public class GrpcNetAppStub extends NetAppStub {
                                                                                                                                                   .setSampledToLocalTracing(true)
                                                                                                                                                   .build();
                                                                                                                                     
                                                                                                                                    +  private static final MethodDescriptor
                                                                                                                                    +      executeOntapPostMethodDescriptor =
                                                                                                                                    +          MethodDescriptor.newBuilder()
                                                                                                                                    +              .setType(MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/ExecuteOntapPost")
                                                                                                                                    +              .setRequestMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(ExecuteOntapPostRequest.getDefaultInstance()))
                                                                                                                                    +              .setResponseMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(ExecuteOntapPostResponse.getDefaultInstance()))
                                                                                                                                    +              .setSampledToLocalTracing(true)
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                    +  private static final MethodDescriptor
                                                                                                                                    +      executeOntapGetMethodDescriptor =
                                                                                                                                    +          MethodDescriptor.newBuilder()
                                                                                                                                    +              .setType(MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/ExecuteOntapGet")
                                                                                                                                    +              .setRequestMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(ExecuteOntapGetRequest.getDefaultInstance()))
                                                                                                                                    +              .setResponseMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(ExecuteOntapGetResponse.getDefaultInstance()))
                                                                                                                                    +              .setSampledToLocalTracing(true)
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                    +  private static final MethodDescriptor
                                                                                                                                    +      executeOntapDeleteMethodDescriptor =
                                                                                                                                    +          MethodDescriptor.newBuilder()
                                                                                                                                    +              .setType(MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/ExecuteOntapDelete")
                                                                                                                                    +              .setRequestMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(ExecuteOntapDeleteRequest.getDefaultInstance()))
                                                                                                                                    +              .setResponseMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(ExecuteOntapDeleteResponse.getDefaultInstance()))
                                                                                                                                    +              .setSampledToLocalTracing(true)
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                    +  private static final MethodDescriptor
                                                                                                                                    +      executeOntapPatchMethodDescriptor =
                                                                                                                                    +          MethodDescriptor.newBuilder()
                                                                                                                                    +              .setType(MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/ExecuteOntapPatch")
                                                                                                                                    +              .setRequestMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(ExecuteOntapPatchRequest.getDefaultInstance()))
                                                                                                                                    +              .setResponseMarshaller(
                                                                                                                                    +                  ProtoUtils.marshaller(ExecuteOntapPatchResponse.getDefaultInstance()))
                                                                                                                                    +              .setSampledToLocalTracing(true)
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                       private static final MethodDescriptor
                                                                                                                                           listLocationsMethodDescriptor =
                                                                                                                                               MethodDescriptor.newBuilder()
                                                                                                                                    @@ -928,6 +996,10 @@ public class GrpcNetAppStub extends NetAppStub {
                                                                                                                                       private final UnaryCallable revertVolumeCallable;
                                                                                                                                       private final OperationCallable
                                                                                                                                           revertVolumeOperationCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      establishVolumePeeringCallable;
                                                                                                                                    +  private final OperationCallable
                                                                                                                                    +      establishVolumePeeringOperationCallable;
                                                                                                                                       private final UnaryCallable listSnapshotsCallable;
                                                                                                                                       private final UnaryCallable
                                                                                                                                           listSnapshotsPagedCallable;
                                                                                                                                    @@ -1079,6 +1151,14 @@ public class GrpcNetAppStub extends NetAppStub {
                                                                                                                                       private final UnaryCallable deleteHostGroupCallable;
                                                                                                                                       private final OperationCallable
                                                                                                                                           deleteHostGroupOperationCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      executeOntapPostCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      executeOntapGetCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      executeOntapDeleteCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      executeOntapPatchCallable;
                                                                                                                                       private final UnaryCallable listLocationsCallable;
                                                                                                                                       private final UnaryCallable
                                                                                                                                           listLocationsPagedCallable;
                                                                                                                                    @@ -1133,6 +1213,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings createStoragePoolTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1143,6 +1224,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings getStoragePoolTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1153,6 +1235,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings updateStoragePoolTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1174,6 +1257,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             validateDirectoryServiceTransportSettings =
                                                                                                                                    @@ -1185,6 +1269,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             switchActiveReplicaZoneTransportSettings =
                                                                                                                                    @@ -1196,6 +1281,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings listVolumesTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1206,6 +1292,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings getVolumeTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1216,6 +1303,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings createVolumeTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1226,6 +1314,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings updateVolumeTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1246,6 +1335,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings revertVolumeTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1256,7 +1346,20 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                    +    GrpcCallSettings
                                                                                                                                    +        establishVolumePeeringTransportSettings =
                                                                                                                                    +            GrpcCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(establishVolumePeeringMethodDescriptor)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("name", String.valueOf(request.getName()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                    +                .build();
                                                                                                                                         GrpcCallSettings listSnapshotsTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                                 .setMethodDescriptor(listSnapshotsMethodDescriptor)
                                                                                                                                    @@ -1266,6 +1369,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings getSnapshotTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1276,6 +1380,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings createSnapshotTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1286,6 +1391,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings deleteSnapshotTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1296,6 +1402,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings updateSnapshotTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1318,6 +1425,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             getActiveDirectoryTransportSettings =
                                                                                                                                    @@ -1329,6 +1437,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             createActiveDirectoryTransportSettings =
                                                                                                                                    @@ -1340,6 +1449,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             updateActiveDirectoryTransportSettings =
                                                                                                                                    @@ -1364,6 +1474,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             listKmsConfigsTransportSettings =
                                                                                                                                    @@ -1375,6 +1486,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings createKmsConfigTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1385,6 +1497,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings getKmsConfigTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1395,6 +1508,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings updateKmsConfigTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1415,6 +1529,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             verifyKmsConfigTransportSettings =
                                                                                                                                    @@ -1426,6 +1541,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings deleteKmsConfigTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1436,6 +1552,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             listReplicationsTransportSettings =
                                                                                                                                    @@ -1447,6 +1564,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings getReplicationTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1457,6 +1575,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings createReplicationTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1467,6 +1586,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings deleteReplicationTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1477,6 +1597,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings updateReplicationTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1498,6 +1619,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings resumeReplicationTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1508,6 +1630,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             reverseReplicationDirectionTransportSettings =
                                                                                                                                    @@ -1519,6 +1642,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings establishPeeringTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1529,6 +1653,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings syncReplicationTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1539,6 +1664,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings createBackupVaultTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1549,6 +1675,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings getBackupVaultTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1559,6 +1686,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             listBackupVaultsTransportSettings =
                                                                                                                                    @@ -1570,6 +1698,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings updateBackupVaultTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1591,6 +1720,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings createBackupTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1601,6 +1731,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings getBackupTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1611,6 +1742,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings listBackupsTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1621,6 +1753,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings deleteBackupTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1631,6 +1764,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings updateBackupTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1651,6 +1785,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings getBackupPolicyTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1661,6 +1796,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             listBackupPoliciesTransportSettings =
                                                                                                                                    @@ -1672,6 +1808,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings updateBackupPolicyTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1693,6 +1830,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             listQuotaRulesTransportSettings =
                                                                                                                                    @@ -1704,6 +1842,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings getQuotaRuleTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1714,6 +1853,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings createQuotaRuleTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1724,6 +1864,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings updateQuotaRuleTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1744,6 +1885,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings restoreBackupFilesTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1754,6 +1896,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings
                                                                                                                                             listHostGroupsTransportSettings =
                                                                                                                                    @@ -1765,6 +1908,7 @@ protected GrpcNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         GrpcCallSettings getHostGroupTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1775,6 +1919,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings createHostGroupTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1785,6 +1930,7 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         GrpcCallSettings updateHostGroupTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                    @@ -1805,7 +1951,52 @@ protected GrpcNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                    +    GrpcCallSettings
                                                                                                                                    +        executeOntapPostTransportSettings =
                                                                                                                                    +            GrpcCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(executeOntapPostMethodDescriptor)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("ontap_path", String.valueOf(request.getOntapPath()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .build();
                                                                                                                                    +    GrpcCallSettings
                                                                                                                                    +        executeOntapGetTransportSettings =
                                                                                                                                    +            GrpcCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(executeOntapGetMethodDescriptor)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("ontap_path", String.valueOf(request.getOntapPath()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .build();
                                                                                                                                    +    GrpcCallSettings
                                                                                                                                    +        executeOntapDeleteTransportSettings =
                                                                                                                                    +            GrpcCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(executeOntapDeleteMethodDescriptor)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("ontap_path", String.valueOf(request.getOntapPath()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .build();
                                                                                                                                    +    GrpcCallSettings
                                                                                                                                    +        executeOntapPatchTransportSettings =
                                                                                                                                    +            GrpcCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(executeOntapPatchMethodDescriptor)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("ontap_path", String.valueOf(request.getOntapPath()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .build();
                                                                                                                                         GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                             GrpcCallSettings.newBuilder()
                                                                                                                                                 .setMethodDescriptor(listLocationsMethodDescriptor)
                                                                                                                                    @@ -1936,6 +2127,17 @@ protected GrpcNetAppStub(
                                                                                                                                                 settings.revertVolumeOperationSettings(),
                                                                                                                                                 clientContext,
                                                                                                                                                 operationsStub);
                                                                                                                                    +    this.establishVolumePeeringCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            establishVolumePeeringTransportSettings,
                                                                                                                                    +            settings.establishVolumePeeringSettings(),
                                                                                                                                    +            clientContext);
                                                                                                                                    +    this.establishVolumePeeringOperationCallable =
                                                                                                                                    +        callableFactory.createOperationCallable(
                                                                                                                                    +            establishVolumePeeringTransportSettings,
                                                                                                                                    +            settings.establishVolumePeeringOperationSettings(),
                                                                                                                                    +            clientContext,
                                                                                                                                    +            operationsStub);
                                                                                                                                         this.listSnapshotsCallable =
                                                                                                                                             callableFactory.createUnaryCallable(
                                                                                                                                                 listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext);
                                                                                                                                    @@ -2366,6 +2568,22 @@ protected GrpcNetAppStub(
                                                                                                                                                 settings.deleteHostGroupOperationSettings(),
                                                                                                                                                 clientContext,
                                                                                                                                                 operationsStub);
                                                                                                                                    +    this.executeOntapPostCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            executeOntapPostTransportSettings, settings.executeOntapPostSettings(), clientContext);
                                                                                                                                    +    this.executeOntapGetCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            executeOntapGetTransportSettings, settings.executeOntapGetSettings(), clientContext);
                                                                                                                                    +    this.executeOntapDeleteCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            executeOntapDeleteTransportSettings,
                                                                                                                                    +            settings.executeOntapDeleteSettings(),
                                                                                                                                    +            clientContext);
                                                                                                                                    +    this.executeOntapPatchCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            executeOntapPatchTransportSettings,
                                                                                                                                    +            settings.executeOntapPatchSettings(),
                                                                                                                                    +            clientContext);
                                                                                                                                         this.listLocationsCallable =
                                                                                                                                             callableFactory.createUnaryCallable(
                                                                                                                                                 listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
                                                                                                                                    @@ -2517,6 +2735,17 @@ public UnaryCallable revertVolumeCallable() {
                                                                                                                                         return revertVolumeOperationCallable;
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable establishVolumePeeringCallable() {
                                                                                                                                    +    return establishVolumePeeringCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public OperationCallable
                                                                                                                                    +      establishVolumePeeringOperationCallable() {
                                                                                                                                    +    return establishVolumePeeringOperationCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Override
                                                                                                                                       public UnaryCallable listSnapshotsCallable() {
                                                                                                                                         return listSnapshotsCallable;
                                                                                                                                    @@ -3044,6 +3273,29 @@ public UnaryCallable deleteHostGroupCallable(
                                                                                                                                         return deleteHostGroupOperationCallable;
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapPostCallable() {
                                                                                                                                    +    return executeOntapPostCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable executeOntapGetCallable() {
                                                                                                                                    +    return executeOntapGetCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapDeleteCallable() {
                                                                                                                                    +    return executeOntapDeleteCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapPatchCallable() {
                                                                                                                                    +    return executeOntapPatchCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Override
                                                                                                                                       public UnaryCallable listLocationsCallable() {
                                                                                                                                         return listLocationsCallable;
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java
                                                                                                                                    index 5f102c13d790..761aeb2412a3 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/HttpJsonNetAppStub.java
                                                                                                                                    @@ -77,6 +77,15 @@
                                                                                                                                     import com.google.cloud.netapp.v1.DeleteVolumeRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.EncryptVolumesRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.EstablishPeeringRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.EstablishVolumePeeringRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapGetRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapGetResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPatchRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPatchResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPostRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPostResponse;
                                                                                                                                     import com.google.cloud.netapp.v1.GetActiveDirectoryRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.GetBackupPolicyRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.GetBackupRequest;
                                                                                                                                    @@ -683,6 +692,46 @@ public class HttpJsonNetAppStub extends NetAppStub {
                                                                                                                                                           HttpJsonOperationSnapshot.create(response))
                                                                                                                                                   .build();
                                                                                                                                     
                                                                                                                                    +  private static final ApiMethodDescriptor
                                                                                                                                    +      establishVolumePeeringMethodDescriptor =
                                                                                                                                    +          ApiMethodDescriptor.newBuilder()
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/EstablishVolumePeering")
                                                                                                                                    +              .setHttpMethod("POST")
                                                                                                                                    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setRequestFormatter(
                                                                                                                                    +                  ProtoMessageRequestFormatter.newBuilder()
                                                                                                                                    +                      .setPath(
                                                                                                                                    +                          "/v1/{name=projects/*/locations/*/volumes/*}:establishPeering",
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putPathParam(fields, "name", request.getName());
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setQueryParamsExtractor(
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map> fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setRequestBodyExtractor(
                                                                                                                                    +                          request ->
                                                                                                                                    +                              ProtoRestSerializer.create()
                                                                                                                                    +                                  .toBody("*", request.toBuilder().clearName().build(), true))
                                                                                                                                    +                      .build())
                                                                                                                                    +              .setResponseParser(
                                                                                                                                    +                  ProtoMessageResponseParser.newBuilder()
                                                                                                                                    +                      .setDefaultInstance(Operation.getDefaultInstance())
                                                                                                                                    +                      .setDefaultTypeRegistry(typeRegistry)
                                                                                                                                    +                      .build())
                                                                                                                                    +              .setOperationSnapshotFactory(
                                                                                                                                    +                  (EstablishVolumePeeringRequest request, Operation response) ->
                                                                                                                                    +                      HttpJsonOperationSnapshot.create(response))
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                       private static final ApiMethodDescriptor
                                                                                                                                           listSnapshotsMethodDescriptor =
                                                                                                                                               ApiMethodDescriptor.newBuilder()
                                                                                                                                    @@ -2738,6 +2787,148 @@ public class HttpJsonNetAppStub extends NetAppStub {
                                                                                                                                                           HttpJsonOperationSnapshot.create(response))
                                                                                                                                                   .build();
                                                                                                                                     
                                                                                                                                    +  private static final ApiMethodDescriptor
                                                                                                                                    +      executeOntapPostMethodDescriptor =
                                                                                                                                    +          ApiMethodDescriptor.newBuilder()
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/ExecuteOntapPost")
                                                                                                                                    +              .setHttpMethod("POST")
                                                                                                                                    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setRequestFormatter(
                                                                                                                                    +                  ProtoMessageRequestFormatter.newBuilder()
                                                                                                                                    +                      .setPath(
                                                                                                                                    +                          "/v1/{ontapPath=projects/*/locations/*/storagePools/*/ontap/**}",
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putPathParam(fields, "ontapPath", request.getOntapPath());
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setQueryParamsExtractor(
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map> fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setRequestBodyExtractor(
                                                                                                                                    +                          request ->
                                                                                                                                    +                              ProtoRestSerializer.create()
                                                                                                                                    +                                  .toBody("*", request.toBuilder().clearOntapPath().build(), true))
                                                                                                                                    +                      .build())
                                                                                                                                    +              .setResponseParser(
                                                                                                                                    +                  ProtoMessageResponseParser.newBuilder()
                                                                                                                                    +                      .setDefaultInstance(ExecuteOntapPostResponse.getDefaultInstance())
                                                                                                                                    +                      .setDefaultTypeRegistry(typeRegistry)
                                                                                                                                    +                      .build())
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                    +  private static final ApiMethodDescriptor
                                                                                                                                    +      executeOntapGetMethodDescriptor =
                                                                                                                                    +          ApiMethodDescriptor.newBuilder()
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/ExecuteOntapGet")
                                                                                                                                    +              .setHttpMethod("GET")
                                                                                                                                    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setRequestFormatter(
                                                                                                                                    +                  ProtoMessageRequestFormatter.newBuilder()
                                                                                                                                    +                      .setPath(
                                                                                                                                    +                          "/v1/{ontapPath=projects/*/locations/*/storagePools/*/ontap/**}",
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putPathParam(fields, "ontapPath", request.getOntapPath());
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setQueryParamsExtractor(
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map> fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setRequestBodyExtractor(request -> null)
                                                                                                                                    +                      .build())
                                                                                                                                    +              .setResponseParser(
                                                                                                                                    +                  ProtoMessageResponseParser.newBuilder()
                                                                                                                                    +                      .setDefaultInstance(ExecuteOntapGetResponse.getDefaultInstance())
                                                                                                                                    +                      .setDefaultTypeRegistry(typeRegistry)
                                                                                                                                    +                      .build())
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                    +  private static final ApiMethodDescriptor
                                                                                                                                    +      executeOntapDeleteMethodDescriptor =
                                                                                                                                    +          ApiMethodDescriptor.newBuilder()
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/ExecuteOntapDelete")
                                                                                                                                    +              .setHttpMethod("DELETE")
                                                                                                                                    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setRequestFormatter(
                                                                                                                                    +                  ProtoMessageRequestFormatter.newBuilder()
                                                                                                                                    +                      .setPath(
                                                                                                                                    +                          "/v1/{ontapPath=projects/*/locations/*/storagePools/*/ontap/**}",
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putPathParam(fields, "ontapPath", request.getOntapPath());
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setQueryParamsExtractor(
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map> fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setRequestBodyExtractor(request -> null)
                                                                                                                                    +                      .build())
                                                                                                                                    +              .setResponseParser(
                                                                                                                                    +                  ProtoMessageResponseParser.newBuilder()
                                                                                                                                    +                      .setDefaultInstance(ExecuteOntapDeleteResponse.getDefaultInstance())
                                                                                                                                    +                      .setDefaultTypeRegistry(typeRegistry)
                                                                                                                                    +                      .build())
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                    +  private static final ApiMethodDescriptor
                                                                                                                                    +      executeOntapPatchMethodDescriptor =
                                                                                                                                    +          ApiMethodDescriptor.newBuilder()
                                                                                                                                    +              .setFullMethodName("google.cloud.netapp.v1.NetApp/ExecuteOntapPatch")
                                                                                                                                    +              .setHttpMethod("PATCH")
                                                                                                                                    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
                                                                                                                                    +              .setRequestFormatter(
                                                                                                                                    +                  ProtoMessageRequestFormatter.newBuilder()
                                                                                                                                    +                      .setPath(
                                                                                                                                    +                          "/v1/{ontapPath=projects/*/locations/*/storagePools/*/ontap/**}",
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putPathParam(fields, "ontapPath", request.getOntapPath());
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setQueryParamsExtractor(
                                                                                                                                    +                          request -> {
                                                                                                                                    +                            Map> fields = new HashMap<>();
                                                                                                                                    +                            ProtoRestSerializer serializer =
                                                                                                                                    +                                ProtoRestSerializer.create();
                                                                                                                                    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                                                                                                                    +                            return fields;
                                                                                                                                    +                          })
                                                                                                                                    +                      .setRequestBodyExtractor(
                                                                                                                                    +                          request ->
                                                                                                                                    +                              ProtoRestSerializer.create()
                                                                                                                                    +                                  .toBody("*", request.toBuilder().clearOntapPath().build(), true))
                                                                                                                                    +                      .build())
                                                                                                                                    +              .setResponseParser(
                                                                                                                                    +                  ProtoMessageResponseParser.newBuilder()
                                                                                                                                    +                      .setDefaultInstance(ExecuteOntapPatchResponse.getDefaultInstance())
                                                                                                                                    +                      .setDefaultTypeRegistry(typeRegistry)
                                                                                                                                    +                      .build())
                                                                                                                                    +              .build();
                                                                                                                                    +
                                                                                                                                       private static final ApiMethodDescriptor
                                                                                                                                           listLocationsMethodDescriptor =
                                                                                                                                               ApiMethodDescriptor.newBuilder()
                                                                                                                                    @@ -2844,6 +3035,10 @@ public class HttpJsonNetAppStub extends NetAppStub {
                                                                                                                                       private final UnaryCallable revertVolumeCallable;
                                                                                                                                       private final OperationCallable
                                                                                                                                           revertVolumeOperationCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      establishVolumePeeringCallable;
                                                                                                                                    +  private final OperationCallable
                                                                                                                                    +      establishVolumePeeringOperationCallable;
                                                                                                                                       private final UnaryCallable listSnapshotsCallable;
                                                                                                                                       private final UnaryCallable
                                                                                                                                           listSnapshotsPagedCallable;
                                                                                                                                    @@ -2995,6 +3190,14 @@ public class HttpJsonNetAppStub extends NetAppStub {
                                                                                                                                       private final UnaryCallable deleteHostGroupCallable;
                                                                                                                                       private final OperationCallable
                                                                                                                                           deleteHostGroupOperationCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      executeOntapPostCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      executeOntapGetCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      executeOntapDeleteCallable;
                                                                                                                                    +  private final UnaryCallable
                                                                                                                                    +      executeOntapPatchCallable;
                                                                                                                                       private final UnaryCallable listLocationsCallable;
                                                                                                                                       private final UnaryCallable
                                                                                                                                           listLocationsPagedCallable;
                                                                                                                                    @@ -3078,6 +3281,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings createStoragePoolTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3089,6 +3293,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings getStoragePoolTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3100,6 +3305,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings updateStoragePoolTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3123,6 +3329,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             validateDirectoryServiceTransportSettings =
                                                                                                                                    @@ -3135,6 +3342,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             switchActiveReplicaZoneTransportSettings =
                                                                                                                                    @@ -3147,6 +3355,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings listVolumesTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3158,6 +3367,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings getVolumeTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3169,6 +3379,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings createVolumeTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3180,6 +3391,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings updateVolumeTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3202,6 +3414,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings revertVolumeTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3213,7 +3426,21 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                    +    HttpJsonCallSettings
                                                                                                                                    +        establishVolumePeeringTransportSettings =
                                                                                                                                    +            HttpJsonCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(establishVolumePeeringMethodDescriptor)
                                                                                                                                    +                .setTypeRegistry(typeRegistry)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("name", String.valueOf(request.getName()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                    +                .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             listSnapshotsTransportSettings =
                                                                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3225,6 +3452,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings getSnapshotTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3236,6 +3464,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings createSnapshotTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3247,6 +3476,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings deleteSnapshotTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3258,6 +3488,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings updateSnapshotTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3282,6 +3513,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             getActiveDirectoryTransportSettings =
                                                                                                                                    @@ -3294,6 +3526,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             createActiveDirectoryTransportSettings =
                                                                                                                                    @@ -3306,6 +3539,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             updateActiveDirectoryTransportSettings =
                                                                                                                                    @@ -3332,6 +3566,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             listKmsConfigsTransportSettings =
                                                                                                                                    @@ -3344,6 +3579,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings createKmsConfigTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3355,6 +3591,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings getKmsConfigTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3366,6 +3603,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings updateKmsConfigTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3388,6 +3626,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             verifyKmsConfigTransportSettings =
                                                                                                                                    @@ -3400,6 +3639,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings deleteKmsConfigTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3411,6 +3651,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             listReplicationsTransportSettings =
                                                                                                                                    @@ -3423,6 +3664,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings getReplicationTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3434,6 +3676,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings createReplicationTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3445,6 +3688,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings deleteReplicationTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3456,6 +3700,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings updateReplicationTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3479,6 +3724,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings resumeReplicationTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3490,6 +3736,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             reverseReplicationDirectionTransportSettings =
                                                                                                                                    @@ -3502,6 +3749,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings establishPeeringTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3513,6 +3761,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings syncReplicationTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3524,6 +3773,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings createBackupVaultTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3535,6 +3785,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings getBackupVaultTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3546,6 +3797,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             listBackupVaultsTransportSettings =
                                                                                                                                    @@ -3558,6 +3810,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings updateBackupVaultTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3581,6 +3834,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings createBackupTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3592,6 +3846,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings getBackupTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3603,6 +3858,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings listBackupsTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3614,6 +3870,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings deleteBackupTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3625,6 +3882,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings updateBackupTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3647,6 +3905,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings getBackupPolicyTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3658,6 +3917,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             listBackupPoliciesTransportSettings =
                                                                                                                                    @@ -3670,6 +3930,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings updateBackupPolicyTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3693,6 +3954,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             listQuotaRulesTransportSettings =
                                                                                                                                    @@ -3705,6 +3967,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings getQuotaRuleTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3716,6 +3979,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings createQuotaRuleTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3727,6 +3991,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings updateQuotaRuleTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3749,6 +4014,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings restoreBackupFilesTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3760,6 +4026,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             listHostGroupsTransportSettings =
                                                                                                                                    @@ -3772,6 +4039,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                           return builder.build();
                                                                                                                                                         })
                                                                                                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                     .build();
                                                                                                                                         HttpJsonCallSettings getHostGroupTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3783,6 +4051,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings createHostGroupTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3794,6 +4063,7 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                 .build();
                                                                                                                                         HttpJsonCallSettings updateHostGroupTransportSettings =
                                                                                                                                             HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3816,7 +4086,56 @@ protected HttpJsonNetAppStub(
                                                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                       return builder.build();
                                                                                                                                                     })
                                                                                                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                 .build();
                                                                                                                                    +    HttpJsonCallSettings
                                                                                                                                    +        executeOntapPostTransportSettings =
                                                                                                                                    +            HttpJsonCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(executeOntapPostMethodDescriptor)
                                                                                                                                    +                .setTypeRegistry(typeRegistry)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("ontap_path", String.valueOf(request.getOntapPath()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .build();
                                                                                                                                    +    HttpJsonCallSettings
                                                                                                                                    +        executeOntapGetTransportSettings =
                                                                                                                                    +            HttpJsonCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(executeOntapGetMethodDescriptor)
                                                                                                                                    +                .setTypeRegistry(typeRegistry)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("ontap_path", String.valueOf(request.getOntapPath()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .build();
                                                                                                                                    +    HttpJsonCallSettings
                                                                                                                                    +        executeOntapDeleteTransportSettings =
                                                                                                                                    +            HttpJsonCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(executeOntapDeleteMethodDescriptor)
                                                                                                                                    +                .setTypeRegistry(typeRegistry)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("ontap_path", String.valueOf(request.getOntapPath()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .build();
                                                                                                                                    +    HttpJsonCallSettings
                                                                                                                                    +        executeOntapPatchTransportSettings =
                                                                                                                                    +            HttpJsonCallSettings.newBuilder()
                                                                                                                                    +                .setMethodDescriptor(executeOntapPatchMethodDescriptor)
                                                                                                                                    +                .setTypeRegistry(typeRegistry)
                                                                                                                                    +                .setParamsExtractor(
                                                                                                                                    +                    request -> {
                                                                                                                                    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
                                                                                                                                    +                      builder.add("ontap_path", String.valueOf(request.getOntapPath()));
                                                                                                                                    +                      return builder.build();
                                                                                                                                    +                    })
                                                                                                                                    +                .build();
                                                                                                                                         HttpJsonCallSettings
                                                                                                                                             listLocationsTransportSettings =
                                                                                                                                                 HttpJsonCallSettings.newBuilder()
                                                                                                                                    @@ -3950,6 +4269,17 @@ protected HttpJsonNetAppStub(
                                                                                                                                                 settings.revertVolumeOperationSettings(),
                                                                                                                                                 clientContext,
                                                                                                                                                 httpJsonOperationsStub);
                                                                                                                                    +    this.establishVolumePeeringCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            establishVolumePeeringTransportSettings,
                                                                                                                                    +            settings.establishVolumePeeringSettings(),
                                                                                                                                    +            clientContext);
                                                                                                                                    +    this.establishVolumePeeringOperationCallable =
                                                                                                                                    +        callableFactory.createOperationCallable(
                                                                                                                                    +            establishVolumePeeringTransportSettings,
                                                                                                                                    +            settings.establishVolumePeeringOperationSettings(),
                                                                                                                                    +            clientContext,
                                                                                                                                    +            httpJsonOperationsStub);
                                                                                                                                         this.listSnapshotsCallable =
                                                                                                                                             callableFactory.createUnaryCallable(
                                                                                                                                                 listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext);
                                                                                                                                    @@ -4380,6 +4710,22 @@ protected HttpJsonNetAppStub(
                                                                                                                                                 settings.deleteHostGroupOperationSettings(),
                                                                                                                                                 clientContext,
                                                                                                                                                 httpJsonOperationsStub);
                                                                                                                                    +    this.executeOntapPostCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            executeOntapPostTransportSettings, settings.executeOntapPostSettings(), clientContext);
                                                                                                                                    +    this.executeOntapGetCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            executeOntapGetTransportSettings, settings.executeOntapGetSettings(), clientContext);
                                                                                                                                    +    this.executeOntapDeleteCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            executeOntapDeleteTransportSettings,
                                                                                                                                    +            settings.executeOntapDeleteSettings(),
                                                                                                                                    +            clientContext);
                                                                                                                                    +    this.executeOntapPatchCallable =
                                                                                                                                    +        callableFactory.createUnaryCallable(
                                                                                                                                    +            executeOntapPatchTransportSettings,
                                                                                                                                    +            settings.executeOntapPatchSettings(),
                                                                                                                                    +            clientContext);
                                                                                                                                         this.listLocationsCallable =
                                                                                                                                             callableFactory.createUnaryCallable(
                                                                                                                                                 listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
                                                                                                                                    @@ -4410,6 +4756,7 @@ public static List getMethodDescriptors() {
                                                                                                                                         methodDescriptors.add(updateVolumeMethodDescriptor);
                                                                                                                                         methodDescriptors.add(deleteVolumeMethodDescriptor);
                                                                                                                                         methodDescriptors.add(revertVolumeMethodDescriptor);
                                                                                                                                    +    methodDescriptors.add(establishVolumePeeringMethodDescriptor);
                                                                                                                                         methodDescriptors.add(listSnapshotsMethodDescriptor);
                                                                                                                                         methodDescriptors.add(getSnapshotMethodDescriptor);
                                                                                                                                         methodDescriptors.add(createSnapshotMethodDescriptor);
                                                                                                                                    @@ -4463,6 +4810,10 @@ public static List getMethodDescriptors() {
                                                                                                                                         methodDescriptors.add(createHostGroupMethodDescriptor);
                                                                                                                                         methodDescriptors.add(updateHostGroupMethodDescriptor);
                                                                                                                                         methodDescriptors.add(deleteHostGroupMethodDescriptor);
                                                                                                                                    +    methodDescriptors.add(executeOntapPostMethodDescriptor);
                                                                                                                                    +    methodDescriptors.add(executeOntapGetMethodDescriptor);
                                                                                                                                    +    methodDescriptors.add(executeOntapDeleteMethodDescriptor);
                                                                                                                                    +    methodDescriptors.add(executeOntapPatchMethodDescriptor);
                                                                                                                                         methodDescriptors.add(listLocationsMethodDescriptor);
                                                                                                                                         methodDescriptors.add(getLocationMethodDescriptor);
                                                                                                                                         return methodDescriptors;
                                                                                                                                    @@ -4605,6 +4956,17 @@ public UnaryCallable revertVolumeCallable() {
                                                                                                                                         return revertVolumeOperationCallable;
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable establishVolumePeeringCallable() {
                                                                                                                                    +    return establishVolumePeeringCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public OperationCallable
                                                                                                                                    +      establishVolumePeeringOperationCallable() {
                                                                                                                                    +    return establishVolumePeeringOperationCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Override
                                                                                                                                       public UnaryCallable listSnapshotsCallable() {
                                                                                                                                         return listSnapshotsCallable;
                                                                                                                                    @@ -5132,6 +5494,29 @@ public UnaryCallable deleteHostGroupCallable(
                                                                                                                                         return deleteHostGroupOperationCallable;
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapPostCallable() {
                                                                                                                                    +    return executeOntapPostCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable executeOntapGetCallable() {
                                                                                                                                    +    return executeOntapGetCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapDeleteCallable() {
                                                                                                                                    +    return executeOntapDeleteCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapPatchCallable() {
                                                                                                                                    +    return executeOntapPatchCallable;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Override
                                                                                                                                       public UnaryCallable listLocationsCallable() {
                                                                                                                                         return listLocationsCallable;
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java
                                                                                                                                    index 20f4110e424a..a0f3e5549dd0 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java
                                                                                                                                    @@ -64,6 +64,15 @@
                                                                                                                                     import com.google.cloud.netapp.v1.DeleteVolumeRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.EncryptVolumesRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.EstablishPeeringRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.EstablishVolumePeeringRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapGetRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapGetResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPatchRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPatchResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPostRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPostResponse;
                                                                                                                                     import com.google.cloud.netapp.v1.GetActiveDirectoryRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.GetBackupPolicyRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.GetBackupRequest;
                                                                                                                                    @@ -263,6 +272,16 @@ public UnaryCallable revertVolumeCallable() {
                                                                                                                                         throw new UnsupportedOperationException("Not implemented: revertVolumeCallable()");
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  public OperationCallable
                                                                                                                                    +      establishVolumePeeringOperationCallable() {
                                                                                                                                    +    throw new UnsupportedOperationException(
                                                                                                                                    +        "Not implemented: establishVolumePeeringOperationCallable()");
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  public UnaryCallable establishVolumePeeringCallable() {
                                                                                                                                    +    throw new UnsupportedOperationException("Not implemented: establishVolumePeeringCallable()");
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       public UnaryCallable
                                                                                                                                           listSnapshotsPagedCallable() {
                                                                                                                                         throw new UnsupportedOperationException("Not implemented: listSnapshotsPagedCallable()");
                                                                                                                                    @@ -711,6 +730,25 @@ public UnaryCallable deleteHostGroupCallable(
                                                                                                                                         throw new UnsupportedOperationException("Not implemented: deleteHostGroupCallable()");
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapPostCallable() {
                                                                                                                                    +    throw new UnsupportedOperationException("Not implemented: executeOntapPostCallable()");
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  public UnaryCallable executeOntapGetCallable() {
                                                                                                                                    +    throw new UnsupportedOperationException("Not implemented: executeOntapGetCallable()");
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapDeleteCallable() {
                                                                                                                                    +    throw new UnsupportedOperationException("Not implemented: executeOntapDeleteCallable()");
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  public UnaryCallable
                                                                                                                                    +      executeOntapPatchCallable() {
                                                                                                                                    +    throw new UnsupportedOperationException("Not implemented: executeOntapPatchCallable()");
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       public UnaryCallable
                                                                                                                                           listLocationsPagedCallable() {
                                                                                                                                         throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java
                                                                                                                                    index 3e58d1b788ea..ca128908f4a8 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java
                                                                                                                                    @@ -92,6 +92,15 @@
                                                                                                                                     import com.google.cloud.netapp.v1.DeleteVolumeRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.EncryptVolumesRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.EstablishPeeringRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.EstablishVolumePeeringRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapGetRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapGetResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPatchRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPatchResponse;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPostRequest;
                                                                                                                                    +import com.google.cloud.netapp.v1.ExecuteOntapPostResponse;
                                                                                                                                     import com.google.cloud.netapp.v1.GetActiveDirectoryRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.GetBackupPolicyRequest;
                                                                                                                                     import com.google.cloud.netapp.v1.GetBackupRequest;
                                                                                                                                    @@ -284,6 +293,10 @@ public class NetAppStubSettings extends StubSettings {
                                                                                                                                       private final UnaryCallSettings revertVolumeSettings;
                                                                                                                                       private final OperationCallSettings
                                                                                                                                           revertVolumeOperationSettings;
                                                                                                                                    +  private final UnaryCallSettings
                                                                                                                                    +      establishVolumePeeringSettings;
                                                                                                                                    +  private final OperationCallSettings
                                                                                                                                    +      establishVolumePeeringOperationSettings;
                                                                                                                                       private final PagedCallSettings<
                                                                                                                                               ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>
                                                                                                                                           listSnapshotsSettings;
                                                                                                                                    @@ -434,6 +447,14 @@ public class NetAppStubSettings extends StubSettings {
                                                                                                                                       private final UnaryCallSettings deleteHostGroupSettings;
                                                                                                                                       private final OperationCallSettings
                                                                                                                                           deleteHostGroupOperationSettings;
                                                                                                                                    +  private final UnaryCallSettings
                                                                                                                                    +      executeOntapPostSettings;
                                                                                                                                    +  private final UnaryCallSettings
                                                                                                                                    +      executeOntapGetSettings;
                                                                                                                                    +  private final UnaryCallSettings
                                                                                                                                    +      executeOntapDeleteSettings;
                                                                                                                                    +  private final UnaryCallSettings
                                                                                                                                    +      executeOntapPatchSettings;
                                                                                                                                       private final PagedCallSettings<
                                                                                                                                               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                                                                                                                                           listLocationsSettings;
                                                                                                                                    @@ -1216,6 +1237,18 @@ public UnaryCallSettings revertVolumeSettings()
                                                                                                                                         return revertVolumeOperationSettings;
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  /** Returns the object with the settings used for calls to establishVolumePeering. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      establishVolumePeeringSettings() {
                                                                                                                                    +    return establishVolumePeeringSettings;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  /** Returns the object with the settings used for calls to establishVolumePeering. */
                                                                                                                                    +  public OperationCallSettings
                                                                                                                                    +      establishVolumePeeringOperationSettings() {
                                                                                                                                    +    return establishVolumePeeringOperationSettings;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       /** Returns the object with the settings used for calls to listSnapshots. */
                                                                                                                                       public PagedCallSettings
                                                                                                                                           listSnapshotsSettings() {
                                                                                                                                    @@ -1710,6 +1743,30 @@ public UnaryCallSettings deleteHostGroupSetti
                                                                                                                                         return deleteHostGroupOperationSettings;
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  /** Returns the object with the settings used for calls to executeOntapPost. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      executeOntapPostSettings() {
                                                                                                                                    +    return executeOntapPostSettings;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  /** Returns the object with the settings used for calls to executeOntapGet. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      executeOntapGetSettings() {
                                                                                                                                    +    return executeOntapGetSettings;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  /** Returns the object with the settings used for calls to executeOntapDelete. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      executeOntapDeleteSettings() {
                                                                                                                                    +    return executeOntapDeleteSettings;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  /** Returns the object with the settings used for calls to executeOntapPatch. */
                                                                                                                                    +  public UnaryCallSettings
                                                                                                                                    +      executeOntapPatchSettings() {
                                                                                                                                    +    return executeOntapPatchSettings;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       /** Returns the object with the settings used for calls to listLocations. */
                                                                                                                                       public PagedCallSettings
                                                                                                                                           listLocationsSettings() {
                                                                                                                                    @@ -1857,6 +1914,9 @@ protected NetAppStubSettings(Builder settingsBuilder) throws IOException {
                                                                                                                                         deleteVolumeOperationSettings = settingsBuilder.deleteVolumeOperationSettings().build();
                                                                                                                                         revertVolumeSettings = settingsBuilder.revertVolumeSettings().build();
                                                                                                                                         revertVolumeOperationSettings = settingsBuilder.revertVolumeOperationSettings().build();
                                                                                                                                    +    establishVolumePeeringSettings = settingsBuilder.establishVolumePeeringSettings().build();
                                                                                                                                    +    establishVolumePeeringOperationSettings =
                                                                                                                                    +        settingsBuilder.establishVolumePeeringOperationSettings().build();
                                                                                                                                         listSnapshotsSettings = settingsBuilder.listSnapshotsSettings().build();
                                                                                                                                         getSnapshotSettings = settingsBuilder.getSnapshotSettings().build();
                                                                                                                                         createSnapshotSettings = settingsBuilder.createSnapshotSettings().build();
                                                                                                                                    @@ -1960,6 +2020,10 @@ protected NetAppStubSettings(Builder settingsBuilder) throws IOException {
                                                                                                                                         updateHostGroupOperationSettings = settingsBuilder.updateHostGroupOperationSettings().build();
                                                                                                                                         deleteHostGroupSettings = settingsBuilder.deleteHostGroupSettings().build();
                                                                                                                                         deleteHostGroupOperationSettings = settingsBuilder.deleteHostGroupOperationSettings().build();
                                                                                                                                    +    executeOntapPostSettings = settingsBuilder.executeOntapPostSettings().build();
                                                                                                                                    +    executeOntapGetSettings = settingsBuilder.executeOntapGetSettings().build();
                                                                                                                                    +    executeOntapDeleteSettings = settingsBuilder.executeOntapDeleteSettings().build();
                                                                                                                                    +    executeOntapPatchSettings = settingsBuilder.executeOntapPatchSettings().build();
                                                                                                                                         listLocationsSettings = settingsBuilder.listLocationsSettings().build();
                                                                                                                                         getLocationSettings = settingsBuilder.getLocationSettings().build();
                                                                                                                                       }
                                                                                                                                    @@ -1969,6 +2033,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                         return LibraryMetadata.newBuilder()
                                                                                                                                             .setArtifactName("com.google.cloud:google-cloud-netapp")
                                                                                                                                             .setRepository("googleapis/google-cloud-java")
                                                                                                                                    +        .setVersion(Version.VERSION)
                                                                                                                                             .build();
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    @@ -2020,6 +2085,11 @@ public static class Builder extends StubSettings.Builder revertVolumeSettings;
                                                                                                                                         private final OperationCallSettings.Builder
                                                                                                                                             revertVolumeOperationSettings;
                                                                                                                                    +    private final UnaryCallSettings.Builder
                                                                                                                                    +        establishVolumePeeringSettings;
                                                                                                                                    +    private final OperationCallSettings.Builder<
                                                                                                                                    +            EstablishVolumePeeringRequest, Volume, OperationMetadata>
                                                                                                                                    +        establishVolumePeeringOperationSettings;
                                                                                                                                         private final PagedCallSettings.Builder<
                                                                                                                                                 ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>
                                                                                                                                             listSnapshotsSettings;
                                                                                                                                    @@ -2218,6 +2288,14 @@ public static class Builder extends StubSettings.Builder
                                                                                                                                             deleteHostGroupOperationSettings;
                                                                                                                                    +    private final UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapPostSettings;
                                                                                                                                    +    private final UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapGetSettings;
                                                                                                                                    +    private final UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapDeleteSettings;
                                                                                                                                    +    private final UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapPatchSettings;
                                                                                                                                         private final PagedCallSettings.Builder<
                                                                                                                                                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                                                                                                                                             listLocationsSettings;
                                                                                                                                    @@ -2295,6 +2373,8 @@ protected Builder(ClientContext clientContext) {
                                                                                                                                           deleteVolumeOperationSettings = OperationCallSettings.newBuilder();
                                                                                                                                           revertVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                           revertVolumeOperationSettings = OperationCallSettings.newBuilder();
                                                                                                                                    +      establishVolumePeeringSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                    +      establishVolumePeeringOperationSettings = OperationCallSettings.newBuilder();
                                                                                                                                           listSnapshotsSettings = PagedCallSettings.newBuilder(LIST_SNAPSHOTS_PAGE_STR_FACT);
                                                                                                                                           getSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                           createSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                    @@ -2383,6 +2463,10 @@ protected Builder(ClientContext clientContext) {
                                                                                                                                           updateHostGroupOperationSettings = OperationCallSettings.newBuilder();
                                                                                                                                           deleteHostGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                           deleteHostGroupOperationSettings = OperationCallSettings.newBuilder();
                                                                                                                                    +      executeOntapPostSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                    +      executeOntapGetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                    +      executeOntapDeleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                    +      executeOntapPatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                           listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
                                                                                                                                           getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                                                                                                                                     
                                                                                                                                    @@ -2401,6 +2485,7 @@ protected Builder(ClientContext clientContext) {
                                                                                                                                                   updateVolumeSettings,
                                                                                                                                                   deleteVolumeSettings,
                                                                                                                                                   revertVolumeSettings,
                                                                                                                                    +              establishVolumePeeringSettings,
                                                                                                                                                   listSnapshotsSettings,
                                                                                                                                                   getSnapshotSettings,
                                                                                                                                                   createSnapshotSettings,
                                                                                                                                    @@ -2454,6 +2539,10 @@ protected Builder(ClientContext clientContext) {
                                                                                                                                                   createHostGroupSettings,
                                                                                                                                                   updateHostGroupSettings,
                                                                                                                                                   deleteHostGroupSettings,
                                                                                                                                    +              executeOntapPostSettings,
                                                                                                                                    +              executeOntapGetSettings,
                                                                                                                                    +              executeOntapDeleteSettings,
                                                                                                                                    +              executeOntapPatchSettings,
                                                                                                                                                   listLocationsSettings,
                                                                                                                                                   getLocationSettings);
                                                                                                                                           initDefaults(this);
                                                                                                                                    @@ -2486,6 +2575,9 @@ protected Builder(NetAppStubSettings settings) {
                                                                                                                                           deleteVolumeOperationSettings = settings.deleteVolumeOperationSettings.toBuilder();
                                                                                                                                           revertVolumeSettings = settings.revertVolumeSettings.toBuilder();
                                                                                                                                           revertVolumeOperationSettings = settings.revertVolumeOperationSettings.toBuilder();
                                                                                                                                    +      establishVolumePeeringSettings = settings.establishVolumePeeringSettings.toBuilder();
                                                                                                                                    +      establishVolumePeeringOperationSettings =
                                                                                                                                    +          settings.establishVolumePeeringOperationSettings.toBuilder();
                                                                                                                                           listSnapshotsSettings = settings.listSnapshotsSettings.toBuilder();
                                                                                                                                           getSnapshotSettings = settings.getSnapshotSettings.toBuilder();
                                                                                                                                           createSnapshotSettings = settings.createSnapshotSettings.toBuilder();
                                                                                                                                    @@ -2582,6 +2674,10 @@ protected Builder(NetAppStubSettings settings) {
                                                                                                                                           updateHostGroupOperationSettings = settings.updateHostGroupOperationSettings.toBuilder();
                                                                                                                                           deleteHostGroupSettings = settings.deleteHostGroupSettings.toBuilder();
                                                                                                                                           deleteHostGroupOperationSettings = settings.deleteHostGroupOperationSettings.toBuilder();
                                                                                                                                    +      executeOntapPostSettings = settings.executeOntapPostSettings.toBuilder();
                                                                                                                                    +      executeOntapGetSettings = settings.executeOntapGetSettings.toBuilder();
                                                                                                                                    +      executeOntapDeleteSettings = settings.executeOntapDeleteSettings.toBuilder();
                                                                                                                                    +      executeOntapPatchSettings = settings.executeOntapPatchSettings.toBuilder();
                                                                                                                                           listLocationsSettings = settings.listLocationsSettings.toBuilder();
                                                                                                                                           getLocationSettings = settings.getLocationSettings.toBuilder();
                                                                                                                                     
                                                                                                                                    @@ -2600,6 +2696,7 @@ protected Builder(NetAppStubSettings settings) {
                                                                                                                                                   updateVolumeSettings,
                                                                                                                                                   deleteVolumeSettings,
                                                                                                                                                   revertVolumeSettings,
                                                                                                                                    +              establishVolumePeeringSettings,
                                                                                                                                                   listSnapshotsSettings,
                                                                                                                                                   getSnapshotSettings,
                                                                                                                                                   createSnapshotSettings,
                                                                                                                                    @@ -2653,6 +2750,10 @@ protected Builder(NetAppStubSettings settings) {
                                                                                                                                                   createHostGroupSettings,
                                                                                                                                                   updateHostGroupSettings,
                                                                                                                                                   deleteHostGroupSettings,
                                                                                                                                    +              executeOntapPostSettings,
                                                                                                                                    +              executeOntapGetSettings,
                                                                                                                                    +              executeOntapDeleteSettings,
                                                                                                                                    +              executeOntapPatchSettings,
                                                                                                                                                   listLocationsSettings,
                                                                                                                                                   getLocationSettings);
                                                                                                                                         }
                                                                                                                                    @@ -2747,6 +2848,11 @@ private static Builder initDefaults(Builder builder) {
                                                                                                                                               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
                                                                                                                                               .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
                                                                                                                                     
                                                                                                                                    +      builder
                                                                                                                                    +          .establishVolumePeeringSettings()
                                                                                                                                    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                                                                                                                                    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                                                                                                                                    +
                                                                                                                                           builder
                                                                                                                                               .listSnapshotsSettings()
                                                                                                                                               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
                                                                                                                                    @@ -3012,6 +3118,26 @@ private static Builder initDefaults(Builder builder) {
                                                                                                                                               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                                                                                                                                               .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                                                                                                                                     
                                                                                                                                    +      builder
                                                                                                                                    +          .executeOntapPostSettings()
                                                                                                                                    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                                                                                                                                    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                                                                                                                                    +
                                                                                                                                    +      builder
                                                                                                                                    +          .executeOntapGetSettings()
                                                                                                                                    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                                                                                                                                    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                                                                                                                                    +
                                                                                                                                    +      builder
                                                                                                                                    +          .executeOntapDeleteSettings()
                                                                                                                                    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                                                                                                                                    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                                                                                                                                    +
                                                                                                                                    +      builder
                                                                                                                                    +          .executeOntapPatchSettings()
                                                                                                                                    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                                                                                                                                    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
                                                                                                                                    +
                                                                                                                                           builder
                                                                                                                                               .listLocationsSettings()
                                                                                                                                               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                                                                                                                                    @@ -3238,6 +3364,30 @@ private static Builder initDefaults(Builder builder) {
                                                                                                                                                           .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                                                                                                                                                           .build()));
                                                                                                                                     
                                                                                                                                    +      builder
                                                                                                                                    +          .establishVolumePeeringOperationSettings()
                                                                                                                                    +          .setInitialCallSettings(
                                                                                                                                    +              UnaryCallSettings
                                                                                                                                    +                  .newUnaryCallSettingsBuilder()
                                                                                                                                    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                                                                                                                                    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
                                                                                                                                    +                  .build())
                                                                                                                                    +          .setResponseTransformer(
                                                                                                                                    +              ProtoOperationTransformers.ResponseTransformer.create(Volume.class))
                                                                                                                                    +          .setMetadataTransformer(
                                                                                                                                    +              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
                                                                                                                                    +          .setPollingAlgorithm(
                                                                                                                                    +              OperationTimedPollAlgorithm.create(
                                                                                                                                    +                  RetrySettings.newBuilder()
                                                                                                                                    +                      .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
                                                                                                                                    +                      .setRetryDelayMultiplier(1.5)
                                                                                                                                    +                      .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
                                                                                                                                    +                      .setInitialRpcTimeoutDuration(Duration.ZERO)
                                                                                                                                    +                      .setRpcTimeoutMultiplier(1.0)
                                                                                                                                    +                      .setMaxRpcTimeoutDuration(Duration.ZERO)
                                                                                                                                    +                      .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                                                                                                                                    +                      .build()));
                                                                                                                                    +
                                                                                                                                           builder
                                                                                                                                               .createSnapshotOperationSettings()
                                                                                                                                               .setInitialCallSettings(
                                                                                                                                    @@ -4203,6 +4353,18 @@ public UnaryCallSettings.Builder revertVolumeSet
                                                                                                                                           return revertVolumeOperationSettings;
                                                                                                                                         }
                                                                                                                                     
                                                                                                                                    +    /** Returns the builder for the settings used for calls to establishVolumePeering. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        establishVolumePeeringSettings() {
                                                                                                                                    +      return establishVolumePeeringSettings;
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                    +    /** Returns the builder for the settings used for calls to establishVolumePeering. */
                                                                                                                                    +    public OperationCallSettings.Builder
                                                                                                                                    +        establishVolumePeeringOperationSettings() {
                                                                                                                                    +      return establishVolumePeeringOperationSettings;
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                         /** Returns the builder for the settings used for calls to listSnapshots. */
                                                                                                                                         public PagedCallSettings.Builder<
                                                                                                                                                 ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>
                                                                                                                                    @@ -4715,6 +4877,30 @@ public UnaryCallSettings.Builder deleteHostGr
                                                                                                                                           return deleteHostGroupOperationSettings;
                                                                                                                                         }
                                                                                                                                     
                                                                                                                                    +    /** Returns the builder for the settings used for calls to executeOntapPost. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapPostSettings() {
                                                                                                                                    +      return executeOntapPostSettings;
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                    +    /** Returns the builder for the settings used for calls to executeOntapGet. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapGetSettings() {
                                                                                                                                    +      return executeOntapGetSettings;
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                    +    /** Returns the builder for the settings used for calls to executeOntapDelete. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapDeleteSettings() {
                                                                                                                                    +      return executeOntapDeleteSettings;
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                    +    /** Returns the builder for the settings used for calls to executeOntapPatch. */
                                                                                                                                    +    public UnaryCallSettings.Builder
                                                                                                                                    +        executeOntapPatchSettings() {
                                                                                                                                    +      return executeOntapPatchSettings;
                                                                                                                                    +    }
                                                                                                                                    +
                                                                                                                                         /** Returns the builder for the settings used for calls to listLocations. */
                                                                                                                                         public PagedCallSettings.Builder<
                                                                                                                                                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/Version.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/Version.java
                                                                                                                                    new file mode 100644
                                                                                                                                    index 000000000000..92241c77a823
                                                                                                                                    --- /dev/null
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/Version.java
                                                                                                                                    @@ -0,0 +1,27 @@
                                                                                                                                    +/*
                                                                                                                                    + * Copyright 2026 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.
                                                                                                                                    + */
                                                                                                                                    +
                                                                                                                                    +package com.google.cloud.netapp.v1.stub;
                                                                                                                                    +
                                                                                                                                    +import com.google.api.core.InternalApi;
                                                                                                                                    +
                                                                                                                                    +@InternalApi("For internal use only")
                                                                                                                                    +final class Version {
                                                                                                                                    +  // {x-version-update-start:google-cloud-netapp:current}
                                                                                                                                    +  static final String VERSION = "0.0.0-SNAPSHOT";
                                                                                                                                    +  // {x-version-update-end}
                                                                                                                                    +
                                                                                                                                    +}
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json
                                                                                                                                    index dfab50d3fd76..c438dacccbd8 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json
                                                                                                                                    @@ -1,4 +1,58 @@
                                                                                                                                     [
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.api.BatchingConfigProto",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.api.BatchingConfigProto$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.api.BatchingDescriptorProto",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.api.BatchingDescriptorProto$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.api.BatchingSettingsProto",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.api.BatchingSettingsProto$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                       {
                                                                                                                                         "name": "com.google.api.ClientLibraryDestination",
                                                                                                                                         "queryAllDeclaredConstructors": true,
                                                                                                                                    @@ -143,6 +197,15 @@
                                                                                                                                         "allDeclaredClasses": true,
                                                                                                                                         "allPublicClasses": true
                                                                                                                                       },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.api.FlowControlLimitExceededBehaviorProto",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                       {
                                                                                                                                         "name": "com.google.api.GoSettings",
                                                                                                                                         "queryAllDeclaredConstructors": true,
                                                                                                                                    @@ -1286,6 +1349,168 @@
                                                                                                                                         "allDeclaredClasses": true,
                                                                                                                                         "allPublicClasses": true
                                                                                                                                       },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.EstablishVolumePeeringRequest",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.EstablishVolumePeeringRequest$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapGetRequest",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapGetRequest$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapGetResponse",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapGetResponse$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapPatchRequest",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapPatchRequest$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapPatchResponse",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapPatchResponse$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapPostRequest",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapPostRequest$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapPostResponse",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.ExecuteOntapPostResponse$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                       {
                                                                                                                                         "name": "com.google.cloud.netapp.v1.ExportPolicy",
                                                                                                                                         "queryAllDeclaredConstructors": true,
                                                                                                                                    @@ -2060,6 +2285,15 @@
                                                                                                                                         "allDeclaredClasses": true,
                                                                                                                                         "allPublicClasses": true
                                                                                                                                       },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.Mode",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                       {
                                                                                                                                         "name": "com.google.cloud.netapp.v1.MonthlySchedule",
                                                                                                                                         "queryAllDeclaredConstructors": true,
                                                                                                                                    @@ -2879,6 +3113,24 @@
                                                                                                                                         "allDeclaredClasses": true,
                                                                                                                                         "allPublicClasses": true
                                                                                                                                       },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.Volume$CloneDetails",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.cloud.netapp.v1.Volume$CloneDetails$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                       {
                                                                                                                                         "name": "com.google.cloud.netapp.v1.Volume$State",
                                                                                                                                         "queryAllDeclaredConstructors": true,
                                                                                                                                    @@ -3914,6 +4166,51 @@
                                                                                                                                         "allDeclaredClasses": true,
                                                                                                                                         "allPublicClasses": true
                                                                                                                                       },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.protobuf.ListValue",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.protobuf.ListValue$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.protobuf.NullValue",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.protobuf.Struct",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.protobuf.Struct$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                       {
                                                                                                                                         "name": "com.google.protobuf.Timestamp",
                                                                                                                                         "queryAllDeclaredConstructors": true,
                                                                                                                                    @@ -3932,6 +4229,24 @@
                                                                                                                                         "allDeclaredClasses": true,
                                                                                                                                         "allPublicClasses": true
                                                                                                                                       },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.protobuf.Value",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                    +  {
                                                                                                                                    +    "name": "com.google.protobuf.Value$Builder",
                                                                                                                                    +    "queryAllDeclaredConstructors": true,
                                                                                                                                    +    "queryAllPublicConstructors": true,
                                                                                                                                    +    "queryAllDeclaredMethods": true,
                                                                                                                                    +    "allPublicMethods": true,
                                                                                                                                    +    "allDeclaredClasses": true,
                                                                                                                                    +    "allPublicClasses": true
                                                                                                                                    +  },
                                                                                                                                       {
                                                                                                                                         "name": "com.google.rpc.Status",
                                                                                                                                         "queryAllDeclaredConstructors": true,
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java
                                                                                                                                    index b83e4c4dce2c..5a4fb80bd456 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/MockNetAppImpl.java
                                                                                                                                    @@ -333,6 +333,28 @@ public void revertVolume(
                                                                                                                                         }
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Override
                                                                                                                                    +  public void establishVolumePeering(
                                                                                                                                    +      EstablishVolumePeeringRequest request, StreamObserver responseObserver) {
                                                                                                                                    +    Object response = responses.poll();
                                                                                                                                    +    if (response instanceof Operation) {
                                                                                                                                    +      requests.add(request);
                                                                                                                                    +      responseObserver.onNext(((Operation) response));
                                                                                                                                    +      responseObserver.onCompleted();
                                                                                                                                    +    } else if (response instanceof Exception) {
                                                                                                                                    +      responseObserver.onError(((Exception) response));
                                                                                                                                    +    } else {
                                                                                                                                    +      responseObserver.onError(
                                                                                                                                    +          new IllegalArgumentException(
                                                                                                                                    +              String.format(
                                                                                                                                    +                  "Unrecognized response type %s for method EstablishVolumePeering, expected %s or"
                                                                                                                                    +                      + " %s",
                                                                                                                                    +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                    +                  Operation.class.getName(),
                                                                                                                                    +                  Exception.class.getName())));
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Override
                                                                                                                                       public void listSnapshots(
                                                                                                                                           ListSnapshotsRequest request, StreamObserver responseObserver) {
                                                                                                                                    @@ -1450,4 +1472,90 @@ public void deleteHostGroup(
                                                                                                                                                       Exception.class.getName())));
                                                                                                                                         }
                                                                                                                                       }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public void executeOntapPost(
                                                                                                                                    +      ExecuteOntapPostRequest request, StreamObserver responseObserver) {
                                                                                                                                    +    Object response = responses.poll();
                                                                                                                                    +    if (response instanceof ExecuteOntapPostResponse) {
                                                                                                                                    +      requests.add(request);
                                                                                                                                    +      responseObserver.onNext(((ExecuteOntapPostResponse) response));
                                                                                                                                    +      responseObserver.onCompleted();
                                                                                                                                    +    } else if (response instanceof Exception) {
                                                                                                                                    +      responseObserver.onError(((Exception) response));
                                                                                                                                    +    } else {
                                                                                                                                    +      responseObserver.onError(
                                                                                                                                    +          new IllegalArgumentException(
                                                                                                                                    +              String.format(
                                                                                                                                    +                  "Unrecognized response type %s for method ExecuteOntapPost, expected %s or %s",
                                                                                                                                    +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                    +                  ExecuteOntapPostResponse.class.getName(),
                                                                                                                                    +                  Exception.class.getName())));
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public void executeOntapGet(
                                                                                                                                    +      ExecuteOntapGetRequest request, StreamObserver responseObserver) {
                                                                                                                                    +    Object response = responses.poll();
                                                                                                                                    +    if (response instanceof ExecuteOntapGetResponse) {
                                                                                                                                    +      requests.add(request);
                                                                                                                                    +      responseObserver.onNext(((ExecuteOntapGetResponse) response));
                                                                                                                                    +      responseObserver.onCompleted();
                                                                                                                                    +    } else if (response instanceof Exception) {
                                                                                                                                    +      responseObserver.onError(((Exception) response));
                                                                                                                                    +    } else {
                                                                                                                                    +      responseObserver.onError(
                                                                                                                                    +          new IllegalArgumentException(
                                                                                                                                    +              String.format(
                                                                                                                                    +                  "Unrecognized response type %s for method ExecuteOntapGet, expected %s or %s",
                                                                                                                                    +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                    +                  ExecuteOntapGetResponse.class.getName(),
                                                                                                                                    +                  Exception.class.getName())));
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public void executeOntapDelete(
                                                                                                                                    +      ExecuteOntapDeleteRequest request,
                                                                                                                                    +      StreamObserver responseObserver) {
                                                                                                                                    +    Object response = responses.poll();
                                                                                                                                    +    if (response instanceof ExecuteOntapDeleteResponse) {
                                                                                                                                    +      requests.add(request);
                                                                                                                                    +      responseObserver.onNext(((ExecuteOntapDeleteResponse) response));
                                                                                                                                    +      responseObserver.onCompleted();
                                                                                                                                    +    } else if (response instanceof Exception) {
                                                                                                                                    +      responseObserver.onError(((Exception) response));
                                                                                                                                    +    } else {
                                                                                                                                    +      responseObserver.onError(
                                                                                                                                    +          new IllegalArgumentException(
                                                                                                                                    +              String.format(
                                                                                                                                    +                  "Unrecognized response type %s for method ExecuteOntapDelete, expected %s or %s",
                                                                                                                                    +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                    +                  ExecuteOntapDeleteResponse.class.getName(),
                                                                                                                                    +                  Exception.class.getName())));
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Override
                                                                                                                                    +  public void executeOntapPatch(
                                                                                                                                    +      ExecuteOntapPatchRequest request,
                                                                                                                                    +      StreamObserver responseObserver) {
                                                                                                                                    +    Object response = responses.poll();
                                                                                                                                    +    if (response instanceof ExecuteOntapPatchResponse) {
                                                                                                                                    +      requests.add(request);
                                                                                                                                    +      responseObserver.onNext(((ExecuteOntapPatchResponse) response));
                                                                                                                                    +      responseObserver.onCompleted();
                                                                                                                                    +    } else if (response instanceof Exception) {
                                                                                                                                    +      responseObserver.onError(((Exception) response));
                                                                                                                                    +    } else {
                                                                                                                                    +      responseObserver.onError(
                                                                                                                                    +          new IllegalArgumentException(
                                                                                                                                    +              String.format(
                                                                                                                                    +                  "Unrecognized response type %s for method ExecuteOntapPatch, expected %s or %s",
                                                                                                                                    +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                    +                  ExecuteOntapPatchResponse.class.getName(),
                                                                                                                                    +                  Exception.class.getName())));
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                     }
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java
                                                                                                                                    index e0aa5a0d93c2..ac6c02b6fca0 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java
                                                                                                                                    @@ -48,6 +48,7 @@
                                                                                                                                     import com.google.protobuf.Any;
                                                                                                                                     import com.google.protobuf.Empty;
                                                                                                                                     import com.google.protobuf.FieldMask;
                                                                                                                                    +import com.google.protobuf.Struct;
                                                                                                                                     import com.google.protobuf.Timestamp;
                                                                                                                                     import java.io.IOException;
                                                                                                                                     import java.util.ArrayList;
                                                                                                                                    @@ -233,6 +234,7 @@ public void createStoragePoolTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -318,6 +320,7 @@ public void createStoragePoolTest2() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -403,6 +406,7 @@ public void getStoragePoolTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         mockService.addResponse(expectedResponse);
                                                                                                                                     
                                                                                                                                    @@ -478,6 +482,7 @@ public void getStoragePoolTest2() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         mockService.addResponse(expectedResponse);
                                                                                                                                     
                                                                                                                                    @@ -553,6 +558,7 @@ public void updateStoragePoolTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -596,6 +602,7 @@ public void updateStoragePoolTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                     
                                                                                                                                    @@ -660,6 +667,7 @@ public void updateStoragePoolExceptionTest() throws Exception {
                                                                                                                                                   .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                   .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                   .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +              .setMode(Mode.forNumber(0))
                                                                                                                                                   .build();
                                                                                                                                           FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                           client.updateStoragePoolAsync(storagePool, updateMask).get();
                                                                                                                                    @@ -847,6 +855,7 @@ public void switchActiveReplicaZoneTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1044,6 +1053,7 @@ public void getVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         mockService.addResponse(expectedResponse);
                                                                                                                                     
                                                                                                                                    @@ -1130,6 +1140,7 @@ public void getVolumeTest2() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         mockService.addResponse(expectedResponse);
                                                                                                                                     
                                                                                                                                    @@ -1216,6 +1227,7 @@ public void createVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1311,6 +1323,7 @@ public void createVolumeTest2() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1406,6 +1419,7 @@ public void updateVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1460,6 +1474,7 @@ public void updateVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                     
                                                                                                                                    @@ -1535,6 +1550,7 @@ public void updateVolumeExceptionTest() throws Exception {
                                                                                                                                                   .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                   .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                   .addAllBlockDevices(new ArrayList())
                                                                                                                                    +              .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                   .build();
                                                                                                                                           FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                           client.updateVolumeAsync(volume, updateMask).get();
                                                                                                                                    @@ -1680,6 +1696,7 @@ public void revertVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1732,6 +1749,112 @@ public void revertVolumeExceptionTest() throws Exception {
                                                                                                                                         }
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Test
                                                                                                                                    +  public void establishVolumePeeringTest() throws Exception {
                                                                                                                                    +    Volume expectedResponse =
                                                                                                                                    +        Volume.newBuilder()
                                                                                                                                    +            .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +            .setStateDetails("stateDetails1730982001")
                                                                                                                                    +            .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                    +            .setShareName("shareName-1582221558")
                                                                                                                                    +            .setPsaRange("psaRange-534274785")
                                                                                                                                    +            .setStoragePool(
                                                                                                                                    +                StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
                                                                                                                                    +            .setNetwork("network1843485230")
                                                                                                                                    +            .setServiceLevel(ServiceLevel.forNumber(0))
                                                                                                                                    +            .setCapacityGib(498394811)
                                                                                                                                    +            .setExportPolicy(ExportPolicy.newBuilder().build())
                                                                                                                                    +            .addAllProtocols(new ArrayList())
                                                                                                                                    +            .addAllSmbSettings(new ArrayList())
                                                                                                                                    +            .addAllMountOptions(new ArrayList())
                                                                                                                                    +            .setUnixPermissions("unixPermissions882114012")
                                                                                                                                    +            .putAllLabels(new HashMap())
                                                                                                                                    +            .setDescription("description-1724546052")
                                                                                                                                    +            .setSnapshotPolicy(SnapshotPolicy.newBuilder().build())
                                                                                                                                    +            .setSnapReserve(-1429587641)
                                                                                                                                    +            .setSnapshotDirectory(true)
                                                                                                                                    +            .setUsedGib(-279083970)
                                                                                                                                    +            .setSecurityStyle(SecurityStyle.forNumber(0))
                                                                                                                                    +            .setKerberosEnabled(true)
                                                                                                                                    +            .setLdapEnabled(true)
                                                                                                                                    +            .setActiveDirectory(
                                                                                                                                    +                ActiveDirectoryName.of("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]").toString())
                                                                                                                                    +            .setRestoreParameters(RestoreParameters.newBuilder().build())
                                                                                                                                    +            .setKmsConfig(KmsConfigName.of("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]").toString())
                                                                                                                                    +            .setEncryptionType(EncryptionType.forNumber(0))
                                                                                                                                    +            .setHasReplication(true)
                                                                                                                                    +            .setBackupConfig(BackupConfig.newBuilder().build())
                                                                                                                                    +            .addAllRestrictedActions(new ArrayList())
                                                                                                                                    +            .setLargeCapacity(true)
                                                                                                                                    +            .setMultipleEndpoints(true)
                                                                                                                                    +            .setTieringPolicy(TieringPolicy.newBuilder().build())
                                                                                                                                    +            .setReplicaZone("replicaZone-1063236476")
                                                                                                                                    +            .setZone("zone3744684")
                                                                                                                                    +            .setColdTierSizeGib(212809252)
                                                                                                                                    +            .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build())
                                                                                                                                    +            .setThroughputMibps(1498696820)
                                                                                                                                    +            .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                    +            .setHotTierSizeUsedGib(-151116719)
                                                                                                                                    +            .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                    +            .build();
                                                                                                                                    +    Operation resultOperation =
                                                                                                                                    +        Operation.newBuilder()
                                                                                                                                    +            .setName("establishVolumePeeringTest")
                                                                                                                                    +            .setDone(true)
                                                                                                                                    +            .setResponse(Any.pack(expectedResponse))
                                                                                                                                    +            .build();
                                                                                                                                    +    mockService.addResponse(resultOperation);
                                                                                                                                    +
                                                                                                                                    +    EstablishVolumePeeringRequest request =
                                                                                                                                    +        EstablishVolumePeeringRequest.newBuilder()
                                                                                                                                    +            .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +            .setPeerClusterName("peerClusterName313022691")
                                                                                                                                    +            .setPeerSvmName("peerSvmName1014209619")
                                                                                                                                    +            .addAllPeerIpAddresses(new ArrayList())
                                                                                                                                    +            .setPeerVolumeName("peerVolumeName1542206407")
                                                                                                                                    +            .build();
                                                                                                                                    +
                                                                                                                                    +    Volume actualResponse = client.establishVolumePeeringAsync(request).get();
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockService.getRequestPaths();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +
                                                                                                                                    +    String apiClientHeaderKey =
                                                                                                                                    +        mockService
                                                                                                                                    +            .getRequestHeaders()
                                                                                                                                    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
                                                                                                                                    +            .iterator()
                                                                                                                                    +            .next();
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
                                                                                                                                    +            .matcher(apiClientHeaderKey)
                                                                                                                                    +            .matches());
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void establishVolumePeeringExceptionTest() throws Exception {
                                                                                                                                    +    ApiException exception =
                                                                                                                                    +        ApiExceptionFactory.createException(
                                                                                                                                    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
                                                                                                                                    +    mockService.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      EstablishVolumePeeringRequest request =
                                                                                                                                    +          EstablishVolumePeeringRequest.newBuilder()
                                                                                                                                    +              .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +              .setPeerClusterName("peerClusterName313022691")
                                                                                                                                    +              .setPeerSvmName("peerSvmName1014209619")
                                                                                                                                    +              .addAllPeerIpAddresses(new ArrayList())
                                                                                                                                    +              .setPeerVolumeName("peerVolumeName1542206407")
                                                                                                                                    +              .build();
                                                                                                                                    +      client.establishVolumePeeringAsync(request).get();
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (ExecutionException e) {
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Test
                                                                                                                                       public void listSnapshotsTest() throws Exception {
                                                                                                                                         Snapshot responsesElement = Snapshot.newBuilder().build();
                                                                                                                                    @@ -6949,6 +7072,210 @@ public void deleteHostGroupExceptionTest2() throws Exception {
                                                                                                                                         }
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapPostTest() throws Exception {
                                                                                                                                    +    ExecuteOntapPostResponse expectedResponse =
                                                                                                                                    +        ExecuteOntapPostResponse.newBuilder().setBody(Struct.newBuilder().build()).build();
                                                                                                                                    +    mockService.addResponse(expectedResponse);
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapPostRequest request =
                                                                                                                                    +        ExecuteOntapPostRequest.newBuilder()
                                                                                                                                    +            .setBody(Struct.newBuilder().build())
                                                                                                                                    +            .setOntapPath(
                                                                                                                                    +                "projects/project-7340/locations/location-7340/storagePools/storagePool-7340/ontap/onta-7340")
                                                                                                                                    +            .build();
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapPostResponse actualResponse = client.executeOntapPost(request);
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockService.getRequestPaths();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +
                                                                                                                                    +    String apiClientHeaderKey =
                                                                                                                                    +        mockService
                                                                                                                                    +            .getRequestHeaders()
                                                                                                                                    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
                                                                                                                                    +            .iterator()
                                                                                                                                    +            .next();
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
                                                                                                                                    +            .matcher(apiClientHeaderKey)
                                                                                                                                    +            .matches());
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapPostExceptionTest() throws Exception {
                                                                                                                                    +    ApiException exception =
                                                                                                                                    +        ApiExceptionFactory.createException(
                                                                                                                                    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
                                                                                                                                    +    mockService.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      ExecuteOntapPostRequest request =
                                                                                                                                    +          ExecuteOntapPostRequest.newBuilder()
                                                                                                                                    +              .setBody(Struct.newBuilder().build())
                                                                                                                                    +              .setOntapPath(
                                                                                                                                    +                  "projects/project-7340/locations/location-7340/storagePools/storagePool-7340/ontap/onta-7340")
                                                                                                                                    +              .build();
                                                                                                                                    +      client.executeOntapPost(request);
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (InvalidArgumentException e) {
                                                                                                                                    +      // Expected exception.
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapGetTest() throws Exception {
                                                                                                                                    +    ExecuteOntapGetResponse expectedResponse =
                                                                                                                                    +        ExecuteOntapGetResponse.newBuilder().setBody(Struct.newBuilder().build()).build();
                                                                                                                                    +    mockService.addResponse(expectedResponse);
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapGetRequest request =
                                                                                                                                    +        ExecuteOntapGetRequest.newBuilder()
                                                                                                                                    +            .setOntapPath(
                                                                                                                                    +                "projects/project-7340/locations/location-7340/storagePools/storagePool-7340/ontap/onta-7340")
                                                                                                                                    +            .build();
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapGetResponse actualResponse = client.executeOntapGet(request);
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockService.getRequestPaths();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +
                                                                                                                                    +    String apiClientHeaderKey =
                                                                                                                                    +        mockService
                                                                                                                                    +            .getRequestHeaders()
                                                                                                                                    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
                                                                                                                                    +            .iterator()
                                                                                                                                    +            .next();
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
                                                                                                                                    +            .matcher(apiClientHeaderKey)
                                                                                                                                    +            .matches());
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapGetExceptionTest() throws Exception {
                                                                                                                                    +    ApiException exception =
                                                                                                                                    +        ApiExceptionFactory.createException(
                                                                                                                                    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
                                                                                                                                    +    mockService.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      ExecuteOntapGetRequest request =
                                                                                                                                    +          ExecuteOntapGetRequest.newBuilder()
                                                                                                                                    +              .setOntapPath(
                                                                                                                                    +                  "projects/project-7340/locations/location-7340/storagePools/storagePool-7340/ontap/onta-7340")
                                                                                                                                    +              .build();
                                                                                                                                    +      client.executeOntapGet(request);
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (InvalidArgumentException e) {
                                                                                                                                    +      // Expected exception.
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapDeleteTest() throws Exception {
                                                                                                                                    +    ExecuteOntapDeleteResponse expectedResponse =
                                                                                                                                    +        ExecuteOntapDeleteResponse.newBuilder().setBody(Struct.newBuilder().build()).build();
                                                                                                                                    +    mockService.addResponse(expectedResponse);
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapDeleteRequest request =
                                                                                                                                    +        ExecuteOntapDeleteRequest.newBuilder()
                                                                                                                                    +            .setOntapPath(
                                                                                                                                    +                "projects/project-7340/locations/location-7340/storagePools/storagePool-7340/ontap/onta-7340")
                                                                                                                                    +            .build();
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapDeleteResponse actualResponse = client.executeOntapDelete(request);
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockService.getRequestPaths();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +
                                                                                                                                    +    String apiClientHeaderKey =
                                                                                                                                    +        mockService
                                                                                                                                    +            .getRequestHeaders()
                                                                                                                                    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
                                                                                                                                    +            .iterator()
                                                                                                                                    +            .next();
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
                                                                                                                                    +            .matcher(apiClientHeaderKey)
                                                                                                                                    +            .matches());
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapDeleteExceptionTest() throws Exception {
                                                                                                                                    +    ApiException exception =
                                                                                                                                    +        ApiExceptionFactory.createException(
                                                                                                                                    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
                                                                                                                                    +    mockService.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      ExecuteOntapDeleteRequest request =
                                                                                                                                    +          ExecuteOntapDeleteRequest.newBuilder()
                                                                                                                                    +              .setOntapPath(
                                                                                                                                    +                  "projects/project-7340/locations/location-7340/storagePools/storagePool-7340/ontap/onta-7340")
                                                                                                                                    +              .build();
                                                                                                                                    +      client.executeOntapDelete(request);
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (InvalidArgumentException e) {
                                                                                                                                    +      // Expected exception.
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapPatchTest() throws Exception {
                                                                                                                                    +    ExecuteOntapPatchResponse expectedResponse =
                                                                                                                                    +        ExecuteOntapPatchResponse.newBuilder().setBody(Struct.newBuilder().build()).build();
                                                                                                                                    +    mockService.addResponse(expectedResponse);
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapPatchRequest request =
                                                                                                                                    +        ExecuteOntapPatchRequest.newBuilder()
                                                                                                                                    +            .setBody(Struct.newBuilder().build())
                                                                                                                                    +            .setOntapPath(
                                                                                                                                    +                "projects/project-7340/locations/location-7340/storagePools/storagePool-7340/ontap/onta-7340")
                                                                                                                                    +            .build();
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapPatchResponse actualResponse = client.executeOntapPatch(request);
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockService.getRequestPaths();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +
                                                                                                                                    +    String apiClientHeaderKey =
                                                                                                                                    +        mockService
                                                                                                                                    +            .getRequestHeaders()
                                                                                                                                    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
                                                                                                                                    +            .iterator()
                                                                                                                                    +            .next();
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
                                                                                                                                    +            .matcher(apiClientHeaderKey)
                                                                                                                                    +            .matches());
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapPatchExceptionTest() throws Exception {
                                                                                                                                    +    ApiException exception =
                                                                                                                                    +        ApiExceptionFactory.createException(
                                                                                                                                    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
                                                                                                                                    +    mockService.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      ExecuteOntapPatchRequest request =
                                                                                                                                    +          ExecuteOntapPatchRequest.newBuilder()
                                                                                                                                    +              .setBody(Struct.newBuilder().build())
                                                                                                                                    +              .setOntapPath(
                                                                                                                                    +                  "projects/project-7340/locations/location-7340/storagePools/storagePool-7340/ontap/onta-7340")
                                                                                                                                    +              .build();
                                                                                                                                    +      client.executeOntapPatch(request);
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (InvalidArgumentException e) {
                                                                                                                                    +      // Expected exception.
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Test
                                                                                                                                       public void listLocationsTest() throws Exception {
                                                                                                                                         Location responsesElement = Location.newBuilder().build();
                                                                                                                                    diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java
                                                                                                                                    index 01a87d8319e1..b0582e202da8 100644
                                                                                                                                    --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java
                                                                                                                                    +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java
                                                                                                                                    @@ -47,6 +47,7 @@
                                                                                                                                     import com.google.protobuf.Any;
                                                                                                                                     import com.google.protobuf.Empty;
                                                                                                                                     import com.google.protobuf.FieldMask;
                                                                                                                                    +import com.google.protobuf.Struct;
                                                                                                                                     import com.google.protobuf.Timestamp;
                                                                                                                                     import io.grpc.StatusRuntimeException;
                                                                                                                                     import java.io.IOException;
                                                                                                                                    @@ -229,6 +230,7 @@ public void createStoragePoolTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -313,6 +315,7 @@ public void createStoragePoolTest2() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -397,6 +400,7 @@ public void getStoragePoolTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         mockNetApp.addResponse(expectedResponse);
                                                                                                                                     
                                                                                                                                    @@ -466,6 +470,7 @@ public void getStoragePoolTest2() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         mockNetApp.addResponse(expectedResponse);
                                                                                                                                     
                                                                                                                                    @@ -535,6 +540,7 @@ public void updateStoragePoolTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -751,6 +757,7 @@ public void switchActiveReplicaZoneTest() throws Exception {
                                                                                                                                                 .setColdTierSizeUsedGib(-1242809254)
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .setType(StoragePoolType.forNumber(0))
                                                                                                                                    +            .setMode(Mode.forNumber(0))
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -934,6 +941,7 @@ public void getVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         mockNetApp.addResponse(expectedResponse);
                                                                                                                                     
                                                                                                                                    @@ -1014,6 +1022,7 @@ public void getVolumeTest2() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         mockNetApp.addResponse(expectedResponse);
                                                                                                                                     
                                                                                                                                    @@ -1094,6 +1103,7 @@ public void createVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1188,6 +1198,7 @@ public void createVolumeTest2() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1282,6 +1293,7 @@ public void updateVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1457,6 +1469,7 @@ public void revertVolumeTest() throws Exception {
                                                                                                                                                 .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                                 .setHotTierSizeUsedGib(-151116719)
                                                                                                                                                 .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                                 .build();
                                                                                                                                         Operation resultOperation =
                                                                                                                                             Operation.newBuilder()
                                                                                                                                    @@ -1507,6 +1520,114 @@ public void revertVolumeExceptionTest() throws Exception {
                                                                                                                                         }
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Test
                                                                                                                                    +  public void establishVolumePeeringTest() throws Exception {
                                                                                                                                    +    Volume expectedResponse =
                                                                                                                                    +        Volume.newBuilder()
                                                                                                                                    +            .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +            .setStateDetails("stateDetails1730982001")
                                                                                                                                    +            .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                    +            .setShareName("shareName-1582221558")
                                                                                                                                    +            .setPsaRange("psaRange-534274785")
                                                                                                                                    +            .setStoragePool(
                                                                                                                                    +                StoragePoolName.of("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]").toString())
                                                                                                                                    +            .setNetwork("network1843485230")
                                                                                                                                    +            .setServiceLevel(ServiceLevel.forNumber(0))
                                                                                                                                    +            .setCapacityGib(498394811)
                                                                                                                                    +            .setExportPolicy(ExportPolicy.newBuilder().build())
                                                                                                                                    +            .addAllProtocols(new ArrayList())
                                                                                                                                    +            .addAllSmbSettings(new ArrayList())
                                                                                                                                    +            .addAllMountOptions(new ArrayList())
                                                                                                                                    +            .setUnixPermissions("unixPermissions882114012")
                                                                                                                                    +            .putAllLabels(new HashMap())
                                                                                                                                    +            .setDescription("description-1724546052")
                                                                                                                                    +            .setSnapshotPolicy(SnapshotPolicy.newBuilder().build())
                                                                                                                                    +            .setSnapReserve(-1429587641)
                                                                                                                                    +            .setSnapshotDirectory(true)
                                                                                                                                    +            .setUsedGib(-279083970)
                                                                                                                                    +            .setSecurityStyle(SecurityStyle.forNumber(0))
                                                                                                                                    +            .setKerberosEnabled(true)
                                                                                                                                    +            .setLdapEnabled(true)
                                                                                                                                    +            .setActiveDirectory(
                                                                                                                                    +                ActiveDirectoryName.of("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]").toString())
                                                                                                                                    +            .setRestoreParameters(RestoreParameters.newBuilder().build())
                                                                                                                                    +            .setKmsConfig(KmsConfigName.of("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]").toString())
                                                                                                                                    +            .setEncryptionType(EncryptionType.forNumber(0))
                                                                                                                                    +            .setHasReplication(true)
                                                                                                                                    +            .setBackupConfig(BackupConfig.newBuilder().build())
                                                                                                                                    +            .addAllRestrictedActions(new ArrayList())
                                                                                                                                    +            .setLargeCapacity(true)
                                                                                                                                    +            .setMultipleEndpoints(true)
                                                                                                                                    +            .setTieringPolicy(TieringPolicy.newBuilder().build())
                                                                                                                                    +            .setReplicaZone("replicaZone-1063236476")
                                                                                                                                    +            .setZone("zone3744684")
                                                                                                                                    +            .setColdTierSizeGib(212809252)
                                                                                                                                    +            .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build())
                                                                                                                                    +            .setThroughputMibps(1498696820)
                                                                                                                                    +            .setCacheParameters(CacheParameters.newBuilder().build())
                                                                                                                                    +            .setHotTierSizeUsedGib(-151116719)
                                                                                                                                    +            .addAllBlockDevices(new ArrayList())
                                                                                                                                    +            .setCloneDetails(Volume.CloneDetails.newBuilder().build())
                                                                                                                                    +            .build();
                                                                                                                                    +    Operation resultOperation =
                                                                                                                                    +        Operation.newBuilder()
                                                                                                                                    +            .setName("establishVolumePeeringTest")
                                                                                                                                    +            .setDone(true)
                                                                                                                                    +            .setResponse(Any.pack(expectedResponse))
                                                                                                                                    +            .build();
                                                                                                                                    +    mockNetApp.addResponse(resultOperation);
                                                                                                                                    +
                                                                                                                                    +    EstablishVolumePeeringRequest request =
                                                                                                                                    +        EstablishVolumePeeringRequest.newBuilder()
                                                                                                                                    +            .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +            .setPeerClusterName("peerClusterName313022691")
                                                                                                                                    +            .setPeerSvmName("peerSvmName1014209619")
                                                                                                                                    +            .addAllPeerIpAddresses(new ArrayList())
                                                                                                                                    +            .setPeerVolumeName("peerVolumeName1542206407")
                                                                                                                                    +            .build();
                                                                                                                                    +
                                                                                                                                    +    Volume actualResponse = client.establishVolumePeeringAsync(request).get();
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockNetApp.getRequests();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +    EstablishVolumePeeringRequest actualRequest =
                                                                                                                                    +        ((EstablishVolumePeeringRequest) actualRequests.get(0));
                                                                                                                                    +
                                                                                                                                    +    Assert.assertEquals(request.getName(), actualRequest.getName());
                                                                                                                                    +    Assert.assertEquals(request.getPeerClusterName(), actualRequest.getPeerClusterName());
                                                                                                                                    +    Assert.assertEquals(request.getPeerSvmName(), actualRequest.getPeerSvmName());
                                                                                                                                    +    Assert.assertEquals(request.getPeerIpAddressesList(), actualRequest.getPeerIpAddressesList());
                                                                                                                                    +    Assert.assertEquals(request.getPeerVolumeName(), actualRequest.getPeerVolumeName());
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        channelProvider.isHeaderSent(
                                                                                                                                    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
                                                                                                                                    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void establishVolumePeeringExceptionTest() throws Exception {
                                                                                                                                    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
                                                                                                                                    +    mockNetApp.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      EstablishVolumePeeringRequest request =
                                                                                                                                    +          EstablishVolumePeeringRequest.newBuilder()
                                                                                                                                    +              .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString())
                                                                                                                                    +              .setPeerClusterName("peerClusterName313022691")
                                                                                                                                    +              .setPeerSvmName("peerSvmName1014209619")
                                                                                                                                    +              .addAllPeerIpAddresses(new ArrayList())
                                                                                                                                    +              .setPeerVolumeName("peerVolumeName1542206407")
                                                                                                                                    +              .build();
                                                                                                                                    +      client.establishVolumePeeringAsync(request).get();
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (ExecutionException e) {
                                                                                                                                    +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
                                                                                                                                    +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
                                                                                                                                    +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Test
                                                                                                                                       public void listSnapshotsTest() throws Exception {
                                                                                                                                         Snapshot responsesElement = Snapshot.newBuilder().build();
                                                                                                                                    @@ -6142,6 +6263,172 @@ public void deleteHostGroupExceptionTest2() throws Exception {
                                                                                                                                         }
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapPostTest() throws Exception {
                                                                                                                                    +    ExecuteOntapPostResponse expectedResponse =
                                                                                                                                    +        ExecuteOntapPostResponse.newBuilder().setBody(Struct.newBuilder().build()).build();
                                                                                                                                    +    mockNetApp.addResponse(expectedResponse);
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapPostRequest request =
                                                                                                                                    +        ExecuteOntapPostRequest.newBuilder()
                                                                                                                                    +            .setBody(Struct.newBuilder().build())
                                                                                                                                    +            .setOntapPath("ontapPath-1869187159")
                                                                                                                                    +            .build();
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapPostResponse actualResponse = client.executeOntapPost(request);
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockNetApp.getRequests();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +    ExecuteOntapPostRequest actualRequest = ((ExecuteOntapPostRequest) actualRequests.get(0));
                                                                                                                                    +
                                                                                                                                    +    Assert.assertEquals(request.getBody(), actualRequest.getBody());
                                                                                                                                    +    Assert.assertEquals(request.getOntapPath(), actualRequest.getOntapPath());
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        channelProvider.isHeaderSent(
                                                                                                                                    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
                                                                                                                                    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapPostExceptionTest() throws Exception {
                                                                                                                                    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
                                                                                                                                    +    mockNetApp.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      ExecuteOntapPostRequest request =
                                                                                                                                    +          ExecuteOntapPostRequest.newBuilder()
                                                                                                                                    +              .setBody(Struct.newBuilder().build())
                                                                                                                                    +              .setOntapPath("ontapPath-1869187159")
                                                                                                                                    +              .build();
                                                                                                                                    +      client.executeOntapPost(request);
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (InvalidArgumentException e) {
                                                                                                                                    +      // Expected exception.
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapGetTest() throws Exception {
                                                                                                                                    +    ExecuteOntapGetResponse expectedResponse =
                                                                                                                                    +        ExecuteOntapGetResponse.newBuilder().setBody(Struct.newBuilder().build()).build();
                                                                                                                                    +    mockNetApp.addResponse(expectedResponse);
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapGetRequest request =
                                                                                                                                    +        ExecuteOntapGetRequest.newBuilder().setOntapPath("ontapPath-1869187159").build();
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapGetResponse actualResponse = client.executeOntapGet(request);
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockNetApp.getRequests();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +    ExecuteOntapGetRequest actualRequest = ((ExecuteOntapGetRequest) actualRequests.get(0));
                                                                                                                                    +
                                                                                                                                    +    Assert.assertEquals(request.getOntapPath(), actualRequest.getOntapPath());
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        channelProvider.isHeaderSent(
                                                                                                                                    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
                                                                                                                                    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapGetExceptionTest() throws Exception {
                                                                                                                                    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
                                                                                                                                    +    mockNetApp.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      ExecuteOntapGetRequest request =
                                                                                                                                    +          ExecuteOntapGetRequest.newBuilder().setOntapPath("ontapPath-1869187159").build();
                                                                                                                                    +      client.executeOntapGet(request);
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (InvalidArgumentException e) {
                                                                                                                                    +      // Expected exception.
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapDeleteTest() throws Exception {
                                                                                                                                    +    ExecuteOntapDeleteResponse expectedResponse =
                                                                                                                                    +        ExecuteOntapDeleteResponse.newBuilder().setBody(Struct.newBuilder().build()).build();
                                                                                                                                    +    mockNetApp.addResponse(expectedResponse);
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapDeleteRequest request =
                                                                                                                                    +        ExecuteOntapDeleteRequest.newBuilder().setOntapPath("ontapPath-1869187159").build();
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapDeleteResponse actualResponse = client.executeOntapDelete(request);
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockNetApp.getRequests();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +    ExecuteOntapDeleteRequest actualRequest = ((ExecuteOntapDeleteRequest) actualRequests.get(0));
                                                                                                                                    +
                                                                                                                                    +    Assert.assertEquals(request.getOntapPath(), actualRequest.getOntapPath());
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        channelProvider.isHeaderSent(
                                                                                                                                    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
                                                                                                                                    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapDeleteExceptionTest() throws Exception {
                                                                                                                                    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
                                                                                                                                    +    mockNetApp.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      ExecuteOntapDeleteRequest request =
                                                                                                                                    +          ExecuteOntapDeleteRequest.newBuilder().setOntapPath("ontapPath-1869187159").build();
                                                                                                                                    +      client.executeOntapDelete(request);
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (InvalidArgumentException e) {
                                                                                                                                    +      // Expected exception.
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapPatchTest() throws Exception {
                                                                                                                                    +    ExecuteOntapPatchResponse expectedResponse =
                                                                                                                                    +        ExecuteOntapPatchResponse.newBuilder().setBody(Struct.newBuilder().build()).build();
                                                                                                                                    +    mockNetApp.addResponse(expectedResponse);
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapPatchRequest request =
                                                                                                                                    +        ExecuteOntapPatchRequest.newBuilder()
                                                                                                                                    +            .setBody(Struct.newBuilder().build())
                                                                                                                                    +            .setOntapPath("ontapPath-1869187159")
                                                                                                                                    +            .build();
                                                                                                                                    +
                                                                                                                                    +    ExecuteOntapPatchResponse actualResponse = client.executeOntapPatch(request);
                                                                                                                                    +    Assert.assertEquals(expectedResponse, actualResponse);
                                                                                                                                    +
                                                                                                                                    +    List actualRequests = mockNetApp.getRequests();
                                                                                                                                    +    Assert.assertEquals(1, actualRequests.size());
                                                                                                                                    +    ExecuteOntapPatchRequest actualRequest = ((ExecuteOntapPatchRequest) actualRequests.get(0));
                                                                                                                                    +
                                                                                                                                    +    Assert.assertEquals(request.getBody(), actualRequest.getBody());
                                                                                                                                    +    Assert.assertEquals(request.getOntapPath(), actualRequest.getOntapPath());
                                                                                                                                    +    Assert.assertTrue(
                                                                                                                                    +        channelProvider.isHeaderSent(
                                                                                                                                    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
                                                                                                                                    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  @Test
                                                                                                                                    +  public void executeOntapPatchExceptionTest() throws Exception {
                                                                                                                                    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
                                                                                                                                    +    mockNetApp.addException(exception);
                                                                                                                                    +
                                                                                                                                    +    try {
                                                                                                                                    +      ExecuteOntapPatchRequest request =
                                                                                                                                    +          ExecuteOntapPatchRequest.newBuilder()
                                                                                                                                    +              .setBody(Struct.newBuilder().build())
                                                                                                                                    +              .setOntapPath("ontapPath-1869187159")
                                                                                                                                    +              .build();
                                                                                                                                    +      client.executeOntapPatch(request);
                                                                                                                                    +      Assert.fail("No exception raised");
                                                                                                                                    +    } catch (InvalidArgumentException e) {
                                                                                                                                    +      // Expected exception.
                                                                                                                                    +    }
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       @Test
                                                                                                                                       public void listLocationsTest() throws Exception {
                                                                                                                                         Location responsesElement = Location.newBuilder().build();
                                                                                                                                    diff --git a/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java b/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java
                                                                                                                                    index edef476da8ac..7c8dd23dbfca 100644
                                                                                                                                    --- a/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java
                                                                                                                                    +++ b/java-netapp/grpc-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/NetAppGrpc.java
                                                                                                                                    @@ -593,6 +593,54 @@ private NetAppGrpc() {}
                                                                                                                                         return getRevertVolumeMethod;
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  private static volatile io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.EstablishVolumePeeringRequest,
                                                                                                                                    +          com.google.longrunning.Operation>
                                                                                                                                    +      getEstablishVolumePeeringMethod;
                                                                                                                                    +
                                                                                                                                    +  @io.grpc.stub.annotations.RpcMethod(
                                                                                                                                    +      fullMethodName = SERVICE_NAME + '/' + "EstablishVolumePeering",
                                                                                                                                    +      requestType = com.google.cloud.netapp.v1.EstablishVolumePeeringRequest.class,
                                                                                                                                    +      responseType = com.google.longrunning.Operation.class,
                                                                                                                                    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +  public static io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.EstablishVolumePeeringRequest,
                                                                                                                                    +          com.google.longrunning.Operation>
                                                                                                                                    +      getEstablishVolumePeeringMethod() {
                                                                                                                                    +    io.grpc.MethodDescriptor<
                                                                                                                                    +            com.google.cloud.netapp.v1.EstablishVolumePeeringRequest,
                                                                                                                                    +            com.google.longrunning.Operation>
                                                                                                                                    +        getEstablishVolumePeeringMethod;
                                                                                                                                    +    if ((getEstablishVolumePeeringMethod = NetAppGrpc.getEstablishVolumePeeringMethod) == null) {
                                                                                                                                    +      synchronized (NetAppGrpc.class) {
                                                                                                                                    +        if ((getEstablishVolumePeeringMethod = NetAppGrpc.getEstablishVolumePeeringMethod)
                                                                                                                                    +            == null) {
                                                                                                                                    +          NetAppGrpc.getEstablishVolumePeeringMethod =
                                                                                                                                    +              getEstablishVolumePeeringMethod =
                                                                                                                                    +                  io.grpc.MethodDescriptor
                                                                                                                                    +                      .
                                                                                                                                    +                          newBuilder()
                                                                                                                                    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +                      .setFullMethodName(
                                                                                                                                    +                          generateFullMethodName(SERVICE_NAME, "EstablishVolumePeering"))
                                                                                                                                    +                      .setSampledToLocalTracing(true)
                                                                                                                                    +                      .setRequestMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.EstablishVolumePeeringRequest
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setResponseMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                                                                    +                      .setSchemaDescriptor(
                                                                                                                                    +                          new NetAppMethodDescriptorSupplier("EstablishVolumePeering"))
                                                                                                                                    +                      .build();
                                                                                                                                    +        }
                                                                                                                                    +      }
                                                                                                                                    +    }
                                                                                                                                    +    return getEstablishVolumePeeringMethod;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       private static volatile io.grpc.MethodDescriptor<
                                                                                                                                               com.google.cloud.netapp.v1.ListSnapshotsRequest,
                                                                                                                                               com.google.cloud.netapp.v1.ListSnapshotsResponse>
                                                                                                                                    @@ -2874,6 +2922,190 @@ private NetAppGrpc() {}
                                                                                                                                         return getDeleteHostGroupMethod;
                                                                                                                                       }
                                                                                                                                     
                                                                                                                                    +  private static volatile io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapPostRequest,
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapPostResponse>
                                                                                                                                    +      getExecuteOntapPostMethod;
                                                                                                                                    +
                                                                                                                                    +  @io.grpc.stub.annotations.RpcMethod(
                                                                                                                                    +      fullMethodName = SERVICE_NAME + '/' + "ExecuteOntapPost",
                                                                                                                                    +      requestType = com.google.cloud.netapp.v1.ExecuteOntapPostRequest.class,
                                                                                                                                    +      responseType = com.google.cloud.netapp.v1.ExecuteOntapPostResponse.class,
                                                                                                                                    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +  public static io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapPostRequest,
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapPostResponse>
                                                                                                                                    +      getExecuteOntapPostMethod() {
                                                                                                                                    +    io.grpc.MethodDescriptor<
                                                                                                                                    +            com.google.cloud.netapp.v1.ExecuteOntapPostRequest,
                                                                                                                                    +            com.google.cloud.netapp.v1.ExecuteOntapPostResponse>
                                                                                                                                    +        getExecuteOntapPostMethod;
                                                                                                                                    +    if ((getExecuteOntapPostMethod = NetAppGrpc.getExecuteOntapPostMethod) == null) {
                                                                                                                                    +      synchronized (NetAppGrpc.class) {
                                                                                                                                    +        if ((getExecuteOntapPostMethod = NetAppGrpc.getExecuteOntapPostMethod) == null) {
                                                                                                                                    +          NetAppGrpc.getExecuteOntapPostMethod =
                                                                                                                                    +              getExecuteOntapPostMethod =
                                                                                                                                    +                  io.grpc.MethodDescriptor
                                                                                                                                    +                      .
                                                                                                                                    +                          newBuilder()
                                                                                                                                    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteOntapPost"))
                                                                                                                                    +                      .setSampledToLocalTracing(true)
                                                                                                                                    +                      .setRequestMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.ExecuteOntapPostRequest
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setResponseMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.ExecuteOntapPostResponse
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("ExecuteOntapPost"))
                                                                                                                                    +                      .build();
                                                                                                                                    +        }
                                                                                                                                    +      }
                                                                                                                                    +    }
                                                                                                                                    +    return getExecuteOntapPostMethod;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  private static volatile io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapGetRequest,
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapGetResponse>
                                                                                                                                    +      getExecuteOntapGetMethod;
                                                                                                                                    +
                                                                                                                                    +  @io.grpc.stub.annotations.RpcMethod(
                                                                                                                                    +      fullMethodName = SERVICE_NAME + '/' + "ExecuteOntapGet",
                                                                                                                                    +      requestType = com.google.cloud.netapp.v1.ExecuteOntapGetRequest.class,
                                                                                                                                    +      responseType = com.google.cloud.netapp.v1.ExecuteOntapGetResponse.class,
                                                                                                                                    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +  public static io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapGetRequest,
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapGetResponse>
                                                                                                                                    +      getExecuteOntapGetMethod() {
                                                                                                                                    +    io.grpc.MethodDescriptor<
                                                                                                                                    +            com.google.cloud.netapp.v1.ExecuteOntapGetRequest,
                                                                                                                                    +            com.google.cloud.netapp.v1.ExecuteOntapGetResponse>
                                                                                                                                    +        getExecuteOntapGetMethod;
                                                                                                                                    +    if ((getExecuteOntapGetMethod = NetAppGrpc.getExecuteOntapGetMethod) == null) {
                                                                                                                                    +      synchronized (NetAppGrpc.class) {
                                                                                                                                    +        if ((getExecuteOntapGetMethod = NetAppGrpc.getExecuteOntapGetMethod) == null) {
                                                                                                                                    +          NetAppGrpc.getExecuteOntapGetMethod =
                                                                                                                                    +              getExecuteOntapGetMethod =
                                                                                                                                    +                  io.grpc.MethodDescriptor
                                                                                                                                    +                      .
                                                                                                                                    +                          newBuilder()
                                                                                                                                    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteOntapGet"))
                                                                                                                                    +                      .setSampledToLocalTracing(true)
                                                                                                                                    +                      .setRequestMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.ExecuteOntapGetRequest
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setResponseMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.ExecuteOntapGetResponse
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("ExecuteOntapGet"))
                                                                                                                                    +                      .build();
                                                                                                                                    +        }
                                                                                                                                    +      }
                                                                                                                                    +    }
                                                                                                                                    +    return getExecuteOntapGetMethod;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  private static volatile io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest,
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse>
                                                                                                                                    +      getExecuteOntapDeleteMethod;
                                                                                                                                    +
                                                                                                                                    +  @io.grpc.stub.annotations.RpcMethod(
                                                                                                                                    +      fullMethodName = SERVICE_NAME + '/' + "ExecuteOntapDelete",
                                                                                                                                    +      requestType = com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest.class,
                                                                                                                                    +      responseType = com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse.class,
                                                                                                                                    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +  public static io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest,
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse>
                                                                                                                                    +      getExecuteOntapDeleteMethod() {
                                                                                                                                    +    io.grpc.MethodDescriptor<
                                                                                                                                    +            com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest,
                                                                                                                                    +            com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse>
                                                                                                                                    +        getExecuteOntapDeleteMethod;
                                                                                                                                    +    if ((getExecuteOntapDeleteMethod = NetAppGrpc.getExecuteOntapDeleteMethod) == null) {
                                                                                                                                    +      synchronized (NetAppGrpc.class) {
                                                                                                                                    +        if ((getExecuteOntapDeleteMethod = NetAppGrpc.getExecuteOntapDeleteMethod) == null) {
                                                                                                                                    +          NetAppGrpc.getExecuteOntapDeleteMethod =
                                                                                                                                    +              getExecuteOntapDeleteMethod =
                                                                                                                                    +                  io.grpc.MethodDescriptor
                                                                                                                                    +                      .
                                                                                                                                    +                          newBuilder()
                                                                                                                                    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteOntapDelete"))
                                                                                                                                    +                      .setSampledToLocalTracing(true)
                                                                                                                                    +                      .setRequestMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setResponseMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("ExecuteOntapDelete"))
                                                                                                                                    +                      .build();
                                                                                                                                    +        }
                                                                                                                                    +      }
                                                                                                                                    +    }
                                                                                                                                    +    return getExecuteOntapDeleteMethod;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                    +  private static volatile io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapPatchRequest,
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapPatchResponse>
                                                                                                                                    +      getExecuteOntapPatchMethod;
                                                                                                                                    +
                                                                                                                                    +  @io.grpc.stub.annotations.RpcMethod(
                                                                                                                                    +      fullMethodName = SERVICE_NAME + '/' + "ExecuteOntapPatch",
                                                                                                                                    +      requestType = com.google.cloud.netapp.v1.ExecuteOntapPatchRequest.class,
                                                                                                                                    +      responseType = com.google.cloud.netapp.v1.ExecuteOntapPatchResponse.class,
                                                                                                                                    +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +  public static io.grpc.MethodDescriptor<
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapPatchRequest,
                                                                                                                                    +          com.google.cloud.netapp.v1.ExecuteOntapPatchResponse>
                                                                                                                                    +      getExecuteOntapPatchMethod() {
                                                                                                                                    +    io.grpc.MethodDescriptor<
                                                                                                                                    +            com.google.cloud.netapp.v1.ExecuteOntapPatchRequest,
                                                                                                                                    +            com.google.cloud.netapp.v1.ExecuteOntapPatchResponse>
                                                                                                                                    +        getExecuteOntapPatchMethod;
                                                                                                                                    +    if ((getExecuteOntapPatchMethod = NetAppGrpc.getExecuteOntapPatchMethod) == null) {
                                                                                                                                    +      synchronized (NetAppGrpc.class) {
                                                                                                                                    +        if ((getExecuteOntapPatchMethod = NetAppGrpc.getExecuteOntapPatchMethod) == null) {
                                                                                                                                    +          NetAppGrpc.getExecuteOntapPatchMethod =
                                                                                                                                    +              getExecuteOntapPatchMethod =
                                                                                                                                    +                  io.grpc.MethodDescriptor
                                                                                                                                    +                      .
                                                                                                                                    +                          newBuilder()
                                                                                                                                    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                                                                    +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteOntapPatch"))
                                                                                                                                    +                      .setSampledToLocalTracing(true)
                                                                                                                                    +                      .setRequestMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.ExecuteOntapPatchRequest
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setResponseMarshaller(
                                                                                                                                    +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                                                                    +                              com.google.cloud.netapp.v1.ExecuteOntapPatchResponse
                                                                                                                                    +                                  .getDefaultInstance()))
                                                                                                                                    +                      .setSchemaDescriptor(new NetAppMethodDescriptorSupplier("ExecuteOntapPatch"))
                                                                                                                                    +                      .build();
                                                                                                                                    +        }
                                                                                                                                    +      }
                                                                                                                                    +    }
                                                                                                                                    +    return getExecuteOntapPatchMethod;
                                                                                                                                    +  }
                                                                                                                                    +
                                                                                                                                       /** Creates a new async stub that supports all call types for the service */
                                                                                                                                       public static NetAppStub newStub(io.grpc.Channel channel) {
                                                                                                                                         io.grpc.stub.AbstractStub.StubFactory factory =
                                                                                                                                    @@ -3123,6 +3355,21 @@ default void revertVolume(
                                                                                                                                               getRevertVolumeMethod(), responseObserver);
                                                                                                                                         }
                                                                                                                                     
                                                                                                                                    +    /**
                                                                                                                                    +     *
                                                                                                                                    +     *
                                                                                                                                    +     * 
                                                                                                                                    +     * Establish volume peering. This is used to establish cluster and svm
                                                                                                                                    +     * peerings between the GCNV and OnPrem clusters.
                                                                                                                                    +     * 
                                                                                                                                    + */ + default void establishVolumePeering( + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEstablishVolumePeeringMethod(), responseObserver); + } + /** * * @@ -3881,6 +4128,70 @@ default void deleteHostGroup( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteHostGroupMethod(), responseObserver); } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + default void executeOntapPost( + com.google.cloud.netapp.v1.ExecuteOntapPostRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExecuteOntapPostMethod(), responseObserver); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + default void executeOntapGet( + com.google.cloud.netapp.v1.ExecuteOntapGetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExecuteOntapGetMethod(), responseObserver); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + default void executeOntapDelete( + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExecuteOntapDeleteMethod(), responseObserver); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + default void executeOntapPatch( + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExecuteOntapPatchMethod(), responseObserver); + } } /** @@ -4127,6 +4438,23 @@ public void revertVolume( responseObserver); } + /** + * + * + *
                                                                                                                                    +     * Establish volume peering. This is used to establish cluster and svm
                                                                                                                                    +     * peerings between the GCNV and OnPrem clusters.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public void establishVolumePeering( + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEstablishVolumePeeringMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4990,6 +5318,78 @@ public void deleteHostGroup( request, responseObserver); } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public void executeOntapPost( + com.google.cloud.netapp.v1.ExecuteOntapPostRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExecuteOntapPostMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public void executeOntapGet( + com.google.cloud.netapp.v1.ExecuteOntapGetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExecuteOntapGetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public void executeOntapDelete( + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExecuteOntapDeleteMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public void executeOntapPatch( + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExecuteOntapPatchMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -5188,6 +5588,21 @@ public com.google.longrunning.Operation revertVolume( getChannel(), getRevertVolumeMethod(), getCallOptions(), request); } + /** + * + * + *
                                                                                                                                    +     * Establish volume peering. This is used to establish cluster and svm
                                                                                                                                    +     * peerings between the GCNV and OnPrem clusters.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.longrunning.Operation establishVolumePeering( + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getEstablishVolumePeeringMethod(), getCallOptions(), request); + } + /** * * @@ -5902,6 +6317,64 @@ public com.google.longrunning.Operation deleteHostGroup( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteHostGroupMethod(), getCallOptions(), request); } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.cloud.netapp.v1.ExecuteOntapPostResponse executeOntapPost( + com.google.cloud.netapp.v1.ExecuteOntapPostRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExecuteOntapPostMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.cloud.netapp.v1.ExecuteOntapGetResponse executeOntapGet( + com.google.cloud.netapp.v1.ExecuteOntapGetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExecuteOntapGetMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse executeOntapDelete( + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExecuteOntapDeleteMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.cloud.netapp.v1.ExecuteOntapPatchResponse executeOntapPatch( + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExecuteOntapPatchMethod(), getCallOptions(), request); + } } /** @@ -6095,6 +6568,20 @@ public com.google.longrunning.Operation revertVolume( getChannel(), getRevertVolumeMethod(), getCallOptions(), request); } + /** + * + * + *
                                                                                                                                    +     * Establish volume peering. This is used to establish cluster and svm
                                                                                                                                    +     * peerings between the GCNV and OnPrem clusters.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.longrunning.Operation establishVolumePeering( + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEstablishVolumePeeringMethod(), getCallOptions(), request); + } + /** * * @@ -6791,6 +7278,62 @@ public com.google.longrunning.Operation deleteHostGroup( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteHostGroupMethod(), getCallOptions(), request); } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.cloud.netapp.v1.ExecuteOntapPostResponse executeOntapPost( + com.google.cloud.netapp.v1.ExecuteOntapPostRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExecuteOntapPostMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.cloud.netapp.v1.ExecuteOntapGetResponse executeOntapGet( + com.google.cloud.netapp.v1.ExecuteOntapGetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExecuteOntapGetMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse executeOntapDelete( + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExecuteOntapDeleteMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.cloud.netapp.v1.ExecuteOntapPatchResponse executeOntapPatch( + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExecuteOntapPatchMethod(), getCallOptions(), request); + } } /** @@ -6988,6 +7531,20 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca getChannel().newCall(getRevertVolumeMethod(), getCallOptions()), request); } + /** + * + * + *
                                                                                                                                    +     * Establish volume peering. This is used to establish cluster and svm
                                                                                                                                    +     * peerings between the GCNV and OnPrem clusters.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.common.util.concurrent.ListenableFuture + establishVolumePeering(com.google.cloud.netapp.v1.EstablishVolumePeeringRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEstablishVolumePeeringMethod(), getCallOptions()), request); + } + /** * * @@ -7699,6 +8256,66 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteHostGroupMethod(), getCallOptions()), request); } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPost` dispatches the ONTAP `POST` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.netapp.v1.ExecuteOntapPostResponse> + executeOntapPost(com.google.cloud.netapp.v1.ExecuteOntapPostRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExecuteOntapPostMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapGet` dispatches the ONTAP `GET` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.netapp.v1.ExecuteOntapGetResponse> + executeOntapGet(com.google.cloud.netapp.v1.ExecuteOntapGetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExecuteOntapGetMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse> + executeOntapDelete(com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExecuteOntapDeleteMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                                                                    +     * `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the
                                                                                                                                    +     * `StoragePool` cluster.
                                                                                                                                    +     * 
                                                                                                                                    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse> + executeOntapPatch(com.google.cloud.netapp.v1.ExecuteOntapPatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExecuteOntapPatchMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_STORAGE_POOLS = 0; @@ -7714,59 +8331,64 @@ protected NetAppFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca private static final int METHODID_UPDATE_VOLUME = 10; private static final int METHODID_DELETE_VOLUME = 11; private static final int METHODID_REVERT_VOLUME = 12; - private static final int METHODID_LIST_SNAPSHOTS = 13; - private static final int METHODID_GET_SNAPSHOT = 14; - private static final int METHODID_CREATE_SNAPSHOT = 15; - private static final int METHODID_DELETE_SNAPSHOT = 16; - private static final int METHODID_UPDATE_SNAPSHOT = 17; - private static final int METHODID_LIST_ACTIVE_DIRECTORIES = 18; - private static final int METHODID_GET_ACTIVE_DIRECTORY = 19; - private static final int METHODID_CREATE_ACTIVE_DIRECTORY = 20; - private static final int METHODID_UPDATE_ACTIVE_DIRECTORY = 21; - private static final int METHODID_DELETE_ACTIVE_DIRECTORY = 22; - private static final int METHODID_LIST_KMS_CONFIGS = 23; - private static final int METHODID_CREATE_KMS_CONFIG = 24; - private static final int METHODID_GET_KMS_CONFIG = 25; - private static final int METHODID_UPDATE_KMS_CONFIG = 26; - private static final int METHODID_ENCRYPT_VOLUMES = 27; - private static final int METHODID_VERIFY_KMS_CONFIG = 28; - private static final int METHODID_DELETE_KMS_CONFIG = 29; - private static final int METHODID_LIST_REPLICATIONS = 30; - private static final int METHODID_GET_REPLICATION = 31; - private static final int METHODID_CREATE_REPLICATION = 32; - private static final int METHODID_DELETE_REPLICATION = 33; - private static final int METHODID_UPDATE_REPLICATION = 34; - private static final int METHODID_STOP_REPLICATION = 35; - private static final int METHODID_RESUME_REPLICATION = 36; - private static final int METHODID_REVERSE_REPLICATION_DIRECTION = 37; - private static final int METHODID_ESTABLISH_PEERING = 38; - private static final int METHODID_SYNC_REPLICATION = 39; - private static final int METHODID_CREATE_BACKUP_VAULT = 40; - private static final int METHODID_GET_BACKUP_VAULT = 41; - private static final int METHODID_LIST_BACKUP_VAULTS = 42; - private static final int METHODID_UPDATE_BACKUP_VAULT = 43; - private static final int METHODID_DELETE_BACKUP_VAULT = 44; - private static final int METHODID_CREATE_BACKUP = 45; - private static final int METHODID_GET_BACKUP = 46; - private static final int METHODID_LIST_BACKUPS = 47; - private static final int METHODID_DELETE_BACKUP = 48; - private static final int METHODID_UPDATE_BACKUP = 49; - private static final int METHODID_CREATE_BACKUP_POLICY = 50; - private static final int METHODID_GET_BACKUP_POLICY = 51; - private static final int METHODID_LIST_BACKUP_POLICIES = 52; - private static final int METHODID_UPDATE_BACKUP_POLICY = 53; - private static final int METHODID_DELETE_BACKUP_POLICY = 54; - private static final int METHODID_LIST_QUOTA_RULES = 55; - private static final int METHODID_GET_QUOTA_RULE = 56; - private static final int METHODID_CREATE_QUOTA_RULE = 57; - private static final int METHODID_UPDATE_QUOTA_RULE = 58; - private static final int METHODID_DELETE_QUOTA_RULE = 59; - private static final int METHODID_RESTORE_BACKUP_FILES = 60; - private static final int METHODID_LIST_HOST_GROUPS = 61; - private static final int METHODID_GET_HOST_GROUP = 62; - private static final int METHODID_CREATE_HOST_GROUP = 63; - private static final int METHODID_UPDATE_HOST_GROUP = 64; - private static final int METHODID_DELETE_HOST_GROUP = 65; + private static final int METHODID_ESTABLISH_VOLUME_PEERING = 13; + private static final int METHODID_LIST_SNAPSHOTS = 14; + private static final int METHODID_GET_SNAPSHOT = 15; + private static final int METHODID_CREATE_SNAPSHOT = 16; + private static final int METHODID_DELETE_SNAPSHOT = 17; + private static final int METHODID_UPDATE_SNAPSHOT = 18; + private static final int METHODID_LIST_ACTIVE_DIRECTORIES = 19; + private static final int METHODID_GET_ACTIVE_DIRECTORY = 20; + private static final int METHODID_CREATE_ACTIVE_DIRECTORY = 21; + private static final int METHODID_UPDATE_ACTIVE_DIRECTORY = 22; + private static final int METHODID_DELETE_ACTIVE_DIRECTORY = 23; + private static final int METHODID_LIST_KMS_CONFIGS = 24; + private static final int METHODID_CREATE_KMS_CONFIG = 25; + private static final int METHODID_GET_KMS_CONFIG = 26; + private static final int METHODID_UPDATE_KMS_CONFIG = 27; + private static final int METHODID_ENCRYPT_VOLUMES = 28; + private static final int METHODID_VERIFY_KMS_CONFIG = 29; + private static final int METHODID_DELETE_KMS_CONFIG = 30; + private static final int METHODID_LIST_REPLICATIONS = 31; + private static final int METHODID_GET_REPLICATION = 32; + private static final int METHODID_CREATE_REPLICATION = 33; + private static final int METHODID_DELETE_REPLICATION = 34; + private static final int METHODID_UPDATE_REPLICATION = 35; + private static final int METHODID_STOP_REPLICATION = 36; + private static final int METHODID_RESUME_REPLICATION = 37; + private static final int METHODID_REVERSE_REPLICATION_DIRECTION = 38; + private static final int METHODID_ESTABLISH_PEERING = 39; + private static final int METHODID_SYNC_REPLICATION = 40; + private static final int METHODID_CREATE_BACKUP_VAULT = 41; + private static final int METHODID_GET_BACKUP_VAULT = 42; + private static final int METHODID_LIST_BACKUP_VAULTS = 43; + private static final int METHODID_UPDATE_BACKUP_VAULT = 44; + private static final int METHODID_DELETE_BACKUP_VAULT = 45; + private static final int METHODID_CREATE_BACKUP = 46; + private static final int METHODID_GET_BACKUP = 47; + private static final int METHODID_LIST_BACKUPS = 48; + private static final int METHODID_DELETE_BACKUP = 49; + private static final int METHODID_UPDATE_BACKUP = 50; + private static final int METHODID_CREATE_BACKUP_POLICY = 51; + private static final int METHODID_GET_BACKUP_POLICY = 52; + private static final int METHODID_LIST_BACKUP_POLICIES = 53; + private static final int METHODID_UPDATE_BACKUP_POLICY = 54; + private static final int METHODID_DELETE_BACKUP_POLICY = 55; + private static final int METHODID_LIST_QUOTA_RULES = 56; + private static final int METHODID_GET_QUOTA_RULE = 57; + private static final int METHODID_CREATE_QUOTA_RULE = 58; + private static final int METHODID_UPDATE_QUOTA_RULE = 59; + private static final int METHODID_DELETE_QUOTA_RULE = 60; + private static final int METHODID_RESTORE_BACKUP_FILES = 61; + private static final int METHODID_LIST_HOST_GROUPS = 62; + private static final int METHODID_GET_HOST_GROUP = 63; + private static final int METHODID_CREATE_HOST_GROUP = 64; + private static final int METHODID_UPDATE_HOST_GROUP = 65; + private static final int METHODID_DELETE_HOST_GROUP = 66; + private static final int METHODID_EXECUTE_ONTAP_POST = 67; + private static final int METHODID_EXECUTE_ONTAP_GET = 68; + private static final int METHODID_EXECUTE_ONTAP_DELETE = 69; + private static final int METHODID_EXECUTE_ONTAP_PATCH = 70; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -7853,6 +8475,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.netapp.v1.RevertVolumeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ESTABLISH_VOLUME_PEERING: + serviceImpl.establishVolumePeering( + (com.google.cloud.netapp.v1.EstablishVolumePeeringRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_SNAPSHOTS: serviceImpl.listSnapshots( (com.google.cloud.netapp.v1.ListSnapshotsRequest) request, @@ -8133,6 +8760,30 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.netapp.v1.DeleteHostGroupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXECUTE_ONTAP_POST: + serviceImpl.executeOntapPost( + (com.google.cloud.netapp.v1.ExecuteOntapPostRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_EXECUTE_ONTAP_GET: + serviceImpl.executeOntapGet( + (com.google.cloud.netapp.v1.ExecuteOntapGetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_EXECUTE_ONTAP_DELETE: + serviceImpl.executeOntapDelete( + (com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_EXECUTE_ONTAP_PATCH: + serviceImpl.executeOntapPatch( + (com.google.cloud.netapp.v1.ExecuteOntapPatchRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -8233,6 +8884,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.netapp.v1.RevertVolumeRequest, com.google.longrunning.Operation>(service, METHODID_REVERT_VOLUME))) + .addMethod( + getEstablishVolumePeeringMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest, + com.google.longrunning.Operation>(service, METHODID_ESTABLISH_VOLUME_PEERING))) .addMethod( getListSnapshotsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -8563,6 +9220,34 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.netapp.v1.DeleteHostGroupRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_HOST_GROUP))) + .addMethod( + getExecuteOntapPostMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.ExecuteOntapPostRequest, + com.google.cloud.netapp.v1.ExecuteOntapPostResponse>( + service, METHODID_EXECUTE_ONTAP_POST))) + .addMethod( + getExecuteOntapGetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.ExecuteOntapGetRequest, + com.google.cloud.netapp.v1.ExecuteOntapGetResponse>( + service, METHODID_EXECUTE_ONTAP_GET))) + .addMethod( + getExecuteOntapDeleteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest, + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse>( + service, METHODID_EXECUTE_ONTAP_DELETE))) + .addMethod( + getExecuteOntapPatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest, + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse>( + service, METHODID_EXECUTE_ONTAP_PATCH))) .build(); } @@ -8625,6 +9310,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateVolumeMethod()) .addMethod(getDeleteVolumeMethod()) .addMethod(getRevertVolumeMethod()) + .addMethod(getEstablishVolumePeeringMethod()) .addMethod(getListSnapshotsMethod()) .addMethod(getGetSnapshotMethod()) .addMethod(getCreateSnapshotMethod()) @@ -8678,6 +9364,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateHostGroupMethod()) .addMethod(getUpdateHostGroupMethod()) .addMethod(getDeleteHostGroupMethod()) + .addMethod(getExecuteOntapPostMethod()) + .addMethod(getExecuteOntapGetMethod()) + .addMethod(getExecuteOntapDeleteMethod()) + .addMethod(getExecuteOntapPatchMethod()) .build(); } } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Backup.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Backup.java index 22156207457e..9a7cd66c8949 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Backup.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Backup.java @@ -755,6 +755,7 @@ public com.google.cloud.netapp.v1.Backup.Type getBackupType() { * *
                                                                                                                                        * Volume full name of this backup belongs to.
                                                                                                                                    +   * Either source_volume or ontap_source should be provided.
                                                                                                                                        * Format:
                                                                                                                                        * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                        * 
                                                                                                                                    @@ -781,6 +782,7 @@ public java.lang.String getSourceVolume() { * *
                                                                                                                                        * Volume full name of this backup belongs to.
                                                                                                                                    +   * Either source_volume or ontap_source should be provided.
                                                                                                                                        * Format:
                                                                                                                                        * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                        * 
                                                                                                                                    @@ -2501,6 +2503,7 @@ public Builder clearBackupType() { * *
                                                                                                                                          * Volume full name of this backup belongs to.
                                                                                                                                    +     * Either source_volume or ontap_source should be provided.
                                                                                                                                          * Format:
                                                                                                                                          * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                          * 
                                                                                                                                    @@ -2526,6 +2529,7 @@ public java.lang.String getSourceVolume() { * *
                                                                                                                                          * Volume full name of this backup belongs to.
                                                                                                                                    +     * Either source_volume or ontap_source should be provided.
                                                                                                                                          * Format:
                                                                                                                                          * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                          * 
                                                                                                                                    @@ -2551,6 +2555,7 @@ public com.google.protobuf.ByteString getSourceVolumeBytes() { * *
                                                                                                                                          * Volume full name of this backup belongs to.
                                                                                                                                    +     * Either source_volume or ontap_source should be provided.
                                                                                                                                          * Format:
                                                                                                                                          * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                          * 
                                                                                                                                    @@ -2575,6 +2580,7 @@ public Builder setSourceVolume(java.lang.String value) { * *
                                                                                                                                          * Volume full name of this backup belongs to.
                                                                                                                                    +     * Either source_volume or ontap_source should be provided.
                                                                                                                                          * Format:
                                                                                                                                          * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                          * 
                                                                                                                                    @@ -2595,6 +2601,7 @@ public Builder clearSourceVolume() { * *
                                                                                                                                          * Volume full name of this backup belongs to.
                                                                                                                                    +     * Either source_volume or ontap_source should be provided.
                                                                                                                                          * Format:
                                                                                                                                          * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                          * 
                                                                                                                                    diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupOrBuilder.java index 5e091714cd34..1d163d999e42 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupOrBuilder.java @@ -166,6 +166,7 @@ public interface BackupOrBuilder * *
                                                                                                                                        * Volume full name of this backup belongs to.
                                                                                                                                    +   * Either source_volume or ontap_source should be provided.
                                                                                                                                        * Format:
                                                                                                                                        * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                        * 
                                                                                                                                    @@ -181,6 +182,7 @@ public interface BackupOrBuilder * *
                                                                                                                                        * Volume full name of this backup belongs to.
                                                                                                                                    +   * Either source_volume or ontap_source should be provided.
                                                                                                                                        * Format:
                                                                                                                                        * `projects/{projects_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                        * 
                                                                                                                                    diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java index c8c812f5507f..630900e49632 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CloudNetappServiceProto.java @@ -62,11 +62,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud/netapp/v1/active_directory.proto\032#google/cloud/netapp/v1/backup.proto\032*goog" + "le/cloud/netapp/v1/backup_policy.proto\032)google/cloud/netapp/v1/backup_vault.prot" + "o\032\'google/cloud/netapp/v1/host_group.proto\032" - + " google/cloud/netapp/v1/kms.proto\032\'google/cloud/netapp/v1/quota_rule.proto\032(g" - + "oogle/cloud/netapp/v1/replication.proto\032%google/cloud/netapp/v1/snapshot.proto\032)" - + "google/cloud/netapp/v1/storage_pool.proto\032#google/cloud/netapp/v1/volume.proto\032#" - + "google/longrunning/operations.proto\032\033goo" - + "gle/protobuf/empty.proto\032\037google/protobuf/timestamp.proto\"\200\002\n" + + " google/cloud/netapp/v1/kms.proto\032\"google/cloud/netapp/v1/ontap.proto\032\'google" + + "/cloud/netapp/v1/quota_rule.proto\032(google/cloud/netapp/v1/replication.proto\032%goo" + + "gle/cloud/netapp/v1/snapshot.proto\032)google/cloud/netapp/v1/storage_pool.proto\032#g" + + "oogle/cloud/netapp/v1/volume.proto\032#goog" + + "le/longrunning/operations.proto\032\033google/" + + "protobuf/empty.proto\032\037google/protobuf/timestamp.proto\"\200\002\n" + "\021OperationMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" @@ -74,303 +75,322 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\0032\346m\n" + + "\013api_version\030\007 \001(\tB\003\340A\0032\316u\n" + "\006NetApp\022\270\001\n" - + "\020ListStoragePools\022/.google.cloud.netapp.v1.ListStoragePoolsRequest\0320." - + "google.cloud.netapp.v1.ListStoragePoolsR" - + "esponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/storagePools\022\366\001\n" - + "\021CreateStoragePool\0220.google.cloud.netapp.v" - + "1.CreateStoragePoolRequest\032\035.google.longrunning.Operation\"\217\001\312A \n" - + "\013StoragePool\022\021OperationMetadata\332A#parent,storage_pool,st" - + "orage_pool_id\202\323\344\223\002@\"0/v1/{parent=project" - + "s/*/locations/*}/storagePools:\014storage_pool\022\245\001\n" - + "\016GetStoragePool\022-.google.cloud.netapp.v1.GetStoragePoolRequest\032#.google.c" - + "loud.netapp.v1.StoragePool\"?\332A\004name\202\323\344\223\002" - + "2\0220/v1/{name=projects/*/locations/*/storagePools/*}\022\370\001\n" - + "\021UpdateStoragePool\0220.goog" - + "le.cloud.netapp.v1.UpdateStoragePoolRequest\032\035.google.longrunning.Operation\"\221\001\312A" + + "\020ListStoragePools\022/.google.cloud.netapp.v1.ListStoragePoolsRequest\0320.goog" + + "le.cloud.netapp.v1.ListStoragePoolsRespo" + + "nse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/storagePools\022\366\001\n" + + "\021CreateStoragePool\0220.google.cloud.netapp.v1.Cr" + + "eateStoragePoolRequest\032\035.google.longrunning.Operation\"\217\001\312A \n" + + "\013StoragePool\022\021OperationMetadata\332A#parent,storage_pool,storag" + + "e_pool_id\202\323\344\223\002@\"0/v1/{parent=projects/*/" + + "locations/*}/storagePools:\014storage_pool\022\245\001\n" + + "\016GetStoragePool\022-.google.cloud.netapp.v1.GetStoragePoolRequest\032#.google.cloud" + + ".netapp.v1.StoragePool\"?\332A\004name\202\323\344\223\0022\0220/" + + "v1/{name=projects/*/locations/*/storagePools/*}\022\370\001\n" + + "\021UpdateStoragePool\0220.google.c" + + "loud.netapp.v1.UpdateStoragePoolRequest\032\035.google.longrunning.Operation\"\221\001\312A" + " \n" - + "\013StoragePool\022\021OperationMetadata\332A\030stora" - + "ge_pool,update_mask\202\323\344\223\002M2=/v1/{storage_" - + "pool.name=projects/*/locations/*/storagePools/*}:\014storage_pool\022\322\001\n" - + "\021DeleteStoragePool\0220.google.cloud.netapp.v1.DeleteStor" - + "agePoolRequest\032\035.google.longrunning.Operation\"l\312A*\n" - + "\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/storagePools/*}\022\366\001\n" - + "\030ValidateDirectoryService\0227.google.cloud." - + "netapp.v1.ValidateDirectoryServiceRequest\032\035.google.longrunning.Operation\"\201\001\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata" - + "\202\323\344\223\002N\"I/v1/{name=projects/*/locations/*" - + "/storagePools/*}:validateDirectoryService:\001*\022\327\001\n" - + "\027SwitchActiveReplicaZone\0226.google.cloud.netapp.v1.SwitchActiveReplicaZon" - + "eRequest\032\035.google.longrunning.Operation\"e\312A \n" - + "\013StoragePool\022\021OperationMetadata\202\323\344\223" - + "\002<\"7/v1/{name=projects/*/locations/*/storagePools/*}:switch:\001*\022\244\001\n" - + "\013ListVolumes\022*.google.cloud.netapp.v1.ListVolumesReque" - + "st\032+.google.cloud.netapp.v1.ListVolumesR" - + "esponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=projects/*/locations/*}/volumes\022\221\001\n" - + "\tGetVolume\022(.google.cloud.netapp.v1.GetVolumeRe" - + "quest\032\036.google.cloud.netapp.v1.Volume\":\332" - + "A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/volumes/*}\022\317\001\n" - + "\014CreateVolume\022+.goo" - + "gle.cloud.netapp.v1.CreateVolumeRequest\032\035.google.longrunning.Operation\"s\312A\033\n" - + "\006Volume\022\021OperationMetadata\332A\027parent,volume,v" - + "olume_id\202\323\344\223\0025\"+/v1/{parent=projects/*/locations/*}/volumes:\006volume\022\321\001\n" - + "\014UpdateVolume\022+.google.cloud.netapp.v1.UpdateVolu" - + "meRequest\032\035.google.longrunning.Operation\"u\312A\033\n" - + "\006Volume\022\021OperationMetadata\332A\022volum" - + "e,update_mask\202\323\344\223\002<22/v1/{volume.name=pr" - + "ojects/*/locations/*/volumes/*}:\006volume\022\303\001\n" - + "\014DeleteVolume\022+.google.cloud.netapp.v" - + "1.DeleteVolumeRequest\032\035.google.longrunning.Operation\"g\312A*\n" - + "\025google.protobuf.Empty" - + "\022\021OperationMetadata\332A\004name\202\323\344\223\002-*+/v1/{n" - + "ame=projects/*/locations/*/volumes/*}\022\267\001\n" - + "\014RevertVolume\022+.google.cloud.netapp.v1." - + "RevertVolumeRequest\032\035.google.longrunning.Operation\"[\312A\033\n" - + "\006Volume\022\021OperationMetada" - + "ta\202\323\344\223\0027\"2/v1/{name=projects/*/locations/*/volumes/*}:revert:\001*\022\266\001\n\r" - + "ListSnapshots\022,.google.cloud.netapp.v1.ListSnapshots" - + "Request\032-.google.cloud.netapp.v1.ListSna" - + "pshotsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{pa" - + "rent=projects/*/locations/*/volumes/*}/snapshots\022\243\001\n" - + "\013GetSnapshot\022*.google.cloud.netapp.v1.GetSnapshotRequest\032 .google.cl" - + "oud.netapp.v1.Snapshot\"F\332A\004name\202\323\344\223\0029\0227/" - + "v1/{name=projects/*/locations/*/volumes/*/snapshots/*}\022\350\001\n" - + "\016CreateSnapshot\022-.goog" - + "le.cloud.netapp.v1.CreateSnapshotRequest\032\035.google.longrunning.Operation\"\207\001\312A\035\n" - + "\010Snapshot\022\021OperationMetadata\332A\033parent,snap" - + "shot,snapshot_id\202\323\344\223\002C\"7/v1/{parent=proj" - + "ects/*/locations/*/volumes/*}/snapshots:\010snapshot\022\323\001\n" - + "\016DeleteSnapshot\022-.google.cl" - + "oud.netapp.v1.DeleteSnapshotRequest\032\035.google.longrunning.Operation\"s\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\0029*7/v1/{name=projects/*/locations/*/volumes/*/snapshots/*}\022\352\001\n" - + "\016UpdateSnapshot\022-.google.cloud.netapp.v1.UpdateSnapsh" - + "otRequest\032\035.google.longrunning.Operation\"\211\001\312A\035\n" - + "\010Snapshot\022\021OperationMetadata\332A\024sn" - + "apshot,update_mask\202\323\344\223\002L2@/v1/{snapshot." - + "name=projects/*/locations/*/volumes/*/snapshots/*}:\010snapshot\022\314\001\n" - + "\025ListActiveDirectories\0224.google.cloud.netapp.v1.ListActi" - + "veDirectoriesRequest\0325.google.cloud.neta" - + "pp.v1.ListActiveDirectoriesResponse\"F\332A\006" - + "parent\202\323\344\223\0027\0225/v1/{parent=projects/*/locations/*}/activeDirectories\022\266\001\n" - + "\022GetActiveDirectory\0221.google.cloud.netapp.v1.GetA" - + "ctiveDirectoryRequest\032\'.google.cloud.net" - + "app.v1.ActiveDirectory\"D\332A\004name\202\323\344\223\0027\0225/" - + "v1/{name=projects/*/locations/*/activeDirectories/*}\022\223\002\n" - + "\025CreateActiveDirectory\0224.google.cloud.netapp.v1.CreateActiveDire" - + "ctoryRequest\032\035.google.longrunning.Operation\"\244\001\312A$\n" - + "\017ActiveDirectory\022\021OperationMetadata\332A+parent,active_directory,active_d" - + "irectory_id\202\323\344\223\002I\"5/v1/{parent=projects/" - + "*/locations/*}/activeDirectories:\020active_directory\022\225\002\n" - + "\025UpdateActiveDirectory\0224.google.cloud.netapp.v1.UpdateActiveDirect" - + "oryRequest\032\035.google.longrunning.Operation\"\246\001\312A$\n" - + "\017ActiveDirectory\022\021OperationMetad" - + "ata\332A\034active_directory,update_mask\202\323\344\223\002Z" - + "2F/v1/{active_directory.name=projects/*/" - + "locations/*/activeDirectories/*}:\020active_directory\022\337\001\n" - + "\025DeleteActiveDirectory\0224.google.cloud.netapp.v1.DeleteActiveDirect" - + "oryRequest\032\035.google.longrunning.Operation\"q\312A*\n" + + "\013StoragePool\022\021OperationMetadata\332A\030storage_p" + + "ool,update_mask\202\323\344\223\002M2=/v1/{storage_pool" + + ".name=projects/*/locations/*/storagePools/*}:\014storage_pool\022\322\001\n" + + "\021DeleteStoragePool\0220.google.cloud.netapp.v1.DeleteStorageP" + + "oolRequest\032\035.google.longrunning.Operation\"l\312A*\n" + "\025google.protobuf.Empty\022\021Operation" - + "Metadata\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/locations/*/activeDirectories/*}\022\260\001\n" - + "\016ListKmsConfigs\022-.google.cloud.netapp.v1" - + ".ListKmsConfigsRequest\032..google.cloud.ne" - + "tapp.v1.ListKmsConfigsResponse\"?\332A\006paren" - + "t\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/kmsConfigs\022\350\001\n" - + "\017CreateKmsConfig\022..google.cloud.netapp.v1.CreateKmsConfigRequ" - + "est\032\035.google.longrunning.Operation\"\205\001\312A\036\n" - + "\tKmsConfig\022\021OperationMetadata\332A\037parent," - + "kms_config,kms_config_id\202\323\344\223\002<\"./v1/{parent=projects/*/locations/*}/kmsConfigs:\n" + + "Metadata\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/storagePools/*}\022\366\001\n" + + "\030ValidateDirectoryService\0227.google.cloud.neta" + + "pp.v1.ValidateDirectoryServiceRequest\032\035.google.longrunning.Operation\"\201\001\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\202\323\344\223" + + "\002N\"I/v1/{name=projects/*/locations/*/sto" + + "ragePools/*}:validateDirectoryService:\001*\022\327\001\n" + + "\027SwitchActiveReplicaZone\0226.google.cl" + + "oud.netapp.v1.SwitchActiveReplicaZoneRequest\032\035.google.longrunning.Operation\"e\312A" + + " \n" + + "\013StoragePool\022\021OperationMetadata\202\323\344\223\002<\"7" + + "/v1/{name=projects/*/locations/*/storagePools/*}:switch:\001*\022\244\001\n" + + "\013ListVolumes\022*.google.cloud.netapp.v1.ListVolumesRequest\032+" + + ".google.cloud.netapp.v1.ListVolumesRespo" + + "nse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=projects/*/locations/*}/volumes\022\221\001\n" + + "\tGetVolume\022(.google.cloud.netapp.v1.GetVolumeReques" + + "t\032\036.google.cloud.netapp.v1.Volume\":\332A\004na" + + "me\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/volumes/*}\022\317\001\n" + + "\014CreateVolume\022+.google." + + "cloud.netapp.v1.CreateVolumeRequest\032\035.google.longrunning.Operation\"s\312A\033\n" + + "\006Volume\022\021OperationMetadata\332A\027parent,volume,volum" + + "e_id\202\323\344\223\0025\"+/v1/{parent=projects/*/locations/*}/volumes:\006volume\022\321\001\n" + + "\014UpdateVolume\022+.google.cloud.netapp.v1.UpdateVolumeRe" + + "quest\032\035.google.longrunning.Operation\"u\312A\033\n" + + "\006Volume\022\021OperationMetadata\332A\022volume,up" + + "date_mask\202\323\344\223\002<22/v1/{volume.name=projects/*/locations/*/volumes/*}:\006volume\022\303\001\n" + + "\014DeleteVolume\022+.google.cloud.netapp.v1.De" + + "leteVolumeRequest\032\035.google.longrunning.Operation\"g\312A*\n" + + "\025google.protobuf.Empty\022\021Op" + + "erationMetadata\332A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/volumes/*}\022\267\001\n" + + "\014RevertVolume\022+.google.cloud.netapp.v1.Reve" + + "rtVolumeRequest\032\035.google.longrunning.Operation\"[\312A\033\n" + + "\006Volume\022\021OperationMetadata\202\323" + + "\344\223\0027\"2/v1/{name=projects/*/locations/*/volumes/*}:revert:\001*\022\325\001\n" + + "\026EstablishVolumePeering\0225.google.cloud.netapp.v1.Establis" + + "hVolumePeeringRequest\032\035.google.longrunning.Operation\"e\312A\033\n" + + "\006Volume\022\021OperationMeta" + + "data\202\323\344\223\002A\" + * EstablishVolumePeeringRequest establishes cluster and svm peerings between + * the source and destination clusters. + *
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.EstablishVolumePeeringRequest} + */ +@com.google.protobuf.Generated +public final class EstablishVolumePeeringRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.EstablishVolumePeeringRequest) + EstablishVolumePeeringRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EstablishVolumePeeringRequest"); + } + + // Use EstablishVolumePeeringRequest.newBuilder() to construct. + private EstablishVolumePeeringRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EstablishVolumePeeringRequest() { + name_ = ""; + peerClusterName_ = ""; + peerSvmName_ = ""; + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + peerVolumeName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest.class, + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                                                                    +   * Required. The volume resource name, in the format
                                                                                                                                    +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +   * Required. The volume resource name, in the format
                                                                                                                                    +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_CLUSTER_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerClusterName_ = ""; + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +   * destination cluster.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + @java.lang.Override + public java.lang.String getPeerClusterName() { + java.lang.Object ref = peerClusterName_; + 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(); + peerClusterName_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +   * destination cluster.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerClusterNameBytes() { + java.lang.Object ref = peerClusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_SVM_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerSvmName_ = ""; + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +   * destination vserver svm.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + @java.lang.Override + public java.lang.String getPeerSvmName() { + java.lang.Object ref = peerSvmName_; + 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(); + peerSvmName_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +   * destination vserver svm.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerSvmNameBytes() { + java.lang.Object ref = peerSvmName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerSvmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEER_IP_ADDRESSES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList peerIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                                                                    +   * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +   * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the peerIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getPeerIpAddressesList() { + return peerIpAddresses_; + } + + /** + * + * + *
                                                                                                                                    +   * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +   * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of peerIpAddresses. + */ + public int getPeerIpAddressesCount() { + return peerIpAddresses_.size(); + } + + /** + * + * + *
                                                                                                                                    +   * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +   * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + public java.lang.String getPeerIpAddresses(int index) { + return peerIpAddresses_.get(index); + } + + /** + * + * + *
                                                                                                                                    +   * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +   * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getPeerIpAddressesBytes(int index) { + return peerIpAddresses_.getByteString(index); + } + + public static final int PEER_VOLUME_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object peerVolumeName_ = ""; + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +   * destination volume.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + @java.lang.Override + public java.lang.String getPeerVolumeName() { + java.lang.Object ref = peerVolumeName_; + 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(); + peerVolumeName_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +   * destination volume.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeerVolumeNameBytes() { + java.lang.Object ref = peerVolumeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerVolumeName_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerClusterName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, peerClusterName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerSvmName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, peerSvmName_); + } + for (int i = 0; i < peerIpAddresses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, peerIpAddresses_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerVolumeName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, peerVolumeName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerClusterName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, peerClusterName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerSvmName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, peerSvmName_); + } + { + int dataSize = 0; + for (int i = 0; i < peerIpAddresses_.size(); i++) { + dataSize += computeStringSizeNoTag(peerIpAddresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getPeerIpAddressesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(peerVolumeName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, peerVolumeName_); + } + 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.netapp.v1.EstablishVolumePeeringRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest other = + (com.google.cloud.netapp.v1.EstablishVolumePeeringRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPeerClusterName().equals(other.getPeerClusterName())) return false; + if (!getPeerSvmName().equals(other.getPeerSvmName())) return false; + if (!getPeerIpAddressesList().equals(other.getPeerIpAddressesList())) return false; + if (!getPeerVolumeName().equals(other.getPeerVolumeName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PEER_CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerClusterName().hashCode(); + hash = (37 * hash) + PEER_SVM_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerSvmName().hashCode(); + if (getPeerIpAddressesCount() > 0) { + hash = (37 * hash) + PEER_IP_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getPeerIpAddressesList().hashCode(); + } + hash = (37 * hash) + PEER_VOLUME_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeerVolumeName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest 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.netapp.v1.EstablishVolumePeeringRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest 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.netapp.v1.EstablishVolumePeeringRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.EstablishVolumePeeringRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * EstablishVolumePeeringRequest establishes cluster and svm peerings between
                                                                                                                                    +   * the source and destination clusters.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.EstablishVolumePeeringRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.EstablishVolumePeeringRequest) + com.google.cloud.netapp.v1.EstablishVolumePeeringRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest.class, + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.EstablishVolumePeeringRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + peerClusterName_ = ""; + peerSvmName_ = ""; + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + peerVolumeName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.EstablishVolumePeeringRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.EstablishVolumePeeringRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.EstablishVolumePeeringRequest build() { + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.EstablishVolumePeeringRequest buildPartial() { + com.google.cloud.netapp.v1.EstablishVolumePeeringRequest result = + new com.google.cloud.netapp.v1.EstablishVolumePeeringRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.EstablishVolumePeeringRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.peerClusterName_ = peerClusterName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.peerSvmName_ = peerSvmName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + peerIpAddresses_.makeImmutable(); + result.peerIpAddresses_ = peerIpAddresses_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.peerVolumeName_ = peerVolumeName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.EstablishVolumePeeringRequest) { + return mergeFrom((com.google.cloud.netapp.v1.EstablishVolumePeeringRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.EstablishVolumePeeringRequest other) { + if (other == com.google.cloud.netapp.v1.EstablishVolumePeeringRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPeerClusterName().isEmpty()) { + peerClusterName_ = other.peerClusterName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPeerSvmName().isEmpty()) { + peerSvmName_ = other.peerSvmName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.peerIpAddresses_.isEmpty()) { + if (peerIpAddresses_.isEmpty()) { + peerIpAddresses_ = other.peerIpAddresses_; + bitField0_ |= 0x00000008; + } else { + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.addAll(other.peerIpAddresses_); + } + onChanged(); + } + if (!other.getPeerVolumeName().isEmpty()) { + peerVolumeName_ = other.peerVolumeName_; + bitField0_ |= 0x00000010; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + peerClusterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + peerSvmName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(s); + break; + } // case 34 + case 42: + { + peerVolumeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 name_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Required. The volume resource name, in the format
                                                                                                                                    +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The volume resource name, in the format
                                                                                                                                    +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The volume resource name, in the format
                                                                                                                                    +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The volume resource name, in the format
                                                                                                                                    +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The volume resource name, in the format
                                                                                                                                    +     * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object peerClusterName_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +     * destination cluster.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + public java.lang.String getPeerClusterName() { + java.lang.Object ref = peerClusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerClusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +     * destination cluster.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + public com.google.protobuf.ByteString getPeerClusterNameBytes() { + java.lang.Object ref = peerClusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerClusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +     * destination cluster.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerClusterName to set. + * @return This builder for chaining. + */ + public Builder setPeerClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerClusterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +     * destination cluster.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerClusterName() { + peerClusterName_ = getDefaultInstance().getPeerClusterName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +     * destination cluster.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerClusterName to set. + * @return This builder for chaining. + */ + public Builder setPeerClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerClusterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object peerSvmName_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +     * destination vserver svm.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + public java.lang.String getPeerSvmName() { + java.lang.Object ref = peerSvmName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerSvmName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +     * destination vserver svm.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + public com.google.protobuf.ByteString getPeerSvmNameBytes() { + java.lang.Object ref = peerSvmName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerSvmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +     * destination vserver svm.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerSvmName to set. + * @return This builder for chaining. + */ + public Builder setPeerSvmName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerSvmName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +     * destination vserver svm.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerSvmName() { + peerSvmName_ = getDefaultInstance().getPeerSvmName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +     * destination vserver svm.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerSvmName to set. + * @return This builder for chaining. + */ + public Builder setPeerSvmNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerSvmName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList peerIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePeerIpAddressesIsMutable() { + if (!peerIpAddresses_.isModifiable()) { + peerIpAddresses_ = new com.google.protobuf.LazyStringArrayList(peerIpAddresses_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the peerIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getPeerIpAddressesList() { + peerIpAddresses_.makeImmutable(); + return peerIpAddresses_; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of peerIpAddresses. + */ + public int getPeerIpAddressesCount() { + return peerIpAddresses_.size(); + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + public java.lang.String getPeerIpAddresses(int index) { + return peerIpAddresses_.get(index); + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getPeerIpAddressesBytes(int index) { + return peerIpAddresses_.getByteString(index); + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The peerIpAddresses to set. + * @return This builder for chaining. + */ + public Builder setPeerIpAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addPeerIpAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addAllPeerIpAddresses(java.lang.Iterable values) { + ensurePeerIpAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peerIpAddresses_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPeerIpAddresses() { + peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +     * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the peerIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addPeerIpAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePeerIpAddressesIsMutable(); + peerIpAddresses_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object peerVolumeName_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +     * destination volume.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + public java.lang.String getPeerVolumeName() { + java.lang.Object ref = peerVolumeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peerVolumeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +     * destination volume.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + public com.google.protobuf.ByteString getPeerVolumeNameBytes() { + java.lang.Object ref = peerVolumeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peerVolumeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +     * destination volume.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The peerVolumeName to set. + * @return This builder for chaining. + */ + public Builder setPeerVolumeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + peerVolumeName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +     * destination volume.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPeerVolumeName() { + peerVolumeName_ = getDefaultInstance().getPeerVolumeName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +     * destination volume.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for peerVolumeName to set. + * @return This builder for chaining. + */ + public Builder setPeerVolumeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerVolumeName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.EstablishVolumePeeringRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.EstablishVolumePeeringRequest) + private static final com.google.cloud.netapp.v1.EstablishVolumePeeringRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.EstablishVolumePeeringRequest(); + } + + public static com.google.cloud.netapp.v1.EstablishVolumePeeringRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EstablishVolumePeeringRequest 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.netapp.v1.EstablishVolumePeeringRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequestOrBuilder.java new file mode 100644 index 000000000000..d36f38673147 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EstablishVolumePeeringRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface EstablishVolumePeeringRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.EstablishVolumePeeringRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * Required. The volume resource name, in the format
                                                                                                                                    +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                                                                    +   * Required. The volume resource name, in the format
                                                                                                                                    +   * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +   * destination cluster.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerClusterName. + */ + java.lang.String getPeerClusterName(); + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source cluster to be peered with the
                                                                                                                                    +   * destination cluster.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerClusterName. + */ + com.google.protobuf.ByteString getPeerClusterNameBytes(); + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +   * destination vserver svm.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerSvmName. + */ + java.lang.String getPeerSvmName(); + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source vserver svm to be peered with the
                                                                                                                                    +   * destination vserver svm.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_svm_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerSvmName. + */ + com.google.protobuf.ByteString getPeerSvmNameBytes(); + + /** + * + * + *
                                                                                                                                    +   * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +   * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the peerIpAddresses. + */ + java.util.List getPeerIpAddressesList(); + + /** + * + * + *
                                                                                                                                    +   * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +   * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of peerIpAddresses. + */ + int getPeerIpAddressesCount(); + + /** + * + * + *
                                                                                                                                    +   * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +   * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The peerIpAddresses at the given index. + */ + java.lang.String getPeerIpAddresses(int index); + + /** + * + * + *
                                                                                                                                    +   * Optional. List of IPv4 ip addresses to be used for peering.
                                                                                                                                    +   * 
                                                                                                                                    + * + * repeated string peer_ip_addresses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the peerIpAddresses at the given index. + */ + com.google.protobuf.ByteString getPeerIpAddressesBytes(int index); + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +   * destination volume.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The peerVolumeName. + */ + java.lang.String getPeerVolumeName(); + + /** + * + * + *
                                                                                                                                    +   * Required. Name of the user's local source volume to be peered with the
                                                                                                                                    +   * destination volume.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string peer_volume_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for peerVolumeName. + */ + com.google.protobuf.ByteString getPeerVolumeNameBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteRequest.java new file mode 100644 index 000000000000..36376e3071fa --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteRequest.java @@ -0,0 +1,624 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * Request message for `ExecuteOntapDelete` API.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapDeleteRequest} + */ +@com.google.protobuf.Generated +public final class ExecuteOntapDeleteRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ExecuteOntapDeleteRequest) + ExecuteOntapDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteOntapDeleteRequest"); + } + + // Use ExecuteOntapDeleteRequest.newBuilder() to construct. + private ExecuteOntapDeleteRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteOntapDeleteRequest() { + ontapPath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest.class, + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest.Builder.class); + } + + public static final int ONTAP_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ontapPath_ = ""; + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + @java.lang.Override + public java.lang.String getOntapPath() { + java.lang.Object ref = ontapPath_; + 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(); + ontapPath_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOntapPathBytes() { + java.lang.Object ref = ontapPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ontapPath_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ontapPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, ontapPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ontapPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, ontapPath_); + } + 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.netapp.v1.ExecuteOntapDeleteRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest other = + (com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest) obj; + + if (!getOntapPath().equals(other.getOntapPath())) 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) + ONTAP_PATH_FIELD_NUMBER; + hash = (53 * hash) + getOntapPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest 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.netapp.v1.ExecuteOntapDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest 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.netapp.v1.ExecuteOntapDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.ExecuteOntapDeleteRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * Request message for `ExecuteOntapDelete` API.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapDeleteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ExecuteOntapDeleteRequest) + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest.class, + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ontapPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest build() { + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest buildPartial() { + com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest result = + new com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ontapPath_ = ontapPath_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest) { + return mergeFrom((com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest other) { + if (other == com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest.getDefaultInstance()) + return this; + if (!other.getOntapPath().isEmpty()) { + ontapPath_ = other.ontapPath_; + bitField0_ |= 0x00000001; + 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 18: + { + ontapPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 java.lang.Object ontapPath_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + public java.lang.String getOntapPath() { + java.lang.Object ref = ontapPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ontapPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + public com.google.protobuf.ByteString getOntapPathBytes() { + java.lang.Object ref = ontapPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ontapPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ontapPath to set. + * @return This builder for chaining. + */ + public Builder setOntapPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ontapPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOntapPath() { + ontapPath_ = getDefaultInstance().getOntapPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for ontapPath to set. + * @return This builder for chaining. + */ + public Builder setOntapPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ontapPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ExecuteOntapDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ExecuteOntapDeleteRequest) + private static final com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest(); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteOntapDeleteRequest 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.netapp.v1.ExecuteOntapDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteRequestOrBuilder.java new file mode 100644 index 000000000000..4b3c308f4683 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ExecuteOntapDeleteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ExecuteOntapDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + java.lang.String getOntapPath(); + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + com.google.protobuf.ByteString getOntapPathBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteResponse.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteResponse.java new file mode 100644 index 000000000000..c66cb3f88116 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteResponse.java @@ -0,0 +1,689 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * Response message for `ExecuteOntapDelete` API.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapDeleteResponse} + */ +@com.google.protobuf.Generated +public final class ExecuteOntapDeleteResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ExecuteOntapDeleteResponse) + ExecuteOntapDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteOntapDeleteResponse"); + } + + // Use ExecuteOntapDeleteResponse.newBuilder() to construct. + private ExecuteOntapDeleteResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteOntapDeleteResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse.class, + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse.Builder.class); + } + + private int bitField0_; + public static final int BODY_FIELD_NUMBER = 1; + private com.google.protobuf.Struct body_; + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + @java.lang.Override + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + @java.lang.Override + public com.google.protobuf.Struct getBody() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBody()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBody()); + } + 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.netapp.v1.ExecuteOntapDeleteResponse)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse other = + (com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse) obj; + + if (hasBody() != other.hasBody()) return false; + if (hasBody()) { + if (!getBody().equals(other.getBody())) 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 (hasBody()) { + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse 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.netapp.v1.ExecuteOntapDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse 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.netapp.v1.ExecuteOntapDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.ExecuteOntapDeleteResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * Response message for `ExecuteOntapDelete` API.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapDeleteResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ExecuteOntapDeleteResponse) + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse.class, + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse build() { + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse buildPartial() { + com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse result = + new com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse) { + return mergeFrom((com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse other) { + if (other == com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse.getDefaultInstance()) + return this; + if (other.hasBody()) { + mergeBody(other.getBody()); + } + 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(internalGetBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private com.google.protobuf.Struct body_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + bodyBuilder_; + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + public com.google.protobuf.Struct getBody() { + if (bodyBuilder_ == null) { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } else { + return bodyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder setBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + } else { + bodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder setBody(com.google.protobuf.Struct.Builder builderForValue) { + if (bodyBuilder_ == null) { + body_ = builderForValue.build(); + } else { + bodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder mergeBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && body_ != null + && body_ != com.google.protobuf.Struct.getDefaultInstance()) { + getBodyBuilder().mergeFrom(value); + } else { + body_ = value; + } + } else { + bodyBuilder_.mergeFrom(value); + } + if (body_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000001); + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public com.google.protobuf.Struct.Builder getBodyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBodyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + if (bodyBuilder_ != null) { + return bodyBuilder_.getMessageOrBuilder(); + } else { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetBodyFieldBuilder() { + if (bodyBuilder_ == null) { + bodyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getBody(), getParentForChildren(), isClean()); + body_ = null; + } + return bodyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ExecuteOntapDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ExecuteOntapDeleteResponse) + private static final com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse(); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteOntapDeleteResponse 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.netapp.v1.ExecuteOntapDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteResponseOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteResponseOrBuilder.java new file mode 100644 index 000000000000..065e09b56c22 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapDeleteResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ExecuteOntapDeleteResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ExecuteOntapDeleteResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + boolean hasBody(); + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + com.google.protobuf.Struct getBody(); + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + com.google.protobuf.StructOrBuilder getBodyOrBuilder(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetRequest.java new file mode 100644 index 000000000000..f20f53ce0741 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetRequest.java @@ -0,0 +1,624 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * Request message for `ExecuteOntapGet` API.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapGetRequest} + */ +@com.google.protobuf.Generated +public final class ExecuteOntapGetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ExecuteOntapGetRequest) + ExecuteOntapGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteOntapGetRequest"); + } + + // Use ExecuteOntapGetRequest.newBuilder() to construct. + private ExecuteOntapGetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteOntapGetRequest() { + ontapPath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapGetRequest.class, + com.google.cloud.netapp.v1.ExecuteOntapGetRequest.Builder.class); + } + + public static final int ONTAP_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ontapPath_ = ""; + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + @java.lang.Override + public java.lang.String getOntapPath() { + java.lang.Object ref = ontapPath_; + 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(); + ontapPath_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOntapPathBytes() { + java.lang.Object ref = ontapPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ontapPath_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ontapPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, ontapPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ontapPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ontapPath_); + } + 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.netapp.v1.ExecuteOntapGetRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ExecuteOntapGetRequest other = + (com.google.cloud.netapp.v1.ExecuteOntapGetRequest) obj; + + if (!getOntapPath().equals(other.getOntapPath())) 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) + ONTAP_PATH_FIELD_NUMBER; + hash = (53 * hash) + getOntapPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest 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.netapp.v1.ExecuteOntapGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest 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.netapp.v1.ExecuteOntapGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.ExecuteOntapGetRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * Request message for `ExecuteOntapGet` API.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapGetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ExecuteOntapGetRequest) + com.google.cloud.netapp.v1.ExecuteOntapGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapGetRequest.class, + com.google.cloud.netapp.v1.ExecuteOntapGetRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ExecuteOntapGetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ontapPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapGetRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ExecuteOntapGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapGetRequest build() { + com.google.cloud.netapp.v1.ExecuteOntapGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapGetRequest buildPartial() { + com.google.cloud.netapp.v1.ExecuteOntapGetRequest result = + new com.google.cloud.netapp.v1.ExecuteOntapGetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ExecuteOntapGetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ontapPath_ = ontapPath_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ExecuteOntapGetRequest) { + return mergeFrom((com.google.cloud.netapp.v1.ExecuteOntapGetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ExecuteOntapGetRequest other) { + if (other == com.google.cloud.netapp.v1.ExecuteOntapGetRequest.getDefaultInstance()) + return this; + if (!other.getOntapPath().isEmpty()) { + ontapPath_ = other.ontapPath_; + bitField0_ |= 0x00000001; + 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: + { + ontapPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object ontapPath_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + public java.lang.String getOntapPath() { + java.lang.Object ref = ontapPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ontapPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + public com.google.protobuf.ByteString getOntapPathBytes() { + java.lang.Object ref = ontapPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ontapPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ontapPath to set. + * @return This builder for chaining. + */ + public Builder setOntapPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ontapPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOntapPath() { + ontapPath_ = getDefaultInstance().getOntapPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for ontapPath to set. + * @return This builder for chaining. + */ + public Builder setOntapPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ontapPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ExecuteOntapGetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ExecuteOntapGetRequest) + private static final com.google.cloud.netapp.v1.ExecuteOntapGetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ExecuteOntapGetRequest(); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteOntapGetRequest 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.netapp.v1.ExecuteOntapGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetRequestOrBuilder.java new file mode 100644 index 000000000000..99191859bb69 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ExecuteOntapGetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ExecuteOntapGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + java.lang.String getOntapPath(); + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + com.google.protobuf.ByteString getOntapPathBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetResponse.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetResponse.java new file mode 100644 index 000000000000..2c61a2e6d8ac --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetResponse.java @@ -0,0 +1,688 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * Response message for `ExecuteOntapGet` API.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapGetResponse} + */ +@com.google.protobuf.Generated +public final class ExecuteOntapGetResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ExecuteOntapGetResponse) + ExecuteOntapGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteOntapGetResponse"); + } + + // Use ExecuteOntapGetResponse.newBuilder() to construct. + private ExecuteOntapGetResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteOntapGetResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapGetResponse.class, + com.google.cloud.netapp.v1.ExecuteOntapGetResponse.Builder.class); + } + + private int bitField0_; + public static final int BODY_FIELD_NUMBER = 1; + private com.google.protobuf.Struct body_; + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + @java.lang.Override + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + @java.lang.Override + public com.google.protobuf.Struct getBody() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBody()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBody()); + } + 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.netapp.v1.ExecuteOntapGetResponse)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ExecuteOntapGetResponse other = + (com.google.cloud.netapp.v1.ExecuteOntapGetResponse) obj; + + if (hasBody() != other.hasBody()) return false; + if (hasBody()) { + if (!getBody().equals(other.getBody())) 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 (hasBody()) { + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse 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.netapp.v1.ExecuteOntapGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse 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.netapp.v1.ExecuteOntapGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.ExecuteOntapGetResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * Response message for `ExecuteOntapGet` API.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapGetResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ExecuteOntapGetResponse) + com.google.cloud.netapp.v1.ExecuteOntapGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapGetResponse.class, + com.google.cloud.netapp.v1.ExecuteOntapGetResponse.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ExecuteOntapGetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapGetResponse getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ExecuteOntapGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapGetResponse build() { + com.google.cloud.netapp.v1.ExecuteOntapGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapGetResponse buildPartial() { + com.google.cloud.netapp.v1.ExecuteOntapGetResponse result = + new com.google.cloud.netapp.v1.ExecuteOntapGetResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ExecuteOntapGetResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ExecuteOntapGetResponse) { + return mergeFrom((com.google.cloud.netapp.v1.ExecuteOntapGetResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ExecuteOntapGetResponse other) { + if (other == com.google.cloud.netapp.v1.ExecuteOntapGetResponse.getDefaultInstance()) + return this; + if (other.hasBody()) { + mergeBody(other.getBody()); + } + 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(internalGetBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private com.google.protobuf.Struct body_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + bodyBuilder_; + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + public com.google.protobuf.Struct getBody() { + if (bodyBuilder_ == null) { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } else { + return bodyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder setBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + } else { + bodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder setBody(com.google.protobuf.Struct.Builder builderForValue) { + if (bodyBuilder_ == null) { + body_ = builderForValue.build(); + } else { + bodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder mergeBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && body_ != null + && body_ != com.google.protobuf.Struct.getDefaultInstance()) { + getBodyBuilder().mergeFrom(value); + } else { + body_ = value; + } + } else { + bodyBuilder_.mergeFrom(value); + } + if (body_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000001); + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public com.google.protobuf.Struct.Builder getBodyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBodyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + if (bodyBuilder_ != null) { + return bodyBuilder_.getMessageOrBuilder(); + } else { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetBodyFieldBuilder() { + if (bodyBuilder_ == null) { + bodyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getBody(), getParentForChildren(), isClean()); + body_ = null; + } + return bodyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ExecuteOntapGetResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ExecuteOntapGetResponse) + private static final com.google.cloud.netapp.v1.ExecuteOntapGetResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ExecuteOntapGetResponse(); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteOntapGetResponse 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.netapp.v1.ExecuteOntapGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetResponseOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetResponseOrBuilder.java new file mode 100644 index 000000000000..613ffad9ae2f --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapGetResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ExecuteOntapGetResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ExecuteOntapGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + boolean hasBody(); + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + com.google.protobuf.Struct getBody(); + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + com.google.protobuf.StructOrBuilder getBodyOrBuilder(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchRequest.java new file mode 100644 index 000000000000..b12b95cbe444 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchRequest.java @@ -0,0 +1,1026 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * Request message for `ExecuteOntapPatch` API.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapPatchRequest} + */ +@com.google.protobuf.Generated +public final class ExecuteOntapPatchRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ExecuteOntapPatchRequest) + ExecuteOntapPatchRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteOntapPatchRequest"); + } + + // Use ExecuteOntapPatchRequest.newBuilder() to construct. + private ExecuteOntapPatchRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteOntapPatchRequest() { + ontapPath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest.class, + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest.Builder.class); + } + + private int bitField0_; + public static final int BODY_FIELD_NUMBER = 2; + private com.google.protobuf.Struct body_; + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the body field is set. + */ + @java.lang.Override + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + @java.lang.Override + public com.google.protobuf.Struct getBody() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + public static final int ONTAP_PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ontapPath_ = ""; + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + @java.lang.Override + public java.lang.String getOntapPath() { + java.lang.Object ref = ontapPath_; + 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(); + ontapPath_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOntapPathBytes() { + java.lang.Object ref = ontapPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ontapPath_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getBody()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ontapPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, ontapPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBody()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ontapPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, ontapPath_); + } + 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.netapp.v1.ExecuteOntapPatchRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest other = + (com.google.cloud.netapp.v1.ExecuteOntapPatchRequest) obj; + + if (hasBody() != other.hasBody()) return false; + if (hasBody()) { + if (!getBody().equals(other.getBody())) return false; + } + if (!getOntapPath().equals(other.getOntapPath())) 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 (hasBody()) { + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + } + hash = (37 * hash) + ONTAP_PATH_FIELD_NUMBER; + hash = (53 * hash) + getOntapPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest 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.netapp.v1.ExecuteOntapPatchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest 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.netapp.v1.ExecuteOntapPatchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.ExecuteOntapPatchRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * Request message for `ExecuteOntapPatch` API.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapPatchRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ExecuteOntapPatchRequest) + com.google.cloud.netapp.v1.ExecuteOntapPatchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest.class, + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ExecuteOntapPatchRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + ontapPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPatchRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ExecuteOntapPatchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPatchRequest build() { + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPatchRequest buildPartial() { + com.google.cloud.netapp.v1.ExecuteOntapPatchRequest result = + new com.google.cloud.netapp.v1.ExecuteOntapPatchRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ExecuteOntapPatchRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ontapPath_ = ontapPath_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ExecuteOntapPatchRequest) { + return mergeFrom((com.google.cloud.netapp.v1.ExecuteOntapPatchRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ExecuteOntapPatchRequest other) { + if (other == com.google.cloud.netapp.v1.ExecuteOntapPatchRequest.getDefaultInstance()) + return this; + if (other.hasBody()) { + mergeBody(other.getBody()); + } + if (!other.getOntapPath().isEmpty()) { + ontapPath_ = other.ontapPath_; + 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 18: + { + input.readMessage(internalGetBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + ontapPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + 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.Struct body_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + bodyBuilder_; + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the body field is set. + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + public com.google.protobuf.Struct getBody() { + if (bodyBuilder_ == null) { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } else { + return bodyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + } else { + bodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setBody(com.google.protobuf.Struct.Builder builderForValue) { + if (bodyBuilder_ == null) { + body_ = builderForValue.build(); + } else { + bodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && body_ != null + && body_ != com.google.protobuf.Struct.getDefaultInstance()) { + getBodyBuilder().mergeFrom(value); + } else { + body_ = value; + } + } else { + bodyBuilder_.mergeFrom(value); + } + if (body_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000001); + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Struct.Builder getBodyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBodyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + if (bodyBuilder_ != null) { + return bodyBuilder_.getMessageOrBuilder(); + } else { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetBodyFieldBuilder() { + if (bodyBuilder_ == null) { + bodyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getBody(), getParentForChildren(), isClean()); + body_ = null; + } + return bodyBuilder_; + } + + private java.lang.Object ontapPath_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + public java.lang.String getOntapPath() { + java.lang.Object ref = ontapPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ontapPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + public com.google.protobuf.ByteString getOntapPathBytes() { + java.lang.Object ref = ontapPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ontapPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ontapPath to set. + * @return This builder for chaining. + */ + public Builder setOntapPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ontapPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOntapPath() { + ontapPath_ = getDefaultInstance().getOntapPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for ontapPath to set. + * @return This builder for chaining. + */ + public Builder setOntapPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ontapPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ExecuteOntapPatchRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ExecuteOntapPatchRequest) + private static final com.google.cloud.netapp.v1.ExecuteOntapPatchRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ExecuteOntapPatchRequest(); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteOntapPatchRequest 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.netapp.v1.ExecuteOntapPatchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchRequestOrBuilder.java new file mode 100644 index 000000000000..c9d6a1257bbf --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ExecuteOntapPatchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ExecuteOntapPatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the body field is set. + */ + boolean hasBody(); + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + com.google.protobuf.Struct getBody(); + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.StructOrBuilder getBodyOrBuilder(); + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + java.lang.String getOntapPath(); + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + com.google.protobuf.ByteString getOntapPathBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchResponse.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchResponse.java new file mode 100644 index 000000000000..f045de180eeb --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchResponse.java @@ -0,0 +1,688 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * Response message for `ExecuteOntapPatch` API.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapPatchResponse} + */ +@com.google.protobuf.Generated +public final class ExecuteOntapPatchResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ExecuteOntapPatchResponse) + ExecuteOntapPatchResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteOntapPatchResponse"); + } + + // Use ExecuteOntapPatchResponse.newBuilder() to construct. + private ExecuteOntapPatchResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteOntapPatchResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse.class, + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse.Builder.class); + } + + private int bitField0_; + public static final int BODY_FIELD_NUMBER = 1; + private com.google.protobuf.Struct body_; + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + @java.lang.Override + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + @java.lang.Override + public com.google.protobuf.Struct getBody() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBody()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBody()); + } + 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.netapp.v1.ExecuteOntapPatchResponse)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse other = + (com.google.cloud.netapp.v1.ExecuteOntapPatchResponse) obj; + + if (hasBody() != other.hasBody()) return false; + if (hasBody()) { + if (!getBody().equals(other.getBody())) 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 (hasBody()) { + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse 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.netapp.v1.ExecuteOntapPatchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse 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.netapp.v1.ExecuteOntapPatchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.ExecuteOntapPatchResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * Response message for `ExecuteOntapPatch` API.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapPatchResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ExecuteOntapPatchResponse) + com.google.cloud.netapp.v1.ExecuteOntapPatchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse.class, + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ExecuteOntapPatchResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPatchResponse getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ExecuteOntapPatchResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPatchResponse build() { + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPatchResponse buildPartial() { + com.google.cloud.netapp.v1.ExecuteOntapPatchResponse result = + new com.google.cloud.netapp.v1.ExecuteOntapPatchResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ExecuteOntapPatchResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ExecuteOntapPatchResponse) { + return mergeFrom((com.google.cloud.netapp.v1.ExecuteOntapPatchResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ExecuteOntapPatchResponse other) { + if (other == com.google.cloud.netapp.v1.ExecuteOntapPatchResponse.getDefaultInstance()) + return this; + if (other.hasBody()) { + mergeBody(other.getBody()); + } + 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(internalGetBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private com.google.protobuf.Struct body_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + bodyBuilder_; + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + public com.google.protobuf.Struct getBody() { + if (bodyBuilder_ == null) { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } else { + return bodyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder setBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + } else { + bodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder setBody(com.google.protobuf.Struct.Builder builderForValue) { + if (bodyBuilder_ == null) { + body_ = builderForValue.build(); + } else { + bodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder mergeBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && body_ != null + && body_ != com.google.protobuf.Struct.getDefaultInstance()) { + getBodyBuilder().mergeFrom(value); + } else { + body_ = value; + } + } else { + bodyBuilder_.mergeFrom(value); + } + if (body_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000001); + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public com.google.protobuf.Struct.Builder getBodyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBodyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + if (bodyBuilder_ != null) { + return bodyBuilder_.getMessageOrBuilder(); + } else { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetBodyFieldBuilder() { + if (bodyBuilder_ == null) { + bodyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getBody(), getParentForChildren(), isClean()); + body_ = null; + } + return bodyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ExecuteOntapPatchResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ExecuteOntapPatchResponse) + private static final com.google.cloud.netapp.v1.ExecuteOntapPatchResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ExecuteOntapPatchResponse(); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPatchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteOntapPatchResponse 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.netapp.v1.ExecuteOntapPatchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchResponseOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchResponseOrBuilder.java new file mode 100644 index 000000000000..701aae9ca33d --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPatchResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ExecuteOntapPatchResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ExecuteOntapPatchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + boolean hasBody(); + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + com.google.protobuf.Struct getBody(); + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + com.google.protobuf.StructOrBuilder getBodyOrBuilder(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequest.java new file mode 100644 index 000000000000..af6516eac420 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequest.java @@ -0,0 +1,1026 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * Request message for `ExecuteOntapPost` API.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapPostRequest} + */ +@com.google.protobuf.Generated +public final class ExecuteOntapPostRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ExecuteOntapPostRequest) + ExecuteOntapPostRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteOntapPostRequest"); + } + + // Use ExecuteOntapPostRequest.newBuilder() to construct. + private ExecuteOntapPostRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteOntapPostRequest() { + ontapPath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapPostRequest.class, + com.google.cloud.netapp.v1.ExecuteOntapPostRequest.Builder.class); + } + + private int bitField0_; + public static final int BODY_FIELD_NUMBER = 2; + private com.google.protobuf.Struct body_; + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the body field is set. + */ + @java.lang.Override + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + @java.lang.Override + public com.google.protobuf.Struct getBody() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + public static final int ONTAP_PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ontapPath_ = ""; + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + @java.lang.Override + public java.lang.String getOntapPath() { + java.lang.Object ref = ontapPath_; + 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(); + ontapPath_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOntapPathBytes() { + java.lang.Object ref = ontapPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ontapPath_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getBody()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ontapPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, ontapPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBody()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ontapPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, ontapPath_); + } + 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.netapp.v1.ExecuteOntapPostRequest)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ExecuteOntapPostRequest other = + (com.google.cloud.netapp.v1.ExecuteOntapPostRequest) obj; + + if (hasBody() != other.hasBody()) return false; + if (hasBody()) { + if (!getBody().equals(other.getBody())) return false; + } + if (!getOntapPath().equals(other.getOntapPath())) 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 (hasBody()) { + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + } + hash = (37 * hash) + ONTAP_PATH_FIELD_NUMBER; + hash = (53 * hash) + getOntapPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest 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.netapp.v1.ExecuteOntapPostRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest 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.netapp.v1.ExecuteOntapPostRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.ExecuteOntapPostRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * Request message for `ExecuteOntapPost` API.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapPostRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ExecuteOntapPostRequest) + com.google.cloud.netapp.v1.ExecuteOntapPostRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapPostRequest.class, + com.google.cloud.netapp.v1.ExecuteOntapPostRequest.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ExecuteOntapPostRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + ontapPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPostRequest getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ExecuteOntapPostRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPostRequest build() { + com.google.cloud.netapp.v1.ExecuteOntapPostRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPostRequest buildPartial() { + com.google.cloud.netapp.v1.ExecuteOntapPostRequest result = + new com.google.cloud.netapp.v1.ExecuteOntapPostRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ExecuteOntapPostRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ontapPath_ = ontapPath_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ExecuteOntapPostRequest) { + return mergeFrom((com.google.cloud.netapp.v1.ExecuteOntapPostRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ExecuteOntapPostRequest other) { + if (other == com.google.cloud.netapp.v1.ExecuteOntapPostRequest.getDefaultInstance()) + return this; + if (other.hasBody()) { + mergeBody(other.getBody()); + } + if (!other.getOntapPath().isEmpty()) { + ontapPath_ = other.ontapPath_; + 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 18: + { + input.readMessage(internalGetBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + ontapPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + 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.Struct body_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + bodyBuilder_; + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the body field is set. + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + public com.google.protobuf.Struct getBody() { + if (bodyBuilder_ == null) { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } else { + return bodyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + } else { + bodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setBody(com.google.protobuf.Struct.Builder builderForValue) { + if (bodyBuilder_ == null) { + body_ = builderForValue.build(); + } else { + bodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && body_ != null + && body_ != com.google.protobuf.Struct.getDefaultInstance()) { + getBodyBuilder().mergeFrom(value); + } else { + body_ = value; + } + } else { + bodyBuilder_.mergeFrom(value); + } + if (body_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000001); + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Struct.Builder getBodyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBodyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + if (bodyBuilder_ != null) { + return bodyBuilder_.getMessageOrBuilder(); + } else { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The raw `JSON` body of the request.
                                                                                                                                    +     * The body should be in the format of the ONTAP resource.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * ```
                                                                                                                                    +     * {
                                                                                                                                    +     * "body": {
                                                                                                                                    +     * "field1": "value1",
                                                                                                                                    +     * "field2": "value2",
                                                                                                                                    +     * }
                                                                                                                                    +     * }
                                                                                                                                    +     * ```
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetBodyFieldBuilder() { + if (bodyBuilder_ == null) { + bodyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getBody(), getParentForChildren(), isClean()); + body_ = null; + } + return bodyBuilder_; + } + + private java.lang.Object ontapPath_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + public java.lang.String getOntapPath() { + java.lang.Object ref = ontapPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ontapPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + public com.google.protobuf.ByteString getOntapPathBytes() { + java.lang.Object ref = ontapPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ontapPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ontapPath to set. + * @return This builder for chaining. + */ + public Builder setOntapPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ontapPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOntapPath() { + ontapPath_ = getDefaultInstance().getOntapPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Required. The resource path of the ONTAP resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +     * For example:
                                                                                                                                    +     * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for ontapPath to set. + * @return This builder for chaining. + */ + public Builder setOntapPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ontapPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ExecuteOntapPostRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ExecuteOntapPostRequest) + private static final com.google.cloud.netapp.v1.ExecuteOntapPostRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ExecuteOntapPostRequest(); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteOntapPostRequest 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.netapp.v1.ExecuteOntapPostRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequestOrBuilder.java new file mode 100644 index 000000000000..859892679a76 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ExecuteOntapPostRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ExecuteOntapPostRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the body field is set. + */ + boolean hasBody(); + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + com.google.protobuf.Struct getBody(); + + /** + * + * + *
                                                                                                                                    +   * Required. The raw `JSON` body of the request.
                                                                                                                                    +   * The body should be in the format of the ONTAP resource.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * ```
                                                                                                                                    +   * {
                                                                                                                                    +   * "body": {
                                                                                                                                    +   * "field1": "value1",
                                                                                                                                    +   * "field2": "value2",
                                                                                                                                    +   * }
                                                                                                                                    +   * }
                                                                                                                                    +   * ```
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.StructOrBuilder getBodyOrBuilder(); + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ontapPath. + */ + java.lang.String getOntapPath(); + + /** + * + * + *
                                                                                                                                    +   * Required. The resource path of the ONTAP resource.
                                                                                                                                    +   * Format:
                                                                                                                                    +   * `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`.
                                                                                                                                    +   * For example:
                                                                                                                                    +   * `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * string ontap_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ontapPath. + */ + com.google.protobuf.ByteString getOntapPathBytes(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostResponse.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostResponse.java new file mode 100644 index 000000000000..27261cb2b93b --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostResponse.java @@ -0,0 +1,688 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * Response message for `ExecuteOntapPost` API.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapPostResponse} + */ +@com.google.protobuf.Generated +public final class ExecuteOntapPostResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ExecuteOntapPostResponse) + ExecuteOntapPostResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteOntapPostResponse"); + } + + // Use ExecuteOntapPostResponse.newBuilder() to construct. + private ExecuteOntapPostResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteOntapPostResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapPostResponse.class, + com.google.cloud.netapp.v1.ExecuteOntapPostResponse.Builder.class); + } + + private int bitField0_; + public static final int BODY_FIELD_NUMBER = 1; + private com.google.protobuf.Struct body_; + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + @java.lang.Override + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + @java.lang.Override + public com.google.protobuf.Struct getBody() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBody()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBody()); + } + 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.netapp.v1.ExecuteOntapPostResponse)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.ExecuteOntapPostResponse other = + (com.google.cloud.netapp.v1.ExecuteOntapPostResponse) obj; + + if (hasBody() != other.hasBody()) return false; + if (hasBody()) { + if (!getBody().equals(other.getBody())) 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 (hasBody()) { + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse 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.netapp.v1.ExecuteOntapPostResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse 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.netapp.v1.ExecuteOntapPostResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.ExecuteOntapPostResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +   * Response message for `ExecuteOntapPost` API.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.ExecuteOntapPostResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.ExecuteOntapPostResponse) + com.google.cloud.netapp.v1.ExecuteOntapPostResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.ExecuteOntapPostResponse.class, + com.google.cloud.netapp.v1.ExecuteOntapPostResponse.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.ExecuteOntapPostResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.OntapProto + .internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPostResponse getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.ExecuteOntapPostResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPostResponse build() { + com.google.cloud.netapp.v1.ExecuteOntapPostResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.ExecuteOntapPostResponse buildPartial() { + com.google.cloud.netapp.v1.ExecuteOntapPostResponse result = + new com.google.cloud.netapp.v1.ExecuteOntapPostResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.ExecuteOntapPostResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.ExecuteOntapPostResponse) { + return mergeFrom((com.google.cloud.netapp.v1.ExecuteOntapPostResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.ExecuteOntapPostResponse other) { + if (other == com.google.cloud.netapp.v1.ExecuteOntapPostResponse.getDefaultInstance()) + return this; + if (other.hasBody()) { + mergeBody(other.getBody()); + } + 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(internalGetBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private com.google.protobuf.Struct body_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + bodyBuilder_; + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + public com.google.protobuf.Struct getBody() { + if (bodyBuilder_ == null) { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } else { + return bodyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder setBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + } else { + bodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder setBody(com.google.protobuf.Struct.Builder builderForValue) { + if (bodyBuilder_ == null) { + body_ = builderForValue.build(); + } else { + bodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder mergeBody(com.google.protobuf.Struct value) { + if (bodyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && body_ != null + && body_ != com.google.protobuf.Struct.getDefaultInstance()) { + getBodyBuilder().mergeFrom(value); + } else { + body_ = value; + } + } else { + bodyBuilder_.mergeFrom(value); + } + if (body_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000001); + body_ = null; + if (bodyBuilder_ != null) { + bodyBuilder_.dispose(); + bodyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public com.google.protobuf.Struct.Builder getBodyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBodyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + public com.google.protobuf.StructOrBuilder getBodyOrBuilder() { + if (bodyBuilder_ != null) { + return bodyBuilder_.getMessageOrBuilder(); + } else { + return body_ == null ? com.google.protobuf.Struct.getDefaultInstance() : body_; + } + } + + /** + * + * + *
                                                                                                                                    +     * The raw `JSON` body of the response.
                                                                                                                                    +     * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetBodyFieldBuilder() { + if (bodyBuilder_ == null) { + bodyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getBody(), getParentForChildren(), isClean()); + body_ = null; + } + return bodyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.ExecuteOntapPostResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.ExecuteOntapPostResponse) + private static final com.google.cloud.netapp.v1.ExecuteOntapPostResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.ExecuteOntapPostResponse(); + } + + public static com.google.cloud.netapp.v1.ExecuteOntapPostResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteOntapPostResponse 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.netapp.v1.ExecuteOntapPostResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostResponseOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostResponseOrBuilder.java new file mode 100644 index 000000000000..a98dafbe4cca --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ExecuteOntapPostResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface ExecuteOntapPostResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.ExecuteOntapPostResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return Whether the body field is set. + */ + boolean hasBody(); + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + * + * @return The body. + */ + com.google.protobuf.Struct getBody(); + + /** + * + * + *
                                                                                                                                    +   * The raw `JSON` body of the response.
                                                                                                                                    +   * 
                                                                                                                                    + * + * .google.protobuf.Struct body = 1; + */ + com.google.protobuf.StructOrBuilder getBodyOrBuilder(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Mode.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Mode.java new file mode 100644 index 000000000000..119ed4513a16 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Mode.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/storage_pool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
                                                                                                                                    + * `Mode` of the storage pool or volume. This field is used to control whether
                                                                                                                                    + * the resource is managed by the GCNV APIs or the GCNV ONTAP Mode APIs.
                                                                                                                                    + * 
                                                                                                                                    + * + * Protobuf enum {@code google.cloud.netapp.v1.Mode} + */ +@com.google.protobuf.Generated +public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                    +   * The `Mode` is not specified.
                                                                                                                                    +   * 
                                                                                                                                    + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                    +   * The resource is managed by the GCNV APIs.
                                                                                                                                    +   * 
                                                                                                                                    + * + * DEFAULT = 1; + */ + DEFAULT(1), + /** + * + * + *
                                                                                                                                    +   * The resource is managed by the GCNV ONTAP Mode APIs.
                                                                                                                                    +   * 
                                                                                                                                    + * + * ONTAP = 2; + */ + ONTAP(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
                                                                                                                                    +   * The `Mode` is not specified.
                                                                                                                                    +   * 
                                                                                                                                    + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                    +   * The resource is managed by the GCNV APIs.
                                                                                                                                    +   * 
                                                                                                                                    + * + * DEFAULT = 1; + */ + public static final int DEFAULT_VALUE = 1; + + /** + * + * + *
                                                                                                                                    +   * The resource is managed by the GCNV ONTAP Mode APIs.
                                                                                                                                    +   * 
                                                                                                                                    + * + * ONTAP = 2; + */ + public static final int ONTAP_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return DEFAULT; + case 2: + return ONTAP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.netapp.v1.StoragePoolProto.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.Mode) +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapProto.java new file mode 100644 index 000000000000..403674123bb5 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OntapProto.java @@ -0,0 +1,189 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/ontap.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public final class OntapProto extends com.google.protobuf.GeneratedFile { + private OntapProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OntapProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\"google/cloud/netapp/v1/ontap.proto\022\026go" + + "ogle.cloud.netapp.v1\032\037google/api/field_b" + + "ehavior.proto\032\034google/protobuf/struct.pr" + + "oto\"^\n\027ExecuteOntapPostRequest\022*\n\004body\030\002" + + " \001(\0132\027.google.protobuf.StructB\003\340A\002\022\027\n\non" + + "tap_path\030\003 \001(\tB\003\340A\002\"A\n\030ExecuteOntapPostR" + + "esponse\022%\n\004body\030\001 \001(\0132\027.google.protobuf." + + "Struct\"1\n\026ExecuteOntapGetRequest\022\027\n\nonta" + + "p_path\030\001 \001(\tB\003\340A\002\"@\n\027ExecuteOntapGetResp" + + "onse\022%\n\004body\030\001 \001(\0132\027.google.protobuf.Str" + + "uct\"4\n\031ExecuteOntapDeleteRequest\022\027\n\nonta" + + "p_path\030\002 \001(\tB\003\340A\002\"C\n\032ExecuteOntapDeleteR" + + "esponse\022%\n\004body\030\001 \001(\0132\027.google.protobuf." + + "Struct\"_\n\030ExecuteOntapPatchRequest\022*\n\004bo" + + "dy\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\022\027" + + "\n\nontap_path\030\003 \001(\tB\003\340A\002\"B\n\031ExecuteOntapP" + + "atchResponse\022%\n\004body\030\001 \001(\0132\027.google.prot" + + "obuf.StructB\254\001\n\032com.google.cloud.netapp." + + "v1B\nOntapProtoP\001Z2cloud.google.com/go/ne" + + "tapp/apiv1/netapppb;netapppb\252\002\026Google.Cl" + + "oud.NetApp.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002" + + "\031Google::Cloud::NetApp::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ExecuteOntapPostRequest_descriptor, + new java.lang.String[] { + "Body", "OntapPath", + }); + internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ExecuteOntapPostResponse_descriptor, + new java.lang.String[] { + "Body", + }); + internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ExecuteOntapGetRequest_descriptor, + new java.lang.String[] { + "OntapPath", + }); + internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ExecuteOntapGetResponse_descriptor, + new java.lang.String[] { + "Body", + }); + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteRequest_descriptor, + new java.lang.String[] { + "OntapPath", + }); + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ExecuteOntapDeleteResponse_descriptor, + new java.lang.String[] { + "Body", + }); + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchRequest_descriptor, + new java.lang.String[] { + "Body", "OntapPath", + }); + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_ExecuteOntapPatchResponse_descriptor, + new java.lang.String[] { + "Body", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParameters.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParameters.java index d9ff64d376c9..e0f1fcd88e04 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParameters.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParameters.java @@ -204,11 +204,13 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { * *
                                                                                                                                        * Full name of the backup resource.
                                                                                                                                    -   * Format:
                                                                                                                                    +   * Format for standard backup:
                                                                                                                                        * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +   * Format for BackupDR backup:
                                                                                                                                    +   * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                        * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the sourceBackup field is set. */ @@ -221,11 +223,13 @@ public boolean hasSourceBackup() { * *
                                                                                                                                        * Full name of the backup resource.
                                                                                                                                    -   * Format:
                                                                                                                                    +   * Format for standard backup:
                                                                                                                                        * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +   * Format for BackupDR backup:
                                                                                                                                    +   * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                        * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return The sourceBackup. */ @@ -251,11 +255,13 @@ public java.lang.String getSourceBackup() { * *
                                                                                                                                        * Full name of the backup resource.
                                                                                                                                    -   * Format:
                                                                                                                                    +   * Format for standard backup:
                                                                                                                                        * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +   * Format for BackupDR backup:
                                                                                                                                    +   * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                        * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for sourceBackup. */ @@ -808,11 +814,13 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { * *
                                                                                                                                          * Full name of the backup resource.
                                                                                                                                    -     * Format:
                                                                                                                                    +     * Format for standard backup:
                                                                                                                                          * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +     * Format for BackupDR backup:
                                                                                                                                    +     * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                          * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the sourceBackup field is set. */ @@ -826,11 +834,13 @@ public boolean hasSourceBackup() { * *
                                                                                                                                          * Full name of the backup resource.
                                                                                                                                    -     * Format:
                                                                                                                                    +     * Format for standard backup:
                                                                                                                                          * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +     * Format for BackupDR backup:
                                                                                                                                    +     * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                          * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return The sourceBackup. */ @@ -857,11 +867,13 @@ public java.lang.String getSourceBackup() { * *
                                                                                                                                          * Full name of the backup resource.
                                                                                                                                    -     * Format:
                                                                                                                                    +     * Format for standard backup:
                                                                                                                                          * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +     * Format for BackupDR backup:
                                                                                                                                    +     * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                          * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for sourceBackup. */ @@ -888,11 +900,13 @@ public com.google.protobuf.ByteString getSourceBackupBytes() { * *
                                                                                                                                          * Full name of the backup resource.
                                                                                                                                    -     * Format:
                                                                                                                                    +     * Format for standard backup:
                                                                                                                                          * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +     * Format for BackupDR backup:
                                                                                                                                    +     * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                          * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @param value The sourceBackup to set. * @return This builder for chaining. @@ -912,11 +926,13 @@ public Builder setSourceBackup(java.lang.String value) { * *
                                                                                                                                          * Full name of the backup resource.
                                                                                                                                    -     * Format:
                                                                                                                                    +     * Format for standard backup:
                                                                                                                                          * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +     * Format for BackupDR backup:
                                                                                                                                    +     * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                          * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -934,11 +950,13 @@ public Builder clearSourceBackup() { * *
                                                                                                                                          * Full name of the backup resource.
                                                                                                                                    -     * Format:
                                                                                                                                    +     * Format for standard backup:
                                                                                                                                          * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +     * Format for BackupDR backup:
                                                                                                                                    +     * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                          * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @param value The bytes for sourceBackup to set. * @return This builder for chaining. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParametersOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParametersOrBuilder.java index 15722b598ec4..2c925457ccfc 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParametersOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/RestoreParametersOrBuilder.java @@ -76,11 +76,13 @@ public interface RestoreParametersOrBuilder * *
                                                                                                                                        * Full name of the backup resource.
                                                                                                                                    -   * Format:
                                                                                                                                    +   * Format for standard backup:
                                                                                                                                        * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +   * Format for BackupDR backup:
                                                                                                                                    +   * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                        * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the sourceBackup field is set. */ @@ -91,11 +93,13 @@ public interface RestoreParametersOrBuilder * *
                                                                                                                                        * Full name of the backup resource.
                                                                                                                                    -   * Format:
                                                                                                                                    +   * Format for standard backup:
                                                                                                                                        * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +   * Format for BackupDR backup:
                                                                                                                                    +   * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                        * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return The sourceBackup. */ @@ -106,11 +110,13 @@ public interface RestoreParametersOrBuilder * *
                                                                                                                                        * Full name of the backup resource.
                                                                                                                                    -   * Format:
                                                                                                                                    +   * Format for standard backup:
                                                                                                                                        * projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
                                                                                                                                    +   * Format for BackupDR backup:
                                                                                                                                    +   * projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
                                                                                                                                        * 
                                                                                                                                    * - * string source_backup = 2; + * string source_backup = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for sourceBackup. */ diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java index df960f4b5140..ec37dd7679a9 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java @@ -68,6 +68,7 @@ private StoragePool() { zone_ = ""; qosType_ = 0; type_ = 0; + mode_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1143,7 +1144,7 @@ public com.google.cloud.netapp.v1.EncryptionType getEncryptionType() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=243 + * google/cloud/netapp/v1/storage_pool.proto;l=256 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Override @@ -1163,7 +1164,7 @@ public boolean hasGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=243 + * google/cloud/netapp/v1/storage_pool.proto;l=256 * @return The globalAccessAllowed. */ @java.lang.Override @@ -1569,9 +1570,7 @@ public long getHotTierSizeUsedGib() { *
                                                                                                                                        * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                        * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -   * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -   * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -   * to `FILE`.
                                                                                                                                    +   * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                        * 
                                                                                                                                    * * @@ -1591,9 +1590,7 @@ public boolean hasType() { *
                                                                                                                                        * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                        * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -   * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -   * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -   * to `FILE`.
                                                                                                                                    +   * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                        * 
                                                                                                                                    * * @@ -1613,9 +1610,7 @@ public int getTypeValue() { *
                                                                                                                                        * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                        * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -   * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -   * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -   * to `FILE`.
                                                                                                                                    +   * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                        * 
                                                                                                                                    * * @@ -1631,6 +1626,73 @@ public com.google.cloud.netapp.v1.StoragePoolType getType() { return result == null ? com.google.cloud.netapp.v1.StoragePoolType.UNRECOGNIZED : result; } + public static final int MODE_FIELD_NUMBER = 36; + private int mode_ = 0; + + /** + * + * + *
                                                                                                                                    +   * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +   * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +   * `DEFAULT`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mode field is set. + */ + @java.lang.Override + public boolean hasMode() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                    +   * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +   * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +   * `DEFAULT`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
                                                                                                                                    +   * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +   * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +   * `DEFAULT`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.Mode getMode() { + com.google.cloud.netapp.v1.Mode result = com.google.cloud.netapp.v1.Mode.forNumber(mode_); + return result == null ? com.google.cloud.netapp.v1.Mode.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1742,6 +1804,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(35, type_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(36, mode_); + } getUnknownFields().writeTo(output); } @@ -1857,6 +1922,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, type_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(36, mode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1917,6 +1985,10 @@ public boolean equals(final java.lang.Object obj) { if (hasType()) { if (type_ != other.type_) return false; } + if (hasMode() != other.hasMode()) return false; + if (hasMode()) { + if (mode_ != other.mode_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2005,6 +2077,10 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } + if (hasMode()) { + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2178,6 +2254,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + bitField1_ = 0; name_ = ""; serviceLevel_ = 0; capacityGib_ = 0L; @@ -2214,6 +2291,7 @@ public Builder clear() { coldTierSizeUsedGib_ = 0L; hotTierSizeUsedGib_ = 0L; type_ = 0; + mode_ = 0; return this; } @@ -2244,6 +2322,9 @@ public com.google.cloud.netapp.v1.StoragePool buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { + buildPartial1(result); + } onBuilt(); return result; } @@ -2355,6 +2436,16 @@ private void buildPartial0(com.google.cloud.netapp.v1.StoragePool result) { result.bitField0_ |= to_bitField0_; } + private void buildPartial1(com.google.cloud.netapp.v1.StoragePool result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.mode_ = mode_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.netapp.v1.StoragePool) { @@ -2480,6 +2571,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.StoragePool other) { if (other.hasType()) { setTypeValue(other.getTypeValue()); } + if (other.hasMode()) { + setModeValue(other.getModeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2705,6 +2799,12 @@ public Builder mergeFrom( bitField0_ |= 0x80000000; break; } // case 280 + case 288: + { + mode_ = input.readEnum(); + bitField1_ |= 0x00000001; + break; + } // case 288 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2723,6 +2823,7 @@ public Builder mergeFrom( } private int bitField0_; + private int bitField1_; private java.lang.Object name_ = ""; @@ -4482,7 +4583,7 @@ public Builder clearEncryptionType() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=243 + * google/cloud/netapp/v1/storage_pool.proto;l=256 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Override @@ -4502,7 +4603,7 @@ public boolean hasGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=243 + * google/cloud/netapp/v1/storage_pool.proto;l=256 * @return The globalAccessAllowed. */ @java.lang.Override @@ -4522,7 +4623,7 @@ public boolean getGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=243 + * google/cloud/netapp/v1/storage_pool.proto;l=256 * @param value The globalAccessAllowed to set. * @return This builder for chaining. */ @@ -4546,7 +4647,7 @@ public Builder setGlobalAccessAllowed(boolean value) { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=243 + * google/cloud/netapp/v1/storage_pool.proto;l=256 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5574,9 +5675,7 @@ public Builder clearHotTierSizeUsedGib() { *
                                                                                                                                          * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                          * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -     * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -     * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -     * to `FILE`.
                                                                                                                                    +     * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                          * 
                                                                                                                                    * * @@ -5596,9 +5695,7 @@ public boolean hasType() { *
                                                                                                                                          * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                          * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -     * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -     * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -     * to `FILE`.
                                                                                                                                    +     * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                          * 
                                                                                                                                    * * @@ -5618,9 +5715,7 @@ public int getTypeValue() { *
                                                                                                                                          * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                          * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -     * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -     * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -     * to `FILE`.
                                                                                                                                    +     * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                          * 
                                                                                                                                    * * @@ -5643,9 +5738,7 @@ public Builder setTypeValue(int value) { *
                                                                                                                                          * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                          * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -     * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -     * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -     * to `FILE`.
                                                                                                                                    +     * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                          * 
                                                                                                                                    * * @@ -5667,9 +5760,7 @@ public com.google.cloud.netapp.v1.StoragePoolType getType() { *
                                                                                                                                          * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                          * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -     * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -     * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -     * to `FILE`.
                                                                                                                                    +     * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                          * 
                                                                                                                                    * * @@ -5695,9 +5786,7 @@ public Builder setType(com.google.cloud.netapp.v1.StoragePoolType value) { *
                                                                                                                                          * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                          * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -     * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -     * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -     * to `FILE`.
                                                                                                                                    +     * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                          * 
                                                                                                                                    * * @@ -5713,6 +5802,146 @@ public Builder clearType() { return this; } + private int mode_ = 0; + + /** + * + * + *
                                                                                                                                    +     * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +     * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +     * `DEFAULT`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mode field is set. + */ + @java.lang.Override + public boolean hasMode() { + return ((bitField1_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                    +     * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +     * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +     * `DEFAULT`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +     * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +     * `DEFAULT`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +     * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +     * `DEFAULT`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.Mode getMode() { + com.google.cloud.netapp.v1.Mode result = com.google.cloud.netapp.v1.Mode.forNumber(mode_); + return result == null ? com.google.cloud.netapp.v1.Mode.UNRECOGNIZED : result; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +     * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +     * `DEFAULT`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.netapp.v1.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +     * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +     * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +     * `DEFAULT`.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField1_ = (bitField1_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.StoragePool) } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java index be787869150c..a8418a5f69d3 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java @@ -482,7 +482,7 @@ java.lang.String getLabelsOrDefault( * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=243 + * google/cloud/netapp/v1/storage_pool.proto;l=256 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Deprecated @@ -499,7 +499,7 @@ java.lang.String getLabelsOrDefault( * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=243 + * google/cloud/netapp/v1/storage_pool.proto;l=256 * @return The globalAccessAllowed. */ @java.lang.Deprecated @@ -765,9 +765,7 @@ java.lang.String getLabelsOrDefault( *
                                                                                                                                        * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                        * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -   * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -   * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -   * to `FILE`.
                                                                                                                                    +   * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                        * 
                                                                                                                                    * * @@ -784,9 +782,7 @@ java.lang.String getLabelsOrDefault( *
                                                                                                                                        * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                        * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -   * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -   * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -   * to `FILE`.
                                                                                                                                    +   * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                        * 
                                                                                                                                    * * @@ -803,9 +799,7 @@ java.lang.String getLabelsOrDefault( *
                                                                                                                                        * Optional. Type of the storage pool. This field is used to control whether
                                                                                                                                        * the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
                                                                                                                                    -   * `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`)
                                                                                                                                    -   * volumes with large capacity. If not specified during creation, it defaults
                                                                                                                                    -   * to `FILE`.
                                                                                                                                    +   * `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
                                                                                                                                        * 
                                                                                                                                    * * @@ -815,4 +809,58 @@ java.lang.String getLabelsOrDefault( * @return The type. */ com.google.cloud.netapp.v1.StoragePoolType getType(); + + /** + * + * + *
                                                                                                                                    +   * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +   * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +   * `DEFAULT`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mode field is set. + */ + boolean hasMode(); + + /** + * + * + *
                                                                                                                                    +   * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +   * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +   * `DEFAULT`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
                                                                                                                                    +   * Optional. Mode of the storage pool. This field is used to control whether
                                                                                                                                    +   * the user can perform the ONTAP operations on the storage pool using the
                                                                                                                                    +   * GCNV ONTAP Mode APIs. If not specified during creation, it defaults to
                                                                                                                                    +   * `DEFAULT`.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * optional .google.cloud.netapp.v1.Mode mode = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.netapp.v1.Mode getMode(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java index 4e09bdc75cdc..4bb3053aafa0 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java @@ -124,7 +124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!netapp.googleapis.com/StoragePool\"Y\n" + "\036SwitchActiveReplicaZoneRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!netapp.googleapis.com/StoragePool\"\256\r\n" + + "!netapp.googleapis.com/StoragePool\"\355\r\n" + "\013StoragePool\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022@\n\r" + "service_level\030\002" @@ -169,7 +169,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027cold_tier_size_used_gib\030! \001(\003B\003\340A\003\022#\n" + "\026hot_tier_size_used_gib\030\" \001(\003B\003\340A\003\022?\n" + "\004type\030#" - + " \001(\0162\'.google.cloud.netapp.v1.StoragePoolTypeB\003\340A\001H\002\210\001\001\032-\n" + + " \001(\0162\'.google.cloud.netapp.v1.StoragePoolTypeB\003\340A\001H\002\210\001\001\0224\n" + + "\004mode\030$ " + + "\001(\0162\034.google.cloud.netapp.v1.ModeB\003\340A\001H\003\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"{\n" @@ -182,20 +184,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tRESTORING\020\005\022\014\n" + "\010DISABLED\020\006\022\t\n" + "\005ERROR\020\007:\207\001\352A\203\001\n" - + "!netapp.googleapis.com/StoragePool\022Cprojects/{project}/locations/{locat" - + "ion}/storagePools/{storage_pool}*\014storagePools2\013storagePoolB\030\n" + + "!netapp.googleapis.com/StoragePool\022Cprojects/{project}/lo" + + "cations/{location}/storagePools/{storage_pool}*\014storagePools2\013storagePoolB\030\n" + "\026_global_access_allowedB\036\n" + "\034_enable_hot_tier_auto_resizeB\007\n" - + "\005_type\"\250\001\n" + + "\005_typeB\007\n" + + "\005_mode\"\250\001\n" + "\037ValidateDirectoryServiceRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!netapp.googleapis.com/StoragePool\022L\n" - + "\026directory_service_type\030\002" - + " \001(\0162,.google.cloud.netapp.v1.DirectoryServiceTypeB\262\001\n" - + "\032com.google.cloud.netapp.v1B\020StoragePoolProtoP\001Z2cloud.goog" - + "le.com/go/netapp/apiv1/netapppb;netapppb" - + "\252\002\026Google.Cloud.NetApp.V1\312\002\026Google\\Cloud" - + "\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" + + "\026directory_service_type\030\002 \001(\0162,.goo" + + "gle.cloud.netapp.v1.DirectoryServiceType*4\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\013\n" + + "\007DEFAULT\020\001\022\t\n" + + "\005ONTAP\020\002B\262\001\n" + + "\032com.google.cloud.netapp.v1B\020StoragePoolProtoP\001Z2cloud.google." + + "com/go/netapp/apiv1/netapppb;netapppb\252\002\026" + + "Google.Cloud.NetApp.V1\312\002\026Google\\Cloud\\Ne" + + "tApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -301,6 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ColdTierSizeUsedGib", "HotTierSizeUsedGib", "Type", + "Mode", }); internal_static_google_cloud_netapp_v1_StoragePool_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_StoragePool_descriptor.getNestedType(0); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolType.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolType.java index 2a3ab1ea0a88..9b0928c0ef29 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolType.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolType.java @@ -61,16 +61,6 @@ public enum StoragePoolType implements com.google.protobuf.ProtocolMessageEnum { * UNIFIED = 2; */ UNIFIED(2), - /** - * - * - *
                                                                                                                                    -   * Storage pool type is unified large capacity.
                                                                                                                                    -   * 
                                                                                                                                    - * - * UNIFIED_LARGE_CAPACITY = 3; - */ - UNIFIED_LARGE_CAPACITY(3), UNRECOGNIZED(-1), ; @@ -117,17 +107,6 @@ public enum StoragePoolType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNIFIED_VALUE = 2; - /** - * - * - *
                                                                                                                                    -   * Storage pool type is unified large capacity.
                                                                                                                                    -   * 
                                                                                                                                    - * - * UNIFIED_LARGE_CAPACITY = 3; - */ - public static final int UNIFIED_LARGE_CAPACITY_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -158,8 +137,6 @@ public static StoragePoolType forNumber(int value) { return FILE; case 2: return UNIFIED; - case 3: - return UNIFIED_LARGE_CAPACITY; default: return null; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java index 0f742350574c..81ad13bb8655 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java @@ -436,6 +436,1015 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.Volume.State) } + public interface CloneDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.Volume.CloneDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                    +     * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +     * which this volume was cloned. Format:
                                                                                                                                    +     * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSnapshot. + */ + java.lang.String getSourceSnapshot(); + + /** + * + * + *
                                                                                                                                    +     * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +     * which this volume was cloned. Format:
                                                                                                                                    +     * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSnapshot. + */ + com.google.protobuf.ByteString getSourceSnapshotBytes(); + + /** + * + * + *
                                                                                                                                    +     * Output only. Full name of the source volume resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceVolume. + */ + java.lang.String getSourceVolume(); + + /** + * + * + *
                                                                                                                                    +     * Output only. Full name of the source volume resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceVolume. + */ + com.google.protobuf.ByteString getSourceVolumeBytes(); + + /** + * + * + *
                                                                                                                                    +     * Output only. Shared space in GiB. Determined at volume creation time
                                                                                                                                    +     * based on size of source snapshot.
                                                                                                                                    +     * 
                                                                                                                                    + * + * int64 shared_space_gib = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sharedSpaceGib. + */ + long getSharedSpaceGib(); + } + + /** + * + * + *
                                                                                                                                    +   * Details about a clone volume.
                                                                                                                                    +   * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.Volume.CloneDetails} + */ + public static final class CloneDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.Volume.CloneDetails) + CloneDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloneDetails"); + } + + // Use CloneDetails.newBuilder() to construct. + private CloneDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloneDetails() { + sourceSnapshot_ = ""; + sourceVolume_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_Volume_CloneDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_Volume_CloneDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.Volume.CloneDetails.class, + com.google.cloud.netapp.v1.Volume.CloneDetails.Builder.class); + } + + public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceSnapshot_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +     * which this volume was cloned. Format:
                                                                                                                                    +     * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSnapshot. + */ + @java.lang.Override + public java.lang.String getSourceSnapshot() { + java.lang.Object ref = sourceSnapshot_; + 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(); + sourceSnapshot_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +     * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +     * which this volume was cloned. Format:
                                                                                                                                    +     * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSnapshot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceSnapshotBytes() { + java.lang.Object ref = sourceSnapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSnapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_VOLUME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceVolume_ = ""; + + /** + * + * + *
                                                                                                                                    +     * Output only. Full name of the source volume resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceVolume. + */ + @java.lang.Override + public java.lang.String getSourceVolume() { + java.lang.Object ref = sourceVolume_; + 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(); + sourceVolume_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                    +     * Output only. Full name of the source volume resource.
                                                                                                                                    +     * Format:
                                                                                                                                    +     * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceVolume. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceVolumeBytes() { + java.lang.Object ref = sourceVolume_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceVolume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARED_SPACE_GIB_FIELD_NUMBER = 3; + private long sharedSpaceGib_ = 0L; + + /** + * + * + *
                                                                                                                                    +     * Output only. Shared space in GiB. Determined at volume creation time
                                                                                                                                    +     * based on size of source snapshot.
                                                                                                                                    +     * 
                                                                                                                                    + * + * int64 shared_space_gib = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sharedSpaceGib. + */ + @java.lang.Override + public long getSharedSpaceGib() { + return sharedSpaceGib_; + } + + 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.GeneratedMessage.isStringEmpty(sourceSnapshot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sourceSnapshot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceVolume_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, sourceVolume_); + } + if (sharedSpaceGib_ != 0L) { + output.writeInt64(3, sharedSpaceGib_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceSnapshot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sourceSnapshot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceVolume_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sourceVolume_); + } + if (sharedSpaceGib_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sharedSpaceGib_); + } + 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.netapp.v1.Volume.CloneDetails)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.Volume.CloneDetails other = + (com.google.cloud.netapp.v1.Volume.CloneDetails) obj; + + if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; + if (!getSourceVolume().equals(other.getSourceVolume())) return false; + if (getSharedSpaceGib() != other.getSharedSpaceGib()) 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) + SOURCE_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSourceSnapshot().hashCode(); + hash = (37 * hash) + SOURCE_VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getSourceVolume().hashCode(); + hash = (37 * hash) + SHARED_SPACE_GIB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSharedSpaceGib()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails 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.netapp.v1.Volume.CloneDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails 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.netapp.v1.Volume.CloneDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.netapp.v1.Volume.CloneDetails 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                    +     * Details about a clone volume.
                                                                                                                                    +     * 
                                                                                                                                    + * + * Protobuf type {@code google.cloud.netapp.v1.Volume.CloneDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.Volume.CloneDetails) + com.google.cloud.netapp.v1.Volume.CloneDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_Volume_CloneDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_Volume_CloneDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.Volume.CloneDetails.class, + com.google.cloud.netapp.v1.Volume.CloneDetails.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.Volume.CloneDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceSnapshot_ = ""; + sourceVolume_ = ""; + sharedSpaceGib_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_Volume_CloneDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.Volume.CloneDetails getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.Volume.CloneDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.Volume.CloneDetails build() { + com.google.cloud.netapp.v1.Volume.CloneDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.Volume.CloneDetails buildPartial() { + com.google.cloud.netapp.v1.Volume.CloneDetails result = + new com.google.cloud.netapp.v1.Volume.CloneDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.Volume.CloneDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceSnapshot_ = sourceSnapshot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceVolume_ = sourceVolume_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sharedSpaceGib_ = sharedSpaceGib_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.Volume.CloneDetails) { + return mergeFrom((com.google.cloud.netapp.v1.Volume.CloneDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.Volume.CloneDetails other) { + if (other == com.google.cloud.netapp.v1.Volume.CloneDetails.getDefaultInstance()) + return this; + if (!other.getSourceSnapshot().isEmpty()) { + sourceSnapshot_ = other.sourceSnapshot_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceVolume().isEmpty()) { + sourceVolume_ = other.sourceVolume_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSharedSpaceGib() != 0L) { + setSharedSpaceGib(other.getSharedSpaceGib()); + } + 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: + { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceVolume_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + sharedSpaceGib_ = 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 sourceSnapshot_ = ""; + + /** + * + * + *
                                                                                                                                    +       * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +       * which this volume was cloned. Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSnapshot. + */ + public java.lang.String getSourceSnapshot() { + java.lang.Object ref = sourceSnapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceSnapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +       * which this volume was cloned. Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSnapshot. + */ + public com.google.protobuf.ByteString getSourceSnapshotBytes() { + java.lang.Object ref = sourceSnapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSnapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +       * which this volume was cloned. Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The sourceSnapshot to set. + * @return This builder for chaining. + */ + public Builder setSourceSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceSnapshot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +       * which this volume was cloned. Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSourceSnapshot() { + sourceSnapshot_ = getDefaultInstance().getSourceSnapshot(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Specifies the full resource name of the source snapshot from
                                                                                                                                    +       * which this volume was cloned. Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_snapshot = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sourceSnapshot to set. + * @return This builder for chaining. + */ + public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceSnapshot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceVolume_ = ""; + + /** + * + * + *
                                                                                                                                    +       * Output only. Full name of the source volume resource.
                                                                                                                                    +       * Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceVolume. + */ + public java.lang.String getSourceVolume() { + java.lang.Object ref = sourceVolume_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceVolume_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Full name of the source volume resource.
                                                                                                                                    +       * Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceVolume. + */ + public com.google.protobuf.ByteString getSourceVolumeBytes() { + java.lang.Object ref = sourceVolume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceVolume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Full name of the source volume resource.
                                                                                                                                    +       * Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The sourceVolume to set. + * @return This builder for chaining. + */ + public Builder setSourceVolume(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceVolume_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Full name of the source volume resource.
                                                                                                                                    +       * Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSourceVolume() { + sourceVolume_ = getDefaultInstance().getSourceVolume(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Full name of the source volume resource.
                                                                                                                                    +       * Format:
                                                                                                                                    +       * projects/{project}/locations/{location}/volumes/{volume}
                                                                                                                                    +       * 
                                                                                                                                    + * + * + * string source_volume = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sourceVolume to set. + * @return This builder for chaining. + */ + public Builder setSourceVolumeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceVolume_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long sharedSpaceGib_; + + /** + * + * + *
                                                                                                                                    +       * Output only. Shared space in GiB. Determined at volume creation time
                                                                                                                                    +       * based on size of source snapshot.
                                                                                                                                    +       * 
                                                                                                                                    + * + * int64 shared_space_gib = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sharedSpaceGib. + */ + @java.lang.Override + public long getSharedSpaceGib() { + return sharedSpaceGib_; + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Shared space in GiB. Determined at volume creation time
                                                                                                                                    +       * based on size of source snapshot.
                                                                                                                                    +       * 
                                                                                                                                    + * + * int64 shared_space_gib = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sharedSpaceGib to set. + * @return This builder for chaining. + */ + public Builder setSharedSpaceGib(long value) { + + sharedSpaceGib_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +       * Output only. Shared space in GiB. Determined at volume creation time
                                                                                                                                    +       * based on size of source snapshot.
                                                                                                                                    +       * 
                                                                                                                                    + * + * int64 shared_space_gib = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSharedSpaceGib() { + bitField0_ = (bitField0_ & ~0x00000004); + sharedSpaceGib_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.Volume.CloneDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.Volume.CloneDetails) + private static final com.google.cloud.netapp.v1.Volume.CloneDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.Volume.CloneDetails(); + } + + public static com.google.cloud.netapp.v1.Volume.CloneDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloneDetails 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.netapp.v1.Volume.CloneDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -2575,6 +3584,68 @@ public com.google.cloud.netapp.v1.BlockDeviceOrBuilder getBlockDevicesOrBuilder( return blockDevices_.get(index); } + public static final int CLONE_DETAILS_FIELD_NUMBER = 47; + private com.google.cloud.netapp.v1.Volume.CloneDetails cloneDetails_; + + /** + * + * + *
                                                                                                                                    +   * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +   * the clone.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloneDetails field is set. + */ + @java.lang.Override + public boolean hasCloneDetails() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                                                                                                                    +   * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +   * the clone.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloneDetails. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.Volume.CloneDetails getCloneDetails() { + return cloneDetails_ == null + ? com.google.cloud.netapp.v1.Volume.CloneDetails.getDefaultInstance() + : cloneDetails_; + } + + /** + * + * + *
                                                                                                                                    +   * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +   * the clone.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.netapp.v1.Volume.CloneDetailsOrBuilder getCloneDetailsOrBuilder() { + return cloneDetails_ == null + ? com.google.cloud.netapp.v1.Volume.CloneDetails.getDefaultInstance() + : cloneDetails_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2730,6 +3801,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < blockDevices_.size(); i++) { output.writeMessage(45, blockDevices_.get(i)); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(47, getCloneDetails()); + } getUnknownFields().writeTo(output); } @@ -2908,6 +3982,9 @@ public int getSerializedSize() { for (int i = 0; i < blockDevices_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(45, blockDevices_.get(i)); } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getCloneDetails()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2992,6 +4069,10 @@ public boolean equals(final java.lang.Object obj) { } if (getHotTierSizeUsedGib() != other.getHotTierSizeUsedGib()) return false; if (!getBlockDevicesList().equals(other.getBlockDevicesList())) return false; + if (hasCloneDetails() != other.hasCloneDetails()) return false; + if (hasCloneDetails()) { + if (!getCloneDetails().equals(other.getCloneDetails())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3121,6 +4202,10 @@ public int hashCode() { hash = (37 * hash) + BLOCK_DEVICES_FIELD_NUMBER; hash = (53 * hash) + getBlockDevicesList().hashCode(); } + if (hasCloneDetails()) { + hash = (37 * hash) + CLONE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCloneDetails().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3293,6 +4378,7 @@ private void maybeForceBuilderInitialization() { internalGetHybridReplicationParametersFieldBuilder(); internalGetCacheParametersFieldBuilder(); internalGetBlockDevicesFieldBuilder(); + internalGetCloneDetailsFieldBuilder(); } } @@ -3387,6 +4473,11 @@ public Builder clear() { blockDevicesBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000200); + cloneDetails_ = null; + if (cloneDetailsBuilder_ != null) { + cloneDetailsBuilder_.dispose(); + cloneDetailsBuilder_ = null; + } return this; } @@ -3597,6 +4688,11 @@ private void buildPartial1(com.google.cloud.netapp.v1.Volume result) { if (((from_bitField1_ & 0x00000100) != 0)) { result.hotTierSizeUsedGib_ = hotTierSizeUsedGib_; } + if (((from_bitField1_ & 0x00000400) != 0)) { + result.cloneDetails_ = + cloneDetailsBuilder_ == null ? cloneDetails_ : cloneDetailsBuilder_.build(); + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -3833,6 +4929,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Volume other) { } } } + if (other.hasCloneDetails()) { + mergeCloneDetails(other.getCloneDetails()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4176,6 +5275,13 @@ public Builder mergeFrom( } break; } // case 362 + case 378: + { + input.readMessage( + internalGetCloneDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000400; + break; + } // case 378 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10151,6 +11257,229 @@ public com.google.cloud.netapp.v1.BlockDevice.Builder addBlockDevicesBuilder(int return blockDevicesBuilder_; } + private com.google.cloud.netapp.v1.Volume.CloneDetails cloneDetails_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.Volume.CloneDetails, + com.google.cloud.netapp.v1.Volume.CloneDetails.Builder, + com.google.cloud.netapp.v1.Volume.CloneDetailsOrBuilder> + cloneDetailsBuilder_; + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloneDetails field is set. + */ + public boolean hasCloneDetails() { + return ((bitField1_ & 0x00000400) != 0); + } + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloneDetails. + */ + public com.google.cloud.netapp.v1.Volume.CloneDetails getCloneDetails() { + if (cloneDetailsBuilder_ == null) { + return cloneDetails_ == null + ? com.google.cloud.netapp.v1.Volume.CloneDetails.getDefaultInstance() + : cloneDetails_; + } else { + return cloneDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloneDetails(com.google.cloud.netapp.v1.Volume.CloneDetails value) { + if (cloneDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloneDetails_ = value; + } else { + cloneDetailsBuilder_.setMessage(value); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloneDetails( + com.google.cloud.netapp.v1.Volume.CloneDetails.Builder builderForValue) { + if (cloneDetailsBuilder_ == null) { + cloneDetails_ = builderForValue.build(); + } else { + cloneDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCloneDetails(com.google.cloud.netapp.v1.Volume.CloneDetails value) { + if (cloneDetailsBuilder_ == null) { + if (((bitField1_ & 0x00000400) != 0) + && cloneDetails_ != null + && cloneDetails_ + != com.google.cloud.netapp.v1.Volume.CloneDetails.getDefaultInstance()) { + getCloneDetailsBuilder().mergeFrom(value); + } else { + cloneDetails_ = value; + } + } else { + cloneDetailsBuilder_.mergeFrom(value); + } + if (cloneDetails_ != null) { + bitField1_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCloneDetails() { + bitField1_ = (bitField1_ & ~0x00000400); + cloneDetails_ = null; + if (cloneDetailsBuilder_ != null) { + cloneDetailsBuilder_.dispose(); + cloneDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.netapp.v1.Volume.CloneDetails.Builder getCloneDetailsBuilder() { + bitField1_ |= 0x00000400; + onChanged(); + return internalGetCloneDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.netapp.v1.Volume.CloneDetailsOrBuilder getCloneDetailsOrBuilder() { + if (cloneDetailsBuilder_ != null) { + return cloneDetailsBuilder_.getMessageOrBuilder(); + } else { + return cloneDetails_ == null + ? com.google.cloud.netapp.v1.Volume.CloneDetails.getDefaultInstance() + : cloneDetails_; + } + } + + /** + * + * + *
                                                                                                                                    +     * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +     * the clone.
                                                                                                                                    +     * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.Volume.CloneDetails, + com.google.cloud.netapp.v1.Volume.CloneDetails.Builder, + com.google.cloud.netapp.v1.Volume.CloneDetailsOrBuilder> + internalGetCloneDetailsFieldBuilder() { + if (cloneDetailsBuilder_ == null) { + cloneDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.Volume.CloneDetails, + com.google.cloud.netapp.v1.Volume.CloneDetails.Builder, + com.google.cloud.netapp.v1.Volume.CloneDetailsOrBuilder>( + getCloneDetails(), getParentForChildren(), isClean()); + cloneDetails_ = null; + } + return cloneDetailsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.Volume) } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java index 097f08720835..348691574afc 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java @@ -1407,4 +1407,50 @@ java.lang.String getLabelsOrDefault( *
                                                                                                                                    */ com.google.cloud.netapp.v1.BlockDeviceOrBuilder getBlockDevicesOrBuilder(int index); + + /** + * + * + *
                                                                                                                                    +   * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +   * the clone.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloneDetails field is set. + */ + boolean hasCloneDetails(); + + /** + * + * + *
                                                                                                                                    +   * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +   * the clone.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloneDetails. + */ + com.google.cloud.netapp.v1.Volume.CloneDetails getCloneDetails(); + + /** + * + * + *
                                                                                                                                    +   * Output only. If this volume is a clone, this field contains details about
                                                                                                                                    +   * the clone.
                                                                                                                                    +   * 
                                                                                                                                    + * + * + * .google.cloud.netapp.v1.Volume.CloneDetails clone_details = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.netapp.v1.Volume.CloneDetailsOrBuilder getCloneDetailsOrBuilder(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java index 450c53e4ed39..8f404fff5cf6 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_Volume_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_netapp_v1_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_Volume_CloneDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_Volume_CloneDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -152,6 +156,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -197,7 +205,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023RevertVolumeRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034netapp.googleapis.com/Volume\022\030\n" - + "\013snapshot_id\030\002 \001(\tB\003\340A\002\"\336\022\n" + + "\013snapshot_id\030\002 \001(\tB\003\340A\002\"\325\024\n" + "\006Volume\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0228\n" + "\005state\030\002 \001(\0162$.g" @@ -261,7 +269,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020cache_parameters\030*" + " \001(\0132\'.google.cloud.netapp.v1.CacheParametersB\003\340A\001\022#\n" + "\026hot_tier_size_used_gib\030, \001(\003B\003\340A\003\022?\n\r" - + "block_devices\030- \003(\0132#.google.cloud.netapp.v1.BlockDeviceB\003\340A\001\032-\n" + + "block_devices\030- \003(\013" + + "2#.google.cloud.netapp.v1.BlockDeviceB\003\340A\001\022G\n\r" + + "clone_details\030/" + + " \001(\0132+.google.cloud.netapp.v1.Volume.CloneDetailsB\003\340A\003\032\253\001\n" + + "\014CloneDetails\022?\n" + + "\017source_snapshot\030\001 \001(\tB&\340A\003\372A \n" + + "\036netapp.googleapis.com/Snapshot\022;\n" + + "\r" + + "source_volume\030\002 \001(\tB$\340A\003\372A\036\n" + + "\034netapp.googleapis.com/Volume\022\035\n" + + "\020shared_space_gib\030\003 \001(\003B\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\231\001\n" @@ -276,13 +294,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005ERROR\020\007\022\r\n" + "\tPREPARING\020\010\022\r\n" + "\tREAD_ONLY\020\t:l\352Ai\n" - + "\034netapp.googleapis.com/Volume" - + "\0228projects/{project}/locations/{location}/volumes/{volume}*\007volumes2\006volumeB\020\n" + + "\034netapp.googleapis.com/Volume\0228projects/{project}/locations/{l" + + "ocation}/volumes/{volume}*\007volumes2\006volumeB\020\n" + "\016_backup_configB\021\n" + "\017_tiering_policy\"R\n" + "\014ExportPolicy\022B\n" - + "\005rules\030\001" - + " \003(\0132..google.cloud.netapp.v1.SimpleExportPolicyRuleB\003\340A\002\"\357\006\n" + + "\005rules\030\001 \003(\0132..google." + + "cloud.netapp.v1.SimpleExportPolicyRuleB\003\340A\002\"\357\006\n" + "\026SimpleExportPolicyRule\022\034\n" + "\017allowed_clients\030\001 \001(\tH\000\210\001\001\022\034\n" + "\017has_root_access\030\002 \001(\tH\001\210\001\001\022<\n" @@ -298,8 +316,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\t\210\001\001\022#\n" + "\026kerberos_5p_read_write\030\013 \001(\010H\n" + "\210\001\001\022X\n" - + "\013squash_mode\030\014 \001(\01629.google.cloud.n" - + "etapp.v1.SimpleExportPolicyRule.SquashModeB\003\340A\001H\013\210\001\001\022\032\n" + + "\013squash_mode\030\014 \001(\01629.google." + + "cloud.netapp.v1.SimpleExportPolicyRule.SquashModeB\003\340A\001H\013\210\001\001\022\032\n" + "\010anon_uid\030\r" + " \001(\003B\003\340A\001H\014\210\001\001\"^\n\n" + "SquashMode\022\033\n" @@ -326,10 +344,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132&.google.cloud.netapp.v1.HourlyScheduleH\001\210\001\001\022B\n" + "\016daily_schedule\030\003" + " \001(\0132%.google.cloud.netapp.v1.DailyScheduleH\002\210\001\001\022D\n" - + "\017weekly_schedule\030\004 \001" - + "(\0132&.google.cloud.netapp.v1.WeeklyScheduleH\003\210\001\001\022F\n" - + "\020monthly_schedule\030\005 \001(\0132\'.goog" - + "le.cloud.netapp.v1.MonthlyScheduleH\004\210\001\001B\n\n" + + "\017weekly_schedule\030\004" + + " \001(\0132&.google.cloud.netapp.v1.WeeklyScheduleH\003\210\001\001\022F\n" + + "\020monthly_schedule\030\005 \001(\013" + + "2\'.google.cloud.netapp.v1.MonthlyScheduleH\004\210\001\001B\n\n" + "\010_enabledB\022\n" + "\020_hourly_scheduleB\021\n" + "\017_daily_scheduleB\022\n" @@ -370,10 +388,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013export_full\030\002 \001(\t\0223\n" + "\010protocol\030\003 \001(\0162!.google.cloud.netapp.v1.Protocols\022\024\n" + "\014instructions\030\004 \001(\t\022\037\n\n" - + "ip_address\030\005 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\"Q\n" + + "ip_address\030\005 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\"t\n" + "\021RestoreParameters\022\031\n" - + "\017source_snapshot\030\001 \001(\tH\000\022\027\n\r" - + "source_backup\030\002 \001(\tH\000B\010\n" + + "\017source_snapshot\030\001 \001(\tH\000\022:\n\r" + + "source_backup\030\002 \001(\tB!\372A\036\n" + + "\034netapp.googleapis.com/BackupH\000B\010\n" + "\006source\"\232\002\n" + "\014BackupConfig\022C\n" + "\017backup_policies\030\001 \003(\tB*\340A\001\372A$\n" @@ -385,8 +404,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_scheduled_backup_enabledB\025\n" + "\023_backup_chain_bytes\"\312\002\n\r" + "TieringPolicy\022O\n" - + "\013tier_action\030\001 \001(\01620.goo" - + "gle.cloud.netapp.v1.TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n" + + "\013tier_action\030\001 \001(\01620.g" + + "oogle.cloud.netapp.v1.TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n" + "\026cooling_threshold_days\030\002 \001(\005B\003\340A\001H\001\210\001\001\022.\n" + "\034hot_tier_bypass_mode_enabled\030\003" + " \001(\010B\003\340A\001H\002\210\001\001\"B\n\n" @@ -406,13 +425,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021peer_ip_addresses\030\005 \003(\tB\003\340A\002\022\035\n" + "\020cluster_location\030\006 \001(\tB\003\340A\001\022\030\n" + "\013description\030\007 \001(\tB\003\340A\001\022T\n" - + "\006labels\030\010 \003(\0132?.google.cloud.neta" - + "pp.v1.HybridReplicationParameters.LabelsEntryB\003\340A\001\022T\n" - + "\024replication_schedule\030\t \001(\016" - + "21.google.cloud.netapp.v1.HybridReplicationScheduleB\003\340A\001\022u\n" + + "\006labels\030\010 \003(\0132?.google.cloud.ne" + + "tapp.v1.HybridReplicationParameters.LabelsEntryB\003\340A\001\022T\n" + + "\024replication_schedule\030\t \001" + + "(\01621.google.cloud.netapp.v1.HybridReplicationScheduleB\003\340A\001\022u\n" + "\027hybrid_replication_type\030\n" - + " \001(\0162O.google.cloud.netapp.v1.Hybri" - + "dReplicationParameters.VolumeHybridReplicationTypeB\003\340A\001\022+\n" + + " \001(\0162O.google.cloud.netapp.v1.Hyb" + + "ridReplicationParameters.VolumeHybridReplicationTypeB\003\340A\001\022+\n" + "\036large_volume_constituent_count\030\013 \001(\005B\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -431,8 +450,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027enable_global_file_lock\030\005 \001(\010B\003\340A\001H\000\210\001\001\022>\n" + "\014cache_config\030\006" + " \001(\0132#.google.cloud.netapp.v1.CacheConfigB\003\340A\001\022L\n" - + "\013cache_state\030\007 \001(\01622." - + "google.cloud.netapp.v1.CacheParameters.CacheStateB\003\340A\003\022\024\n" + + "\013cache_state\030\007 \001(\0162" + + "2.google.cloud.netapp.v1.CacheParameters.CacheStateB\003\340A\003\022\024\n" + "\007command\030\010 \001(\tB\003\340A\003\022D\n" + "\033peering_command_expiry_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\027\n\n" @@ -447,12 +466,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005ERROR\020\004B\032\n" + "\030_enable_global_file_lock\"\277\003\n" + "\013CacheConfig\022I\n" - + "\022cache_pre_populate\030\001 \001(\0132(.google" - + ".cloud.netapp.v1.CachePrePopulateB\003\340A\001\022#\n" + + "\022cache_pre_populate\030\001 \001(\0132(.goog" + + "le.cloud.netapp.v1.CachePrePopulateB\003\340A\001\022#\n" + "\021writeback_enabled\030\002 \001(\010B\003\340A\001H\000\210\001\001\022,\n" + "\032cifs_change_notify_enabled\030\005 \001(\010B\003\340A\001H\001\210\001\001\022`\n" - + "\030cache_pre_populate_state\030\006 \001(\01629.go" - + "ogle.cloud.netapp.v1.CacheConfig.CachePrePopulateStateB\003\340A\003\"{\n" + + "\030cache_pre_populate_state\030\006 \001(\01629." + + "google.cloud.netapp.v1.CacheConfig.CachePrePopulateStateB\003\340A\003\"{\n" + "\025CachePrePopulateState\022(\n" + "$CACHE_PRE_POPULATE_STATE_UNSPECIFIED\020\000\022\016\n\n" + "NOT_NEEDED\020\001\022\017\n" @@ -483,7 +502,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034netapp.googleapis.com/Backup\022\026\n" + "\tfile_list\030\003 \003(\tB\003\340A\002\022%\n" + "\030restore_destination_path\030\004 \001(\tB\003\340A\001\"\034\n" - + "\032RestoreBackupFilesResponse*P\n" + + "\032RestoreBackupFilesResponse\"\316\001\n" + + "\035EstablishVolumePeeringRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034netapp.googleapis.com/Volume\022\036\n" + + "\021peer_cluster_name\030\002 \001(\tB\003\340A\002\022\032\n\r" + + "peer_svm_name\030\003 \001(\tB\003\340A\002\022\036\n" + + "\021peer_ip_addresses\030\004 \003(\tB\003\340A\001\022\035\n" + + "\020peer_volume_name\030\005 \001(\tB\003\340A\002*P\n" + "\tProtocols\022\031\n" + "\025PROTOCOLS_UNSPECIFIED\020\000\022\t\n" + "\005NFSV3\020\001\022\t\n" @@ -513,10 +539,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020RestrictedAction\022!\n" + "\035RESTRICTED_ACTION_UNSPECIFIED\020\000\022\n\n" + "\006DELETE\020\001B\255\001\n" - + "\032com.google.cloud.netapp.v1B\013VolumeProtoP\001Z2cloud.google.com/go/netapp/apiv" - + "1/netapppb;netapppb\252\002\026Google.Cloud.NetAp" - + "p.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::" - + "Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\013VolumeProtoP\001Z2cloud.google.com/go/" + + "netapp/apiv1/netapppb;netapppb\252\002\026Google." + + "Cloud.NetApp.V1\312\002\026Google\\Cloud\\NetApp\\V1" + + "\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -632,9 +658,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CacheParameters", "HotTierSizeUsedGib", "BlockDevices", + "CloneDetails", }); - internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor = + internal_static_google_cloud_netapp_v1_Volume_CloneDetails_descriptor = internal_static_google_cloud_netapp_v1_Volume_descriptor.getNestedType(0); + internal_static_google_cloud_netapp_v1_Volume_CloneDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_Volume_CloneDetails_descriptor, + new java.lang.String[] { + "SourceSnapshot", "SourceVolume", "SharedSpaceGib", + }); + internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor = + internal_static_google_cloud_netapp_v1_Volume_descriptor.getNestedType(1); internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor, @@ -827,6 +862,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor, + new java.lang.String[] { + "Name", "PeerClusterName", "PeerSvmName", "PeerIpAddresses", "PeerVolumeName", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto index d3b52e0f286c..22f6dfd68bb7 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup.proto @@ -100,6 +100,7 @@ message Backup { Type backup_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Volume full name of this backup belongs to. + // Either source_volume or ontap_source should be provided. // Format: // `projects/{projects_id}/locations/{location}/volumes/{volume_id}` string source_volume = 6 [ diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto index a5402c41820c..6d4beaa54356 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/cloud_netapp_service.proto @@ -26,6 +26,7 @@ import "google/cloud/netapp/v1/backup_policy.proto"; import "google/cloud/netapp/v1/backup_vault.proto"; import "google/cloud/netapp/v1/host_group.proto"; import "google/cloud/netapp/v1/kms.proto"; +import "google/cloud/netapp/v1/ontap.proto"; import "google/cloud/netapp/v1/quota_rule.proto"; import "google/cloud/netapp/v1/replication.proto"; import "google/cloud/netapp/v1/snapshot.proto"; @@ -208,6 +209,20 @@ service NetApp { }; } + // Establish volume peering. This is used to establish cluster and svm + // peerings between the GCNV and OnPrem clusters. + rpc EstablishVolumePeering(EstablishVolumePeeringRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/volumes/*}:establishPeering" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Volume" + metadata_type: "OperationMetadata" + }; + } + // Returns descriptions of all snapshots for a volume. rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) { option (google.api.http) = { @@ -832,6 +847,44 @@ service NetApp { metadata_type: "OperationMetadata" }; } + + // `ExecuteOntapPost` dispatches the ONTAP `POST` request to the + // `StoragePool` cluster. + rpc ExecuteOntapPost(ExecuteOntapPostRequest) + returns (ExecuteOntapPostResponse) { + option (google.api.http) = { + post: "/v1/{ontap_path=projects/*/locations/*/storagePools/*/ontap/**}" + body: "*" + }; + } + + // `ExecuteOntapGet` dispatches the ONTAP `GET` request to the + // `StoragePool` cluster. + rpc ExecuteOntapGet(ExecuteOntapGetRequest) + returns (ExecuteOntapGetResponse) { + option (google.api.http) = { + get: "/v1/{ontap_path=projects/*/locations/*/storagePools/*/ontap/**}" + }; + } + + // `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the + // `StoragePool` cluster. + rpc ExecuteOntapDelete(ExecuteOntapDeleteRequest) + returns (ExecuteOntapDeleteResponse) { + option (google.api.http) = { + delete: "/v1/{ontap_path=projects/*/locations/*/storagePools/*/ontap/**}" + }; + } + + // `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the + // `StoragePool` cluster. + rpc ExecuteOntapPatch(ExecuteOntapPatchRequest) + returns (ExecuteOntapPatchResponse) { + option (google.api.http) = { + patch: "/v1/{ontap_path=projects/*/locations/*/storagePools/*/ontap/**}" + body: "*" + }; + } } // Represents the metadata of the long-running operation. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto index 7a1899553948..789ad87e8bed 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto @@ -87,9 +87,6 @@ enum StoragePoolType { // Storage pool type is unified. UNIFIED = 2; - - // Storage pool type is unified large capacity. - UNIFIED_LARGE_CAPACITY = 3; } // Schedule for Hybrid Replication. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/ontap.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/ontap.proto new file mode 100644 index 000000000000..24470361718a --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/ontap.proto @@ -0,0 +1,118 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.netapp.v1; + +import "google/api/field_behavior.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.NetApp.V1"; +option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb"; +option java_multiple_files = true; +option java_outer_classname = "OntapProto"; +option java_package = "com.google.cloud.netapp.v1"; +option php_namespace = "Google\\Cloud\\NetApp\\V1"; +option ruby_package = "Google::Cloud::NetApp::V1"; + +// Request message for `ExecuteOntapPost` API. +message ExecuteOntapPostRequest { + // Required. The raw `JSON` body of the request. + // The body should be in the format of the ONTAP resource. + // For example: + // ``` + // { + // "body": { + // "field1": "value1", + // "field2": "value2", + // } + // } + // ``` + google.protobuf.Struct body = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource path of the ONTAP resource. + // Format: + // `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + // For example: + // `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + string ontap_path = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for `ExecuteOntapPost` API. +message ExecuteOntapPostResponse { + // The raw `JSON` body of the response. + google.protobuf.Struct body = 1; +} + +// Request message for `ExecuteOntapGet` API. +message ExecuteOntapGetRequest { + // Required. The resource path of the ONTAP resource. + // Format: + // `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + // For example: + // `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + string ontap_path = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for `ExecuteOntapGet` API. +message ExecuteOntapGetResponse { + // The raw `JSON` body of the response. + google.protobuf.Struct body = 1; +} + +// Request message for `ExecuteOntapDelete` API. +message ExecuteOntapDeleteRequest { + // Required. The resource path of the ONTAP resource. + // Format: + // `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + // For example: + // `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + string ontap_path = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for `ExecuteOntapDelete` API. +message ExecuteOntapDeleteResponse { + // The raw `JSON` body of the response. + google.protobuf.Struct body = 1; +} + +// Request message for `ExecuteOntapPatch` API. +message ExecuteOntapPatchRequest { + // Required. The raw `JSON` body of the request. + // The body should be in the format of the ONTAP resource. + // For example: + // ``` + // { + // "body": { + // "field1": "value1", + // "field2": "value2", + // } + // } + // ``` + google.protobuf.Struct body = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource path of the ONTAP resource. + // Format: + // `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + // For example: + // `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + string ontap_path = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for `ExecuteOntapPatch` API. +message ExecuteOntapPatchResponse { + // The raw `JSON` body of the response. + google.protobuf.Struct body = 1; +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto index 5599607a9c81..7bbca2f75887 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto @@ -30,6 +30,19 @@ option java_package = "com.google.cloud.netapp.v1"; option php_namespace = "Google\\Cloud\\NetApp\\V1"; option ruby_package = "Google::Cloud::NetApp::V1"; +// `Mode` of the storage pool or volume. This field is used to control whether +// the resource is managed by the GCNV APIs or the GCNV ONTAP Mode APIs. +enum Mode { + // The `Mode` is not specified. + MODE_UNSPECIFIED = 0; + + // The resource is managed by the GCNV APIs. + DEFAULT = 1; + + // The resource is managed by the GCNV ONTAP Mode APIs. + ONTAP = 2; +} + // GetStoragePoolRequest gets a Storage Pool. message GetStoragePoolRequest { // Required. Name of the storage pool @@ -302,10 +315,14 @@ message StoragePool { // Optional. Type of the storage pool. This field is used to control whether // the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and - // `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`) - // volumes with large capacity. If not specified during creation, it defaults - // to `FILE`. + // `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`. optional StoragePoolType type = 35 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mode of the storage pool. This field is used to control whether + // the user can perform the ONTAP operations on the storage pool using the + // GCNV ONTAP Mode APIs. If not specified during creation, it defaults to + // `DEFAULT`. + optional Mode mode = 36 [(google.api.field_behavior) = OPTIONAL]; } // ValidateDirectoryServiceRequest validates the directory service policy diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto index 96a5b010e12c..d5526eaefd41 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto @@ -236,6 +236,31 @@ message Volume { singular: "volume" }; + // Details about a clone volume. + message CloneDetails { + // Output only. Specifies the full resource name of the source snapshot from + // which this volume was cloned. Format: + // projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot} + string source_snapshot = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/Snapshot" + } + ]; + + // Output only. Full name of the source volume resource. + // Format: + // projects/{project}/locations/{location}/volumes/{volume} + string source_volume = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" } + ]; + + // Output only. Shared space in GiB. Determined at volume creation time + // based on size of source snapshot. + int64 shared_space_gib = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The volume states enum State { // Unspecified Volume State @@ -438,6 +463,10 @@ message Volume { // Currently, only one block device is permitted per Volume. repeated BlockDevice block_devices = 45 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. If this volume is a clone, this field contains details about + // the clone. + CloneDetails clone_details = 47 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines the export policy for the volume. @@ -634,9 +663,13 @@ message RestoreParameters { string source_snapshot = 1; // Full name of the backup resource. - // Format: + // Format for standard backup: // projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id} - string source_backup = 2; + // Format for BackupDR backup: + // projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup} + string source_backup = 2 [ + (google.api.resource_reference) = { type: "netapp.googleapis.com/Backup" } + ]; } } @@ -960,3 +993,30 @@ message RestoreBackupFilesRequest { // RestoreBackupFilesResponse is the result of RestoreBackupFilesRequest. message RestoreBackupFilesResponse {} + +// EstablishVolumePeeringRequest establishes cluster and svm peerings between +// the source and destination clusters. +message EstablishVolumePeeringRequest { + // Required. The volume resource name, in the format + // `projects/{project_id}/locations/{location}/volumes/{volume_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "netapp.googleapis.com/Volume" } + ]; + + // Required. Name of the user's local source cluster to be peered with the + // destination cluster. + string peer_cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the user's local source vserver svm to be peered with the + // destination vserver svm. + string peer_svm_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of IPv4 ip addresses to be used for peering. + repeated string peer_ip_addresses = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Name of the user's local source volume to be peered with the + // destination volume. + string peer_volume_name = 5 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/AsyncEstablishVolumePeering.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/AsyncEstablishVolumePeering.java new file mode 100644 index 000000000000..64d01e1a2496 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/AsyncEstablishVolumePeering.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_EstablishVolumePeering_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.EstablishVolumePeeringRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.VolumeName; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncEstablishVolumePeering { + + public static void main(String[] args) throws Exception { + asyncEstablishVolumePeering(); + } + + public static void asyncEstablishVolumePeering() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + EstablishVolumePeeringRequest request = + EstablishVolumePeeringRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + ApiFuture future = + netAppClient.establishVolumePeeringCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_EstablishVolumePeering_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/AsyncEstablishVolumePeeringLRO.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/AsyncEstablishVolumePeeringLRO.java new file mode 100644 index 000000000000..2a1be65fac7a --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/AsyncEstablishVolumePeeringLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_EstablishVolumePeering_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.netapp.v1.EstablishVolumePeeringRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.OperationMetadata; +import com.google.cloud.netapp.v1.Volume; +import com.google.cloud.netapp.v1.VolumeName; +import java.util.ArrayList; + +public class AsyncEstablishVolumePeeringLRO { + + public static void main(String[] args) throws Exception { + asyncEstablishVolumePeeringLRO(); + } + + public static void asyncEstablishVolumePeeringLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + EstablishVolumePeeringRequest request = + EstablishVolumePeeringRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + OperationFuture future = + netAppClient.establishVolumePeeringOperationCallable().futureCall(request); + // Do something. + Volume response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_EstablishVolumePeering_LRO_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/SyncEstablishVolumePeering.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/SyncEstablishVolumePeering.java new file mode 100644 index 000000000000..64b2cae446ee --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/establishvolumepeering/SyncEstablishVolumePeering.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_EstablishVolumePeering_sync] +import com.google.cloud.netapp.v1.EstablishVolumePeeringRequest; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.cloud.netapp.v1.Volume; +import com.google.cloud.netapp.v1.VolumeName; +import java.util.ArrayList; + +public class SyncEstablishVolumePeering { + + public static void main(String[] args) throws Exception { + syncEstablishVolumePeering(); + } + + public static void syncEstablishVolumePeering() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + EstablishVolumePeeringRequest request = + EstablishVolumePeeringRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setPeerClusterName("peerClusterName313022691") + .setPeerSvmName("peerSvmName1014209619") + .addAllPeerIpAddresses(new ArrayList()) + .setPeerVolumeName("peerVolumeName1542206407") + .build(); + Volume response = netAppClient.establishVolumePeeringAsync(request).get(); + } + } +} +// [END netapp_v1_generated_NetApp_EstablishVolumePeering_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapdelete/AsyncExecuteOntapDelete.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapdelete/AsyncExecuteOntapDelete.java new file mode 100644 index 000000000000..5830522beb74 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapdelete/AsyncExecuteOntapDelete.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ExecuteOntapDelete_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest; +import com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse; +import com.google.cloud.netapp.v1.NetAppClient; + +public class AsyncExecuteOntapDelete { + + public static void main(String[] args) throws Exception { + asyncExecuteOntapDelete(); + } + + public static void asyncExecuteOntapDelete() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ExecuteOntapDeleteRequest request = + ExecuteOntapDeleteRequest.newBuilder().setOntapPath("ontapPath-1869187159").build(); + ApiFuture future = + netAppClient.executeOntapDeleteCallable().futureCall(request); + // Do something. + ExecuteOntapDeleteResponse response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_ExecuteOntapDelete_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapdelete/SyncExecuteOntapDelete.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapdelete/SyncExecuteOntapDelete.java new file mode 100644 index 000000000000..977fcd223945 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapdelete/SyncExecuteOntapDelete.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ExecuteOntapDelete_sync] +import com.google.cloud.netapp.v1.ExecuteOntapDeleteRequest; +import com.google.cloud.netapp.v1.ExecuteOntapDeleteResponse; +import com.google.cloud.netapp.v1.NetAppClient; + +public class SyncExecuteOntapDelete { + + public static void main(String[] args) throws Exception { + syncExecuteOntapDelete(); + } + + public static void syncExecuteOntapDelete() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ExecuteOntapDeleteRequest request = + ExecuteOntapDeleteRequest.newBuilder().setOntapPath("ontapPath-1869187159").build(); + ExecuteOntapDeleteResponse response = netAppClient.executeOntapDelete(request); + } + } +} +// [END netapp_v1_generated_NetApp_ExecuteOntapDelete_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapget/AsyncExecuteOntapGet.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapget/AsyncExecuteOntapGet.java new file mode 100644 index 000000000000..24242bced8c3 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapget/AsyncExecuteOntapGet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ExecuteOntapGet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.ExecuteOntapGetRequest; +import com.google.cloud.netapp.v1.ExecuteOntapGetResponse; +import com.google.cloud.netapp.v1.NetAppClient; + +public class AsyncExecuteOntapGet { + + public static void main(String[] args) throws Exception { + asyncExecuteOntapGet(); + } + + public static void asyncExecuteOntapGet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ExecuteOntapGetRequest request = + ExecuteOntapGetRequest.newBuilder().setOntapPath("ontapPath-1869187159").build(); + ApiFuture future = + netAppClient.executeOntapGetCallable().futureCall(request); + // Do something. + ExecuteOntapGetResponse response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_ExecuteOntapGet_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapget/SyncExecuteOntapGet.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapget/SyncExecuteOntapGet.java new file mode 100644 index 000000000000..395e9ef6d17c --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontapget/SyncExecuteOntapGet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ExecuteOntapGet_sync] +import com.google.cloud.netapp.v1.ExecuteOntapGetRequest; +import com.google.cloud.netapp.v1.ExecuteOntapGetResponse; +import com.google.cloud.netapp.v1.NetAppClient; + +public class SyncExecuteOntapGet { + + public static void main(String[] args) throws Exception { + syncExecuteOntapGet(); + } + + public static void syncExecuteOntapGet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ExecuteOntapGetRequest request = + ExecuteOntapGetRequest.newBuilder().setOntapPath("ontapPath-1869187159").build(); + ExecuteOntapGetResponse response = netAppClient.executeOntapGet(request); + } + } +} +// [END netapp_v1_generated_NetApp_ExecuteOntapGet_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappatch/AsyncExecuteOntapPatch.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappatch/AsyncExecuteOntapPatch.java new file mode 100644 index 000000000000..57559a97a839 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappatch/AsyncExecuteOntapPatch.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ExecuteOntapPatch_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.ExecuteOntapPatchRequest; +import com.google.cloud.netapp.v1.ExecuteOntapPatchResponse; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.protobuf.Struct; + +public class AsyncExecuteOntapPatch { + + public static void main(String[] args) throws Exception { + asyncExecuteOntapPatch(); + } + + public static void asyncExecuteOntapPatch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ExecuteOntapPatchRequest request = + ExecuteOntapPatchRequest.newBuilder() + .setBody(Struct.newBuilder().build()) + .setOntapPath("ontapPath-1869187159") + .build(); + ApiFuture future = + netAppClient.executeOntapPatchCallable().futureCall(request); + // Do something. + ExecuteOntapPatchResponse response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_ExecuteOntapPatch_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappatch/SyncExecuteOntapPatch.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappatch/SyncExecuteOntapPatch.java new file mode 100644 index 000000000000..e5a5ce05f6a1 --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappatch/SyncExecuteOntapPatch.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ExecuteOntapPatch_sync] +import com.google.cloud.netapp.v1.ExecuteOntapPatchRequest; +import com.google.cloud.netapp.v1.ExecuteOntapPatchResponse; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.protobuf.Struct; + +public class SyncExecuteOntapPatch { + + public static void main(String[] args) throws Exception { + syncExecuteOntapPatch(); + } + + public static void syncExecuteOntapPatch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ExecuteOntapPatchRequest request = + ExecuteOntapPatchRequest.newBuilder() + .setBody(Struct.newBuilder().build()) + .setOntapPath("ontapPath-1869187159") + .build(); + ExecuteOntapPatchResponse response = netAppClient.executeOntapPatch(request); + } + } +} +// [END netapp_v1_generated_NetApp_ExecuteOntapPatch_sync] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappost/AsyncExecuteOntapPost.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappost/AsyncExecuteOntapPost.java new file mode 100644 index 000000000000..7b022d5766be --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappost/AsyncExecuteOntapPost.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ExecuteOntapPost_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.netapp.v1.ExecuteOntapPostRequest; +import com.google.cloud.netapp.v1.ExecuteOntapPostResponse; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.protobuf.Struct; + +public class AsyncExecuteOntapPost { + + public static void main(String[] args) throws Exception { + asyncExecuteOntapPost(); + } + + public static void asyncExecuteOntapPost() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ExecuteOntapPostRequest request = + ExecuteOntapPostRequest.newBuilder() + .setBody(Struct.newBuilder().build()) + .setOntapPath("ontapPath-1869187159") + .build(); + ApiFuture future = + netAppClient.executeOntapPostCallable().futureCall(request); + // Do something. + ExecuteOntapPostResponse response = future.get(); + } + } +} +// [END netapp_v1_generated_NetApp_ExecuteOntapPost_async] diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappost/SyncExecuteOntapPost.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappost/SyncExecuteOntapPost.java new file mode 100644 index 000000000000..4d048a1fc19d --- /dev/null +++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/executeontappost/SyncExecuteOntapPost.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.netapp.v1.samples; + +// [START netapp_v1_generated_NetApp_ExecuteOntapPost_sync] +import com.google.cloud.netapp.v1.ExecuteOntapPostRequest; +import com.google.cloud.netapp.v1.ExecuteOntapPostResponse; +import com.google.cloud.netapp.v1.NetAppClient; +import com.google.protobuf.Struct; + +public class SyncExecuteOntapPost { + + public static void main(String[] args) throws Exception { + syncExecuteOntapPost(); + } + + public static void syncExecuteOntapPost() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetAppClient netAppClient = NetAppClient.create()) { + ExecuteOntapPostRequest request = + ExecuteOntapPostRequest.newBuilder() + .setBody(Struct.newBuilder().build()) + .setOntapPath("ontapPath-1869187159") + .build(); + ExecuteOntapPostResponse response = netAppClient.executeOntapPost(request); + } + } +} +// [END netapp_v1_generated_NetApp_ExecuteOntapPost_sync] diff --git a/java-network-security/README.md b/java-network-security/README.md index 95494a4fa34f..447daf4ffaf0 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.90.0 + 0.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.90.0' +implementation 'com.google.cloud:google-cloud-network-security:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.91.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-security/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java index 05c54bebdbfb..5e0422bde60c 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java @@ -264,7 +264,10 @@ * * *

                                                                                                                                    ListLocations - *

                                                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                    *
                                                                                                                                      @@ -2075,6 +2078,19 @@ public final ListAddressGroupReferencesPagedResponse listAddressGroupReferences( /** * Lists information about the supported locations for this service. * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                      Sample code: * *

                                                                                                                                      {@code
                                                                                                                                      @@ -2108,6 +2124,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                         /**
                                                                                                                                          * Lists information about the supported locations for this service.
                                                                                                                                          *
                                                                                                                                      +   * 

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                      Sample code: * *

                                                                                                                                      {@code
                                                                                                                                      @@ -2142,6 +2171,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                         /**
                                                                                                                                          * Lists information about the supported locations for this service.
                                                                                                                                          *
                                                                                                                                      +   * 

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                      Sample code: * *

                                                                                                                                      {@code
                                                                                                                                      diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClient.java
                                                                                                                                      new file mode 100644
                                                                                                                                      index 000000000000..a1be53e1fcca
                                                                                                                                      --- /dev/null
                                                                                                                                      +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClient.java
                                                                                                                                      @@ -0,0 +1,1619 @@
                                                                                                                                      +/*
                                                                                                                                      + * Copyright 2026 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.
                                                                                                                                      + */
                                                                                                                                      +
                                                                                                                                      +package com.google.cloud.networksecurity.v1;
                                                                                                                                      +
                                                                                                                                      +import com.google.api.core.ApiFuture;
                                                                                                                                      +import com.google.api.core.ApiFutures;
                                                                                                                                      +import com.google.api.gax.core.BackgroundResource;
                                                                                                                                      +import com.google.api.gax.paging.AbstractFixedSizeCollection;
                                                                                                                                      +import com.google.api.gax.paging.AbstractPage;
                                                                                                                                      +import com.google.api.gax.paging.AbstractPagedListResponse;
                                                                                                                                      +import com.google.api.gax.rpc.PageContext;
                                                                                                                                      +import com.google.api.gax.rpc.UnaryCallable;
                                                                                                                                      +import com.google.cloud.location.GetLocationRequest;
                                                                                                                                      +import com.google.cloud.location.ListLocationsRequest;
                                                                                                                                      +import com.google.cloud.location.ListLocationsResponse;
                                                                                                                                      +import com.google.cloud.location.Location;
                                                                                                                                      +import com.google.cloud.networksecurity.v1.stub.DnsThreatDetectorServiceStub;
                                                                                                                                      +import com.google.cloud.networksecurity.v1.stub.DnsThreatDetectorServiceStubSettings;
                                                                                                                                      +import com.google.common.util.concurrent.MoreExecutors;
                                                                                                                                      +import com.google.iam.v1.GetIamPolicyRequest;
                                                                                                                                      +import com.google.iam.v1.Policy;
                                                                                                                                      +import com.google.iam.v1.SetIamPolicyRequest;
                                                                                                                                      +import com.google.iam.v1.TestIamPermissionsRequest;
                                                                                                                                      +import com.google.iam.v1.TestIamPermissionsResponse;
                                                                                                                                      +import com.google.protobuf.Empty;
                                                                                                                                      +import com.google.protobuf.FieldMask;
                                                                                                                                      +import java.io.IOException;
                                                                                                                                      +import java.util.List;
                                                                                                                                      +import java.util.concurrent.TimeUnit;
                                                                                                                                      +import javax.annotation.Generated;
                                                                                                                                      +
                                                                                                                                      +// AUTO-GENERATED DOCUMENTATION AND CLASS.
                                                                                                                                      +/**
                                                                                                                                      + * Service Description: The Network Security API for DNS Threat Detectors.
                                                                                                                                      + *
                                                                                                                                      + * 

                                                                                                                                      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      + *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      + *   DnsThreatDetectorName name =
                                                                                                                                      + *       DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]");
                                                                                                                                      + *   DnsThreatDetector response = dnsThreatDetectorServiceClient.getDnsThreatDetector(name);
                                                                                                                                      + * }
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Note: close() needs to be called on the DnsThreatDetectorServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                                                                                                                      Methods
                                                                                                                                      MethodDescriptionMethod Variants

                                                                                                                                      ListDnsThreatDetectors

                                                                                                                                      Lists DnsThreatDetectors in a given project and location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listDnsThreatDetectors(ListDnsThreatDetectorsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listDnsThreatDetectors(LocationName parent) + *

                                                                                                                                      • listDnsThreatDetectors(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listDnsThreatDetectorsPagedCallable() + *

                                                                                                                                      • listDnsThreatDetectorsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetDnsThreatDetector

                                                                                                                                      Gets the details of a single DnsThreatDetector.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getDnsThreatDetector(GetDnsThreatDetectorRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getDnsThreatDetector(DnsThreatDetectorName name) + *

                                                                                                                                      • getDnsThreatDetector(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getDnsThreatDetectorCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateDnsThreatDetector

                                                                                                                                      Creates a new DnsThreatDetector in a given project and location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createDnsThreatDetector(CreateDnsThreatDetectorRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createDnsThreatDetector(LocationName parent, DnsThreatDetector dnsThreatDetector, String dnsThreatDetectorId) + *

                                                                                                                                      • createDnsThreatDetector(String parent, DnsThreatDetector dnsThreatDetector, String dnsThreatDetectorId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createDnsThreatDetectorCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateDnsThreatDetector

                                                                                                                                      Updates a single DnsThreatDetector.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateDnsThreatDetector(UpdateDnsThreatDetectorRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateDnsThreatDetector(DnsThreatDetector dnsThreatDetector, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateDnsThreatDetectorCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteDnsThreatDetector

                                                                                                                                      Deletes a single DnsThreatDetector.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteDnsThreatDetector(DeleteDnsThreatDetectorRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteDnsThreatDetector(DnsThreatDetectorName name) + *

                                                                                                                                      • deleteDnsThreatDetector(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteDnsThreatDetectorCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListLocations

                                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocations(ListLocationsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocationsPagedCallable() + *

                                                                                                                                      • listLocationsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetLocation

                                                                                                                                      Gets information about a location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocation(GetLocationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocationCallable() + *

                                                                                                                                      + *

                                                                                                                                      SetIamPolicy

                                                                                                                                      Sets the access control policy on the specified resource. Replacesany existing policy. + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicy(SetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicyCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetIamPolicy

                                                                                                                                      Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicy(GetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicyCallable() + *

                                                                                                                                      + *

                                                                                                                                      TestIamPermissions

                                                                                                                                      Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissions(TestIamPermissionsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissionsCallable() + *

                                                                                                                                      + *
                                                                                                                                      + * + *

                                                                                                                                      See the individual methods for example code. + * + *

                                                                                                                                      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                                                                                                                      This class can be customized by passing in a custom instance of + * DnsThreatDetectorServiceSettings to create(). For example: + * + *

                                                                                                                                      To customize credentials: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * DnsThreatDetectorServiceSettings dnsThreatDetectorServiceSettings =
                                                                                                                                      + *     DnsThreatDetectorServiceSettings.newBuilder()
                                                                                                                                      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                                                                                                                      + *         .build();
                                                                                                                                      + * DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      + *     DnsThreatDetectorServiceClient.create(dnsThreatDetectorServiceSettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      To customize the endpoint: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * DnsThreatDetectorServiceSettings dnsThreatDetectorServiceSettings =
                                                                                                                                      + *     DnsThreatDetectorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
                                                                                                                                      + * DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      + *     DnsThreatDetectorServiceClient.create(dnsThreatDetectorServiceSettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DnsThreatDetectorServiceClient implements BackgroundResource { + private final DnsThreatDetectorServiceSettings settings; + private final DnsThreatDetectorServiceStub stub; + + /** Constructs an instance of DnsThreatDetectorServiceClient with default settings. */ + public static final DnsThreatDetectorServiceClient create() throws IOException { + return create(DnsThreatDetectorServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DnsThreatDetectorServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final DnsThreatDetectorServiceClient create( + DnsThreatDetectorServiceSettings settings) throws IOException { + return new DnsThreatDetectorServiceClient(settings); + } + + /** + * Constructs an instance of DnsThreatDetectorServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(DnsThreatDetectorServiceSettings). + */ + public static final DnsThreatDetectorServiceClient create(DnsThreatDetectorServiceStub stub) { + return new DnsThreatDetectorServiceClient(stub); + } + + /** + * Constructs an instance of DnsThreatDetectorServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected DnsThreatDetectorServiceClient(DnsThreatDetectorServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((DnsThreatDetectorServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DnsThreatDetectorServiceClient(DnsThreatDetectorServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DnsThreatDetectorServiceSettings getSettings() { + return settings; + } + + public DnsThreatDetectorServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DnsThreatDetectors in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (DnsThreatDetector element :
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.listDnsThreatDetectors(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent value for `ListDnsThreatDetectorsRequest`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors(LocationName parent) { + ListDnsThreatDetectorsRequest request = + ListDnsThreatDetectorsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDnsThreatDetectors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DnsThreatDetectors in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (DnsThreatDetector element :
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.listDnsThreatDetectors(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent value for `ListDnsThreatDetectorsRequest`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors(String parent) { + ListDnsThreatDetectorsRequest request = + ListDnsThreatDetectorsRequest.newBuilder().setParent(parent).build(); + return listDnsThreatDetectors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DnsThreatDetectors in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   ListDnsThreatDetectorsRequest request =
                                                                                                                                      +   *       ListDnsThreatDetectorsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (DnsThreatDetector element :
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.listDnsThreatDetectors(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors( + ListDnsThreatDetectorsRequest request) { + return listDnsThreatDetectorsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DnsThreatDetectors in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   ListDnsThreatDetectorsRequest request =
                                                                                                                                      +   *       ListDnsThreatDetectorsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.listDnsThreatDetectorsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (DnsThreatDetector element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listDnsThreatDetectorsPagedCallable() { + return stub.listDnsThreatDetectorsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DnsThreatDetectors in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   ListDnsThreatDetectorsRequest request =
                                                                                                                                      +   *       ListDnsThreatDetectorsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListDnsThreatDetectorsResponse response =
                                                                                                                                      +   *         dnsThreatDetectorServiceClient.listDnsThreatDetectorsCallable().call(request);
                                                                                                                                      +   *     for (DnsThreatDetector element : response.getDnsThreatDetectorsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listDnsThreatDetectorsCallable() { + return stub.listDnsThreatDetectorsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   DnsThreatDetectorName name =
                                                                                                                                      +   *       DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]");
                                                                                                                                      +   *   DnsThreatDetector response = dnsThreatDetectorServiceClient.getDnsThreatDetector(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the DnsThreatDetector resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DnsThreatDetector getDnsThreatDetector(DnsThreatDetectorName name) { + GetDnsThreatDetectorRequest request = + GetDnsThreatDetectorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDnsThreatDetector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]").toString();
                                                                                                                                      +   *   DnsThreatDetector response = dnsThreatDetectorServiceClient.getDnsThreatDetector(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the DnsThreatDetector resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DnsThreatDetector getDnsThreatDetector(String name) { + GetDnsThreatDetectorRequest request = + GetDnsThreatDetectorRequest.newBuilder().setName(name).build(); + return getDnsThreatDetector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   GetDnsThreatDetectorRequest request =
                                                                                                                                      +   *       GetDnsThreatDetectorRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   DnsThreatDetector response = dnsThreatDetectorServiceClient.getDnsThreatDetector(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DnsThreatDetector getDnsThreatDetector(GetDnsThreatDetectorRequest request) { + return getDnsThreatDetectorCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   GetDnsThreatDetectorRequest request =
                                                                                                                                      +   *       GetDnsThreatDetectorRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.getDnsThreatDetectorCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   DnsThreatDetector response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getDnsThreatDetectorCallable() { + return stub.getDnsThreatDetectorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new DnsThreatDetector in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build();
                                                                                                                                      +   *   String dnsThreatDetectorId = "dnsThreatDetectorId-1579667324";
                                                                                                                                      +   *   DnsThreatDetector response =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.createDnsThreatDetector(
                                                                                                                                      +   *           parent, dnsThreatDetector, dnsThreatDetectorId);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The value for the parent of the DnsThreatDetector resource. + * @param dnsThreatDetector Required. The `DnsThreatDetector` resource to create. + * @param dnsThreatDetectorId Optional. The ID of the requesting DnsThreatDetector object. If this + * field is not supplied, the service generates an identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DnsThreatDetector createDnsThreatDetector( + LocationName parent, DnsThreatDetector dnsThreatDetector, String dnsThreatDetectorId) { + CreateDnsThreatDetectorRequest request = + CreateDnsThreatDetectorRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDnsThreatDetector(dnsThreatDetector) + .setDnsThreatDetectorId(dnsThreatDetectorId) + .build(); + return createDnsThreatDetector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new DnsThreatDetector in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build();
                                                                                                                                      +   *   String dnsThreatDetectorId = "dnsThreatDetectorId-1579667324";
                                                                                                                                      +   *   DnsThreatDetector response =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.createDnsThreatDetector(
                                                                                                                                      +   *           parent, dnsThreatDetector, dnsThreatDetectorId);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The value for the parent of the DnsThreatDetector resource. + * @param dnsThreatDetector Required. The `DnsThreatDetector` resource to create. + * @param dnsThreatDetectorId Optional. The ID of the requesting DnsThreatDetector object. If this + * field is not supplied, the service generates an identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DnsThreatDetector createDnsThreatDetector( + String parent, DnsThreatDetector dnsThreatDetector, String dnsThreatDetectorId) { + CreateDnsThreatDetectorRequest request = + CreateDnsThreatDetectorRequest.newBuilder() + .setParent(parent) + .setDnsThreatDetector(dnsThreatDetector) + .setDnsThreatDetectorId(dnsThreatDetectorId) + .build(); + return createDnsThreatDetector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new DnsThreatDetector in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   CreateDnsThreatDetectorRequest request =
                                                                                                                                      +   *       CreateDnsThreatDetectorRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setDnsThreatDetectorId("dnsThreatDetectorId-1579667324")
                                                                                                                                      +   *           .setDnsThreatDetector(DnsThreatDetector.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   DnsThreatDetector response = dnsThreatDetectorServiceClient.createDnsThreatDetector(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DnsThreatDetector createDnsThreatDetector(CreateDnsThreatDetectorRequest request) { + return createDnsThreatDetectorCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new DnsThreatDetector in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   CreateDnsThreatDetectorRequest request =
                                                                                                                                      +   *       CreateDnsThreatDetectorRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setDnsThreatDetectorId("dnsThreatDetectorId-1579667324")
                                                                                                                                      +   *           .setDnsThreatDetector(DnsThreatDetector.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.createDnsThreatDetectorCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   DnsThreatDetector response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createDnsThreatDetectorCallable() { + return stub.createDnsThreatDetectorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   DnsThreatDetector response =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.updateDnsThreatDetector(dnsThreatDetector, updateMask);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param dnsThreatDetector Required. The DnsThreatDetector resource being updated. + * @param updateMask Optional. The field mask is used to specify the fields to be overwritten in + * the DnsThreatDetector resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the mask is not provided then all fields present in the request will be + * overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DnsThreatDetector updateDnsThreatDetector( + DnsThreatDetector dnsThreatDetector, FieldMask updateMask) { + UpdateDnsThreatDetectorRequest request = + UpdateDnsThreatDetectorRequest.newBuilder() + .setDnsThreatDetector(dnsThreatDetector) + .setUpdateMask(updateMask) + .build(); + return updateDnsThreatDetector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   UpdateDnsThreatDetectorRequest request =
                                                                                                                                      +   *       UpdateDnsThreatDetectorRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setDnsThreatDetector(DnsThreatDetector.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   DnsThreatDetector response = dnsThreatDetectorServiceClient.updateDnsThreatDetector(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DnsThreatDetector updateDnsThreatDetector(UpdateDnsThreatDetectorRequest request) { + return updateDnsThreatDetectorCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   UpdateDnsThreatDetectorRequest request =
                                                                                                                                      +   *       UpdateDnsThreatDetectorRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setDnsThreatDetector(DnsThreatDetector.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.updateDnsThreatDetectorCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   DnsThreatDetector response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateDnsThreatDetectorCallable() { + return stub.updateDnsThreatDetectorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   DnsThreatDetectorName name =
                                                                                                                                      +   *       DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]");
                                                                                                                                      +   *   dnsThreatDetectorServiceClient.deleteDnsThreatDetector(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the DnsThreatDetector resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDnsThreatDetector(DnsThreatDetectorName name) { + DeleteDnsThreatDetectorRequest request = + DeleteDnsThreatDetectorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteDnsThreatDetector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]").toString();
                                                                                                                                      +   *   dnsThreatDetectorServiceClient.deleteDnsThreatDetector(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the DnsThreatDetector resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDnsThreatDetector(String name) { + DeleteDnsThreatDetectorRequest request = + DeleteDnsThreatDetectorRequest.newBuilder().setName(name).build(); + deleteDnsThreatDetector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   DeleteDnsThreatDetectorRequest request =
                                                                                                                                      +   *       DeleteDnsThreatDetectorRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   dnsThreatDetectorServiceClient.deleteDnsThreatDetector(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDnsThreatDetector(DeleteDnsThreatDetectorRequest request) { + deleteDnsThreatDetectorCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single DnsThreatDetector. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   DeleteDnsThreatDetectorRequest request =
                                                                                                                                      +   *       DeleteDnsThreatDetectorRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.deleteDnsThreatDetectorCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteDnsThreatDetectorCallable() { + return stub.deleteDnsThreatDetectorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (Location element : dnsThreatDetectorServiceClient.listLocations(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.listLocationsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (Location element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListLocationsResponse response =
                                                                                                                                      +   *         dnsThreatDetectorServiceClient.listLocationsCallable().call(request);
                                                                                                                                      +   *     for (Location element : response.getLocationsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                                                                      +   *   Location response = dnsThreatDetectorServiceClient.getLocation(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.getLocationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Location response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   SetIamPolicyRequest request =
                                                                                                                                      +   *       SetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPolicy(Policy.newBuilder().build())
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   Policy response = dnsThreatDetectorServiceClient.setIamPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   SetIamPolicyRequest request =
                                                                                                                                      +   *       SetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPolicy(Policy.newBuilder().build())
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.setIamPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Policy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   GetIamPolicyRequest request =
                                                                                                                                      +   *       GetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   Policy response = dnsThreatDetectorServiceClient.getIamPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   GetIamPolicyRequest request =
                                                                                                                                      +   *       GetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.getIamPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Policy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   TestIamPermissionsRequest request =
                                                                                                                                      +   *       TestIamPermissionsRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .addAllPermissions(new ArrayList())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   TestIamPermissionsResponse response =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.testIamPermissions(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                                                                      +   *     DnsThreatDetectorServiceClient.create()) {
                                                                                                                                      +   *   TestIamPermissionsRequest request =
                                                                                                                                      +   *       TestIamPermissionsRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .addAllPermissions(new ArrayList())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       dnsThreatDetectorServiceClient.testIamPermissionsCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   TestIamPermissionsResponse response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListDnsThreatDetectorsPagedResponse + extends AbstractPagedListResponse< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + DnsThreatDetector, + ListDnsThreatDetectorsPage, + ListDnsThreatDetectorsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDnsThreatDetectorsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDnsThreatDetectorsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDnsThreatDetectorsPagedResponse(ListDnsThreatDetectorsPage page) { + super(page, ListDnsThreatDetectorsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDnsThreatDetectorsPage + extends AbstractPage< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + DnsThreatDetector, + ListDnsThreatDetectorsPage> { + + private ListDnsThreatDetectorsPage( + PageContext< + ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> + context, + ListDnsThreatDetectorsResponse response) { + super(context, response); + } + + private static ListDnsThreatDetectorsPage createEmptyPage() { + return new ListDnsThreatDetectorsPage(null, null); + } + + @Override + protected ListDnsThreatDetectorsPage createPage( + PageContext< + ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> + context, + ListDnsThreatDetectorsResponse response) { + return new ListDnsThreatDetectorsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDnsThreatDetectorsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + DnsThreatDetector, + ListDnsThreatDetectorsPage, + ListDnsThreatDetectorsFixedSizeCollection> { + + private ListDnsThreatDetectorsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDnsThreatDetectorsFixedSizeCollection createEmptyCollection() { + return new ListDnsThreatDetectorsFixedSizeCollection(null, 0); + } + + @Override + protected ListDnsThreatDetectorsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDnsThreatDetectorsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceSettings.java new file mode 100644 index 000000000000..0c72172c4a53 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceSettings.java @@ -0,0 +1,331 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListDnsThreatDetectorsPagedResponse; +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.DnsThreatDetectorServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DnsThreatDetectorServiceClient}. + * + *

                                                                                                                                      The default instance has everything set to sensible defaults: + * + *

                                                                                                                                        + *
                                                                                                                                      • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                                                                      • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                                                                      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                                                                      + * + *

                                                                                                                                      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                                                                      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDnsThreatDetector: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * DnsThreatDetectorServiceSettings.Builder dnsThreatDetectorServiceSettingsBuilder =
                                                                                                                                      + *     DnsThreatDetectorServiceSettings.newBuilder();
                                                                                                                                      + * dnsThreatDetectorServiceSettingsBuilder
                                                                                                                                      + *     .getDnsThreatDetectorSettings()
                                                                                                                                      + *     .setRetrySettings(
                                                                                                                                      + *         dnsThreatDetectorServiceSettingsBuilder
                                                                                                                                      + *             .getDnsThreatDetectorSettings()
                                                                                                                                      + *             .getRetrySettings()
                                                                                                                                      + *             .toBuilder()
                                                                                                                                      + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                                                                      + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                                                                      + *             .setMaxAttempts(5)
                                                                                                                                      + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                                                                      + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                                                                      + *             .setRetryDelayMultiplier(1.3)
                                                                                                                                      + *             .setRpcTimeoutMultiplier(1.5)
                                                                                                                                      + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                                                                      + *             .build());
                                                                                                                                      + * DnsThreatDetectorServiceSettings dnsThreatDetectorServiceSettings =
                                                                                                                                      + *     dnsThreatDetectorServiceSettingsBuilder.build();
                                                                                                                                      + * }
                                                                                                                                      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class DnsThreatDetectorServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listDnsThreatDetectors. */ + public PagedCallSettings< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + ListDnsThreatDetectorsPagedResponse> + listDnsThreatDetectorsSettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()) + .listDnsThreatDetectorsSettings(); + } + + /** Returns the object with the settings used for calls to getDnsThreatDetector. */ + public UnaryCallSettings + getDnsThreatDetectorSettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()) + .getDnsThreatDetectorSettings(); + } + + /** Returns the object with the settings used for calls to createDnsThreatDetector. */ + public UnaryCallSettings + createDnsThreatDetectorSettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()) + .createDnsThreatDetectorSettings(); + } + + /** Returns the object with the settings used for calls to updateDnsThreatDetector. */ + public UnaryCallSettings + updateDnsThreatDetectorSettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()) + .updateDnsThreatDetectorSettings(); + } + + /** Returns the object with the settings used for calls to deleteDnsThreatDetector. */ + public UnaryCallSettings + deleteDnsThreatDetectorSettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()) + .deleteDnsThreatDetectorSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((DnsThreatDetectorServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final DnsThreatDetectorServiceSettings create( + DnsThreatDetectorServiceStubSettings stub) throws IOException { + return new DnsThreatDetectorServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DnsThreatDetectorServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DnsThreatDetectorServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DnsThreatDetectorServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DnsThreatDetectorServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DnsThreatDetectorServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DnsThreatDetectorServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DnsThreatDetectorServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DnsThreatDetectorServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DnsThreatDetectorServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DnsThreatDetectorServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DnsThreatDetectorServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DnsThreatDetectorServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DnsThreatDetectorServiceStubSettings.newBuilder()); + } + + public DnsThreatDetectorServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DnsThreatDetectorServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                                                                      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listDnsThreatDetectors. */ + public PagedCallSettings.Builder< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + ListDnsThreatDetectorsPagedResponse> + listDnsThreatDetectorsSettings() { + return getStubSettingsBuilder().listDnsThreatDetectorsSettings(); + } + + /** Returns the builder for the settings used for calls to getDnsThreatDetector. */ + public UnaryCallSettings.Builder + getDnsThreatDetectorSettings() { + return getStubSettingsBuilder().getDnsThreatDetectorSettings(); + } + + /** Returns the builder for the settings used for calls to createDnsThreatDetector. */ + public UnaryCallSettings.Builder + createDnsThreatDetectorSettings() { + return getStubSettingsBuilder().createDnsThreatDetectorSettings(); + } + + /** Returns the builder for the settings used for calls to updateDnsThreatDetector. */ + public UnaryCallSettings.Builder + updateDnsThreatDetectorSettings() { + return getStubSettingsBuilder().updateDnsThreatDetectorSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDnsThreatDetector. */ + public UnaryCallSettings.Builder + deleteDnsThreatDetectorSettings() { + return getStubSettingsBuilder().deleteDnsThreatDetectorSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public DnsThreatDetectorServiceSettings build() throws IOException { + return new DnsThreatDetectorServiceSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationClient.java new file mode 100644 index 000000000000..6b56a9bb5d98 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationClient.java @@ -0,0 +1,2804 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.FirewallActivationStub; +import com.google.cloud.networksecurity.v1.stub.FirewallActivationStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing Firewall Endpoints and Associations. + * + *

                                                                                                                                      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      + *   FirewallEndpointName name =
                                                                                                                                      + *       FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      + *           "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]");
                                                                                                                                      + *   FirewallEndpoint response = firewallActivationClient.getFirewallEndpoint(name);
                                                                                                                                      + * }
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Note: close() needs to be called on the FirewallActivationClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                                                                                                                      Methods
                                                                                                                                      MethodDescriptionMethod Variants

                                                                                                                                      ListFirewallEndpoints

                                                                                                                                      Lists FirewallEndpoints in a given organization and location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listFirewallEndpoints(ListFirewallEndpointsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listFirewallEndpoints(LocationName parent) + *

                                                                                                                                      • listFirewallEndpoints(OrganizationLocationName parent) + *

                                                                                                                                      • listFirewallEndpoints(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listFirewallEndpointsPagedCallable() + *

                                                                                                                                      • listFirewallEndpointsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetFirewallEndpoint

                                                                                                                                      Gets details of a single org Endpoint.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getFirewallEndpoint(GetFirewallEndpointRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getFirewallEndpoint(FirewallEndpointName name) + *

                                                                                                                                      • getFirewallEndpoint(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getFirewallEndpointCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateFirewallEndpoint

                                                                                                                                      Creates a new FirewallEndpoint in a given organization and location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createFirewallEndpointAsync(CreateFirewallEndpointRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createFirewallEndpointAsync(LocationName parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) + *

                                                                                                                                      • createFirewallEndpointAsync(OrganizationLocationName parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) + *

                                                                                                                                      • createFirewallEndpointAsync(String parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createFirewallEndpointOperationCallable() + *

                                                                                                                                      • createFirewallEndpointCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteFirewallEndpoint

                                                                                                                                      Deletes a single org Endpoint.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteFirewallEndpointAsync(DeleteFirewallEndpointRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteFirewallEndpointAsync(FirewallEndpointName name) + *

                                                                                                                                      • deleteFirewallEndpointAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteFirewallEndpointOperationCallable() + *

                                                                                                                                      • deleteFirewallEndpointCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateFirewallEndpoint

                                                                                                                                      Update a single org Endpoint.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateFirewallEndpointAsync(UpdateFirewallEndpointRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateFirewallEndpointAsync(FirewallEndpoint firewallEndpoint, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateFirewallEndpointOperationCallable() + *

                                                                                                                                      • updateFirewallEndpointCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListFirewallEndpointAssociations

                                                                                                                                      Lists Associations in a given project and location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listFirewallEndpointAssociations(ListFirewallEndpointAssociationsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listFirewallEndpointAssociations(LocationName parent) + *

                                                                                                                                      • listFirewallEndpointAssociations(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listFirewallEndpointAssociationsPagedCallable() + *

                                                                                                                                      • listFirewallEndpointAssociationsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetFirewallEndpointAssociation

                                                                                                                                      Gets details of a single FirewallEndpointAssociation.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getFirewallEndpointAssociation(GetFirewallEndpointAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getFirewallEndpointAssociation(FirewallEndpointAssociationName name) + *

                                                                                                                                      • getFirewallEndpointAssociation(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getFirewallEndpointAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateFirewallEndpointAssociation

                                                                                                                                      Creates a new FirewallEndpointAssociation in a given project and location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createFirewallEndpointAssociationAsync(CreateFirewallEndpointAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createFirewallEndpointAssociationAsync(LocationName parent, FirewallEndpointAssociation firewallEndpointAssociation, String firewallEndpointAssociationId) + *

                                                                                                                                      • createFirewallEndpointAssociationAsync(String parent, FirewallEndpointAssociation firewallEndpointAssociation, String firewallEndpointAssociationId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createFirewallEndpointAssociationOperationCallable() + *

                                                                                                                                      • createFirewallEndpointAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteFirewallEndpointAssociation

                                                                                                                                      Deletes a single FirewallEndpointAssociation.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteFirewallEndpointAssociationAsync(DeleteFirewallEndpointAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteFirewallEndpointAssociationAsync(FirewallEndpointAssociationName name) + *

                                                                                                                                      • deleteFirewallEndpointAssociationAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteFirewallEndpointAssociationOperationCallable() + *

                                                                                                                                      • deleteFirewallEndpointAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateFirewallEndpointAssociation

                                                                                                                                      Update a single FirewallEndpointAssociation.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateFirewallEndpointAssociationAsync(UpdateFirewallEndpointAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateFirewallEndpointAssociationAsync(FirewallEndpointAssociation firewallEndpointAssociation, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateFirewallEndpointAssociationOperationCallable() + *

                                                                                                                                      • updateFirewallEndpointAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListLocations

                                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocations(ListLocationsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocationsPagedCallable() + *

                                                                                                                                      • listLocationsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetLocation

                                                                                                                                      Gets information about a location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocation(GetLocationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocationCallable() + *

                                                                                                                                      + *

                                                                                                                                      SetIamPolicy

                                                                                                                                      Sets the access control policy on the specified resource. Replacesany existing policy. + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicy(SetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicyCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetIamPolicy

                                                                                                                                      Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicy(GetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicyCallable() + *

                                                                                                                                      + *

                                                                                                                                      TestIamPermissions

                                                                                                                                      Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissions(TestIamPermissionsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissionsCallable() + *

                                                                                                                                      + *
                                                                                                                                      + * + *

                                                                                                                                      See the individual methods for example code. + * + *

                                                                                                                                      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                                                                                                                      This class can be customized by passing in a custom instance of FirewallActivationSettings to + * create(). For example: + * + *

                                                                                                                                      To customize credentials: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * FirewallActivationSettings firewallActivationSettings =
                                                                                                                                      + *     FirewallActivationSettings.newBuilder()
                                                                                                                                      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                                                                                                                      + *         .build();
                                                                                                                                      + * FirewallActivationClient firewallActivationClient =
                                                                                                                                      + *     FirewallActivationClient.create(firewallActivationSettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      To customize the endpoint: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * FirewallActivationSettings firewallActivationSettings =
                                                                                                                                      + *     FirewallActivationSettings.newBuilder().setEndpoint(myEndpoint).build();
                                                                                                                                      + * FirewallActivationClient firewallActivationClient =
                                                                                                                                      + *     FirewallActivationClient.create(firewallActivationSettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class FirewallActivationClient implements BackgroundResource { + private final FirewallActivationSettings settings; + private final FirewallActivationStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of FirewallActivationClient with default settings. */ + public static final FirewallActivationClient create() throws IOException { + return create(FirewallActivationSettings.newBuilder().build()); + } + + /** + * Constructs an instance of FirewallActivationClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final FirewallActivationClient create(FirewallActivationSettings settings) + throws IOException { + return new FirewallActivationClient(settings); + } + + /** + * Constructs an instance of FirewallActivationClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(FirewallActivationSettings). + */ + public static final FirewallActivationClient create(FirewallActivationStub stub) { + return new FirewallActivationClient(stub); + } + + /** + * Constructs an instance of FirewallActivationClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected FirewallActivationClient(FirewallActivationSettings settings) throws IOException { + this.settings = settings; + this.stub = ((FirewallActivationStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected FirewallActivationClient(FirewallActivationStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final FirewallActivationSettings getSettings() { + return settings; + } + + public FirewallActivationStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists FirewallEndpoints in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (FirewallEndpoint element :
                                                                                                                                      +   *       firewallActivationClient.listFirewallEndpoints(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Parent value for ListEndpointsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirewallEndpointsPagedResponse listFirewallEndpoints(LocationName parent) { + ListFirewallEndpointsRequest request = + ListFirewallEndpointsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFirewallEndpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists FirewallEndpoints in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                                                                                                                      +   *   for (FirewallEndpoint element :
                                                                                                                                      +   *       firewallActivationClient.listFirewallEndpoints(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Parent value for ListEndpointsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirewallEndpointsPagedResponse listFirewallEndpoints( + OrganizationLocationName parent) { + ListFirewallEndpointsRequest request = + ListFirewallEndpointsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFirewallEndpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists FirewallEndpoints in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (FirewallEndpoint element :
                                                                                                                                      +   *       firewallActivationClient.listFirewallEndpoints(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Parent value for ListEndpointsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirewallEndpointsPagedResponse listFirewallEndpoints(String parent) { + ListFirewallEndpointsRequest request = + ListFirewallEndpointsRequest.newBuilder().setParent(parent).build(); + return listFirewallEndpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists FirewallEndpoints in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListFirewallEndpointsRequest request =
                                                                                                                                      +   *       ListFirewallEndpointsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (FirewallEndpoint element :
                                                                                                                                      +   *       firewallActivationClient.listFirewallEndpoints(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirewallEndpointsPagedResponse listFirewallEndpoints( + ListFirewallEndpointsRequest request) { + return listFirewallEndpointsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists FirewallEndpoints in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListFirewallEndpointsRequest request =
                                                                                                                                      +   *       ListFirewallEndpointsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.listFirewallEndpointsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (FirewallEndpoint element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listFirewallEndpointsPagedCallable() { + return stub.listFirewallEndpointsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists FirewallEndpoints in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListFirewallEndpointsRequest request =
                                                                                                                                      +   *       ListFirewallEndpointsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListFirewallEndpointsResponse response =
                                                                                                                                      +   *         firewallActivationClient.listFirewallEndpointsCallable().call(request);
                                                                                                                                      +   *     for (FirewallEndpoint element : response.getFirewallEndpointsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listFirewallEndpointsCallable() { + return stub.listFirewallEndpointsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   FirewallEndpointName name =
                                                                                                                                      +   *       FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *           "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]");
                                                                                                                                      +   *   FirewallEndpoint response = firewallActivationClient.getFirewallEndpoint(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FirewallEndpoint getFirewallEndpoint(FirewallEndpointName name) { + GetFirewallEndpointRequest request = + GetFirewallEndpointRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getFirewallEndpoint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *               "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   FirewallEndpoint response = firewallActivationClient.getFirewallEndpoint(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FirewallEndpoint getFirewallEndpoint(String name) { + GetFirewallEndpointRequest request = + GetFirewallEndpointRequest.newBuilder().setName(name).build(); + return getFirewallEndpoint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   GetFirewallEndpointRequest request =
                                                                                                                                      +   *       GetFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   FirewallEndpoint response = firewallActivationClient.getFirewallEndpoint(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FirewallEndpoint getFirewallEndpoint(GetFirewallEndpointRequest request) { + return getFirewallEndpointCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   GetFirewallEndpointRequest request =
                                                                                                                                      +   *       GetFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.getFirewallEndpointCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   FirewallEndpoint response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getFirewallEndpointCallable() { + return stub.getFirewallEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpoint in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build();
                                                                                                                                      +   *   String firewallEndpointId = "firewallEndpointId-993710416";
                                                                                                                                      +   *   FirewallEndpoint response =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Value for parent. + * @param firewallEndpoint Required. The resource being created + * @param firewallEndpointId Required. Id of the requesting object. If auto-generating Id + * server-side, remove this field and firewall_endpoint_id from the method_signature of Create + * RPC. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFirewallEndpointAsync( + LocationName parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) { + CreateFirewallEndpointRequest request = + CreateFirewallEndpointRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFirewallEndpoint(firewallEndpoint) + .setFirewallEndpointId(firewallEndpointId) + .build(); + return createFirewallEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpoint in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                                                                                                                      +   *   FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build();
                                                                                                                                      +   *   String firewallEndpointId = "firewallEndpointId-993710416";
                                                                                                                                      +   *   FirewallEndpoint response =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Value for parent. + * @param firewallEndpoint Required. The resource being created + * @param firewallEndpointId Required. Id of the requesting object. If auto-generating Id + * server-side, remove this field and firewall_endpoint_id from the method_signature of Create + * RPC. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFirewallEndpointAsync( + OrganizationLocationName parent, + FirewallEndpoint firewallEndpoint, + String firewallEndpointId) { + CreateFirewallEndpointRequest request = + CreateFirewallEndpointRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFirewallEndpoint(firewallEndpoint) + .setFirewallEndpointId(firewallEndpointId) + .build(); + return createFirewallEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpoint in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
                                                                                                                                      +   *   FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build();
                                                                                                                                      +   *   String firewallEndpointId = "firewallEndpointId-993710416";
                                                                                                                                      +   *   FirewallEndpoint response =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Value for parent. + * @param firewallEndpoint Required. The resource being created + * @param firewallEndpointId Required. Id of the requesting object. If auto-generating Id + * server-side, remove this field and firewall_endpoint_id from the method_signature of Create + * RPC. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFirewallEndpointAsync( + String parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) { + CreateFirewallEndpointRequest request = + CreateFirewallEndpointRequest.newBuilder() + .setParent(parent) + .setFirewallEndpoint(firewallEndpoint) + .setFirewallEndpointId(firewallEndpointId) + .build(); + return createFirewallEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpoint in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   CreateFirewallEndpointRequest request =
                                                                                                                                      +   *       CreateFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setFirewallEndpointId("firewallEndpointId-993710416")
                                                                                                                                      +   *           .setFirewallEndpoint(FirewallEndpoint.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   FirewallEndpoint response =
                                                                                                                                      +   *       firewallActivationClient.createFirewallEndpointAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFirewallEndpointAsync( + CreateFirewallEndpointRequest request) { + return createFirewallEndpointOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpoint in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   CreateFirewallEndpointRequest request =
                                                                                                                                      +   *       CreateFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setFirewallEndpointId("firewallEndpointId-993710416")
                                                                                                                                      +   *           .setFirewallEndpoint(FirewallEndpoint.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       firewallActivationClient.createFirewallEndpointOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   FirewallEndpoint response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + createFirewallEndpointOperationCallable() { + return stub.createFirewallEndpointOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpoint in a given organization and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   CreateFirewallEndpointRequest request =
                                                                                                                                      +   *       CreateFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setFirewallEndpointId("firewallEndpointId-993710416")
                                                                                                                                      +   *           .setFirewallEndpoint(FirewallEndpoint.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.createFirewallEndpointCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createFirewallEndpointCallable() { + return stub.createFirewallEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   FirewallEndpointName name =
                                                                                                                                      +   *       FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *           "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]");
                                                                                                                                      +   *   firewallActivationClient.deleteFirewallEndpointAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFirewallEndpointAsync( + FirewallEndpointName name) { + DeleteFirewallEndpointRequest request = + DeleteFirewallEndpointRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteFirewallEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *               "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   firewallActivationClient.deleteFirewallEndpointAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFirewallEndpointAsync(String name) { + DeleteFirewallEndpointRequest request = + DeleteFirewallEndpointRequest.newBuilder().setName(name).build(); + return deleteFirewallEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   DeleteFirewallEndpointRequest request =
                                                                                                                                      +   *       DeleteFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   firewallActivationClient.deleteFirewallEndpointAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFirewallEndpointAsync( + DeleteFirewallEndpointRequest request) { + return deleteFirewallEndpointOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   DeleteFirewallEndpointRequest request =
                                                                                                                                      +   *       DeleteFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       firewallActivationClient.deleteFirewallEndpointOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteFirewallEndpointOperationCallable() { + return stub.deleteFirewallEndpointOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   DeleteFirewallEndpointRequest request =
                                                                                                                                      +   *       DeleteFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.deleteFirewallEndpointCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteFirewallEndpointCallable() { + return stub.deleteFirewallEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   FirewallEndpoint response =
                                                                                                                                      +   *       firewallActivationClient.updateFirewallEndpointAsync(firewallEndpoint, updateMask).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param firewallEndpoint Required. The resource being updated + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * Endpoint resource by the update. The fields specified in the update_mask are relative to + * the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFirewallEndpointAsync( + FirewallEndpoint firewallEndpoint, FieldMask updateMask) { + UpdateFirewallEndpointRequest request = + UpdateFirewallEndpointRequest.newBuilder() + .setFirewallEndpoint(firewallEndpoint) + .setUpdateMask(updateMask) + .build(); + return updateFirewallEndpointAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   UpdateFirewallEndpointRequest request =
                                                                                                                                      +   *       UpdateFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setFirewallEndpoint(FirewallEndpoint.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   FirewallEndpoint response =
                                                                                                                                      +   *       firewallActivationClient.updateFirewallEndpointAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFirewallEndpointAsync( + UpdateFirewallEndpointRequest request) { + return updateFirewallEndpointOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   UpdateFirewallEndpointRequest request =
                                                                                                                                      +   *       UpdateFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setFirewallEndpoint(FirewallEndpoint.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       firewallActivationClient.updateFirewallEndpointOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   FirewallEndpoint response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + updateFirewallEndpointOperationCallable() { + return stub.updateFirewallEndpointOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single org Endpoint. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   UpdateFirewallEndpointRequest request =
                                                                                                                                      +   *       UpdateFirewallEndpointRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setFirewallEndpoint(FirewallEndpoint.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.updateFirewallEndpointCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateFirewallEndpointCallable() { + return stub.updateFirewallEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Associations in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (FirewallEndpointAssociation element :
                                                                                                                                      +   *       firewallActivationClient.listFirewallEndpointAssociations(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Parent value for ListAssociationsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirewallEndpointAssociationsPagedResponse listFirewallEndpointAssociations( + LocationName parent) { + ListFirewallEndpointAssociationsRequest request = + ListFirewallEndpointAssociationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFirewallEndpointAssociations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Associations in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (FirewallEndpointAssociation element :
                                                                                                                                      +   *       firewallActivationClient.listFirewallEndpointAssociations(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Parent value for ListAssociationsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirewallEndpointAssociationsPagedResponse listFirewallEndpointAssociations( + String parent) { + ListFirewallEndpointAssociationsRequest request = + ListFirewallEndpointAssociationsRequest.newBuilder().setParent(parent).build(); + return listFirewallEndpointAssociations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Associations in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListFirewallEndpointAssociationsRequest request =
                                                                                                                                      +   *       ListFirewallEndpointAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (FirewallEndpointAssociation element :
                                                                                                                                      +   *       firewallActivationClient.listFirewallEndpointAssociations(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirewallEndpointAssociationsPagedResponse listFirewallEndpointAssociations( + ListFirewallEndpointAssociationsRequest request) { + return listFirewallEndpointAssociationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Associations in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListFirewallEndpointAssociationsRequest request =
                                                                                                                                      +   *       ListFirewallEndpointAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .listFirewallEndpointAssociationsPagedCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (FirewallEndpointAssociation element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsPagedCallable() { + return stub.listFirewallEndpointAssociationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Associations in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListFirewallEndpointAssociationsRequest request =
                                                                                                                                      +   *       ListFirewallEndpointAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListFirewallEndpointAssociationsResponse response =
                                                                                                                                      +   *         firewallActivationClient.listFirewallEndpointAssociationsCallable().call(request);
                                                                                                                                      +   *     for (FirewallEndpointAssociation element : response.getFirewallEndpointAssociationsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse> + listFirewallEndpointAssociationsCallable() { + return stub.listFirewallEndpointAssociationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   FirewallEndpointAssociationName name =
                                                                                                                                      +   *       FirewallEndpointAssociationName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]");
                                                                                                                                      +   *   FirewallEndpointAssociation response =
                                                                                                                                      +   *       firewallActivationClient.getFirewallEndpointAssociation(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FirewallEndpointAssociation getFirewallEndpointAssociation( + FirewallEndpointAssociationName name) { + GetFirewallEndpointAssociationRequest request = + GetFirewallEndpointAssociationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getFirewallEndpointAssociation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       FirewallEndpointAssociationName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   FirewallEndpointAssociation response =
                                                                                                                                      +   *       firewallActivationClient.getFirewallEndpointAssociation(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FirewallEndpointAssociation getFirewallEndpointAssociation(String name) { + GetFirewallEndpointAssociationRequest request = + GetFirewallEndpointAssociationRequest.newBuilder().setName(name).build(); + return getFirewallEndpointAssociation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   GetFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       GetFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   FirewallEndpointAssociation response =
                                                                                                                                      +   *       firewallActivationClient.getFirewallEndpointAssociation(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FirewallEndpointAssociation getFirewallEndpointAssociation( + GetFirewallEndpointAssociationRequest request) { + return getFirewallEndpointAssociationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   GetFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       GetFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.getFirewallEndpointAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   FirewallEndpointAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getFirewallEndpointAssociationCallable() { + return stub.getFirewallEndpointAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpointAssociation in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   FirewallEndpointAssociation firewallEndpointAssociation =
                                                                                                                                      +   *       FirewallEndpointAssociation.newBuilder().build();
                                                                                                                                      +   *   String firewallEndpointAssociationId = "firewallEndpointAssociationId-891991865";
                                                                                                                                      +   *   FirewallEndpointAssociation response =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .createFirewallEndpointAssociationAsync(
                                                                                                                                      +   *               parent, firewallEndpointAssociation, firewallEndpointAssociationId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Value for parent. + * @param firewallEndpointAssociation Required. The resource being created + * @param firewallEndpointAssociationId Optional. Id of the requesting object. If auto-generating + * Id server-side, remove this field and firewall_endpoint_association_id from the + * method_signature of Create RPC. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createFirewallEndpointAssociationAsync( + LocationName parent, + FirewallEndpointAssociation firewallEndpointAssociation, + String firewallEndpointAssociationId) { + CreateFirewallEndpointAssociationRequest request = + CreateFirewallEndpointAssociationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFirewallEndpointAssociation(firewallEndpointAssociation) + .setFirewallEndpointAssociationId(firewallEndpointAssociationId) + .build(); + return createFirewallEndpointAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpointAssociation in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   FirewallEndpointAssociation firewallEndpointAssociation =
                                                                                                                                      +   *       FirewallEndpointAssociation.newBuilder().build();
                                                                                                                                      +   *   String firewallEndpointAssociationId = "firewallEndpointAssociationId-891991865";
                                                                                                                                      +   *   FirewallEndpointAssociation response =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .createFirewallEndpointAssociationAsync(
                                                                                                                                      +   *               parent, firewallEndpointAssociation, firewallEndpointAssociationId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. Value for parent. + * @param firewallEndpointAssociation Required. The resource being created + * @param firewallEndpointAssociationId Optional. Id of the requesting object. If auto-generating + * Id server-side, remove this field and firewall_endpoint_association_id from the + * method_signature of Create RPC. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createFirewallEndpointAssociationAsync( + String parent, + FirewallEndpointAssociation firewallEndpointAssociation, + String firewallEndpointAssociationId) { + CreateFirewallEndpointAssociationRequest request = + CreateFirewallEndpointAssociationRequest.newBuilder() + .setParent(parent) + .setFirewallEndpointAssociation(firewallEndpointAssociation) + .setFirewallEndpointAssociationId(firewallEndpointAssociationId) + .build(); + return createFirewallEndpointAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpointAssociation in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   CreateFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       CreateFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setFirewallEndpointAssociationId("firewallEndpointAssociationId-891991865")
                                                                                                                                      +   *           .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   FirewallEndpointAssociation response =
                                                                                                                                      +   *       firewallActivationClient.createFirewallEndpointAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createFirewallEndpointAssociationAsync(CreateFirewallEndpointAssociationRequest request) { + return createFirewallEndpointAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpointAssociation in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   CreateFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       CreateFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setFirewallEndpointAssociationId("firewallEndpointAssociationId-891991865")
                                                                                                                                      +   *           .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .createFirewallEndpointAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   FirewallEndpointAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + createFirewallEndpointAssociationOperationCallable() { + return stub.createFirewallEndpointAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new FirewallEndpointAssociation in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   CreateFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       CreateFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setFirewallEndpointAssociationId("firewallEndpointAssociationId-891991865")
                                                                                                                                      +   *           .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.createFirewallEndpointAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createFirewallEndpointAssociationCallable() { + return stub.createFirewallEndpointAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   FirewallEndpointAssociationName name =
                                                                                                                                      +   *       FirewallEndpointAssociationName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]");
                                                                                                                                      +   *   firewallActivationClient.deleteFirewallEndpointAssociationAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFirewallEndpointAssociationAsync( + FirewallEndpointAssociationName name) { + DeleteFirewallEndpointAssociationRequest request = + DeleteFirewallEndpointAssociationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteFirewallEndpointAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       FirewallEndpointAssociationName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   firewallActivationClient.deleteFirewallEndpointAssociationAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFirewallEndpointAssociationAsync( + String name) { + DeleteFirewallEndpointAssociationRequest request = + DeleteFirewallEndpointAssociationRequest.newBuilder().setName(name).build(); + return deleteFirewallEndpointAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   DeleteFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       DeleteFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   firewallActivationClient.deleteFirewallEndpointAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFirewallEndpointAssociationAsync( + DeleteFirewallEndpointAssociationRequest request) { + return deleteFirewallEndpointAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   DeleteFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       DeleteFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .deleteFirewallEndpointAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteFirewallEndpointAssociationOperationCallable() { + return stub.deleteFirewallEndpointAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   DeleteFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       DeleteFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               FirewallEndpointAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.deleteFirewallEndpointAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteFirewallEndpointAssociationCallable() { + return stub.deleteFirewallEndpointAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   FirewallEndpointAssociation firewallEndpointAssociation =
                                                                                                                                      +   *       FirewallEndpointAssociation.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   FirewallEndpointAssociation response =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .updateFirewallEndpointAssociationAsync(firewallEndpointAssociation, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param firewallEndpointAssociation Required. The resource being updated + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * Association resource by the update. The fields specified in the update_mask are relative to + * the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateFirewallEndpointAssociationAsync( + FirewallEndpointAssociation firewallEndpointAssociation, FieldMask updateMask) { + UpdateFirewallEndpointAssociationRequest request = + UpdateFirewallEndpointAssociationRequest.newBuilder() + .setFirewallEndpointAssociation(firewallEndpointAssociation) + .setUpdateMask(updateMask) + .build(); + return updateFirewallEndpointAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   UpdateFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       UpdateFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   FirewallEndpointAssociation response =
                                                                                                                                      +   *       firewallActivationClient.updateFirewallEndpointAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateFirewallEndpointAssociationAsync(UpdateFirewallEndpointAssociationRequest request) { + return updateFirewallEndpointAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   UpdateFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       UpdateFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       firewallActivationClient
                                                                                                                                      +   *           .updateFirewallEndpointAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   FirewallEndpointAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + updateFirewallEndpointAssociationOperationCallable() { + return stub.updateFirewallEndpointAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single FirewallEndpointAssociation. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   UpdateFirewallEndpointAssociationRequest request =
                                                                                                                                      +   *       UpdateFirewallEndpointAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.updateFirewallEndpointAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateFirewallEndpointAssociationCallable() { + return stub.updateFirewallEndpointAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (Location element : firewallActivationClient.listLocations(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.listLocationsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (Location element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListLocationsResponse response =
                                                                                                                                      +   *         firewallActivationClient.listLocationsCallable().call(request);
                                                                                                                                      +   *     for (Location element : response.getLocationsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                                                                      +   *   Location response = firewallActivationClient.getLocation(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.getLocationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Location response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   SetIamPolicyRequest request =
                                                                                                                                      +   *       SetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPolicy(Policy.newBuilder().build())
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   Policy response = firewallActivationClient.setIamPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   SetIamPolicyRequest request =
                                                                                                                                      +   *       SetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPolicy(Policy.newBuilder().build())
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.setIamPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Policy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   GetIamPolicyRequest request =
                                                                                                                                      +   *       GetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   Policy response = firewallActivationClient.getIamPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   GetIamPolicyRequest request =
                                                                                                                                      +   *       GetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.getIamPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Policy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   TestIamPermissionsRequest request =
                                                                                                                                      +   *       TestIamPermissionsRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .addAllPermissions(new ArrayList())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   TestIamPermissionsResponse response = firewallActivationClient.testIamPermissions(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                                                                      +   *   TestIamPermissionsRequest request =
                                                                                                                                      +   *       TestIamPermissionsRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .addAllPermissions(new ArrayList())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       firewallActivationClient.testIamPermissionsCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   TestIamPermissionsResponse response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListFirewallEndpointsPagedResponse + extends AbstractPagedListResponse< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + FirewallEndpoint, + ListFirewallEndpointsPage, + ListFirewallEndpointsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFirewallEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFirewallEndpointsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFirewallEndpointsPagedResponse(ListFirewallEndpointsPage page) { + super(page, ListFirewallEndpointsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFirewallEndpointsPage + extends AbstractPage< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + FirewallEndpoint, + ListFirewallEndpointsPage> { + + private ListFirewallEndpointsPage( + PageContext + context, + ListFirewallEndpointsResponse response) { + super(context, response); + } + + private static ListFirewallEndpointsPage createEmptyPage() { + return new ListFirewallEndpointsPage(null, null); + } + + @Override + protected ListFirewallEndpointsPage createPage( + PageContext + context, + ListFirewallEndpointsResponse response) { + return new ListFirewallEndpointsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFirewallEndpointsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + FirewallEndpoint, + ListFirewallEndpointsPage, + ListFirewallEndpointsFixedSizeCollection> { + + private ListFirewallEndpointsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFirewallEndpointsFixedSizeCollection createEmptyCollection() { + return new ListFirewallEndpointsFixedSizeCollection(null, 0); + } + + @Override + protected ListFirewallEndpointsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFirewallEndpointsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFirewallEndpointAssociationsPagedResponse + extends AbstractPagedListResponse< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation, + ListFirewallEndpointAssociationsPage, + ListFirewallEndpointAssociationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFirewallEndpointAssociationsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFirewallEndpointAssociationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFirewallEndpointAssociationsPagedResponse( + ListFirewallEndpointAssociationsPage page) { + super(page, ListFirewallEndpointAssociationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFirewallEndpointAssociationsPage + extends AbstractPage< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation, + ListFirewallEndpointAssociationsPage> { + + private ListFirewallEndpointAssociationsPage( + PageContext< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation> + context, + ListFirewallEndpointAssociationsResponse response) { + super(context, response); + } + + private static ListFirewallEndpointAssociationsPage createEmptyPage() { + return new ListFirewallEndpointAssociationsPage(null, null); + } + + @Override + protected ListFirewallEndpointAssociationsPage createPage( + PageContext< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation> + context, + ListFirewallEndpointAssociationsResponse response) { + return new ListFirewallEndpointAssociationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFirewallEndpointAssociationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation, + ListFirewallEndpointAssociationsPage, + ListFirewallEndpointAssociationsFixedSizeCollection> { + + private ListFirewallEndpointAssociationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFirewallEndpointAssociationsFixedSizeCollection createEmptyCollection() { + return new ListFirewallEndpointAssociationsFixedSizeCollection(null, 0); + } + + @Override + protected ListFirewallEndpointAssociationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFirewallEndpointAssociationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationSettings.java new file mode 100644 index 000000000000..ab6b26ec79de --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationSettings.java @@ -0,0 +1,514 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.FirewallActivationStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FirewallActivationClient}. + * + *

                                                                                                                                      The default instance has everything set to sensible defaults: + * + *

                                                                                                                                        + *
                                                                                                                                      • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                                                                      • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                                                                      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                                                                      + * + *

                                                                                                                                      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                                                                      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getFirewallEndpoint: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * FirewallActivationSettings.Builder firewallActivationSettingsBuilder =
                                                                                                                                      + *     FirewallActivationSettings.newBuilder();
                                                                                                                                      + * firewallActivationSettingsBuilder
                                                                                                                                      + *     .getFirewallEndpointSettings()
                                                                                                                                      + *     .setRetrySettings(
                                                                                                                                      + *         firewallActivationSettingsBuilder
                                                                                                                                      + *             .getFirewallEndpointSettings()
                                                                                                                                      + *             .getRetrySettings()
                                                                                                                                      + *             .toBuilder()
                                                                                                                                      + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                                                                      + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                                                                      + *             .setMaxAttempts(5)
                                                                                                                                      + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                                                                      + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                                                                      + *             .setRetryDelayMultiplier(1.3)
                                                                                                                                      + *             .setRpcTimeoutMultiplier(1.5)
                                                                                                                                      + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                                                                      + *             .build());
                                                                                                                                      + * FirewallActivationSettings firewallActivationSettings =
                                                                                                                                      + *     firewallActivationSettingsBuilder.build();
                                                                                                                                      + * }
                                                                                                                                      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

                                                                                                                                      To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createFirewallEndpoint: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * FirewallActivationSettings.Builder firewallActivationSettingsBuilder =
                                                                                                                                      + *     FirewallActivationSettings.newBuilder();
                                                                                                                                      + * TimedRetryAlgorithm timedRetryAlgorithm =
                                                                                                                                      + *     OperationalTimedPollAlgorithm.create(
                                                                                                                                      + *         RetrySettings.newBuilder()
                                                                                                                                      + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                                                                                                                      + *             .setRetryDelayMultiplier(1.5)
                                                                                                                                      + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                                                                                                                      + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                                                                                                                      + *             .build());
                                                                                                                                      + * firewallActivationSettingsBuilder
                                                                                                                                      + *     .createClusterOperationSettings()
                                                                                                                                      + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                                                                                                                      + *     .build();
                                                                                                                                      + * }
                                                                                                                                      + */ +@Generated("by gapic-generator-java") +public class FirewallActivationSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listFirewallEndpoints. */ + public PagedCallSettings< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + ListFirewallEndpointsPagedResponse> + listFirewallEndpointsSettings() { + return ((FirewallActivationStubSettings) getStubSettings()).listFirewallEndpointsSettings(); + } + + /** Returns the object with the settings used for calls to getFirewallEndpoint. */ + public UnaryCallSettings + getFirewallEndpointSettings() { + return ((FirewallActivationStubSettings) getStubSettings()).getFirewallEndpointSettings(); + } + + /** Returns the object with the settings used for calls to createFirewallEndpoint. */ + public UnaryCallSettings + createFirewallEndpointSettings() { + return ((FirewallActivationStubSettings) getStubSettings()).createFirewallEndpointSettings(); + } + + /** Returns the object with the settings used for calls to createFirewallEndpoint. */ + public OperationCallSettings + createFirewallEndpointOperationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .createFirewallEndpointOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteFirewallEndpoint. */ + public UnaryCallSettings + deleteFirewallEndpointSettings() { + return ((FirewallActivationStubSettings) getStubSettings()).deleteFirewallEndpointSettings(); + } + + /** Returns the object with the settings used for calls to deleteFirewallEndpoint. */ + public OperationCallSettings + deleteFirewallEndpointOperationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .deleteFirewallEndpointOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateFirewallEndpoint. */ + public UnaryCallSettings + updateFirewallEndpointSettings() { + return ((FirewallActivationStubSettings) getStubSettings()).updateFirewallEndpointSettings(); + } + + /** Returns the object with the settings used for calls to updateFirewallEndpoint. */ + public OperationCallSettings + updateFirewallEndpointOperationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .updateFirewallEndpointOperationSettings(); + } + + /** Returns the object with the settings used for calls to listFirewallEndpointAssociations. */ + public PagedCallSettings< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .listFirewallEndpointAssociationsSettings(); + } + + /** Returns the object with the settings used for calls to getFirewallEndpointAssociation. */ + public UnaryCallSettings + getFirewallEndpointAssociationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .getFirewallEndpointAssociationSettings(); + } + + /** Returns the object with the settings used for calls to createFirewallEndpointAssociation. */ + public UnaryCallSettings + createFirewallEndpointAssociationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .createFirewallEndpointAssociationSettings(); + } + + /** Returns the object with the settings used for calls to createFirewallEndpointAssociation. */ + public OperationCallSettings< + CreateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + createFirewallEndpointAssociationOperationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .createFirewallEndpointAssociationOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteFirewallEndpointAssociation. */ + public UnaryCallSettings + deleteFirewallEndpointAssociationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .deleteFirewallEndpointAssociationSettings(); + } + + /** Returns the object with the settings used for calls to deleteFirewallEndpointAssociation. */ + public OperationCallSettings + deleteFirewallEndpointAssociationOperationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .deleteFirewallEndpointAssociationOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateFirewallEndpointAssociation. */ + public UnaryCallSettings + updateFirewallEndpointAssociationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .updateFirewallEndpointAssociationSettings(); + } + + /** Returns the object with the settings used for calls to updateFirewallEndpointAssociation. */ + public OperationCallSettings< + UpdateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + updateFirewallEndpointAssociationOperationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()) + .updateFirewallEndpointAssociationOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((FirewallActivationStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((FirewallActivationStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((FirewallActivationStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((FirewallActivationStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((FirewallActivationStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final FirewallActivationSettings create(FirewallActivationStubSettings stub) + throws IOException { + return new FirewallActivationSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return FirewallActivationStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return FirewallActivationStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return FirewallActivationStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return FirewallActivationStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return FirewallActivationStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return FirewallActivationStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FirewallActivationStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FirewallActivationSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for FirewallActivationSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(FirewallActivationStubSettings.newBuilder(clientContext)); + } + + protected Builder(FirewallActivationSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(FirewallActivationStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(FirewallActivationStubSettings.newBuilder()); + } + + public FirewallActivationStubSettings.Builder getStubSettingsBuilder() { + return ((FirewallActivationStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                                                                      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listFirewallEndpoints. */ + public PagedCallSettings.Builder< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + ListFirewallEndpointsPagedResponse> + listFirewallEndpointsSettings() { + return getStubSettingsBuilder().listFirewallEndpointsSettings(); + } + + /** Returns the builder for the settings used for calls to getFirewallEndpoint. */ + public UnaryCallSettings.Builder + getFirewallEndpointSettings() { + return getStubSettingsBuilder().getFirewallEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to createFirewallEndpoint. */ + public UnaryCallSettings.Builder + createFirewallEndpointSettings() { + return getStubSettingsBuilder().createFirewallEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to createFirewallEndpoint. */ + public OperationCallSettings.Builder< + CreateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + createFirewallEndpointOperationSettings() { + return getStubSettingsBuilder().createFirewallEndpointOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFirewallEndpoint. */ + public UnaryCallSettings.Builder + deleteFirewallEndpointSettings() { + return getStubSettingsBuilder().deleteFirewallEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFirewallEndpoint. */ + public OperationCallSettings.Builder + deleteFirewallEndpointOperationSettings() { + return getStubSettingsBuilder().deleteFirewallEndpointOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateFirewallEndpoint. */ + public UnaryCallSettings.Builder + updateFirewallEndpointSettings() { + return getStubSettingsBuilder().updateFirewallEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to updateFirewallEndpoint. */ + public OperationCallSettings.Builder< + UpdateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + updateFirewallEndpointOperationSettings() { + return getStubSettingsBuilder().updateFirewallEndpointOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listFirewallEndpointAssociations. */ + public PagedCallSettings.Builder< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsSettings() { + return getStubSettingsBuilder().listFirewallEndpointAssociationsSettings(); + } + + /** Returns the builder for the settings used for calls to getFirewallEndpointAssociation. */ + public UnaryCallSettings.Builder< + GetFirewallEndpointAssociationRequest, FirewallEndpointAssociation> + getFirewallEndpointAssociationSettings() { + return getStubSettingsBuilder().getFirewallEndpointAssociationSettings(); + } + + /** Returns the builder for the settings used for calls to createFirewallEndpointAssociation. */ + public UnaryCallSettings.Builder + createFirewallEndpointAssociationSettings() { + return getStubSettingsBuilder().createFirewallEndpointAssociationSettings(); + } + + /** Returns the builder for the settings used for calls to createFirewallEndpointAssociation. */ + public OperationCallSettings.Builder< + CreateFirewallEndpointAssociationRequest, + FirewallEndpointAssociation, + OperationMetadata> + createFirewallEndpointAssociationOperationSettings() { + return getStubSettingsBuilder().createFirewallEndpointAssociationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFirewallEndpointAssociation. */ + public UnaryCallSettings.Builder + deleteFirewallEndpointAssociationSettings() { + return getStubSettingsBuilder().deleteFirewallEndpointAssociationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFirewallEndpointAssociation. */ + public OperationCallSettings.Builder< + DeleteFirewallEndpointAssociationRequest, Empty, OperationMetadata> + deleteFirewallEndpointAssociationOperationSettings() { + return getStubSettingsBuilder().deleteFirewallEndpointAssociationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateFirewallEndpointAssociation. */ + public UnaryCallSettings.Builder + updateFirewallEndpointAssociationSettings() { + return getStubSettingsBuilder().updateFirewallEndpointAssociationSettings(); + } + + /** Returns the builder for the settings used for calls to updateFirewallEndpointAssociation. */ + public OperationCallSettings.Builder< + UpdateFirewallEndpointAssociationRequest, + FirewallEndpointAssociation, + OperationMetadata> + updateFirewallEndpointAssociationOperationSettings() { + return getStubSettingsBuilder().updateFirewallEndpointAssociationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public FirewallActivationSettings build() throws IOException { + return new FirewallActivationSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptClient.java new file mode 100644 index 000000000000..32a34f083f54 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptClient.java @@ -0,0 +1,4731 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.InterceptStub; +import com.google.cloud.networksecurity.v1.stub.InterceptStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for Third-Party Packet Intercept (TPPI). TPPI is the "in-band" + * flavor of the Network Security Integrations product. + * + *

                                                                                                                                      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      + *   InterceptEndpointGroupName name =
                                                                                                                                      + *       InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
                                                                                                                                      + *   InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
                                                                                                                                      + * }
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Note: close() needs to be called on the InterceptClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                                                                                                                      Methods
                                                                                                                                      MethodDescriptionMethod Variants

                                                                                                                                      ListInterceptEndpointGroups

                                                                                                                                      Lists endpoint groups in a given project and location. See https://google.aip.dev/132.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptEndpointGroups(ListInterceptEndpointGroupsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptEndpointGroups(LocationName parent) + *

                                                                                                                                      • listInterceptEndpointGroups(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptEndpointGroupsPagedCallable() + *

                                                                                                                                      • listInterceptEndpointGroupsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetInterceptEndpointGroup

                                                                                                                                      Gets a specific endpoint group. See https://google.aip.dev/131.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptEndpointGroup(GetInterceptEndpointGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptEndpointGroup(InterceptEndpointGroupName name) + *

                                                                                                                                      • getInterceptEndpointGroup(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptEndpointGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateInterceptEndpointGroup

                                                                                                                                      Creates an endpoint group in a given project and location. See https://google.aip.dev/133.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptEndpointGroupAsync(CreateInterceptEndpointGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptEndpointGroupAsync(LocationName parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId) + *

                                                                                                                                      • createInterceptEndpointGroupAsync(String parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptEndpointGroupOperationCallable() + *

                                                                                                                                      • createInterceptEndpointGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateInterceptEndpointGroup

                                                                                                                                      Updates an endpoint group. See https://google.aip.dev/134.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptEndpointGroupAsync(UpdateInterceptEndpointGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptEndpointGroupAsync(InterceptEndpointGroup interceptEndpointGroup, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptEndpointGroupOperationCallable() + *

                                                                                                                                      • updateInterceptEndpointGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteInterceptEndpointGroup

                                                                                                                                      Deletes an endpoint group. See https://google.aip.dev/135.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptEndpointGroupAsync(DeleteInterceptEndpointGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptEndpointGroupAsync(InterceptEndpointGroupName name) + *

                                                                                                                                      • deleteInterceptEndpointGroupAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptEndpointGroupOperationCallable() + *

                                                                                                                                      • deleteInterceptEndpointGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListInterceptEndpointGroupAssociations

                                                                                                                                      Lists associations in a given project and location. See https://google.aip.dev/132.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptEndpointGroupAssociations(ListInterceptEndpointGroupAssociationsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptEndpointGroupAssociations(LocationName parent) + *

                                                                                                                                      • listInterceptEndpointGroupAssociations(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptEndpointGroupAssociationsPagedCallable() + *

                                                                                                                                      • listInterceptEndpointGroupAssociationsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetInterceptEndpointGroupAssociation

                                                                                                                                      Gets a specific association. See https://google.aip.dev/131.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptEndpointGroupAssociation(GetInterceptEndpointGroupAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptEndpointGroupAssociation(InterceptEndpointGroupAssociationName name) + *

                                                                                                                                      • getInterceptEndpointGroupAssociation(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptEndpointGroupAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateInterceptEndpointGroupAssociation

                                                                                                                                      Creates an association in a given project and location. See https://google.aip.dev/133.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptEndpointGroupAssociationAsync(CreateInterceptEndpointGroupAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptEndpointGroupAssociationAsync(LocationName parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId) + *

                                                                                                                                      • createInterceptEndpointGroupAssociationAsync(String parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptEndpointGroupAssociationOperationCallable() + *

                                                                                                                                      • createInterceptEndpointGroupAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateInterceptEndpointGroupAssociation

                                                                                                                                      Updates an association. See https://google.aip.dev/134.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptEndpointGroupAssociationAsync(UpdateInterceptEndpointGroupAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptEndpointGroupAssociationOperationCallable() + *

                                                                                                                                      • updateInterceptEndpointGroupAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteInterceptEndpointGroupAssociation

                                                                                                                                      Deletes an association. See https://google.aip.dev/135.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptEndpointGroupAssociationAsync(DeleteInterceptEndpointGroupAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociationName name) + *

                                                                                                                                      • deleteInterceptEndpointGroupAssociationAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptEndpointGroupAssociationOperationCallable() + *

                                                                                                                                      • deleteInterceptEndpointGroupAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListInterceptDeploymentGroups

                                                                                                                                      Lists deployment groups in a given project and location. See https://google.aip.dev/132.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptDeploymentGroups(ListInterceptDeploymentGroupsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptDeploymentGroups(LocationName parent) + *

                                                                                                                                      • listInterceptDeploymentGroups(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptDeploymentGroupsPagedCallable() + *

                                                                                                                                      • listInterceptDeploymentGroupsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetInterceptDeploymentGroup

                                                                                                                                      Gets a specific deployment group. See https://google.aip.dev/131.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptDeploymentGroup(GetInterceptDeploymentGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptDeploymentGroup(InterceptDeploymentGroupName name) + *

                                                                                                                                      • getInterceptDeploymentGroup(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptDeploymentGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateInterceptDeploymentGroup

                                                                                                                                      Creates a deployment group in a given project and location. See https://google.aip.dev/133.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptDeploymentGroupAsync(CreateInterceptDeploymentGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptDeploymentGroupAsync(LocationName parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId) + *

                                                                                                                                      • createInterceptDeploymentGroupAsync(String parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptDeploymentGroupOperationCallable() + *

                                                                                                                                      • createInterceptDeploymentGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateInterceptDeploymentGroup

                                                                                                                                      Updates a deployment group. See https://google.aip.dev/134.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptDeploymentGroupAsync(UpdateInterceptDeploymentGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptDeploymentGroupAsync(InterceptDeploymentGroup interceptDeploymentGroup, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptDeploymentGroupOperationCallable() + *

                                                                                                                                      • updateInterceptDeploymentGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteInterceptDeploymentGroup

                                                                                                                                      Deletes a deployment group. See https://google.aip.dev/135.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptDeploymentGroupAsync(DeleteInterceptDeploymentGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptDeploymentGroupAsync(InterceptDeploymentGroupName name) + *

                                                                                                                                      • deleteInterceptDeploymentGroupAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptDeploymentGroupOperationCallable() + *

                                                                                                                                      • deleteInterceptDeploymentGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListInterceptDeployments

                                                                                                                                      Lists deployments in a given project and location. See https://google.aip.dev/132.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptDeployments(ListInterceptDeploymentsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptDeployments(LocationName parent) + *

                                                                                                                                      • listInterceptDeployments(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listInterceptDeploymentsPagedCallable() + *

                                                                                                                                      • listInterceptDeploymentsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetInterceptDeployment

                                                                                                                                      Gets a specific deployment. See https://google.aip.dev/131.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptDeployment(GetInterceptDeploymentRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptDeployment(InterceptDeploymentName name) + *

                                                                                                                                      • getInterceptDeployment(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getInterceptDeploymentCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateInterceptDeployment

                                                                                                                                      Creates a deployment in a given project and location. See https://google.aip.dev/133.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptDeploymentAsync(CreateInterceptDeploymentRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptDeploymentAsync(LocationName parent, InterceptDeployment interceptDeployment, String interceptDeploymentId) + *

                                                                                                                                      • createInterceptDeploymentAsync(String parent, InterceptDeployment interceptDeployment, String interceptDeploymentId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createInterceptDeploymentOperationCallable() + *

                                                                                                                                      • createInterceptDeploymentCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateInterceptDeployment

                                                                                                                                      Updates a deployment. See https://google.aip.dev/134.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptDeploymentAsync(UpdateInterceptDeploymentRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptDeploymentAsync(InterceptDeployment interceptDeployment, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateInterceptDeploymentOperationCallable() + *

                                                                                                                                      • updateInterceptDeploymentCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteInterceptDeployment

                                                                                                                                      Deletes a deployment. See https://google.aip.dev/135.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptDeploymentAsync(DeleteInterceptDeploymentRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptDeploymentAsync(InterceptDeploymentName name) + *

                                                                                                                                      • deleteInterceptDeploymentAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteInterceptDeploymentOperationCallable() + *

                                                                                                                                      • deleteInterceptDeploymentCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListLocations

                                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocations(ListLocationsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocationsPagedCallable() + *

                                                                                                                                      • listLocationsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetLocation

                                                                                                                                      Gets information about a location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocation(GetLocationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocationCallable() + *

                                                                                                                                      + *

                                                                                                                                      SetIamPolicy

                                                                                                                                      Sets the access control policy on the specified resource. Replacesany existing policy. + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicy(SetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicyCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetIamPolicy

                                                                                                                                      Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicy(GetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicyCallable() + *

                                                                                                                                      + *

                                                                                                                                      TestIamPermissions

                                                                                                                                      Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissions(TestIamPermissionsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissionsCallable() + *

                                                                                                                                      + *
                                                                                                                                      + * + *

                                                                                                                                      See the individual methods for example code. + * + *

                                                                                                                                      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                                                                                                                      This class can be customized by passing in a custom instance of InterceptSettings to create(). + * For example: + * + *

                                                                                                                                      To customize credentials: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * InterceptSettings interceptSettings =
                                                                                                                                      + *     InterceptSettings.newBuilder()
                                                                                                                                      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                                                                                                                      + *         .build();
                                                                                                                                      + * InterceptClient interceptClient = InterceptClient.create(interceptSettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      To customize the endpoint: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * InterceptSettings interceptSettings =
                                                                                                                                      + *     InterceptSettings.newBuilder().setEndpoint(myEndpoint).build();
                                                                                                                                      + * InterceptClient interceptClient = InterceptClient.create(interceptSettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class InterceptClient implements BackgroundResource { + private final InterceptSettings settings; + private final InterceptStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of InterceptClient with default settings. */ + public static final InterceptClient create() throws IOException { + return create(InterceptSettings.newBuilder().build()); + } + + /** + * Constructs an instance of InterceptClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final InterceptClient create(InterceptSettings settings) throws IOException { + return new InterceptClient(settings); + } + + /** + * Constructs an instance of InterceptClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(InterceptSettings). + */ + public static final InterceptClient create(InterceptStub stub) { + return new InterceptClient(stub); + } + + /** + * Constructs an instance of InterceptClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected InterceptClient(InterceptSettings settings) throws IOException { + this.settings = settings; + this.stub = ((InterceptStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected InterceptClient(InterceptStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final InterceptSettings getSettings() { + return settings; + } + + public InterceptStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (InterceptEndpointGroup element :
                                                                                                                                      +   *       interceptClient.listInterceptEndpointGroups(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of endpoint groups. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups( + LocationName parent) { + ListInterceptEndpointGroupsRequest request = + ListInterceptEndpointGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInterceptEndpointGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (InterceptEndpointGroup element :
                                                                                                                                      +   *       interceptClient.listInterceptEndpointGroups(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of endpoint groups. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups(String parent) { + ListInterceptEndpointGroupsRequest request = + ListInterceptEndpointGroupsRequest.newBuilder().setParent(parent).build(); + return listInterceptEndpointGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptEndpointGroupsRequest request =
                                                                                                                                      +   *       ListInterceptEndpointGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (InterceptEndpointGroup element :
                                                                                                                                      +   *       interceptClient.listInterceptEndpointGroups(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups( + ListInterceptEndpointGroupsRequest request) { + return listInterceptEndpointGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptEndpointGroupsRequest request =
                                                                                                                                      +   *       ListInterceptEndpointGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.listInterceptEndpointGroupsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (InterceptEndpointGroup element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsPagedResponse> + listInterceptEndpointGroupsPagedCallable() { + return stub.listInterceptEndpointGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptEndpointGroupsRequest request =
                                                                                                                                      +   *       ListInterceptEndpointGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListInterceptEndpointGroupsResponse response =
                                                                                                                                      +   *         interceptClient.listInterceptEndpointGroupsCallable().call(request);
                                                                                                                                      +   *     for (InterceptEndpointGroup element : response.getInterceptEndpointGroupsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsResponse> + listInterceptEndpointGroupsCallable() { + return stub.listInterceptEndpointGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific endpoint group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptEndpointGroupName name =
                                                                                                                                      +   *       InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
                                                                                                                                      +   *   InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the endpoint group to retrieve. Format: + * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptEndpointGroup getInterceptEndpointGroup(InterceptEndpointGroupName name) { + GetInterceptEndpointGroupRequest request = + GetInterceptEndpointGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getInterceptEndpointGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific endpoint group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the endpoint group to retrieve. Format: + * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptEndpointGroup getInterceptEndpointGroup(String name) { + GetInterceptEndpointGroupRequest request = + GetInterceptEndpointGroupRequest.newBuilder().setName(name).build(); + return getInterceptEndpointGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific endpoint group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       GetInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptEndpointGroup getInterceptEndpointGroup( + GetInterceptEndpointGroupRequest request) { + return getInterceptEndpointGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific endpoint group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       GetInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.getInterceptEndpointGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptEndpointGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getInterceptEndpointGroupCallable() { + return stub.getInterceptEndpointGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
                                                                                                                                      +   *   String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189";
                                                                                                                                      +   *   InterceptEndpointGroup response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptEndpointGroupAsync(
                                                                                                                                      +   *               parent, interceptEndpointGroup, interceptEndpointGroupId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this endpoint group will be created. Format: + * projects/{project}/locations/{location} + * @param interceptEndpointGroup Required. The endpoint group to create. + * @param interceptEndpointGroupId Required. The ID to use for the endpoint group, which will + * become the final component of the endpoint group's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptEndpointGroupAsync( + LocationName parent, + InterceptEndpointGroup interceptEndpointGroup, + String interceptEndpointGroupId) { + CreateInterceptEndpointGroupRequest request = + CreateInterceptEndpointGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInterceptEndpointGroup(interceptEndpointGroup) + .setInterceptEndpointGroupId(interceptEndpointGroupId) + .build(); + return createInterceptEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
                                                                                                                                      +   *   String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189";
                                                                                                                                      +   *   InterceptEndpointGroup response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptEndpointGroupAsync(
                                                                                                                                      +   *               parent, interceptEndpointGroup, interceptEndpointGroupId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this endpoint group will be created. Format: + * projects/{project}/locations/{location} + * @param interceptEndpointGroup Required. The endpoint group to create. + * @param interceptEndpointGroupId Required. The ID to use for the endpoint group, which will + * become the final component of the endpoint group's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptEndpointGroupAsync( + String parent, + InterceptEndpointGroup interceptEndpointGroup, + String interceptEndpointGroupId) { + CreateInterceptEndpointGroupRequest request = + CreateInterceptEndpointGroupRequest.newBuilder() + .setParent(parent) + .setInterceptEndpointGroup(interceptEndpointGroup) + .setInterceptEndpointGroupId(interceptEndpointGroupId) + .build(); + return createInterceptEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       CreateInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
                                                                                                                                      +   *           .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptEndpointGroup response =
                                                                                                                                      +   *       interceptClient.createInterceptEndpointGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptEndpointGroupAsync(CreateInterceptEndpointGroupRequest request) { + return createInterceptEndpointGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       CreateInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
                                                                                                                                      +   *           .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.createInterceptEndpointGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptEndpointGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationCallable() { + return stub.createInterceptEndpointGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       CreateInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
                                                                                                                                      +   *           .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.createInterceptEndpointGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createInterceptEndpointGroupCallable() { + return stub.createInterceptEndpointGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an endpoint group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   InterceptEndpointGroup response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .updateInterceptEndpointGroupAsync(interceptEndpointGroup, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param interceptEndpointGroup Required. The endpoint group to update. + * @param updateMask Optional. The list of fields to update. Fields are specified relative to the + * endpoint group (e.g. `description`; *not* `intercept_endpoint_group.description`). + * See https://google.aip.dev/161 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateInterceptEndpointGroupAsync( + InterceptEndpointGroup interceptEndpointGroup, FieldMask updateMask) { + UpdateInterceptEndpointGroupRequest request = + UpdateInterceptEndpointGroupRequest.newBuilder() + .setInterceptEndpointGroup(interceptEndpointGroup) + .setUpdateMask(updateMask) + .build(); + return updateInterceptEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an endpoint group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       UpdateInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptEndpointGroup response =
                                                                                                                                      +   *       interceptClient.updateInterceptEndpointGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateInterceptEndpointGroupAsync(UpdateInterceptEndpointGroupRequest request) { + return updateInterceptEndpointGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an endpoint group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       UpdateInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.updateInterceptEndpointGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptEndpointGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationCallable() { + return stub.updateInterceptEndpointGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an endpoint group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       UpdateInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.updateInterceptEndpointGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateInterceptEndpointGroupCallable() { + return stub.updateInterceptEndpointGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptEndpointGroupName name =
                                                                                                                                      +   *       InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
                                                                                                                                      +   *   interceptClient.deleteInterceptEndpointGroupAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The endpoint group to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptEndpointGroupAsync( + InterceptEndpointGroupName name) { + DeleteInterceptEndpointGroupRequest request = + DeleteInterceptEndpointGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteInterceptEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   interceptClient.deleteInterceptEndpointGroupAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The endpoint group to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptEndpointGroupAsync( + String name) { + DeleteInterceptEndpointGroupRequest request = + DeleteInterceptEndpointGroupRequest.newBuilder().setName(name).build(); + return deleteInterceptEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       DeleteInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   interceptClient.deleteInterceptEndpointGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptEndpointGroupAsync( + DeleteInterceptEndpointGroupRequest request) { + return deleteInterceptEndpointGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       DeleteInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.deleteInterceptEndpointGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteInterceptEndpointGroupOperationCallable() { + return stub.deleteInterceptEndpointGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptEndpointGroupRequest request =
                                                                                                                                      +   *       DeleteInterceptEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.deleteInterceptEndpointGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteInterceptEndpointGroupCallable() { + return stub.deleteInterceptEndpointGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (InterceptEndpointGroupAssociation element :
                                                                                                                                      +   *       interceptClient.listInterceptEndpointGroupAssociations(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of associations. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptEndpointGroupAssociationsPagedResponse + listInterceptEndpointGroupAssociations(LocationName parent) { + ListInterceptEndpointGroupAssociationsRequest request = + ListInterceptEndpointGroupAssociationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInterceptEndpointGroupAssociations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (InterceptEndpointGroupAssociation element :
                                                                                                                                      +   *       interceptClient.listInterceptEndpointGroupAssociations(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of associations. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptEndpointGroupAssociationsPagedResponse + listInterceptEndpointGroupAssociations(String parent) { + ListInterceptEndpointGroupAssociationsRequest request = + ListInterceptEndpointGroupAssociationsRequest.newBuilder().setParent(parent).build(); + return listInterceptEndpointGroupAssociations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptEndpointGroupAssociationsRequest request =
                                                                                                                                      +   *       ListInterceptEndpointGroupAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (InterceptEndpointGroupAssociation element :
                                                                                                                                      +   *       interceptClient.listInterceptEndpointGroupAssociations(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptEndpointGroupAssociationsPagedResponse + listInterceptEndpointGroupAssociations( + ListInterceptEndpointGroupAssociationsRequest request) { + return listInterceptEndpointGroupAssociationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptEndpointGroupAssociationsRequest request =
                                                                                                                                      +   *       ListInterceptEndpointGroupAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.listInterceptEndpointGroupAssociationsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (InterceptEndpointGroupAssociation element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsPagedCallable() { + return stub.listInterceptEndpointGroupAssociationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptEndpointGroupAssociationsRequest request =
                                                                                                                                      +   *       ListInterceptEndpointGroupAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListInterceptEndpointGroupAssociationsResponse response =
                                                                                                                                      +   *         interceptClient.listInterceptEndpointGroupAssociationsCallable().call(request);
                                                                                                                                      +   *     for (InterceptEndpointGroupAssociation element :
                                                                                                                                      +   *         response.getInterceptEndpointGroupAssociationsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse> + listInterceptEndpointGroupAssociationsCallable() { + return stub.listInterceptEndpointGroupAssociationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific association. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptEndpointGroupAssociationName name =
                                                                                                                                      +   *       InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]");
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response =
                                                                                                                                      +   *       interceptClient.getInterceptEndpointGroupAssociation(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the association to retrieve. Format: + * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation( + InterceptEndpointGroupAssociationName name) { + GetInterceptEndpointGroupAssociationRequest request = + GetInterceptEndpointGroupAssociationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getInterceptEndpointGroupAssociation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific association. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response =
                                                                                                                                      +   *       interceptClient.getInterceptEndpointGroupAssociation(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the association to retrieve. Format: + * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation(String name) { + GetInterceptEndpointGroupAssociationRequest request = + GetInterceptEndpointGroupAssociationRequest.newBuilder().setName(name).build(); + return getInterceptEndpointGroupAssociation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific association. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       GetInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response =
                                                                                                                                      +   *       interceptClient.getInterceptEndpointGroupAssociation(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation( + GetInterceptEndpointGroupAssociationRequest request) { + return getInterceptEndpointGroupAssociationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific association. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       GetInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.getInterceptEndpointGroupAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationCallable() { + return stub.getInterceptEndpointGroupAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
                                                                                                                                      +   *       InterceptEndpointGroupAssociation.newBuilder().build();
                                                                                                                                      +   *   String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844";
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptEndpointGroupAssociationAsync(
                                                                                                                                      +   *               parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this association will be created. Format: + * projects/{project}/locations/{location} + * @param interceptEndpointGroupAssociation Required. The association to create. + * @param interceptEndpointGroupAssociationId Optional. The ID to use for the new association, + * which will become the final component of the endpoint group's resource name. If not + * provided, the server will generate a unique ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptEndpointGroupAssociationAsync( + LocationName parent, + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, + String interceptEndpointGroupAssociationId) { + CreateInterceptEndpointGroupAssociationRequest request = + CreateInterceptEndpointGroupAssociationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInterceptEndpointGroupAssociation(interceptEndpointGroupAssociation) + .setInterceptEndpointGroupAssociationId(interceptEndpointGroupAssociationId) + .build(); + return createInterceptEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
                                                                                                                                      +   *       InterceptEndpointGroupAssociation.newBuilder().build();
                                                                                                                                      +   *   String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844";
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptEndpointGroupAssociationAsync(
                                                                                                                                      +   *               parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this association will be created. Format: + * projects/{project}/locations/{location} + * @param interceptEndpointGroupAssociation Required. The association to create. + * @param interceptEndpointGroupAssociationId Optional. The ID to use for the new association, + * which will become the final component of the endpoint group's resource name. If not + * provided, the server will generate a unique ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptEndpointGroupAssociationAsync( + String parent, + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, + String interceptEndpointGroupAssociationId) { + CreateInterceptEndpointGroupAssociationRequest request = + CreateInterceptEndpointGroupAssociationRequest.newBuilder() + .setParent(parent) + .setInterceptEndpointGroupAssociation(interceptEndpointGroupAssociation) + .setInterceptEndpointGroupAssociationId(interceptEndpointGroupAssociationId) + .build(); + return createInterceptEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       CreateInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociationId(
                                                                                                                                      +   *               "interceptEndpointGroupAssociationId-1931364844")
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociation(
                                                                                                                                      +   *               InterceptEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response =
                                                                                                                                      +   *       interceptClient.createInterceptEndpointGroupAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptEndpointGroupAssociationAsync( + CreateInterceptEndpointGroupAssociationRequest request) { + return createInterceptEndpointGroupAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       CreateInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociationId(
                                                                                                                                      +   *               "interceptEndpointGroupAssociationId-1931364844")
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociation(
                                                                                                                                      +   *               InterceptEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptEndpointGroupAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationCallable() { + return stub.createInterceptEndpointGroupAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       CreateInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociationId(
                                                                                                                                      +   *               "interceptEndpointGroupAssociationId-1931364844")
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociation(
                                                                                                                                      +   *               InterceptEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.createInterceptEndpointGroupAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createInterceptEndpointGroupAssociationCallable() { + return stub.createInterceptEndpointGroupAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an association. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
                                                                                                                                      +   *       InterceptEndpointGroupAssociation.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .updateInterceptEndpointGroupAssociationAsync(
                                                                                                                                      +   *               interceptEndpointGroupAssociation, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param interceptEndpointGroupAssociation Required. The association to update. + * @param updateMask Optional. The list of fields to update. Fields are specified relative to the + * association (e.g. `description`; *not* + * `intercept_endpoint_group_association.description`). See https://google.aip.dev/161 for + * more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateInterceptEndpointGroupAssociationAsync( + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, + FieldMask updateMask) { + UpdateInterceptEndpointGroupAssociationRequest request = + UpdateInterceptEndpointGroupAssociationRequest.newBuilder() + .setInterceptEndpointGroupAssociation(interceptEndpointGroupAssociation) + .setUpdateMask(updateMask) + .build(); + return updateInterceptEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an association. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociation(
                                                                                                                                      +   *               InterceptEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response =
                                                                                                                                      +   *       interceptClient.updateInterceptEndpointGroupAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateInterceptEndpointGroupAssociationAsync( + UpdateInterceptEndpointGroupAssociationRequest request) { + return updateInterceptEndpointGroupAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an association. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociation(
                                                                                                                                      +   *               InterceptEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .updateInterceptEndpointGroupAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptEndpointGroupAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationCallable() { + return stub.updateInterceptEndpointGroupAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an association. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptEndpointGroupAssociation(
                                                                                                                                      +   *               InterceptEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.updateInterceptEndpointGroupAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateInterceptEndpointGroupAssociationCallable() { + return stub.updateInterceptEndpointGroupAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptEndpointGroupAssociationName name =
                                                                                                                                      +   *       InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]");
                                                                                                                                      +   *   interceptClient.deleteInterceptEndpointGroupAssociationAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The association to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociationName name) { + DeleteInterceptEndpointGroupAssociationRequest request = + DeleteInterceptEndpointGroupAssociationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteInterceptEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   interceptClient.deleteInterceptEndpointGroupAssociationAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The association to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteInterceptEndpointGroupAssociationAsync(String name) { + DeleteInterceptEndpointGroupAssociationRequest request = + DeleteInterceptEndpointGroupAssociationRequest.newBuilder().setName(name).build(); + return deleteInterceptEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   interceptClient.deleteInterceptEndpointGroupAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteInterceptEndpointGroupAssociationAsync( + DeleteInterceptEndpointGroupAssociationRequest request) { + return deleteInterceptEndpointGroupAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .deleteInterceptEndpointGroupAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + DeleteInterceptEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupAssociationOperationCallable() { + return stub.deleteInterceptEndpointGroupAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.deleteInterceptEndpointGroupAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteInterceptEndpointGroupAssociationCallable() { + return stub.deleteInterceptEndpointGroupAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (InterceptDeploymentGroup element :
                                                                                                                                      +   *       interceptClient.listInterceptDeploymentGroups(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of deployment groups. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups( + LocationName parent) { + ListInterceptDeploymentGroupsRequest request = + ListInterceptDeploymentGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInterceptDeploymentGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (InterceptDeploymentGroup element :
                                                                                                                                      +   *       interceptClient.listInterceptDeploymentGroups(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of deployment groups. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups( + String parent) { + ListInterceptDeploymentGroupsRequest request = + ListInterceptDeploymentGroupsRequest.newBuilder().setParent(parent).build(); + return listInterceptDeploymentGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptDeploymentGroupsRequest request =
                                                                                                                                      +   *       ListInterceptDeploymentGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (InterceptDeploymentGroup element :
                                                                                                                                      +   *       interceptClient.listInterceptDeploymentGroups(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups( + ListInterceptDeploymentGroupsRequest request) { + return listInterceptDeploymentGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptDeploymentGroupsRequest request =
                                                                                                                                      +   *       ListInterceptDeploymentGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.listInterceptDeploymentGroupsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (InterceptDeploymentGroup element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsPagedCallable() { + return stub.listInterceptDeploymentGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptDeploymentGroupsRequest request =
                                                                                                                                      +   *       ListInterceptDeploymentGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListInterceptDeploymentGroupsResponse response =
                                                                                                                                      +   *         interceptClient.listInterceptDeploymentGroupsCallable().call(request);
                                                                                                                                      +   *     for (InterceptDeploymentGroup element : response.getInterceptDeploymentGroupsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsResponse> + listInterceptDeploymentGroupsCallable() { + return stub.listInterceptDeploymentGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptDeploymentGroupName name =
                                                                                                                                      +   *       InterceptDeploymentGroupName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]");
                                                                                                                                      +   *   InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the deployment group to retrieve. Format: + * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptDeploymentGroup getInterceptDeploymentGroup( + InterceptDeploymentGroupName name) { + GetInterceptDeploymentGroupRequest request = + GetInterceptDeploymentGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getInterceptDeploymentGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the deployment group to retrieve. Format: + * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptDeploymentGroup getInterceptDeploymentGroup(String name) { + GetInterceptDeploymentGroupRequest request = + GetInterceptDeploymentGroupRequest.newBuilder().setName(name).build(); + return getInterceptDeploymentGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       GetInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptDeploymentGroup getInterceptDeploymentGroup( + GetInterceptDeploymentGroupRequest request) { + return getInterceptDeploymentGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       GetInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.getInterceptDeploymentGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptDeploymentGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getInterceptDeploymentGroupCallable() { + return stub.getInterceptDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   InterceptDeploymentGroup interceptDeploymentGroup =
                                                                                                                                      +   *       InterceptDeploymentGroup.newBuilder().build();
                                                                                                                                      +   *   String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995";
                                                                                                                                      +   *   InterceptDeploymentGroup response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptDeploymentGroupAsync(
                                                                                                                                      +   *               parent, interceptDeploymentGroup, interceptDeploymentGroupId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this deployment group will be created. + * Format: projects/{project}/locations/{location} + * @param interceptDeploymentGroup Required. The deployment group to create. + * @param interceptDeploymentGroupId Required. The ID to use for the new deployment group, which + * will become the final component of the deployment group's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptDeploymentGroupAsync( + LocationName parent, + InterceptDeploymentGroup interceptDeploymentGroup, + String interceptDeploymentGroupId) { + CreateInterceptDeploymentGroupRequest request = + CreateInterceptDeploymentGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInterceptDeploymentGroup(interceptDeploymentGroup) + .setInterceptDeploymentGroupId(interceptDeploymentGroupId) + .build(); + return createInterceptDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   InterceptDeploymentGroup interceptDeploymentGroup =
                                                                                                                                      +   *       InterceptDeploymentGroup.newBuilder().build();
                                                                                                                                      +   *   String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995";
                                                                                                                                      +   *   InterceptDeploymentGroup response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptDeploymentGroupAsync(
                                                                                                                                      +   *               parent, interceptDeploymentGroup, interceptDeploymentGroupId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this deployment group will be created. + * Format: projects/{project}/locations/{location} + * @param interceptDeploymentGroup Required. The deployment group to create. + * @param interceptDeploymentGroupId Required. The ID to use for the new deployment group, which + * will become the final component of the deployment group's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptDeploymentGroupAsync( + String parent, + InterceptDeploymentGroup interceptDeploymentGroup, + String interceptDeploymentGroupId) { + CreateInterceptDeploymentGroupRequest request = + CreateInterceptDeploymentGroupRequest.newBuilder() + .setParent(parent) + .setInterceptDeploymentGroup(interceptDeploymentGroup) + .setInterceptDeploymentGroupId(interceptDeploymentGroupId) + .build(); + return createInterceptDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       CreateInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
                                                                                                                                      +   *           .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptDeploymentGroup response =
                                                                                                                                      +   *       interceptClient.createInterceptDeploymentGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptDeploymentGroupAsync(CreateInterceptDeploymentGroupRequest request) { + return createInterceptDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       CreateInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
                                                                                                                                      +   *           .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.createInterceptDeploymentGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptDeploymentGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationCallable() { + return stub.createInterceptDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       CreateInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
                                                                                                                                      +   *           .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.createInterceptDeploymentGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createInterceptDeploymentGroupCallable() { + return stub.createInterceptDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptDeploymentGroup interceptDeploymentGroup =
                                                                                                                                      +   *       InterceptDeploymentGroup.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   InterceptDeploymentGroup response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .updateInterceptDeploymentGroupAsync(interceptDeploymentGroup, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param interceptDeploymentGroup Required. The deployment group to update. + * @param updateMask Optional. The list of fields to update. Fields are specified relative to the + * deployment group (e.g. `description`; *not* + * `intercept_deployment_group.description`). See https://google.aip.dev/161 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateInterceptDeploymentGroupAsync( + InterceptDeploymentGroup interceptDeploymentGroup, FieldMask updateMask) { + UpdateInterceptDeploymentGroupRequest request = + UpdateInterceptDeploymentGroupRequest.newBuilder() + .setInterceptDeploymentGroup(interceptDeploymentGroup) + .setUpdateMask(updateMask) + .build(); + return updateInterceptDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       UpdateInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptDeploymentGroup response =
                                                                                                                                      +   *       interceptClient.updateInterceptDeploymentGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateInterceptDeploymentGroupAsync(UpdateInterceptDeploymentGroupRequest request) { + return updateInterceptDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       UpdateInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.updateInterceptDeploymentGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptDeploymentGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationCallable() { + return stub.updateInterceptDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       UpdateInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.updateInterceptDeploymentGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateInterceptDeploymentGroupCallable() { + return stub.updateInterceptDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptDeploymentGroupName name =
                                                                                                                                      +   *       InterceptDeploymentGroupName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]");
                                                                                                                                      +   *   interceptClient.deleteInterceptDeploymentGroupAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The deployment group to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptDeploymentGroupAsync( + InterceptDeploymentGroupName name) { + DeleteInterceptDeploymentGroupRequest request = + DeleteInterceptDeploymentGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteInterceptDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   interceptClient.deleteInterceptDeploymentGroupAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The deployment group to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptDeploymentGroupAsync( + String name) { + DeleteInterceptDeploymentGroupRequest request = + DeleteInterceptDeploymentGroupRequest.newBuilder().setName(name).build(); + return deleteInterceptDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       DeleteInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   interceptClient.deleteInterceptDeploymentGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptDeploymentGroupAsync( + DeleteInterceptDeploymentGroupRequest request) { + return deleteInterceptDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       DeleteInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.deleteInterceptDeploymentGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteInterceptDeploymentGroupOperationCallable() { + return stub.deleteInterceptDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptDeploymentGroupRequest request =
                                                                                                                                      +   *       DeleteInterceptDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.deleteInterceptDeploymentGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteInterceptDeploymentGroupCallable() { + return stub.deleteInterceptDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (InterceptDeployment element :
                                                                                                                                      +   *       interceptClient.listInterceptDeployments(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of deployments. Example: + * `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more + * details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptDeploymentsPagedResponse listInterceptDeployments(LocationName parent) { + ListInterceptDeploymentsRequest request = + ListInterceptDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInterceptDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (InterceptDeployment element :
                                                                                                                                      +   *       interceptClient.listInterceptDeployments(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of deployments. Example: + * `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more + * details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptDeploymentsPagedResponse listInterceptDeployments(String parent) { + ListInterceptDeploymentsRequest request = + ListInterceptDeploymentsRequest.newBuilder().setParent(parent).build(); + return listInterceptDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptDeploymentsRequest request =
                                                                                                                                      +   *       ListInterceptDeploymentsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (InterceptDeployment element :
                                                                                                                                      +   *       interceptClient.listInterceptDeployments(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInterceptDeploymentsPagedResponse listInterceptDeployments( + ListInterceptDeploymentsRequest request) { + return listInterceptDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptDeploymentsRequest request =
                                                                                                                                      +   *       ListInterceptDeploymentsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.listInterceptDeploymentsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (InterceptDeployment element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listInterceptDeploymentsPagedCallable() { + return stub.listInterceptDeploymentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListInterceptDeploymentsRequest request =
                                                                                                                                      +   *       ListInterceptDeploymentsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListInterceptDeploymentsResponse response =
                                                                                                                                      +   *         interceptClient.listInterceptDeploymentsCallable().call(request);
                                                                                                                                      +   *     for (InterceptDeployment element : response.getInterceptDeploymentsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listInterceptDeploymentsCallable() { + return stub.listInterceptDeploymentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptDeploymentName name =
                                                                                                                                      +   *       InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]");
                                                                                                                                      +   *   InterceptDeployment response = interceptClient.getInterceptDeployment(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the deployment to retrieve. Format: + * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptDeployment getInterceptDeployment(InterceptDeploymentName name) { + GetInterceptDeploymentRequest request = + GetInterceptDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getInterceptDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   InterceptDeployment response = interceptClient.getInterceptDeployment(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the deployment to retrieve. Format: + * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptDeployment getInterceptDeployment(String name) { + GetInterceptDeploymentRequest request = + GetInterceptDeploymentRequest.newBuilder().setName(name).build(); + return getInterceptDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetInterceptDeploymentRequest request =
                                                                                                                                      +   *       GetInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptDeployment response = interceptClient.getInterceptDeployment(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InterceptDeployment getInterceptDeployment(GetInterceptDeploymentRequest request) { + return getInterceptDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetInterceptDeploymentRequest request =
                                                                                                                                      +   *       GetInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.getInterceptDeploymentCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptDeployment response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getInterceptDeploymentCallable() { + return stub.getInterceptDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
                                                                                                                                      +   *   String interceptDeploymentId = "interceptDeploymentId-240023390";
                                                                                                                                      +   *   InterceptDeployment response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this deployment will be created. Format: + * projects/{project}/locations/{location} + * @param interceptDeployment Required. The deployment to create. + * @param interceptDeploymentId Required. The ID to use for the new deployment, which will become + * the final component of the deployment's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptDeploymentAsync( + LocationName parent, + InterceptDeployment interceptDeployment, + String interceptDeploymentId) { + CreateInterceptDeploymentRequest request = + CreateInterceptDeploymentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInterceptDeployment(interceptDeployment) + .setInterceptDeploymentId(interceptDeploymentId) + .build(); + return createInterceptDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
                                                                                                                                      +   *   String interceptDeploymentId = "interceptDeploymentId-240023390";
                                                                                                                                      +   *   InterceptDeployment response =
                                                                                                                                      +   *       interceptClient
                                                                                                                                      +   *           .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this deployment will be created. Format: + * projects/{project}/locations/{location} + * @param interceptDeployment Required. The deployment to create. + * @param interceptDeploymentId Required. The ID to use for the new deployment, which will become + * the final component of the deployment's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptDeploymentAsync( + String parent, InterceptDeployment interceptDeployment, String interceptDeploymentId) { + CreateInterceptDeploymentRequest request = + CreateInterceptDeploymentRequest.newBuilder() + .setParent(parent) + .setInterceptDeployment(interceptDeployment) + .setInterceptDeploymentId(interceptDeploymentId) + .build(); + return createInterceptDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptDeploymentRequest request =
                                                                                                                                      +   *       CreateInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptDeploymentId("interceptDeploymentId-240023390")
                                                                                                                                      +   *           .setInterceptDeployment(InterceptDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptDeployment response = interceptClient.createInterceptDeploymentAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createInterceptDeploymentAsync(CreateInterceptDeploymentRequest request) { + return createInterceptDeploymentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptDeploymentRequest request =
                                                                                                                                      +   *       CreateInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptDeploymentId("interceptDeploymentId-240023390")
                                                                                                                                      +   *           .setInterceptDeployment(InterceptDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.createInterceptDeploymentOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptDeployment response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + createInterceptDeploymentOperationCallable() { + return stub.createInterceptDeploymentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   CreateInterceptDeploymentRequest request =
                                                                                                                                      +   *       CreateInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setInterceptDeploymentId("interceptDeploymentId-240023390")
                                                                                                                                      +   *           .setInterceptDeployment(InterceptDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.createInterceptDeploymentCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createInterceptDeploymentCallable() { + return stub.createInterceptDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   InterceptDeployment response =
                                                                                                                                      +   *       interceptClient.updateInterceptDeploymentAsync(interceptDeployment, updateMask).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param interceptDeployment Required. The deployment to update. + * @param updateMask Optional. The list of fields to update. Fields are specified relative to the + * deployment (e.g. `description`; *not* `intercept_deployment.description`). See + * https://google.aip.dev/161 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateInterceptDeploymentAsync( + InterceptDeployment interceptDeployment, FieldMask updateMask) { + UpdateInterceptDeploymentRequest request = + UpdateInterceptDeploymentRequest.newBuilder() + .setInterceptDeployment(interceptDeployment) + .setUpdateMask(updateMask) + .build(); + return updateInterceptDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptDeploymentRequest request =
                                                                                                                                      +   *       UpdateInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptDeployment(InterceptDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   InterceptDeployment response = interceptClient.updateInterceptDeploymentAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateInterceptDeploymentAsync(UpdateInterceptDeploymentRequest request) { + return updateInterceptDeploymentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptDeploymentRequest request =
                                                                                                                                      +   *       UpdateInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptDeployment(InterceptDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.updateInterceptDeploymentOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   InterceptDeployment response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + updateInterceptDeploymentOperationCallable() { + return stub.updateInterceptDeploymentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   UpdateInterceptDeploymentRequest request =
                                                                                                                                      +   *       UpdateInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setInterceptDeployment(InterceptDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.updateInterceptDeploymentCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateInterceptDeploymentCallable() { + return stub.updateInterceptDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   InterceptDeploymentName name =
                                                                                                                                      +   *       InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]");
                                                                                                                                      +   *   interceptClient.deleteInterceptDeploymentAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptDeploymentAsync( + InterceptDeploymentName name) { + DeleteInterceptDeploymentRequest request = + DeleteInterceptDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteInterceptDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   interceptClient.deleteInterceptDeploymentAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptDeploymentAsync( + String name) { + DeleteInterceptDeploymentRequest request = + DeleteInterceptDeploymentRequest.newBuilder().setName(name).build(); + return deleteInterceptDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptDeploymentRequest request =
                                                                                                                                      +   *       DeleteInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   interceptClient.deleteInterceptDeploymentAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteInterceptDeploymentAsync( + DeleteInterceptDeploymentRequest request) { + return deleteInterceptDeploymentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptDeploymentRequest request =
                                                                                                                                      +   *       DeleteInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       interceptClient.deleteInterceptDeploymentOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteInterceptDeploymentOperationCallable() { + return stub.deleteInterceptDeploymentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   DeleteInterceptDeploymentRequest request =
                                                                                                                                      +   *       DeleteInterceptDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.deleteInterceptDeploymentCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteInterceptDeploymentCallable() { + return stub.deleteInterceptDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (Location element : interceptClient.listLocations(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future = interceptClient.listLocationsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (Location element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListLocationsResponse response = interceptClient.listLocationsCallable().call(request);
                                                                                                                                      +   *     for (Location element : response.getLocationsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                                                                      +   *   Location response = interceptClient.getLocation(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                                                                      +   *   ApiFuture future = interceptClient.getLocationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Location response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   SetIamPolicyRequest request =
                                                                                                                                      +   *       SetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPolicy(Policy.newBuilder().build())
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   Policy response = interceptClient.setIamPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   SetIamPolicyRequest request =
                                                                                                                                      +   *       SetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPolicy(Policy.newBuilder().build())
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future = interceptClient.setIamPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Policy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetIamPolicyRequest request =
                                                                                                                                      +   *       GetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   Policy response = interceptClient.getIamPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   GetIamPolicyRequest request =
                                                                                                                                      +   *       GetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future = interceptClient.getIamPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Policy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   TestIamPermissionsRequest request =
                                                                                                                                      +   *       TestIamPermissionsRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .addAllPermissions(new ArrayList())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   TestIamPermissionsResponse response = interceptClient.testIamPermissions(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                                                                      +   *   TestIamPermissionsRequest request =
                                                                                                                                      +   *       TestIamPermissionsRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .addAllPermissions(new ArrayList())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       interceptClient.testIamPermissionsCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   TestIamPermissionsResponse response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListInterceptEndpointGroupsPagedResponse + extends AbstractPagedListResponse< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup, + ListInterceptEndpointGroupsPage, + ListInterceptEndpointGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListInterceptEndpointGroupsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListInterceptEndpointGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListInterceptEndpointGroupsPagedResponse(ListInterceptEndpointGroupsPage page) { + super(page, ListInterceptEndpointGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListInterceptEndpointGroupsPage + extends AbstractPage< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup, + ListInterceptEndpointGroupsPage> { + + private ListInterceptEndpointGroupsPage( + PageContext< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup> + context, + ListInterceptEndpointGroupsResponse response) { + super(context, response); + } + + private static ListInterceptEndpointGroupsPage createEmptyPage() { + return new ListInterceptEndpointGroupsPage(null, null); + } + + @Override + protected ListInterceptEndpointGroupsPage createPage( + PageContext< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup> + context, + ListInterceptEndpointGroupsResponse response) { + return new ListInterceptEndpointGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListInterceptEndpointGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup, + ListInterceptEndpointGroupsPage, + ListInterceptEndpointGroupsFixedSizeCollection> { + + private ListInterceptEndpointGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListInterceptEndpointGroupsFixedSizeCollection createEmptyCollection() { + return new ListInterceptEndpointGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListInterceptEndpointGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListInterceptEndpointGroupsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListInterceptEndpointGroupAssociationsPagedResponse + extends AbstractPagedListResponse< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation, + ListInterceptEndpointGroupAssociationsPage, + ListInterceptEndpointGroupAssociationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListInterceptEndpointGroupAssociationsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListInterceptEndpointGroupAssociationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListInterceptEndpointGroupAssociationsPagedResponse( + ListInterceptEndpointGroupAssociationsPage page) { + super( + page, ListInterceptEndpointGroupAssociationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListInterceptEndpointGroupAssociationsPage + extends AbstractPage< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation, + ListInterceptEndpointGroupAssociationsPage> { + + private ListInterceptEndpointGroupAssociationsPage( + PageContext< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation> + context, + ListInterceptEndpointGroupAssociationsResponse response) { + super(context, response); + } + + private static ListInterceptEndpointGroupAssociationsPage createEmptyPage() { + return new ListInterceptEndpointGroupAssociationsPage(null, null); + } + + @Override + protected ListInterceptEndpointGroupAssociationsPage createPage( + PageContext< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation> + context, + ListInterceptEndpointGroupAssociationsResponse response) { + return new ListInterceptEndpointGroupAssociationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListInterceptEndpointGroupAssociationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation, + ListInterceptEndpointGroupAssociationsPage, + ListInterceptEndpointGroupAssociationsFixedSizeCollection> { + + private ListInterceptEndpointGroupAssociationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListInterceptEndpointGroupAssociationsFixedSizeCollection + createEmptyCollection() { + return new ListInterceptEndpointGroupAssociationsFixedSizeCollection(null, 0); + } + + @Override + protected ListInterceptEndpointGroupAssociationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListInterceptEndpointGroupAssociationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListInterceptDeploymentGroupsPagedResponse + extends AbstractPagedListResponse< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup, + ListInterceptDeploymentGroupsPage, + ListInterceptDeploymentGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListInterceptDeploymentGroupsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListInterceptDeploymentGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListInterceptDeploymentGroupsPagedResponse(ListInterceptDeploymentGroupsPage page) { + super(page, ListInterceptDeploymentGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListInterceptDeploymentGroupsPage + extends AbstractPage< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup, + ListInterceptDeploymentGroupsPage> { + + private ListInterceptDeploymentGroupsPage( + PageContext< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup> + context, + ListInterceptDeploymentGroupsResponse response) { + super(context, response); + } + + private static ListInterceptDeploymentGroupsPage createEmptyPage() { + return new ListInterceptDeploymentGroupsPage(null, null); + } + + @Override + protected ListInterceptDeploymentGroupsPage createPage( + PageContext< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup> + context, + ListInterceptDeploymentGroupsResponse response) { + return new ListInterceptDeploymentGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListInterceptDeploymentGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup, + ListInterceptDeploymentGroupsPage, + ListInterceptDeploymentGroupsFixedSizeCollection> { + + private ListInterceptDeploymentGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListInterceptDeploymentGroupsFixedSizeCollection createEmptyCollection() { + return new ListInterceptDeploymentGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListInterceptDeploymentGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListInterceptDeploymentGroupsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListInterceptDeploymentsPagedResponse + extends AbstractPagedListResponse< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment, + ListInterceptDeploymentsPage, + ListInterceptDeploymentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListInterceptDeploymentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListInterceptDeploymentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListInterceptDeploymentsPagedResponse(ListInterceptDeploymentsPage page) { + super(page, ListInterceptDeploymentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListInterceptDeploymentsPage + extends AbstractPage< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment, + ListInterceptDeploymentsPage> { + + private ListInterceptDeploymentsPage( + PageContext< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment> + context, + ListInterceptDeploymentsResponse response) { + super(context, response); + } + + private static ListInterceptDeploymentsPage createEmptyPage() { + return new ListInterceptDeploymentsPage(null, null); + } + + @Override + protected ListInterceptDeploymentsPage createPage( + PageContext< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment> + context, + ListInterceptDeploymentsResponse response) { + return new ListInterceptDeploymentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListInterceptDeploymentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment, + ListInterceptDeploymentsPage, + ListInterceptDeploymentsFixedSizeCollection> { + + private ListInterceptDeploymentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListInterceptDeploymentsFixedSizeCollection createEmptyCollection() { + return new ListInterceptDeploymentsFixedSizeCollection(null, 0); + } + + @Override + protected ListInterceptDeploymentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListInterceptDeploymentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptSettings.java new file mode 100644 index 000000000000..8a06d89ea8a7 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptSettings.java @@ -0,0 +1,776 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.InterceptStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link InterceptClient}. + * + *

                                                                                                                                      The default instance has everything set to sensible defaults: + * + *

                                                                                                                                        + *
                                                                                                                                      • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                                                                      • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                                                                      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                                                                      + * + *

                                                                                                                                      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                                                                      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getInterceptEndpointGroup: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * InterceptSettings.Builder interceptSettingsBuilder = InterceptSettings.newBuilder();
                                                                                                                                      + * interceptSettingsBuilder
                                                                                                                                      + *     .getInterceptEndpointGroupSettings()
                                                                                                                                      + *     .setRetrySettings(
                                                                                                                                      + *         interceptSettingsBuilder
                                                                                                                                      + *             .getInterceptEndpointGroupSettings()
                                                                                                                                      + *             .getRetrySettings()
                                                                                                                                      + *             .toBuilder()
                                                                                                                                      + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                                                                      + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                                                                      + *             .setMaxAttempts(5)
                                                                                                                                      + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                                                                      + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                                                                      + *             .setRetryDelayMultiplier(1.3)
                                                                                                                                      + *             .setRpcTimeoutMultiplier(1.5)
                                                                                                                                      + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                                                                      + *             .build());
                                                                                                                                      + * InterceptSettings interceptSettings = interceptSettingsBuilder.build();
                                                                                                                                      + * }
                                                                                                                                      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

                                                                                                                                      To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createInterceptEndpointGroup: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * InterceptSettings.Builder interceptSettingsBuilder = InterceptSettings.newBuilder();
                                                                                                                                      + * TimedRetryAlgorithm timedRetryAlgorithm =
                                                                                                                                      + *     OperationalTimedPollAlgorithm.create(
                                                                                                                                      + *         RetrySettings.newBuilder()
                                                                                                                                      + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                                                                                                                      + *             .setRetryDelayMultiplier(1.5)
                                                                                                                                      + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                                                                                                                      + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                                                                                                                      + *             .build());
                                                                                                                                      + * interceptSettingsBuilder
                                                                                                                                      + *     .createClusterOperationSettings()
                                                                                                                                      + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                                                                                                                      + *     .build();
                                                                                                                                      + * }
                                                                                                                                      + */ +@Generated("by gapic-generator-java") +public class InterceptSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listInterceptEndpointGroups. */ + public PagedCallSettings< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + ListInterceptEndpointGroupsPagedResponse> + listInterceptEndpointGroupsSettings() { + return ((InterceptStubSettings) getStubSettings()).listInterceptEndpointGroupsSettings(); + } + + /** Returns the object with the settings used for calls to getInterceptEndpointGroup. */ + public UnaryCallSettings + getInterceptEndpointGroupSettings() { + return ((InterceptStubSettings) getStubSettings()).getInterceptEndpointGroupSettings(); + } + + /** Returns the object with the settings used for calls to createInterceptEndpointGroup. */ + public UnaryCallSettings + createInterceptEndpointGroupSettings() { + return ((InterceptStubSettings) getStubSettings()).createInterceptEndpointGroupSettings(); + } + + /** Returns the object with the settings used for calls to createInterceptEndpointGroup. */ + public OperationCallSettings< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .createInterceptEndpointGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateInterceptEndpointGroup. */ + public UnaryCallSettings + updateInterceptEndpointGroupSettings() { + return ((InterceptStubSettings) getStubSettings()).updateInterceptEndpointGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateInterceptEndpointGroup. */ + public OperationCallSettings< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .updateInterceptEndpointGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteInterceptEndpointGroup. */ + public UnaryCallSettings + deleteInterceptEndpointGroupSettings() { + return ((InterceptStubSettings) getStubSettings()).deleteInterceptEndpointGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteInterceptEndpointGroup. */ + public OperationCallSettings + deleteInterceptEndpointGroupOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .deleteInterceptEndpointGroupOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to listInterceptEndpointGroupAssociations. + */ + public PagedCallSettings< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsSettings() { + return ((InterceptStubSettings) getStubSettings()) + .listInterceptEndpointGroupAssociationsSettings(); + } + + /** + * Returns the object with the settings used for calls to getInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .getInterceptEndpointGroupAssociationSettings(); + } + + /** + * Returns the object with the settings used for calls to createInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings + createInterceptEndpointGroupAssociationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .createInterceptEndpointGroupAssociationSettings(); + } + + /** + * Returns the object with the settings used for calls to createInterceptEndpointGroupAssociation. + */ + public OperationCallSettings< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .createInterceptEndpointGroupAssociationOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to updateInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings + updateInterceptEndpointGroupAssociationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .updateInterceptEndpointGroupAssociationSettings(); + } + + /** + * Returns the object with the settings used for calls to updateInterceptEndpointGroupAssociation. + */ + public OperationCallSettings< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .updateInterceptEndpointGroupAssociationOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to deleteInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings + deleteInterceptEndpointGroupAssociationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .deleteInterceptEndpointGroupAssociationSettings(); + } + + /** + * Returns the object with the settings used for calls to deleteInterceptEndpointGroupAssociation. + */ + public OperationCallSettings< + DeleteInterceptEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupAssociationOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .deleteInterceptEndpointGroupAssociationOperationSettings(); + } + + /** Returns the object with the settings used for calls to listInterceptDeploymentGroups. */ + public PagedCallSettings< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsSettings() { + return ((InterceptStubSettings) getStubSettings()).listInterceptDeploymentGroupsSettings(); + } + + /** Returns the object with the settings used for calls to getInterceptDeploymentGroup. */ + public UnaryCallSettings + getInterceptDeploymentGroupSettings() { + return ((InterceptStubSettings) getStubSettings()).getInterceptDeploymentGroupSettings(); + } + + /** Returns the object with the settings used for calls to createInterceptDeploymentGroup. */ + public UnaryCallSettings + createInterceptDeploymentGroupSettings() { + return ((InterceptStubSettings) getStubSettings()).createInterceptDeploymentGroupSettings(); + } + + /** Returns the object with the settings used for calls to createInterceptDeploymentGroup. */ + public OperationCallSettings< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .createInterceptDeploymentGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateInterceptDeploymentGroup. */ + public UnaryCallSettings + updateInterceptDeploymentGroupSettings() { + return ((InterceptStubSettings) getStubSettings()).updateInterceptDeploymentGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateInterceptDeploymentGroup. */ + public OperationCallSettings< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .updateInterceptDeploymentGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteInterceptDeploymentGroup. */ + public UnaryCallSettings + deleteInterceptDeploymentGroupSettings() { + return ((InterceptStubSettings) getStubSettings()).deleteInterceptDeploymentGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteInterceptDeploymentGroup. */ + public OperationCallSettings + deleteInterceptDeploymentGroupOperationSettings() { + return ((InterceptStubSettings) getStubSettings()) + .deleteInterceptDeploymentGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to listInterceptDeployments. */ + public PagedCallSettings< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + ListInterceptDeploymentsPagedResponse> + listInterceptDeploymentsSettings() { + return ((InterceptStubSettings) getStubSettings()).listInterceptDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to getInterceptDeployment. */ + public UnaryCallSettings + getInterceptDeploymentSettings() { + return ((InterceptStubSettings) getStubSettings()).getInterceptDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to createInterceptDeployment. */ + public UnaryCallSettings + createInterceptDeploymentSettings() { + return ((InterceptStubSettings) getStubSettings()).createInterceptDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to createInterceptDeployment. */ + public OperationCallSettings< + CreateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + createInterceptDeploymentOperationSettings() { + return ((InterceptStubSettings) getStubSettings()).createInterceptDeploymentOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateInterceptDeployment. */ + public UnaryCallSettings + updateInterceptDeploymentSettings() { + return ((InterceptStubSettings) getStubSettings()).updateInterceptDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to updateInterceptDeployment. */ + public OperationCallSettings< + UpdateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + updateInterceptDeploymentOperationSettings() { + return ((InterceptStubSettings) getStubSettings()).updateInterceptDeploymentOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteInterceptDeployment. */ + public UnaryCallSettings + deleteInterceptDeploymentSettings() { + return ((InterceptStubSettings) getStubSettings()).deleteInterceptDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to deleteInterceptDeployment. */ + public OperationCallSettings + deleteInterceptDeploymentOperationSettings() { + return ((InterceptStubSettings) getStubSettings()).deleteInterceptDeploymentOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((InterceptStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((InterceptStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((InterceptStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((InterceptStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((InterceptStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final InterceptSettings create(InterceptStubSettings stub) throws IOException { + return new InterceptSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InterceptStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return InterceptStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return InterceptStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return InterceptStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InterceptStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return InterceptStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return InterceptStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected InterceptSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for InterceptSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(InterceptStubSettings.newBuilder(clientContext)); + } + + protected Builder(InterceptSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(InterceptStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(InterceptStubSettings.newBuilder()); + } + + public InterceptStubSettings.Builder getStubSettingsBuilder() { + return ((InterceptStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                                                                      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listInterceptEndpointGroups. */ + public PagedCallSettings.Builder< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + ListInterceptEndpointGroupsPagedResponse> + listInterceptEndpointGroupsSettings() { + return getStubSettingsBuilder().listInterceptEndpointGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to getInterceptEndpointGroup. */ + public UnaryCallSettings.Builder + getInterceptEndpointGroupSettings() { + return getStubSettingsBuilder().getInterceptEndpointGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createInterceptEndpointGroup. */ + public UnaryCallSettings.Builder + createInterceptEndpointGroupSettings() { + return getStubSettingsBuilder().createInterceptEndpointGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createInterceptEndpointGroup. */ + public OperationCallSettings.Builder< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationSettings() { + return getStubSettingsBuilder().createInterceptEndpointGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateInterceptEndpointGroup. */ + public UnaryCallSettings.Builder + updateInterceptEndpointGroupSettings() { + return getStubSettingsBuilder().updateInterceptEndpointGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateInterceptEndpointGroup. */ + public OperationCallSettings.Builder< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationSettings() { + return getStubSettingsBuilder().updateInterceptEndpointGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteInterceptEndpointGroup. */ + public UnaryCallSettings.Builder + deleteInterceptEndpointGroupSettings() { + return getStubSettingsBuilder().deleteInterceptEndpointGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteInterceptEndpointGroup. */ + public OperationCallSettings.Builder< + DeleteInterceptEndpointGroupRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupOperationSettings() { + return getStubSettingsBuilder().deleteInterceptEndpointGroupOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * listInterceptEndpointGroupAssociations. + */ + public PagedCallSettings.Builder< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsSettings() { + return getStubSettingsBuilder().listInterceptEndpointGroupAssociationsSettings(); + } + + /** + * Returns the builder for the settings used for calls to getInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationSettings() { + return getStubSettingsBuilder().getInterceptEndpointGroupAssociationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * createInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + createInterceptEndpointGroupAssociationSettings() { + return getStubSettingsBuilder().createInterceptEndpointGroupAssociationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * createInterceptEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationSettings() { + return getStubSettingsBuilder().createInterceptEndpointGroupAssociationOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * updateInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + updateInterceptEndpointGroupAssociationSettings() { + return getStubSettingsBuilder().updateInterceptEndpointGroupAssociationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * updateInterceptEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationSettings() { + return getStubSettingsBuilder().updateInterceptEndpointGroupAssociationOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * deleteInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + deleteInterceptEndpointGroupAssociationSettings() { + return getStubSettingsBuilder().deleteInterceptEndpointGroupAssociationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * deleteInterceptEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + DeleteInterceptEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupAssociationOperationSettings() { + return getStubSettingsBuilder().deleteInterceptEndpointGroupAssociationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listInterceptDeploymentGroups. */ + public PagedCallSettings.Builder< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsSettings() { + return getStubSettingsBuilder().listInterceptDeploymentGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to getInterceptDeploymentGroup. */ + public UnaryCallSettings.Builder + getInterceptDeploymentGroupSettings() { + return getStubSettingsBuilder().getInterceptDeploymentGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createInterceptDeploymentGroup. */ + public UnaryCallSettings.Builder + createInterceptDeploymentGroupSettings() { + return getStubSettingsBuilder().createInterceptDeploymentGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createInterceptDeploymentGroup. */ + public OperationCallSettings.Builder< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationSettings() { + return getStubSettingsBuilder().createInterceptDeploymentGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateInterceptDeploymentGroup. */ + public UnaryCallSettings.Builder + updateInterceptDeploymentGroupSettings() { + return getStubSettingsBuilder().updateInterceptDeploymentGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateInterceptDeploymentGroup. */ + public OperationCallSettings.Builder< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationSettings() { + return getStubSettingsBuilder().updateInterceptDeploymentGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteInterceptDeploymentGroup. */ + public UnaryCallSettings.Builder + deleteInterceptDeploymentGroupSettings() { + return getStubSettingsBuilder().deleteInterceptDeploymentGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteInterceptDeploymentGroup. */ + public OperationCallSettings.Builder< + DeleteInterceptDeploymentGroupRequest, Empty, OperationMetadata> + deleteInterceptDeploymentGroupOperationSettings() { + return getStubSettingsBuilder().deleteInterceptDeploymentGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listInterceptDeployments. */ + public PagedCallSettings.Builder< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + ListInterceptDeploymentsPagedResponse> + listInterceptDeploymentsSettings() { + return getStubSettingsBuilder().listInterceptDeploymentsSettings(); + } + + /** Returns the builder for the settings used for calls to getInterceptDeployment. */ + public UnaryCallSettings.Builder + getInterceptDeploymentSettings() { + return getStubSettingsBuilder().getInterceptDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to createInterceptDeployment. */ + public UnaryCallSettings.Builder + createInterceptDeploymentSettings() { + return getStubSettingsBuilder().createInterceptDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to createInterceptDeployment. */ + public OperationCallSettings.Builder< + CreateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + createInterceptDeploymentOperationSettings() { + return getStubSettingsBuilder().createInterceptDeploymentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateInterceptDeployment. */ + public UnaryCallSettings.Builder + updateInterceptDeploymentSettings() { + return getStubSettingsBuilder().updateInterceptDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to updateInterceptDeployment. */ + public OperationCallSettings.Builder< + UpdateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + updateInterceptDeploymentOperationSettings() { + return getStubSettingsBuilder().updateInterceptDeploymentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteInterceptDeployment. */ + public UnaryCallSettings.Builder + deleteInterceptDeploymentSettings() { + return getStubSettingsBuilder().deleteInterceptDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteInterceptDeployment. */ + public OperationCallSettings.Builder + deleteInterceptDeploymentOperationSettings() { + return getStubSettingsBuilder().deleteInterceptDeploymentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public InterceptSettings build() throws IOException { + return new InterceptSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringClient.java new file mode 100644 index 000000000000..30258c19aee2 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringClient.java @@ -0,0 +1,4731 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.MirroringStub; +import com.google.cloud.networksecurity.v1.stub.MirroringStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: PM2 is the "out-of-band" flavor of the Network Security Integrations + * product. + * + *

                                                                                                                                      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      + *   MirroringEndpointGroupName name =
                                                                                                                                      + *       MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
                                                                                                                                      + *   MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
                                                                                                                                      + * }
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Note: close() needs to be called on the MirroringClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                                                                                                                      Methods
                                                                                                                                      MethodDescriptionMethod Variants

                                                                                                                                      ListMirroringEndpointGroups

                                                                                                                                      Lists endpoint groups in a given project and location. See https://google.aip.dev/132.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringEndpointGroups(ListMirroringEndpointGroupsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringEndpointGroups(LocationName parent) + *

                                                                                                                                      • listMirroringEndpointGroups(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringEndpointGroupsPagedCallable() + *

                                                                                                                                      • listMirroringEndpointGroupsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetMirroringEndpointGroup

                                                                                                                                      Gets a specific endpoint group. See https://google.aip.dev/131.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringEndpointGroup(GetMirroringEndpointGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringEndpointGroup(MirroringEndpointGroupName name) + *

                                                                                                                                      • getMirroringEndpointGroup(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringEndpointGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateMirroringEndpointGroup

                                                                                                                                      Creates an endpoint group in a given project and location. See https://google.aip.dev/133.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringEndpointGroupAsync(CreateMirroringEndpointGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringEndpointGroupAsync(LocationName parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId) + *

                                                                                                                                      • createMirroringEndpointGroupAsync(String parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringEndpointGroupOperationCallable() + *

                                                                                                                                      • createMirroringEndpointGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateMirroringEndpointGroup

                                                                                                                                      Updates an endpoint group. See https://google.aip.dev/134.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringEndpointGroupAsync(UpdateMirroringEndpointGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringEndpointGroupAsync(MirroringEndpointGroup mirroringEndpointGroup, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringEndpointGroupOperationCallable() + *

                                                                                                                                      • updateMirroringEndpointGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteMirroringEndpointGroup

                                                                                                                                      Deletes an endpoint group. See https://google.aip.dev/135.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringEndpointGroupAsync(DeleteMirroringEndpointGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringEndpointGroupAsync(MirroringEndpointGroupName name) + *

                                                                                                                                      • deleteMirroringEndpointGroupAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringEndpointGroupOperationCallable() + *

                                                                                                                                      • deleteMirroringEndpointGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListMirroringEndpointGroupAssociations

                                                                                                                                      Lists associations in a given project and location. See https://google.aip.dev/132.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringEndpointGroupAssociations(ListMirroringEndpointGroupAssociationsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringEndpointGroupAssociations(LocationName parent) + *

                                                                                                                                      • listMirroringEndpointGroupAssociations(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringEndpointGroupAssociationsPagedCallable() + *

                                                                                                                                      • listMirroringEndpointGroupAssociationsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetMirroringEndpointGroupAssociation

                                                                                                                                      Gets a specific association. See https://google.aip.dev/131.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringEndpointGroupAssociation(GetMirroringEndpointGroupAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringEndpointGroupAssociation(MirroringEndpointGroupAssociationName name) + *

                                                                                                                                      • getMirroringEndpointGroupAssociation(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringEndpointGroupAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateMirroringEndpointGroupAssociation

                                                                                                                                      Creates an association in a given project and location. See https://google.aip.dev/133.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringEndpointGroupAssociationAsync(CreateMirroringEndpointGroupAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringEndpointGroupAssociationAsync(LocationName parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId) + *

                                                                                                                                      • createMirroringEndpointGroupAssociationAsync(String parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringEndpointGroupAssociationOperationCallable() + *

                                                                                                                                      • createMirroringEndpointGroupAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateMirroringEndpointGroupAssociation

                                                                                                                                      Updates an association. See https://google.aip.dev/134.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringEndpointGroupAssociationAsync(UpdateMirroringEndpointGroupAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringEndpointGroupAssociationOperationCallable() + *

                                                                                                                                      • updateMirroringEndpointGroupAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteMirroringEndpointGroupAssociation

                                                                                                                                      Deletes an association. See https://google.aip.dev/135.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringEndpointGroupAssociationAsync(DeleteMirroringEndpointGroupAssociationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociationName name) + *

                                                                                                                                      • deleteMirroringEndpointGroupAssociationAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringEndpointGroupAssociationOperationCallable() + *

                                                                                                                                      • deleteMirroringEndpointGroupAssociationCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListMirroringDeploymentGroups

                                                                                                                                      Lists deployment groups in a given project and location. See https://google.aip.dev/132.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringDeploymentGroups(ListMirroringDeploymentGroupsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringDeploymentGroups(LocationName parent) + *

                                                                                                                                      • listMirroringDeploymentGroups(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringDeploymentGroupsPagedCallable() + *

                                                                                                                                      • listMirroringDeploymentGroupsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetMirroringDeploymentGroup

                                                                                                                                      Gets a specific deployment group. See https://google.aip.dev/131.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringDeploymentGroup(GetMirroringDeploymentGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringDeploymentGroup(MirroringDeploymentGroupName name) + *

                                                                                                                                      • getMirroringDeploymentGroup(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringDeploymentGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateMirroringDeploymentGroup

                                                                                                                                      Creates a deployment group in a given project and location. See https://google.aip.dev/133.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringDeploymentGroupAsync(CreateMirroringDeploymentGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringDeploymentGroupAsync(LocationName parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId) + *

                                                                                                                                      • createMirroringDeploymentGroupAsync(String parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringDeploymentGroupOperationCallable() + *

                                                                                                                                      • createMirroringDeploymentGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateMirroringDeploymentGroup

                                                                                                                                      Updates a deployment group. See https://google.aip.dev/134.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringDeploymentGroupAsync(UpdateMirroringDeploymentGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringDeploymentGroupAsync(MirroringDeploymentGroup mirroringDeploymentGroup, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringDeploymentGroupOperationCallable() + *

                                                                                                                                      • updateMirroringDeploymentGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteMirroringDeploymentGroup

                                                                                                                                      Deletes a deployment group. See https://google.aip.dev/135.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringDeploymentGroupAsync(DeleteMirroringDeploymentGroupRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringDeploymentGroupAsync(MirroringDeploymentGroupName name) + *

                                                                                                                                      • deleteMirroringDeploymentGroupAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringDeploymentGroupOperationCallable() + *

                                                                                                                                      • deleteMirroringDeploymentGroupCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListMirroringDeployments

                                                                                                                                      Lists deployments in a given project and location. See https://google.aip.dev/132.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringDeployments(ListMirroringDeploymentsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringDeployments(LocationName parent) + *

                                                                                                                                      • listMirroringDeployments(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listMirroringDeploymentsPagedCallable() + *

                                                                                                                                      • listMirroringDeploymentsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetMirroringDeployment

                                                                                                                                      Gets a specific deployment. See https://google.aip.dev/131.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringDeployment(GetMirroringDeploymentRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringDeployment(MirroringDeploymentName name) + *

                                                                                                                                      • getMirroringDeployment(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getMirroringDeploymentCallable() + *

                                                                                                                                      + *

                                                                                                                                      CreateMirroringDeployment

                                                                                                                                      Creates a deployment in a given project and location. See https://google.aip.dev/133.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringDeploymentAsync(CreateMirroringDeploymentRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringDeploymentAsync(LocationName parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId) + *

                                                                                                                                      • createMirroringDeploymentAsync(String parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createMirroringDeploymentOperationCallable() + *

                                                                                                                                      • createMirroringDeploymentCallable() + *

                                                                                                                                      + *

                                                                                                                                      UpdateMirroringDeployment

                                                                                                                                      Updates a deployment. See https://google.aip.dev/134.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringDeploymentAsync(UpdateMirroringDeploymentRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringDeploymentAsync(MirroringDeployment mirroringDeployment, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateMirroringDeploymentOperationCallable() + *

                                                                                                                                      • updateMirroringDeploymentCallable() + *

                                                                                                                                      + *

                                                                                                                                      DeleteMirroringDeployment

                                                                                                                                      Deletes a deployment. See https://google.aip.dev/135.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringDeploymentAsync(DeleteMirroringDeploymentRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringDeploymentAsync(MirroringDeploymentName name) + *

                                                                                                                                      • deleteMirroringDeploymentAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteMirroringDeploymentOperationCallable() + *

                                                                                                                                      • deleteMirroringDeploymentCallable() + *

                                                                                                                                      + *

                                                                                                                                      ListLocations

                                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocations(ListLocationsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocationsPagedCallable() + *

                                                                                                                                      • listLocationsCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetLocation

                                                                                                                                      Gets information about a location.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocation(GetLocationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocationCallable() + *

                                                                                                                                      + *

                                                                                                                                      SetIamPolicy

                                                                                                                                      Sets the access control policy on the specified resource. Replacesany existing policy. + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicy(SetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicyCallable() + *

                                                                                                                                      + *

                                                                                                                                      GetIamPolicy

                                                                                                                                      Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicy(GetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicyCallable() + *

                                                                                                                                      + *

                                                                                                                                      TestIamPermissions

                                                                                                                                      Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

                                                                                                                                      + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissions(TestIamPermissionsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissionsCallable() + *

                                                                                                                                      + *
                                                                                                                                      + * + *

                                                                                                                                      See the individual methods for example code. + * + *

                                                                                                                                      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                                                                                                                      This class can be customized by passing in a custom instance of MirroringSettings to create(). + * For example: + * + *

                                                                                                                                      To customize credentials: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * MirroringSettings mirroringSettings =
                                                                                                                                      + *     MirroringSettings.newBuilder()
                                                                                                                                      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                                                                                                                      + *         .build();
                                                                                                                                      + * MirroringClient mirroringClient = MirroringClient.create(mirroringSettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      To customize the endpoint: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * MirroringSettings mirroringSettings =
                                                                                                                                      + *     MirroringSettings.newBuilder().setEndpoint(myEndpoint).build();
                                                                                                                                      + * MirroringClient mirroringClient = MirroringClient.create(mirroringSettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class MirroringClient implements BackgroundResource { + private final MirroringSettings settings; + private final MirroringStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of MirroringClient with default settings. */ + public static final MirroringClient create() throws IOException { + return create(MirroringSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MirroringClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final MirroringClient create(MirroringSettings settings) throws IOException { + return new MirroringClient(settings); + } + + /** + * Constructs an instance of MirroringClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(MirroringSettings). + */ + public static final MirroringClient create(MirroringStub stub) { + return new MirroringClient(stub); + } + + /** + * Constructs an instance of MirroringClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected MirroringClient(MirroringSettings settings) throws IOException { + this.settings = settings; + this.stub = ((MirroringStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected MirroringClient(MirroringStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final MirroringSettings getSettings() { + return settings; + } + + public MirroringStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (MirroringEndpointGroup element :
                                                                                                                                      +   *       mirroringClient.listMirroringEndpointGroups(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of endpoint groups. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups( + LocationName parent) { + ListMirroringEndpointGroupsRequest request = + ListMirroringEndpointGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMirroringEndpointGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (MirroringEndpointGroup element :
                                                                                                                                      +   *       mirroringClient.listMirroringEndpointGroups(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of endpoint groups. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups(String parent) { + ListMirroringEndpointGroupsRequest request = + ListMirroringEndpointGroupsRequest.newBuilder().setParent(parent).build(); + return listMirroringEndpointGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringEndpointGroupsRequest request =
                                                                                                                                      +   *       ListMirroringEndpointGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (MirroringEndpointGroup element :
                                                                                                                                      +   *       mirroringClient.listMirroringEndpointGroups(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups( + ListMirroringEndpointGroupsRequest request) { + return listMirroringEndpointGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringEndpointGroupsRequest request =
                                                                                                                                      +   *       ListMirroringEndpointGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.listMirroringEndpointGroupsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (MirroringEndpointGroup element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsPagedResponse> + listMirroringEndpointGroupsPagedCallable() { + return stub.listMirroringEndpointGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists endpoint groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringEndpointGroupsRequest request =
                                                                                                                                      +   *       ListMirroringEndpointGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListMirroringEndpointGroupsResponse response =
                                                                                                                                      +   *         mirroringClient.listMirroringEndpointGroupsCallable().call(request);
                                                                                                                                      +   *     for (MirroringEndpointGroup element : response.getMirroringEndpointGroupsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsResponse> + listMirroringEndpointGroupsCallable() { + return stub.listMirroringEndpointGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific endpoint group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringEndpointGroupName name =
                                                                                                                                      +   *       MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
                                                                                                                                      +   *   MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the endpoint group to retrieve. Format: + * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringEndpointGroup getMirroringEndpointGroup(MirroringEndpointGroupName name) { + GetMirroringEndpointGroupRequest request = + GetMirroringEndpointGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMirroringEndpointGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific endpoint group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the endpoint group to retrieve. Format: + * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringEndpointGroup getMirroringEndpointGroup(String name) { + GetMirroringEndpointGroupRequest request = + GetMirroringEndpointGroupRequest.newBuilder().setName(name).build(); + return getMirroringEndpointGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific endpoint group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       GetMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringEndpointGroup getMirroringEndpointGroup( + GetMirroringEndpointGroupRequest request) { + return getMirroringEndpointGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific endpoint group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       GetMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.getMirroringEndpointGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringEndpointGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getMirroringEndpointGroupCallable() { + return stub.getMirroringEndpointGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
                                                                                                                                      +   *   String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834";
                                                                                                                                      +   *   MirroringEndpointGroup response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringEndpointGroupAsync(
                                                                                                                                      +   *               parent, mirroringEndpointGroup, mirroringEndpointGroupId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this endpoint group will be created. Format: + * projects/{project}/locations/{location} + * @param mirroringEndpointGroup Required. The endpoint group to create. + * @param mirroringEndpointGroupId Required. The ID to use for the endpoint group, which will + * become the final component of the endpoint group's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringEndpointGroupAsync( + LocationName parent, + MirroringEndpointGroup mirroringEndpointGroup, + String mirroringEndpointGroupId) { + CreateMirroringEndpointGroupRequest request = + CreateMirroringEndpointGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMirroringEndpointGroup(mirroringEndpointGroup) + .setMirroringEndpointGroupId(mirroringEndpointGroupId) + .build(); + return createMirroringEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
                                                                                                                                      +   *   String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834";
                                                                                                                                      +   *   MirroringEndpointGroup response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringEndpointGroupAsync(
                                                                                                                                      +   *               parent, mirroringEndpointGroup, mirroringEndpointGroupId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this endpoint group will be created. Format: + * projects/{project}/locations/{location} + * @param mirroringEndpointGroup Required. The endpoint group to create. + * @param mirroringEndpointGroupId Required. The ID to use for the endpoint group, which will + * become the final component of the endpoint group's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringEndpointGroupAsync( + String parent, + MirroringEndpointGroup mirroringEndpointGroup, + String mirroringEndpointGroupId) { + CreateMirroringEndpointGroupRequest request = + CreateMirroringEndpointGroupRequest.newBuilder() + .setParent(parent) + .setMirroringEndpointGroup(mirroringEndpointGroup) + .setMirroringEndpointGroupId(mirroringEndpointGroupId) + .build(); + return createMirroringEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       CreateMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
                                                                                                                                      +   *           .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringEndpointGroup response =
                                                                                                                                      +   *       mirroringClient.createMirroringEndpointGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringEndpointGroupAsync(CreateMirroringEndpointGroupRequest request) { + return createMirroringEndpointGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       CreateMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
                                                                                                                                      +   *           .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.createMirroringEndpointGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringEndpointGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationCallable() { + return stub.createMirroringEndpointGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an endpoint group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       CreateMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
                                                                                                                                      +   *           .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.createMirroringEndpointGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createMirroringEndpointGroupCallable() { + return stub.createMirroringEndpointGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an endpoint group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   MirroringEndpointGroup response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .updateMirroringEndpointGroupAsync(mirroringEndpointGroup, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param mirroringEndpointGroup Required. The endpoint group to update. + * @param updateMask Optional. The list of fields to update. Fields are specified relative to the + * endpoint group (e.g. `description`; *not* `mirroring_endpoint_group.description`). + * See https://google.aip.dev/161 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMirroringEndpointGroupAsync( + MirroringEndpointGroup mirroringEndpointGroup, FieldMask updateMask) { + UpdateMirroringEndpointGroupRequest request = + UpdateMirroringEndpointGroupRequest.newBuilder() + .setMirroringEndpointGroup(mirroringEndpointGroup) + .setUpdateMask(updateMask) + .build(); + return updateMirroringEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an endpoint group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       UpdateMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringEndpointGroup response =
                                                                                                                                      +   *       mirroringClient.updateMirroringEndpointGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMirroringEndpointGroupAsync(UpdateMirroringEndpointGroupRequest request) { + return updateMirroringEndpointGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an endpoint group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       UpdateMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.updateMirroringEndpointGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringEndpointGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationCallable() { + return stub.updateMirroringEndpointGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an endpoint group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       UpdateMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.updateMirroringEndpointGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateMirroringEndpointGroupCallable() { + return stub.updateMirroringEndpointGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringEndpointGroupName name =
                                                                                                                                      +   *       MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
                                                                                                                                      +   *   mirroringClient.deleteMirroringEndpointGroupAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The endpoint group to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringEndpointGroupAsync( + MirroringEndpointGroupName name) { + DeleteMirroringEndpointGroupRequest request = + DeleteMirroringEndpointGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMirroringEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   mirroringClient.deleteMirroringEndpointGroupAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The endpoint group to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringEndpointGroupAsync( + String name) { + DeleteMirroringEndpointGroupRequest request = + DeleteMirroringEndpointGroupRequest.newBuilder().setName(name).build(); + return deleteMirroringEndpointGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       DeleteMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   mirroringClient.deleteMirroringEndpointGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringEndpointGroupAsync( + DeleteMirroringEndpointGroupRequest request) { + return deleteMirroringEndpointGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       DeleteMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.deleteMirroringEndpointGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteMirroringEndpointGroupOperationCallable() { + return stub.deleteMirroringEndpointGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an endpoint group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringEndpointGroupRequest request =
                                                                                                                                      +   *       DeleteMirroringEndpointGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.deleteMirroringEndpointGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteMirroringEndpointGroupCallable() { + return stub.deleteMirroringEndpointGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (MirroringEndpointGroupAssociation element :
                                                                                                                                      +   *       mirroringClient.listMirroringEndpointGroupAssociations(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of associations. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringEndpointGroupAssociationsPagedResponse + listMirroringEndpointGroupAssociations(LocationName parent) { + ListMirroringEndpointGroupAssociationsRequest request = + ListMirroringEndpointGroupAssociationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMirroringEndpointGroupAssociations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (MirroringEndpointGroupAssociation element :
                                                                                                                                      +   *       mirroringClient.listMirroringEndpointGroupAssociations(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of associations. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringEndpointGroupAssociationsPagedResponse + listMirroringEndpointGroupAssociations(String parent) { + ListMirroringEndpointGroupAssociationsRequest request = + ListMirroringEndpointGroupAssociationsRequest.newBuilder().setParent(parent).build(); + return listMirroringEndpointGroupAssociations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringEndpointGroupAssociationsRequest request =
                                                                                                                                      +   *       ListMirroringEndpointGroupAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (MirroringEndpointGroupAssociation element :
                                                                                                                                      +   *       mirroringClient.listMirroringEndpointGroupAssociations(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringEndpointGroupAssociationsPagedResponse + listMirroringEndpointGroupAssociations( + ListMirroringEndpointGroupAssociationsRequest request) { + return listMirroringEndpointGroupAssociationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringEndpointGroupAssociationsRequest request =
                                                                                                                                      +   *       ListMirroringEndpointGroupAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.listMirroringEndpointGroupAssociationsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (MirroringEndpointGroupAssociation element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsPagedCallable() { + return stub.listMirroringEndpointGroupAssociationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists associations in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringEndpointGroupAssociationsRequest request =
                                                                                                                                      +   *       ListMirroringEndpointGroupAssociationsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListMirroringEndpointGroupAssociationsResponse response =
                                                                                                                                      +   *         mirroringClient.listMirroringEndpointGroupAssociationsCallable().call(request);
                                                                                                                                      +   *     for (MirroringEndpointGroupAssociation element :
                                                                                                                                      +   *         response.getMirroringEndpointGroupAssociationsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse> + listMirroringEndpointGroupAssociationsCallable() { + return stub.listMirroringEndpointGroupAssociationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific association. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringEndpointGroupAssociationName name =
                                                                                                                                      +   *       MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]");
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response =
                                                                                                                                      +   *       mirroringClient.getMirroringEndpointGroupAssociation(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the association to retrieve. Format: + * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation( + MirroringEndpointGroupAssociationName name) { + GetMirroringEndpointGroupAssociationRequest request = + GetMirroringEndpointGroupAssociationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMirroringEndpointGroupAssociation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific association. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response =
                                                                                                                                      +   *       mirroringClient.getMirroringEndpointGroupAssociation(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the association to retrieve. Format: + * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation(String name) { + GetMirroringEndpointGroupAssociationRequest request = + GetMirroringEndpointGroupAssociationRequest.newBuilder().setName(name).build(); + return getMirroringEndpointGroupAssociation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific association. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       GetMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response =
                                                                                                                                      +   *       mirroringClient.getMirroringEndpointGroupAssociation(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation( + GetMirroringEndpointGroupAssociationRequest request) { + return getMirroringEndpointGroupAssociationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific association. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       GetMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.getMirroringEndpointGroupAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationCallable() { + return stub.getMirroringEndpointGroupAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
                                                                                                                                      +   *       MirroringEndpointGroupAssociation.newBuilder().build();
                                                                                                                                      +   *   String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507";
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringEndpointGroupAssociationAsync(
                                                                                                                                      +   *               parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this association will be created. Format: + * projects/{project}/locations/{location} + * @param mirroringEndpointGroupAssociation Required. The association to create. + * @param mirroringEndpointGroupAssociationId Optional. The ID to use for the new association, + * which will become the final component of the endpoint group's resource name. If not + * provided, the server will generate a unique ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringEndpointGroupAssociationAsync( + LocationName parent, + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, + String mirroringEndpointGroupAssociationId) { + CreateMirroringEndpointGroupAssociationRequest request = + CreateMirroringEndpointGroupAssociationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMirroringEndpointGroupAssociation(mirroringEndpointGroupAssociation) + .setMirroringEndpointGroupAssociationId(mirroringEndpointGroupAssociationId) + .build(); + return createMirroringEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
                                                                                                                                      +   *       MirroringEndpointGroupAssociation.newBuilder().build();
                                                                                                                                      +   *   String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507";
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringEndpointGroupAssociationAsync(
                                                                                                                                      +   *               parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this association will be created. Format: + * projects/{project}/locations/{location} + * @param mirroringEndpointGroupAssociation Required. The association to create. + * @param mirroringEndpointGroupAssociationId Optional. The ID to use for the new association, + * which will become the final component of the endpoint group's resource name. If not + * provided, the server will generate a unique ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringEndpointGroupAssociationAsync( + String parent, + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, + String mirroringEndpointGroupAssociationId) { + CreateMirroringEndpointGroupAssociationRequest request = + CreateMirroringEndpointGroupAssociationRequest.newBuilder() + .setParent(parent) + .setMirroringEndpointGroupAssociation(mirroringEndpointGroupAssociation) + .setMirroringEndpointGroupAssociationId(mirroringEndpointGroupAssociationId) + .build(); + return createMirroringEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       CreateMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociationId(
                                                                                                                                      +   *               "mirroringEndpointGroupAssociationId-1957886507")
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociation(
                                                                                                                                      +   *               MirroringEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response =
                                                                                                                                      +   *       mirroringClient.createMirroringEndpointGroupAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringEndpointGroupAssociationAsync( + CreateMirroringEndpointGroupAssociationRequest request) { + return createMirroringEndpointGroupAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       CreateMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociationId(
                                                                                                                                      +   *               "mirroringEndpointGroupAssociationId-1957886507")
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociation(
                                                                                                                                      +   *               MirroringEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringEndpointGroupAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationCallable() { + return stub.createMirroringEndpointGroupAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an association in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       CreateMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociationId(
                                                                                                                                      +   *               "mirroringEndpointGroupAssociationId-1957886507")
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociation(
                                                                                                                                      +   *               MirroringEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.createMirroringEndpointGroupAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createMirroringEndpointGroupAssociationCallable() { + return stub.createMirroringEndpointGroupAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an association. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
                                                                                                                                      +   *       MirroringEndpointGroupAssociation.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .updateMirroringEndpointGroupAssociationAsync(
                                                                                                                                      +   *               mirroringEndpointGroupAssociation, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param mirroringEndpointGroupAssociation Required. The association to update. + * @param updateMask Optional. The list of fields to update. Fields are specified relative to the + * association (e.g. `description`; *not* + * `mirroring_endpoint_group_association.description`). See https://google.aip.dev/161 for + * more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMirroringEndpointGroupAssociationAsync( + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, + FieldMask updateMask) { + UpdateMirroringEndpointGroupAssociationRequest request = + UpdateMirroringEndpointGroupAssociationRequest.newBuilder() + .setMirroringEndpointGroupAssociation(mirroringEndpointGroupAssociation) + .setUpdateMask(updateMask) + .build(); + return updateMirroringEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an association. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociation(
                                                                                                                                      +   *               MirroringEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response =
                                                                                                                                      +   *       mirroringClient.updateMirroringEndpointGroupAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMirroringEndpointGroupAssociationAsync( + UpdateMirroringEndpointGroupAssociationRequest request) { + return updateMirroringEndpointGroupAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an association. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociation(
                                                                                                                                      +   *               MirroringEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .updateMirroringEndpointGroupAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringEndpointGroupAssociation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationCallable() { + return stub.updateMirroringEndpointGroupAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an association. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringEndpointGroupAssociation(
                                                                                                                                      +   *               MirroringEndpointGroupAssociation.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.updateMirroringEndpointGroupAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateMirroringEndpointGroupAssociationCallable() { + return stub.updateMirroringEndpointGroupAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringEndpointGroupAssociationName name =
                                                                                                                                      +   *       MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]");
                                                                                                                                      +   *   mirroringClient.deleteMirroringEndpointGroupAssociationAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The association to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociationName name) { + DeleteMirroringEndpointGroupAssociationRequest request = + DeleteMirroringEndpointGroupAssociationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMirroringEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   mirroringClient.deleteMirroringEndpointGroupAssociationAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The association to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteMirroringEndpointGroupAssociationAsync(String name) { + DeleteMirroringEndpointGroupAssociationRequest request = + DeleteMirroringEndpointGroupAssociationRequest.newBuilder().setName(name).build(); + return deleteMirroringEndpointGroupAssociationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   mirroringClient.deleteMirroringEndpointGroupAssociationAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteMirroringEndpointGroupAssociationAsync( + DeleteMirroringEndpointGroupAssociationRequest request) { + return deleteMirroringEndpointGroupAssociationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .deleteMirroringEndpointGroupAssociationOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + DeleteMirroringEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupAssociationOperationCallable() { + return stub.deleteMirroringEndpointGroupAssociationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an association. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringEndpointGroupAssociationRequest request =
                                                                                                                                      +   *       DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringEndpointGroupAssociationName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.deleteMirroringEndpointGroupAssociationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteMirroringEndpointGroupAssociationCallable() { + return stub.deleteMirroringEndpointGroupAssociationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (MirroringDeploymentGroup element :
                                                                                                                                      +   *       mirroringClient.listMirroringDeploymentGroups(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of deployment groups. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups( + LocationName parent) { + ListMirroringDeploymentGroupsRequest request = + ListMirroringDeploymentGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMirroringDeploymentGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (MirroringDeploymentGroup element :
                                                                                                                                      +   *       mirroringClient.listMirroringDeploymentGroups(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of deployment groups. Example: + * `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups( + String parent) { + ListMirroringDeploymentGroupsRequest request = + ListMirroringDeploymentGroupsRequest.newBuilder().setParent(parent).build(); + return listMirroringDeploymentGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringDeploymentGroupsRequest request =
                                                                                                                                      +   *       ListMirroringDeploymentGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (MirroringDeploymentGroup element :
                                                                                                                                      +   *       mirroringClient.listMirroringDeploymentGroups(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups( + ListMirroringDeploymentGroupsRequest request) { + return listMirroringDeploymentGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringDeploymentGroupsRequest request =
                                                                                                                                      +   *       ListMirroringDeploymentGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.listMirroringDeploymentGroupsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (MirroringDeploymentGroup element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsPagedCallable() { + return stub.listMirroringDeploymentGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployment groups in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringDeploymentGroupsRequest request =
                                                                                                                                      +   *       ListMirroringDeploymentGroupsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListMirroringDeploymentGroupsResponse response =
                                                                                                                                      +   *         mirroringClient.listMirroringDeploymentGroupsCallable().call(request);
                                                                                                                                      +   *     for (MirroringDeploymentGroup element : response.getMirroringDeploymentGroupsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsResponse> + listMirroringDeploymentGroupsCallable() { + return stub.listMirroringDeploymentGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringDeploymentGroupName name =
                                                                                                                                      +   *       MirroringDeploymentGroupName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]");
                                                                                                                                      +   *   MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the deployment group to retrieve. Format: + * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringDeploymentGroup getMirroringDeploymentGroup( + MirroringDeploymentGroupName name) { + GetMirroringDeploymentGroupRequest request = + GetMirroringDeploymentGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMirroringDeploymentGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the deployment group to retrieve. Format: + * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringDeploymentGroup getMirroringDeploymentGroup(String name) { + GetMirroringDeploymentGroupRequest request = + GetMirroringDeploymentGroupRequest.newBuilder().setName(name).build(); + return getMirroringDeploymentGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       GetMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringDeploymentGroup getMirroringDeploymentGroup( + GetMirroringDeploymentGroupRequest request) { + return getMirroringDeploymentGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment group. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       GetMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.getMirroringDeploymentGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringDeploymentGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getMirroringDeploymentGroupCallable() { + return stub.getMirroringDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   MirroringDeploymentGroup mirroringDeploymentGroup =
                                                                                                                                      +   *       MirroringDeploymentGroup.newBuilder().build();
                                                                                                                                      +   *   String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862";
                                                                                                                                      +   *   MirroringDeploymentGroup response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringDeploymentGroupAsync(
                                                                                                                                      +   *               parent, mirroringDeploymentGroup, mirroringDeploymentGroupId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this deployment group will be created. + * Format: projects/{project}/locations/{location} + * @param mirroringDeploymentGroup Required. The deployment group to create. + * @param mirroringDeploymentGroupId Required. The ID to use for the new deployment group, which + * will become the final component of the deployment group's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringDeploymentGroupAsync( + LocationName parent, + MirroringDeploymentGroup mirroringDeploymentGroup, + String mirroringDeploymentGroupId) { + CreateMirroringDeploymentGroupRequest request = + CreateMirroringDeploymentGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMirroringDeploymentGroup(mirroringDeploymentGroup) + .setMirroringDeploymentGroupId(mirroringDeploymentGroupId) + .build(); + return createMirroringDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   MirroringDeploymentGroup mirroringDeploymentGroup =
                                                                                                                                      +   *       MirroringDeploymentGroup.newBuilder().build();
                                                                                                                                      +   *   String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862";
                                                                                                                                      +   *   MirroringDeploymentGroup response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringDeploymentGroupAsync(
                                                                                                                                      +   *               parent, mirroringDeploymentGroup, mirroringDeploymentGroupId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this deployment group will be created. + * Format: projects/{project}/locations/{location} + * @param mirroringDeploymentGroup Required. The deployment group to create. + * @param mirroringDeploymentGroupId Required. The ID to use for the new deployment group, which + * will become the final component of the deployment group's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringDeploymentGroupAsync( + String parent, + MirroringDeploymentGroup mirroringDeploymentGroup, + String mirroringDeploymentGroupId) { + CreateMirroringDeploymentGroupRequest request = + CreateMirroringDeploymentGroupRequest.newBuilder() + .setParent(parent) + .setMirroringDeploymentGroup(mirroringDeploymentGroup) + .setMirroringDeploymentGroupId(mirroringDeploymentGroupId) + .build(); + return createMirroringDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       CreateMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
                                                                                                                                      +   *           .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringDeploymentGroup response =
                                                                                                                                      +   *       mirroringClient.createMirroringDeploymentGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringDeploymentGroupAsync(CreateMirroringDeploymentGroupRequest request) { + return createMirroringDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       CreateMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
                                                                                                                                      +   *           .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.createMirroringDeploymentGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringDeploymentGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationCallable() { + return stub.createMirroringDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment group in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       CreateMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
                                                                                                                                      +   *           .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.createMirroringDeploymentGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createMirroringDeploymentGroupCallable() { + return stub.createMirroringDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringDeploymentGroup mirroringDeploymentGroup =
                                                                                                                                      +   *       MirroringDeploymentGroup.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   MirroringDeploymentGroup response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .updateMirroringDeploymentGroupAsync(mirroringDeploymentGroup, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param mirroringDeploymentGroup Required. The deployment group to update. + * @param updateMask Optional. The list of fields to update. Fields are specified relative to the + * deployment group (e.g. `description`; *not* + * `mirroring_deployment_group.description`). See https://google.aip.dev/161 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMirroringDeploymentGroupAsync( + MirroringDeploymentGroup mirroringDeploymentGroup, FieldMask updateMask) { + UpdateMirroringDeploymentGroupRequest request = + UpdateMirroringDeploymentGroupRequest.newBuilder() + .setMirroringDeploymentGroup(mirroringDeploymentGroup) + .setUpdateMask(updateMask) + .build(); + return updateMirroringDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       UpdateMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringDeploymentGroup response =
                                                                                                                                      +   *       mirroringClient.updateMirroringDeploymentGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMirroringDeploymentGroupAsync(UpdateMirroringDeploymentGroupRequest request) { + return updateMirroringDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       UpdateMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.updateMirroringDeploymentGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringDeploymentGroup response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationCallable() { + return stub.updateMirroringDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment group. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       UpdateMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.updateMirroringDeploymentGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateMirroringDeploymentGroupCallable() { + return stub.updateMirroringDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringDeploymentGroupName name =
                                                                                                                                      +   *       MirroringDeploymentGroupName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]");
                                                                                                                                      +   *   mirroringClient.deleteMirroringDeploymentGroupAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The deployment group to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringDeploymentGroupAsync( + MirroringDeploymentGroupName name) { + DeleteMirroringDeploymentGroupRequest request = + DeleteMirroringDeploymentGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMirroringDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   mirroringClient.deleteMirroringDeploymentGroupAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The deployment group to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringDeploymentGroupAsync( + String name) { + DeleteMirroringDeploymentGroupRequest request = + DeleteMirroringDeploymentGroupRequest.newBuilder().setName(name).build(); + return deleteMirroringDeploymentGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       DeleteMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   mirroringClient.deleteMirroringDeploymentGroupAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringDeploymentGroupAsync( + DeleteMirroringDeploymentGroupRequest request) { + return deleteMirroringDeploymentGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       DeleteMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.deleteMirroringDeploymentGroupOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteMirroringDeploymentGroupOperationCallable() { + return stub.deleteMirroringDeploymentGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment group. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringDeploymentGroupRequest request =
                                                                                                                                      +   *       DeleteMirroringDeploymentGroupRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentGroupName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.deleteMirroringDeploymentGroupCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteMirroringDeploymentGroupCallable() { + return stub.deleteMirroringDeploymentGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (MirroringDeployment element :
                                                                                                                                      +   *       mirroringClient.listMirroringDeployments(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of deployments. Example: + * `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more + * details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringDeploymentsPagedResponse listMirroringDeployments(LocationName parent) { + ListMirroringDeploymentsRequest request = + ListMirroringDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMirroringDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (MirroringDeployment element :
                                                                                                                                      +   *       mirroringClient.listMirroringDeployments(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent, which owns this collection of deployments. Example: + * `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more + * details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringDeploymentsPagedResponse listMirroringDeployments(String parent) { + ListMirroringDeploymentsRequest request = + ListMirroringDeploymentsRequest.newBuilder().setParent(parent).build(); + return listMirroringDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringDeploymentsRequest request =
                                                                                                                                      +   *       ListMirroringDeploymentsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (MirroringDeployment element :
                                                                                                                                      +   *       mirroringClient.listMirroringDeployments(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMirroringDeploymentsPagedResponse listMirroringDeployments( + ListMirroringDeploymentsRequest request) { + return listMirroringDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringDeploymentsRequest request =
                                                                                                                                      +   *       ListMirroringDeploymentsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.listMirroringDeploymentsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (MirroringDeployment element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listMirroringDeploymentsPagedCallable() { + return stub.listMirroringDeploymentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in a given project and location. See https://google.aip.dev/132. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListMirroringDeploymentsRequest request =
                                                                                                                                      +   *       ListMirroringDeploymentsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListMirroringDeploymentsResponse response =
                                                                                                                                      +   *         mirroringClient.listMirroringDeploymentsCallable().call(request);
                                                                                                                                      +   *     for (MirroringDeployment element : response.getMirroringDeploymentsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listMirroringDeploymentsCallable() { + return stub.listMirroringDeploymentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringDeploymentName name =
                                                                                                                                      +   *       MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]");
                                                                                                                                      +   *   MirroringDeployment response = mirroringClient.getMirroringDeployment(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the deployment to retrieve. Format: + * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringDeployment getMirroringDeployment(MirroringDeploymentName name) { + GetMirroringDeploymentRequest request = + GetMirroringDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMirroringDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   MirroringDeployment response = mirroringClient.getMirroringDeployment(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the deployment to retrieve. Format: + * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringDeployment getMirroringDeployment(String name) { + GetMirroringDeploymentRequest request = + GetMirroringDeploymentRequest.newBuilder().setName(name).build(); + return getMirroringDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetMirroringDeploymentRequest request =
                                                                                                                                      +   *       GetMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringDeployment response = mirroringClient.getMirroringDeployment(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MirroringDeployment getMirroringDeployment(GetMirroringDeploymentRequest request) { + return getMirroringDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a specific deployment. See https://google.aip.dev/131. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetMirroringDeploymentRequest request =
                                                                                                                                      +   *       GetMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.getMirroringDeploymentCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringDeployment response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getMirroringDeploymentCallable() { + return stub.getMirroringDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
                                                                                                                                      +   *   String mirroringDeploymentId = "mirroringDeploymentId-895939037";
                                                                                                                                      +   *   MirroringDeployment response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this deployment will be created. Format: + * projects/{project}/locations/{location} + * @param mirroringDeployment Required. The deployment to create. + * @param mirroringDeploymentId Required. The ID to use for the new deployment, which will become + * the final component of the deployment's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringDeploymentAsync( + LocationName parent, + MirroringDeployment mirroringDeployment, + String mirroringDeploymentId) { + CreateMirroringDeploymentRequest request = + CreateMirroringDeploymentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMirroringDeployment(mirroringDeployment) + .setMirroringDeploymentId(mirroringDeploymentId) + .build(); + return createMirroringDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
                                                                                                                                      +   *   String mirroringDeploymentId = "mirroringDeploymentId-895939037";
                                                                                                                                      +   *   MirroringDeployment response =
                                                                                                                                      +   *       mirroringClient
                                                                                                                                      +   *           .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource where this deployment will be created. Format: + * projects/{project}/locations/{location} + * @param mirroringDeployment Required. The deployment to create. + * @param mirroringDeploymentId Required. The ID to use for the new deployment, which will become + * the final component of the deployment's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringDeploymentAsync( + String parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId) { + CreateMirroringDeploymentRequest request = + CreateMirroringDeploymentRequest.newBuilder() + .setParent(parent) + .setMirroringDeployment(mirroringDeployment) + .setMirroringDeploymentId(mirroringDeploymentId) + .build(); + return createMirroringDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringDeploymentRequest request =
                                                                                                                                      +   *       CreateMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringDeploymentId("mirroringDeploymentId-895939037")
                                                                                                                                      +   *           .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringDeployment response = mirroringClient.createMirroringDeploymentAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMirroringDeploymentAsync(CreateMirroringDeploymentRequest request) { + return createMirroringDeploymentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringDeploymentRequest request =
                                                                                                                                      +   *       CreateMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringDeploymentId("mirroringDeploymentId-895939037")
                                                                                                                                      +   *           .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.createMirroringDeploymentOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringDeployment response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + createMirroringDeploymentOperationCallable() { + return stub.createMirroringDeploymentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment in a given project and location. See https://google.aip.dev/133. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   CreateMirroringDeploymentRequest request =
                                                                                                                                      +   *       CreateMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setMirroringDeploymentId("mirroringDeploymentId-895939037")
                                                                                                                                      +   *           .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.createMirroringDeploymentCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createMirroringDeploymentCallable() { + return stub.createMirroringDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   MirroringDeployment response =
                                                                                                                                      +   *       mirroringClient.updateMirroringDeploymentAsync(mirroringDeployment, updateMask).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param mirroringDeployment Required. The deployment to update. + * @param updateMask Optional. The list of fields to update. Fields are specified relative to the + * deployment (e.g. `description`; *not* `mirroring_deployment.description`). See + * https://google.aip.dev/161 for more details. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMirroringDeploymentAsync( + MirroringDeployment mirroringDeployment, FieldMask updateMask) { + UpdateMirroringDeploymentRequest request = + UpdateMirroringDeploymentRequest.newBuilder() + .setMirroringDeployment(mirroringDeployment) + .setUpdateMask(updateMask) + .build(); + return updateMirroringDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringDeploymentRequest request =
                                                                                                                                      +   *       UpdateMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   MirroringDeployment response = mirroringClient.updateMirroringDeploymentAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMirroringDeploymentAsync(UpdateMirroringDeploymentRequest request) { + return updateMirroringDeploymentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringDeploymentRequest request =
                                                                                                                                      +   *       UpdateMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.updateMirroringDeploymentOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   MirroringDeployment response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + updateMirroringDeploymentOperationCallable() { + return stub.updateMirroringDeploymentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. See https://google.aip.dev/134. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   UpdateMirroringDeploymentRequest request =
                                                                                                                                      +   *       UpdateMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.updateMirroringDeploymentCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateMirroringDeploymentCallable() { + return stub.updateMirroringDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   MirroringDeploymentName name =
                                                                                                                                      +   *       MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]");
                                                                                                                                      +   *   mirroringClient.deleteMirroringDeploymentAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringDeploymentAsync( + MirroringDeploymentName name) { + DeleteMirroringDeploymentRequest request = + DeleteMirroringDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMirroringDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   mirroringClient.deleteMirroringDeploymentAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringDeploymentAsync( + String name) { + DeleteMirroringDeploymentRequest request = + DeleteMirroringDeploymentRequest.newBuilder().setName(name).build(); + return deleteMirroringDeploymentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringDeploymentRequest request =
                                                                                                                                      +   *       DeleteMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   mirroringClient.deleteMirroringDeploymentAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMirroringDeploymentAsync( + DeleteMirroringDeploymentRequest request) { + return deleteMirroringDeploymentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringDeploymentRequest request =
                                                                                                                                      +   *       DeleteMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       mirroringClient.deleteMirroringDeploymentOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteMirroringDeploymentOperationCallable() { + return stub.deleteMirroringDeploymentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment. See https://google.aip.dev/135. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   DeleteMirroringDeploymentRequest request =
                                                                                                                                      +   *       DeleteMirroringDeploymentRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setRequestId("requestId693933066")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.deleteMirroringDeploymentCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteMirroringDeploymentCallable() { + return stub.deleteMirroringDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (Location element : mirroringClient.listLocations(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future = mirroringClient.listLocationsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (Location element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   ListLocationsRequest request =
                                                                                                                                      +   *       ListLocationsRequest.newBuilder()
                                                                                                                                      +   *           .setName("name3373707")
                                                                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListLocationsResponse response = mirroringClient.listLocationsCallable().call(request);
                                                                                                                                      +   *     for (Location element : response.getLocationsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                                                                      +   *   Location response = mirroringClient.getLocation(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                                                                      +   *   ApiFuture future = mirroringClient.getLocationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Location response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   SetIamPolicyRequest request =
                                                                                                                                      +   *       SetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPolicy(Policy.newBuilder().build())
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   Policy response = mirroringClient.setIamPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   SetIamPolicyRequest request =
                                                                                                                                      +   *       SetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPolicy(Policy.newBuilder().build())
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future = mirroringClient.setIamPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Policy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetIamPolicyRequest request =
                                                                                                                                      +   *       GetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   Policy response = mirroringClient.getIamPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   GetIamPolicyRequest request =
                                                                                                                                      +   *       GetIamPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future = mirroringClient.getIamPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Policy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   TestIamPermissionsRequest request =
                                                                                                                                      +   *       TestIamPermissionsRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .addAllPermissions(new ArrayList())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   TestIamPermissionsResponse response = mirroringClient.testIamPermissions(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                                                                      +   *   TestIamPermissionsRequest request =
                                                                                                                                      +   *       TestIamPermissionsRequest.newBuilder()
                                                                                                                                      +   *           .setResource(
                                                                                                                                      +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .addAllPermissions(new ArrayList())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       mirroringClient.testIamPermissionsCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   TestIamPermissionsResponse response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListMirroringEndpointGroupsPagedResponse + extends AbstractPagedListResponse< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup, + ListMirroringEndpointGroupsPage, + ListMirroringEndpointGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMirroringEndpointGroupsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMirroringEndpointGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMirroringEndpointGroupsPagedResponse(ListMirroringEndpointGroupsPage page) { + super(page, ListMirroringEndpointGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMirroringEndpointGroupsPage + extends AbstractPage< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup, + ListMirroringEndpointGroupsPage> { + + private ListMirroringEndpointGroupsPage( + PageContext< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup> + context, + ListMirroringEndpointGroupsResponse response) { + super(context, response); + } + + private static ListMirroringEndpointGroupsPage createEmptyPage() { + return new ListMirroringEndpointGroupsPage(null, null); + } + + @Override + protected ListMirroringEndpointGroupsPage createPage( + PageContext< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup> + context, + ListMirroringEndpointGroupsResponse response) { + return new ListMirroringEndpointGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMirroringEndpointGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup, + ListMirroringEndpointGroupsPage, + ListMirroringEndpointGroupsFixedSizeCollection> { + + private ListMirroringEndpointGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMirroringEndpointGroupsFixedSizeCollection createEmptyCollection() { + return new ListMirroringEndpointGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListMirroringEndpointGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMirroringEndpointGroupsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMirroringEndpointGroupAssociationsPagedResponse + extends AbstractPagedListResponse< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation, + ListMirroringEndpointGroupAssociationsPage, + ListMirroringEndpointGroupAssociationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMirroringEndpointGroupAssociationsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMirroringEndpointGroupAssociationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMirroringEndpointGroupAssociationsPagedResponse( + ListMirroringEndpointGroupAssociationsPage page) { + super( + page, ListMirroringEndpointGroupAssociationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMirroringEndpointGroupAssociationsPage + extends AbstractPage< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation, + ListMirroringEndpointGroupAssociationsPage> { + + private ListMirroringEndpointGroupAssociationsPage( + PageContext< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation> + context, + ListMirroringEndpointGroupAssociationsResponse response) { + super(context, response); + } + + private static ListMirroringEndpointGroupAssociationsPage createEmptyPage() { + return new ListMirroringEndpointGroupAssociationsPage(null, null); + } + + @Override + protected ListMirroringEndpointGroupAssociationsPage createPage( + PageContext< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation> + context, + ListMirroringEndpointGroupAssociationsResponse response) { + return new ListMirroringEndpointGroupAssociationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMirroringEndpointGroupAssociationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation, + ListMirroringEndpointGroupAssociationsPage, + ListMirroringEndpointGroupAssociationsFixedSizeCollection> { + + private ListMirroringEndpointGroupAssociationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMirroringEndpointGroupAssociationsFixedSizeCollection + createEmptyCollection() { + return new ListMirroringEndpointGroupAssociationsFixedSizeCollection(null, 0); + } + + @Override + protected ListMirroringEndpointGroupAssociationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMirroringEndpointGroupAssociationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMirroringDeploymentGroupsPagedResponse + extends AbstractPagedListResponse< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup, + ListMirroringDeploymentGroupsPage, + ListMirroringDeploymentGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMirroringDeploymentGroupsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMirroringDeploymentGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMirroringDeploymentGroupsPagedResponse(ListMirroringDeploymentGroupsPage page) { + super(page, ListMirroringDeploymentGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMirroringDeploymentGroupsPage + extends AbstractPage< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup, + ListMirroringDeploymentGroupsPage> { + + private ListMirroringDeploymentGroupsPage( + PageContext< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup> + context, + ListMirroringDeploymentGroupsResponse response) { + super(context, response); + } + + private static ListMirroringDeploymentGroupsPage createEmptyPage() { + return new ListMirroringDeploymentGroupsPage(null, null); + } + + @Override + protected ListMirroringDeploymentGroupsPage createPage( + PageContext< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup> + context, + ListMirroringDeploymentGroupsResponse response) { + return new ListMirroringDeploymentGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMirroringDeploymentGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup, + ListMirroringDeploymentGroupsPage, + ListMirroringDeploymentGroupsFixedSizeCollection> { + + private ListMirroringDeploymentGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMirroringDeploymentGroupsFixedSizeCollection createEmptyCollection() { + return new ListMirroringDeploymentGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListMirroringDeploymentGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMirroringDeploymentGroupsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMirroringDeploymentsPagedResponse + extends AbstractPagedListResponse< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment, + ListMirroringDeploymentsPage, + ListMirroringDeploymentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMirroringDeploymentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMirroringDeploymentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMirroringDeploymentsPagedResponse(ListMirroringDeploymentsPage page) { + super(page, ListMirroringDeploymentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMirroringDeploymentsPage + extends AbstractPage< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment, + ListMirroringDeploymentsPage> { + + private ListMirroringDeploymentsPage( + PageContext< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment> + context, + ListMirroringDeploymentsResponse response) { + super(context, response); + } + + private static ListMirroringDeploymentsPage createEmptyPage() { + return new ListMirroringDeploymentsPage(null, null); + } + + @Override + protected ListMirroringDeploymentsPage createPage( + PageContext< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment> + context, + ListMirroringDeploymentsResponse response) { + return new ListMirroringDeploymentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMirroringDeploymentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment, + ListMirroringDeploymentsPage, + ListMirroringDeploymentsFixedSizeCollection> { + + private ListMirroringDeploymentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMirroringDeploymentsFixedSizeCollection createEmptyCollection() { + return new ListMirroringDeploymentsFixedSizeCollection(null, 0); + } + + @Override + protected ListMirroringDeploymentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMirroringDeploymentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringSettings.java new file mode 100644 index 000000000000..b93cbd6ece78 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringSettings.java @@ -0,0 +1,776 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.MirroringClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.MirroringStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MirroringClient}. + * + *

                                                                                                                                      The default instance has everything set to sensible defaults: + * + *

                                                                                                                                        + *
                                                                                                                                      • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                                                                      • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                                                                      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                                                                      + * + *

                                                                                                                                      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                                                                      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getMirroringEndpointGroup: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * MirroringSettings.Builder mirroringSettingsBuilder = MirroringSettings.newBuilder();
                                                                                                                                      + * mirroringSettingsBuilder
                                                                                                                                      + *     .getMirroringEndpointGroupSettings()
                                                                                                                                      + *     .setRetrySettings(
                                                                                                                                      + *         mirroringSettingsBuilder
                                                                                                                                      + *             .getMirroringEndpointGroupSettings()
                                                                                                                                      + *             .getRetrySettings()
                                                                                                                                      + *             .toBuilder()
                                                                                                                                      + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                                                                      + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                                                                      + *             .setMaxAttempts(5)
                                                                                                                                      + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                                                                      + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                                                                      + *             .setRetryDelayMultiplier(1.3)
                                                                                                                                      + *             .setRpcTimeoutMultiplier(1.5)
                                                                                                                                      + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                                                                      + *             .build());
                                                                                                                                      + * MirroringSettings mirroringSettings = mirroringSettingsBuilder.build();
                                                                                                                                      + * }
                                                                                                                                      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

                                                                                                                                      To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createMirroringEndpointGroup: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * MirroringSettings.Builder mirroringSettingsBuilder = MirroringSettings.newBuilder();
                                                                                                                                      + * TimedRetryAlgorithm timedRetryAlgorithm =
                                                                                                                                      + *     OperationalTimedPollAlgorithm.create(
                                                                                                                                      + *         RetrySettings.newBuilder()
                                                                                                                                      + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                                                                                                                      + *             .setRetryDelayMultiplier(1.5)
                                                                                                                                      + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                                                                                                                      + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                                                                                                                      + *             .build());
                                                                                                                                      + * mirroringSettingsBuilder
                                                                                                                                      + *     .createClusterOperationSettings()
                                                                                                                                      + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                                                                                                                      + *     .build();
                                                                                                                                      + * }
                                                                                                                                      + */ +@Generated("by gapic-generator-java") +public class MirroringSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listMirroringEndpointGroups. */ + public PagedCallSettings< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + ListMirroringEndpointGroupsPagedResponse> + listMirroringEndpointGroupsSettings() { + return ((MirroringStubSettings) getStubSettings()).listMirroringEndpointGroupsSettings(); + } + + /** Returns the object with the settings used for calls to getMirroringEndpointGroup. */ + public UnaryCallSettings + getMirroringEndpointGroupSettings() { + return ((MirroringStubSettings) getStubSettings()).getMirroringEndpointGroupSettings(); + } + + /** Returns the object with the settings used for calls to createMirroringEndpointGroup. */ + public UnaryCallSettings + createMirroringEndpointGroupSettings() { + return ((MirroringStubSettings) getStubSettings()).createMirroringEndpointGroupSettings(); + } + + /** Returns the object with the settings used for calls to createMirroringEndpointGroup. */ + public OperationCallSettings< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .createMirroringEndpointGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateMirroringEndpointGroup. */ + public UnaryCallSettings + updateMirroringEndpointGroupSettings() { + return ((MirroringStubSettings) getStubSettings()).updateMirroringEndpointGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateMirroringEndpointGroup. */ + public OperationCallSettings< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .updateMirroringEndpointGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMirroringEndpointGroup. */ + public UnaryCallSettings + deleteMirroringEndpointGroupSettings() { + return ((MirroringStubSettings) getStubSettings()).deleteMirroringEndpointGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteMirroringEndpointGroup. */ + public OperationCallSettings + deleteMirroringEndpointGroupOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .deleteMirroringEndpointGroupOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to listMirroringEndpointGroupAssociations. + */ + public PagedCallSettings< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsSettings() { + return ((MirroringStubSettings) getStubSettings()) + .listMirroringEndpointGroupAssociationsSettings(); + } + + /** + * Returns the object with the settings used for calls to getMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .getMirroringEndpointGroupAssociationSettings(); + } + + /** + * Returns the object with the settings used for calls to createMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings + createMirroringEndpointGroupAssociationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .createMirroringEndpointGroupAssociationSettings(); + } + + /** + * Returns the object with the settings used for calls to createMirroringEndpointGroupAssociation. + */ + public OperationCallSettings< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .createMirroringEndpointGroupAssociationOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to updateMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings + updateMirroringEndpointGroupAssociationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .updateMirroringEndpointGroupAssociationSettings(); + } + + /** + * Returns the object with the settings used for calls to updateMirroringEndpointGroupAssociation. + */ + public OperationCallSettings< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .updateMirroringEndpointGroupAssociationOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to deleteMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings + deleteMirroringEndpointGroupAssociationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .deleteMirroringEndpointGroupAssociationSettings(); + } + + /** + * Returns the object with the settings used for calls to deleteMirroringEndpointGroupAssociation. + */ + public OperationCallSettings< + DeleteMirroringEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupAssociationOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .deleteMirroringEndpointGroupAssociationOperationSettings(); + } + + /** Returns the object with the settings used for calls to listMirroringDeploymentGroups. */ + public PagedCallSettings< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsSettings() { + return ((MirroringStubSettings) getStubSettings()).listMirroringDeploymentGroupsSettings(); + } + + /** Returns the object with the settings used for calls to getMirroringDeploymentGroup. */ + public UnaryCallSettings + getMirroringDeploymentGroupSettings() { + return ((MirroringStubSettings) getStubSettings()).getMirroringDeploymentGroupSettings(); + } + + /** Returns the object with the settings used for calls to createMirroringDeploymentGroup. */ + public UnaryCallSettings + createMirroringDeploymentGroupSettings() { + return ((MirroringStubSettings) getStubSettings()).createMirroringDeploymentGroupSettings(); + } + + /** Returns the object with the settings used for calls to createMirroringDeploymentGroup. */ + public OperationCallSettings< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .createMirroringDeploymentGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateMirroringDeploymentGroup. */ + public UnaryCallSettings + updateMirroringDeploymentGroupSettings() { + return ((MirroringStubSettings) getStubSettings()).updateMirroringDeploymentGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateMirroringDeploymentGroup. */ + public OperationCallSettings< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .updateMirroringDeploymentGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMirroringDeploymentGroup. */ + public UnaryCallSettings + deleteMirroringDeploymentGroupSettings() { + return ((MirroringStubSettings) getStubSettings()).deleteMirroringDeploymentGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteMirroringDeploymentGroup. */ + public OperationCallSettings + deleteMirroringDeploymentGroupOperationSettings() { + return ((MirroringStubSettings) getStubSettings()) + .deleteMirroringDeploymentGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to listMirroringDeployments. */ + public PagedCallSettings< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + ListMirroringDeploymentsPagedResponse> + listMirroringDeploymentsSettings() { + return ((MirroringStubSettings) getStubSettings()).listMirroringDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to getMirroringDeployment. */ + public UnaryCallSettings + getMirroringDeploymentSettings() { + return ((MirroringStubSettings) getStubSettings()).getMirroringDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to createMirroringDeployment. */ + public UnaryCallSettings + createMirroringDeploymentSettings() { + return ((MirroringStubSettings) getStubSettings()).createMirroringDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to createMirroringDeployment. */ + public OperationCallSettings< + CreateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + createMirroringDeploymentOperationSettings() { + return ((MirroringStubSettings) getStubSettings()).createMirroringDeploymentOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateMirroringDeployment. */ + public UnaryCallSettings + updateMirroringDeploymentSettings() { + return ((MirroringStubSettings) getStubSettings()).updateMirroringDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to updateMirroringDeployment. */ + public OperationCallSettings< + UpdateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + updateMirroringDeploymentOperationSettings() { + return ((MirroringStubSettings) getStubSettings()).updateMirroringDeploymentOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMirroringDeployment. */ + public UnaryCallSettings + deleteMirroringDeploymentSettings() { + return ((MirroringStubSettings) getStubSettings()).deleteMirroringDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to deleteMirroringDeployment. */ + public OperationCallSettings + deleteMirroringDeploymentOperationSettings() { + return ((MirroringStubSettings) getStubSettings()).deleteMirroringDeploymentOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((MirroringStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((MirroringStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((MirroringStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((MirroringStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((MirroringStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final MirroringSettings create(MirroringStubSettings stub) throws IOException { + return new MirroringSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MirroringStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MirroringStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MirroringStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MirroringStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return MirroringStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MirroringStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MirroringStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MirroringSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MirroringSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(MirroringStubSettings.newBuilder(clientContext)); + } + + protected Builder(MirroringSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MirroringStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(MirroringStubSettings.newBuilder()); + } + + public MirroringStubSettings.Builder getStubSettingsBuilder() { + return ((MirroringStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                                                                      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listMirroringEndpointGroups. */ + public PagedCallSettings.Builder< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + ListMirroringEndpointGroupsPagedResponse> + listMirroringEndpointGroupsSettings() { + return getStubSettingsBuilder().listMirroringEndpointGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to getMirroringEndpointGroup. */ + public UnaryCallSettings.Builder + getMirroringEndpointGroupSettings() { + return getStubSettingsBuilder().getMirroringEndpointGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createMirroringEndpointGroup. */ + public UnaryCallSettings.Builder + createMirroringEndpointGroupSettings() { + return getStubSettingsBuilder().createMirroringEndpointGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createMirroringEndpointGroup. */ + public OperationCallSettings.Builder< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationSettings() { + return getStubSettingsBuilder().createMirroringEndpointGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateMirroringEndpointGroup. */ + public UnaryCallSettings.Builder + updateMirroringEndpointGroupSettings() { + return getStubSettingsBuilder().updateMirroringEndpointGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateMirroringEndpointGroup. */ + public OperationCallSettings.Builder< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationSettings() { + return getStubSettingsBuilder().updateMirroringEndpointGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMirroringEndpointGroup. */ + public UnaryCallSettings.Builder + deleteMirroringEndpointGroupSettings() { + return getStubSettingsBuilder().deleteMirroringEndpointGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMirroringEndpointGroup. */ + public OperationCallSettings.Builder< + DeleteMirroringEndpointGroupRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupOperationSettings() { + return getStubSettingsBuilder().deleteMirroringEndpointGroupOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * listMirroringEndpointGroupAssociations. + */ + public PagedCallSettings.Builder< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsSettings() { + return getStubSettingsBuilder().listMirroringEndpointGroupAssociationsSettings(); + } + + /** + * Returns the builder for the settings used for calls to getMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationSettings() { + return getStubSettingsBuilder().getMirroringEndpointGroupAssociationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * createMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + createMirroringEndpointGroupAssociationSettings() { + return getStubSettingsBuilder().createMirroringEndpointGroupAssociationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * createMirroringEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationSettings() { + return getStubSettingsBuilder().createMirroringEndpointGroupAssociationOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * updateMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + updateMirroringEndpointGroupAssociationSettings() { + return getStubSettingsBuilder().updateMirroringEndpointGroupAssociationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * updateMirroringEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationSettings() { + return getStubSettingsBuilder().updateMirroringEndpointGroupAssociationOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * deleteMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + deleteMirroringEndpointGroupAssociationSettings() { + return getStubSettingsBuilder().deleteMirroringEndpointGroupAssociationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * deleteMirroringEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + DeleteMirroringEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupAssociationOperationSettings() { + return getStubSettingsBuilder().deleteMirroringEndpointGroupAssociationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listMirroringDeploymentGroups. */ + public PagedCallSettings.Builder< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsSettings() { + return getStubSettingsBuilder().listMirroringDeploymentGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to getMirroringDeploymentGroup. */ + public UnaryCallSettings.Builder + getMirroringDeploymentGroupSettings() { + return getStubSettingsBuilder().getMirroringDeploymentGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createMirroringDeploymentGroup. */ + public UnaryCallSettings.Builder + createMirroringDeploymentGroupSettings() { + return getStubSettingsBuilder().createMirroringDeploymentGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createMirroringDeploymentGroup. */ + public OperationCallSettings.Builder< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationSettings() { + return getStubSettingsBuilder().createMirroringDeploymentGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateMirroringDeploymentGroup. */ + public UnaryCallSettings.Builder + updateMirroringDeploymentGroupSettings() { + return getStubSettingsBuilder().updateMirroringDeploymentGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateMirroringDeploymentGroup. */ + public OperationCallSettings.Builder< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationSettings() { + return getStubSettingsBuilder().updateMirroringDeploymentGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMirroringDeploymentGroup. */ + public UnaryCallSettings.Builder + deleteMirroringDeploymentGroupSettings() { + return getStubSettingsBuilder().deleteMirroringDeploymentGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMirroringDeploymentGroup. */ + public OperationCallSettings.Builder< + DeleteMirroringDeploymentGroupRequest, Empty, OperationMetadata> + deleteMirroringDeploymentGroupOperationSettings() { + return getStubSettingsBuilder().deleteMirroringDeploymentGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listMirroringDeployments. */ + public PagedCallSettings.Builder< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + ListMirroringDeploymentsPagedResponse> + listMirroringDeploymentsSettings() { + return getStubSettingsBuilder().listMirroringDeploymentsSettings(); + } + + /** Returns the builder for the settings used for calls to getMirroringDeployment. */ + public UnaryCallSettings.Builder + getMirroringDeploymentSettings() { + return getStubSettingsBuilder().getMirroringDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to createMirroringDeployment. */ + public UnaryCallSettings.Builder + createMirroringDeploymentSettings() { + return getStubSettingsBuilder().createMirroringDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to createMirroringDeployment. */ + public OperationCallSettings.Builder< + CreateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + createMirroringDeploymentOperationSettings() { + return getStubSettingsBuilder().createMirroringDeploymentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateMirroringDeployment. */ + public UnaryCallSettings.Builder + updateMirroringDeploymentSettings() { + return getStubSettingsBuilder().updateMirroringDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to updateMirroringDeployment. */ + public OperationCallSettings.Builder< + UpdateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + updateMirroringDeploymentOperationSettings() { + return getStubSettingsBuilder().updateMirroringDeploymentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMirroringDeployment. */ + public UnaryCallSettings.Builder + deleteMirroringDeploymentSettings() { + return getStubSettingsBuilder().deleteMirroringDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMirroringDeployment. */ + public OperationCallSettings.Builder + deleteMirroringDeploymentOperationSettings() { + return getStubSettingsBuilder().deleteMirroringDeploymentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public MirroringSettings build() throws IOException { + return new MirroringSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java index 5a6f7330a4f2..48e83d027a94 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java @@ -178,6 +178,104 @@ * * * + *

                                                                                                                                      ListBackendAuthenticationConfigs + *

                                                                                                                                      Lists BackendAuthenticationConfigs in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listBackendAuthenticationConfigs(ListBackendAuthenticationConfigsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listBackendAuthenticationConfigs(LocationName parent) + *

                                                                                                                                      • listBackendAuthenticationConfigs(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listBackendAuthenticationConfigsPagedCallable() + *

                                                                                                                                      • listBackendAuthenticationConfigsCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      GetBackendAuthenticationConfig + *

                                                                                                                                      Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getBackendAuthenticationConfig(GetBackendAuthenticationConfigRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getBackendAuthenticationConfig(BackendAuthenticationConfigName name) + *

                                                                                                                                      • getBackendAuthenticationConfig(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getBackendAuthenticationConfigCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      CreateBackendAuthenticationConfig + *

                                                                                                                                      Creates a new BackendAuthenticationConfig in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createBackendAuthenticationConfigAsync(CreateBackendAuthenticationConfigRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createBackendAuthenticationConfigAsync(LocationName parent, BackendAuthenticationConfig backendAuthenticationConfig, String backendAuthenticationConfigId) + *

                                                                                                                                      • createBackendAuthenticationConfigAsync(String parent, BackendAuthenticationConfig backendAuthenticationConfig, String backendAuthenticationConfigId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createBackendAuthenticationConfigOperationCallable() + *

                                                                                                                                      • createBackendAuthenticationConfigCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      UpdateBackendAuthenticationConfig + *

                                                                                                                                      Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateBackendAuthenticationConfigAsync(UpdateBackendAuthenticationConfigRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateBackendAuthenticationConfigAsync(BackendAuthenticationConfig backendAuthenticationConfig, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateBackendAuthenticationConfigOperationCallable() + *

                                                                                                                                      • updateBackendAuthenticationConfigCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      DeleteBackendAuthenticationConfig + *

                                                                                                                                      Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteBackendAuthenticationConfigAsync(DeleteBackendAuthenticationConfigRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteBackendAuthenticationConfigAsync(BackendAuthenticationConfigName name) + *

                                                                                                                                      • deleteBackendAuthenticationConfigAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteBackendAuthenticationConfigOperationCallable() + *

                                                                                                                                      • deleteBackendAuthenticationConfigCallable() + *

                                                                                                                                      + * + * + * *

                                                                                                                                      ListServerTlsPolicies *

                                                                                                                                      Lists ServerTlsPolicies in a given project and location. * @@ -374,219 +472,5379 @@ * * * - *

                                                                                                                                      ListLocations - *

                                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                                      ListGatewaySecurityPolicies + *

                                                                                                                                      Lists GatewaySecurityPolicies in a given project and location. * *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • listLocations(ListLocationsRequest request) + *

                                                                                                                                      • listGatewaySecurityPolicies(ListGatewaySecurityPoliciesRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listGatewaySecurityPolicies(LocationName parent) + *

                                                                                                                                      • listGatewaySecurityPolicies(String parent) *

                                                                                                                                      *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • listLocationsPagedCallable() - *

                                                                                                                                      • listLocationsCallable() + *

                                                                                                                                      • listGatewaySecurityPoliciesPagedCallable() + *

                                                                                                                                      • listGatewaySecurityPoliciesCallable() *

                                                                                                                                      * * * - *

                                                                                                                                      GetLocation - *

                                                                                                                                      Gets information about a location. + *

                                                                                                                                      GetGatewaySecurityPolicy + *

                                                                                                                                      Gets details of a single GatewaySecurityPolicy. * *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • getLocation(GetLocationRequest request) + *

                                                                                                                                      • getGatewaySecurityPolicy(GetGatewaySecurityPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getGatewaySecurityPolicy(GatewaySecurityPolicyName name) + *

                                                                                                                                      • getGatewaySecurityPolicy(String name) *

                                                                                                                                      *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • getLocationCallable() + *

                                                                                                                                      • getGatewaySecurityPolicyCallable() *

                                                                                                                                      * * * - *

                                                                                                                                      SetIamPolicy - *

                                                                                                                                      Sets the access control policy on the specified resource. Replacesany existing policy. - *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + *

                                                                                                                                      CreateGatewaySecurityPolicy + *

                                                                                                                                      Creates a new GatewaySecurityPolicy in a given project and location. * *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • setIamPolicy(SetIamPolicyRequest request) + *

                                                                                                                                      • createGatewaySecurityPolicyAsync(CreateGatewaySecurityPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createGatewaySecurityPolicyAsync(LocationName parent, GatewaySecurityPolicy gatewaySecurityPolicy, String gatewaySecurityPolicyId) + *

                                                                                                                                      • createGatewaySecurityPolicyAsync(String parent, GatewaySecurityPolicy gatewaySecurityPolicy, String gatewaySecurityPolicyId) *

                                                                                                                                      *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • setIamPolicyCallable() + *

                                                                                                                                      • createGatewaySecurityPolicyOperationCallable() + *

                                                                                                                                      • createGatewaySecurityPolicyCallable() *

                                                                                                                                      * * * - *

                                                                                                                                      GetIamPolicy - *

                                                                                                                                      Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. + *

                                                                                                                                      UpdateGatewaySecurityPolicy + *

                                                                                                                                      Updates the parameters of a single GatewaySecurityPolicy. * *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • getIamPolicy(GetIamPolicyRequest request) + *

                                                                                                                                      • updateGatewaySecurityPolicyAsync(UpdateGatewaySecurityPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateGatewaySecurityPolicyAsync(GatewaySecurityPolicy gatewaySecurityPolicy, FieldMask updateMask) *

                                                                                                                                      *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • getIamPolicyCallable() + *

                                                                                                                                      • updateGatewaySecurityPolicyOperationCallable() + *

                                                                                                                                      • updateGatewaySecurityPolicyCallable() *

                                                                                                                                      * * * - *

                                                                                                                                      TestIamPermissions - *

                                                                                                                                      Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. - *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. + *

                                                                                                                                      DeleteGatewaySecurityPolicy + *

                                                                                                                                      Deletes a single GatewaySecurityPolicy. * *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • testIamPermissions(TestIamPermissionsRequest request) + *

                                                                                                                                      • deleteGatewaySecurityPolicyAsync(DeleteGatewaySecurityPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteGatewaySecurityPolicyAsync(GatewaySecurityPolicyName name) + *

                                                                                                                                      • deleteGatewaySecurityPolicyAsync(String name) *

                                                                                                                                      *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      *
                                                                                                                                        - *
                                                                                                                                      • testIamPermissionsCallable() + *

                                                                                                                                      • deleteGatewaySecurityPolicyOperationCallable() + *

                                                                                                                                      • deleteGatewaySecurityPolicyCallable() *

                                                                                                                                      * * - * - * - *

                                                                                                                                      See the individual methods for example code. - * - *

                                                                                                                                      Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

                                                                                                                                      This class can be customized by passing in a custom instance of NetworkSecuritySettings to - * create(). For example: - * - *

                                                                                                                                      To customize credentials: - * - *

                                                                                                                                      {@code
                                                                                                                                      - * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      - * // It will require modifications to work:
                                                                                                                                      - * // - It may require correct/in-range values for request initialization.
                                                                                                                                      - * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      - * NetworkSecuritySettings networkSecuritySettings =
                                                                                                                                      - *     NetworkSecuritySettings.newBuilder()
                                                                                                                                      - *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                                                                                                                      - *         .build();
                                                                                                                                      - * NetworkSecurityClient networkSecurityClient =
                                                                                                                                      - *     NetworkSecurityClient.create(networkSecuritySettings);
                                                                                                                                      - * }
                                                                                                                                      - * - *

                                                                                                                                      To customize the endpoint: - * - *

                                                                                                                                      {@code
                                                                                                                                      - * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      - * // It will require modifications to work:
                                                                                                                                      - * // - It may require correct/in-range values for request initialization.
                                                                                                                                      - * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      - * NetworkSecuritySettings networkSecuritySettings =
                                                                                                                                      - *     NetworkSecuritySettings.newBuilder().setEndpoint(myEndpoint).build();
                                                                                                                                      - * NetworkSecurityClient networkSecurityClient =
                                                                                                                                      - *     NetworkSecurityClient.create(networkSecuritySettings);
                                                                                                                                      - * }
                                                                                                                                      - * - *

                                                                                                                                      Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class NetworkSecurityClient implements BackgroundResource { - private final NetworkSecuritySettings settings; - private final NetworkSecurityStub stub; - private final OperationsClient operationsClient; - - /** Constructs an instance of NetworkSecurityClient with default settings. */ - public static final NetworkSecurityClient create() throws IOException { - return create(NetworkSecuritySettings.newBuilder().build()); - } - - /** - * Constructs an instance of NetworkSecurityClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final NetworkSecurityClient create(NetworkSecuritySettings settings) - throws IOException { - return new NetworkSecurityClient(settings); - } - - /** - * Constructs an instance of NetworkSecurityClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(NetworkSecuritySettings). - */ - public static final NetworkSecurityClient create(NetworkSecurityStub stub) { - return new NetworkSecurityClient(stub); - } - - /** - * Constructs an instance of NetworkSecurityClient, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected NetworkSecurityClient(NetworkSecuritySettings settings) throws IOException { - this.settings = settings; - this.stub = ((NetworkSecurityStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - protected NetworkSecurityClient(NetworkSecurityStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final NetworkSecuritySettings getSettings() { - return settings; - } - - public NetworkSecurityStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists AuthorizationPolicies in a given project and location. - * - *

                                                                                                                                      Sample code: - * - *

                                                                                                                                      {@code
                                                                                                                                      -   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      -   * // It will require modifications to work:
                                                                                                                                      -   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      -   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      -   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      -   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      -   *   for (AuthorizationPolicy element :
                                                                                                                                      -   *       networkSecurityClient.listAuthorizationPolicies(parent).iterateAll()) {
                                                                                                                                      + *    
                                                                                                                                      + *      

                                                                                                                                      ListGatewaySecurityPolicyRules + *

                                                                                                                                      Lists GatewaySecurityPolicyRules in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listGatewaySecurityPolicyRules(ListGatewaySecurityPolicyRulesRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listGatewaySecurityPolicyRules(GatewaySecurityPolicyName parent) + *

                                                                                                                                      • listGatewaySecurityPolicyRules(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listGatewaySecurityPolicyRulesPagedCallable() + *

                                                                                                                                      • listGatewaySecurityPolicyRulesCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      GetGatewaySecurityPolicyRule + *

                                                                                                                                      Gets details of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getGatewaySecurityPolicyRule(GetGatewaySecurityPolicyRuleRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getGatewaySecurityPolicyRule(GatewaySecurityPolicyRuleName name) + *

                                                                                                                                      • getGatewaySecurityPolicyRule(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getGatewaySecurityPolicyRuleCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      CreateGatewaySecurityPolicyRule + *

                                                                                                                                      Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createGatewaySecurityPolicyRuleAsync(CreateGatewaySecurityPolicyRuleRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyName parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, String gatewaySecurityPolicyRuleId) + *

                                                                                                                                      • createGatewaySecurityPolicyRuleAsync(String parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, String gatewaySecurityPolicyRuleId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createGatewaySecurityPolicyRuleOperationCallable() + *

                                                                                                                                      • createGatewaySecurityPolicyRuleCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      UpdateGatewaySecurityPolicyRule + *

                                                                                                                                      Updates the parameters of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateGatewaySecurityPolicyRuleAsync(UpdateGatewaySecurityPolicyRuleRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRule gatewaySecurityPolicyRule, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateGatewaySecurityPolicyRuleOperationCallable() + *

                                                                                                                                      • updateGatewaySecurityPolicyRuleCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      DeleteGatewaySecurityPolicyRule + *

                                                                                                                                      Deletes a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteGatewaySecurityPolicyRuleAsync(DeleteGatewaySecurityPolicyRuleRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName name) + *

                                                                                                                                      • deleteGatewaySecurityPolicyRuleAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteGatewaySecurityPolicyRuleOperationCallable() + *

                                                                                                                                      • deleteGatewaySecurityPolicyRuleCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      ListUrlLists + *

                                                                                                                                      Lists UrlLists in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listUrlLists(ListUrlListsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listUrlLists(LocationName parent) + *

                                                                                                                                      • listUrlLists(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listUrlListsPagedCallable() + *

                                                                                                                                      • listUrlListsCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      GetUrlList + *

                                                                                                                                      Gets details of a single UrlList. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getUrlList(GetUrlListRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getUrlList(UrlListName name) + *

                                                                                                                                      • getUrlList(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getUrlListCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      CreateUrlList + *

                                                                                                                                      Creates a new UrlList in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createUrlListAsync(CreateUrlListRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createUrlListAsync(LocationName parent, UrlList urlList, String urlListId) + *

                                                                                                                                      • createUrlListAsync(String parent, UrlList urlList, String urlListId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createUrlListOperationCallable() + *

                                                                                                                                      • createUrlListCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      UpdateUrlList + *

                                                                                                                                      Updates the parameters of a single UrlList. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateUrlListAsync(UpdateUrlListRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateUrlListAsync(UrlList urlList, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateUrlListOperationCallable() + *

                                                                                                                                      • updateUrlListCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      DeleteUrlList + *

                                                                                                                                      Deletes a single UrlList. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteUrlListAsync(DeleteUrlListRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteUrlListAsync(UrlListName name) + *

                                                                                                                                      • deleteUrlListAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteUrlListOperationCallable() + *

                                                                                                                                      • deleteUrlListCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      ListTlsInspectionPolicies + *

                                                                                                                                      Lists TlsInspectionPolicies in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listTlsInspectionPolicies(ListTlsInspectionPoliciesRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listTlsInspectionPolicies(LocationName parent) + *

                                                                                                                                      • listTlsInspectionPolicies(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listTlsInspectionPoliciesPagedCallable() + *

                                                                                                                                      • listTlsInspectionPoliciesCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      GetTlsInspectionPolicy + *

                                                                                                                                      Gets details of a single TlsInspectionPolicy. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getTlsInspectionPolicy(GetTlsInspectionPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getTlsInspectionPolicy(TlsInspectionPolicyName name) + *

                                                                                                                                      • getTlsInspectionPolicy(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getTlsInspectionPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      CreateTlsInspectionPolicy + *

                                                                                                                                      Creates a new TlsInspectionPolicy in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createTlsInspectionPolicyAsync(CreateTlsInspectionPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createTlsInspectionPolicyAsync(LocationName parent, TlsInspectionPolicy tlsInspectionPolicy, String tlsInspectionPolicyId) + *

                                                                                                                                      • createTlsInspectionPolicyAsync(String parent, TlsInspectionPolicy tlsInspectionPolicy, String tlsInspectionPolicyId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createTlsInspectionPolicyOperationCallable() + *

                                                                                                                                      • createTlsInspectionPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      UpdateTlsInspectionPolicy + *

                                                                                                                                      Updates the parameters of a single TlsInspectionPolicy. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateTlsInspectionPolicyAsync(UpdateTlsInspectionPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateTlsInspectionPolicyAsync(TlsInspectionPolicy tlsInspectionPolicy, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateTlsInspectionPolicyOperationCallable() + *

                                                                                                                                      • updateTlsInspectionPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      DeleteTlsInspectionPolicy + *

                                                                                                                                      Deletes a single TlsInspectionPolicy. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteTlsInspectionPolicyAsync(DeleteTlsInspectionPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteTlsInspectionPolicyAsync(TlsInspectionPolicyName name) + *

                                                                                                                                      • deleteTlsInspectionPolicyAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteTlsInspectionPolicyOperationCallable() + *

                                                                                                                                      • deleteTlsInspectionPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      ListAuthzPolicies + *

                                                                                                                                      Lists AuthzPolicies in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listAuthzPolicies(ListAuthzPoliciesRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listAuthzPolicies(LocationName parent) + *

                                                                                                                                      • listAuthzPolicies(String parent) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listAuthzPoliciesPagedCallable() + *

                                                                                                                                      • listAuthzPoliciesCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      GetAuthzPolicy + *

                                                                                                                                      Gets details of a single AuthzPolicy. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getAuthzPolicy(GetAuthzPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getAuthzPolicy(AuthzPolicyName name) + *

                                                                                                                                      • getAuthzPolicy(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getAuthzPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      CreateAuthzPolicy + *

                                                                                                                                      Creates a new AuthzPolicy in a given project and location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createAuthzPolicyAsync(CreateAuthzPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createAuthzPolicyAsync(LocationName parent, AuthzPolicy authzPolicy, String authzPolicyId) + *

                                                                                                                                      • createAuthzPolicyAsync(String parent, AuthzPolicy authzPolicy, String authzPolicyId) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • createAuthzPolicyOperationCallable() + *

                                                                                                                                      • createAuthzPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      UpdateAuthzPolicy + *

                                                                                                                                      Updates the parameters of a single AuthzPolicy. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateAuthzPolicyAsync(UpdateAuthzPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateAuthzPolicyAsync(AuthzPolicy authzPolicy, FieldMask updateMask) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • updateAuthzPolicyOperationCallable() + *

                                                                                                                                      • updateAuthzPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      DeleteAuthzPolicy + *

                                                                                                                                      Deletes a single AuthzPolicy. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteAuthzPolicyAsync(DeleteAuthzPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteAuthzPolicyAsync(AuthzPolicyName name) + *

                                                                                                                                      • deleteAuthzPolicyAsync(String name) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • deleteAuthzPolicyOperationCallable() + *

                                                                                                                                      • deleteAuthzPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      ListLocations + *

                                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocations(ListLocationsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • listLocationsPagedCallable() + *

                                                                                                                                      • listLocationsCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      GetLocation + *

                                                                                                                                      Gets information about a location. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocation(GetLocationRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getLocationCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      SetIamPolicy + *

                                                                                                                                      Sets the access control policy on the specified resource. Replacesany existing policy. + *

                                                                                                                                      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicy(SetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • setIamPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      GetIamPolicy + *

                                                                                                                                      Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicy(GetIamPolicyRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • getIamPolicyCallable() + *

                                                                                                                                      + * + * + * + *

                                                                                                                                      TestIamPermissions + *

                                                                                                                                      Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

                                                                                                                                      Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. + * + *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissions(TestIamPermissionsRequest request) + *

                                                                                                                                      + *

                                                                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                                                                      + *
                                                                                                                                        + *
                                                                                                                                      • testIamPermissionsCallable() + *

                                                                                                                                      + * + * + * + * + *

                                                                                                                                      See the individual methods for example code. + * + *

                                                                                                                                      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                                                                                                                      This class can be customized by passing in a custom instance of NetworkSecuritySettings to + * create(). For example: + * + *

                                                                                                                                      To customize credentials: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * NetworkSecuritySettings networkSecuritySettings =
                                                                                                                                      + *     NetworkSecuritySettings.newBuilder()
                                                                                                                                      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                                                                                                                      + *         .build();
                                                                                                                                      + * NetworkSecurityClient networkSecurityClient =
                                                                                                                                      + *     NetworkSecurityClient.create(networkSecuritySettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      To customize the endpoint: + * + *

                                                                                                                                      {@code
                                                                                                                                      + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      + * // It will require modifications to work:
                                                                                                                                      + * // - It may require correct/in-range values for request initialization.
                                                                                                                                      + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      + * NetworkSecuritySettings networkSecuritySettings =
                                                                                                                                      + *     NetworkSecuritySettings.newBuilder().setEndpoint(myEndpoint).build();
                                                                                                                                      + * NetworkSecurityClient networkSecurityClient =
                                                                                                                                      + *     NetworkSecurityClient.create(networkSecuritySettings);
                                                                                                                                      + * }
                                                                                                                                      + * + *

                                                                                                                                      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class NetworkSecurityClient implements BackgroundResource { + private final NetworkSecuritySettings settings; + private final NetworkSecurityStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of NetworkSecurityClient with default settings. */ + public static final NetworkSecurityClient create() throws IOException { + return create(NetworkSecuritySettings.newBuilder().build()); + } + + /** + * Constructs an instance of NetworkSecurityClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final NetworkSecurityClient create(NetworkSecuritySettings settings) + throws IOException { + return new NetworkSecurityClient(settings); + } + + /** + * Constructs an instance of NetworkSecurityClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(NetworkSecuritySettings). + */ + public static final NetworkSecurityClient create(NetworkSecurityStub stub) { + return new NetworkSecurityClient(stub); + } + + /** + * Constructs an instance of NetworkSecurityClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected NetworkSecurityClient(NetworkSecuritySettings settings) throws IOException { + this.settings = settings; + this.stub = ((NetworkSecurityStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected NetworkSecurityClient(NetworkSecurityStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final NetworkSecuritySettings getSettings() { + return settings; + } + + public NetworkSecurityStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthorizationPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (AuthorizationPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listAuthorizationPolicies(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the AuthorizationPolicies should be + * listed, specified in the format `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( + LocationName parent) { + ListAuthorizationPoliciesRequest request = + ListAuthorizationPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAuthorizationPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthorizationPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (AuthorizationPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listAuthorizationPolicies(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the AuthorizationPolicies should be + * listed, specified in the format `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies(String parent) { + ListAuthorizationPoliciesRequest request = + ListAuthorizationPoliciesRequest.newBuilder().setParent(parent).build(); + return listAuthorizationPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthorizationPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListAuthorizationPoliciesRequest request =
                                                                                                                                      +   *       ListAuthorizationPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (AuthorizationPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listAuthorizationPolicies(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( + ListAuthorizationPoliciesRequest request) { + return listAuthorizationPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthorizationPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListAuthorizationPoliciesRequest request =
                                                                                                                                      +   *       ListAuthorizationPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.listAuthorizationPoliciesPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (AuthorizationPolicy element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesPagedResponse> + listAuthorizationPoliciesPagedCallable() { + return stub.listAuthorizationPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthorizationPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListAuthorizationPoliciesRequest request =
                                                                                                                                      +   *       ListAuthorizationPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListAuthorizationPoliciesResponse response =
                                                                                                                                      +   *         networkSecurityClient.listAuthorizationPoliciesCallable().call(request);
                                                                                                                                      +   *     for (AuthorizationPolicy element : response.getAuthorizationPoliciesList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listAuthorizationPoliciesCallable() { + return stub.listAuthorizationPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   AuthorizationPolicyName name =
                                                                                                                                      +   *       AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
                                                                                                                                      +   *   AuthorizationPolicy response = networkSecurityClient.getAuthorizationPolicy(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the AuthorizationPolicy to get. Must be in the format + * `projects/{project}/locations/{location}/authorizationPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthorizationPolicy getAuthorizationPolicy(AuthorizationPolicyName name) { + GetAuthorizationPolicyRequest request = + GetAuthorizationPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAuthorizationPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   AuthorizationPolicy response = networkSecurityClient.getAuthorizationPolicy(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the AuthorizationPolicy to get. Must be in the format + * `projects/{project}/locations/{location}/authorizationPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthorizationPolicy getAuthorizationPolicy(String name) { + GetAuthorizationPolicyRequest request = + GetAuthorizationPolicyRequest.newBuilder().setName(name).build(); + return getAuthorizationPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetAuthorizationPolicyRequest request =
                                                                                                                                      +   *       GetAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   AuthorizationPolicy response = networkSecurityClient.getAuthorizationPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRequest request) { + return getAuthorizationPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetAuthorizationPolicyRequest request =
                                                                                                                                      +   *       GetAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.getAuthorizationPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   AuthorizationPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getAuthorizationPolicyCallable() { + return stub.getAuthorizationPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthorizationPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build();
                                                                                                                                      +   *   String authorizationPolicyId = "authorizationPolicyId1314252166";
                                                                                                                                      +   *   AuthorizationPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the AuthorizationPolicy. Must be in the format + * `projects/{project}/locations/{location}`. + * @param authorizationPolicy Required. AuthorizationPolicy resource to be created. + * @param authorizationPolicyId Required. Short name of the AuthorizationPolicy resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. "authz_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createAuthorizationPolicyAsync( + LocationName parent, + AuthorizationPolicy authorizationPolicy, + String authorizationPolicyId) { + CreateAuthorizationPolicyRequest request = + CreateAuthorizationPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAuthorizationPolicy(authorizationPolicy) + .setAuthorizationPolicyId(authorizationPolicyId) + .build(); + return createAuthorizationPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthorizationPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build();
                                                                                                                                      +   *   String authorizationPolicyId = "authorizationPolicyId1314252166";
                                                                                                                                      +   *   AuthorizationPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the AuthorizationPolicy. Must be in the format + * `projects/{project}/locations/{location}`. + * @param authorizationPolicy Required. AuthorizationPolicy resource to be created. + * @param authorizationPolicyId Required. Short name of the AuthorizationPolicy resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. "authz_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createAuthorizationPolicyAsync( + String parent, AuthorizationPolicy authorizationPolicy, String authorizationPolicyId) { + CreateAuthorizationPolicyRequest request = + CreateAuthorizationPolicyRequest.newBuilder() + .setParent(parent) + .setAuthorizationPolicy(authorizationPolicy) + .setAuthorizationPolicyId(authorizationPolicyId) + .build(); + return createAuthorizationPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthorizationPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateAuthorizationPolicyRequest request =
                                                                                                                                      +   *       CreateAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setAuthorizationPolicyId("authorizationPolicyId1314252166")
                                                                                                                                      +   *           .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   AuthorizationPolicy response =
                                                                                                                                      +   *       networkSecurityClient.createAuthorizationPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createAuthorizationPolicyAsync(CreateAuthorizationPolicyRequest request) { + return createAuthorizationPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthorizationPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateAuthorizationPolicyRequest request =
                                                                                                                                      +   *       CreateAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setAuthorizationPolicyId("authorizationPolicyId1314252166")
                                                                                                                                      +   *           .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.createAuthorizationPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   AuthorizationPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateAuthorizationPolicyRequest, AuthorizationPolicy, OperationMetadata> + createAuthorizationPolicyOperationCallable() { + return stub.createAuthorizationPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthorizationPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateAuthorizationPolicyRequest request =
                                                                                                                                      +   *       CreateAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setAuthorizationPolicyId("authorizationPolicyId1314252166")
                                                                                                                                      +   *           .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.createAuthorizationPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createAuthorizationPolicyCallable() { + return stub.createAuthorizationPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   AuthorizationPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .updateAuthorizationPolicyAsync(authorizationPolicy, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param authorizationPolicy Required. Updated AuthorizationPolicy resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * AuthorizationPolicy resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateAuthorizationPolicyAsync( + AuthorizationPolicy authorizationPolicy, FieldMask updateMask) { + UpdateAuthorizationPolicyRequest request = + UpdateAuthorizationPolicyRequest.newBuilder() + .setAuthorizationPolicy(authorizationPolicy) + .setUpdateMask(updateMask) + .build(); + return updateAuthorizationPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateAuthorizationPolicyRequest request =
                                                                                                                                      +   *       UpdateAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   AuthorizationPolicy response =
                                                                                                                                      +   *       networkSecurityClient.updateAuthorizationPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateAuthorizationPolicyAsync(UpdateAuthorizationPolicyRequest request) { + return updateAuthorizationPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateAuthorizationPolicyRequest request =
                                                                                                                                      +   *       UpdateAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateAuthorizationPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   AuthorizationPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateAuthorizationPolicyRequest, AuthorizationPolicy, OperationMetadata> + updateAuthorizationPolicyOperationCallable() { + return stub.updateAuthorizationPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateAuthorizationPolicyRequest request =
                                                                                                                                      +   *       UpdateAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateAuthorizationPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateAuthorizationPolicyCallable() { + return stub.updateAuthorizationPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   AuthorizationPolicyName name =
                                                                                                                                      +   *       AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
                                                                                                                                      +   *   networkSecurityClient.deleteAuthorizationPolicyAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the AuthorizationPolicy to delete. Must be in the format + * `projects/{project}/locations/{location}/authorizationPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAuthorizationPolicyAsync( + AuthorizationPolicyName name) { + DeleteAuthorizationPolicyRequest request = + DeleteAuthorizationPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAuthorizationPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   networkSecurityClient.deleteAuthorizationPolicyAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the AuthorizationPolicy to delete. Must be in the format + * `projects/{project}/locations/{location}/authorizationPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAuthorizationPolicyAsync( + String name) { + DeleteAuthorizationPolicyRequest request = + DeleteAuthorizationPolicyRequest.newBuilder().setName(name).build(); + return deleteAuthorizationPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteAuthorizationPolicyRequest request =
                                                                                                                                      +   *       DeleteAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   networkSecurityClient.deleteAuthorizationPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAuthorizationPolicyAsync( + DeleteAuthorizationPolicyRequest request) { + return deleteAuthorizationPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteAuthorizationPolicyRequest request =
                                                                                                                                      +   *       DeleteAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteAuthorizationPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteAuthorizationPolicyOperationCallable() { + return stub.deleteAuthorizationPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthorizationPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteAuthorizationPolicyRequest request =
                                                                                                                                      +   *       DeleteAuthorizationPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteAuthorizationPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteAuthorizationPolicyCallable() { + return stub.deleteAuthorizationPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BackendAuthenticationConfigs in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (BackendAuthenticationConfig element :
                                                                                                                                      +   *       networkSecurityClient.listBackendAuthenticationConfigs(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the BackendAuthenticationConfigs + * should be listed, specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackendAuthenticationConfigsPagedResponse listBackendAuthenticationConfigs( + LocationName parent) { + ListBackendAuthenticationConfigsRequest request = + ListBackendAuthenticationConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackendAuthenticationConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BackendAuthenticationConfigs in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (BackendAuthenticationConfig element :
                                                                                                                                      +   *       networkSecurityClient.listBackendAuthenticationConfigs(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the BackendAuthenticationConfigs + * should be listed, specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackendAuthenticationConfigsPagedResponse listBackendAuthenticationConfigs( + String parent) { + ListBackendAuthenticationConfigsRequest request = + ListBackendAuthenticationConfigsRequest.newBuilder().setParent(parent).build(); + return listBackendAuthenticationConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BackendAuthenticationConfigs in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListBackendAuthenticationConfigsRequest request =
                                                                                                                                      +   *       ListBackendAuthenticationConfigsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (BackendAuthenticationConfig element :
                                                                                                                                      +   *       networkSecurityClient.listBackendAuthenticationConfigs(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackendAuthenticationConfigsPagedResponse listBackendAuthenticationConfigs( + ListBackendAuthenticationConfigsRequest request) { + return listBackendAuthenticationConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BackendAuthenticationConfigs in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListBackendAuthenticationConfigsRequest request =
                                                                                                                                      +   *       ListBackendAuthenticationConfigsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.listBackendAuthenticationConfigsPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (BackendAuthenticationConfig element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsPagedResponse> + listBackendAuthenticationConfigsPagedCallable() { + return stub.listBackendAuthenticationConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BackendAuthenticationConfigs in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListBackendAuthenticationConfigsRequest request =
                                                                                                                                      +   *       ListBackendAuthenticationConfigsRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListBackendAuthenticationConfigsResponse response =
                                                                                                                                      +   *         networkSecurityClient.listBackendAuthenticationConfigsCallable().call(request);
                                                                                                                                      +   *     for (BackendAuthenticationConfig element : response.getBackendAuthenticationConfigsList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse> + listBackendAuthenticationConfigsCallable() { + return stub.listBackendAuthenticationConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   BackendAuthenticationConfigName name =
                                                                                                                                      +   *       BackendAuthenticationConfigName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]");
                                                                                                                                      +   *   BackendAuthenticationConfig response =
                                                                                                                                      +   *       networkSecurityClient.getBackendAuthenticationConfig(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the BackendAuthenticationConfig to get. Must be in the format + * `projects/*/locations/{location}/backendAuthenticationConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackendAuthenticationConfig getBackendAuthenticationConfig( + BackendAuthenticationConfigName name) { + GetBackendAuthenticationConfigRequest request = + GetBackendAuthenticationConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getBackendAuthenticationConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       BackendAuthenticationConfigName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   BackendAuthenticationConfig response =
                                                                                                                                      +   *       networkSecurityClient.getBackendAuthenticationConfig(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the BackendAuthenticationConfig to get. Must be in the format + * `projects/*/locations/{location}/backendAuthenticationConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackendAuthenticationConfig getBackendAuthenticationConfig(String name) { + GetBackendAuthenticationConfigRequest request = + GetBackendAuthenticationConfigRequest.newBuilder().setName(name).build(); + return getBackendAuthenticationConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       GetBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               BackendAuthenticationConfigName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   BackendAuthenticationConfig response =
                                                                                                                                      +   *       networkSecurityClient.getBackendAuthenticationConfig(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackendAuthenticationConfig getBackendAuthenticationConfig( + GetBackendAuthenticationConfigRequest request) { + return getBackendAuthenticationConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       GetBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               BackendAuthenticationConfigName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.getBackendAuthenticationConfigCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   BackendAuthenticationConfig response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getBackendAuthenticationConfigCallable() { + return stub.getBackendAuthenticationConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new BackendAuthenticationConfig in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   BackendAuthenticationConfig backendAuthenticationConfig =
                                                                                                                                      +   *       BackendAuthenticationConfig.newBuilder().build();
                                                                                                                                      +   *   String backendAuthenticationConfigId = "backendAuthenticationConfigId-396698039";
                                                                                                                                      +   *   BackendAuthenticationConfig response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createBackendAuthenticationConfigAsync(
                                                                                                                                      +   *               parent, backendAuthenticationConfig, backendAuthenticationConfigId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the BackendAuthenticationConfig. Must be in the + * format `projects/*/locations/{location}`. + * @param backendAuthenticationConfig Required. BackendAuthenticationConfig resource to be + * created. + * @param backendAuthenticationConfigId Required. Short name of the BackendAuthenticationConfig + * resource to be created. This value should be 1-63 characters long, containing only letters, + * numbers, hyphens, and underscores, and should not start with a number. E.g. + * "backend-auth-config". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createBackendAuthenticationConfigAsync( + LocationName parent, + BackendAuthenticationConfig backendAuthenticationConfig, + String backendAuthenticationConfigId) { + CreateBackendAuthenticationConfigRequest request = + CreateBackendAuthenticationConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBackendAuthenticationConfig(backendAuthenticationConfig) + .setBackendAuthenticationConfigId(backendAuthenticationConfigId) + .build(); + return createBackendAuthenticationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new BackendAuthenticationConfig in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   BackendAuthenticationConfig backendAuthenticationConfig =
                                                                                                                                      +   *       BackendAuthenticationConfig.newBuilder().build();
                                                                                                                                      +   *   String backendAuthenticationConfigId = "backendAuthenticationConfigId-396698039";
                                                                                                                                      +   *   BackendAuthenticationConfig response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createBackendAuthenticationConfigAsync(
                                                                                                                                      +   *               parent, backendAuthenticationConfig, backendAuthenticationConfigId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the BackendAuthenticationConfig. Must be in the + * format `projects/*/locations/{location}`. + * @param backendAuthenticationConfig Required. BackendAuthenticationConfig resource to be + * created. + * @param backendAuthenticationConfigId Required. Short name of the BackendAuthenticationConfig + * resource to be created. This value should be 1-63 characters long, containing only letters, + * numbers, hyphens, and underscores, and should not start with a number. E.g. + * "backend-auth-config". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createBackendAuthenticationConfigAsync( + String parent, + BackendAuthenticationConfig backendAuthenticationConfig, + String backendAuthenticationConfigId) { + CreateBackendAuthenticationConfigRequest request = + CreateBackendAuthenticationConfigRequest.newBuilder() + .setParent(parent) + .setBackendAuthenticationConfig(backendAuthenticationConfig) + .setBackendAuthenticationConfigId(backendAuthenticationConfigId) + .build(); + return createBackendAuthenticationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new BackendAuthenticationConfig in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       CreateBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setBackendAuthenticationConfigId("backendAuthenticationConfigId-396698039")
                                                                                                                                      +   *           .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   BackendAuthenticationConfig response =
                                                                                                                                      +   *       networkSecurityClient.createBackendAuthenticationConfigAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createBackendAuthenticationConfigAsync(CreateBackendAuthenticationConfigRequest request) { + return createBackendAuthenticationConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new BackendAuthenticationConfig in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       CreateBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setBackendAuthenticationConfigId("backendAuthenticationConfigId-396698039")
                                                                                                                                      +   *           .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createBackendAuthenticationConfigOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   BackendAuthenticationConfig response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + createBackendAuthenticationConfigOperationCallable() { + return stub.createBackendAuthenticationConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new BackendAuthenticationConfig in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       CreateBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setBackendAuthenticationConfigId("backendAuthenticationConfigId-396698039")
                                                                                                                                      +   *           .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.createBackendAuthenticationConfigCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createBackendAuthenticationConfigCallable() { + return stub.createBackendAuthenticationConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   BackendAuthenticationConfig backendAuthenticationConfig =
                                                                                                                                      +   *       BackendAuthenticationConfig.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   BackendAuthenticationConfig response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .updateBackendAuthenticationConfigAsync(backendAuthenticationConfig, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param backendAuthenticationConfig Required. Updated BackendAuthenticationConfig resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * BackendAuthenticationConfig resource by the update. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be overwritten if it is in + * the mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateBackendAuthenticationConfigAsync( + BackendAuthenticationConfig backendAuthenticationConfig, FieldMask updateMask) { + UpdateBackendAuthenticationConfigRequest request = + UpdateBackendAuthenticationConfigRequest.newBuilder() + .setBackendAuthenticationConfig(backendAuthenticationConfig) + .setUpdateMask(updateMask) + .build(); + return updateBackendAuthenticationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       UpdateBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   BackendAuthenticationConfig response =
                                                                                                                                      +   *       networkSecurityClient.updateBackendAuthenticationConfigAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateBackendAuthenticationConfigAsync(UpdateBackendAuthenticationConfigRequest request) { + return updateBackendAuthenticationConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       UpdateBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .updateBackendAuthenticationConfigOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   BackendAuthenticationConfig response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + updateBackendAuthenticationConfigOperationCallable() { + return stub.updateBackendAuthenticationConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       UpdateBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateBackendAuthenticationConfigCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateBackendAuthenticationConfigCallable() { + return stub.updateBackendAuthenticationConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   BackendAuthenticationConfigName name =
                                                                                                                                      +   *       BackendAuthenticationConfigName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]");
                                                                                                                                      +   *   networkSecurityClient.deleteBackendAuthenticationConfigAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the BackendAuthenticationConfig to delete. Must be in the + * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackendAuthenticationConfigAsync( + BackendAuthenticationConfigName name) { + DeleteBackendAuthenticationConfigRequest request = + DeleteBackendAuthenticationConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteBackendAuthenticationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       BackendAuthenticationConfigName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   networkSecurityClient.deleteBackendAuthenticationConfigAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the BackendAuthenticationConfig to delete. Must be in the + * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackendAuthenticationConfigAsync( + String name) { + DeleteBackendAuthenticationConfigRequest request = + DeleteBackendAuthenticationConfigRequest.newBuilder().setName(name).build(); + return deleteBackendAuthenticationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       DeleteBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               BackendAuthenticationConfigName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setEtag("etag3123477")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   networkSecurityClient.deleteBackendAuthenticationConfigAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackendAuthenticationConfigAsync( + DeleteBackendAuthenticationConfigRequest request) { + return deleteBackendAuthenticationConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       DeleteBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               BackendAuthenticationConfigName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setEtag("etag3123477")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .deleteBackendAuthenticationConfigOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteBackendAuthenticationConfigOperationCallable() { + return stub.deleteBackendAuthenticationConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteBackendAuthenticationConfigRequest request =
                                                                                                                                      +   *       DeleteBackendAuthenticationConfigRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               BackendAuthenticationConfigName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setEtag("etag3123477")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteBackendAuthenticationConfigCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteBackendAuthenticationConfigCallable() { + return stub.deleteBackendAuthenticationConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ServerTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (ServerTlsPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listServerTlsPolicies(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the ServerTlsPolicies should be + * listed, specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(LocationName parent) { + ListServerTlsPoliciesRequest request = + ListServerTlsPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listServerTlsPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ServerTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (ServerTlsPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listServerTlsPolicies(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the ServerTlsPolicies should be + * listed, specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(String parent) { + ListServerTlsPoliciesRequest request = + ListServerTlsPoliciesRequest.newBuilder().setParent(parent).build(); + return listServerTlsPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ServerTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListServerTlsPoliciesRequest request =
                                                                                                                                      +   *       ListServerTlsPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setReturnPartialSuccess(true)
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (ServerTlsPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listServerTlsPolicies(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( + ListServerTlsPoliciesRequest request) { + return listServerTlsPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ServerTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListServerTlsPoliciesRequest request =
                                                                                                                                      +   *       ListServerTlsPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setReturnPartialSuccess(true)
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.listServerTlsPoliciesPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (ServerTlsPolicy element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listServerTlsPoliciesPagedCallable() { + return stub.listServerTlsPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ServerTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListServerTlsPoliciesRequest request =
                                                                                                                                      +   *       ListServerTlsPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .setReturnPartialSuccess(true)
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListServerTlsPoliciesResponse response =
                                                                                                                                      +   *         networkSecurityClient.listServerTlsPoliciesCallable().call(request);
                                                                                                                                      +   *     for (ServerTlsPolicy element : response.getServerTlsPoliciesList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listServerTlsPoliciesCallable() { + return stub.listServerTlsPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ServerTlsPolicyName name =
                                                                                                                                      +   *       ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]");
                                                                                                                                      +   *   ServerTlsPolicy response = networkSecurityClient.getServerTlsPolicy(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the ServerTlsPolicy to get. Must be in the format + * `projects/*/locations/{location}/serverTlsPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServerTlsPolicy getServerTlsPolicy(ServerTlsPolicyName name) { + GetServerTlsPolicyRequest request = + GetServerTlsPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getServerTlsPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString();
                                                                                                                                      +   *   ServerTlsPolicy response = networkSecurityClient.getServerTlsPolicy(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the ServerTlsPolicy to get. Must be in the format + * `projects/*/locations/{location}/serverTlsPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServerTlsPolicy getServerTlsPolicy(String name) { + GetServerTlsPolicyRequest request = + GetServerTlsPolicyRequest.newBuilder().setName(name).build(); + return getServerTlsPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetServerTlsPolicyRequest request =
                                                                                                                                      +   *       GetServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ServerTlsPolicy response = networkSecurityClient.getServerTlsPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest request) { + return getServerTlsPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetServerTlsPolicyRequest request =
                                                                                                                                      +   *       GetServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.getServerTlsPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   ServerTlsPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getServerTlsPolicyCallable() { + return stub.getServerTlsPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ServerTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build();
                                                                                                                                      +   *   String serverTlsPolicyId = "serverTlsPolicyId-1966046011";
                                                                                                                                      +   *   ServerTlsPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the ServerTlsPolicy. Must be in the format + * `projects/*/locations/{location}`. + * @param serverTlsPolicy Required. ServerTlsPolicy resource to be created. + * @param serverTlsPolicyId Required. Short name of the ServerTlsPolicy resource to be created. + * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "server_mtls_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createServerTlsPolicyAsync( + LocationName parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { + CreateServerTlsPolicyRequest request = + CreateServerTlsPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setServerTlsPolicy(serverTlsPolicy) + .setServerTlsPolicyId(serverTlsPolicyId) + .build(); + return createServerTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ServerTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build();
                                                                                                                                      +   *   String serverTlsPolicyId = "serverTlsPolicyId-1966046011";
                                                                                                                                      +   *   ServerTlsPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the ServerTlsPolicy. Must be in the format + * `projects/*/locations/{location}`. + * @param serverTlsPolicy Required. ServerTlsPolicy resource to be created. + * @param serverTlsPolicyId Required. Short name of the ServerTlsPolicy resource to be created. + * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "server_mtls_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createServerTlsPolicyAsync( + String parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { + CreateServerTlsPolicyRequest request = + CreateServerTlsPolicyRequest.newBuilder() + .setParent(parent) + .setServerTlsPolicy(serverTlsPolicy) + .setServerTlsPolicyId(serverTlsPolicyId) + .build(); + return createServerTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ServerTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateServerTlsPolicyRequest request =
                                                                                                                                      +   *       CreateServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setServerTlsPolicyId("serverTlsPolicyId-1966046011")
                                                                                                                                      +   *           .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ServerTlsPolicy response = networkSecurityClient.createServerTlsPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createServerTlsPolicyAsync( + CreateServerTlsPolicyRequest request) { + return createServerTlsPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ServerTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateServerTlsPolicyRequest request =
                                                                                                                                      +   *       CreateServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setServerTlsPolicyId("serverTlsPolicyId-1966046011")
                                                                                                                                      +   *           .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.createServerTlsPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   ServerTlsPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + createServerTlsPolicyOperationCallable() { + return stub.createServerTlsPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ServerTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateServerTlsPolicyRequest request =
                                                                                                                                      +   *       CreateServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setServerTlsPolicyId("serverTlsPolicyId-1966046011")
                                                                                                                                      +   *           .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.createServerTlsPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createServerTlsPolicyCallable() { + return stub.createServerTlsPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   ServerTlsPolicy response =
                                                                                                                                      +   *       networkSecurityClient.updateServerTlsPolicyAsync(serverTlsPolicy, updateMask).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param serverTlsPolicy Required. Updated ServerTlsPolicy resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * ServerTlsPolicy resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateServerTlsPolicyAsync( + ServerTlsPolicy serverTlsPolicy, FieldMask updateMask) { + UpdateServerTlsPolicyRequest request = + UpdateServerTlsPolicyRequest.newBuilder() + .setServerTlsPolicy(serverTlsPolicy) + .setUpdateMask(updateMask) + .build(); + return updateServerTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateServerTlsPolicyRequest request =
                                                                                                                                      +   *       UpdateServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ServerTlsPolicy response = networkSecurityClient.updateServerTlsPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateServerTlsPolicyAsync( + UpdateServerTlsPolicyRequest request) { + return updateServerTlsPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateServerTlsPolicyRequest request =
                                                                                                                                      +   *       UpdateServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateServerTlsPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   ServerTlsPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + updateServerTlsPolicyOperationCallable() { + return stub.updateServerTlsPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateServerTlsPolicyRequest request =
                                                                                                                                      +   *       UpdateServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateServerTlsPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateServerTlsPolicyCallable() { + return stub.updateServerTlsPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ServerTlsPolicyName name =
                                                                                                                                      +   *       ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]");
                                                                                                                                      +   *   networkSecurityClient.deleteServerTlsPolicyAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the ServerTlsPolicy to delete. Must be in the format + * `projects/*/locations/{location}/serverTlsPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteServerTlsPolicyAsync( + ServerTlsPolicyName name) { + DeleteServerTlsPolicyRequest request = + DeleteServerTlsPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteServerTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString();
                                                                                                                                      +   *   networkSecurityClient.deleteServerTlsPolicyAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the ServerTlsPolicy to delete. Must be in the format + * `projects/*/locations/{location}/serverTlsPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteServerTlsPolicyAsync(String name) { + DeleteServerTlsPolicyRequest request = + DeleteServerTlsPolicyRequest.newBuilder().setName(name).build(); + return deleteServerTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteServerTlsPolicyRequest request =
                                                                                                                                      +   *       DeleteServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   networkSecurityClient.deleteServerTlsPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteServerTlsPolicyAsync( + DeleteServerTlsPolicyRequest request) { + return deleteServerTlsPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteServerTlsPolicyRequest request =
                                                                                                                                      +   *       DeleteServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteServerTlsPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteServerTlsPolicyOperationCallable() { + return stub.deleteServerTlsPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ServerTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteServerTlsPolicyRequest request =
                                                                                                                                      +   *       DeleteServerTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteServerTlsPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteServerTlsPolicyCallable() { + return stub.deleteServerTlsPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ClientTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (ClientTlsPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listClientTlsPolicies(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the ClientTlsPolicies should be + * listed, specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(LocationName parent) { + ListClientTlsPoliciesRequest request = + ListClientTlsPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listClientTlsPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ClientTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (ClientTlsPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listClientTlsPolicies(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the ClientTlsPolicies should be + * listed, specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(String parent) { + ListClientTlsPoliciesRequest request = + ListClientTlsPoliciesRequest.newBuilder().setParent(parent).build(); + return listClientTlsPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ClientTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListClientTlsPoliciesRequest request =
                                                                                                                                      +   *       ListClientTlsPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (ClientTlsPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listClientTlsPolicies(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( + ListClientTlsPoliciesRequest request) { + return listClientTlsPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ClientTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListClientTlsPoliciesRequest request =
                                                                                                                                      +   *       ListClientTlsPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.listClientTlsPoliciesPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (ClientTlsPolicy element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listClientTlsPoliciesPagedCallable() { + return stub.listClientTlsPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ClientTlsPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListClientTlsPoliciesRequest request =
                                                                                                                                      +   *       ListClientTlsPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListClientTlsPoliciesResponse response =
                                                                                                                                      +   *         networkSecurityClient.listClientTlsPoliciesCallable().call(request);
                                                                                                                                      +   *     for (ClientTlsPolicy element : response.getClientTlsPoliciesList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + listClientTlsPoliciesCallable() { + return stub.listClientTlsPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ClientTlsPolicyName name =
                                                                                                                                      +   *       ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]");
                                                                                                                                      +   *   ClientTlsPolicy response = networkSecurityClient.getClientTlsPolicy(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the ClientTlsPolicy to get. Must be in the format + * `projects/*/locations/{location}/clientTlsPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ClientTlsPolicy getClientTlsPolicy(ClientTlsPolicyName name) { + GetClientTlsPolicyRequest request = + GetClientTlsPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getClientTlsPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString();
                                                                                                                                      +   *   ClientTlsPolicy response = networkSecurityClient.getClientTlsPolicy(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the ClientTlsPolicy to get. Must be in the format + * `projects/*/locations/{location}/clientTlsPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ClientTlsPolicy getClientTlsPolicy(String name) { + GetClientTlsPolicyRequest request = + GetClientTlsPolicyRequest.newBuilder().setName(name).build(); + return getClientTlsPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetClientTlsPolicyRequest request =
                                                                                                                                      +   *       GetClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ClientTlsPolicy response = networkSecurityClient.getClientTlsPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest request) { + return getClientTlsPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetClientTlsPolicyRequest request =
                                                                                                                                      +   *       GetClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.getClientTlsPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   ClientTlsPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getClientTlsPolicyCallable() { + return stub.getClientTlsPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ClientTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build();
                                                                                                                                      +   *   String clientTlsPolicyId = "clientTlsPolicyId-188933315";
                                                                                                                                      +   *   ClientTlsPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the ClientTlsPolicy. Must be in the format + * `projects/*/locations/{location}`. + * @param clientTlsPolicy Required. ClientTlsPolicy resource to be created. + * @param clientTlsPolicyId Required. Short name of the ClientTlsPolicy resource to be created. + * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "client_mtls_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClientTlsPolicyAsync( + LocationName parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { + CreateClientTlsPolicyRequest request = + CreateClientTlsPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setClientTlsPolicy(clientTlsPolicy) + .setClientTlsPolicyId(clientTlsPolicyId) + .build(); + return createClientTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ClientTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build();
                                                                                                                                      +   *   String clientTlsPolicyId = "clientTlsPolicyId-188933315";
                                                                                                                                      +   *   ClientTlsPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the ClientTlsPolicy. Must be in the format + * `projects/*/locations/{location}`. + * @param clientTlsPolicy Required. ClientTlsPolicy resource to be created. + * @param clientTlsPolicyId Required. Short name of the ClientTlsPolicy resource to be created. + * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "client_mtls_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClientTlsPolicyAsync( + String parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { + CreateClientTlsPolicyRequest request = + CreateClientTlsPolicyRequest.newBuilder() + .setParent(parent) + .setClientTlsPolicy(clientTlsPolicy) + .setClientTlsPolicyId(clientTlsPolicyId) + .build(); + return createClientTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ClientTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateClientTlsPolicyRequest request =
                                                                                                                                      +   *       CreateClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setClientTlsPolicyId("clientTlsPolicyId-188933315")
                                                                                                                                      +   *           .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ClientTlsPolicy response = networkSecurityClient.createClientTlsPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClientTlsPolicyAsync( + CreateClientTlsPolicyRequest request) { + return createClientTlsPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ClientTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateClientTlsPolicyRequest request =
                                                                                                                                      +   *       CreateClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setClientTlsPolicyId("clientTlsPolicyId-188933315")
                                                                                                                                      +   *           .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.createClientTlsPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   ClientTlsPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + createClientTlsPolicyOperationCallable() { + return stub.createClientTlsPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ClientTlsPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateClientTlsPolicyRequest request =
                                                                                                                                      +   *       CreateClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setClientTlsPolicyId("clientTlsPolicyId-188933315")
                                                                                                                                      +   *           .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.createClientTlsPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createClientTlsPolicyCallable() { + return stub.createClientTlsPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   ClientTlsPolicy response =
                                                                                                                                      +   *       networkSecurityClient.updateClientTlsPolicyAsync(clientTlsPolicy, updateMask).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param clientTlsPolicy Required. Updated ClientTlsPolicy resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * ClientTlsPolicy resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateClientTlsPolicyAsync( + ClientTlsPolicy clientTlsPolicy, FieldMask updateMask) { + UpdateClientTlsPolicyRequest request = + UpdateClientTlsPolicyRequest.newBuilder() + .setClientTlsPolicy(clientTlsPolicy) + .setUpdateMask(updateMask) + .build(); + return updateClientTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateClientTlsPolicyRequest request =
                                                                                                                                      +   *       UpdateClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ClientTlsPolicy response = networkSecurityClient.updateClientTlsPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateClientTlsPolicyAsync( + UpdateClientTlsPolicyRequest request) { + return updateClientTlsPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateClientTlsPolicyRequest request =
                                                                                                                                      +   *       UpdateClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateClientTlsPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   ClientTlsPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + updateClientTlsPolicyOperationCallable() { + return stub.updateClientTlsPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateClientTlsPolicyRequest request =
                                                                                                                                      +   *       UpdateClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateClientTlsPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateClientTlsPolicyCallable() { + return stub.updateClientTlsPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ClientTlsPolicyName name =
                                                                                                                                      +   *       ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]");
                                                                                                                                      +   *   networkSecurityClient.deleteClientTlsPolicyAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the ClientTlsPolicy to delete. Must be in the format + * `projects/*/locations/{location}/clientTlsPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClientTlsPolicyAsync( + ClientTlsPolicyName name) { + DeleteClientTlsPolicyRequest request = + DeleteClientTlsPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteClientTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString();
                                                                                                                                      +   *   networkSecurityClient.deleteClientTlsPolicyAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the ClientTlsPolicy to delete. Must be in the format + * `projects/*/locations/{location}/clientTlsPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClientTlsPolicyAsync(String name) { + DeleteClientTlsPolicyRequest request = + DeleteClientTlsPolicyRequest.newBuilder().setName(name).build(); + return deleteClientTlsPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteClientTlsPolicyRequest request =
                                                                                                                                      +   *       DeleteClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   networkSecurityClient.deleteClientTlsPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClientTlsPolicyAsync( + DeleteClientTlsPolicyRequest request) { + return deleteClientTlsPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteClientTlsPolicyRequest request =
                                                                                                                                      +   *       DeleteClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteClientTlsPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteClientTlsPolicyOperationCallable() { + return stub.deleteClientTlsPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ClientTlsPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteClientTlsPolicyRequest request =
                                                                                                                                      +   *       DeleteClientTlsPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteClientTlsPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteClientTlsPolicyCallable() { + return stub.deleteClientTlsPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (GatewaySecurityPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listGatewaySecurityPolicies(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the GatewaySecurityPolicies should + * be listed, specified in the format `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGatewaySecurityPoliciesPagedResponse listGatewaySecurityPolicies( + LocationName parent) { + ListGatewaySecurityPoliciesRequest request = + ListGatewaySecurityPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGatewaySecurityPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   for (GatewaySecurityPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listGatewaySecurityPolicies(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project and location from which the GatewaySecurityPolicies should + * be listed, specified in the format `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGatewaySecurityPoliciesPagedResponse listGatewaySecurityPolicies(String parent) { + ListGatewaySecurityPoliciesRequest request = + ListGatewaySecurityPoliciesRequest.newBuilder().setParent(parent).build(); + return listGatewaySecurityPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListGatewaySecurityPoliciesRequest request =
                                                                                                                                      +   *       ListGatewaySecurityPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (GatewaySecurityPolicy element :
                                                                                                                                      +   *       networkSecurityClient.listGatewaySecurityPolicies(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGatewaySecurityPoliciesPagedResponse listGatewaySecurityPolicies( + ListGatewaySecurityPoliciesRequest request) { + return listGatewaySecurityPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListGatewaySecurityPoliciesRequest request =
                                                                                                                                      +   *       ListGatewaySecurityPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.listGatewaySecurityPoliciesPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (GatewaySecurityPolicy element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesPagedResponse> + listGatewaySecurityPoliciesPagedCallable() { + return stub.listGatewaySecurityPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicies in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListGatewaySecurityPoliciesRequest request =
                                                                                                                                      +   *       ListGatewaySecurityPoliciesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListGatewaySecurityPoliciesResponse response =
                                                                                                                                      +   *         networkSecurityClient.listGatewaySecurityPoliciesCallable().call(request);
                                                                                                                                      +   *     for (GatewaySecurityPolicy element : response.getGatewaySecurityPoliciesList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesResponse> + listGatewaySecurityPoliciesCallable() { + return stub.listGatewaySecurityPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GatewaySecurityPolicyName name =
                                                                                                                                      +   *       GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
                                                                                                                                      +   *   GatewaySecurityPolicy response = networkSecurityClient.getGatewaySecurityPolicy(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the GatewaySecurityPolicy to get. Must be in the format + * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GatewaySecurityPolicy getGatewaySecurityPolicy(GatewaySecurityPolicyName name) { + GetGatewaySecurityPolicyRequest request = + GetGatewaySecurityPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getGatewaySecurityPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   GatewaySecurityPolicy response = networkSecurityClient.getGatewaySecurityPolicy(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the GatewaySecurityPolicy to get. Must be in the format + * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GatewaySecurityPolicy getGatewaySecurityPolicy(String name) { + GetGatewaySecurityPolicyRequest request = + GetGatewaySecurityPolicyRequest.newBuilder().setName(name).build(); + return getGatewaySecurityPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       GetGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   GatewaySecurityPolicy response = networkSecurityClient.getGatewaySecurityPolicy(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GatewaySecurityPolicy getGatewaySecurityPolicy( + GetGatewaySecurityPolicyRequest request) { + return getGatewaySecurityPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       GetGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.getGatewaySecurityPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   GatewaySecurityPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getGatewaySecurityPolicyCallable() { + return stub.getGatewaySecurityPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build();
                                                                                                                                      +   *   String gatewaySecurityPolicyId = "gatewaySecurityPolicyId2047625137";
                                                                                                                                      +   *   GatewaySecurityPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createGatewaySecurityPolicyAsync(
                                                                                                                                      +   *               parent, gatewaySecurityPolicy, gatewaySecurityPolicyId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the GatewaySecurityPolicy. Must be in the format + * `projects/{project}/locations/{location}`. + * @param gatewaySecurityPolicy Required. GatewaySecurityPolicy resource to be created. + * @param gatewaySecurityPolicyId Required. Short name of the GatewaySecurityPolicy resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. + * "gateway_security_policy1". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createGatewaySecurityPolicyAsync( + LocationName parent, + GatewaySecurityPolicy gatewaySecurityPolicy, + String gatewaySecurityPolicyId) { + CreateGatewaySecurityPolicyRequest request = + CreateGatewaySecurityPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGatewaySecurityPolicy(gatewaySecurityPolicy) + .setGatewaySecurityPolicyId(gatewaySecurityPolicyId) + .build(); + return createGatewaySecurityPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
                                                                                                                                      +   *   GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build();
                                                                                                                                      +   *   String gatewaySecurityPolicyId = "gatewaySecurityPolicyId2047625137";
                                                                                                                                      +   *   GatewaySecurityPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createGatewaySecurityPolicyAsync(
                                                                                                                                      +   *               parent, gatewaySecurityPolicy, gatewaySecurityPolicyId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent resource of the GatewaySecurityPolicy. Must be in the format + * `projects/{project}/locations/{location}`. + * @param gatewaySecurityPolicy Required. GatewaySecurityPolicy resource to be created. + * @param gatewaySecurityPolicyId Required. Short name of the GatewaySecurityPolicy resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. + * "gateway_security_policy1". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createGatewaySecurityPolicyAsync( + String parent, + GatewaySecurityPolicy gatewaySecurityPolicy, + String gatewaySecurityPolicyId) { + CreateGatewaySecurityPolicyRequest request = + CreateGatewaySecurityPolicyRequest.newBuilder() + .setParent(parent) + .setGatewaySecurityPolicy(gatewaySecurityPolicy) + .setGatewaySecurityPolicyId(gatewaySecurityPolicyId) + .build(); + return createGatewaySecurityPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       CreateGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setGatewaySecurityPolicyId("gatewaySecurityPolicyId2047625137")
                                                                                                                                      +   *           .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   GatewaySecurityPolicy response =
                                                                                                                                      +   *       networkSecurityClient.createGatewaySecurityPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createGatewaySecurityPolicyAsync(CreateGatewaySecurityPolicyRequest request) { + return createGatewaySecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       CreateGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setGatewaySecurityPolicyId("gatewaySecurityPolicyId2047625137")
                                                                                                                                      +   *           .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.createGatewaySecurityPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   GatewaySecurityPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + createGatewaySecurityPolicyOperationCallable() { + return stub.createGatewaySecurityPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       CreateGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                                                                                                                      +   *           .setGatewaySecurityPolicyId("gatewaySecurityPolicyId2047625137")
                                                                                                                                      +   *           .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.createGatewaySecurityPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createGatewaySecurityPolicyCallable() { + return stub.createGatewaySecurityPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   GatewaySecurityPolicy response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .updateGatewaySecurityPolicyAsync(gatewaySecurityPolicy, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param gatewaySecurityPolicy Required. Updated GatewaySecurityPolicy resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * GatewaySecurityPolicy resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateGatewaySecurityPolicyAsync( + GatewaySecurityPolicy gatewaySecurityPolicy, FieldMask updateMask) { + UpdateGatewaySecurityPolicyRequest request = + UpdateGatewaySecurityPolicyRequest.newBuilder() + .setGatewaySecurityPolicy(gatewaySecurityPolicy) + .setUpdateMask(updateMask) + .build(); + return updateGatewaySecurityPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       UpdateGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   GatewaySecurityPolicy response =
                                                                                                                                      +   *       networkSecurityClient.updateGatewaySecurityPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateGatewaySecurityPolicyAsync(UpdateGatewaySecurityPolicyRequest request) { + return updateGatewaySecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       UpdateGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateGatewaySecurityPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   GatewaySecurityPolicy response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + updateGatewaySecurityPolicyOperationCallable() { + return stub.updateGatewaySecurityPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       UpdateGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateGatewaySecurityPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateGatewaySecurityPolicyCallable() { + return stub.updateGatewaySecurityPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GatewaySecurityPolicyName name =
                                                                                                                                      +   *       GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
                                                                                                                                      +   *   networkSecurityClient.deleteGatewaySecurityPolicyAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the GatewaySecurityPolicy to delete. Must be in the format + * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGatewaySecurityPolicyAsync( + GatewaySecurityPolicyName name) { + DeleteGatewaySecurityPolicyRequest request = + DeleteGatewaySecurityPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteGatewaySecurityPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   networkSecurityClient.deleteGatewaySecurityPolicyAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the GatewaySecurityPolicy to delete. Must be in the format + * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGatewaySecurityPolicyAsync( + String name) { + DeleteGatewaySecurityPolicyRequest request = + DeleteGatewaySecurityPolicyRequest.newBuilder().setName(name).build(); + return deleteGatewaySecurityPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       DeleteGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   networkSecurityClient.deleteGatewaySecurityPolicyAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGatewaySecurityPolicyAsync( + DeleteGatewaySecurityPolicyRequest request) { + return deleteGatewaySecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       DeleteGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteGatewaySecurityPolicyOperationCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteGatewaySecurityPolicyOperationCallable() { + return stub.deleteGatewaySecurityPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicy. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteGatewaySecurityPolicyRequest request =
                                                                                                                                      +   *       DeleteGatewaySecurityPolicyRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteGatewaySecurityPolicyCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteGatewaySecurityPolicyCallable() { + return stub.deleteGatewaySecurityPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicyRules in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GatewaySecurityPolicyName parent =
                                                                                                                                      +   *       GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
                                                                                                                                      +   *   for (GatewaySecurityPolicyRule element :
                                                                                                                                      +   *       networkSecurityClient.listGatewaySecurityPolicyRules(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project, location and GatewaySecurityPolicy from which the + * GatewaySecurityPolicyRules should be listed, specified in the format + * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGatewaySecurityPolicyRulesPagedResponse listGatewaySecurityPolicyRules( + GatewaySecurityPolicyName parent) { + ListGatewaySecurityPolicyRulesRequest request = + ListGatewaySecurityPolicyRulesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGatewaySecurityPolicyRules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicyRules in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent =
                                                                                                                                      +   *       GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   for (GatewaySecurityPolicyRule element :
                                                                                                                                      +   *       networkSecurityClient.listGatewaySecurityPolicyRules(parent).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The project, location and GatewaySecurityPolicy from which the + * GatewaySecurityPolicyRules should be listed, specified in the format + * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGatewaySecurityPolicyRulesPagedResponse listGatewaySecurityPolicyRules( + String parent) { + ListGatewaySecurityPolicyRulesRequest request = + ListGatewaySecurityPolicyRulesRequest.newBuilder().setParent(parent).build(); + return listGatewaySecurityPolicyRules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicyRules in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListGatewaySecurityPolicyRulesRequest request =
                                                                                                                                      +   *       ListGatewaySecurityPolicyRulesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   for (GatewaySecurityPolicyRule element :
                                                                                                                                      +   *       networkSecurityClient.listGatewaySecurityPolicyRules(request).iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGatewaySecurityPolicyRulesPagedResponse listGatewaySecurityPolicyRules( + ListGatewaySecurityPolicyRulesRequest request) { + return listGatewaySecurityPolicyRulesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicyRules in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListGatewaySecurityPolicyRulesRequest request =
                                                                                                                                      +   *       ListGatewaySecurityPolicyRulesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.listGatewaySecurityPolicyRulesPagedCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   for (GatewaySecurityPolicyRule element : future.get().iterateAll()) {
                                                                                                                                      +   *     // doThingsWith(element);
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesPagedResponse> + listGatewaySecurityPolicyRulesPagedCallable() { + return stub.listGatewaySecurityPolicyRulesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists GatewaySecurityPolicyRules in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   ListGatewaySecurityPolicyRulesRequest request =
                                                                                                                                      +   *       ListGatewaySecurityPolicyRulesRequest.newBuilder()
                                                                                                                                      +   *           .setParent(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setPageSize(883849137)
                                                                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   while (true) {
                                                                                                                                      +   *     ListGatewaySecurityPolicyRulesResponse response =
                                                                                                                                      +   *         networkSecurityClient.listGatewaySecurityPolicyRulesCallable().call(request);
                                                                                                                                      +   *     for (GatewaySecurityPolicyRule element : response.getGatewaySecurityPolicyRulesList()) {
                                                                                                                                      +   *       // doThingsWith(element);
                                                                                                                                      +   *     }
                                                                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                                                      +   *     } else {
                                                                                                                                      +   *       break;
                                                                                                                                      +   *     }
                                                                                                                                      +   *   }
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesResponse> + listGatewaySecurityPolicyRulesCallable() { + return stub.listGatewaySecurityPolicyRulesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GatewaySecurityPolicyRuleName name =
                                                                                                                                      +   *       GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]");
                                                                                                                                      +   *   GatewaySecurityPolicyRule response = networkSecurityClient.getGatewaySecurityPolicyRule(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: + * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/* + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GatewaySecurityPolicyRule getGatewaySecurityPolicyRule( + GatewaySecurityPolicyRuleName name) { + GetGatewaySecurityPolicyRuleRequest request = + GetGatewaySecurityPolicyRuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getGatewaySecurityPolicyRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   GatewaySecurityPolicyRule response = networkSecurityClient.getGatewaySecurityPolicyRule(name);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: + * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/* + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GatewaySecurityPolicyRule getGatewaySecurityPolicyRule(String name) { + GetGatewaySecurityPolicyRuleRequest request = + GetGatewaySecurityPolicyRuleRequest.newBuilder().setName(name).build(); + return getGatewaySecurityPolicyRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       GetGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   GatewaySecurityPolicyRule response =
                                                                                                                                      +   *       networkSecurityClient.getGatewaySecurityPolicyRule(request);
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GatewaySecurityPolicyRule getGatewaySecurityPolicyRule( + GetGatewaySecurityPolicyRuleRequest request) { + return getGatewaySecurityPolicyRuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GetGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       GetGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.getGatewaySecurityPolicyRuleCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   GatewaySecurityPolicyRule response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + getGatewaySecurityPolicyRuleCallable() { + return stub.getGatewaySecurityPolicyRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GatewaySecurityPolicyName parent =
                                                                                                                                      +   *       GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
                                                                                                                                      +   *   GatewaySecurityPolicyRule gatewaySecurityPolicyRule =
                                                                                                                                      +   *       GatewaySecurityPolicyRule.newBuilder().build();
                                                                                                                                      +   *   String gatewaySecurityPolicyRuleId = "gatewaySecurityPolicyRuleId-1764962099";
                                                                                                                                      +   *   GatewaySecurityPolicyRule response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createGatewaySecurityPolicyRuleAsync(
                                                                                                                                      +   *               parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent where this rule will be created. Format : + * projects/{project}/location/{location}/gatewaySecurityPolicies/* + * @param gatewaySecurityPolicyRule Required. The rule to be created. + * @param gatewaySecurityPolicyRuleId The ID to use for the rule, which will become the final + * component of the rule's resource name. This value should be 4-63 characters, and valid + * characters are /[a-z][0-9]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createGatewaySecurityPolicyRuleAsync( + GatewaySecurityPolicyName parent, + GatewaySecurityPolicyRule gatewaySecurityPolicyRule, + String gatewaySecurityPolicyRuleId) { + CreateGatewaySecurityPolicyRuleRequest request = + CreateGatewaySecurityPolicyRuleRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGatewaySecurityPolicyRule(gatewaySecurityPolicyRule) + .setGatewaySecurityPolicyRuleId(gatewaySecurityPolicyRuleId) + .build(); + return createGatewaySecurityPolicyRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String parent =
                                                                                                                                      +   *       GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   GatewaySecurityPolicyRule gatewaySecurityPolicyRule =
                                                                                                                                      +   *       GatewaySecurityPolicyRule.newBuilder().build();
                                                                                                                                      +   *   String gatewaySecurityPolicyRuleId = "gatewaySecurityPolicyRuleId-1764962099";
                                                                                                                                      +   *   GatewaySecurityPolicyRule response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createGatewaySecurityPolicyRuleAsync(
                                                                                                                                      +   *               parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param parent Required. The parent where this rule will be created. Format : + * projects/{project}/location/{location}/gatewaySecurityPolicies/* + * @param gatewaySecurityPolicyRule Required. The rule to be created. + * @param gatewaySecurityPolicyRuleId The ID to use for the rule, which will become the final + * component of the rule's resource name. This value should be 4-63 characters, and valid + * characters are /[a-z][0-9]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createGatewaySecurityPolicyRuleAsync( + String parent, + GatewaySecurityPolicyRule gatewaySecurityPolicyRule, + String gatewaySecurityPolicyRuleId) { + CreateGatewaySecurityPolicyRuleRequest request = + CreateGatewaySecurityPolicyRuleRequest.newBuilder() + .setParent(parent) + .setGatewaySecurityPolicyRule(gatewaySecurityPolicyRule) + .setGatewaySecurityPolicyRuleId(gatewaySecurityPolicyRuleId) + .build(); + return createGatewaySecurityPolicyRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       CreateGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setParent(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRuleId("gatewaySecurityPolicyRuleId-1764962099")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   GatewaySecurityPolicyRule response =
                                                                                                                                      +   *       networkSecurityClient.createGatewaySecurityPolicyRuleAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createGatewaySecurityPolicyRuleAsync(CreateGatewaySecurityPolicyRuleRequest request) { + return createGatewaySecurityPolicyRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       CreateGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setParent(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRuleId("gatewaySecurityPolicyRuleId-1764962099")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .createGatewaySecurityPolicyRuleOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   GatewaySecurityPolicyRule response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + createGatewaySecurityPolicyRuleOperationCallable() { + return stub.createGatewaySecurityPolicyRuleOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new GatewaySecurityPolicy in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   CreateGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       CreateGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setParent(
                                                                                                                                      +   *               GatewaySecurityPolicyName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRuleId("gatewaySecurityPolicyRuleId-1764962099")
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.createGatewaySecurityPolicyRuleCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + createGatewaySecurityPolicyRuleCallable() { + return stub.createGatewaySecurityPolicyRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GatewaySecurityPolicyRule gatewaySecurityPolicyRule =
                                                                                                                                      +   *       GatewaySecurityPolicyRule.newBuilder().build();
                                                                                                                                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                      +   *   GatewaySecurityPolicyRule response =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .updateGatewaySecurityPolicyRuleAsync(gatewaySecurityPolicyRule, updateMask)
                                                                                                                                      +   *           .get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param gatewaySecurityPolicyRule Required. Updated GatewaySecurityPolicyRule resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * GatewaySecurityPolicy resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateGatewaySecurityPolicyRuleAsync( + GatewaySecurityPolicyRule gatewaySecurityPolicyRule, FieldMask updateMask) { + UpdateGatewaySecurityPolicyRuleRequest request = + UpdateGatewaySecurityPolicyRuleRequest.newBuilder() + .setGatewaySecurityPolicyRule(gatewaySecurityPolicyRule) + .setUpdateMask(updateMask) + .build(); + return updateGatewaySecurityPolicyRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       UpdateGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   GatewaySecurityPolicyRule response =
                                                                                                                                      +   *       networkSecurityClient.updateGatewaySecurityPolicyRuleAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateGatewaySecurityPolicyRuleAsync(UpdateGatewaySecurityPolicyRuleRequest request) { + return updateGatewaySecurityPolicyRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       UpdateGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .updateGatewaySecurityPolicyRuleOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   GatewaySecurityPolicyRule response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable< + UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + updateGatewaySecurityPolicyRuleOperationCallable() { + return stub.updateGatewaySecurityPolicyRuleOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   UpdateGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       UpdateGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                                                                      +   *           .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.updateGatewaySecurityPolicyRuleCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   Operation response = future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + updateGatewaySecurityPolicyRuleCallable() { + return stub.updateGatewaySecurityPolicyRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   GatewaySecurityPolicyRuleName name =
                                                                                                                                      +   *       GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *           "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]");
                                                                                                                                      +   *   networkSecurityClient.deleteGatewaySecurityPolicyRuleAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format + * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGatewaySecurityPolicyRuleAsync( + GatewaySecurityPolicyRuleName name) { + DeleteGatewaySecurityPolicyRuleRequest request = + DeleteGatewaySecurityPolicyRuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteGatewaySecurityPolicyRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   String name =
                                                                                                                                      +   *       GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *               "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]")
                                                                                                                                      +   *           .toString();
                                                                                                                                      +   *   networkSecurityClient.deleteGatewaySecurityPolicyRuleAsync(name).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param name Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format + * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGatewaySecurityPolicyRuleAsync( + String name) { + DeleteGatewaySecurityPolicyRuleRequest request = + DeleteGatewaySecurityPolicyRuleRequest.newBuilder().setName(name).build(); + return deleteGatewaySecurityPolicyRuleAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       DeleteGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   networkSecurityClient.deleteGatewaySecurityPolicyRuleAsync(request).get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteGatewaySecurityPolicyRuleAsync( + DeleteGatewaySecurityPolicyRuleRequest request) { + return deleteGatewaySecurityPolicyRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       DeleteGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   OperationFuture future =
                                                                                                                                      +   *       networkSecurityClient
                                                                                                                                      +   *           .deleteGatewaySecurityPolicyRuleOperationCallable()
                                                                                                                                      +   *           .futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final OperationCallable + deleteGatewaySecurityPolicyRuleOperationCallable() { + return stub.deleteGatewaySecurityPolicyRuleOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single GatewaySecurityPolicyRule. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   DeleteGatewaySecurityPolicyRuleRequest request =
                                                                                                                                      +   *       DeleteGatewaySecurityPolicyRuleRequest.newBuilder()
                                                                                                                                      +   *           .setName(
                                                                                                                                      +   *               GatewaySecurityPolicyRuleName.of(
                                                                                                                                      +   *                       "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]")
                                                                                                                                      +   *                   .toString())
                                                                                                                                      +   *           .build();
                                                                                                                                      +   *   ApiFuture future =
                                                                                                                                      +   *       networkSecurityClient.deleteGatewaySecurityPolicyRuleCallable().futureCall(request);
                                                                                                                                      +   *   // Do something.
                                                                                                                                      +   *   future.get();
                                                                                                                                      +   * }
                                                                                                                                      +   * }
                                                                                                                                      + */ + public final UnaryCallable + deleteGatewaySecurityPolicyRuleCallable() { + return stub.deleteGatewaySecurityPolicyRuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists UrlLists in a given project and location. + * + *

                                                                                                                                      Sample code: + * + *

                                                                                                                                      {@code
                                                                                                                                      +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                                                                      +   * // It will require modifications to work:
                                                                                                                                      +   * // - It may require correct/in-range values for request initialization.
                                                                                                                                      +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                                                                      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                                                                      +   * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) {
                                                                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                                                      +   *   for (UrlList element : networkSecurityClient.listUrlLists(parent).iterateAll()) {
                                                                                                                                          *     // doThingsWith(element);
                                                                                                                                          *   }
                                                                                                                                          * }
                                                                                                                                          * }
                                                                                                                                      * - * @param parent Required. The project and location from which the AuthorizationPolicies should be - * listed, specified in the format `projects/{project}/locations/{location}`. + * @param parent Required. The project and location from which the UrlLists should be listed, + * specified in the format `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( - LocationName parent) { - ListAuthorizationPoliciesRequest request = - ListAuthorizationPoliciesRequest.newBuilder() + public final ListUrlListsPagedResponse listUrlLists(LocationName parent) { + ListUrlListsRequest request = + ListUrlListsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listAuthorizationPolicies(request); + return listUrlLists(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AuthorizationPolicies in a given project and location. + * Lists UrlLists in a given project and location. * *

                                                                                                                                      Sample code: * @@ -598,26 +5856,24 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (AuthorizationPolicy element : - * networkSecurityClient.listAuthorizationPolicies(parent).iterateAll()) { + * for (UrlList element : networkSecurityClient.listUrlLists(parent).iterateAll()) { * // doThingsWith(element); * } * } * }

                                                                                                                                      * - * @param parent Required. The project and location from which the AuthorizationPolicies should be - * listed, specified in the format `projects/{project}/locations/{location}`. + * @param parent Required. The project and location from which the UrlLists should be listed, + * specified in the format `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies(String parent) { - ListAuthorizationPoliciesRequest request = - ListAuthorizationPoliciesRequest.newBuilder().setParent(parent).build(); - return listAuthorizationPolicies(request); + public final ListUrlListsPagedResponse listUrlLists(String parent) { + ListUrlListsRequest request = ListUrlListsRequest.newBuilder().setParent(parent).build(); + return listUrlLists(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AuthorizationPolicies in a given project and location. + * Lists UrlLists in a given project and location. * *

                                                                                                                                      Sample code: * @@ -628,14 +5884,13 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies(St * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListAuthorizationPoliciesRequest request = - * ListAuthorizationPoliciesRequest.newBuilder() + * ListUrlListsRequest request = + * ListUrlListsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (AuthorizationPolicy element : - * networkSecurityClient.listAuthorizationPolicies(request).iterateAll()) { + * for (UrlList element : networkSecurityClient.listUrlLists(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -644,14 +5899,13 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies(St * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( - ListAuthorizationPoliciesRequest request) { - return listAuthorizationPoliciesPagedCallable().call(request); + public final ListUrlListsPagedResponse listUrlLists(ListUrlListsRequest request) { + return listUrlListsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AuthorizationPolicies in a given project and location. + * Lists UrlLists in a given project and location. * *

                                                                                                                                      Sample code: * @@ -662,30 +5916,29 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListAuthorizationPoliciesRequest request = - * ListAuthorizationPoliciesRequest.newBuilder() + * ListUrlListsRequest request = + * ListUrlListsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * networkSecurityClient.listAuthorizationPoliciesPagedCallable().futureCall(request); + * ApiFuture future = + * networkSecurityClient.listUrlListsPagedCallable().futureCall(request); * // Do something. - * for (AuthorizationPolicy element : future.get().iterateAll()) { + * for (UrlList element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

                                                                                                                                      */ - public final UnaryCallable< - ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesPagedResponse> - listAuthorizationPoliciesPagedCallable() { - return stub.listAuthorizationPoliciesPagedCallable(); + public final UnaryCallable + listUrlListsPagedCallable() { + return stub.listUrlListsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AuthorizationPolicies in a given project and location. + * Lists UrlLists in a given project and location. * *

                                                                                                                                      Sample code: * @@ -696,16 +5949,15 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListAuthorizationPoliciesRequest request = - * ListAuthorizationPoliciesRequest.newBuilder() + * ListUrlListsRequest request = + * ListUrlListsRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListAuthorizationPoliciesResponse response = - * networkSecurityClient.listAuthorizationPoliciesCallable().call(request); - * for (AuthorizationPolicy element : response.getAuthorizationPoliciesList()) { + * ListUrlListsResponse response = networkSecurityClient.listUrlListsCallable().call(request); + * for (UrlList element : response.getUrlListsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -718,14 +5970,13 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( * } * }

                                                                                                                                      */ - public final UnaryCallable - listAuthorizationPoliciesCallable() { - return stub.listAuthorizationPoliciesCallable(); + public final UnaryCallable listUrlListsCallable() { + return stub.listUrlListsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single AuthorizationPolicy. + * Gets details of a single UrlList. * *

                                                                                                                                      Sample code: * @@ -736,27 +5987,24 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * AuthorizationPolicyName name = - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); - * AuthorizationPolicy response = networkSecurityClient.getAuthorizationPolicy(name); + * UrlListName name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]"); + * UrlList response = networkSecurityClient.getUrlList(name); * } * }

                                                                                                                                      * - * @param name Required. A name of the AuthorizationPolicy to get. Must be in the format - * `projects/{project}/locations/{location}/authorizationPolicies/*`. + * @param name Required. A name of the UrlList to get. Must be in the format + * `projects/*/locations/{location}/urlLists/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationPolicy getAuthorizationPolicy(AuthorizationPolicyName name) { - GetAuthorizationPolicyRequest request = - GetAuthorizationPolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getAuthorizationPolicy(request); + public final UrlList getUrlList(UrlListName name) { + GetUrlListRequest request = + GetUrlListRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getUrlList(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single AuthorizationPolicy. + * Gets details of a single UrlList. * *

                                                                                                                                      Sample code: * @@ -767,26 +6015,23 @@ public final AuthorizationPolicy getAuthorizationPolicy(AuthorizationPolicyName * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * String name = - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString(); - * AuthorizationPolicy response = networkSecurityClient.getAuthorizationPolicy(name); + * String name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString(); + * UrlList response = networkSecurityClient.getUrlList(name); * } * }

                                                                                                                                    * - * @param name Required. A name of the AuthorizationPolicy to get. Must be in the format - * `projects/{project}/locations/{location}/authorizationPolicies/*`. + * @param name Required. A name of the UrlList to get. Must be in the format + * `projects/*/locations/{location}/urlLists/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationPolicy getAuthorizationPolicy(String name) { - GetAuthorizationPolicyRequest request = - GetAuthorizationPolicyRequest.newBuilder().setName(name).build(); - return getAuthorizationPolicy(request); + public final UrlList getUrlList(String name) { + GetUrlListRequest request = GetUrlListRequest.newBuilder().setName(name).build(); + return getUrlList(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single AuthorizationPolicy. + * Gets details of a single UrlList. * *

                                                                                                                                    Sample code: * @@ -797,26 +6042,24 @@ public final AuthorizationPolicy getAuthorizationPolicy(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * GetAuthorizationPolicyRequest request = - * GetAuthorizationPolicyRequest.newBuilder() - * .setName( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString()) + * GetUrlListRequest request = + * GetUrlListRequest.newBuilder() + * .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) * .build(); - * AuthorizationPolicy response = networkSecurityClient.getAuthorizationPolicy(request); + * UrlList response = networkSecurityClient.getUrlList(request); * } * }

                                                                                                                                    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRequest request) { - return getAuthorizationPolicyCallable().call(request); + public final UrlList getUrlList(GetUrlListRequest request) { + return getUrlListCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single AuthorizationPolicy. + * Gets details of a single UrlList. * *

                                                                                                                                    Sample code: * @@ -827,27 +6070,23 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * GetAuthorizationPolicyRequest request = - * GetAuthorizationPolicyRequest.newBuilder() - * .setName( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString()) + * GetUrlListRequest request = + * GetUrlListRequest.newBuilder() + * .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) * .build(); - * ApiFuture future = - * networkSecurityClient.getAuthorizationPolicyCallable().futureCall(request); + * ApiFuture future = networkSecurityClient.getUrlListCallable().futureCall(request); * // Do something. - * AuthorizationPolicy response = future.get(); + * UrlList response = future.get(); * } * }

                                                                                                                                  */ - public final UnaryCallable - getAuthorizationPolicyCallable() { - return stub.getAuthorizationPolicyCallable(); + public final UnaryCallable getUrlListCallable() { + return stub.getUrlListCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new AuthorizationPolicy in a given project and location. + * Creates a new UrlList in a given project and location. * *

                                                                                                                                  Sample code: * @@ -859,40 +6098,34 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); - * String authorizationPolicyId = "authorizationPolicyId1314252166"; - * AuthorizationPolicy response = - * networkSecurityClient - * .createAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId) - * .get(); + * UrlList urlList = UrlList.newBuilder().build(); + * String urlListId = "urlListId-564417368"; + * UrlList response = networkSecurityClient.createUrlListAsync(parent, urlList, urlListId).get(); * } * }

                                                                                                                                  * - * @param parent Required. The parent resource of the AuthorizationPolicy. Must be in the format - * `projects/{project}/locations/{location}`. - * @param authorizationPolicy Required. AuthorizationPolicy resource to be created. - * @param authorizationPolicyId Required. Short name of the AuthorizationPolicy resource to be - * created. This value should be 1-63 characters long, containing only letters, numbers, - * hyphens, and underscores, and should not start with a number. E.g. "authz_policy". + * @param parent Required. The parent resource of the UrlList. Must be in the format + * `projects/*/locations/{location}`. + * @param urlList Required. UrlList resource to be created. + * @param urlListId Required. Short name of the UrlList resource to be created. This value should + * be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and + * should not start with a number. E.g. "url_list". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - createAuthorizationPolicyAsync( - LocationName parent, - AuthorizationPolicy authorizationPolicy, - String authorizationPolicyId) { - CreateAuthorizationPolicyRequest request = - CreateAuthorizationPolicyRequest.newBuilder() + public final OperationFuture createUrlListAsync( + LocationName parent, UrlList urlList, String urlListId) { + CreateUrlListRequest request = + CreateUrlListRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setAuthorizationPolicy(authorizationPolicy) - .setAuthorizationPolicyId(authorizationPolicyId) + .setUrlList(urlList) + .setUrlListId(urlListId) .build(); - return createAuthorizationPolicyAsync(request); + return createUrlListAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new AuthorizationPolicy in a given project and location. + * Creates a new UrlList in a given project and location. * *

                                                                                                                                  Sample code: * @@ -904,38 +6137,34 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); - * String authorizationPolicyId = "authorizationPolicyId1314252166"; - * AuthorizationPolicy response = - * networkSecurityClient - * .createAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId) - * .get(); + * UrlList urlList = UrlList.newBuilder().build(); + * String urlListId = "urlListId-564417368"; + * UrlList response = networkSecurityClient.createUrlListAsync(parent, urlList, urlListId).get(); * } * }

                                                                                                                                  * - * @param parent Required. The parent resource of the AuthorizationPolicy. Must be in the format - * `projects/{project}/locations/{location}`. - * @param authorizationPolicy Required. AuthorizationPolicy resource to be created. - * @param authorizationPolicyId Required. Short name of the AuthorizationPolicy resource to be - * created. This value should be 1-63 characters long, containing only letters, numbers, - * hyphens, and underscores, and should not start with a number. E.g. "authz_policy". + * @param parent Required. The parent resource of the UrlList. Must be in the format + * `projects/*/locations/{location}`. + * @param urlList Required. UrlList resource to be created. + * @param urlListId Required. Short name of the UrlList resource to be created. This value should + * be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and + * should not start with a number. E.g. "url_list". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - createAuthorizationPolicyAsync( - String parent, AuthorizationPolicy authorizationPolicy, String authorizationPolicyId) { - CreateAuthorizationPolicyRequest request = - CreateAuthorizationPolicyRequest.newBuilder() + public final OperationFuture createUrlListAsync( + String parent, UrlList urlList, String urlListId) { + CreateUrlListRequest request = + CreateUrlListRequest.newBuilder() .setParent(parent) - .setAuthorizationPolicy(authorizationPolicy) - .setAuthorizationPolicyId(authorizationPolicyId) + .setUrlList(urlList) + .setUrlListId(urlListId) .build(); - return createAuthorizationPolicyAsync(request); + return createUrlListAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new AuthorizationPolicy in a given project and location. + * Creates a new UrlList in a given project and location. * *

                                                                                                                                  Sample code: * @@ -946,28 +6175,27 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateAuthorizationPolicyRequest request = - * CreateAuthorizationPolicyRequest.newBuilder() + * CreateUrlListRequest request = + * CreateUrlListRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAuthorizationPolicyId("authorizationPolicyId1314252166") - * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) + * .setUrlListId("urlListId-564417368") + * .setUrlList(UrlList.newBuilder().build()) * .build(); - * AuthorizationPolicy response = - * networkSecurityClient.createAuthorizationPolicyAsync(request).get(); + * UrlList response = networkSecurityClient.createUrlListAsync(request).get(); * } * }

                                                                                                                                * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - createAuthorizationPolicyAsync(CreateAuthorizationPolicyRequest request) { - return createAuthorizationPolicyOperationCallable().futureCall(request); + public final OperationFuture createUrlListAsync( + CreateUrlListRequest request) { + return createUrlListOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new AuthorizationPolicy in a given project and location. + * Creates a new UrlList in a given project and location. * *

                                                                                                                                Sample code: * @@ -978,28 +6206,27 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateAuthorizationPolicyRequest request = - * CreateAuthorizationPolicyRequest.newBuilder() + * CreateUrlListRequest request = + * CreateUrlListRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAuthorizationPolicyId("authorizationPolicyId1314252166") - * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) + * .setUrlListId("urlListId-564417368") + * .setUrlList(UrlList.newBuilder().build()) * .build(); - * OperationFuture future = - * networkSecurityClient.createAuthorizationPolicyOperationCallable().futureCall(request); + * OperationFuture future = + * networkSecurityClient.createUrlListOperationCallable().futureCall(request); * // Do something. - * AuthorizationPolicy response = future.get(); + * UrlList response = future.get(); * } * }

                                                                                                                                */ - public final OperationCallable< - CreateAuthorizationPolicyRequest, AuthorizationPolicy, OperationMetadata> - createAuthorizationPolicyOperationCallable() { - return stub.createAuthorizationPolicyOperationCallable(); + public final OperationCallable + createUrlListOperationCallable() { + return stub.createUrlListOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new AuthorizationPolicy in a given project and location. + * Creates a new UrlList in a given project and location. * *

                                                                                                                                Sample code: * @@ -1010,27 +6237,26 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateAuthorizationPolicyRequest request = - * CreateAuthorizationPolicyRequest.newBuilder() + * CreateUrlListRequest request = + * CreateUrlListRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setAuthorizationPolicyId("authorizationPolicyId1314252166") - * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) + * .setUrlListId("urlListId-564417368") + * .setUrlList(UrlList.newBuilder().build()) * .build(); * ApiFuture future = - * networkSecurityClient.createAuthorizationPolicyCallable().futureCall(request); + * networkSecurityClient.createUrlListCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }

                                                                                                                                */ - public final UnaryCallable - createAuthorizationPolicyCallable() { - return stub.createAuthorizationPolicyCallable(); + public final UnaryCallable createUrlListCallable() { + return stub.createUrlListCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single AuthorizationPolicy. + * Updates the parameters of a single UrlList. * *

                                                                                                                                Sample code: * @@ -1041,36 +6267,29 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * AuthorizationPolicy authorizationPolicy = AuthorizationPolicy.newBuilder().build(); + * UrlList urlList = UrlList.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * AuthorizationPolicy response = - * networkSecurityClient - * .updateAuthorizationPolicyAsync(authorizationPolicy, updateMask) - * .get(); + * UrlList response = networkSecurityClient.updateUrlListAsync(urlList, updateMask).get(); * } * }

                                                                                                                              * - * @param authorizationPolicy Required. Updated AuthorizationPolicy resource. + * @param urlList Required. Updated UrlList resource. * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * AuthorizationPolicy resource by the update. The fields specified in the update_mask are - * relative to the resource, not the full request. A field will be overwritten if it is in the - * mask. If the user does not provide a mask then all fields will be overwritten. + * UrlList resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - updateAuthorizationPolicyAsync( - AuthorizationPolicy authorizationPolicy, FieldMask updateMask) { - UpdateAuthorizationPolicyRequest request = - UpdateAuthorizationPolicyRequest.newBuilder() - .setAuthorizationPolicy(authorizationPolicy) - .setUpdateMask(updateMask) - .build(); - return updateAuthorizationPolicyAsync(request); + public final OperationFuture updateUrlListAsync( + UrlList urlList, FieldMask updateMask) { + UpdateUrlListRequest request = + UpdateUrlListRequest.newBuilder().setUrlList(urlList).setUpdateMask(updateMask).build(); + return updateUrlListAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single AuthorizationPolicy. + * Updates the parameters of a single UrlList. * *

                                                                                                                              Sample code: * @@ -1081,27 +6300,26 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateAuthorizationPolicyRequest request = - * UpdateAuthorizationPolicyRequest.newBuilder() + * UpdateUrlListRequest request = + * UpdateUrlListRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) + * .setUrlList(UrlList.newBuilder().build()) * .build(); - * AuthorizationPolicy response = - * networkSecurityClient.updateAuthorizationPolicyAsync(request).get(); + * UrlList response = networkSecurityClient.updateUrlListAsync(request).get(); * } * }

                                                                                                                              * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture - updateAuthorizationPolicyAsync(UpdateAuthorizationPolicyRequest request) { - return updateAuthorizationPolicyOperationCallable().futureCall(request); + public final OperationFuture updateUrlListAsync( + UpdateUrlListRequest request) { + return updateUrlListOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single AuthorizationPolicy. + * Updates the parameters of a single UrlList. * *

                                                                                                                              Sample code: * @@ -1112,27 +6330,26 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateAuthorizationPolicyRequest request = - * UpdateAuthorizationPolicyRequest.newBuilder() + * UpdateUrlListRequest request = + * UpdateUrlListRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) + * .setUrlList(UrlList.newBuilder().build()) * .build(); - * OperationFuture future = - * networkSecurityClient.updateAuthorizationPolicyOperationCallable().futureCall(request); + * OperationFuture future = + * networkSecurityClient.updateUrlListOperationCallable().futureCall(request); * // Do something. - * AuthorizationPolicy response = future.get(); + * UrlList response = future.get(); * } * }

                                                                                                                              */ - public final OperationCallable< - UpdateAuthorizationPolicyRequest, AuthorizationPolicy, OperationMetadata> - updateAuthorizationPolicyOperationCallable() { - return stub.updateAuthorizationPolicyOperationCallable(); + public final OperationCallable + updateUrlListOperationCallable() { + return stub.updateUrlListOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single AuthorizationPolicy. + * Updates the parameters of a single UrlList. * *

                                                                                                                              Sample code: * @@ -1143,26 +6360,25 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateAuthorizationPolicyRequest request = - * UpdateAuthorizationPolicyRequest.newBuilder() + * UpdateUrlListRequest request = + * UpdateUrlListRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setAuthorizationPolicy(AuthorizationPolicy.newBuilder().build()) + * .setUrlList(UrlList.newBuilder().build()) * .build(); * ApiFuture future = - * networkSecurityClient.updateAuthorizationPolicyCallable().futureCall(request); + * networkSecurityClient.updateUrlListCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }

                                                                                                                            */ - public final UnaryCallable - updateAuthorizationPolicyCallable() { - return stub.updateAuthorizationPolicyCallable(); + public final UnaryCallable updateUrlListCallable() { + return stub.updateUrlListCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single AuthorizationPolicy. + * Deletes a single UrlList. * *

                                                                                                                            Sample code: * @@ -1173,28 +6389,24 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * AuthorizationPolicyName name = - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"); - * networkSecurityClient.deleteAuthorizationPolicyAsync(name).get(); + * UrlListName name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]"); + * networkSecurityClient.deleteUrlListAsync(name).get(); * } * }

                                                                                                                            * - * @param name Required. A name of the AuthorizationPolicy to delete. Must be in the format - * `projects/{project}/locations/{location}/authorizationPolicies/*`. + * @param name Required. A name of the UrlList to delete. Must be in the format + * `projects/*/locations/{location}/urlLists/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAuthorizationPolicyAsync( - AuthorizationPolicyName name) { - DeleteAuthorizationPolicyRequest request = - DeleteAuthorizationPolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return deleteAuthorizationPolicyAsync(request); + public final OperationFuture deleteUrlListAsync(UrlListName name) { + DeleteUrlListRequest request = + DeleteUrlListRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteUrlListAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single AuthorizationPolicy. + * Deletes a single UrlList. * *

                                                                                                                            Sample code: * @@ -1205,27 +6417,23 @@ public final OperationFuture deleteAuthorizationPolicy * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * String name = - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString(); - * networkSecurityClient.deleteAuthorizationPolicyAsync(name).get(); + * String name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString(); + * networkSecurityClient.deleteUrlListAsync(name).get(); * } * }

                                                                                                                            * - * @param name Required. A name of the AuthorizationPolicy to delete. Must be in the format - * `projects/{project}/locations/{location}/authorizationPolicies/*`. + * @param name Required. A name of the UrlList to delete. Must be in the format + * `projects/*/locations/{location}/urlLists/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAuthorizationPolicyAsync( - String name) { - DeleteAuthorizationPolicyRequest request = - DeleteAuthorizationPolicyRequest.newBuilder().setName(name).build(); - return deleteAuthorizationPolicyAsync(request); + public final OperationFuture deleteUrlListAsync(String name) { + DeleteUrlListRequest request = DeleteUrlListRequest.newBuilder().setName(name).build(); + return deleteUrlListAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single AuthorizationPolicy. + * Deletes a single UrlList. * *

                                                                                                                            Sample code: * @@ -1236,27 +6444,25 @@ public final OperationFuture deleteAuthorizationPolicy * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteAuthorizationPolicyRequest request = - * DeleteAuthorizationPolicyRequest.newBuilder() - * .setName( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString()) + * DeleteUrlListRequest request = + * DeleteUrlListRequest.newBuilder() + * .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) * .build(); - * networkSecurityClient.deleteAuthorizationPolicyAsync(request).get(); + * networkSecurityClient.deleteUrlListAsync(request).get(); * } * }

                                                                                                                          * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAuthorizationPolicyAsync( - DeleteAuthorizationPolicyRequest request) { - return deleteAuthorizationPolicyOperationCallable().futureCall(request); + public final OperationFuture deleteUrlListAsync( + DeleteUrlListRequest request) { + return deleteUrlListOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single AuthorizationPolicy. + * Deletes a single UrlList. * *

                                                                                                                          Sample code: * @@ -1264,30 +6470,28 @@ public final OperationFuture deleteAuthorizationPolicy * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteAuthorizationPolicyRequest request = - * DeleteAuthorizationPolicyRequest.newBuilder() - * .setName( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString()) + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + * DeleteUrlListRequest request = + * DeleteUrlListRequest.newBuilder() + * .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) * .build(); * OperationFuture future = - * networkSecurityClient.deleteAuthorizationPolicyOperationCallable().futureCall(request); + * networkSecurityClient.deleteUrlListOperationCallable().futureCall(request); * // Do something. * future.get(); * } * }

                                                                                                                          */ - public final OperationCallable - deleteAuthorizationPolicyOperationCallable() { - return stub.deleteAuthorizationPolicyOperationCallable(); + public final OperationCallable + deleteUrlListOperationCallable() { + return stub.deleteUrlListOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single AuthorizationPolicy. + * Deletes a single UrlList. * *

                                                                                                                          Sample code: * @@ -1298,27 +6502,24 @@ public final OperationFuture deleteAuthorizationPolicy * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteAuthorizationPolicyRequest request = - * DeleteAuthorizationPolicyRequest.newBuilder() - * .setName( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") - * .toString()) + * DeleteUrlListRequest request = + * DeleteUrlListRequest.newBuilder() + * .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) * .build(); * ApiFuture future = - * networkSecurityClient.deleteAuthorizationPolicyCallable().futureCall(request); + * networkSecurityClient.deleteUrlListCallable().futureCall(request); * // Do something. * future.get(); * } * }

                                                                                                                          */ - public final UnaryCallable - deleteAuthorizationPolicyCallable() { - return stub.deleteAuthorizationPolicyCallable(); + public final UnaryCallable deleteUrlListCallable() { + return stub.deleteUrlListCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ServerTlsPolicies in a given project and location. + * Lists TlsInspectionPolicies in a given project and location. * *

                                                                                                                          Sample code: * @@ -1330,28 +6531,29 @@ public final OperationFuture deleteAuthorizationPolicy * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (ServerTlsPolicy element : - * networkSecurityClient.listServerTlsPolicies(parent).iterateAll()) { + * for (TlsInspectionPolicy element : + * networkSecurityClient.listTlsInspectionPolicies(parent).iterateAll()) { * // doThingsWith(element); * } * } * }

                                                                                                                        * - * @param parent Required. The project and location from which the ServerTlsPolicies should be - * listed, specified in the format `projects/*/locations/{location}`. + * @param parent Required. The project and location from which the TlsInspectionPolicies should be + * listed, specified in the format `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(LocationName parent) { - ListServerTlsPoliciesRequest request = - ListServerTlsPoliciesRequest.newBuilder() + public final ListTlsInspectionPoliciesPagedResponse listTlsInspectionPolicies( + LocationName parent) { + ListTlsInspectionPoliciesRequest request = + ListTlsInspectionPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listServerTlsPolicies(request); + return listTlsInspectionPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ServerTlsPolicies in a given project and location. + * Lists TlsInspectionPolicies in a given project and location. * *

                                                                                                                        Sample code: * @@ -1363,26 +6565,26 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(LocationNa * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (ServerTlsPolicy element : - * networkSecurityClient.listServerTlsPolicies(parent).iterateAll()) { + * for (TlsInspectionPolicy element : + * networkSecurityClient.listTlsInspectionPolicies(parent).iterateAll()) { * // doThingsWith(element); * } * } * }

                                                                                                                        * - * @param parent Required. The project and location from which the ServerTlsPolicies should be - * listed, specified in the format `projects/*/locations/{location}`. + * @param parent Required. The project and location from which the TlsInspectionPolicies should be + * listed, specified in the format `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(String parent) { - ListServerTlsPoliciesRequest request = - ListServerTlsPoliciesRequest.newBuilder().setParent(parent).build(); - return listServerTlsPolicies(request); + public final ListTlsInspectionPoliciesPagedResponse listTlsInspectionPolicies(String parent) { + ListTlsInspectionPoliciesRequest request = + ListTlsInspectionPoliciesRequest.newBuilder().setParent(parent).build(); + return listTlsInspectionPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ServerTlsPolicies in a given project and location. + * Lists TlsInspectionPolicies in a given project and location. * *

                                                                                                                        Sample code: * @@ -1393,14 +6595,14 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(String par * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListServerTlsPoliciesRequest request = - * ListServerTlsPoliciesRequest.newBuilder() + * ListTlsInspectionPoliciesRequest request = + * ListTlsInspectionPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (ServerTlsPolicy element : - * networkSecurityClient.listServerTlsPolicies(request).iterateAll()) { + * for (TlsInspectionPolicy element : + * networkSecurityClient.listTlsInspectionPolicies(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1409,14 +6611,14 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(String par * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( - ListServerTlsPoliciesRequest request) { - return listServerTlsPoliciesPagedCallable().call(request); + public final ListTlsInspectionPoliciesPagedResponse listTlsInspectionPolicies( + ListTlsInspectionPoliciesRequest request) { + return listTlsInspectionPoliciesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ServerTlsPolicies in a given project and location. + * Lists TlsInspectionPolicies in a given project and location. * *

                                                                                                                        Sample code: * @@ -1427,29 +6629,30 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListServerTlsPoliciesRequest request = - * ListServerTlsPoliciesRequest.newBuilder() + * ListTlsInspectionPoliciesRequest request = + * ListTlsInspectionPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * networkSecurityClient.listServerTlsPoliciesPagedCallable().futureCall(request); + * ApiFuture future = + * networkSecurityClient.listTlsInspectionPoliciesPagedCallable().futureCall(request); * // Do something. - * for (ServerTlsPolicy element : future.get().iterateAll()) { + * for (TlsInspectionPolicy element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

                                                                                                                        */ - public final UnaryCallable - listServerTlsPoliciesPagedCallable() { - return stub.listServerTlsPoliciesPagedCallable(); + public final UnaryCallable< + ListTlsInspectionPoliciesRequest, ListTlsInspectionPoliciesPagedResponse> + listTlsInspectionPoliciesPagedCallable() { + return stub.listTlsInspectionPoliciesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ServerTlsPolicies in a given project and location. + * Lists TlsInspectionPolicies in a given project and location. * *

                                                                                                                        Sample code: * @@ -1460,16 +6663,16 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListServerTlsPoliciesRequest request = - * ListServerTlsPoliciesRequest.newBuilder() + * ListTlsInspectionPoliciesRequest request = + * ListTlsInspectionPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListServerTlsPoliciesResponse response = - * networkSecurityClient.listServerTlsPoliciesCallable().call(request); - * for (ServerTlsPolicy element : response.getServerTlsPoliciesList()) { + * ListTlsInspectionPoliciesResponse response = + * networkSecurityClient.listTlsInspectionPoliciesCallable().call(request); + * for (TlsInspectionPolicy element : response.getTlsInspectionPoliciesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1482,14 +6685,14 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( * } * }

                                                                                                                      */ - public final UnaryCallable - listServerTlsPoliciesCallable() { - return stub.listServerTlsPoliciesCallable(); + public final UnaryCallable + listTlsInspectionPoliciesCallable() { + return stub.listTlsInspectionPoliciesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single ServerTlsPolicy. + * Gets details of a single TlsInspectionPolicy. * *

                                                                                                                      Sample code: * @@ -1500,27 +6703,27 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ServerTlsPolicyName name = - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); - * ServerTlsPolicy response = networkSecurityClient.getServerTlsPolicy(name); + * TlsInspectionPolicyName name = + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"); + * TlsInspectionPolicy response = networkSecurityClient.getTlsInspectionPolicy(name); * } * }

                                                                                                                      * - * @param name Required. A name of the ServerTlsPolicy to get. Must be in the format - * `projects/*/locations/{location}/serverTlsPolicies/*`. + * @param name Required. A name of the TlsInspectionPolicy to get. Must be in the format + * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServerTlsPolicy getServerTlsPolicy(ServerTlsPolicyName name) { - GetServerTlsPolicyRequest request = - GetServerTlsPolicyRequest.newBuilder() + public final TlsInspectionPolicy getTlsInspectionPolicy(TlsInspectionPolicyName name) { + GetTlsInspectionPolicyRequest request = + GetTlsInspectionPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getServerTlsPolicy(request); + return getTlsInspectionPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single ServerTlsPolicy. + * Gets details of a single TlsInspectionPolicy. * *

                                                                                                                      Sample code: * @@ -1532,24 +6735,25 @@ public final ServerTlsPolicy getServerTlsPolicy(ServerTlsPolicyName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); - * ServerTlsPolicy response = networkSecurityClient.getServerTlsPolicy(name); + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + * .toString(); + * TlsInspectionPolicy response = networkSecurityClient.getTlsInspectionPolicy(name); * } * }

                                                                                                                      * - * @param name Required. A name of the ServerTlsPolicy to get. Must be in the format - * `projects/*/locations/{location}/serverTlsPolicies/*`. + * @param name Required. A name of the TlsInspectionPolicy to get. Must be in the format + * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServerTlsPolicy getServerTlsPolicy(String name) { - GetServerTlsPolicyRequest request = - GetServerTlsPolicyRequest.newBuilder().setName(name).build(); - return getServerTlsPolicy(request); + public final TlsInspectionPolicy getTlsInspectionPolicy(String name) { + GetTlsInspectionPolicyRequest request = + GetTlsInspectionPolicyRequest.newBuilder().setName(name).build(); + return getTlsInspectionPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single ServerTlsPolicy. + * Gets details of a single TlsInspectionPolicy. * *

                                                                                                                      Sample code: * @@ -1560,26 +6764,26 @@ public final ServerTlsPolicy getServerTlsPolicy(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * GetServerTlsPolicyRequest request = - * GetServerTlsPolicyRequest.newBuilder() + * GetTlsInspectionPolicyRequest request = + * GetTlsInspectionPolicyRequest.newBuilder() * .setName( - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") * .toString()) * .build(); - * ServerTlsPolicy response = networkSecurityClient.getServerTlsPolicy(request); + * TlsInspectionPolicy response = networkSecurityClient.getTlsInspectionPolicy(request); * } * }

                                                                                                                    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest request) { - return getServerTlsPolicyCallable().call(request); + public final TlsInspectionPolicy getTlsInspectionPolicy(GetTlsInspectionPolicyRequest request) { + return getTlsInspectionPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single ServerTlsPolicy. + * Gets details of a single TlsInspectionPolicy. * *

                                                                                                                    Sample code: * @@ -1590,27 +6794,27 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * GetServerTlsPolicyRequest request = - * GetServerTlsPolicyRequest.newBuilder() + * GetTlsInspectionPolicyRequest request = + * GetTlsInspectionPolicyRequest.newBuilder() * .setName( - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") * .toString()) * .build(); - * ApiFuture future = - * networkSecurityClient.getServerTlsPolicyCallable().futureCall(request); + * ApiFuture future = + * networkSecurityClient.getTlsInspectionPolicyCallable().futureCall(request); * // Do something. - * ServerTlsPolicy response = future.get(); + * TlsInspectionPolicy response = future.get(); * } * }

                                                                                                                    */ - public final UnaryCallable - getServerTlsPolicyCallable() { - return stub.getServerTlsPolicyCallable(); + public final UnaryCallable + getTlsInspectionPolicyCallable() { + return stub.getTlsInspectionPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ServerTlsPolicy in a given project and location. + * Creates a new TlsInspectionPolicy in a given project and location. * *

                                                                                                                    Sample code: * @@ -1622,37 +6826,41 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); - * String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; - * ServerTlsPolicy response = + * TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + * String tlsInspectionPolicyId = "tlsInspectionPolicyId-647545892"; + * TlsInspectionPolicy response = * networkSecurityClient - * .createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId) + * .createTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId) * .get(); * } * }

                                                                                                                    * - * @param parent Required. The parent resource of the ServerTlsPolicy. Must be in the format - * `projects/*/locations/{location}`. - * @param serverTlsPolicy Required. ServerTlsPolicy resource to be created. - * @param serverTlsPolicyId Required. Short name of the ServerTlsPolicy resource to be created. - * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and - * underscores, and should not start with a number. E.g. "server_mtls_policy". + * @param parent Required. The parent resource of the TlsInspectionPolicy. Must be in the format + * `projects/{project}/locations/{location}`. + * @param tlsInspectionPolicy Required. TlsInspectionPolicy resource to be created. + * @param tlsInspectionPolicyId Required. Short name of the TlsInspectionPolicy resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. + * "tls_inspection_policy1". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createServerTlsPolicyAsync( - LocationName parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { - CreateServerTlsPolicyRequest request = - CreateServerTlsPolicyRequest.newBuilder() + public final OperationFuture + createTlsInspectionPolicyAsync( + LocationName parent, + TlsInspectionPolicy tlsInspectionPolicy, + String tlsInspectionPolicyId) { + CreateTlsInspectionPolicyRequest request = + CreateTlsInspectionPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setServerTlsPolicy(serverTlsPolicy) - .setServerTlsPolicyId(serverTlsPolicyId) + .setTlsInspectionPolicy(tlsInspectionPolicy) + .setTlsInspectionPolicyId(tlsInspectionPolicyId) .build(); - return createServerTlsPolicyAsync(request); + return createTlsInspectionPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ServerTlsPolicy in a given project and location. + * Creates a new TlsInspectionPolicy in a given project and location. * *

                                                                                                                    Sample code: * @@ -1664,37 +6872,39 @@ public final OperationFuture createServerTls * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); - * String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; - * ServerTlsPolicy response = + * TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + * String tlsInspectionPolicyId = "tlsInspectionPolicyId-647545892"; + * TlsInspectionPolicy response = * networkSecurityClient - * .createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId) + * .createTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId) * .get(); * } * }

                                                                                                                  * - * @param parent Required. The parent resource of the ServerTlsPolicy. Must be in the format - * `projects/*/locations/{location}`. - * @param serverTlsPolicy Required. ServerTlsPolicy resource to be created. - * @param serverTlsPolicyId Required. Short name of the ServerTlsPolicy resource to be created. - * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and - * underscores, and should not start with a number. E.g. "server_mtls_policy". + * @param parent Required. The parent resource of the TlsInspectionPolicy. Must be in the format + * `projects/{project}/locations/{location}`. + * @param tlsInspectionPolicy Required. TlsInspectionPolicy resource to be created. + * @param tlsInspectionPolicyId Required. Short name of the TlsInspectionPolicy resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. + * "tls_inspection_policy1". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createServerTlsPolicyAsync( - String parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { - CreateServerTlsPolicyRequest request = - CreateServerTlsPolicyRequest.newBuilder() + public final OperationFuture + createTlsInspectionPolicyAsync( + String parent, TlsInspectionPolicy tlsInspectionPolicy, String tlsInspectionPolicyId) { + CreateTlsInspectionPolicyRequest request = + CreateTlsInspectionPolicyRequest.newBuilder() .setParent(parent) - .setServerTlsPolicy(serverTlsPolicy) - .setServerTlsPolicyId(serverTlsPolicyId) + .setTlsInspectionPolicy(tlsInspectionPolicy) + .setTlsInspectionPolicyId(tlsInspectionPolicyId) .build(); - return createServerTlsPolicyAsync(request); + return createTlsInspectionPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ServerTlsPolicy in a given project and location. + * Creates a new TlsInspectionPolicy in a given project and location. * *

                                                                                                                  Sample code: * @@ -1705,27 +6915,28 @@ public final OperationFuture createServerTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateServerTlsPolicyRequest request = - * CreateServerTlsPolicyRequest.newBuilder() + * CreateTlsInspectionPolicyRequest request = + * CreateTlsInspectionPolicyRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setServerTlsPolicyId("serverTlsPolicyId-1966046011") - * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) + * .setTlsInspectionPolicyId("tlsInspectionPolicyId-647545892") + * .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) * .build(); - * ServerTlsPolicy response = networkSecurityClient.createServerTlsPolicyAsync(request).get(); + * TlsInspectionPolicy response = + * networkSecurityClient.createTlsInspectionPolicyAsync(request).get(); * } * }

                                                                                                                  * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createServerTlsPolicyAsync( - CreateServerTlsPolicyRequest request) { - return createServerTlsPolicyOperationCallable().futureCall(request); + public final OperationFuture + createTlsInspectionPolicyAsync(CreateTlsInspectionPolicyRequest request) { + return createTlsInspectionPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ServerTlsPolicy in a given project and location. + * Creates a new TlsInspectionPolicy in a given project and location. * *

                                                                                                                  Sample code: * @@ -1736,27 +6947,28 @@ public final OperationFuture createServerTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateServerTlsPolicyRequest request = - * CreateServerTlsPolicyRequest.newBuilder() + * CreateTlsInspectionPolicyRequest request = + * CreateTlsInspectionPolicyRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setServerTlsPolicyId("serverTlsPolicyId-1966046011") - * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) + * .setTlsInspectionPolicyId("tlsInspectionPolicyId-647545892") + * .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) * .build(); - * OperationFuture future = - * networkSecurityClient.createServerTlsPolicyOperationCallable().futureCall(request); + * OperationFuture future = + * networkSecurityClient.createTlsInspectionPolicyOperationCallable().futureCall(request); * // Do something. - * ServerTlsPolicy response = future.get(); + * TlsInspectionPolicy response = future.get(); * } * }

                                                                                                                  */ - public final OperationCallable - createServerTlsPolicyOperationCallable() { - return stub.createServerTlsPolicyOperationCallable(); + public final OperationCallable< + CreateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + createTlsInspectionPolicyOperationCallable() { + return stub.createTlsInspectionPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ServerTlsPolicy in a given project and location. + * Creates a new TlsInspectionPolicy in a given project and location. * *

                                                                                                                  Sample code: * @@ -1767,27 +6979,27 @@ public final OperationFuture createServerTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateServerTlsPolicyRequest request = - * CreateServerTlsPolicyRequest.newBuilder() + * CreateTlsInspectionPolicyRequest request = + * CreateTlsInspectionPolicyRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setServerTlsPolicyId("serverTlsPolicyId-1966046011") - * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) + * .setTlsInspectionPolicyId("tlsInspectionPolicyId-647545892") + * .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) * .build(); * ApiFuture future = - * networkSecurityClient.createServerTlsPolicyCallable().futureCall(request); + * networkSecurityClient.createTlsInspectionPolicyCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }

                                                                                                                */ - public final UnaryCallable - createServerTlsPolicyCallable() { - return stub.createServerTlsPolicyCallable(); + public final UnaryCallable + createTlsInspectionPolicyCallable() { + return stub.createTlsInspectionPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single ServerTlsPolicy. + * Updates the parameters of a single TlsInspectionPolicy. * *

                                                                                                                Sample code: * @@ -1798,33 +7010,36 @@ public final OperationFuture createServerTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + * TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * ServerTlsPolicy response = - * networkSecurityClient.updateServerTlsPolicyAsync(serverTlsPolicy, updateMask).get(); + * TlsInspectionPolicy response = + * networkSecurityClient + * .updateTlsInspectionPolicyAsync(tlsInspectionPolicy, updateMask) + * .get(); * } * }

                                                                                                                * - * @param serverTlsPolicy Required. Updated ServerTlsPolicy resource. + * @param tlsInspectionPolicy Required. Updated TlsInspectionPolicy resource. * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * ServerTlsPolicy resource by the update. The fields specified in the update_mask are + * TlsInspectionPolicy resource by the update. The fields specified in the update_mask are * relative to the resource, not the full request. A field will be overwritten if it is in the * mask. If the user does not provide a mask then all fields will be overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateServerTlsPolicyAsync( - ServerTlsPolicy serverTlsPolicy, FieldMask updateMask) { - UpdateServerTlsPolicyRequest request = - UpdateServerTlsPolicyRequest.newBuilder() - .setServerTlsPolicy(serverTlsPolicy) + public final OperationFuture + updateTlsInspectionPolicyAsync( + TlsInspectionPolicy tlsInspectionPolicy, FieldMask updateMask) { + UpdateTlsInspectionPolicyRequest request = + UpdateTlsInspectionPolicyRequest.newBuilder() + .setTlsInspectionPolicy(tlsInspectionPolicy) .setUpdateMask(updateMask) .build(); - return updateServerTlsPolicyAsync(request); + return updateTlsInspectionPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single ServerTlsPolicy. + * Updates the parameters of a single TlsInspectionPolicy. * *

                                                                                                                Sample code: * @@ -1835,26 +7050,27 @@ public final OperationFuture updateServerTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateServerTlsPolicyRequest request = - * UpdateServerTlsPolicyRequest.newBuilder() + * UpdateTlsInspectionPolicyRequest request = + * UpdateTlsInspectionPolicyRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) + * .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) * .build(); - * ServerTlsPolicy response = networkSecurityClient.updateServerTlsPolicyAsync(request).get(); + * TlsInspectionPolicy response = + * networkSecurityClient.updateTlsInspectionPolicyAsync(request).get(); * } * }

                                                                                                                * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateServerTlsPolicyAsync( - UpdateServerTlsPolicyRequest request) { - return updateServerTlsPolicyOperationCallable().futureCall(request); + public final OperationFuture + updateTlsInspectionPolicyAsync(UpdateTlsInspectionPolicyRequest request) { + return updateTlsInspectionPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single ServerTlsPolicy. + * Updates the parameters of a single TlsInspectionPolicy. * *

                                                                                                                Sample code: * @@ -1865,26 +7081,27 @@ public final OperationFuture updateServerTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateServerTlsPolicyRequest request = - * UpdateServerTlsPolicyRequest.newBuilder() + * UpdateTlsInspectionPolicyRequest request = + * UpdateTlsInspectionPolicyRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) + * .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) * .build(); - * OperationFuture future = - * networkSecurityClient.updateServerTlsPolicyOperationCallable().futureCall(request); + * OperationFuture future = + * networkSecurityClient.updateTlsInspectionPolicyOperationCallable().futureCall(request); * // Do something. - * ServerTlsPolicy response = future.get(); + * TlsInspectionPolicy response = future.get(); * } * }

                                                                                                              */ - public final OperationCallable - updateServerTlsPolicyOperationCallable() { - return stub.updateServerTlsPolicyOperationCallable(); + public final OperationCallable< + UpdateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + updateTlsInspectionPolicyOperationCallable() { + return stub.updateTlsInspectionPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single ServerTlsPolicy. + * Updates the parameters of a single TlsInspectionPolicy. * *

                                                                                                              Sample code: * @@ -1895,26 +7112,26 @@ public final OperationFuture updateServerTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateServerTlsPolicyRequest request = - * UpdateServerTlsPolicyRequest.newBuilder() + * UpdateTlsInspectionPolicyRequest request = + * UpdateTlsInspectionPolicyRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setServerTlsPolicy(ServerTlsPolicy.newBuilder().build()) + * .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) * .build(); * ApiFuture future = - * networkSecurityClient.updateServerTlsPolicyCallable().futureCall(request); + * networkSecurityClient.updateTlsInspectionPolicyCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }

                                                                                                              */ - public final UnaryCallable - updateServerTlsPolicyCallable() { - return stub.updateServerTlsPolicyCallable(); + public final UnaryCallable + updateTlsInspectionPolicyCallable() { + return stub.updateTlsInspectionPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ServerTlsPolicy. + * Deletes a single TlsInspectionPolicy. * *

                                                                                                              Sample code: * @@ -1925,28 +7142,28 @@ public final OperationFuture updateServerTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ServerTlsPolicyName name = - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); - * networkSecurityClient.deleteServerTlsPolicyAsync(name).get(); + * TlsInspectionPolicyName name = + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"); + * networkSecurityClient.deleteTlsInspectionPolicyAsync(name).get(); * } * }

                                                                                                              * - * @param name Required. A name of the ServerTlsPolicy to delete. Must be in the format - * `projects/*/locations/{location}/serverTlsPolicies/*`. + * @param name Required. A name of the TlsInspectionPolicy to delete. Must be in the format + * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServerTlsPolicyAsync( - ServerTlsPolicyName name) { - DeleteServerTlsPolicyRequest request = - DeleteServerTlsPolicyRequest.newBuilder() + public final OperationFuture deleteTlsInspectionPolicyAsync( + TlsInspectionPolicyName name) { + DeleteTlsInspectionPolicyRequest request = + DeleteTlsInspectionPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return deleteServerTlsPolicyAsync(request); + return deleteTlsInspectionPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ServerTlsPolicy. + * Deletes a single TlsInspectionPolicy. * *

                                                                                                              Sample code: * @@ -1958,24 +7175,26 @@ public final OperationFuture deleteServerTlsPolicyAsyn * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String name = - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString(); - * networkSecurityClient.deleteServerTlsPolicyAsync(name).get(); + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + * .toString(); + * networkSecurityClient.deleteTlsInspectionPolicyAsync(name).get(); * } * }

                                                                                                            * - * @param name Required. A name of the ServerTlsPolicy to delete. Must be in the format - * `projects/*/locations/{location}/serverTlsPolicies/*`. + * @param name Required. A name of the TlsInspectionPolicy to delete. Must be in the format + * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServerTlsPolicyAsync(String name) { - DeleteServerTlsPolicyRequest request = - DeleteServerTlsPolicyRequest.newBuilder().setName(name).build(); - return deleteServerTlsPolicyAsync(request); + public final OperationFuture deleteTlsInspectionPolicyAsync( + String name) { + DeleteTlsInspectionPolicyRequest request = + DeleteTlsInspectionPolicyRequest.newBuilder().setName(name).build(); + return deleteTlsInspectionPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ServerTlsPolicy. + * Deletes a single TlsInspectionPolicy. * *

                                                                                                            Sample code: * @@ -1986,27 +7205,28 @@ public final OperationFuture deleteServerTlsPolicyAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteServerTlsPolicyRequest request = - * DeleteServerTlsPolicyRequest.newBuilder() + * DeleteTlsInspectionPolicyRequest request = + * DeleteTlsInspectionPolicyRequest.newBuilder() * .setName( - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") * .toString()) + * .setForce(true) * .build(); - * networkSecurityClient.deleteServerTlsPolicyAsync(request).get(); + * networkSecurityClient.deleteTlsInspectionPolicyAsync(request).get(); * } * }

                                                                                                            * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServerTlsPolicyAsync( - DeleteServerTlsPolicyRequest request) { - return deleteServerTlsPolicyOperationCallable().futureCall(request); + public final OperationFuture deleteTlsInspectionPolicyAsync( + DeleteTlsInspectionPolicyRequest request) { + return deleteTlsInspectionPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ServerTlsPolicy. + * Deletes a single TlsInspectionPolicy. * *

                                                                                                            Sample code: * @@ -2017,27 +7237,28 @@ public final OperationFuture deleteServerTlsPolicyAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteServerTlsPolicyRequest request = - * DeleteServerTlsPolicyRequest.newBuilder() + * DeleteTlsInspectionPolicyRequest request = + * DeleteTlsInspectionPolicyRequest.newBuilder() * .setName( - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") * .toString()) + * .setForce(true) * .build(); * OperationFuture future = - * networkSecurityClient.deleteServerTlsPolicyOperationCallable().futureCall(request); + * networkSecurityClient.deleteTlsInspectionPolicyOperationCallable().futureCall(request); * // Do something. * future.get(); * } * }

                                                                                                            */ - public final OperationCallable - deleteServerTlsPolicyOperationCallable() { - return stub.deleteServerTlsPolicyOperationCallable(); + public final OperationCallable + deleteTlsInspectionPolicyOperationCallable() { + return stub.deleteTlsInspectionPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ServerTlsPolicy. + * Deletes a single TlsInspectionPolicy. * *

                                                                                                            Sample code: * @@ -2047,28 +7268,29 @@ public final OperationFuture deleteServerTlsPolicyAsyn * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteServerTlsPolicyRequest request = - * DeleteServerTlsPolicyRequest.newBuilder() + * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + * DeleteTlsInspectionPolicyRequest request = + * DeleteTlsInspectionPolicyRequest.newBuilder() * .setName( - * ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]") + * TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") * .toString()) + * .setForce(true) * .build(); * ApiFuture future = - * networkSecurityClient.deleteServerTlsPolicyCallable().futureCall(request); + * networkSecurityClient.deleteTlsInspectionPolicyCallable().futureCall(request); * // Do something. * future.get(); * } * }

                                                                                                          */ - public final UnaryCallable - deleteServerTlsPolicyCallable() { - return stub.deleteServerTlsPolicyCallable(); + public final UnaryCallable + deleteTlsInspectionPolicyCallable() { + return stub.deleteTlsInspectionPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ClientTlsPolicies in a given project and location. + * Lists AuthzPolicies in a given project and location. * *

                                                                                                          Sample code: * @@ -2080,28 +7302,27 @@ public final OperationFuture deleteServerTlsPolicyAsyn * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (ClientTlsPolicy element : - * networkSecurityClient.listClientTlsPolicies(parent).iterateAll()) { + * for (AuthzPolicy element : networkSecurityClient.listAuthzPolicies(parent).iterateAll()) { * // doThingsWith(element); * } * } * }

                                                                                                          * - * @param parent Required. The project and location from which the ClientTlsPolicies should be - * listed, specified in the format `projects/*/locations/{location}`. + * @param parent Required. The project and location from which the `AuthzPolicy` resources are + * listed, specified in the following format: `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(LocationName parent) { - ListClientTlsPoliciesRequest request = - ListClientTlsPoliciesRequest.newBuilder() + public final ListAuthzPoliciesPagedResponse listAuthzPolicies(LocationName parent) { + ListAuthzPoliciesRequest request = + ListAuthzPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listClientTlsPolicies(request); + return listAuthzPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ClientTlsPolicies in a given project and location. + * Lists AuthzPolicies in a given project and location. * *

                                                                                                          Sample code: * @@ -2113,26 +7334,25 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(LocationNa * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (ClientTlsPolicy element : - * networkSecurityClient.listClientTlsPolicies(parent).iterateAll()) { + * for (AuthzPolicy element : networkSecurityClient.listAuthzPolicies(parent).iterateAll()) { * // doThingsWith(element); * } * } * }

                                                                                                          * - * @param parent Required. The project and location from which the ClientTlsPolicies should be - * listed, specified in the format `projects/*/locations/{location}`. + * @param parent Required. The project and location from which the `AuthzPolicy` resources are + * listed, specified in the following format: `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(String parent) { - ListClientTlsPoliciesRequest request = - ListClientTlsPoliciesRequest.newBuilder().setParent(parent).build(); - return listClientTlsPolicies(request); + public final ListAuthzPoliciesPagedResponse listAuthzPolicies(String parent) { + ListAuthzPoliciesRequest request = + ListAuthzPoliciesRequest.newBuilder().setParent(parent).build(); + return listAuthzPolicies(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ClientTlsPolicies in a given project and location. + * Lists AuthzPolicies in a given project and location. * *

                                                                                                          Sample code: * @@ -2143,14 +7363,15 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(String par * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListClientTlsPoliciesRequest request = - * ListClientTlsPoliciesRequest.newBuilder() + * ListAuthzPoliciesRequest request = + * ListAuthzPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * for (ClientTlsPolicy element : - * networkSecurityClient.listClientTlsPolicies(request).iterateAll()) { + * for (AuthzPolicy element : networkSecurityClient.listAuthzPolicies(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2159,14 +7380,13 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(String par * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( - ListClientTlsPoliciesRequest request) { - return listClientTlsPoliciesPagedCallable().call(request); + public final ListAuthzPoliciesPagedResponse listAuthzPolicies(ListAuthzPoliciesRequest request) { + return listAuthzPoliciesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ClientTlsPolicies in a given project and location. + * Lists AuthzPolicies in a given project and location. * *

                                                                                                          Sample code: * @@ -2177,29 +7397,31 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListClientTlsPoliciesRequest request = - * ListClientTlsPoliciesRequest.newBuilder() + * ListAuthzPoliciesRequest request = + * ListAuthzPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * networkSecurityClient.listClientTlsPoliciesPagedCallable().futureCall(request); + * ApiFuture future = + * networkSecurityClient.listAuthzPoliciesPagedCallable().futureCall(request); * // Do something. - * for (ClientTlsPolicy element : future.get().iterateAll()) { + * for (AuthzPolicy element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

                                                                                                        */ - public final UnaryCallable - listClientTlsPoliciesPagedCallable() { - return stub.listClientTlsPoliciesPagedCallable(); + public final UnaryCallable + listAuthzPoliciesPagedCallable() { + return stub.listAuthzPoliciesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ClientTlsPolicies in a given project and location. + * Lists AuthzPolicies in a given project and location. * *

                                                                                                        Sample code: * @@ -2210,16 +7432,18 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ListClientTlsPoliciesRequest request = - * ListClientTlsPoliciesRequest.newBuilder() + * ListAuthzPoliciesRequest request = + * ListAuthzPoliciesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListClientTlsPoliciesResponse response = - * networkSecurityClient.listClientTlsPoliciesCallable().call(request); - * for (ClientTlsPolicy element : response.getClientTlsPoliciesList()) { + * ListAuthzPoliciesResponse response = + * networkSecurityClient.listAuthzPoliciesCallable().call(request); + * for (AuthzPolicy element : response.getAuthzPoliciesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2232,14 +7456,14 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( * } * }

                                                                                                        */ - public final UnaryCallable - listClientTlsPoliciesCallable() { - return stub.listClientTlsPoliciesCallable(); + public final UnaryCallable + listAuthzPoliciesCallable() { + return stub.listAuthzPoliciesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single ClientTlsPolicy. + * Gets details of a single AuthzPolicy. * *

                                                                                                        Sample code: * @@ -2250,27 +7474,24 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ClientTlsPolicyName name = - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); - * ClientTlsPolicy response = networkSecurityClient.getClientTlsPolicy(name); + * AuthzPolicyName name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"); + * AuthzPolicy response = networkSecurityClient.getAuthzPolicy(name); * } * }

                                                                                                        * - * @param name Required. A name of the ClientTlsPolicy to get. Must be in the format - * `projects/*/locations/{location}/clientTlsPolicies/*`. + * @param name Required. A name of the `AuthzPolicy` resource to get. Must be in the format + * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientTlsPolicy getClientTlsPolicy(ClientTlsPolicyName name) { - GetClientTlsPolicyRequest request = - GetClientTlsPolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getClientTlsPolicy(request); + public final AuthzPolicy getAuthzPolicy(AuthzPolicyName name) { + GetAuthzPolicyRequest request = + GetAuthzPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAuthzPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single ClientTlsPolicy. + * Gets details of a single AuthzPolicy. * *

                                                                                                        Sample code: * @@ -2281,25 +7502,23 @@ public final ClientTlsPolicy getClientTlsPolicy(ClientTlsPolicyName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * String name = - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); - * ClientTlsPolicy response = networkSecurityClient.getClientTlsPolicy(name); + * String name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString(); + * AuthzPolicy response = networkSecurityClient.getAuthzPolicy(name); * } * }

                                                                                                      * - * @param name Required. A name of the ClientTlsPolicy to get. Must be in the format - * `projects/*/locations/{location}/clientTlsPolicies/*`. + * @param name Required. A name of the `AuthzPolicy` resource to get. Must be in the format + * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientTlsPolicy getClientTlsPolicy(String name) { - GetClientTlsPolicyRequest request = - GetClientTlsPolicyRequest.newBuilder().setName(name).build(); - return getClientTlsPolicy(request); + public final AuthzPolicy getAuthzPolicy(String name) { + GetAuthzPolicyRequest request = GetAuthzPolicyRequest.newBuilder().setName(name).build(); + return getAuthzPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single ClientTlsPolicy. + * Gets details of a single AuthzPolicy. * *

                                                                                                      Sample code: * @@ -2310,26 +7529,24 @@ public final ClientTlsPolicy getClientTlsPolicy(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * GetClientTlsPolicyRequest request = - * GetClientTlsPolicyRequest.newBuilder() - * .setName( - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - * .toString()) + * GetAuthzPolicyRequest request = + * GetAuthzPolicyRequest.newBuilder() + * .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) * .build(); - * ClientTlsPolicy response = networkSecurityClient.getClientTlsPolicy(request); + * AuthzPolicy response = networkSecurityClient.getAuthzPolicy(request); * } * }

                                                                                                      * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest request) { - return getClientTlsPolicyCallable().call(request); + public final AuthzPolicy getAuthzPolicy(GetAuthzPolicyRequest request) { + return getAuthzPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single ClientTlsPolicy. + * Gets details of a single AuthzPolicy. * *

                                                                                                      Sample code: * @@ -2340,27 +7557,24 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * GetClientTlsPolicyRequest request = - * GetClientTlsPolicyRequest.newBuilder() - * .setName( - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - * .toString()) + * GetAuthzPolicyRequest request = + * GetAuthzPolicyRequest.newBuilder() + * .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) * .build(); - * ApiFuture future = - * networkSecurityClient.getClientTlsPolicyCallable().futureCall(request); + * ApiFuture future = + * networkSecurityClient.getAuthzPolicyCallable().futureCall(request); * // Do something. - * ClientTlsPolicy response = future.get(); + * AuthzPolicy response = future.get(); * } * }

                                                                                                      */ - public final UnaryCallable - getClientTlsPolicyCallable() { - return stub.getClientTlsPolicyCallable(); + public final UnaryCallable getAuthzPolicyCallable() { + return stub.getAuthzPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ClientTlsPolicy in a given project and location. + * Creates a new AuthzPolicy in a given project and location. * *

                                                                                                      Sample code: * @@ -2372,37 +7586,33 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); - * String clientTlsPolicyId = "clientTlsPolicyId-188933315"; - * ClientTlsPolicy response = - * networkSecurityClient - * .createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId) - * .get(); + * AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + * String authzPolicyId = "authzPolicyId1717400543"; + * AuthzPolicy response = + * networkSecurityClient.createAuthzPolicyAsync(parent, authzPolicy, authzPolicyId).get(); * } * }

                                                                                                    * - * @param parent Required. The parent resource of the ClientTlsPolicy. Must be in the format - * `projects/*/locations/{location}`. - * @param clientTlsPolicy Required. ClientTlsPolicy resource to be created. - * @param clientTlsPolicyId Required. Short name of the ClientTlsPolicy resource to be created. - * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and - * underscores, and should not start with a number. E.g. "client_mtls_policy". + * @param parent Required. The parent resource of the `AuthzPolicy` resource. Must be in the + * format `projects/{project}/locations/{location}`. + * @param authzPolicy Required. `AuthzPolicy` resource to be created. + * @param authzPolicyId Required. User-provided ID of the `AuthzPolicy` resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createClientTlsPolicyAsync( - LocationName parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { - CreateClientTlsPolicyRequest request = - CreateClientTlsPolicyRequest.newBuilder() + public final OperationFuture createAuthzPolicyAsync( + LocationName parent, AuthzPolicy authzPolicy, String authzPolicyId) { + CreateAuthzPolicyRequest request = + CreateAuthzPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setClientTlsPolicy(clientTlsPolicy) - .setClientTlsPolicyId(clientTlsPolicyId) + .setAuthzPolicy(authzPolicy) + .setAuthzPolicyId(authzPolicyId) .build(); - return createClientTlsPolicyAsync(request); + return createAuthzPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ClientTlsPolicy in a given project and location. + * Creates a new AuthzPolicy in a given project and location. * *

                                                                                                    Sample code: * @@ -2414,37 +7624,33 @@ public final OperationFuture createClientTls * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); - * String clientTlsPolicyId = "clientTlsPolicyId-188933315"; - * ClientTlsPolicy response = - * networkSecurityClient - * .createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId) - * .get(); + * AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + * String authzPolicyId = "authzPolicyId1717400543"; + * AuthzPolicy response = + * networkSecurityClient.createAuthzPolicyAsync(parent, authzPolicy, authzPolicyId).get(); * } * }

                                                                                                    * - * @param parent Required. The parent resource of the ClientTlsPolicy. Must be in the format - * `projects/*/locations/{location}`. - * @param clientTlsPolicy Required. ClientTlsPolicy resource to be created. - * @param clientTlsPolicyId Required. Short name of the ClientTlsPolicy resource to be created. - * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and - * underscores, and should not start with a number. E.g. "client_mtls_policy". + * @param parent Required. The parent resource of the `AuthzPolicy` resource. Must be in the + * format `projects/{project}/locations/{location}`. + * @param authzPolicy Required. `AuthzPolicy` resource to be created. + * @param authzPolicyId Required. User-provided ID of the `AuthzPolicy` resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createClientTlsPolicyAsync( - String parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { - CreateClientTlsPolicyRequest request = - CreateClientTlsPolicyRequest.newBuilder() + public final OperationFuture createAuthzPolicyAsync( + String parent, AuthzPolicy authzPolicy, String authzPolicyId) { + CreateAuthzPolicyRequest request = + CreateAuthzPolicyRequest.newBuilder() .setParent(parent) - .setClientTlsPolicy(clientTlsPolicy) - .setClientTlsPolicyId(clientTlsPolicyId) + .setAuthzPolicy(authzPolicy) + .setAuthzPolicyId(authzPolicyId) .build(); - return createClientTlsPolicyAsync(request); + return createAuthzPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ClientTlsPolicy in a given project and location. + * Creates a new AuthzPolicy in a given project and location. * *

                                                                                                    Sample code: * @@ -2455,27 +7661,28 @@ public final OperationFuture createClientTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateClientTlsPolicyRequest request = - * CreateClientTlsPolicyRequest.newBuilder() + * CreateAuthzPolicyRequest request = + * CreateAuthzPolicyRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setClientTlsPolicyId("clientTlsPolicyId-188933315") - * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) + * .setAuthzPolicyId("authzPolicyId1717400543") + * .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ClientTlsPolicy response = networkSecurityClient.createClientTlsPolicyAsync(request).get(); + * AuthzPolicy response = networkSecurityClient.createAuthzPolicyAsync(request).get(); * } * }

                                                                                                    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createClientTlsPolicyAsync( - CreateClientTlsPolicyRequest request) { - return createClientTlsPolicyOperationCallable().futureCall(request); + public final OperationFuture createAuthzPolicyAsync( + CreateAuthzPolicyRequest request) { + return createAuthzPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ClientTlsPolicy in a given project and location. + * Creates a new AuthzPolicy in a given project and location. * *

                                                                                                    Sample code: * @@ -2486,27 +7693,28 @@ public final OperationFuture createClientTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateClientTlsPolicyRequest request = - * CreateClientTlsPolicyRequest.newBuilder() + * CreateAuthzPolicyRequest request = + * CreateAuthzPolicyRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setClientTlsPolicyId("clientTlsPolicyId-188933315") - * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) + * .setAuthzPolicyId("authzPolicyId1717400543") + * .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * networkSecurityClient.createClientTlsPolicyOperationCallable().futureCall(request); + * OperationFuture future = + * networkSecurityClient.createAuthzPolicyOperationCallable().futureCall(request); * // Do something. - * ClientTlsPolicy response = future.get(); + * AuthzPolicy response = future.get(); * } * }

                                                                                                  */ - public final OperationCallable - createClientTlsPolicyOperationCallable() { - return stub.createClientTlsPolicyOperationCallable(); + public final OperationCallable + createAuthzPolicyOperationCallable() { + return stub.createAuthzPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ClientTlsPolicy in a given project and location. + * Creates a new AuthzPolicy in a given project and location. * *

                                                                                                  Sample code: * @@ -2517,27 +7725,27 @@ public final OperationFuture createClientTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * CreateClientTlsPolicyRequest request = - * CreateClientTlsPolicyRequest.newBuilder() + * CreateAuthzPolicyRequest request = + * CreateAuthzPolicyRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setClientTlsPolicyId("clientTlsPolicyId-188933315") - * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) + * .setAuthzPolicyId("authzPolicyId1717400543") + * .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * networkSecurityClient.createClientTlsPolicyCallable().futureCall(request); + * networkSecurityClient.createAuthzPolicyCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }

                                                                                                  */ - public final UnaryCallable - createClientTlsPolicyCallable() { - return stub.createClientTlsPolicyCallable(); + public final UnaryCallable createAuthzPolicyCallable() { + return stub.createAuthzPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single ClientTlsPolicy. + * Updates the parameters of a single AuthzPolicy. * *

                                                                                                  Sample code: * @@ -2548,33 +7756,33 @@ public final OperationFuture createClientTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + * AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * ClientTlsPolicy response = - * networkSecurityClient.updateClientTlsPolicyAsync(clientTlsPolicy, updateMask).get(); + * AuthzPolicy response = + * networkSecurityClient.updateAuthzPolicyAsync(authzPolicy, updateMask).get(); * } * }

                                                                                                  * - * @param clientTlsPolicy Required. Updated ClientTlsPolicy resource. - * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * ClientTlsPolicy resource by the update. The fields specified in the update_mask are - * relative to the resource, not the full request. A field will be overwritten if it is in the - * mask. If the user does not provide a mask then all fields will be overwritten. + * @param authzPolicy Required. `AuthzPolicy` resource being updated. + * @param updateMask Required. Used to specify the fields to be overwritten in the `AuthzPolicy` + * resource by the update. The fields specified in the `update_mask` are relative to the + * resource, not the full request. A field is overwritten if it is in the mask. If the user + * does not specify a mask, then all fields are overwritten. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateClientTlsPolicyAsync( - ClientTlsPolicy clientTlsPolicy, FieldMask updateMask) { - UpdateClientTlsPolicyRequest request = - UpdateClientTlsPolicyRequest.newBuilder() - .setClientTlsPolicy(clientTlsPolicy) + public final OperationFuture updateAuthzPolicyAsync( + AuthzPolicy authzPolicy, FieldMask updateMask) { + UpdateAuthzPolicyRequest request = + UpdateAuthzPolicyRequest.newBuilder() + .setAuthzPolicy(authzPolicy) .setUpdateMask(updateMask) .build(); - return updateClientTlsPolicyAsync(request); + return updateAuthzPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single ClientTlsPolicy. + * Updates the parameters of a single AuthzPolicy. * *

                                                                                                  Sample code: * @@ -2585,26 +7793,27 @@ public final OperationFuture updateClientTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateClientTlsPolicyRequest request = - * UpdateClientTlsPolicyRequest.newBuilder() + * UpdateAuthzPolicyRequest request = + * UpdateAuthzPolicyRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) + * .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ClientTlsPolicy response = networkSecurityClient.updateClientTlsPolicyAsync(request).get(); + * AuthzPolicy response = networkSecurityClient.updateAuthzPolicyAsync(request).get(); * } * }

                                                                                                * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateClientTlsPolicyAsync( - UpdateClientTlsPolicyRequest request) { - return updateClientTlsPolicyOperationCallable().futureCall(request); + public final OperationFuture updateAuthzPolicyAsync( + UpdateAuthzPolicyRequest request) { + return updateAuthzPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single ClientTlsPolicy. + * Updates the parameters of a single AuthzPolicy. * *

                                                                                                Sample code: * @@ -2615,26 +7824,27 @@ public final OperationFuture updateClientTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateClientTlsPolicyRequest request = - * UpdateClientTlsPolicyRequest.newBuilder() + * UpdateAuthzPolicyRequest request = + * UpdateAuthzPolicyRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) + * .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * OperationFuture future = - * networkSecurityClient.updateClientTlsPolicyOperationCallable().futureCall(request); + * OperationFuture future = + * networkSecurityClient.updateAuthzPolicyOperationCallable().futureCall(request); * // Do something. - * ClientTlsPolicy response = future.get(); + * AuthzPolicy response = future.get(); * } * }

                                                                                                */ - public final OperationCallable - updateClientTlsPolicyOperationCallable() { - return stub.updateClientTlsPolicyOperationCallable(); + public final OperationCallable + updateAuthzPolicyOperationCallable() { + return stub.updateAuthzPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single ClientTlsPolicy. + * Updates the parameters of a single AuthzPolicy. * *

                                                                                                Sample code: * @@ -2645,26 +7855,26 @@ public final OperationFuture updateClientTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * UpdateClientTlsPolicyRequest request = - * UpdateClientTlsPolicyRequest.newBuilder() + * UpdateAuthzPolicyRequest request = + * UpdateAuthzPolicyRequest.newBuilder() * .setUpdateMask(FieldMask.newBuilder().build()) - * .setClientTlsPolicy(ClientTlsPolicy.newBuilder().build()) + * .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * networkSecurityClient.updateClientTlsPolicyCallable().futureCall(request); + * networkSecurityClient.updateAuthzPolicyCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * }

                                                                                                */ - public final UnaryCallable - updateClientTlsPolicyCallable() { - return stub.updateClientTlsPolicyCallable(); + public final UnaryCallable updateAuthzPolicyCallable() { + return stub.updateAuthzPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ClientTlsPolicy. + * Deletes a single AuthzPolicy. * *

                                                                                                Sample code: * @@ -2675,28 +7885,27 @@ public final OperationFuture updateClientTls * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * ClientTlsPolicyName name = - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); - * networkSecurityClient.deleteClientTlsPolicyAsync(name).get(); + * AuthzPolicyName name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"); + * networkSecurityClient.deleteAuthzPolicyAsync(name).get(); * } * }

                                                                                              * - * @param name Required. A name of the ClientTlsPolicy to delete. Must be in the format - * `projects/*/locations/{location}/clientTlsPolicies/*`. + * @param name Required. The name of the `AuthzPolicy` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClientTlsPolicyAsync( - ClientTlsPolicyName name) { - DeleteClientTlsPolicyRequest request = - DeleteClientTlsPolicyRequest.newBuilder() + public final OperationFuture deleteAuthzPolicyAsync( + AuthzPolicyName name) { + DeleteAuthzPolicyRequest request = + DeleteAuthzPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return deleteClientTlsPolicyAsync(request); + return deleteAuthzPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ClientTlsPolicy. + * Deletes a single AuthzPolicy. * *

                                                                                              Sample code: * @@ -2707,25 +7916,23 @@ public final OperationFuture deleteClientTlsPolicyAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * String name = - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString(); - * networkSecurityClient.deleteClientTlsPolicyAsync(name).get(); + * String name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString(); + * networkSecurityClient.deleteAuthzPolicyAsync(name).get(); * } * }

                                                                                              * - * @param name Required. A name of the ClientTlsPolicy to delete. Must be in the format - * `projects/*/locations/{location}/clientTlsPolicies/*`. + * @param name Required. The name of the `AuthzPolicy` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClientTlsPolicyAsync(String name) { - DeleteClientTlsPolicyRequest request = - DeleteClientTlsPolicyRequest.newBuilder().setName(name).build(); - return deleteClientTlsPolicyAsync(request); + public final OperationFuture deleteAuthzPolicyAsync(String name) { + DeleteAuthzPolicyRequest request = DeleteAuthzPolicyRequest.newBuilder().setName(name).build(); + return deleteAuthzPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ClientTlsPolicy. + * Deletes a single AuthzPolicy. * *

                                                                                              Sample code: * @@ -2736,27 +7943,26 @@ public final OperationFuture deleteClientTlsPolicyAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteClientTlsPolicyRequest request = - * DeleteClientTlsPolicyRequest.newBuilder() - * .setName( - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - * .toString()) + * DeleteAuthzPolicyRequest request = + * DeleteAuthzPolicyRequest.newBuilder() + * .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) + * .setRequestId("requestId693933066") * .build(); - * networkSecurityClient.deleteClientTlsPolicyAsync(request).get(); + * networkSecurityClient.deleteAuthzPolicyAsync(request).get(); * } * }

                                                                                              * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClientTlsPolicyAsync( - DeleteClientTlsPolicyRequest request) { - return deleteClientTlsPolicyOperationCallable().futureCall(request); + public final OperationFuture deleteAuthzPolicyAsync( + DeleteAuthzPolicyRequest request) { + return deleteAuthzPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ClientTlsPolicy. + * Deletes a single AuthzPolicy. * *

                                                                                              Sample code: * @@ -2767,27 +7973,26 @@ public final OperationFuture deleteClientTlsPolicyAsyn * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteClientTlsPolicyRequest request = - * DeleteClientTlsPolicyRequest.newBuilder() - * .setName( - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - * .toString()) + * DeleteAuthzPolicyRequest request = + * DeleteAuthzPolicyRequest.newBuilder() + * .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) + * .setRequestId("requestId693933066") * .build(); * OperationFuture future = - * networkSecurityClient.deleteClientTlsPolicyOperationCallable().futureCall(request); + * networkSecurityClient.deleteAuthzPolicyOperationCallable().futureCall(request); * // Do something. * future.get(); * } * }

                                                                                            */ - public final OperationCallable - deleteClientTlsPolicyOperationCallable() { - return stub.deleteClientTlsPolicyOperationCallable(); + public final OperationCallable + deleteAuthzPolicyOperationCallable() { + return stub.deleteAuthzPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ClientTlsPolicy. + * Deletes a single AuthzPolicy. * *

                                                                                            Sample code: * @@ -2795,31 +8000,42 @@ public final OperationFuture deleteClientTlsPolicyAsyn * // This snippet has been automatically generated and should be regarded as a code template only. * // It will require modifications to work: * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { - * DeleteClientTlsPolicyRequest request = - * DeleteClientTlsPolicyRequest.newBuilder() - * .setName( - * ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]") - * .toString()) + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + * DeleteAuthzPolicyRequest request = + * DeleteAuthzPolicyRequest.newBuilder() + * .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = - * networkSecurityClient.deleteClientTlsPolicyCallable().futureCall(request); + * networkSecurityClient.deleteAuthzPolicyCallable().futureCall(request); * // Do something. * future.get(); * } * }

                                                                                            */ - public final UnaryCallable - deleteClientTlsPolicyCallable() { - return stub.deleteClientTlsPolicyCallable(); + public final UnaryCallable deleteAuthzPolicyCallable() { + return stub.deleteAuthzPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. * + *

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            @@ -2853,6 +8069,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                               /**
                                                                                                * Lists information about the supported locations for this service.
                                                                                                *
                                                                                            +   * 

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            @@ -2887,6 +8116,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                               /**
                                                                                                * Lists information about the supported locations for this service.
                                                                                                *
                                                                                            +   * 

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            @@ -3307,6 +8549,104 @@ protected ListAuthorizationPoliciesFixedSizeCollection createCollection(
                                                                                                 }
                                                                                               }
                                                                                             
                                                                                            +  public static class ListBackendAuthenticationConfigsPagedResponse
                                                                                            +      extends AbstractPagedListResponse<
                                                                                            +          ListBackendAuthenticationConfigsRequest,
                                                                                            +          ListBackendAuthenticationConfigsResponse,
                                                                                            +          BackendAuthenticationConfig,
                                                                                            +          ListBackendAuthenticationConfigsPage,
                                                                                            +          ListBackendAuthenticationConfigsFixedSizeCollection> {
                                                                                            +
                                                                                            +    public static ApiFuture createAsync(
                                                                                            +        PageContext<
                                                                                            +                ListBackendAuthenticationConfigsRequest,
                                                                                            +                ListBackendAuthenticationConfigsResponse,
                                                                                            +                BackendAuthenticationConfig>
                                                                                            +            context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      ApiFuture futurePage =
                                                                                            +          ListBackendAuthenticationConfigsPage.createEmptyPage()
                                                                                            +              .createPageAsync(context, futureResponse);
                                                                                            +      return ApiFutures.transform(
                                                                                            +          futurePage,
                                                                                            +          input -> new ListBackendAuthenticationConfigsPagedResponse(input),
                                                                                            +          MoreExecutors.directExecutor());
                                                                                            +    }
                                                                                            +
                                                                                            +    private ListBackendAuthenticationConfigsPagedResponse(
                                                                                            +        ListBackendAuthenticationConfigsPage page) {
                                                                                            +      super(page, ListBackendAuthenticationConfigsFixedSizeCollection.createEmptyCollection());
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListBackendAuthenticationConfigsPage
                                                                                            +      extends AbstractPage<
                                                                                            +          ListBackendAuthenticationConfigsRequest,
                                                                                            +          ListBackendAuthenticationConfigsResponse,
                                                                                            +          BackendAuthenticationConfig,
                                                                                            +          ListBackendAuthenticationConfigsPage> {
                                                                                            +
                                                                                            +    private ListBackendAuthenticationConfigsPage(
                                                                                            +        PageContext<
                                                                                            +                ListBackendAuthenticationConfigsRequest,
                                                                                            +                ListBackendAuthenticationConfigsResponse,
                                                                                            +                BackendAuthenticationConfig>
                                                                                            +            context,
                                                                                            +        ListBackendAuthenticationConfigsResponse response) {
                                                                                            +      super(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListBackendAuthenticationConfigsPage createEmptyPage() {
                                                                                            +      return new ListBackendAuthenticationConfigsPage(null, null);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListBackendAuthenticationConfigsPage createPage(
                                                                                            +        PageContext<
                                                                                            +                ListBackendAuthenticationConfigsRequest,
                                                                                            +                ListBackendAuthenticationConfigsResponse,
                                                                                            +                BackendAuthenticationConfig>
                                                                                            +            context,
                                                                                            +        ListBackendAuthenticationConfigsResponse response) {
                                                                                            +      return new ListBackendAuthenticationConfigsPage(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    public ApiFuture createPageAsync(
                                                                                            +        PageContext<
                                                                                            +                ListBackendAuthenticationConfigsRequest,
                                                                                            +                ListBackendAuthenticationConfigsResponse,
                                                                                            +                BackendAuthenticationConfig>
                                                                                            +            context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      return super.createPageAsync(context, futureResponse);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListBackendAuthenticationConfigsFixedSizeCollection
                                                                                            +      extends AbstractFixedSizeCollection<
                                                                                            +          ListBackendAuthenticationConfigsRequest,
                                                                                            +          ListBackendAuthenticationConfigsResponse,
                                                                                            +          BackendAuthenticationConfig,
                                                                                            +          ListBackendAuthenticationConfigsPage,
                                                                                            +          ListBackendAuthenticationConfigsFixedSizeCollection> {
                                                                                            +
                                                                                            +    private ListBackendAuthenticationConfigsFixedSizeCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      super(pages, collectionSize);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListBackendAuthenticationConfigsFixedSizeCollection createEmptyCollection() {
                                                                                            +      return new ListBackendAuthenticationConfigsFixedSizeCollection(null, 0);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListBackendAuthenticationConfigsFixedSizeCollection createCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      return new ListBackendAuthenticationConfigsFixedSizeCollection(pages, collectionSize);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                               public static class ListServerTlsPoliciesPagedResponse
                                                                                                   extends AbstractPagedListResponse<
                                                                                                       ListServerTlsPoliciesRequest,
                                                                                            @@ -3475,6 +8815,448 @@ protected ListClientTlsPoliciesFixedSizeCollection createCollection(
                                                                                                 }
                                                                                               }
                                                                                             
                                                                                            +  public static class ListGatewaySecurityPoliciesPagedResponse
                                                                                            +      extends AbstractPagedListResponse<
                                                                                            +          ListGatewaySecurityPoliciesRequest,
                                                                                            +          ListGatewaySecurityPoliciesResponse,
                                                                                            +          GatewaySecurityPolicy,
                                                                                            +          ListGatewaySecurityPoliciesPage,
                                                                                            +          ListGatewaySecurityPoliciesFixedSizeCollection> {
                                                                                            +
                                                                                            +    public static ApiFuture createAsync(
                                                                                            +        PageContext<
                                                                                            +                ListGatewaySecurityPoliciesRequest,
                                                                                            +                ListGatewaySecurityPoliciesResponse,
                                                                                            +                GatewaySecurityPolicy>
                                                                                            +            context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      ApiFuture futurePage =
                                                                                            +          ListGatewaySecurityPoliciesPage.createEmptyPage()
                                                                                            +              .createPageAsync(context, futureResponse);
                                                                                            +      return ApiFutures.transform(
                                                                                            +          futurePage,
                                                                                            +          input -> new ListGatewaySecurityPoliciesPagedResponse(input),
                                                                                            +          MoreExecutors.directExecutor());
                                                                                            +    }
                                                                                            +
                                                                                            +    private ListGatewaySecurityPoliciesPagedResponse(ListGatewaySecurityPoliciesPage page) {
                                                                                            +      super(page, ListGatewaySecurityPoliciesFixedSizeCollection.createEmptyCollection());
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListGatewaySecurityPoliciesPage
                                                                                            +      extends AbstractPage<
                                                                                            +          ListGatewaySecurityPoliciesRequest,
                                                                                            +          ListGatewaySecurityPoliciesResponse,
                                                                                            +          GatewaySecurityPolicy,
                                                                                            +          ListGatewaySecurityPoliciesPage> {
                                                                                            +
                                                                                            +    private ListGatewaySecurityPoliciesPage(
                                                                                            +        PageContext<
                                                                                            +                ListGatewaySecurityPoliciesRequest,
                                                                                            +                ListGatewaySecurityPoliciesResponse,
                                                                                            +                GatewaySecurityPolicy>
                                                                                            +            context,
                                                                                            +        ListGatewaySecurityPoliciesResponse response) {
                                                                                            +      super(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListGatewaySecurityPoliciesPage createEmptyPage() {
                                                                                            +      return new ListGatewaySecurityPoliciesPage(null, null);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListGatewaySecurityPoliciesPage createPage(
                                                                                            +        PageContext<
                                                                                            +                ListGatewaySecurityPoliciesRequest,
                                                                                            +                ListGatewaySecurityPoliciesResponse,
                                                                                            +                GatewaySecurityPolicy>
                                                                                            +            context,
                                                                                            +        ListGatewaySecurityPoliciesResponse response) {
                                                                                            +      return new ListGatewaySecurityPoliciesPage(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    public ApiFuture createPageAsync(
                                                                                            +        PageContext<
                                                                                            +                ListGatewaySecurityPoliciesRequest,
                                                                                            +                ListGatewaySecurityPoliciesResponse,
                                                                                            +                GatewaySecurityPolicy>
                                                                                            +            context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      return super.createPageAsync(context, futureResponse);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListGatewaySecurityPoliciesFixedSizeCollection
                                                                                            +      extends AbstractFixedSizeCollection<
                                                                                            +          ListGatewaySecurityPoliciesRequest,
                                                                                            +          ListGatewaySecurityPoliciesResponse,
                                                                                            +          GatewaySecurityPolicy,
                                                                                            +          ListGatewaySecurityPoliciesPage,
                                                                                            +          ListGatewaySecurityPoliciesFixedSizeCollection> {
                                                                                            +
                                                                                            +    private ListGatewaySecurityPoliciesFixedSizeCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      super(pages, collectionSize);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListGatewaySecurityPoliciesFixedSizeCollection createEmptyCollection() {
                                                                                            +      return new ListGatewaySecurityPoliciesFixedSizeCollection(null, 0);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListGatewaySecurityPoliciesFixedSizeCollection createCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      return new ListGatewaySecurityPoliciesFixedSizeCollection(pages, collectionSize);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListGatewaySecurityPolicyRulesPagedResponse
                                                                                            +      extends AbstractPagedListResponse<
                                                                                            +          ListGatewaySecurityPolicyRulesRequest,
                                                                                            +          ListGatewaySecurityPolicyRulesResponse,
                                                                                            +          GatewaySecurityPolicyRule,
                                                                                            +          ListGatewaySecurityPolicyRulesPage,
                                                                                            +          ListGatewaySecurityPolicyRulesFixedSizeCollection> {
                                                                                            +
                                                                                            +    public static ApiFuture createAsync(
                                                                                            +        PageContext<
                                                                                            +                ListGatewaySecurityPolicyRulesRequest,
                                                                                            +                ListGatewaySecurityPolicyRulesResponse,
                                                                                            +                GatewaySecurityPolicyRule>
                                                                                            +            context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      ApiFuture futurePage =
                                                                                            +          ListGatewaySecurityPolicyRulesPage.createEmptyPage()
                                                                                            +              .createPageAsync(context, futureResponse);
                                                                                            +      return ApiFutures.transform(
                                                                                            +          futurePage,
                                                                                            +          input -> new ListGatewaySecurityPolicyRulesPagedResponse(input),
                                                                                            +          MoreExecutors.directExecutor());
                                                                                            +    }
                                                                                            +
                                                                                            +    private ListGatewaySecurityPolicyRulesPagedResponse(ListGatewaySecurityPolicyRulesPage page) {
                                                                                            +      super(page, ListGatewaySecurityPolicyRulesFixedSizeCollection.createEmptyCollection());
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListGatewaySecurityPolicyRulesPage
                                                                                            +      extends AbstractPage<
                                                                                            +          ListGatewaySecurityPolicyRulesRequest,
                                                                                            +          ListGatewaySecurityPolicyRulesResponse,
                                                                                            +          GatewaySecurityPolicyRule,
                                                                                            +          ListGatewaySecurityPolicyRulesPage> {
                                                                                            +
                                                                                            +    private ListGatewaySecurityPolicyRulesPage(
                                                                                            +        PageContext<
                                                                                            +                ListGatewaySecurityPolicyRulesRequest,
                                                                                            +                ListGatewaySecurityPolicyRulesResponse,
                                                                                            +                GatewaySecurityPolicyRule>
                                                                                            +            context,
                                                                                            +        ListGatewaySecurityPolicyRulesResponse response) {
                                                                                            +      super(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListGatewaySecurityPolicyRulesPage createEmptyPage() {
                                                                                            +      return new ListGatewaySecurityPolicyRulesPage(null, null);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListGatewaySecurityPolicyRulesPage createPage(
                                                                                            +        PageContext<
                                                                                            +                ListGatewaySecurityPolicyRulesRequest,
                                                                                            +                ListGatewaySecurityPolicyRulesResponse,
                                                                                            +                GatewaySecurityPolicyRule>
                                                                                            +            context,
                                                                                            +        ListGatewaySecurityPolicyRulesResponse response) {
                                                                                            +      return new ListGatewaySecurityPolicyRulesPage(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    public ApiFuture createPageAsync(
                                                                                            +        PageContext<
                                                                                            +                ListGatewaySecurityPolicyRulesRequest,
                                                                                            +                ListGatewaySecurityPolicyRulesResponse,
                                                                                            +                GatewaySecurityPolicyRule>
                                                                                            +            context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      return super.createPageAsync(context, futureResponse);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListGatewaySecurityPolicyRulesFixedSizeCollection
                                                                                            +      extends AbstractFixedSizeCollection<
                                                                                            +          ListGatewaySecurityPolicyRulesRequest,
                                                                                            +          ListGatewaySecurityPolicyRulesResponse,
                                                                                            +          GatewaySecurityPolicyRule,
                                                                                            +          ListGatewaySecurityPolicyRulesPage,
                                                                                            +          ListGatewaySecurityPolicyRulesFixedSizeCollection> {
                                                                                            +
                                                                                            +    private ListGatewaySecurityPolicyRulesFixedSizeCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      super(pages, collectionSize);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListGatewaySecurityPolicyRulesFixedSizeCollection createEmptyCollection() {
                                                                                            +      return new ListGatewaySecurityPolicyRulesFixedSizeCollection(null, 0);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListGatewaySecurityPolicyRulesFixedSizeCollection createCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      return new ListGatewaySecurityPolicyRulesFixedSizeCollection(pages, collectionSize);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListUrlListsPagedResponse
                                                                                            +      extends AbstractPagedListResponse<
                                                                                            +          ListUrlListsRequest,
                                                                                            +          ListUrlListsResponse,
                                                                                            +          UrlList,
                                                                                            +          ListUrlListsPage,
                                                                                            +          ListUrlListsFixedSizeCollection> {
                                                                                            +
                                                                                            +    public static ApiFuture createAsync(
                                                                                            +        PageContext context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      ApiFuture futurePage =
                                                                                            +          ListUrlListsPage.createEmptyPage().createPageAsync(context, futureResponse);
                                                                                            +      return ApiFutures.transform(
                                                                                            +          futurePage,
                                                                                            +          input -> new ListUrlListsPagedResponse(input),
                                                                                            +          MoreExecutors.directExecutor());
                                                                                            +    }
                                                                                            +
                                                                                            +    private ListUrlListsPagedResponse(ListUrlListsPage page) {
                                                                                            +      super(page, ListUrlListsFixedSizeCollection.createEmptyCollection());
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListUrlListsPage
                                                                                            +      extends AbstractPage {
                                                                                            +
                                                                                            +    private ListUrlListsPage(
                                                                                            +        PageContext context,
                                                                                            +        ListUrlListsResponse response) {
                                                                                            +      super(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListUrlListsPage createEmptyPage() {
                                                                                            +      return new ListUrlListsPage(null, null);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListUrlListsPage createPage(
                                                                                            +        PageContext context,
                                                                                            +        ListUrlListsResponse response) {
                                                                                            +      return new ListUrlListsPage(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    public ApiFuture createPageAsync(
                                                                                            +        PageContext context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      return super.createPageAsync(context, futureResponse);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListUrlListsFixedSizeCollection
                                                                                            +      extends AbstractFixedSizeCollection<
                                                                                            +          ListUrlListsRequest,
                                                                                            +          ListUrlListsResponse,
                                                                                            +          UrlList,
                                                                                            +          ListUrlListsPage,
                                                                                            +          ListUrlListsFixedSizeCollection> {
                                                                                            +
                                                                                            +    private ListUrlListsFixedSizeCollection(List pages, int collectionSize) {
                                                                                            +      super(pages, collectionSize);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListUrlListsFixedSizeCollection createEmptyCollection() {
                                                                                            +      return new ListUrlListsFixedSizeCollection(null, 0);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListUrlListsFixedSizeCollection createCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      return new ListUrlListsFixedSizeCollection(pages, collectionSize);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListTlsInspectionPoliciesPagedResponse
                                                                                            +      extends AbstractPagedListResponse<
                                                                                            +          ListTlsInspectionPoliciesRequest,
                                                                                            +          ListTlsInspectionPoliciesResponse,
                                                                                            +          TlsInspectionPolicy,
                                                                                            +          ListTlsInspectionPoliciesPage,
                                                                                            +          ListTlsInspectionPoliciesFixedSizeCollection> {
                                                                                            +
                                                                                            +    public static ApiFuture createAsync(
                                                                                            +        PageContext<
                                                                                            +                ListTlsInspectionPoliciesRequest,
                                                                                            +                ListTlsInspectionPoliciesResponse,
                                                                                            +                TlsInspectionPolicy>
                                                                                            +            context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      ApiFuture futurePage =
                                                                                            +          ListTlsInspectionPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse);
                                                                                            +      return ApiFutures.transform(
                                                                                            +          futurePage,
                                                                                            +          input -> new ListTlsInspectionPoliciesPagedResponse(input),
                                                                                            +          MoreExecutors.directExecutor());
                                                                                            +    }
                                                                                            +
                                                                                            +    private ListTlsInspectionPoliciesPagedResponse(ListTlsInspectionPoliciesPage page) {
                                                                                            +      super(page, ListTlsInspectionPoliciesFixedSizeCollection.createEmptyCollection());
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListTlsInspectionPoliciesPage
                                                                                            +      extends AbstractPage<
                                                                                            +          ListTlsInspectionPoliciesRequest,
                                                                                            +          ListTlsInspectionPoliciesResponse,
                                                                                            +          TlsInspectionPolicy,
                                                                                            +          ListTlsInspectionPoliciesPage> {
                                                                                            +
                                                                                            +    private ListTlsInspectionPoliciesPage(
                                                                                            +        PageContext<
                                                                                            +                ListTlsInspectionPoliciesRequest,
                                                                                            +                ListTlsInspectionPoliciesResponse,
                                                                                            +                TlsInspectionPolicy>
                                                                                            +            context,
                                                                                            +        ListTlsInspectionPoliciesResponse response) {
                                                                                            +      super(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListTlsInspectionPoliciesPage createEmptyPage() {
                                                                                            +      return new ListTlsInspectionPoliciesPage(null, null);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListTlsInspectionPoliciesPage createPage(
                                                                                            +        PageContext<
                                                                                            +                ListTlsInspectionPoliciesRequest,
                                                                                            +                ListTlsInspectionPoliciesResponse,
                                                                                            +                TlsInspectionPolicy>
                                                                                            +            context,
                                                                                            +        ListTlsInspectionPoliciesResponse response) {
                                                                                            +      return new ListTlsInspectionPoliciesPage(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    public ApiFuture createPageAsync(
                                                                                            +        PageContext<
                                                                                            +                ListTlsInspectionPoliciesRequest,
                                                                                            +                ListTlsInspectionPoliciesResponse,
                                                                                            +                TlsInspectionPolicy>
                                                                                            +            context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      return super.createPageAsync(context, futureResponse);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListTlsInspectionPoliciesFixedSizeCollection
                                                                                            +      extends AbstractFixedSizeCollection<
                                                                                            +          ListTlsInspectionPoliciesRequest,
                                                                                            +          ListTlsInspectionPoliciesResponse,
                                                                                            +          TlsInspectionPolicy,
                                                                                            +          ListTlsInspectionPoliciesPage,
                                                                                            +          ListTlsInspectionPoliciesFixedSizeCollection> {
                                                                                            +
                                                                                            +    private ListTlsInspectionPoliciesFixedSizeCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      super(pages, collectionSize);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListTlsInspectionPoliciesFixedSizeCollection createEmptyCollection() {
                                                                                            +      return new ListTlsInspectionPoliciesFixedSizeCollection(null, 0);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListTlsInspectionPoliciesFixedSizeCollection createCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      return new ListTlsInspectionPoliciesFixedSizeCollection(pages, collectionSize);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListAuthzPoliciesPagedResponse
                                                                                            +      extends AbstractPagedListResponse<
                                                                                            +          ListAuthzPoliciesRequest,
                                                                                            +          ListAuthzPoliciesResponse,
                                                                                            +          AuthzPolicy,
                                                                                            +          ListAuthzPoliciesPage,
                                                                                            +          ListAuthzPoliciesFixedSizeCollection> {
                                                                                            +
                                                                                            +    public static ApiFuture createAsync(
                                                                                            +        PageContext context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      ApiFuture futurePage =
                                                                                            +          ListAuthzPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse);
                                                                                            +      return ApiFutures.transform(
                                                                                            +          futurePage,
                                                                                            +          input -> new ListAuthzPoliciesPagedResponse(input),
                                                                                            +          MoreExecutors.directExecutor());
                                                                                            +    }
                                                                                            +
                                                                                            +    private ListAuthzPoliciesPagedResponse(ListAuthzPoliciesPage page) {
                                                                                            +      super(page, ListAuthzPoliciesFixedSizeCollection.createEmptyCollection());
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListAuthzPoliciesPage
                                                                                            +      extends AbstractPage<
                                                                                            +          ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, AuthzPolicy, ListAuthzPoliciesPage> {
                                                                                            +
                                                                                            +    private ListAuthzPoliciesPage(
                                                                                            +        PageContext context,
                                                                                            +        ListAuthzPoliciesResponse response) {
                                                                                            +      super(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListAuthzPoliciesPage createEmptyPage() {
                                                                                            +      return new ListAuthzPoliciesPage(null, null);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListAuthzPoliciesPage createPage(
                                                                                            +        PageContext context,
                                                                                            +        ListAuthzPoliciesResponse response) {
                                                                                            +      return new ListAuthzPoliciesPage(context, response);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    public ApiFuture createPageAsync(
                                                                                            +        PageContext context,
                                                                                            +        ApiFuture futureResponse) {
                                                                                            +      return super.createPageAsync(context, futureResponse);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                            +  public static class ListAuthzPoliciesFixedSizeCollection
                                                                                            +      extends AbstractFixedSizeCollection<
                                                                                            +          ListAuthzPoliciesRequest,
                                                                                            +          ListAuthzPoliciesResponse,
                                                                                            +          AuthzPolicy,
                                                                                            +          ListAuthzPoliciesPage,
                                                                                            +          ListAuthzPoliciesFixedSizeCollection> {
                                                                                            +
                                                                                            +    private ListAuthzPoliciesFixedSizeCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      super(pages, collectionSize);
                                                                                            +    }
                                                                                            +
                                                                                            +    private static ListAuthzPoliciesFixedSizeCollection createEmptyCollection() {
                                                                                            +      return new ListAuthzPoliciesFixedSizeCollection(null, 0);
                                                                                            +    }
                                                                                            +
                                                                                            +    @Override
                                                                                            +    protected ListAuthzPoliciesFixedSizeCollection createCollection(
                                                                                            +        List pages, int collectionSize) {
                                                                                            +      return new ListAuthzPoliciesFixedSizeCollection(pages, collectionSize);
                                                                                            +    }
                                                                                            +  }
                                                                                            +
                                                                                               public static class ListLocationsPagedResponse
                                                                                                   extends AbstractPagedListResponse<
                                                                                                       ListLocationsRequest,
                                                                                            diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java
                                                                                            index 3f0d4ac71a57..8a9f4bcd0d23 100644
                                                                                            --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java
                                                                                            +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java
                                                                                            @@ -17,9 +17,15 @@
                                                                                             package com.google.cloud.networksecurity.v1;
                                                                                             
                                                                                             import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse;
                                                                                            +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthzPoliciesPagedResponse;
                                                                                            +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListBackendAuthenticationConfigsPagedResponse;
                                                                                             import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse;
                                                                                            +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPoliciesPagedResponse;
                                                                                            +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPolicyRulesPagedResponse;
                                                                                             import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListLocationsPagedResponse;
                                                                                             import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse;
                                                                                            +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListTlsInspectionPoliciesPagedResponse;
                                                                                            +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListUrlListsPagedResponse;
                                                                                             
                                                                                             import com.google.api.core.ApiFunction;
                                                                                             import com.google.api.gax.core.GoogleCredentialsProvider;
                                                                                            @@ -184,6 +190,67 @@ public class NetworkSecuritySettings extends ClientSettings
                                                                                            +      listBackendAuthenticationConfigsSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .listBackendAuthenticationConfigsSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to getBackendAuthenticationConfig. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      getBackendAuthenticationConfigSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .getBackendAuthenticationConfigSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createBackendAuthenticationConfig. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      createBackendAuthenticationConfigSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .createBackendAuthenticationConfigSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createBackendAuthenticationConfig. */
                                                                                            +  public OperationCallSettings<
                                                                                            +          CreateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata>
                                                                                            +      createBackendAuthenticationConfigOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .createBackendAuthenticationConfigOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateBackendAuthenticationConfig. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      updateBackendAuthenticationConfigSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .updateBackendAuthenticationConfigSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateBackendAuthenticationConfig. */
                                                                                            +  public OperationCallSettings<
                                                                                            +          UpdateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata>
                                                                                            +      updateBackendAuthenticationConfigOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .updateBackendAuthenticationConfigOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteBackendAuthenticationConfig. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      deleteBackendAuthenticationConfigSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .deleteBackendAuthenticationConfigSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteBackendAuthenticationConfig. */
                                                                                            +  public OperationCallSettings
                                                                                            +      deleteBackendAuthenticationConfigOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .deleteBackendAuthenticationConfigOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                               /** Returns the object with the settings used for calls to listServerTlsPolicies. */
                                                                                               public PagedCallSettings<
                                                                                                       ListServerTlsPoliciesRequest,
                                                                                            @@ -292,6 +359,267 @@ public class NetworkSecuritySettings extends ClientSettings
                                                                                            +      listGatewaySecurityPoliciesSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).listGatewaySecurityPoliciesSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to getGatewaySecurityPolicy. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      getGatewaySecurityPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).getGatewaySecurityPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createGatewaySecurityPolicy. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      createGatewaySecurityPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).createGatewaySecurityPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createGatewaySecurityPolicy. */
                                                                                            +  public OperationCallSettings<
                                                                                            +          CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata>
                                                                                            +      createGatewaySecurityPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .createGatewaySecurityPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateGatewaySecurityPolicy. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      updateGatewaySecurityPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).updateGatewaySecurityPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateGatewaySecurityPolicy. */
                                                                                            +  public OperationCallSettings<
                                                                                            +          UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata>
                                                                                            +      updateGatewaySecurityPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .updateGatewaySecurityPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteGatewaySecurityPolicy. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      deleteGatewaySecurityPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).deleteGatewaySecurityPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteGatewaySecurityPolicy. */
                                                                                            +  public OperationCallSettings
                                                                                            +      deleteGatewaySecurityPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .deleteGatewaySecurityPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to listGatewaySecurityPolicyRules. */
                                                                                            +  public PagedCallSettings<
                                                                                            +          ListGatewaySecurityPolicyRulesRequest,
                                                                                            +          ListGatewaySecurityPolicyRulesResponse,
                                                                                            +          ListGatewaySecurityPolicyRulesPagedResponse>
                                                                                            +      listGatewaySecurityPolicyRulesSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .listGatewaySecurityPolicyRulesSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to getGatewaySecurityPolicyRule. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      getGatewaySecurityPolicyRuleSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).getGatewaySecurityPolicyRuleSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createGatewaySecurityPolicyRule. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      createGatewaySecurityPolicyRuleSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .createGatewaySecurityPolicyRuleSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createGatewaySecurityPolicyRule. */
                                                                                            +  public OperationCallSettings<
                                                                                            +          CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata>
                                                                                            +      createGatewaySecurityPolicyRuleOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .createGatewaySecurityPolicyRuleOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateGatewaySecurityPolicyRule. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      updateGatewaySecurityPolicyRuleSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .updateGatewaySecurityPolicyRuleSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateGatewaySecurityPolicyRule. */
                                                                                            +  public OperationCallSettings<
                                                                                            +          UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata>
                                                                                            +      updateGatewaySecurityPolicyRuleOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .updateGatewaySecurityPolicyRuleOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteGatewaySecurityPolicyRule. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      deleteGatewaySecurityPolicyRuleSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .deleteGatewaySecurityPolicyRuleSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteGatewaySecurityPolicyRule. */
                                                                                            +  public OperationCallSettings
                                                                                            +      deleteGatewaySecurityPolicyRuleOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .deleteGatewaySecurityPolicyRuleOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to listUrlLists. */
                                                                                            +  public PagedCallSettings
                                                                                            +      listUrlListsSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).listUrlListsSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to getUrlList. */
                                                                                            +  public UnaryCallSettings getUrlListSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).getUrlListSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createUrlList. */
                                                                                            +  public UnaryCallSettings createUrlListSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).createUrlListSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createUrlList. */
                                                                                            +  public OperationCallSettings
                                                                                            +      createUrlListOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).createUrlListOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateUrlList. */
                                                                                            +  public UnaryCallSettings updateUrlListSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).updateUrlListSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateUrlList. */
                                                                                            +  public OperationCallSettings
                                                                                            +      updateUrlListOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).updateUrlListOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteUrlList. */
                                                                                            +  public UnaryCallSettings deleteUrlListSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).deleteUrlListSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteUrlList. */
                                                                                            +  public OperationCallSettings
                                                                                            +      deleteUrlListOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).deleteUrlListOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to listTlsInspectionPolicies. */
                                                                                            +  public PagedCallSettings<
                                                                                            +          ListTlsInspectionPoliciesRequest,
                                                                                            +          ListTlsInspectionPoliciesResponse,
                                                                                            +          ListTlsInspectionPoliciesPagedResponse>
                                                                                            +      listTlsInspectionPoliciesSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).listTlsInspectionPoliciesSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to getTlsInspectionPolicy. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      getTlsInspectionPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).getTlsInspectionPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createTlsInspectionPolicy. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      createTlsInspectionPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).createTlsInspectionPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createTlsInspectionPolicy. */
                                                                                            +  public OperationCallSettings<
                                                                                            +          CreateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata>
                                                                                            +      createTlsInspectionPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .createTlsInspectionPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateTlsInspectionPolicy. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      updateTlsInspectionPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).updateTlsInspectionPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateTlsInspectionPolicy. */
                                                                                            +  public OperationCallSettings<
                                                                                            +          UpdateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata>
                                                                                            +      updateTlsInspectionPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .updateTlsInspectionPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteTlsInspectionPolicy. */
                                                                                            +  public UnaryCallSettings
                                                                                            +      deleteTlsInspectionPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).deleteTlsInspectionPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteTlsInspectionPolicy. */
                                                                                            +  public OperationCallSettings
                                                                                            +      deleteTlsInspectionPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings())
                                                                                            +        .deleteTlsInspectionPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to listAuthzPolicies. */
                                                                                            +  public PagedCallSettings<
                                                                                            +          ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, ListAuthzPoliciesPagedResponse>
                                                                                            +      listAuthzPoliciesSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).listAuthzPoliciesSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to getAuthzPolicy. */
                                                                                            +  public UnaryCallSettings getAuthzPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).getAuthzPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createAuthzPolicy. */
                                                                                            +  public UnaryCallSettings createAuthzPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).createAuthzPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to createAuthzPolicy. */
                                                                                            +  public OperationCallSettings
                                                                                            +      createAuthzPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).createAuthzPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateAuthzPolicy. */
                                                                                            +  public UnaryCallSettings updateAuthzPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).updateAuthzPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to updateAuthzPolicy. */
                                                                                            +  public OperationCallSettings
                                                                                            +      updateAuthzPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).updateAuthzPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteAuthzPolicy. */
                                                                                            +  public UnaryCallSettings deleteAuthzPolicySettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).deleteAuthzPolicySettings();
                                                                                            +  }
                                                                                            +
                                                                                            +  /** Returns the object with the settings used for calls to deleteAuthzPolicy. */
                                                                                            +  public OperationCallSettings
                                                                                            +      deleteAuthzPolicyOperationSettings() {
                                                                                            +    return ((NetworkSecurityStubSettings) getStubSettings()).deleteAuthzPolicyOperationSettings();
                                                                                            +  }
                                                                                            +
                                                                                               /** Returns the object with the settings used for calls to listLocations. */
                                                                                               public PagedCallSettings
                                                                                                   listLocationsSettings() {
                                                                                            @@ -468,6 +796,65 @@ public Builder applyToAllUnaryMethods(
                                                                                                   return getStubSettingsBuilder().deleteAuthorizationPolicyOperationSettings();
                                                                                                 }
                                                                                             
                                                                                            +    /** Returns the builder for the settings used for calls to listBackendAuthenticationConfigs. */
                                                                                            +    public PagedCallSettings.Builder<
                                                                                            +            ListBackendAuthenticationConfigsRequest,
                                                                                            +            ListBackendAuthenticationConfigsResponse,
                                                                                            +            ListBackendAuthenticationConfigsPagedResponse>
                                                                                            +        listBackendAuthenticationConfigsSettings() {
                                                                                            +      return getStubSettingsBuilder().listBackendAuthenticationConfigsSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to getBackendAuthenticationConfig. */
                                                                                            +    public UnaryCallSettings.Builder<
                                                                                            +            GetBackendAuthenticationConfigRequest, BackendAuthenticationConfig>
                                                                                            +        getBackendAuthenticationConfigSettings() {
                                                                                            +      return getStubSettingsBuilder().getBackendAuthenticationConfigSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createBackendAuthenticationConfig. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        createBackendAuthenticationConfigSettings() {
                                                                                            +      return getStubSettingsBuilder().createBackendAuthenticationConfigSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createBackendAuthenticationConfig. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            CreateBackendAuthenticationConfigRequest,
                                                                                            +            BackendAuthenticationConfig,
                                                                                            +            OperationMetadata>
                                                                                            +        createBackendAuthenticationConfigOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().createBackendAuthenticationConfigOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateBackendAuthenticationConfig. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        updateBackendAuthenticationConfigSettings() {
                                                                                            +      return getStubSettingsBuilder().updateBackendAuthenticationConfigSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateBackendAuthenticationConfig. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            UpdateBackendAuthenticationConfigRequest,
                                                                                            +            BackendAuthenticationConfig,
                                                                                            +            OperationMetadata>
                                                                                            +        updateBackendAuthenticationConfigOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().updateBackendAuthenticationConfigOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteBackendAuthenticationConfig. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        deleteBackendAuthenticationConfigSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteBackendAuthenticationConfigSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteBackendAuthenticationConfig. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            DeleteBackendAuthenticationConfigRequest, Empty, OperationMetadata>
                                                                                            +        deleteBackendAuthenticationConfigOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteBackendAuthenticationConfigOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                                 /** Returns the builder for the settings used for calls to listServerTlsPolicies. */
                                                                                                 public PagedCallSettings.Builder<
                                                                                                         ListServerTlsPoliciesRequest,
                                                                                            @@ -574,6 +961,260 @@ public Builder applyToAllUnaryMethods(
                                                                                                   return getStubSettingsBuilder().deleteClientTlsPolicyOperationSettings();
                                                                                                 }
                                                                                             
                                                                                            +    /** Returns the builder for the settings used for calls to listGatewaySecurityPolicies. */
                                                                                            +    public PagedCallSettings.Builder<
                                                                                            +            ListGatewaySecurityPoliciesRequest,
                                                                                            +            ListGatewaySecurityPoliciesResponse,
                                                                                            +            ListGatewaySecurityPoliciesPagedResponse>
                                                                                            +        listGatewaySecurityPoliciesSettings() {
                                                                                            +      return getStubSettingsBuilder().listGatewaySecurityPoliciesSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to getGatewaySecurityPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        getGatewaySecurityPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().getGatewaySecurityPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createGatewaySecurityPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        createGatewaySecurityPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().createGatewaySecurityPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createGatewaySecurityPolicy. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata>
                                                                                            +        createGatewaySecurityPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().createGatewaySecurityPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateGatewaySecurityPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        updateGatewaySecurityPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().updateGatewaySecurityPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateGatewaySecurityPolicy. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata>
                                                                                            +        updateGatewaySecurityPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().updateGatewaySecurityPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteGatewaySecurityPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        deleteGatewaySecurityPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().deleteGatewaySecurityPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteGatewaySecurityPolicy. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            DeleteGatewaySecurityPolicyRequest, Empty, OperationMetadata>
                                                                                            +        deleteGatewaySecurityPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteGatewaySecurityPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to listGatewaySecurityPolicyRules. */
                                                                                            +    public PagedCallSettings.Builder<
                                                                                            +            ListGatewaySecurityPolicyRulesRequest,
                                                                                            +            ListGatewaySecurityPolicyRulesResponse,
                                                                                            +            ListGatewaySecurityPolicyRulesPagedResponse>
                                                                                            +        listGatewaySecurityPolicyRulesSettings() {
                                                                                            +      return getStubSettingsBuilder().listGatewaySecurityPolicyRulesSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to getGatewaySecurityPolicyRule. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        getGatewaySecurityPolicyRuleSettings() {
                                                                                            +      return getStubSettingsBuilder().getGatewaySecurityPolicyRuleSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createGatewaySecurityPolicyRule. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        createGatewaySecurityPolicyRuleSettings() {
                                                                                            +      return getStubSettingsBuilder().createGatewaySecurityPolicyRuleSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createGatewaySecurityPolicyRule. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata>
                                                                                            +        createGatewaySecurityPolicyRuleOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().createGatewaySecurityPolicyRuleOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateGatewaySecurityPolicyRule. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        updateGatewaySecurityPolicyRuleSettings() {
                                                                                            +      return getStubSettingsBuilder().updateGatewaySecurityPolicyRuleSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateGatewaySecurityPolicyRule. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata>
                                                                                            +        updateGatewaySecurityPolicyRuleOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().updateGatewaySecurityPolicyRuleOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteGatewaySecurityPolicyRule. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        deleteGatewaySecurityPolicyRuleSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteGatewaySecurityPolicyRuleSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteGatewaySecurityPolicyRule. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            DeleteGatewaySecurityPolicyRuleRequest, Empty, OperationMetadata>
                                                                                            +        deleteGatewaySecurityPolicyRuleOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteGatewaySecurityPolicyRuleOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to listUrlLists. */
                                                                                            +    public PagedCallSettings.Builder<
                                                                                            +            ListUrlListsRequest, ListUrlListsResponse, ListUrlListsPagedResponse>
                                                                                            +        listUrlListsSettings() {
                                                                                            +      return getStubSettingsBuilder().listUrlListsSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to getUrlList. */
                                                                                            +    public UnaryCallSettings.Builder getUrlListSettings() {
                                                                                            +      return getStubSettingsBuilder().getUrlListSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createUrlList. */
                                                                                            +    public UnaryCallSettings.Builder createUrlListSettings() {
                                                                                            +      return getStubSettingsBuilder().createUrlListSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createUrlList. */
                                                                                            +    public OperationCallSettings.Builder
                                                                                            +        createUrlListOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().createUrlListOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateUrlList. */
                                                                                            +    public UnaryCallSettings.Builder updateUrlListSettings() {
                                                                                            +      return getStubSettingsBuilder().updateUrlListSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateUrlList. */
                                                                                            +    public OperationCallSettings.Builder
                                                                                            +        updateUrlListOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().updateUrlListOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteUrlList. */
                                                                                            +    public UnaryCallSettings.Builder deleteUrlListSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteUrlListSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteUrlList. */
                                                                                            +    public OperationCallSettings.Builder
                                                                                            +        deleteUrlListOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteUrlListOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to listTlsInspectionPolicies. */
                                                                                            +    public PagedCallSettings.Builder<
                                                                                            +            ListTlsInspectionPoliciesRequest,
                                                                                            +            ListTlsInspectionPoliciesResponse,
                                                                                            +            ListTlsInspectionPoliciesPagedResponse>
                                                                                            +        listTlsInspectionPoliciesSettings() {
                                                                                            +      return getStubSettingsBuilder().listTlsInspectionPoliciesSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to getTlsInspectionPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        getTlsInspectionPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().getTlsInspectionPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createTlsInspectionPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        createTlsInspectionPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().createTlsInspectionPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createTlsInspectionPolicy. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            CreateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata>
                                                                                            +        createTlsInspectionPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().createTlsInspectionPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateTlsInspectionPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        updateTlsInspectionPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().updateTlsInspectionPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateTlsInspectionPolicy. */
                                                                                            +    public OperationCallSettings.Builder<
                                                                                            +            UpdateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata>
                                                                                            +        updateTlsInspectionPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().updateTlsInspectionPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteTlsInspectionPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        deleteTlsInspectionPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().deleteTlsInspectionPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteTlsInspectionPolicy. */
                                                                                            +    public OperationCallSettings.Builder
                                                                                            +        deleteTlsInspectionPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteTlsInspectionPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to listAuthzPolicies. */
                                                                                            +    public PagedCallSettings.Builder<
                                                                                            +            ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, ListAuthzPoliciesPagedResponse>
                                                                                            +        listAuthzPoliciesSettings() {
                                                                                            +      return getStubSettingsBuilder().listAuthzPoliciesSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to getAuthzPolicy. */
                                                                                            +    public UnaryCallSettings.Builder getAuthzPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().getAuthzPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createAuthzPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        createAuthzPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().createAuthzPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to createAuthzPolicy. */
                                                                                            +    public OperationCallSettings.Builder
                                                                                            +        createAuthzPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().createAuthzPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateAuthzPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        updateAuthzPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().updateAuthzPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to updateAuthzPolicy. */
                                                                                            +    public OperationCallSettings.Builder
                                                                                            +        updateAuthzPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().updateAuthzPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteAuthzPolicy. */
                                                                                            +    public UnaryCallSettings.Builder
                                                                                            +        deleteAuthzPolicySettings() {
                                                                                            +      return getStubSettingsBuilder().deleteAuthzPolicySettings();
                                                                                            +    }
                                                                                            +
                                                                                            +    /** Returns the builder for the settings used for calls to deleteAuthzPolicy. */
                                                                                            +    public OperationCallSettings.Builder
                                                                                            +        deleteAuthzPolicyOperationSettings() {
                                                                                            +      return getStubSettingsBuilder().deleteAuthzPolicyOperationSettings();
                                                                                            +    }
                                                                                            +
                                                                                                 /** Returns the builder for the settings used for calls to listLocations. */
                                                                                                 public PagedCallSettings.Builder<
                                                                                                         ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                                                                                            diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java
                                                                                            index affb5bdf217e..b1a6f47dfae2 100644
                                                                                            --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java
                                                                                            +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java
                                                                                            @@ -265,7 +265,10 @@
                                                                                              *    
                                                                                              *    
                                                                                              *      

                                                                                            ListLocations - *

                                                                                            Lists information about the supported locations for this service. + *

                                                                                            Lists information about the supported locations for this service. + *

                                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                            *
                                                                                              @@ -2168,6 +2171,19 @@ public final ListAddressGroupReferencesPagedResponse listAddressGroupReferences( /** * Lists information about the supported locations for this service. * + *

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              @@ -2203,6 +2219,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                 /**
                                                                                                  * Lists information about the supported locations for this service.
                                                                                                  *
                                                                                              +   * 

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              @@ -2238,6 +2267,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                 /**
                                                                                                  * Lists information about the supported locations for this service.
                                                                                                  *
                                                                                              +   * 

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClient.java
                                                                                              new file mode 100644
                                                                                              index 000000000000..c6ef2768d653
                                                                                              --- /dev/null
                                                                                              +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClient.java
                                                                                              @@ -0,0 +1,3067 @@
                                                                                              +/*
                                                                                              + * Copyright 2026 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.
                                                                                              + */
                                                                                              +
                                                                                              +package com.google.cloud.networksecurity.v1;
                                                                                              +
                                                                                              +import com.google.api.core.ApiFuture;
                                                                                              +import com.google.api.core.ApiFutures;
                                                                                              +import com.google.api.gax.core.BackgroundResource;
                                                                                              +import com.google.api.gax.longrunning.OperationFuture;
                                                                                              +import com.google.api.gax.paging.AbstractFixedSizeCollection;
                                                                                              +import com.google.api.gax.paging.AbstractPage;
                                                                                              +import com.google.api.gax.paging.AbstractPagedListResponse;
                                                                                              +import com.google.api.gax.rpc.OperationCallable;
                                                                                              +import com.google.api.gax.rpc.PageContext;
                                                                                              +import com.google.api.gax.rpc.UnaryCallable;
                                                                                              +import com.google.cloud.location.GetLocationRequest;
                                                                                              +import com.google.cloud.location.ListLocationsRequest;
                                                                                              +import com.google.cloud.location.ListLocationsResponse;
                                                                                              +import com.google.cloud.location.Location;
                                                                                              +import com.google.cloud.networksecurity.v1.stub.OrganizationSecurityProfileGroupServiceStub;
                                                                                              +import com.google.cloud.networksecurity.v1.stub.OrganizationSecurityProfileGroupServiceStubSettings;
                                                                                              +import com.google.common.util.concurrent.MoreExecutors;
                                                                                              +import com.google.iam.v1.GetIamPolicyRequest;
                                                                                              +import com.google.iam.v1.Policy;
                                                                                              +import com.google.iam.v1.SetIamPolicyRequest;
                                                                                              +import com.google.iam.v1.TestIamPermissionsRequest;
                                                                                              +import com.google.iam.v1.TestIamPermissionsResponse;
                                                                                              +import com.google.longrunning.Operation;
                                                                                              +import com.google.longrunning.OperationsClient;
                                                                                              +import com.google.protobuf.Empty;
                                                                                              +import com.google.protobuf.FieldMask;
                                                                                              +import java.io.IOException;
                                                                                              +import java.util.List;
                                                                                              +import java.util.concurrent.TimeUnit;
                                                                                              +import javax.annotation.Generated;
                                                                                              +
                                                                                              +// AUTO-GENERATED DOCUMENTATION AND CLASS.
                                                                                              +/**
                                                                                              + * Service Description: Organization SecurityProfileGroup is created under organization.
                                                                                              + *
                                                                                              + * 

                                                                                              This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              + *     organizationSecurityProfileGroupServiceClient =
                                                                                              + *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              + *   SecurityProfileGroupName name =
                                                                                              + *       SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              + *           "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
                                                                                              + *   SecurityProfileGroup response =
                                                                                              + *       organizationSecurityProfileGroupServiceClient.getSecurityProfileGroup(name);
                                                                                              + * }
                                                                                              + * }
                                                                                              + * + *

                                                                                              Note: close() needs to be called on the OrganizationSecurityProfileGroupServiceClient object + * to clean up resources such as threads. In the example above, try-with-resources is used, which + * automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                                                                              Methods
                                                                                              MethodDescriptionMethod Variants

                                                                                              ListSecurityProfileGroups

                                                                                              Lists SecurityProfileGroups in a given organization and location.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • listSecurityProfileGroups(ListSecurityProfileGroupsRequest request) + *

                                                                                              + *

                                                                                              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                              + *
                                                                                                + *
                                                                                              • listSecurityProfileGroups(LocationName parent) + *

                                                                                              • listSecurityProfileGroups(OrganizationLocationName parent) + *

                                                                                              • listSecurityProfileGroups(String parent) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • listSecurityProfileGroupsPagedCallable() + *

                                                                                              • listSecurityProfileGroupsCallable() + *

                                                                                              + *

                                                                                              GetSecurityProfileGroup

                                                                                              Gets details of a single SecurityProfileGroup.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • getSecurityProfileGroup(GetSecurityProfileGroupRequest request) + *

                                                                                              + *

                                                                                              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                              + *
                                                                                                + *
                                                                                              • getSecurityProfileGroup(SecurityProfileGroupName name) + *

                                                                                              • getSecurityProfileGroup(String name) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • getSecurityProfileGroupCallable() + *

                                                                                              + *

                                                                                              CreateSecurityProfileGroup

                                                                                              Creates a new SecurityProfileGroup in a given organization and location.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • createSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest request) + *

                                                                                              + *

                                                                                              Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                              + *
                                                                                                + *
                                                                                              • createSecurityProfileGroupAsync(LocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) + *

                                                                                              • createSecurityProfileGroupAsync(OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) + *

                                                                                              • createSecurityProfileGroupAsync(String parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • createSecurityProfileGroupOperationCallable() + *

                                                                                              • createSecurityProfileGroupCallable() + *

                                                                                              + *

                                                                                              UpdateSecurityProfileGroup

                                                                                              Updates the parameters of a single SecurityProfileGroup.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • updateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest request) + *

                                                                                              + *

                                                                                              Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                              + *
                                                                                                + *
                                                                                              • updateSecurityProfileGroupAsync(SecurityProfileGroup securityProfileGroup, FieldMask updateMask) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • updateSecurityProfileGroupOperationCallable() + *

                                                                                              • updateSecurityProfileGroupCallable() + *

                                                                                              + *

                                                                                              DeleteSecurityProfileGroup

                                                                                              Deletes a single SecurityProfileGroup.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • deleteSecurityProfileGroupAsync(DeleteSecurityProfileGroupRequest request) + *

                                                                                              + *

                                                                                              Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                              + *
                                                                                                + *
                                                                                              • deleteSecurityProfileGroupAsync(SecurityProfileGroupName name) + *

                                                                                              • deleteSecurityProfileGroupAsync(String name) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • deleteSecurityProfileGroupOperationCallable() + *

                                                                                              • deleteSecurityProfileGroupCallable() + *

                                                                                              + *

                                                                                              ListSecurityProfiles

                                                                                              Lists SecurityProfiles in a given organization and location.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • listSecurityProfiles(ListSecurityProfilesRequest request) + *

                                                                                              + *

                                                                                              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                              + *
                                                                                                + *
                                                                                              • listSecurityProfiles(LocationName parent) + *

                                                                                              • listSecurityProfiles(OrganizationLocationName parent) + *

                                                                                              • listSecurityProfiles(String parent) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • listSecurityProfilesPagedCallable() + *

                                                                                              • listSecurityProfilesCallable() + *

                                                                                              + *

                                                                                              GetSecurityProfile

                                                                                              Gets details of a single SecurityProfile.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • getSecurityProfile(GetSecurityProfileRequest request) + *

                                                                                              + *

                                                                                              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                              + *
                                                                                                + *
                                                                                              • getSecurityProfile(SecurityProfileName name) + *

                                                                                              • getSecurityProfile(String name) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • getSecurityProfileCallable() + *

                                                                                              + *

                                                                                              CreateSecurityProfile

                                                                                              Creates a new SecurityProfile in a given organization and location.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • createSecurityProfileAsync(CreateSecurityProfileRequest request) + *

                                                                                              + *

                                                                                              Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                              + *
                                                                                                + *
                                                                                              • createSecurityProfileAsync(LocationName parent, SecurityProfile securityProfile, String securityProfileId) + *

                                                                                              • createSecurityProfileAsync(OrganizationLocationName parent, SecurityProfile securityProfile, String securityProfileId) + *

                                                                                              • createSecurityProfileAsync(String parent, SecurityProfile securityProfile, String securityProfileId) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • createSecurityProfileOperationCallable() + *

                                                                                              • createSecurityProfileCallable() + *

                                                                                              + *

                                                                                              UpdateSecurityProfile

                                                                                              Updates the parameters of a single SecurityProfile.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • updateSecurityProfileAsync(UpdateSecurityProfileRequest request) + *

                                                                                              + *

                                                                                              Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                              + *
                                                                                                + *
                                                                                              • updateSecurityProfileAsync(SecurityProfile securityProfile, FieldMask updateMask) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • updateSecurityProfileOperationCallable() + *

                                                                                              • updateSecurityProfileCallable() + *

                                                                                              + *

                                                                                              DeleteSecurityProfile

                                                                                              Deletes a single SecurityProfile.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • deleteSecurityProfileAsync(DeleteSecurityProfileRequest request) + *

                                                                                              + *

                                                                                              Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

                                                                                              + *
                                                                                                + *
                                                                                              • deleteSecurityProfileAsync(SecurityProfileName name) + *

                                                                                              • deleteSecurityProfileAsync(String name) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • deleteSecurityProfileOperationCallable() + *

                                                                                              • deleteSecurityProfileCallable() + *

                                                                                              + *

                                                                                              ListLocations

                                                                                              Lists information about the supported locations for this service. + *

                                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • listLocations(ListLocationsRequest request) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • listLocationsPagedCallable() + *

                                                                                              • listLocationsCallable() + *

                                                                                              + *

                                                                                              GetLocation

                                                                                              Gets information about a location.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • getLocation(GetLocationRequest request) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • getLocationCallable() + *

                                                                                              + *

                                                                                              SetIamPolicy

                                                                                              Sets the access control policy on the specified resource. Replacesany existing policy. + *

                                                                                              Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • setIamPolicy(SetIamPolicyRequest request) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • setIamPolicyCallable() + *

                                                                                              + *

                                                                                              GetIamPolicy

                                                                                              Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • getIamPolicy(GetIamPolicyRequest request) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • getIamPolicyCallable() + *

                                                                                              + *

                                                                                              TestIamPermissions

                                                                                              Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

                                                                                              Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

                                                                                              + *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              + *
                                                                                                + *
                                                                                              • testIamPermissions(TestIamPermissionsRequest request) + *

                                                                                              + *

                                                                                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                              + *
                                                                                                + *
                                                                                              • testIamPermissionsCallable() + *

                                                                                              + *
                                                                                              + * + *

                                                                                              See the individual methods for example code. + * + *

                                                                                              Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                                                                              This class can be customized by passing in a custom instance of + * OrganizationSecurityProfileGroupServiceSettings to create(). For example: + * + *

                                                                                              To customize credentials: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * OrganizationSecurityProfileGroupServiceSettings
                                                                                              + *     organizationSecurityProfileGroupServiceSettings =
                                                                                              + *         OrganizationSecurityProfileGroupServiceSettings.newBuilder()
                                                                                              + *             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                                                                              + *             .build();
                                                                                              + * OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient =
                                                                                              + *     OrganizationSecurityProfileGroupServiceClient.create(
                                                                                              + *         organizationSecurityProfileGroupServiceSettings);
                                                                                              + * }
                                                                                              + * + *

                                                                                              To customize the endpoint: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * OrganizationSecurityProfileGroupServiceSettings
                                                                                              + *     organizationSecurityProfileGroupServiceSettings =
                                                                                              + *         OrganizationSecurityProfileGroupServiceSettings.newBuilder()
                                                                                              + *             .setEndpoint(myEndpoint)
                                                                                              + *             .build();
                                                                                              + * OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient =
                                                                                              + *     OrganizationSecurityProfileGroupServiceClient.create(
                                                                                              + *         organizationSecurityProfileGroupServiceSettings);
                                                                                              + * }
                                                                                              + * + *

                                                                                              Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OrganizationSecurityProfileGroupServiceClient implements BackgroundResource { + private final OrganizationSecurityProfileGroupServiceSettings settings; + private final OrganizationSecurityProfileGroupServiceStub stub; + private final OperationsClient operationsClient; + + /** + * Constructs an instance of OrganizationSecurityProfileGroupServiceClient with default settings. + */ + public static final OrganizationSecurityProfileGroupServiceClient create() throws IOException { + return create(OrganizationSecurityProfileGroupServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OrganizationSecurityProfileGroupServiceClient, using the given + * settings. The channels are created based on the settings passed in, or defaults for any + * settings that are not set. + */ + public static final OrganizationSecurityProfileGroupServiceClient create( + OrganizationSecurityProfileGroupServiceSettings settings) throws IOException { + return new OrganizationSecurityProfileGroupServiceClient(settings); + } + + /** + * Constructs an instance of OrganizationSecurityProfileGroupServiceClient, using the given stub + * for making calls. This is for advanced usage - prefer using + * create(OrganizationSecurityProfileGroupServiceSettings). + */ + public static final OrganizationSecurityProfileGroupServiceClient create( + OrganizationSecurityProfileGroupServiceStub stub) { + return new OrganizationSecurityProfileGroupServiceClient(stub); + } + + /** + * Constructs an instance of OrganizationSecurityProfileGroupServiceClient, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected OrganizationSecurityProfileGroupServiceClient( + OrganizationSecurityProfileGroupServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = + ((OrganizationSecurityProfileGroupServiceStubSettings) settings.getStubSettings()) + .createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected OrganizationSecurityProfileGroupServiceClient( + OrganizationSecurityProfileGroupServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final OrganizationSecurityProfileGroupServiceSettings getSettings() { + return settings; + } + + public OrganizationSecurityProfileGroupServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfileGroups in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                              +   *   for (SecurityProfileGroup element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .listSecurityProfileGroups(parent)
                                                                                              +   *           .iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The project or organization and location from which the + * SecurityProfileGroups should be listed, specified in the format + * `projects|organizations/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( + LocationName parent) { + ListSecurityProfileGroupsRequest request = + ListSecurityProfileGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSecurityProfileGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfileGroups in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                                                                              +   *   for (SecurityProfileGroup element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .listSecurityProfileGroups(parent)
                                                                                              +   *           .iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The project or organization and location from which the + * SecurityProfileGroups should be listed, specified in the format + * `projects|organizations/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( + OrganizationLocationName parent) { + ListSecurityProfileGroupsRequest request = + ListSecurityProfileGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSecurityProfileGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfileGroups in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
                                                                                              +   *   for (SecurityProfileGroup element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .listSecurityProfileGroups(parent)
                                                                                              +   *           .iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The project or organization and location from which the + * SecurityProfileGroups should be listed, specified in the format + * `projects|organizations/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups(String parent) { + ListSecurityProfileGroupsRequest request = + ListSecurityProfileGroupsRequest.newBuilder().setParent(parent).build(); + return listSecurityProfileGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfileGroups in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListSecurityProfileGroupsRequest request =
                                                                                              +   *       ListSecurityProfileGroupsRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   for (SecurityProfileGroup element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .listSecurityProfileGroups(request)
                                                                                              +   *           .iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( + ListSecurityProfileGroupsRequest request) { + return listSecurityProfileGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfileGroups in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListSecurityProfileGroupsRequest request =
                                                                                              +   *       ListSecurityProfileGroupsRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .listSecurityProfileGroupsPagedCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   for (SecurityProfileGroup element : future.get().iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable< + ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsPagedResponse> + listSecurityProfileGroupsPagedCallable() { + return stub.listSecurityProfileGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfileGroups in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListSecurityProfileGroupsRequest request =
                                                                                              +   *       ListSecurityProfileGroupsRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   while (true) {
                                                                                              +   *     ListSecurityProfileGroupsResponse response =
                                                                                              +   *         organizationSecurityProfileGroupServiceClient
                                                                                              +   *             .listSecurityProfileGroupsCallable()
                                                                                              +   *             .call(request);
                                                                                              +   *     for (SecurityProfileGroup element : response.getSecurityProfileGroupsList()) {
                                                                                              +   *       // doThingsWith(element);
                                                                                              +   *     }
                                                                                              +   *     String nextPageToken = response.getNextPageToken();
                                                                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                              +   *     } else {
                                                                                              +   *       break;
                                                                                              +   *     }
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + listSecurityProfileGroupsCallable() { + return stub.listSecurityProfileGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   SecurityProfileGroupName name =
                                                                                              +   *       SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *           "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.getSecurityProfileGroup(name);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param name Required. A name of the SecurityProfileGroup to get. Must be in the format + * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityProfileGroup getSecurityProfileGroup(SecurityProfileGroupName name) { + GetSecurityProfileGroupRequest request = + GetSecurityProfileGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSecurityProfileGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   String name =
                                                                                              +   *       SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *               "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                                                                                              +   *           .toString();
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.getSecurityProfileGroup(name);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param name Required. A name of the SecurityProfileGroup to get. Must be in the format + * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityProfileGroup getSecurityProfileGroup(String name) { + GetSecurityProfileGroupRequest request = + GetSecurityProfileGroupRequest.newBuilder().setName(name).build(); + return getSecurityProfileGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   GetSecurityProfileGroupRequest request =
                                                                                              +   *       GetSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .build();
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.getSecurityProfileGroup(request);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityProfileGroup getSecurityProfileGroup( + GetSecurityProfileGroupRequest request) { + return getSecurityProfileGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   GetSecurityProfileGroupRequest request =
                                                                                              +   *       GetSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .getSecurityProfileGroupCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   SecurityProfileGroup response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + getSecurityProfileGroupCallable() { + return stub.getSecurityProfileGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfileGroup in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                              +   *   SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build();
                                                                                              +   *   String securityProfileGroupId = "securityProfileGroupId-357991055";
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The parent resource of the SecurityProfileGroup. Must be in the format + * `projects|organizations/*/locations/{location}`. + * @param securityProfileGroup Required. SecurityProfileGroup resource to be created. + * @param securityProfileGroupId Required. Short name of the SecurityProfileGroup resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. + * "security_profile_group1". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createSecurityProfileGroupAsync( + LocationName parent, + SecurityProfileGroup securityProfileGroup, + String securityProfileGroupId) { + CreateSecurityProfileGroupRequest request = + CreateSecurityProfileGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSecurityProfileGroup(securityProfileGroup) + .setSecurityProfileGroupId(securityProfileGroupId) + .build(); + return createSecurityProfileGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfileGroup in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                                                                              +   *   SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build();
                                                                                              +   *   String securityProfileGroupId = "securityProfileGroupId-357991055";
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The parent resource of the SecurityProfileGroup. Must be in the format + * `projects|organizations/*/locations/{location}`. + * @param securityProfileGroup Required. SecurityProfileGroup resource to be created. + * @param securityProfileGroupId Required. Short name of the SecurityProfileGroup resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. + * "security_profile_group1". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createSecurityProfileGroupAsync( + OrganizationLocationName parent, + SecurityProfileGroup securityProfileGroup, + String securityProfileGroupId) { + CreateSecurityProfileGroupRequest request = + CreateSecurityProfileGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSecurityProfileGroup(securityProfileGroup) + .setSecurityProfileGroupId(securityProfileGroupId) + .build(); + return createSecurityProfileGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfileGroup in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
                                                                                              +   *   SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build();
                                                                                              +   *   String securityProfileGroupId = "securityProfileGroupId-357991055";
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The parent resource of the SecurityProfileGroup. Must be in the format + * `projects|organizations/*/locations/{location}`. + * @param securityProfileGroup Required. SecurityProfileGroup resource to be created. + * @param securityProfileGroupId Required. Short name of the SecurityProfileGroup resource to be + * created. This value should be 1-63 characters long, containing only letters, numbers, + * hyphens, and underscores, and should not start with a number. E.g. + * "security_profile_group1". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createSecurityProfileGroupAsync( + String parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) { + CreateSecurityProfileGroupRequest request = + CreateSecurityProfileGroupRequest.newBuilder() + .setParent(parent) + .setSecurityProfileGroup(securityProfileGroup) + .setSecurityProfileGroupId(securityProfileGroupId) + .build(); + return createSecurityProfileGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfileGroup in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   CreateSecurityProfileGroupRequest request =
                                                                                              +   *       CreateSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setSecurityProfileGroupId("securityProfileGroupId-357991055")
                                                                                              +   *           .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileGroupAsync(request)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createSecurityProfileGroupAsync(CreateSecurityProfileGroupRequest request) { + return createSecurityProfileGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfileGroup in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   CreateSecurityProfileGroupRequest request =
                                                                                              +   *       CreateSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setSecurityProfileGroupId("securityProfileGroupId-357991055")
                                                                                              +   *           .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   OperationFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileGroupOperationCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   SecurityProfileGroup response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final OperationCallable< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationCallable() { + return stub.createSecurityProfileGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfileGroup in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   CreateSecurityProfileGroupRequest request =
                                                                                              +   *       CreateSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setSecurityProfileGroupId("securityProfileGroupId-357991055")
                                                                                              +   *           .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileGroupCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   Operation response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + createSecurityProfileGroupCallable() { + return stub.createSecurityProfileGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build();
                                                                                              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .updateSecurityProfileGroupAsync(securityProfileGroup, updateMask)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param securityProfileGroup Required. Updated SecurityProfileGroup resource. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * SecurityProfileGroup resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateSecurityProfileGroupAsync( + SecurityProfileGroup securityProfileGroup, FieldMask updateMask) { + UpdateSecurityProfileGroupRequest request = + UpdateSecurityProfileGroupRequest.newBuilder() + .setSecurityProfileGroup(securityProfileGroup) + .setUpdateMask(updateMask) + .build(); + return updateSecurityProfileGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   UpdateSecurityProfileGroupRequest request =
                                                                                              +   *       UpdateSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                              +   *           .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   SecurityProfileGroup response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .updateSecurityProfileGroupAsync(request)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateSecurityProfileGroupAsync(UpdateSecurityProfileGroupRequest request) { + return updateSecurityProfileGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   UpdateSecurityProfileGroupRequest request =
                                                                                              +   *       UpdateSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                              +   *           .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   OperationFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .updateSecurityProfileGroupOperationCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   SecurityProfileGroup response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final OperationCallable< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationCallable() { + return stub.updateSecurityProfileGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   UpdateSecurityProfileGroupRequest request =
                                                                                              +   *       UpdateSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                              +   *           .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .updateSecurityProfileGroupCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   Operation response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + updateSecurityProfileGroupCallable() { + return stub.updateSecurityProfileGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   SecurityProfileGroupName name =
                                                                                              +   *       SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *           "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
                                                                                              +   *   organizationSecurityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(name).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param name Required. A name of the SecurityProfileGroup to delete. Must be in the format + * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSecurityProfileGroupAsync( + SecurityProfileGroupName name) { + DeleteSecurityProfileGroupRequest request = + DeleteSecurityProfileGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteSecurityProfileGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   String name =
                                                                                              +   *       SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *               "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                                                                                              +   *           .toString();
                                                                                              +   *   organizationSecurityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(name).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param name Required. A name of the SecurityProfileGroup to delete. Must be in the format + * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSecurityProfileGroupAsync( + String name) { + DeleteSecurityProfileGroupRequest request = + DeleteSecurityProfileGroupRequest.newBuilder().setName(name).build(); + return deleteSecurityProfileGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   DeleteSecurityProfileGroupRequest request =
                                                                                              +   *       DeleteSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setEtag("etag3123477")
                                                                                              +   *           .build();
                                                                                              +   *   organizationSecurityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(request).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSecurityProfileGroupAsync( + DeleteSecurityProfileGroupRequest request) { + return deleteSecurityProfileGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   DeleteSecurityProfileGroupRequest request =
                                                                                              +   *       DeleteSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setEtag("etag3123477")
                                                                                              +   *           .build();
                                                                                              +   *   OperationFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .deleteSecurityProfileGroupOperationCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final OperationCallable + deleteSecurityProfileGroupOperationCallable() { + return stub.deleteSecurityProfileGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfileGroup. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   DeleteSecurityProfileGroupRequest request =
                                                                                              +   *       DeleteSecurityProfileGroupRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setEtag("etag3123477")
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .deleteSecurityProfileGroupCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + deleteSecurityProfileGroupCallable() { + return stub.deleteSecurityProfileGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfiles in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                              +   *   for (SecurityProfile element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The project or organization and location from which the + * SecurityProfiles should be listed, specified in the format + * `projects|organizations/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityProfilesPagedResponse listSecurityProfiles(LocationName parent) { + ListSecurityProfilesRequest request = + ListSecurityProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSecurityProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfiles in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                                                                              +   *   for (SecurityProfile element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The project or organization and location from which the + * SecurityProfiles should be listed, specified in the format + * `projects|organizations/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityProfilesPagedResponse listSecurityProfiles( + OrganizationLocationName parent) { + ListSecurityProfilesRequest request = + ListSecurityProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSecurityProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfiles in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
                                                                                              +   *   for (SecurityProfile element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The project or organization and location from which the + * SecurityProfiles should be listed, specified in the format + * `projects|organizations/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityProfilesPagedResponse listSecurityProfiles(String parent) { + ListSecurityProfilesRequest request = + ListSecurityProfilesRequest.newBuilder().setParent(parent).build(); + return listSecurityProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfiles in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListSecurityProfilesRequest request =
                                                                                              +   *       ListSecurityProfilesRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   for (SecurityProfile element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .listSecurityProfiles(request)
                                                                                              +   *           .iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityProfilesPagedResponse listSecurityProfiles( + ListSecurityProfilesRequest request) { + return listSecurityProfilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfiles in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListSecurityProfilesRequest request =
                                                                                              +   *       ListSecurityProfilesRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .listSecurityProfilesPagedCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   for (SecurityProfile element : future.get().iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + listSecurityProfilesPagedCallable() { + return stub.listSecurityProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SecurityProfiles in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListSecurityProfilesRequest request =
                                                                                              +   *       ListSecurityProfilesRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   while (true) {
                                                                                              +   *     ListSecurityProfilesResponse response =
                                                                                              +   *         organizationSecurityProfileGroupServiceClient
                                                                                              +   *             .listSecurityProfilesCallable()
                                                                                              +   *             .call(request);
                                                                                              +   *     for (SecurityProfile element : response.getSecurityProfilesList()) {
                                                                                              +   *       // doThingsWith(element);
                                                                                              +   *     }
                                                                                              +   *     String nextPageToken = response.getNextPageToken();
                                                                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                              +   *     } else {
                                                                                              +   *       break;
                                                                                              +   *     }
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + listSecurityProfilesCallable() { + return stub.listSecurityProfilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   SecurityProfileName name =
                                                                                              +   *       SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *           "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.getSecurityProfile(name);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param name Required. A name of the SecurityProfile to get. Must be in the format + * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityProfile getSecurityProfile(SecurityProfileName name) { + GetSecurityProfileRequest request = + GetSecurityProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSecurityProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   String name =
                                                                                              +   *       SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *               "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
                                                                                              +   *           .toString();
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.getSecurityProfile(name);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param name Required. A name of the SecurityProfile to get. Must be in the format + * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityProfile getSecurityProfile(String name) { + GetSecurityProfileRequest request = + GetSecurityProfileRequest.newBuilder().setName(name).build(); + return getSecurityProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   GetSecurityProfileRequest request =
                                                                                              +   *       GetSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .build();
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.getSecurityProfile(request);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityProfile getSecurityProfile(GetSecurityProfileRequest request) { + return getSecurityProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   GetSecurityProfileRequest request =
                                                                                              +   *       GetSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .getSecurityProfileCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   SecurityProfile response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + getSecurityProfileCallable() { + return stub.getSecurityProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfile in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                              +   *   SecurityProfile securityProfile = SecurityProfile.newBuilder().build();
                                                                                              +   *   String securityProfileId = "securityProfileId-1121673916";
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileAsync(parent, securityProfile, securityProfileId)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The parent resource of the SecurityProfile. Must be in the format + * `projects|organizations/*/locations/{location}`. + * @param securityProfile Required. SecurityProfile resource to be created. + * @param securityProfileId Required. Short name of the SecurityProfile resource to be created. + * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "security_profile1". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSecurityProfileAsync( + LocationName parent, SecurityProfile securityProfile, String securityProfileId) { + CreateSecurityProfileRequest request = + CreateSecurityProfileRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSecurityProfile(securityProfile) + .setSecurityProfileId(securityProfileId) + .build(); + return createSecurityProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfile in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                                                                              +   *   SecurityProfile securityProfile = SecurityProfile.newBuilder().build();
                                                                                              +   *   String securityProfileId = "securityProfileId-1121673916";
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileAsync(parent, securityProfile, securityProfileId)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The parent resource of the SecurityProfile. Must be in the format + * `projects|organizations/*/locations/{location}`. + * @param securityProfile Required. SecurityProfile resource to be created. + * @param securityProfileId Required. Short name of the SecurityProfile resource to be created. + * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "security_profile1". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSecurityProfileAsync( + OrganizationLocationName parent, SecurityProfile securityProfile, String securityProfileId) { + CreateSecurityProfileRequest request = + CreateSecurityProfileRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSecurityProfile(securityProfile) + .setSecurityProfileId(securityProfileId) + .build(); + return createSecurityProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfile in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
                                                                                              +   *   SecurityProfile securityProfile = SecurityProfile.newBuilder().build();
                                                                                              +   *   String securityProfileId = "securityProfileId-1121673916";
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileAsync(parent, securityProfile, securityProfileId)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param parent Required. The parent resource of the SecurityProfile. Must be in the format + * `projects|organizations/*/locations/{location}`. + * @param securityProfile Required. SecurityProfile resource to be created. + * @param securityProfileId Required. Short name of the SecurityProfile resource to be created. + * This value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "security_profile1". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSecurityProfileAsync( + String parent, SecurityProfile securityProfile, String securityProfileId) { + CreateSecurityProfileRequest request = + CreateSecurityProfileRequest.newBuilder() + .setParent(parent) + .setSecurityProfile(securityProfile) + .setSecurityProfileId(securityProfileId) + .build(); + return createSecurityProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfile in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   CreateSecurityProfileRequest request =
                                                                                              +   *       CreateSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setSecurityProfileId("securityProfileId-1121673916")
                                                                                              +   *           .setSecurityProfile(SecurityProfile.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.createSecurityProfileAsync(request).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSecurityProfileAsync( + CreateSecurityProfileRequest request) { + return createSecurityProfileOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfile in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   CreateSecurityProfileRequest request =
                                                                                              +   *       CreateSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setSecurityProfileId("securityProfileId-1121673916")
                                                                                              +   *           .setSecurityProfile(SecurityProfile.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   OperationFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileOperationCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   SecurityProfile response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final OperationCallable + createSecurityProfileOperationCallable() { + return stub.createSecurityProfileOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new SecurityProfile in a given organization and location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   CreateSecurityProfileRequest request =
                                                                                              +   *       CreateSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                              +   *           .setSecurityProfileId("securityProfileId-1121673916")
                                                                                              +   *           .setSecurityProfile(SecurityProfile.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .createSecurityProfileCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   Operation response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + createSecurityProfileCallable() { + return stub.createSecurityProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   SecurityProfile securityProfile = SecurityProfile.newBuilder().build();
                                                                                              +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .updateSecurityProfileAsync(securityProfile, updateMask)
                                                                                              +   *           .get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param securityProfile Required. Updated SecurityProfile resource. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * SecurityProfile resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateSecurityProfileAsync( + SecurityProfile securityProfile, FieldMask updateMask) { + UpdateSecurityProfileRequest request = + UpdateSecurityProfileRequest.newBuilder() + .setSecurityProfile(securityProfile) + .setUpdateMask(updateMask) + .build(); + return updateSecurityProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   UpdateSecurityProfileRequest request =
                                                                                              +   *       UpdateSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                              +   *           .setSecurityProfile(SecurityProfile.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   SecurityProfile response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.updateSecurityProfileAsync(request).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateSecurityProfileAsync( + UpdateSecurityProfileRequest request) { + return updateSecurityProfileOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   UpdateSecurityProfileRequest request =
                                                                                              +   *       UpdateSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                              +   *           .setSecurityProfile(SecurityProfile.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   OperationFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .updateSecurityProfileOperationCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   SecurityProfile response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final OperationCallable + updateSecurityProfileOperationCallable() { + return stub.updateSecurityProfileOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   UpdateSecurityProfileRequest request =
                                                                                              +   *       UpdateSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                              +   *           .setSecurityProfile(SecurityProfile.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .updateSecurityProfileCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   Operation response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + updateSecurityProfileCallable() { + return stub.updateSecurityProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   SecurityProfileName name =
                                                                                              +   *       SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *           "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]");
                                                                                              +   *   organizationSecurityProfileGroupServiceClient.deleteSecurityProfileAsync(name).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param name Required. A name of the SecurityProfile to delete. Must be in the format + * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSecurityProfileAsync( + SecurityProfileName name) { + DeleteSecurityProfileRequest request = + DeleteSecurityProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteSecurityProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   String name =
                                                                                              +   *       SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *               "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
                                                                                              +   *           .toString();
                                                                                              +   *   organizationSecurityProfileGroupServiceClient.deleteSecurityProfileAsync(name).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param name Required. A name of the SecurityProfile to delete. Must be in the format + * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSecurityProfileAsync(String name) { + DeleteSecurityProfileRequest request = + DeleteSecurityProfileRequest.newBuilder().setName(name).build(); + return deleteSecurityProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   DeleteSecurityProfileRequest request =
                                                                                              +   *       DeleteSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setEtag("etag3123477")
                                                                                              +   *           .build();
                                                                                              +   *   organizationSecurityProfileGroupServiceClient.deleteSecurityProfileAsync(request).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteSecurityProfileAsync( + DeleteSecurityProfileRequest request) { + return deleteSecurityProfileOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   DeleteSecurityProfileRequest request =
                                                                                              +   *       DeleteSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setEtag("etag3123477")
                                                                                              +   *           .build();
                                                                                              +   *   OperationFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .deleteSecurityProfileOperationCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final OperationCallable + deleteSecurityProfileOperationCallable() { + return stub.deleteSecurityProfileOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single SecurityProfile. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   DeleteSecurityProfileRequest request =
                                                                                              +   *       DeleteSecurityProfileRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               SecurityProfileName.ofOrganizationLocationSecurityProfileName(
                                                                                              +   *                       "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setEtag("etag3123477")
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .deleteSecurityProfileCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + deleteSecurityProfileCallable() { + return stub.deleteSecurityProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListLocationsRequest request =
                                                                                              +   *       ListLocationsRequest.newBuilder()
                                                                                              +   *           .setName("name3373707")
                                                                                              +   *           .setFilter("filter-1274492040")
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   for (Location element :
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.listLocations(request).iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListLocationsRequest request =
                                                                                              +   *       ListLocationsRequest.newBuilder()
                                                                                              +   *           .setName("name3373707")
                                                                                              +   *           .setFilter("filter-1274492040")
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .listLocationsPagedCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   for (Location element : future.get().iterateAll()) {
                                                                                              +   *     // doThingsWith(element);
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   ListLocationsRequest request =
                                                                                              +   *       ListLocationsRequest.newBuilder()
                                                                                              +   *           .setName("name3373707")
                                                                                              +   *           .setFilter("filter-1274492040")
                                                                                              +   *           .setPageSize(883849137)
                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                              +   *           .build();
                                                                                              +   *   while (true) {
                                                                                              +   *     ListLocationsResponse response =
                                                                                              +   *         organizationSecurityProfileGroupServiceClient.listLocationsCallable().call(request);
                                                                                              +   *     for (Location element : response.getLocationsList()) {
                                                                                              +   *       // doThingsWith(element);
                                                                                              +   *     }
                                                                                              +   *     String nextPageToken = response.getNextPageToken();
                                                                                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                              +   *     } else {
                                                                                              +   *       break;
                                                                                              +   *     }
                                                                                              +   *   }
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                              +   *   Location response = organizationSecurityProfileGroupServiceClient.getLocation(request);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.getLocationCallable().futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   Location response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                              Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   SetIamPolicyRequest request =
                                                                                              +   *       SetIamPolicyRequest.newBuilder()
                                                                                              +   *           .setResource(
                                                                                              +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                              +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setPolicy(Policy.newBuilder().build())
                                                                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   Policy response = organizationSecurityProfileGroupServiceClient.setIamPolicy(request);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

                                                                                              Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   SetIamPolicyRequest request =
                                                                                              +   *       SetIamPolicyRequest.newBuilder()
                                                                                              +   *           .setResource(
                                                                                              +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                              +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setPolicy(Policy.newBuilder().build())
                                                                                              +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.setIamPolicyCallable().futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   Policy response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   GetIamPolicyRequest request =
                                                                                              +   *       GetIamPolicyRequest.newBuilder()
                                                                                              +   *           .setResource(
                                                                                              +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                              +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   Policy response = organizationSecurityProfileGroupServiceClient.getIamPolicy(request);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   GetIamPolicyRequest request =
                                                                                              +   *       GetIamPolicyRequest.newBuilder()
                                                                                              +   *           .setResource(
                                                                                              +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                              +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setOptions(GetPolicyOptions.newBuilder().build())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.getIamPolicyCallable().futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   Policy response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                              Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   TestIamPermissionsRequest request =
                                                                                              +   *       TestIamPermissionsRequest.newBuilder()
                                                                                              +   *           .setResource(
                                                                                              +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                              +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .addAllPermissions(new ArrayList())
                                                                                              +   *           .build();
                                                                                              +   *   TestIamPermissionsResponse response =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient.testIamPermissions(request);
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

                                                                                              Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              +   * // It will require modifications to work:
                                                                                              +   * // - It may require correct/in-range values for request initialization.
                                                                                              +   * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              +   * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              +   *     organizationSecurityProfileGroupServiceClient =
                                                                                              +   *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              +   *   TestIamPermissionsRequest request =
                                                                                              +   *       TestIamPermissionsRequest.newBuilder()
                                                                                              +   *           .setResource(
                                                                                              +   *               AddressGroupName.ofProjectLocationAddressGroupName(
                                                                                              +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .addAllPermissions(new ArrayList())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       organizationSecurityProfileGroupServiceClient
                                                                                              +   *           .testIamPermissionsCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   TestIamPermissionsResponse response = future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSecurityProfileGroupsPagedResponse + extends AbstractPagedListResponse< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup, + ListSecurityProfileGroupsPage, + ListSecurityProfileGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSecurityProfileGroupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSecurityProfileGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSecurityProfileGroupsPagedResponse(ListSecurityProfileGroupsPage page) { + super(page, ListSecurityProfileGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSecurityProfileGroupsPage + extends AbstractPage< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup, + ListSecurityProfileGroupsPage> { + + private ListSecurityProfileGroupsPage( + PageContext< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup> + context, + ListSecurityProfileGroupsResponse response) { + super(context, response); + } + + private static ListSecurityProfileGroupsPage createEmptyPage() { + return new ListSecurityProfileGroupsPage(null, null); + } + + @Override + protected ListSecurityProfileGroupsPage createPage( + PageContext< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup> + context, + ListSecurityProfileGroupsResponse response) { + return new ListSecurityProfileGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSecurityProfileGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup, + ListSecurityProfileGroupsPage, + ListSecurityProfileGroupsFixedSizeCollection> { + + private ListSecurityProfileGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSecurityProfileGroupsFixedSizeCollection createEmptyCollection() { + return new ListSecurityProfileGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListSecurityProfileGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSecurityProfileGroupsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSecurityProfilesPagedResponse + extends AbstractPagedListResponse< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + SecurityProfile, + ListSecurityProfilesPage, + ListSecurityProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSecurityProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSecurityProfilesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSecurityProfilesPagedResponse(ListSecurityProfilesPage page) { + super(page, ListSecurityProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSecurityProfilesPage + extends AbstractPage< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + SecurityProfile, + ListSecurityProfilesPage> { + + private ListSecurityProfilesPage( + PageContext + context, + ListSecurityProfilesResponse response) { + super(context, response); + } + + private static ListSecurityProfilesPage createEmptyPage() { + return new ListSecurityProfilesPage(null, null); + } + + @Override + protected ListSecurityProfilesPage createPage( + PageContext + context, + ListSecurityProfilesResponse response) { + return new ListSecurityProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSecurityProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + SecurityProfile, + ListSecurityProfilesPage, + ListSecurityProfilesFixedSizeCollection> { + + private ListSecurityProfilesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSecurityProfilesFixedSizeCollection createEmptyCollection() { + return new ListSecurityProfilesFixedSizeCollection(null, 0); + } + + @Override + protected ListSecurityProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSecurityProfilesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceSettings.java new file mode 100644 index 000000000000..8f5012a45041 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceSettings.java @@ -0,0 +1,527 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.OrganizationSecurityProfileGroupServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OrganizationSecurityProfileGroupServiceClient}. + * + *

                                                                                              The default instance has everything set to sensible defaults: + * + *

                                                                                                + *
                                                                                              • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                              • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                              + * + *

                                                                                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                              For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSecurityProfileGroup: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * OrganizationSecurityProfileGroupServiceSettings.Builder
                                                                                              + *     organizationSecurityProfileGroupServiceSettingsBuilder =
                                                                                              + *         OrganizationSecurityProfileGroupServiceSettings.newBuilder();
                                                                                              + * organizationSecurityProfileGroupServiceSettingsBuilder
                                                                                              + *     .getSecurityProfileGroupSettings()
                                                                                              + *     .setRetrySettings(
                                                                                              + *         organizationSecurityProfileGroupServiceSettingsBuilder
                                                                                              + *             .getSecurityProfileGroupSettings()
                                                                                              + *             .getRetrySettings()
                                                                                              + *             .toBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                              + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                              + *             .setMaxAttempts(5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                              + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                              + *             .setRetryDelayMultiplier(1.3)
                                                                                              + *             .setRpcTimeoutMultiplier(1.5)
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                              + *             .build());
                                                                                              + * OrganizationSecurityProfileGroupServiceSettings
                                                                                              + *     organizationSecurityProfileGroupServiceSettings =
                                                                                              + *         organizationSecurityProfileGroupServiceSettingsBuilder.build();
                                                                                              + * }
                                                                                              + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

                                                                                              To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createSecurityProfileGroup: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * OrganizationSecurityProfileGroupServiceSettings.Builder
                                                                                              + *     organizationSecurityProfileGroupServiceSettingsBuilder =
                                                                                              + *         OrganizationSecurityProfileGroupServiceSettings.newBuilder();
                                                                                              + * TimedRetryAlgorithm timedRetryAlgorithm =
                                                                                              + *     OperationalTimedPollAlgorithm.create(
                                                                                              + *         RetrySettings.newBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                                                                              + *             .setRetryDelayMultiplier(1.5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                                                                              + *             .build());
                                                                                              + * organizationSecurityProfileGroupServiceSettingsBuilder
                                                                                              + *     .createClusterOperationSettings()
                                                                                              + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                                                                              + *     .build();
                                                                                              + * }
                                                                                              + */ +@Generated("by gapic-generator-java") +public class OrganizationSecurityProfileGroupServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listSecurityProfileGroups. */ + public PagedCallSettings< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + ListSecurityProfileGroupsPagedResponse> + listSecurityProfileGroupsSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .listSecurityProfileGroupsSettings(); + } + + /** Returns the object with the settings used for calls to getSecurityProfileGroup. */ + public UnaryCallSettings + getSecurityProfileGroupSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .getSecurityProfileGroupSettings(); + } + + /** Returns the object with the settings used for calls to createSecurityProfileGroup. */ + public UnaryCallSettings + createSecurityProfileGroupSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .createSecurityProfileGroupSettings(); + } + + /** Returns the object with the settings used for calls to createSecurityProfileGroup. */ + public OperationCallSettings< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .createSecurityProfileGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateSecurityProfileGroup. */ + public UnaryCallSettings + updateSecurityProfileGroupSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .updateSecurityProfileGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateSecurityProfileGroup. */ + public OperationCallSettings< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .updateSecurityProfileGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteSecurityProfileGroup. */ + public UnaryCallSettings + deleteSecurityProfileGroupSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .deleteSecurityProfileGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteSecurityProfileGroup. */ + public OperationCallSettings + deleteSecurityProfileGroupOperationSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .deleteSecurityProfileGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to listSecurityProfiles. */ + public PagedCallSettings< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + ListSecurityProfilesPagedResponse> + listSecurityProfilesSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .listSecurityProfilesSettings(); + } + + /** Returns the object with the settings used for calls to getSecurityProfile. */ + public UnaryCallSettings + getSecurityProfileSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .getSecurityProfileSettings(); + } + + /** Returns the object with the settings used for calls to createSecurityProfile. */ + public UnaryCallSettings + createSecurityProfileSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .createSecurityProfileSettings(); + } + + /** Returns the object with the settings used for calls to createSecurityProfile. */ + public OperationCallSettings + createSecurityProfileOperationSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .createSecurityProfileOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateSecurityProfile. */ + public UnaryCallSettings + updateSecurityProfileSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .updateSecurityProfileSettings(); + } + + /** Returns the object with the settings used for calls to updateSecurityProfile. */ + public OperationCallSettings + updateSecurityProfileOperationSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .updateSecurityProfileOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteSecurityProfile. */ + public UnaryCallSettings + deleteSecurityProfileSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .deleteSecurityProfileSettings(); + } + + /** Returns the object with the settings used for calls to deleteSecurityProfile. */ + public OperationCallSettings + deleteSecurityProfileOperationSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .deleteSecurityProfileOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((OrganizationSecurityProfileGroupServiceStubSettings) getStubSettings()) + .testIamPermissionsSettings(); + } + + public static final OrganizationSecurityProfileGroupServiceSettings create( + OrganizationSecurityProfileGroupServiceStubSettings stub) throws IOException { + return new OrganizationSecurityProfileGroupServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OrganizationSecurityProfileGroupServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OrganizationSecurityProfileGroupServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OrganizationSecurityProfileGroupServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OrganizationSecurityProfileGroupServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return OrganizationSecurityProfileGroupServiceStubSettings + .defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OrganizationSecurityProfileGroupServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OrganizationSecurityProfileGroupServiceStubSettings + .defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OrganizationSecurityProfileGroupServiceSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + } + + /** Builder for OrganizationSecurityProfileGroupServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OrganizationSecurityProfileGroupServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(OrganizationSecurityProfileGroupServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OrganizationSecurityProfileGroupServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OrganizationSecurityProfileGroupServiceStubSettings.newBuilder()); + } + + public OrganizationSecurityProfileGroupServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OrganizationSecurityProfileGroupServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listSecurityProfileGroups. */ + public PagedCallSettings.Builder< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + ListSecurityProfileGroupsPagedResponse> + listSecurityProfileGroupsSettings() { + return getStubSettingsBuilder().listSecurityProfileGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to getSecurityProfileGroup. */ + public UnaryCallSettings.Builder + getSecurityProfileGroupSettings() { + return getStubSettingsBuilder().getSecurityProfileGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createSecurityProfileGroup. */ + public UnaryCallSettings.Builder + createSecurityProfileGroupSettings() { + return getStubSettingsBuilder().createSecurityProfileGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createSecurityProfileGroup. */ + public OperationCallSettings.Builder< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationSettings() { + return getStubSettingsBuilder().createSecurityProfileGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateSecurityProfileGroup. */ + public UnaryCallSettings.Builder + updateSecurityProfileGroupSettings() { + return getStubSettingsBuilder().updateSecurityProfileGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateSecurityProfileGroup. */ + public OperationCallSettings.Builder< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationSettings() { + return getStubSettingsBuilder().updateSecurityProfileGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSecurityProfileGroup. */ + public UnaryCallSettings.Builder + deleteSecurityProfileGroupSettings() { + return getStubSettingsBuilder().deleteSecurityProfileGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSecurityProfileGroup. */ + public OperationCallSettings.Builder< + DeleteSecurityProfileGroupRequest, Empty, OperationMetadata> + deleteSecurityProfileGroupOperationSettings() { + return getStubSettingsBuilder().deleteSecurityProfileGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listSecurityProfiles. */ + public PagedCallSettings.Builder< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + ListSecurityProfilesPagedResponse> + listSecurityProfilesSettings() { + return getStubSettingsBuilder().listSecurityProfilesSettings(); + } + + /** Returns the builder for the settings used for calls to getSecurityProfile. */ + public UnaryCallSettings.Builder + getSecurityProfileSettings() { + return getStubSettingsBuilder().getSecurityProfileSettings(); + } + + /** Returns the builder for the settings used for calls to createSecurityProfile. */ + public UnaryCallSettings.Builder + createSecurityProfileSettings() { + return getStubSettingsBuilder().createSecurityProfileSettings(); + } + + /** Returns the builder for the settings used for calls to createSecurityProfile. */ + public OperationCallSettings.Builder< + CreateSecurityProfileRequest, SecurityProfile, OperationMetadata> + createSecurityProfileOperationSettings() { + return getStubSettingsBuilder().createSecurityProfileOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateSecurityProfile. */ + public UnaryCallSettings.Builder + updateSecurityProfileSettings() { + return getStubSettingsBuilder().updateSecurityProfileSettings(); + } + + /** Returns the builder for the settings used for calls to updateSecurityProfile. */ + public OperationCallSettings.Builder< + UpdateSecurityProfileRequest, SecurityProfile, OperationMetadata> + updateSecurityProfileOperationSettings() { + return getStubSettingsBuilder().updateSecurityProfileOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSecurityProfile. */ + public UnaryCallSettings.Builder + deleteSecurityProfileSettings() { + return getStubSettingsBuilder().deleteSecurityProfileSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSecurityProfile. */ + public OperationCallSettings.Builder + deleteSecurityProfileOperationSettings() { + return getStubSettingsBuilder().deleteSecurityProfileOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public OrganizationSecurityProfileGroupServiceSettings build() throws IOException { + return new OrganizationSecurityProfileGroupServiceSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json index 6ac9c7d5f81a..971fc82e91eb 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json @@ -107,6 +107,267 @@ } } }, + "DnsThreatDetectorService": { + "clients": { + "grpc": { + "libraryClient": "DnsThreatDetectorServiceClient", + "rpcs": { + "CreateDnsThreatDetector": { + "methods": ["createDnsThreatDetector", "createDnsThreatDetector", "createDnsThreatDetector", "createDnsThreatDetectorCallable"] + }, + "DeleteDnsThreatDetector": { + "methods": ["deleteDnsThreatDetector", "deleteDnsThreatDetector", "deleteDnsThreatDetector", "deleteDnsThreatDetectorCallable"] + }, + "GetDnsThreatDetector": { + "methods": ["getDnsThreatDetector", "getDnsThreatDetector", "getDnsThreatDetector", "getDnsThreatDetectorCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListDnsThreatDetectors": { + "methods": ["listDnsThreatDetectors", "listDnsThreatDetectors", "listDnsThreatDetectors", "listDnsThreatDetectorsPagedCallable", "listDnsThreatDetectorsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateDnsThreatDetector": { + "methods": ["updateDnsThreatDetector", "updateDnsThreatDetector", "updateDnsThreatDetectorCallable"] + } + } + } + } + }, + "FirewallActivation": { + "clients": { + "grpc": { + "libraryClient": "FirewallActivationClient", + "rpcs": { + "CreateFirewallEndpoint": { + "methods": ["createFirewallEndpointAsync", "createFirewallEndpointAsync", "createFirewallEndpointAsync", "createFirewallEndpointAsync", "createFirewallEndpointOperationCallable", "createFirewallEndpointCallable"] + }, + "CreateFirewallEndpointAssociation": { + "methods": ["createFirewallEndpointAssociationAsync", "createFirewallEndpointAssociationAsync", "createFirewallEndpointAssociationAsync", "createFirewallEndpointAssociationOperationCallable", "createFirewallEndpointAssociationCallable"] + }, + "DeleteFirewallEndpoint": { + "methods": ["deleteFirewallEndpointAsync", "deleteFirewallEndpointAsync", "deleteFirewallEndpointAsync", "deleteFirewallEndpointOperationCallable", "deleteFirewallEndpointCallable"] + }, + "DeleteFirewallEndpointAssociation": { + "methods": ["deleteFirewallEndpointAssociationAsync", "deleteFirewallEndpointAssociationAsync", "deleteFirewallEndpointAssociationAsync", "deleteFirewallEndpointAssociationOperationCallable", "deleteFirewallEndpointAssociationCallable"] + }, + "GetFirewallEndpoint": { + "methods": ["getFirewallEndpoint", "getFirewallEndpoint", "getFirewallEndpoint", "getFirewallEndpointCallable"] + }, + "GetFirewallEndpointAssociation": { + "methods": ["getFirewallEndpointAssociation", "getFirewallEndpointAssociation", "getFirewallEndpointAssociation", "getFirewallEndpointAssociationCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListFirewallEndpointAssociations": { + "methods": ["listFirewallEndpointAssociations", "listFirewallEndpointAssociations", "listFirewallEndpointAssociations", "listFirewallEndpointAssociationsPagedCallable", "listFirewallEndpointAssociationsCallable"] + }, + "ListFirewallEndpoints": { + "methods": ["listFirewallEndpoints", "listFirewallEndpoints", "listFirewallEndpoints", "listFirewallEndpoints", "listFirewallEndpointsPagedCallable", "listFirewallEndpointsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateFirewallEndpoint": { + "methods": ["updateFirewallEndpointAsync", "updateFirewallEndpointAsync", "updateFirewallEndpointOperationCallable", "updateFirewallEndpointCallable"] + }, + "UpdateFirewallEndpointAssociation": { + "methods": ["updateFirewallEndpointAssociationAsync", "updateFirewallEndpointAssociationAsync", "updateFirewallEndpointAssociationOperationCallable", "updateFirewallEndpointAssociationCallable"] + } + } + } + } + }, + "Intercept": { + "clients": { + "grpc": { + "libraryClient": "InterceptClient", + "rpcs": { + "CreateInterceptDeployment": { + "methods": ["createInterceptDeploymentAsync", "createInterceptDeploymentAsync", "createInterceptDeploymentAsync", "createInterceptDeploymentOperationCallable", "createInterceptDeploymentCallable"] + }, + "CreateInterceptDeploymentGroup": { + "methods": ["createInterceptDeploymentGroupAsync", "createInterceptDeploymentGroupAsync", "createInterceptDeploymentGroupAsync", "createInterceptDeploymentGroupOperationCallable", "createInterceptDeploymentGroupCallable"] + }, + "CreateInterceptEndpointGroup": { + "methods": ["createInterceptEndpointGroupAsync", "createInterceptEndpointGroupAsync", "createInterceptEndpointGroupAsync", "createInterceptEndpointGroupOperationCallable", "createInterceptEndpointGroupCallable"] + }, + "CreateInterceptEndpointGroupAssociation": { + "methods": ["createInterceptEndpointGroupAssociationAsync", "createInterceptEndpointGroupAssociationAsync", "createInterceptEndpointGroupAssociationAsync", "createInterceptEndpointGroupAssociationOperationCallable", "createInterceptEndpointGroupAssociationCallable"] + }, + "DeleteInterceptDeployment": { + "methods": ["deleteInterceptDeploymentAsync", "deleteInterceptDeploymentAsync", "deleteInterceptDeploymentAsync", "deleteInterceptDeploymentOperationCallable", "deleteInterceptDeploymentCallable"] + }, + "DeleteInterceptDeploymentGroup": { + "methods": ["deleteInterceptDeploymentGroupAsync", "deleteInterceptDeploymentGroupAsync", "deleteInterceptDeploymentGroupAsync", "deleteInterceptDeploymentGroupOperationCallable", "deleteInterceptDeploymentGroupCallable"] + }, + "DeleteInterceptEndpointGroup": { + "methods": ["deleteInterceptEndpointGroupAsync", "deleteInterceptEndpointGroupAsync", "deleteInterceptEndpointGroupAsync", "deleteInterceptEndpointGroupOperationCallable", "deleteInterceptEndpointGroupCallable"] + }, + "DeleteInterceptEndpointGroupAssociation": { + "methods": ["deleteInterceptEndpointGroupAssociationAsync", "deleteInterceptEndpointGroupAssociationAsync", "deleteInterceptEndpointGroupAssociationAsync", "deleteInterceptEndpointGroupAssociationOperationCallable", "deleteInterceptEndpointGroupAssociationCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetInterceptDeployment": { + "methods": ["getInterceptDeployment", "getInterceptDeployment", "getInterceptDeployment", "getInterceptDeploymentCallable"] + }, + "GetInterceptDeploymentGroup": { + "methods": ["getInterceptDeploymentGroup", "getInterceptDeploymentGroup", "getInterceptDeploymentGroup", "getInterceptDeploymentGroupCallable"] + }, + "GetInterceptEndpointGroup": { + "methods": ["getInterceptEndpointGroup", "getInterceptEndpointGroup", "getInterceptEndpointGroup", "getInterceptEndpointGroupCallable"] + }, + "GetInterceptEndpointGroupAssociation": { + "methods": ["getInterceptEndpointGroupAssociation", "getInterceptEndpointGroupAssociation", "getInterceptEndpointGroupAssociation", "getInterceptEndpointGroupAssociationCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListInterceptDeploymentGroups": { + "methods": ["listInterceptDeploymentGroups", "listInterceptDeploymentGroups", "listInterceptDeploymentGroups", "listInterceptDeploymentGroupsPagedCallable", "listInterceptDeploymentGroupsCallable"] + }, + "ListInterceptDeployments": { + "methods": ["listInterceptDeployments", "listInterceptDeployments", "listInterceptDeployments", "listInterceptDeploymentsPagedCallable", "listInterceptDeploymentsCallable"] + }, + "ListInterceptEndpointGroupAssociations": { + "methods": ["listInterceptEndpointGroupAssociations", "listInterceptEndpointGroupAssociations", "listInterceptEndpointGroupAssociations", "listInterceptEndpointGroupAssociationsPagedCallable", "listInterceptEndpointGroupAssociationsCallable"] + }, + "ListInterceptEndpointGroups": { + "methods": ["listInterceptEndpointGroups", "listInterceptEndpointGroups", "listInterceptEndpointGroups", "listInterceptEndpointGroupsPagedCallable", "listInterceptEndpointGroupsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateInterceptDeployment": { + "methods": ["updateInterceptDeploymentAsync", "updateInterceptDeploymentAsync", "updateInterceptDeploymentOperationCallable", "updateInterceptDeploymentCallable"] + }, + "UpdateInterceptDeploymentGroup": { + "methods": ["updateInterceptDeploymentGroupAsync", "updateInterceptDeploymentGroupAsync", "updateInterceptDeploymentGroupOperationCallable", "updateInterceptDeploymentGroupCallable"] + }, + "UpdateInterceptEndpointGroup": { + "methods": ["updateInterceptEndpointGroupAsync", "updateInterceptEndpointGroupAsync", "updateInterceptEndpointGroupOperationCallable", "updateInterceptEndpointGroupCallable"] + }, + "UpdateInterceptEndpointGroupAssociation": { + "methods": ["updateInterceptEndpointGroupAssociationAsync", "updateInterceptEndpointGroupAssociationAsync", "updateInterceptEndpointGroupAssociationOperationCallable", "updateInterceptEndpointGroupAssociationCallable"] + } + } + } + } + }, + "Mirroring": { + "clients": { + "grpc": { + "libraryClient": "MirroringClient", + "rpcs": { + "CreateMirroringDeployment": { + "methods": ["createMirroringDeploymentAsync", "createMirroringDeploymentAsync", "createMirroringDeploymentAsync", "createMirroringDeploymentOperationCallable", "createMirroringDeploymentCallable"] + }, + "CreateMirroringDeploymentGroup": { + "methods": ["createMirroringDeploymentGroupAsync", "createMirroringDeploymentGroupAsync", "createMirroringDeploymentGroupAsync", "createMirroringDeploymentGroupOperationCallable", "createMirroringDeploymentGroupCallable"] + }, + "CreateMirroringEndpointGroup": { + "methods": ["createMirroringEndpointGroupAsync", "createMirroringEndpointGroupAsync", "createMirroringEndpointGroupAsync", "createMirroringEndpointGroupOperationCallable", "createMirroringEndpointGroupCallable"] + }, + "CreateMirroringEndpointGroupAssociation": { + "methods": ["createMirroringEndpointGroupAssociationAsync", "createMirroringEndpointGroupAssociationAsync", "createMirroringEndpointGroupAssociationAsync", "createMirroringEndpointGroupAssociationOperationCallable", "createMirroringEndpointGroupAssociationCallable"] + }, + "DeleteMirroringDeployment": { + "methods": ["deleteMirroringDeploymentAsync", "deleteMirroringDeploymentAsync", "deleteMirroringDeploymentAsync", "deleteMirroringDeploymentOperationCallable", "deleteMirroringDeploymentCallable"] + }, + "DeleteMirroringDeploymentGroup": { + "methods": ["deleteMirroringDeploymentGroupAsync", "deleteMirroringDeploymentGroupAsync", "deleteMirroringDeploymentGroupAsync", "deleteMirroringDeploymentGroupOperationCallable", "deleteMirroringDeploymentGroupCallable"] + }, + "DeleteMirroringEndpointGroup": { + "methods": ["deleteMirroringEndpointGroupAsync", "deleteMirroringEndpointGroupAsync", "deleteMirroringEndpointGroupAsync", "deleteMirroringEndpointGroupOperationCallable", "deleteMirroringEndpointGroupCallable"] + }, + "DeleteMirroringEndpointGroupAssociation": { + "methods": ["deleteMirroringEndpointGroupAssociationAsync", "deleteMirroringEndpointGroupAssociationAsync", "deleteMirroringEndpointGroupAssociationAsync", "deleteMirroringEndpointGroupAssociationOperationCallable", "deleteMirroringEndpointGroupAssociationCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetMirroringDeployment": { + "methods": ["getMirroringDeployment", "getMirroringDeployment", "getMirroringDeployment", "getMirroringDeploymentCallable"] + }, + "GetMirroringDeploymentGroup": { + "methods": ["getMirroringDeploymentGroup", "getMirroringDeploymentGroup", "getMirroringDeploymentGroup", "getMirroringDeploymentGroupCallable"] + }, + "GetMirroringEndpointGroup": { + "methods": ["getMirroringEndpointGroup", "getMirroringEndpointGroup", "getMirroringEndpointGroup", "getMirroringEndpointGroupCallable"] + }, + "GetMirroringEndpointGroupAssociation": { + "methods": ["getMirroringEndpointGroupAssociation", "getMirroringEndpointGroupAssociation", "getMirroringEndpointGroupAssociation", "getMirroringEndpointGroupAssociationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListMirroringDeploymentGroups": { + "methods": ["listMirroringDeploymentGroups", "listMirroringDeploymentGroups", "listMirroringDeploymentGroups", "listMirroringDeploymentGroupsPagedCallable", "listMirroringDeploymentGroupsCallable"] + }, + "ListMirroringDeployments": { + "methods": ["listMirroringDeployments", "listMirroringDeployments", "listMirroringDeployments", "listMirroringDeploymentsPagedCallable", "listMirroringDeploymentsCallable"] + }, + "ListMirroringEndpointGroupAssociations": { + "methods": ["listMirroringEndpointGroupAssociations", "listMirroringEndpointGroupAssociations", "listMirroringEndpointGroupAssociations", "listMirroringEndpointGroupAssociationsPagedCallable", "listMirroringEndpointGroupAssociationsCallable"] + }, + "ListMirroringEndpointGroups": { + "methods": ["listMirroringEndpointGroups", "listMirroringEndpointGroups", "listMirroringEndpointGroups", "listMirroringEndpointGroupsPagedCallable", "listMirroringEndpointGroupsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateMirroringDeployment": { + "methods": ["updateMirroringDeploymentAsync", "updateMirroringDeploymentAsync", "updateMirroringDeploymentOperationCallable", "updateMirroringDeploymentCallable"] + }, + "UpdateMirroringDeploymentGroup": { + "methods": ["updateMirroringDeploymentGroupAsync", "updateMirroringDeploymentGroupAsync", "updateMirroringDeploymentGroupOperationCallable", "updateMirroringDeploymentGroupCallable"] + }, + "UpdateMirroringEndpointGroup": { + "methods": ["updateMirroringEndpointGroupAsync", "updateMirroringEndpointGroupAsync", "updateMirroringEndpointGroupOperationCallable", "updateMirroringEndpointGroupCallable"] + }, + "UpdateMirroringEndpointGroupAssociation": { + "methods": ["updateMirroringEndpointGroupAssociationAsync", "updateMirroringEndpointGroupAssociationAsync", "updateMirroringEndpointGroupAssociationOperationCallable", "updateMirroringEndpointGroupAssociationCallable"] + } + } + } + } + }, "NetworkSecurity": { "clients": { "grpc": { @@ -115,27 +376,75 @@ "CreateAuthorizationPolicy": { "methods": ["createAuthorizationPolicyAsync", "createAuthorizationPolicyAsync", "createAuthorizationPolicyAsync", "createAuthorizationPolicyOperationCallable", "createAuthorizationPolicyCallable"] }, + "CreateAuthzPolicy": { + "methods": ["createAuthzPolicyAsync", "createAuthzPolicyAsync", "createAuthzPolicyAsync", "createAuthzPolicyOperationCallable", "createAuthzPolicyCallable"] + }, + "CreateBackendAuthenticationConfig": { + "methods": ["createBackendAuthenticationConfigAsync", "createBackendAuthenticationConfigAsync", "createBackendAuthenticationConfigAsync", "createBackendAuthenticationConfigOperationCallable", "createBackendAuthenticationConfigCallable"] + }, "CreateClientTlsPolicy": { "methods": ["createClientTlsPolicyAsync", "createClientTlsPolicyAsync", "createClientTlsPolicyAsync", "createClientTlsPolicyOperationCallable", "createClientTlsPolicyCallable"] }, + "CreateGatewaySecurityPolicy": { + "methods": ["createGatewaySecurityPolicyAsync", "createGatewaySecurityPolicyAsync", "createGatewaySecurityPolicyAsync", "createGatewaySecurityPolicyOperationCallable", "createGatewaySecurityPolicyCallable"] + }, + "CreateGatewaySecurityPolicyRule": { + "methods": ["createGatewaySecurityPolicyRuleAsync", "createGatewaySecurityPolicyRuleAsync", "createGatewaySecurityPolicyRuleAsync", "createGatewaySecurityPolicyRuleOperationCallable", "createGatewaySecurityPolicyRuleCallable"] + }, "CreateServerTlsPolicy": { "methods": ["createServerTlsPolicyAsync", "createServerTlsPolicyAsync", "createServerTlsPolicyAsync", "createServerTlsPolicyOperationCallable", "createServerTlsPolicyCallable"] }, + "CreateTlsInspectionPolicy": { + "methods": ["createTlsInspectionPolicyAsync", "createTlsInspectionPolicyAsync", "createTlsInspectionPolicyAsync", "createTlsInspectionPolicyOperationCallable", "createTlsInspectionPolicyCallable"] + }, + "CreateUrlList": { + "methods": ["createUrlListAsync", "createUrlListAsync", "createUrlListAsync", "createUrlListOperationCallable", "createUrlListCallable"] + }, "DeleteAuthorizationPolicy": { "methods": ["deleteAuthorizationPolicyAsync", "deleteAuthorizationPolicyAsync", "deleteAuthorizationPolicyAsync", "deleteAuthorizationPolicyOperationCallable", "deleteAuthorizationPolicyCallable"] }, + "DeleteAuthzPolicy": { + "methods": ["deleteAuthzPolicyAsync", "deleteAuthzPolicyAsync", "deleteAuthzPolicyAsync", "deleteAuthzPolicyOperationCallable", "deleteAuthzPolicyCallable"] + }, + "DeleteBackendAuthenticationConfig": { + "methods": ["deleteBackendAuthenticationConfigAsync", "deleteBackendAuthenticationConfigAsync", "deleteBackendAuthenticationConfigAsync", "deleteBackendAuthenticationConfigOperationCallable", "deleteBackendAuthenticationConfigCallable"] + }, "DeleteClientTlsPolicy": { "methods": ["deleteClientTlsPolicyAsync", "deleteClientTlsPolicyAsync", "deleteClientTlsPolicyAsync", "deleteClientTlsPolicyOperationCallable", "deleteClientTlsPolicyCallable"] }, + "DeleteGatewaySecurityPolicy": { + "methods": ["deleteGatewaySecurityPolicyAsync", "deleteGatewaySecurityPolicyAsync", "deleteGatewaySecurityPolicyAsync", "deleteGatewaySecurityPolicyOperationCallable", "deleteGatewaySecurityPolicyCallable"] + }, + "DeleteGatewaySecurityPolicyRule": { + "methods": ["deleteGatewaySecurityPolicyRuleAsync", "deleteGatewaySecurityPolicyRuleAsync", "deleteGatewaySecurityPolicyRuleAsync", "deleteGatewaySecurityPolicyRuleOperationCallable", "deleteGatewaySecurityPolicyRuleCallable"] + }, "DeleteServerTlsPolicy": { "methods": ["deleteServerTlsPolicyAsync", "deleteServerTlsPolicyAsync", "deleteServerTlsPolicyAsync", "deleteServerTlsPolicyOperationCallable", "deleteServerTlsPolicyCallable"] }, + "DeleteTlsInspectionPolicy": { + "methods": ["deleteTlsInspectionPolicyAsync", "deleteTlsInspectionPolicyAsync", "deleteTlsInspectionPolicyAsync", "deleteTlsInspectionPolicyOperationCallable", "deleteTlsInspectionPolicyCallable"] + }, + "DeleteUrlList": { + "methods": ["deleteUrlListAsync", "deleteUrlListAsync", "deleteUrlListAsync", "deleteUrlListOperationCallable", "deleteUrlListCallable"] + }, "GetAuthorizationPolicy": { "methods": ["getAuthorizationPolicy", "getAuthorizationPolicy", "getAuthorizationPolicy", "getAuthorizationPolicyCallable"] }, + "GetAuthzPolicy": { + "methods": ["getAuthzPolicy", "getAuthzPolicy", "getAuthzPolicy", "getAuthzPolicyCallable"] + }, + "GetBackendAuthenticationConfig": { + "methods": ["getBackendAuthenticationConfig", "getBackendAuthenticationConfig", "getBackendAuthenticationConfig", "getBackendAuthenticationConfigCallable"] + }, "GetClientTlsPolicy": { "methods": ["getClientTlsPolicy", "getClientTlsPolicy", "getClientTlsPolicy", "getClientTlsPolicyCallable"] }, + "GetGatewaySecurityPolicy": { + "methods": ["getGatewaySecurityPolicy", "getGatewaySecurityPolicy", "getGatewaySecurityPolicy", "getGatewaySecurityPolicyCallable"] + }, + "GetGatewaySecurityPolicyRule": { + "methods": ["getGatewaySecurityPolicyRule", "getGatewaySecurityPolicyRule", "getGatewaySecurityPolicyRule", "getGatewaySecurityPolicyRuleCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, @@ -145,18 +454,42 @@ "GetServerTlsPolicy": { "methods": ["getServerTlsPolicy", "getServerTlsPolicy", "getServerTlsPolicy", "getServerTlsPolicyCallable"] }, + "GetTlsInspectionPolicy": { + "methods": ["getTlsInspectionPolicy", "getTlsInspectionPolicy", "getTlsInspectionPolicy", "getTlsInspectionPolicyCallable"] + }, + "GetUrlList": { + "methods": ["getUrlList", "getUrlList", "getUrlList", "getUrlListCallable"] + }, "ListAuthorizationPolicies": { "methods": ["listAuthorizationPolicies", "listAuthorizationPolicies", "listAuthorizationPolicies", "listAuthorizationPoliciesPagedCallable", "listAuthorizationPoliciesCallable"] }, + "ListAuthzPolicies": { + "methods": ["listAuthzPolicies", "listAuthzPolicies", "listAuthzPolicies", "listAuthzPoliciesPagedCallable", "listAuthzPoliciesCallable"] + }, + "ListBackendAuthenticationConfigs": { + "methods": ["listBackendAuthenticationConfigs", "listBackendAuthenticationConfigs", "listBackendAuthenticationConfigs", "listBackendAuthenticationConfigsPagedCallable", "listBackendAuthenticationConfigsCallable"] + }, "ListClientTlsPolicies": { "methods": ["listClientTlsPolicies", "listClientTlsPolicies", "listClientTlsPolicies", "listClientTlsPoliciesPagedCallable", "listClientTlsPoliciesCallable"] }, + "ListGatewaySecurityPolicies": { + "methods": ["listGatewaySecurityPolicies", "listGatewaySecurityPolicies", "listGatewaySecurityPolicies", "listGatewaySecurityPoliciesPagedCallable", "listGatewaySecurityPoliciesCallable"] + }, + "ListGatewaySecurityPolicyRules": { + "methods": ["listGatewaySecurityPolicyRules", "listGatewaySecurityPolicyRules", "listGatewaySecurityPolicyRules", "listGatewaySecurityPolicyRulesPagedCallable", "listGatewaySecurityPolicyRulesCallable"] + }, "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, "ListServerTlsPolicies": { "methods": ["listServerTlsPolicies", "listServerTlsPolicies", "listServerTlsPolicies", "listServerTlsPoliciesPagedCallable", "listServerTlsPoliciesCallable"] }, + "ListTlsInspectionPolicies": { + "methods": ["listTlsInspectionPolicies", "listTlsInspectionPolicies", "listTlsInspectionPolicies", "listTlsInspectionPoliciesPagedCallable", "listTlsInspectionPoliciesCallable"] + }, + "ListUrlLists": { + "methods": ["listUrlLists", "listUrlLists", "listUrlLists", "listUrlListsPagedCallable", "listUrlListsCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, @@ -166,11 +499,83 @@ "UpdateAuthorizationPolicy": { "methods": ["updateAuthorizationPolicyAsync", "updateAuthorizationPolicyAsync", "updateAuthorizationPolicyOperationCallable", "updateAuthorizationPolicyCallable"] }, + "UpdateAuthzPolicy": { + "methods": ["updateAuthzPolicyAsync", "updateAuthzPolicyAsync", "updateAuthzPolicyOperationCallable", "updateAuthzPolicyCallable"] + }, + "UpdateBackendAuthenticationConfig": { + "methods": ["updateBackendAuthenticationConfigAsync", "updateBackendAuthenticationConfigAsync", "updateBackendAuthenticationConfigOperationCallable", "updateBackendAuthenticationConfigCallable"] + }, "UpdateClientTlsPolicy": { "methods": ["updateClientTlsPolicyAsync", "updateClientTlsPolicyAsync", "updateClientTlsPolicyOperationCallable", "updateClientTlsPolicyCallable"] }, + "UpdateGatewaySecurityPolicy": { + "methods": ["updateGatewaySecurityPolicyAsync", "updateGatewaySecurityPolicyAsync", "updateGatewaySecurityPolicyOperationCallable", "updateGatewaySecurityPolicyCallable"] + }, + "UpdateGatewaySecurityPolicyRule": { + "methods": ["updateGatewaySecurityPolicyRuleAsync", "updateGatewaySecurityPolicyRuleAsync", "updateGatewaySecurityPolicyRuleOperationCallable", "updateGatewaySecurityPolicyRuleCallable"] + }, "UpdateServerTlsPolicy": { "methods": ["updateServerTlsPolicyAsync", "updateServerTlsPolicyAsync", "updateServerTlsPolicyOperationCallable", "updateServerTlsPolicyCallable"] + }, + "UpdateTlsInspectionPolicy": { + "methods": ["updateTlsInspectionPolicyAsync", "updateTlsInspectionPolicyAsync", "updateTlsInspectionPolicyOperationCallable", "updateTlsInspectionPolicyCallable"] + }, + "UpdateUrlList": { + "methods": ["updateUrlListAsync", "updateUrlListAsync", "updateUrlListOperationCallable", "updateUrlListCallable"] + } + } + } + } + }, + "OrganizationSecurityProfileGroupService": { + "clients": { + "grpc": { + "libraryClient": "OrganizationSecurityProfileGroupServiceClient", + "rpcs": { + "CreateSecurityProfile": { + "methods": ["createSecurityProfileAsync", "createSecurityProfileAsync", "createSecurityProfileAsync", "createSecurityProfileAsync", "createSecurityProfileOperationCallable", "createSecurityProfileCallable"] + }, + "CreateSecurityProfileGroup": { + "methods": ["createSecurityProfileGroupAsync", "createSecurityProfileGroupAsync", "createSecurityProfileGroupAsync", "createSecurityProfileGroupAsync", "createSecurityProfileGroupOperationCallable", "createSecurityProfileGroupCallable"] + }, + "DeleteSecurityProfile": { + "methods": ["deleteSecurityProfileAsync", "deleteSecurityProfileAsync", "deleteSecurityProfileAsync", "deleteSecurityProfileOperationCallable", "deleteSecurityProfileCallable"] + }, + "DeleteSecurityProfileGroup": { + "methods": ["deleteSecurityProfileGroupAsync", "deleteSecurityProfileGroupAsync", "deleteSecurityProfileGroupAsync", "deleteSecurityProfileGroupOperationCallable", "deleteSecurityProfileGroupCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetSecurityProfile": { + "methods": ["getSecurityProfile", "getSecurityProfile", "getSecurityProfile", "getSecurityProfileCallable"] + }, + "GetSecurityProfileGroup": { + "methods": ["getSecurityProfileGroup", "getSecurityProfileGroup", "getSecurityProfileGroup", "getSecurityProfileGroupCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListSecurityProfileGroups": { + "methods": ["listSecurityProfileGroups", "listSecurityProfileGroups", "listSecurityProfileGroups", "listSecurityProfileGroups", "listSecurityProfileGroupsPagedCallable", "listSecurityProfileGroupsCallable"] + }, + "ListSecurityProfiles": { + "methods": ["listSecurityProfiles", "listSecurityProfiles", "listSecurityProfiles", "listSecurityProfiles", "listSecurityProfilesPagedCallable", "listSecurityProfilesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateSecurityProfile": { + "methods": ["updateSecurityProfileAsync", "updateSecurityProfileAsync", "updateSecurityProfileOperationCallable", "updateSecurityProfileCallable"] + }, + "UpdateSecurityProfileGroup": { + "methods": ["updateSecurityProfileGroupAsync", "updateSecurityProfileGroupAsync", "updateSecurityProfileGroupOperationCallable", "updateSecurityProfileGroupCallable"] } } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java index d8a3fbe83a16..8f9d714f5527 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java @@ -64,6 +64,86 @@ * } * }

                                                                                              * + *

                                                                                              ======================= DnsThreatDetectorServiceClient ======================= + * + *

                                                                                              Service Description: The Network Security API for DNS Threat Detectors. + * + *

                                                                                              Sample for DnsThreatDetectorServiceClient: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient =
                                                                                              + *     DnsThreatDetectorServiceClient.create()) {
                                                                                              + *   DnsThreatDetectorName name =
                                                                                              + *       DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]");
                                                                                              + *   DnsThreatDetector response = dnsThreatDetectorServiceClient.getDnsThreatDetector(name);
                                                                                              + * }
                                                                                              + * }
                                                                                              + * + *

                                                                                              ======================= FirewallActivationClient ======================= + * + *

                                                                                              Service Description: Service for managing Firewall Endpoints and Associations. + * + *

                                                                                              Sample for FirewallActivationClient: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) {
                                                                                              + *   FirewallEndpointName name =
                                                                                              + *       FirewallEndpointName.ofOrganizationLocationFirewallEndpointName(
                                                                                              + *           "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]");
                                                                                              + *   FirewallEndpoint response = firewallActivationClient.getFirewallEndpoint(name);
                                                                                              + * }
                                                                                              + * }
                                                                                              + * + *

                                                                                              ======================= InterceptClient ======================= + * + *

                                                                                              Service Description: Service for Third-Party Packet Intercept (TPPI). TPPI is the "in-band" + * flavor of the Network Security Integrations product. + * + *

                                                                                              Sample for InterceptClient: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * try (InterceptClient interceptClient = InterceptClient.create()) {
                                                                                              + *   InterceptEndpointGroupName name =
                                                                                              + *       InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
                                                                                              + *   InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
                                                                                              + * }
                                                                                              + * }
                                                                                              + * + *

                                                                                              ======================= MirroringClient ======================= + * + *

                                                                                              Service Description: PM2 is the "out-of-band" flavor of the Network Security Integrations + * product. + * + *

                                                                                              Sample for MirroringClient: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * try (MirroringClient mirroringClient = MirroringClient.create()) {
                                                                                              + *   MirroringEndpointGroupName name =
                                                                                              + *       MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
                                                                                              + *   MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
                                                                                              + * }
                                                                                              + * }
                                                                                              + * *

                                                                                              ======================= NetworkSecurityClient ======================= * *

                                                                                              Service Description: Network Security API provides resources to configure authentication and @@ -83,6 +163,29 @@ * AuthorizationPolicy response = networkSecurityClient.getAuthorizationPolicy(name); * } * }

                                                                                              + * + *

                                                                                              ======================= OrganizationSecurityProfileGroupServiceClient ======================= + * + *

                                                                                              Service Description: Organization SecurityProfileGroup is created under organization. + * + *

                                                                                              Sample for OrganizationSecurityProfileGroupServiceClient: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * try (OrganizationSecurityProfileGroupServiceClient
                                                                                              + *     organizationSecurityProfileGroupServiceClient =
                                                                                              + *         OrganizationSecurityProfileGroupServiceClient.create()) {
                                                                                              + *   SecurityProfileGroupName name =
                                                                                              + *       SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName(
                                                                                              + *           "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]");
                                                                                              + *   SecurityProfileGroup response =
                                                                                              + *       organizationSecurityProfileGroupServiceClient.getSecurityProfileGroup(name);
                                                                                              + * }
                                                                                              + * }
                                                                                              */ @Generated("by gapic-generator-java") package com.google.cloud.networksecurity.v1; diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java index d0507a560e8d..f710c9bf4f39 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java @@ -622,6 +622,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-network-security") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStub.java new file mode 100644 index 000000000000..bbdf642f39b8 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStub.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListDnsThreatDetectorsPagedResponse; +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse; +import com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DnsThreatDetectorService service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DnsThreatDetectorServiceStub implements BackgroundResource { + + public UnaryCallable + listDnsThreatDetectorsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDnsThreatDetectorsPagedCallable()"); + } + + public UnaryCallable + listDnsThreatDetectorsCallable() { + throw new UnsupportedOperationException("Not implemented: listDnsThreatDetectorsCallable()"); + } + + public UnaryCallable + getDnsThreatDetectorCallable() { + throw new UnsupportedOperationException("Not implemented: getDnsThreatDetectorCallable()"); + } + + public UnaryCallable + createDnsThreatDetectorCallable() { + throw new UnsupportedOperationException("Not implemented: createDnsThreatDetectorCallable()"); + } + + public UnaryCallable + updateDnsThreatDetectorCallable() { + throw new UnsupportedOperationException("Not implemented: updateDnsThreatDetectorCallable()"); + } + + public UnaryCallable deleteDnsThreatDetectorCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDnsThreatDetectorCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStubSettings.java new file mode 100644 index 000000000000..12b3db95cfa3 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStubSettings.java @@ -0,0 +1,687 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListDnsThreatDetectorsPagedResponse; +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse; +import com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DnsThreatDetectorServiceStub}. + * + *

                                                                                              The default instance has everything set to sensible defaults: + * + *

                                                                                                + *
                                                                                              • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                              • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                              + * + *

                                                                                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                              For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDnsThreatDetector: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * DnsThreatDetectorServiceStubSettings.Builder dnsThreatDetectorServiceSettingsBuilder =
                                                                                              + *     DnsThreatDetectorServiceStubSettings.newBuilder();
                                                                                              + * dnsThreatDetectorServiceSettingsBuilder
                                                                                              + *     .getDnsThreatDetectorSettings()
                                                                                              + *     .setRetrySettings(
                                                                                              + *         dnsThreatDetectorServiceSettingsBuilder
                                                                                              + *             .getDnsThreatDetectorSettings()
                                                                                              + *             .getRetrySettings()
                                                                                              + *             .toBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                              + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                              + *             .setMaxAttempts(5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                              + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                              + *             .setRetryDelayMultiplier(1.3)
                                                                                              + *             .setRpcTimeoutMultiplier(1.5)
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                              + *             .build());
                                                                                              + * DnsThreatDetectorServiceStubSettings dnsThreatDetectorServiceSettings =
                                                                                              + *     dnsThreatDetectorServiceSettingsBuilder.build();
                                                                                              + * }
                                                                                              + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class DnsThreatDetectorServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + ListDnsThreatDetectorsPagedResponse> + listDnsThreatDetectorsSettings; + private final UnaryCallSettings + getDnsThreatDetectorSettings; + private final UnaryCallSettings + createDnsThreatDetectorSettings; + private final UnaryCallSettings + updateDnsThreatDetectorSettings; + private final UnaryCallSettings + deleteDnsThreatDetectorSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> + LIST_DNS_THREAT_DETECTORS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDnsThreatDetectorsRequest injectToken( + ListDnsThreatDetectorsRequest payload, String token) { + return ListDnsThreatDetectorsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDnsThreatDetectorsRequest injectPageSize( + ListDnsThreatDetectorsRequest payload, int pageSize) { + return ListDnsThreatDetectorsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListDnsThreatDetectorsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDnsThreatDetectorsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListDnsThreatDetectorsResponse payload) { + return payload.getDnsThreatDetectorsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + ListDnsThreatDetectorsPagedResponse> + LIST_DNS_THREAT_DETECTORS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + ListDnsThreatDetectorsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListDnsThreatDetectorsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + DnsThreatDetector> + pageContext = + PageContext.create( + callable, LIST_DNS_THREAT_DETECTORS_PAGE_STR_DESC, request, context); + return ListDnsThreatDetectorsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listDnsThreatDetectors. */ + public PagedCallSettings< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + ListDnsThreatDetectorsPagedResponse> + listDnsThreatDetectorsSettings() { + return listDnsThreatDetectorsSettings; + } + + /** Returns the object with the settings used for calls to getDnsThreatDetector. */ + public UnaryCallSettings + getDnsThreatDetectorSettings() { + return getDnsThreatDetectorSettings; + } + + /** Returns the object with the settings used for calls to createDnsThreatDetector. */ + public UnaryCallSettings + createDnsThreatDetectorSettings() { + return createDnsThreatDetectorSettings; + } + + /** Returns the object with the settings used for calls to updateDnsThreatDetector. */ + public UnaryCallSettings + updateDnsThreatDetectorSettings() { + return updateDnsThreatDetectorSettings; + } + + /** Returns the object with the settings used for calls to deleteDnsThreatDetector. */ + public UnaryCallSettings + deleteDnsThreatDetectorSettings() { + return deleteDnsThreatDetectorSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public DnsThreatDetectorServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDnsThreatDetectorServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networksecurity"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "networksecurity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networksecurity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DnsThreatDetectorServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DnsThreatDetectorServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listDnsThreatDetectorsSettings = settingsBuilder.listDnsThreatDetectorsSettings().build(); + getDnsThreatDetectorSettings = settingsBuilder.getDnsThreatDetectorSettings().build(); + createDnsThreatDetectorSettings = settingsBuilder.createDnsThreatDetectorSettings().build(); + updateDnsThreatDetectorSettings = settingsBuilder.updateDnsThreatDetectorSettings().build(); + deleteDnsThreatDetectorSettings = settingsBuilder.deleteDnsThreatDetectorSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-network-security") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for DnsThreatDetectorServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + ListDnsThreatDetectorsPagedResponse> + listDnsThreatDetectorsSettings; + private final UnaryCallSettings.Builder + getDnsThreatDetectorSettings; + private final UnaryCallSettings.Builder + createDnsThreatDetectorSettings; + private final UnaryCallSettings.Builder + updateDnsThreatDetectorSettings; + private final UnaryCallSettings.Builder + deleteDnsThreatDetectorSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listDnsThreatDetectorsSettings = + PagedCallSettings.newBuilder(LIST_DNS_THREAT_DETECTORS_PAGE_STR_FACT); + getDnsThreatDetectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDnsThreatDetectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDnsThreatDetectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDnsThreatDetectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listDnsThreatDetectorsSettings, + getDnsThreatDetectorSettings, + createDnsThreatDetectorSettings, + updateDnsThreatDetectorSettings, + deleteDnsThreatDetectorSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(DnsThreatDetectorServiceStubSettings settings) { + super(settings); + + listDnsThreatDetectorsSettings = settings.listDnsThreatDetectorsSettings.toBuilder(); + getDnsThreatDetectorSettings = settings.getDnsThreatDetectorSettings.toBuilder(); + createDnsThreatDetectorSettings = settings.createDnsThreatDetectorSettings.toBuilder(); + updateDnsThreatDetectorSettings = settings.updateDnsThreatDetectorSettings.toBuilder(); + deleteDnsThreatDetectorSettings = settings.deleteDnsThreatDetectorSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listDnsThreatDetectorsSettings, + getDnsThreatDetectorSettings, + createDnsThreatDetectorSettings, + updateDnsThreatDetectorSettings, + deleteDnsThreatDetectorSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listDnsThreatDetectorsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDnsThreatDetectorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createDnsThreatDetectorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateDnsThreatDetectorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteDnsThreatDetectorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listDnsThreatDetectors. */ + public PagedCallSettings.Builder< + ListDnsThreatDetectorsRequest, + ListDnsThreatDetectorsResponse, + ListDnsThreatDetectorsPagedResponse> + listDnsThreatDetectorsSettings() { + return listDnsThreatDetectorsSettings; + } + + /** Returns the builder for the settings used for calls to getDnsThreatDetector. */ + public UnaryCallSettings.Builder + getDnsThreatDetectorSettings() { + return getDnsThreatDetectorSettings; + } + + /** Returns the builder for the settings used for calls to createDnsThreatDetector. */ + public UnaryCallSettings.Builder + createDnsThreatDetectorSettings() { + return createDnsThreatDetectorSettings; + } + + /** Returns the builder for the settings used for calls to updateDnsThreatDetector. */ + public UnaryCallSettings.Builder + updateDnsThreatDetectorSettings() { + return updateDnsThreatDetectorSettings; + } + + /** Returns the builder for the settings used for calls to deleteDnsThreatDetector. */ + public UnaryCallSettings.Builder + deleteDnsThreatDetectorSettings() { + return deleteDnsThreatDetectorSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public DnsThreatDetectorServiceStubSettings build() throws IOException { + return new DnsThreatDetectorServiceStubSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStub.java new file mode 100644 index 000000000000..f578cd3c53b8 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStub.java @@ -0,0 +1,199 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the FirewallActivation service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class FirewallActivationStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listFirewallEndpointsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFirewallEndpointsPagedCallable()"); + } + + public UnaryCallable + listFirewallEndpointsCallable() { + throw new UnsupportedOperationException("Not implemented: listFirewallEndpointsCallable()"); + } + + public UnaryCallable getFirewallEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: getFirewallEndpointCallable()"); + } + + public OperationCallable + createFirewallEndpointOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createFirewallEndpointOperationCallable()"); + } + + public UnaryCallable createFirewallEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: createFirewallEndpointCallable()"); + } + + public OperationCallable + deleteFirewallEndpointOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteFirewallEndpointOperationCallable()"); + } + + public UnaryCallable deleteFirewallEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFirewallEndpointCallable()"); + } + + public OperationCallable + updateFirewallEndpointOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateFirewallEndpointOperationCallable()"); + } + + public UnaryCallable updateFirewallEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: updateFirewallEndpointCallable()"); + } + + public UnaryCallable< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFirewallEndpointAssociationsPagedCallable()"); + } + + public UnaryCallable< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse> + listFirewallEndpointAssociationsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listFirewallEndpointAssociationsCallable()"); + } + + public UnaryCallable + getFirewallEndpointAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: getFirewallEndpointAssociationCallable()"); + } + + public OperationCallable< + CreateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + createFirewallEndpointAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createFirewallEndpointAssociationOperationCallable()"); + } + + public UnaryCallable + createFirewallEndpointAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createFirewallEndpointAssociationCallable()"); + } + + public OperationCallable + deleteFirewallEndpointAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteFirewallEndpointAssociationOperationCallable()"); + } + + public UnaryCallable + deleteFirewallEndpointAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteFirewallEndpointAssociationCallable()"); + } + + public OperationCallable< + UpdateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + updateFirewallEndpointAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateFirewallEndpointAssociationOperationCallable()"); + } + + public UnaryCallable + updateFirewallEndpointAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateFirewallEndpointAssociationCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStubSettings.java new file mode 100644 index 000000000000..e472c87f9d89 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStubSettings.java @@ -0,0 +1,1259 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FirewallActivationStub}. + * + *

                                                                                              The default instance has everything set to sensible defaults: + * + *

                                                                                                + *
                                                                                              • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                              • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                              + * + *

                                                                                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                              For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getFirewallEndpoint: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * FirewallActivationStubSettings.Builder firewallActivationSettingsBuilder =
                                                                                              + *     FirewallActivationStubSettings.newBuilder();
                                                                                              + * firewallActivationSettingsBuilder
                                                                                              + *     .getFirewallEndpointSettings()
                                                                                              + *     .setRetrySettings(
                                                                                              + *         firewallActivationSettingsBuilder
                                                                                              + *             .getFirewallEndpointSettings()
                                                                                              + *             .getRetrySettings()
                                                                                              + *             .toBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                              + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                              + *             .setMaxAttempts(5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                              + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                              + *             .setRetryDelayMultiplier(1.3)
                                                                                              + *             .setRpcTimeoutMultiplier(1.5)
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                              + *             .build());
                                                                                              + * FirewallActivationStubSettings firewallActivationSettings =
                                                                                              + *     firewallActivationSettingsBuilder.build();
                                                                                              + * }
                                                                                              + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

                                                                                              To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createFirewallEndpoint: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * FirewallActivationStubSettings.Builder firewallActivationSettingsBuilder =
                                                                                              + *     FirewallActivationStubSettings.newBuilder();
                                                                                              + * TimedRetryAlgorithm timedRetryAlgorithm =
                                                                                              + *     OperationalTimedPollAlgorithm.create(
                                                                                              + *         RetrySettings.newBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                                                                              + *             .setRetryDelayMultiplier(1.5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                                                                              + *             .build());
                                                                                              + * firewallActivationSettingsBuilder
                                                                                              + *     .createClusterOperationSettings()
                                                                                              + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                                                                              + *     .build();
                                                                                              + * }
                                                                                              + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class FirewallActivationStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + ListFirewallEndpointsPagedResponse> + listFirewallEndpointsSettings; + private final UnaryCallSettings + getFirewallEndpointSettings; + private final UnaryCallSettings + createFirewallEndpointSettings; + private final OperationCallSettings< + CreateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + createFirewallEndpointOperationSettings; + private final UnaryCallSettings + deleteFirewallEndpointSettings; + private final OperationCallSettings + deleteFirewallEndpointOperationSettings; + private final UnaryCallSettings + updateFirewallEndpointSettings; + private final OperationCallSettings< + UpdateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + updateFirewallEndpointOperationSettings; + private final PagedCallSettings< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsSettings; + private final UnaryCallSettings< + GetFirewallEndpointAssociationRequest, FirewallEndpointAssociation> + getFirewallEndpointAssociationSettings; + private final UnaryCallSettings + createFirewallEndpointAssociationSettings; + private final OperationCallSettings< + CreateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + createFirewallEndpointAssociationOperationSettings; + private final UnaryCallSettings + deleteFirewallEndpointAssociationSettings; + private final OperationCallSettings< + DeleteFirewallEndpointAssociationRequest, Empty, OperationMetadata> + deleteFirewallEndpointAssociationOperationSettings; + private final UnaryCallSettings + updateFirewallEndpointAssociationSettings; + private final OperationCallSettings< + UpdateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + updateFirewallEndpointAssociationOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint> + LIST_FIREWALL_ENDPOINTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFirewallEndpointsRequest injectToken( + ListFirewallEndpointsRequest payload, String token) { + return ListFirewallEndpointsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFirewallEndpointsRequest injectPageSize( + ListFirewallEndpointsRequest payload, int pageSize) { + return ListFirewallEndpointsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFirewallEndpointsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFirewallEndpointsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListFirewallEndpointsResponse payload) { + return payload.getFirewallEndpointsList(); + } + }; + + private static final PagedListDescriptor< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation> + LIST_FIREWALL_ENDPOINT_ASSOCIATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFirewallEndpointAssociationsRequest injectToken( + ListFirewallEndpointAssociationsRequest payload, String token) { + return ListFirewallEndpointAssociationsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListFirewallEndpointAssociationsRequest injectPageSize( + ListFirewallEndpointAssociationsRequest payload, int pageSize) { + return ListFirewallEndpointAssociationsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListFirewallEndpointAssociationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFirewallEndpointAssociationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListFirewallEndpointAssociationsResponse payload) { + return payload.getFirewallEndpointAssociationsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + ListFirewallEndpointsPagedResponse> + LIST_FIREWALL_ENDPOINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + ListFirewallEndpointsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFirewallEndpointsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint> + pageContext = + PageContext.create( + callable, LIST_FIREWALL_ENDPOINTS_PAGE_STR_DESC, request, context); + return ListFirewallEndpointsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + ListFirewallEndpointAssociationsPagedResponse> + LIST_FIREWALL_ENDPOINT_ASSOCIATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + ListFirewallEndpointAssociationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse> + callable, + ListFirewallEndpointAssociationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + FirewallEndpointAssociation> + pageContext = + PageContext.create( + callable, + LIST_FIREWALL_ENDPOINT_ASSOCIATIONS_PAGE_STR_DESC, + request, + context); + return ListFirewallEndpointAssociationsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listFirewallEndpoints. */ + public PagedCallSettings< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + ListFirewallEndpointsPagedResponse> + listFirewallEndpointsSettings() { + return listFirewallEndpointsSettings; + } + + /** Returns the object with the settings used for calls to getFirewallEndpoint. */ + public UnaryCallSettings + getFirewallEndpointSettings() { + return getFirewallEndpointSettings; + } + + /** Returns the object with the settings used for calls to createFirewallEndpoint. */ + public UnaryCallSettings + createFirewallEndpointSettings() { + return createFirewallEndpointSettings; + } + + /** Returns the object with the settings used for calls to createFirewallEndpoint. */ + public OperationCallSettings + createFirewallEndpointOperationSettings() { + return createFirewallEndpointOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteFirewallEndpoint. */ + public UnaryCallSettings + deleteFirewallEndpointSettings() { + return deleteFirewallEndpointSettings; + } + + /** Returns the object with the settings used for calls to deleteFirewallEndpoint. */ + public OperationCallSettings + deleteFirewallEndpointOperationSettings() { + return deleteFirewallEndpointOperationSettings; + } + + /** Returns the object with the settings used for calls to updateFirewallEndpoint. */ + public UnaryCallSettings + updateFirewallEndpointSettings() { + return updateFirewallEndpointSettings; + } + + /** Returns the object with the settings used for calls to updateFirewallEndpoint. */ + public OperationCallSettings + updateFirewallEndpointOperationSettings() { + return updateFirewallEndpointOperationSettings; + } + + /** Returns the object with the settings used for calls to listFirewallEndpointAssociations. */ + public PagedCallSettings< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsSettings() { + return listFirewallEndpointAssociationsSettings; + } + + /** Returns the object with the settings used for calls to getFirewallEndpointAssociation. */ + public UnaryCallSettings + getFirewallEndpointAssociationSettings() { + return getFirewallEndpointAssociationSettings; + } + + /** Returns the object with the settings used for calls to createFirewallEndpointAssociation. */ + public UnaryCallSettings + createFirewallEndpointAssociationSettings() { + return createFirewallEndpointAssociationSettings; + } + + /** Returns the object with the settings used for calls to createFirewallEndpointAssociation. */ + public OperationCallSettings< + CreateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + createFirewallEndpointAssociationOperationSettings() { + return createFirewallEndpointAssociationOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteFirewallEndpointAssociation. */ + public UnaryCallSettings + deleteFirewallEndpointAssociationSettings() { + return deleteFirewallEndpointAssociationSettings; + } + + /** Returns the object with the settings used for calls to deleteFirewallEndpointAssociation. */ + public OperationCallSettings + deleteFirewallEndpointAssociationOperationSettings() { + return deleteFirewallEndpointAssociationOperationSettings; + } + + /** Returns the object with the settings used for calls to updateFirewallEndpointAssociation. */ + public UnaryCallSettings + updateFirewallEndpointAssociationSettings() { + return updateFirewallEndpointAssociationSettings; + } + + /** Returns the object with the settings used for calls to updateFirewallEndpointAssociation. */ + public OperationCallSettings< + UpdateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + updateFirewallEndpointAssociationOperationSettings() { + return updateFirewallEndpointAssociationOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public FirewallActivationStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcFirewallActivationStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networksecurity"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "networksecurity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networksecurity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(FirewallActivationStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FirewallActivationStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listFirewallEndpointsSettings = settingsBuilder.listFirewallEndpointsSettings().build(); + getFirewallEndpointSettings = settingsBuilder.getFirewallEndpointSettings().build(); + createFirewallEndpointSettings = settingsBuilder.createFirewallEndpointSettings().build(); + createFirewallEndpointOperationSettings = + settingsBuilder.createFirewallEndpointOperationSettings().build(); + deleteFirewallEndpointSettings = settingsBuilder.deleteFirewallEndpointSettings().build(); + deleteFirewallEndpointOperationSettings = + settingsBuilder.deleteFirewallEndpointOperationSettings().build(); + updateFirewallEndpointSettings = settingsBuilder.updateFirewallEndpointSettings().build(); + updateFirewallEndpointOperationSettings = + settingsBuilder.updateFirewallEndpointOperationSettings().build(); + listFirewallEndpointAssociationsSettings = + settingsBuilder.listFirewallEndpointAssociationsSettings().build(); + getFirewallEndpointAssociationSettings = + settingsBuilder.getFirewallEndpointAssociationSettings().build(); + createFirewallEndpointAssociationSettings = + settingsBuilder.createFirewallEndpointAssociationSettings().build(); + createFirewallEndpointAssociationOperationSettings = + settingsBuilder.createFirewallEndpointAssociationOperationSettings().build(); + deleteFirewallEndpointAssociationSettings = + settingsBuilder.deleteFirewallEndpointAssociationSettings().build(); + deleteFirewallEndpointAssociationOperationSettings = + settingsBuilder.deleteFirewallEndpointAssociationOperationSettings().build(); + updateFirewallEndpointAssociationSettings = + settingsBuilder.updateFirewallEndpointAssociationSettings().build(); + updateFirewallEndpointAssociationOperationSettings = + settingsBuilder.updateFirewallEndpointAssociationOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-network-security") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for FirewallActivationStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + ListFirewallEndpointsPagedResponse> + listFirewallEndpointsSettings; + private final UnaryCallSettings.Builder + getFirewallEndpointSettings; + private final UnaryCallSettings.Builder + createFirewallEndpointSettings; + private final OperationCallSettings.Builder< + CreateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + createFirewallEndpointOperationSettings; + private final UnaryCallSettings.Builder + deleteFirewallEndpointSettings; + private final OperationCallSettings.Builder< + DeleteFirewallEndpointRequest, Empty, OperationMetadata> + deleteFirewallEndpointOperationSettings; + private final UnaryCallSettings.Builder + updateFirewallEndpointSettings; + private final OperationCallSettings.Builder< + UpdateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + updateFirewallEndpointOperationSettings; + private final PagedCallSettings.Builder< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsSettings; + private final UnaryCallSettings.Builder< + GetFirewallEndpointAssociationRequest, FirewallEndpointAssociation> + getFirewallEndpointAssociationSettings; + private final UnaryCallSettings.Builder + createFirewallEndpointAssociationSettings; + private final OperationCallSettings.Builder< + CreateFirewallEndpointAssociationRequest, + FirewallEndpointAssociation, + OperationMetadata> + createFirewallEndpointAssociationOperationSettings; + private final UnaryCallSettings.Builder + deleteFirewallEndpointAssociationSettings; + private final OperationCallSettings.Builder< + DeleteFirewallEndpointAssociationRequest, Empty, OperationMetadata> + deleteFirewallEndpointAssociationOperationSettings; + private final UnaryCallSettings.Builder + updateFirewallEndpointAssociationSettings; + private final OperationCallSettings.Builder< + UpdateFirewallEndpointAssociationRequest, + FirewallEndpointAssociation, + OperationMetadata> + updateFirewallEndpointAssociationOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listFirewallEndpointsSettings = + PagedCallSettings.newBuilder(LIST_FIREWALL_ENDPOINTS_PAGE_STR_FACT); + getFirewallEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFirewallEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFirewallEndpointOperationSettings = OperationCallSettings.newBuilder(); + deleteFirewallEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFirewallEndpointOperationSettings = OperationCallSettings.newBuilder(); + updateFirewallEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFirewallEndpointOperationSettings = OperationCallSettings.newBuilder(); + listFirewallEndpointAssociationsSettings = + PagedCallSettings.newBuilder(LIST_FIREWALL_ENDPOINT_ASSOCIATIONS_PAGE_STR_FACT); + getFirewallEndpointAssociationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFirewallEndpointAssociationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFirewallEndpointAssociationOperationSettings = OperationCallSettings.newBuilder(); + deleteFirewallEndpointAssociationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFirewallEndpointAssociationOperationSettings = OperationCallSettings.newBuilder(); + updateFirewallEndpointAssociationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFirewallEndpointAssociationOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listFirewallEndpointsSettings, + getFirewallEndpointSettings, + createFirewallEndpointSettings, + deleteFirewallEndpointSettings, + updateFirewallEndpointSettings, + listFirewallEndpointAssociationsSettings, + getFirewallEndpointAssociationSettings, + createFirewallEndpointAssociationSettings, + deleteFirewallEndpointAssociationSettings, + updateFirewallEndpointAssociationSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(FirewallActivationStubSettings settings) { + super(settings); + + listFirewallEndpointsSettings = settings.listFirewallEndpointsSettings.toBuilder(); + getFirewallEndpointSettings = settings.getFirewallEndpointSettings.toBuilder(); + createFirewallEndpointSettings = settings.createFirewallEndpointSettings.toBuilder(); + createFirewallEndpointOperationSettings = + settings.createFirewallEndpointOperationSettings.toBuilder(); + deleteFirewallEndpointSettings = settings.deleteFirewallEndpointSettings.toBuilder(); + deleteFirewallEndpointOperationSettings = + settings.deleteFirewallEndpointOperationSettings.toBuilder(); + updateFirewallEndpointSettings = settings.updateFirewallEndpointSettings.toBuilder(); + updateFirewallEndpointOperationSettings = + settings.updateFirewallEndpointOperationSettings.toBuilder(); + listFirewallEndpointAssociationsSettings = + settings.listFirewallEndpointAssociationsSettings.toBuilder(); + getFirewallEndpointAssociationSettings = + settings.getFirewallEndpointAssociationSettings.toBuilder(); + createFirewallEndpointAssociationSettings = + settings.createFirewallEndpointAssociationSettings.toBuilder(); + createFirewallEndpointAssociationOperationSettings = + settings.createFirewallEndpointAssociationOperationSettings.toBuilder(); + deleteFirewallEndpointAssociationSettings = + settings.deleteFirewallEndpointAssociationSettings.toBuilder(); + deleteFirewallEndpointAssociationOperationSettings = + settings.deleteFirewallEndpointAssociationOperationSettings.toBuilder(); + updateFirewallEndpointAssociationSettings = + settings.updateFirewallEndpointAssociationSettings.toBuilder(); + updateFirewallEndpointAssociationOperationSettings = + settings.updateFirewallEndpointAssociationOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listFirewallEndpointsSettings, + getFirewallEndpointSettings, + createFirewallEndpointSettings, + deleteFirewallEndpointSettings, + updateFirewallEndpointSettings, + listFirewallEndpointAssociationsSettings, + getFirewallEndpointAssociationSettings, + createFirewallEndpointAssociationSettings, + deleteFirewallEndpointAssociationSettings, + updateFirewallEndpointAssociationSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listFirewallEndpointsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getFirewallEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFirewallEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteFirewallEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateFirewallEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listFirewallEndpointAssociationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getFirewallEndpointAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFirewallEndpointAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteFirewallEndpointAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateFirewallEndpointAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFirewallEndpointOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(FirewallEndpoint.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFirewallEndpointOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateFirewallEndpointOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(FirewallEndpoint.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createFirewallEndpointAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + FirewallEndpointAssociation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFirewallEndpointAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateFirewallEndpointAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + FirewallEndpointAssociation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listFirewallEndpoints. */ + public PagedCallSettings.Builder< + ListFirewallEndpointsRequest, + ListFirewallEndpointsResponse, + ListFirewallEndpointsPagedResponse> + listFirewallEndpointsSettings() { + return listFirewallEndpointsSettings; + } + + /** Returns the builder for the settings used for calls to getFirewallEndpoint. */ + public UnaryCallSettings.Builder + getFirewallEndpointSettings() { + return getFirewallEndpointSettings; + } + + /** Returns the builder for the settings used for calls to createFirewallEndpoint. */ + public UnaryCallSettings.Builder + createFirewallEndpointSettings() { + return createFirewallEndpointSettings; + } + + /** Returns the builder for the settings used for calls to createFirewallEndpoint. */ + public OperationCallSettings.Builder< + CreateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + createFirewallEndpointOperationSettings() { + return createFirewallEndpointOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteFirewallEndpoint. */ + public UnaryCallSettings.Builder + deleteFirewallEndpointSettings() { + return deleteFirewallEndpointSettings; + } + + /** Returns the builder for the settings used for calls to deleteFirewallEndpoint. */ + public OperationCallSettings.Builder + deleteFirewallEndpointOperationSettings() { + return deleteFirewallEndpointOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateFirewallEndpoint. */ + public UnaryCallSettings.Builder + updateFirewallEndpointSettings() { + return updateFirewallEndpointSettings; + } + + /** Returns the builder for the settings used for calls to updateFirewallEndpoint. */ + public OperationCallSettings.Builder< + UpdateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + updateFirewallEndpointOperationSettings() { + return updateFirewallEndpointOperationSettings; + } + + /** Returns the builder for the settings used for calls to listFirewallEndpointAssociations. */ + public PagedCallSettings.Builder< + ListFirewallEndpointAssociationsRequest, + ListFirewallEndpointAssociationsResponse, + ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsSettings() { + return listFirewallEndpointAssociationsSettings; + } + + /** Returns the builder for the settings used for calls to getFirewallEndpointAssociation. */ + public UnaryCallSettings.Builder< + GetFirewallEndpointAssociationRequest, FirewallEndpointAssociation> + getFirewallEndpointAssociationSettings() { + return getFirewallEndpointAssociationSettings; + } + + /** Returns the builder for the settings used for calls to createFirewallEndpointAssociation. */ + public UnaryCallSettings.Builder + createFirewallEndpointAssociationSettings() { + return createFirewallEndpointAssociationSettings; + } + + /** Returns the builder for the settings used for calls to createFirewallEndpointAssociation. */ + public OperationCallSettings.Builder< + CreateFirewallEndpointAssociationRequest, + FirewallEndpointAssociation, + OperationMetadata> + createFirewallEndpointAssociationOperationSettings() { + return createFirewallEndpointAssociationOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteFirewallEndpointAssociation. */ + public UnaryCallSettings.Builder + deleteFirewallEndpointAssociationSettings() { + return deleteFirewallEndpointAssociationSettings; + } + + /** Returns the builder for the settings used for calls to deleteFirewallEndpointAssociation. */ + public OperationCallSettings.Builder< + DeleteFirewallEndpointAssociationRequest, Empty, OperationMetadata> + deleteFirewallEndpointAssociationOperationSettings() { + return deleteFirewallEndpointAssociationOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateFirewallEndpointAssociation. */ + public UnaryCallSettings.Builder + updateFirewallEndpointAssociationSettings() { + return updateFirewallEndpointAssociationSettings; + } + + /** Returns the builder for the settings used for calls to updateFirewallEndpointAssociation. */ + public OperationCallSettings.Builder< + UpdateFirewallEndpointAssociationRequest, + FirewallEndpointAssociation, + OperationMetadata> + updateFirewallEndpointAssociationOperationSettings() { + return updateFirewallEndpointAssociationOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public FirewallActivationStubSettings build() throws IOException { + return new FirewallActivationStubSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceStub.java index 46a9fe2f16af..4199bf6a6f59 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceStub.java @@ -323,6 +323,7 @@ protected GrpcAddressGroupServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAddressGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -333,6 +334,7 @@ protected GrpcAddressGroupServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAddressGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -343,6 +345,7 @@ protected GrpcAddressGroupServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAddressGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -364,6 +367,7 @@ protected GrpcAddressGroupServiceStub( builder.add("address_group", String.valueOf(request.getAddressGroup())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getAddressGroup()) .build(); GrpcCallSettings removeAddressGroupItemsTransportSettings = @@ -375,6 +379,7 @@ protected GrpcAddressGroupServiceStub( builder.add("address_group", String.valueOf(request.getAddressGroup())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getAddressGroup()) .build(); GrpcCallSettings cloneAddressGroupItemsTransportSettings = @@ -386,6 +391,7 @@ protected GrpcAddressGroupServiceStub( builder.add("address_group", String.valueOf(request.getAddressGroup())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getAddressGroup()) .build(); GrpcCallSettings deleteAddressGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -396,6 +402,7 @@ protected GrpcAddressGroupServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAddressGroupReferencesTransportSettings = @@ -408,6 +415,7 @@ protected GrpcAddressGroupServiceStub( builder.add("address_group", String.valueOf(request.getAddressGroup())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getAddressGroup()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -438,6 +446,7 @@ protected GrpcAddressGroupServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -448,6 +457,7 @@ protected GrpcAddressGroupServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -459,6 +469,7 @@ protected GrpcAddressGroupServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listAddressGroupsCallable = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcDnsThreatDetectorServiceCallableFactory.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcDnsThreatDetectorServiceCallableFactory.java new file mode 100644 index 000000000000..77d611b466e3 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcDnsThreatDetectorServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DnsThreatDetectorService service API. + * + *

                                                                                              This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDnsThreatDetectorServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcDnsThreatDetectorServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcDnsThreatDetectorServiceStub.java new file mode 100644 index 000000000000..3a3b103fd63b --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcDnsThreatDetectorServiceStub.java @@ -0,0 +1,519 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListDnsThreatDetectorsPagedResponse; +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse; +import com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DnsThreatDetectorService service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDnsThreatDetectorServiceStub extends DnsThreatDetectorServiceStub { + private static final MethodDescriptor< + ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse> + listDnsThreatDetectorsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.DnsThreatDetectorService/ListDnsThreatDetectors") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDnsThreatDetectorsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDnsThreatDetectorsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getDnsThreatDetectorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.DnsThreatDetectorService/GetDnsThreatDetector") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDnsThreatDetectorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DnsThreatDetector.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createDnsThreatDetectorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.DnsThreatDetectorService/CreateDnsThreatDetector") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDnsThreatDetectorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DnsThreatDetector.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateDnsThreatDetectorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.DnsThreatDetectorService/UpdateDnsThreatDetector") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDnsThreatDetectorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DnsThreatDetector.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteDnsThreatDetectorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.DnsThreatDetectorService/DeleteDnsThreatDetector") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDnsThreatDetectorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listDnsThreatDetectorsCallable; + private final UnaryCallable + listDnsThreatDetectorsPagedCallable; + private final UnaryCallable + getDnsThreatDetectorCallable; + private final UnaryCallable + createDnsThreatDetectorCallable; + private final UnaryCallable + updateDnsThreatDetectorCallable; + private final UnaryCallable + deleteDnsThreatDetectorCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDnsThreatDetectorServiceStub create( + DnsThreatDetectorServiceStubSettings settings) throws IOException { + return new GrpcDnsThreatDetectorServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDnsThreatDetectorServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDnsThreatDetectorServiceStub( + DnsThreatDetectorServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDnsThreatDetectorServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDnsThreatDetectorServiceStub( + DnsThreatDetectorServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDnsThreatDetectorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDnsThreatDetectorServiceStub( + DnsThreatDetectorServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcDnsThreatDetectorServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDnsThreatDetectorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDnsThreatDetectorServiceStub( + DnsThreatDetectorServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listDnsThreatDetectorsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listDnsThreatDetectorsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getDnsThreatDetectorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDnsThreatDetectorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createDnsThreatDetectorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDnsThreatDetectorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateDnsThreatDetectorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDnsThreatDetectorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "dns_threat_detector.name", + String.valueOf(request.getDnsThreatDetector().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteDnsThreatDetectorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDnsThreatDetectorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listDnsThreatDetectorsCallable = + callableFactory.createUnaryCallable( + listDnsThreatDetectorsTransportSettings, + settings.listDnsThreatDetectorsSettings(), + clientContext); + this.listDnsThreatDetectorsPagedCallable = + callableFactory.createPagedCallable( + listDnsThreatDetectorsTransportSettings, + settings.listDnsThreatDetectorsSettings(), + clientContext); + this.getDnsThreatDetectorCallable = + callableFactory.createUnaryCallable( + getDnsThreatDetectorTransportSettings, + settings.getDnsThreatDetectorSettings(), + clientContext); + this.createDnsThreatDetectorCallable = + callableFactory.createUnaryCallable( + createDnsThreatDetectorTransportSettings, + settings.createDnsThreatDetectorSettings(), + clientContext); + this.updateDnsThreatDetectorCallable = + callableFactory.createUnaryCallable( + updateDnsThreatDetectorTransportSettings, + settings.updateDnsThreatDetectorSettings(), + clientContext); + this.deleteDnsThreatDetectorCallable = + callableFactory.createUnaryCallable( + deleteDnsThreatDetectorTransportSettings, + settings.deleteDnsThreatDetectorSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listDnsThreatDetectorsCallable() { + return listDnsThreatDetectorsCallable; + } + + @Override + public UnaryCallable + listDnsThreatDetectorsPagedCallable() { + return listDnsThreatDetectorsPagedCallable; + } + + @Override + public UnaryCallable + getDnsThreatDetectorCallable() { + return getDnsThreatDetectorCallable; + } + + @Override + public UnaryCallable + createDnsThreatDetectorCallable() { + return createDnsThreatDetectorCallable; + } + + @Override + public UnaryCallable + updateDnsThreatDetectorCallable() { + return updateDnsThreatDetectorCallable; + } + + @Override + public UnaryCallable deleteDnsThreatDetectorCallable() { + return deleteDnsThreatDetectorCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcFirewallActivationCallableFactory.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcFirewallActivationCallableFactory.java new file mode 100644 index 000000000000..286a7e00ca4e --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcFirewallActivationCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the FirewallActivation service API. + * + *

                                                                                              This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcFirewallActivationCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcFirewallActivationStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcFirewallActivationStub.java new file mode 100644 index 000000000000..2bc3232d12c2 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcFirewallActivationStub.java @@ -0,0 +1,834 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the FirewallActivation service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcFirewallActivationStub extends FirewallActivationStub { + private static final MethodDescriptor + listFirewallEndpointsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/ListFirewallEndpoints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFirewallEndpointsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFirewallEndpointsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getFirewallEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/GetFirewallEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(GetFirewallEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(FirewallEndpoint.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createFirewallEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/CreateFirewallEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFirewallEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteFirewallEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/DeleteFirewallEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFirewallEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateFirewallEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/UpdateFirewallEndpoint") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateFirewallEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse> + listFirewallEndpointAssociationsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/ListFirewallEndpointAssociations") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListFirewallEndpointAssociationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListFirewallEndpointAssociationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetFirewallEndpointAssociationRequest, FirewallEndpointAssociation> + getFirewallEndpointAssociationMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/GetFirewallEndpointAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetFirewallEndpointAssociationRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FirewallEndpointAssociation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createFirewallEndpointAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/CreateFirewallEndpointAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateFirewallEndpointAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteFirewallEndpointAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/DeleteFirewallEndpointAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteFirewallEndpointAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateFirewallEndpointAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.FirewallActivation/UpdateFirewallEndpointAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateFirewallEndpointAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listFirewallEndpointsCallable; + private final UnaryCallable + listFirewallEndpointsPagedCallable; + private final UnaryCallable + getFirewallEndpointCallable; + private final UnaryCallable + createFirewallEndpointCallable; + private final OperationCallable< + CreateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + createFirewallEndpointOperationCallable; + private final UnaryCallable + deleteFirewallEndpointCallable; + private final OperationCallable + deleteFirewallEndpointOperationCallable; + private final UnaryCallable + updateFirewallEndpointCallable; + private final OperationCallable< + UpdateFirewallEndpointRequest, FirewallEndpoint, OperationMetadata> + updateFirewallEndpointOperationCallable; + private final UnaryCallable< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse> + listFirewallEndpointAssociationsCallable; + private final UnaryCallable< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsPagedCallable; + private final UnaryCallable + getFirewallEndpointAssociationCallable; + private final UnaryCallable + createFirewallEndpointAssociationCallable; + private final OperationCallable< + CreateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + createFirewallEndpointAssociationOperationCallable; + private final UnaryCallable + deleteFirewallEndpointAssociationCallable; + private final OperationCallable< + DeleteFirewallEndpointAssociationRequest, Empty, OperationMetadata> + deleteFirewallEndpointAssociationOperationCallable; + private final UnaryCallable + updateFirewallEndpointAssociationCallable; + private final OperationCallable< + UpdateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + updateFirewallEndpointAssociationOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcFirewallActivationStub create(FirewallActivationStubSettings settings) + throws IOException { + return new GrpcFirewallActivationStub(settings, ClientContext.create(settings)); + } + + public static final GrpcFirewallActivationStub create(ClientContext clientContext) + throws IOException { + return new GrpcFirewallActivationStub( + FirewallActivationStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcFirewallActivationStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcFirewallActivationStub( + FirewallActivationStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcFirewallActivationStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcFirewallActivationStub( + FirewallActivationStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcFirewallActivationCallableFactory()); + } + + /** + * Constructs an instance of GrpcFirewallActivationStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcFirewallActivationStub( + FirewallActivationStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listFirewallEndpointsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listFirewallEndpointsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getFirewallEndpointTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFirewallEndpointMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createFirewallEndpointTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFirewallEndpointMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + deleteFirewallEndpointTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFirewallEndpointMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateFirewallEndpointTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFirewallEndpointMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "firewall_endpoint.name", + String.valueOf(request.getFirewallEndpoint().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse> + listFirewallEndpointAssociationsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listFirewallEndpointAssociationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getFirewallEndpointAssociationTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getFirewallEndpointAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createFirewallEndpointAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFirewallEndpointAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + deleteFirewallEndpointAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFirewallEndpointAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateFirewallEndpointAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFirewallEndpointAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "firewall_endpoint_association.name", + String.valueOf(request.getFirewallEndpointAssociation().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listFirewallEndpointsCallable = + callableFactory.createUnaryCallable( + listFirewallEndpointsTransportSettings, + settings.listFirewallEndpointsSettings(), + clientContext); + this.listFirewallEndpointsPagedCallable = + callableFactory.createPagedCallable( + listFirewallEndpointsTransportSettings, + settings.listFirewallEndpointsSettings(), + clientContext); + this.getFirewallEndpointCallable = + callableFactory.createUnaryCallable( + getFirewallEndpointTransportSettings, + settings.getFirewallEndpointSettings(), + clientContext); + this.createFirewallEndpointCallable = + callableFactory.createUnaryCallable( + createFirewallEndpointTransportSettings, + settings.createFirewallEndpointSettings(), + clientContext); + this.createFirewallEndpointOperationCallable = + callableFactory.createOperationCallable( + createFirewallEndpointTransportSettings, + settings.createFirewallEndpointOperationSettings(), + clientContext, + operationsStub); + this.deleteFirewallEndpointCallable = + callableFactory.createUnaryCallable( + deleteFirewallEndpointTransportSettings, + settings.deleteFirewallEndpointSettings(), + clientContext); + this.deleteFirewallEndpointOperationCallable = + callableFactory.createOperationCallable( + deleteFirewallEndpointTransportSettings, + settings.deleteFirewallEndpointOperationSettings(), + clientContext, + operationsStub); + this.updateFirewallEndpointCallable = + callableFactory.createUnaryCallable( + updateFirewallEndpointTransportSettings, + settings.updateFirewallEndpointSettings(), + clientContext); + this.updateFirewallEndpointOperationCallable = + callableFactory.createOperationCallable( + updateFirewallEndpointTransportSettings, + settings.updateFirewallEndpointOperationSettings(), + clientContext, + operationsStub); + this.listFirewallEndpointAssociationsCallable = + callableFactory.createUnaryCallable( + listFirewallEndpointAssociationsTransportSettings, + settings.listFirewallEndpointAssociationsSettings(), + clientContext); + this.listFirewallEndpointAssociationsPagedCallable = + callableFactory.createPagedCallable( + listFirewallEndpointAssociationsTransportSettings, + settings.listFirewallEndpointAssociationsSettings(), + clientContext); + this.getFirewallEndpointAssociationCallable = + callableFactory.createUnaryCallable( + getFirewallEndpointAssociationTransportSettings, + settings.getFirewallEndpointAssociationSettings(), + clientContext); + this.createFirewallEndpointAssociationCallable = + callableFactory.createUnaryCallable( + createFirewallEndpointAssociationTransportSettings, + settings.createFirewallEndpointAssociationSettings(), + clientContext); + this.createFirewallEndpointAssociationOperationCallable = + callableFactory.createOperationCallable( + createFirewallEndpointAssociationTransportSettings, + settings.createFirewallEndpointAssociationOperationSettings(), + clientContext, + operationsStub); + this.deleteFirewallEndpointAssociationCallable = + callableFactory.createUnaryCallable( + deleteFirewallEndpointAssociationTransportSettings, + settings.deleteFirewallEndpointAssociationSettings(), + clientContext); + this.deleteFirewallEndpointAssociationOperationCallable = + callableFactory.createOperationCallable( + deleteFirewallEndpointAssociationTransportSettings, + settings.deleteFirewallEndpointAssociationOperationSettings(), + clientContext, + operationsStub); + this.updateFirewallEndpointAssociationCallable = + callableFactory.createUnaryCallable( + updateFirewallEndpointAssociationTransportSettings, + settings.updateFirewallEndpointAssociationSettings(), + clientContext); + this.updateFirewallEndpointAssociationOperationCallable = + callableFactory.createOperationCallable( + updateFirewallEndpointAssociationTransportSettings, + settings.updateFirewallEndpointAssociationOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listFirewallEndpointsCallable() { + return listFirewallEndpointsCallable; + } + + @Override + public UnaryCallable + listFirewallEndpointsPagedCallable() { + return listFirewallEndpointsPagedCallable; + } + + @Override + public UnaryCallable getFirewallEndpointCallable() { + return getFirewallEndpointCallable; + } + + @Override + public UnaryCallable createFirewallEndpointCallable() { + return createFirewallEndpointCallable; + } + + @Override + public OperationCallable + createFirewallEndpointOperationCallable() { + return createFirewallEndpointOperationCallable; + } + + @Override + public UnaryCallable deleteFirewallEndpointCallable() { + return deleteFirewallEndpointCallable; + } + + @Override + public OperationCallable + deleteFirewallEndpointOperationCallable() { + return deleteFirewallEndpointOperationCallable; + } + + @Override + public UnaryCallable updateFirewallEndpointCallable() { + return updateFirewallEndpointCallable; + } + + @Override + public OperationCallable + updateFirewallEndpointOperationCallable() { + return updateFirewallEndpointOperationCallable; + } + + @Override + public UnaryCallable< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse> + listFirewallEndpointAssociationsCallable() { + return listFirewallEndpointAssociationsCallable; + } + + @Override + public UnaryCallable< + ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsPagedResponse> + listFirewallEndpointAssociationsPagedCallable() { + return listFirewallEndpointAssociationsPagedCallable; + } + + @Override + public UnaryCallable + getFirewallEndpointAssociationCallable() { + return getFirewallEndpointAssociationCallable; + } + + @Override + public UnaryCallable + createFirewallEndpointAssociationCallable() { + return createFirewallEndpointAssociationCallable; + } + + @Override + public OperationCallable< + CreateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + createFirewallEndpointAssociationOperationCallable() { + return createFirewallEndpointAssociationOperationCallable; + } + + @Override + public UnaryCallable + deleteFirewallEndpointAssociationCallable() { + return deleteFirewallEndpointAssociationCallable; + } + + @Override + public OperationCallable + deleteFirewallEndpointAssociationOperationCallable() { + return deleteFirewallEndpointAssociationOperationCallable; + } + + @Override + public UnaryCallable + updateFirewallEndpointAssociationCallable() { + return updateFirewallEndpointAssociationCallable; + } + + @Override + public OperationCallable< + UpdateFirewallEndpointAssociationRequest, FirewallEndpointAssociation, OperationMetadata> + updateFirewallEndpointAssociationOperationCallable() { + return updateFirewallEndpointAssociationOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcInterceptCallableFactory.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcInterceptCallableFactory.java new file mode 100644 index 000000000000..5ed0c1980ff9 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcInterceptCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Intercept service API. + * + *

                                                                                              This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcInterceptCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcInterceptStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcInterceptStub.java new file mode 100644 index 000000000000..5b181854e034 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcInterceptStub.java @@ -0,0 +1,1386 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Intercept service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcInterceptStub extends InterceptStub { + private static final MethodDescriptor< + ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsResponse> + listInterceptEndpointGroupsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/ListInterceptEndpointGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListInterceptEndpointGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListInterceptEndpointGroupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getInterceptEndpointGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/GetInterceptEndpointGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetInterceptEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(InterceptEndpointGroup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createInterceptEndpointGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/CreateInterceptEndpointGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateInterceptEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateInterceptEndpointGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/UpdateInterceptEndpointGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateInterceptEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteInterceptEndpointGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/DeleteInterceptEndpointGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteInterceptEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse> + listInterceptEndpointGroupAssociationsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/ListInterceptEndpointGroupAssociations") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListInterceptEndpointGroupAssociationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListInterceptEndpointGroupAssociationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/GetInterceptEndpointGroupAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetInterceptEndpointGroupAssociationRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(InterceptEndpointGroupAssociation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createInterceptEndpointGroupAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/CreateInterceptEndpointGroupAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateInterceptEndpointGroupAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateInterceptEndpointGroupAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/UpdateInterceptEndpointGroupAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateInterceptEndpointGroupAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteInterceptEndpointGroupAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/DeleteInterceptEndpointGroupAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteInterceptEndpointGroupAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsResponse> + listInterceptDeploymentGroupsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/ListInterceptDeploymentGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListInterceptDeploymentGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListInterceptDeploymentGroupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetInterceptDeploymentGroupRequest, InterceptDeploymentGroup> + getInterceptDeploymentGroupMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/GetInterceptDeploymentGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetInterceptDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(InterceptDeploymentGroup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createInterceptDeploymentGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/CreateInterceptDeploymentGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateInterceptDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateInterceptDeploymentGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/UpdateInterceptDeploymentGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateInterceptDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteInterceptDeploymentGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/DeleteInterceptDeploymentGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteInterceptDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListInterceptDeploymentsRequest, ListInterceptDeploymentsResponse> + listInterceptDeploymentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/ListInterceptDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListInterceptDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListInterceptDeploymentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getInterceptDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networksecurity.v1.Intercept/GetInterceptDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetInterceptDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(InterceptDeployment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createInterceptDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/CreateInterceptDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateInterceptDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateInterceptDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/UpdateInterceptDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateInterceptDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteInterceptDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Intercept/DeleteInterceptDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteInterceptDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable< + ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsResponse> + listInterceptEndpointGroupsCallable; + private final UnaryCallable< + ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsPagedResponse> + listInterceptEndpointGroupsPagedCallable; + private final UnaryCallable + getInterceptEndpointGroupCallable; + private final UnaryCallable + createInterceptEndpointGroupCallable; + private final OperationCallable< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationCallable; + private final UnaryCallable + updateInterceptEndpointGroupCallable; + private final OperationCallable< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationCallable; + private final UnaryCallable + deleteInterceptEndpointGroupCallable; + private final OperationCallable + deleteInterceptEndpointGroupOperationCallable; + private final UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse> + listInterceptEndpointGroupAssociationsCallable; + private final UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsPagedCallable; + private final UnaryCallable< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationCallable; + private final UnaryCallable + createInterceptEndpointGroupAssociationCallable; + private final OperationCallable< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationCallable; + private final UnaryCallable + updateInterceptEndpointGroupAssociationCallable; + private final OperationCallable< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationCallable; + private final UnaryCallable + deleteInterceptEndpointGroupAssociationCallable; + private final OperationCallable< + DeleteInterceptEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupAssociationOperationCallable; + private final UnaryCallable< + ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsResponse> + listInterceptDeploymentGroupsCallable; + private final UnaryCallable< + ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsPagedCallable; + private final UnaryCallable + getInterceptDeploymentGroupCallable; + private final UnaryCallable + createInterceptDeploymentGroupCallable; + private final OperationCallable< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationCallable; + private final UnaryCallable + updateInterceptDeploymentGroupCallable; + private final OperationCallable< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationCallable; + private final UnaryCallable + deleteInterceptDeploymentGroupCallable; + private final OperationCallable + deleteInterceptDeploymentGroupOperationCallable; + private final UnaryCallable + listInterceptDeploymentsCallable; + private final UnaryCallable< + ListInterceptDeploymentsRequest, ListInterceptDeploymentsPagedResponse> + listInterceptDeploymentsPagedCallable; + private final UnaryCallable + getInterceptDeploymentCallable; + private final UnaryCallable + createInterceptDeploymentCallable; + private final OperationCallable< + CreateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + createInterceptDeploymentOperationCallable; + private final UnaryCallable + updateInterceptDeploymentCallable; + private final OperationCallable< + UpdateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + updateInterceptDeploymentOperationCallable; + private final UnaryCallable + deleteInterceptDeploymentCallable; + private final OperationCallable + deleteInterceptDeploymentOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcInterceptStub create(InterceptStubSettings settings) throws IOException { + return new GrpcInterceptStub(settings, ClientContext.create(settings)); + } + + public static final GrpcInterceptStub create(ClientContext clientContext) throws IOException { + return new GrpcInterceptStub(InterceptStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcInterceptStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcInterceptStub( + InterceptStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcInterceptStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcInterceptStub(InterceptStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcInterceptCallableFactory()); + } + + /** + * Constructs an instance of GrpcInterceptStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcInterceptStub( + InterceptStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listInterceptEndpointGroupsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listInterceptEndpointGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getInterceptEndpointGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getInterceptEndpointGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createInterceptEndpointGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createInterceptEndpointGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateInterceptEndpointGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateInterceptEndpointGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "intercept_endpoint_group.name", + String.valueOf(request.getInterceptEndpointGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteInterceptEndpointGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteInterceptEndpointGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse> + listInterceptEndpointGroupAssociationsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listInterceptEndpointGroupAssociationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getInterceptEndpointGroupAssociationTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getInterceptEndpointGroupAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createInterceptEndpointGroupAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createInterceptEndpointGroupAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateInterceptEndpointGroupAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateInterceptEndpointGroupAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "intercept_endpoint_group_association.name", + String.valueOf(request.getInterceptEndpointGroupAssociation().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteInterceptEndpointGroupAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteInterceptEndpointGroupAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listInterceptDeploymentGroupsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listInterceptDeploymentGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getInterceptDeploymentGroupTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getInterceptDeploymentGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createInterceptDeploymentGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createInterceptDeploymentGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateInterceptDeploymentGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateInterceptDeploymentGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "intercept_deployment_group.name", + String.valueOf(request.getInterceptDeploymentGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteInterceptDeploymentGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteInterceptDeploymentGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listInterceptDeploymentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listInterceptDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getInterceptDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getInterceptDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createInterceptDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createInterceptDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateInterceptDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateInterceptDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "intercept_deployment.name", + String.valueOf(request.getInterceptDeployment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteInterceptDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteInterceptDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listInterceptEndpointGroupsCallable = + callableFactory.createUnaryCallable( + listInterceptEndpointGroupsTransportSettings, + settings.listInterceptEndpointGroupsSettings(), + clientContext); + this.listInterceptEndpointGroupsPagedCallable = + callableFactory.createPagedCallable( + listInterceptEndpointGroupsTransportSettings, + settings.listInterceptEndpointGroupsSettings(), + clientContext); + this.getInterceptEndpointGroupCallable = + callableFactory.createUnaryCallable( + getInterceptEndpointGroupTransportSettings, + settings.getInterceptEndpointGroupSettings(), + clientContext); + this.createInterceptEndpointGroupCallable = + callableFactory.createUnaryCallable( + createInterceptEndpointGroupTransportSettings, + settings.createInterceptEndpointGroupSettings(), + clientContext); + this.createInterceptEndpointGroupOperationCallable = + callableFactory.createOperationCallable( + createInterceptEndpointGroupTransportSettings, + settings.createInterceptEndpointGroupOperationSettings(), + clientContext, + operationsStub); + this.updateInterceptEndpointGroupCallable = + callableFactory.createUnaryCallable( + updateInterceptEndpointGroupTransportSettings, + settings.updateInterceptEndpointGroupSettings(), + clientContext); + this.updateInterceptEndpointGroupOperationCallable = + callableFactory.createOperationCallable( + updateInterceptEndpointGroupTransportSettings, + settings.updateInterceptEndpointGroupOperationSettings(), + clientContext, + operationsStub); + this.deleteInterceptEndpointGroupCallable = + callableFactory.createUnaryCallable( + deleteInterceptEndpointGroupTransportSettings, + settings.deleteInterceptEndpointGroupSettings(), + clientContext); + this.deleteInterceptEndpointGroupOperationCallable = + callableFactory.createOperationCallable( + deleteInterceptEndpointGroupTransportSettings, + settings.deleteInterceptEndpointGroupOperationSettings(), + clientContext, + operationsStub); + this.listInterceptEndpointGroupAssociationsCallable = + callableFactory.createUnaryCallable( + listInterceptEndpointGroupAssociationsTransportSettings, + settings.listInterceptEndpointGroupAssociationsSettings(), + clientContext); + this.listInterceptEndpointGroupAssociationsPagedCallable = + callableFactory.createPagedCallable( + listInterceptEndpointGroupAssociationsTransportSettings, + settings.listInterceptEndpointGroupAssociationsSettings(), + clientContext); + this.getInterceptEndpointGroupAssociationCallable = + callableFactory.createUnaryCallable( + getInterceptEndpointGroupAssociationTransportSettings, + settings.getInterceptEndpointGroupAssociationSettings(), + clientContext); + this.createInterceptEndpointGroupAssociationCallable = + callableFactory.createUnaryCallable( + createInterceptEndpointGroupAssociationTransportSettings, + settings.createInterceptEndpointGroupAssociationSettings(), + clientContext); + this.createInterceptEndpointGroupAssociationOperationCallable = + callableFactory.createOperationCallable( + createInterceptEndpointGroupAssociationTransportSettings, + settings.createInterceptEndpointGroupAssociationOperationSettings(), + clientContext, + operationsStub); + this.updateInterceptEndpointGroupAssociationCallable = + callableFactory.createUnaryCallable( + updateInterceptEndpointGroupAssociationTransportSettings, + settings.updateInterceptEndpointGroupAssociationSettings(), + clientContext); + this.updateInterceptEndpointGroupAssociationOperationCallable = + callableFactory.createOperationCallable( + updateInterceptEndpointGroupAssociationTransportSettings, + settings.updateInterceptEndpointGroupAssociationOperationSettings(), + clientContext, + operationsStub); + this.deleteInterceptEndpointGroupAssociationCallable = + callableFactory.createUnaryCallable( + deleteInterceptEndpointGroupAssociationTransportSettings, + settings.deleteInterceptEndpointGroupAssociationSettings(), + clientContext); + this.deleteInterceptEndpointGroupAssociationOperationCallable = + callableFactory.createOperationCallable( + deleteInterceptEndpointGroupAssociationTransportSettings, + settings.deleteInterceptEndpointGroupAssociationOperationSettings(), + clientContext, + operationsStub); + this.listInterceptDeploymentGroupsCallable = + callableFactory.createUnaryCallable( + listInterceptDeploymentGroupsTransportSettings, + settings.listInterceptDeploymentGroupsSettings(), + clientContext); + this.listInterceptDeploymentGroupsPagedCallable = + callableFactory.createPagedCallable( + listInterceptDeploymentGroupsTransportSettings, + settings.listInterceptDeploymentGroupsSettings(), + clientContext); + this.getInterceptDeploymentGroupCallable = + callableFactory.createUnaryCallable( + getInterceptDeploymentGroupTransportSettings, + settings.getInterceptDeploymentGroupSettings(), + clientContext); + this.createInterceptDeploymentGroupCallable = + callableFactory.createUnaryCallable( + createInterceptDeploymentGroupTransportSettings, + settings.createInterceptDeploymentGroupSettings(), + clientContext); + this.createInterceptDeploymentGroupOperationCallable = + callableFactory.createOperationCallable( + createInterceptDeploymentGroupTransportSettings, + settings.createInterceptDeploymentGroupOperationSettings(), + clientContext, + operationsStub); + this.updateInterceptDeploymentGroupCallable = + callableFactory.createUnaryCallable( + updateInterceptDeploymentGroupTransportSettings, + settings.updateInterceptDeploymentGroupSettings(), + clientContext); + this.updateInterceptDeploymentGroupOperationCallable = + callableFactory.createOperationCallable( + updateInterceptDeploymentGroupTransportSettings, + settings.updateInterceptDeploymentGroupOperationSettings(), + clientContext, + operationsStub); + this.deleteInterceptDeploymentGroupCallable = + callableFactory.createUnaryCallable( + deleteInterceptDeploymentGroupTransportSettings, + settings.deleteInterceptDeploymentGroupSettings(), + clientContext); + this.deleteInterceptDeploymentGroupOperationCallable = + callableFactory.createOperationCallable( + deleteInterceptDeploymentGroupTransportSettings, + settings.deleteInterceptDeploymentGroupOperationSettings(), + clientContext, + operationsStub); + this.listInterceptDeploymentsCallable = + callableFactory.createUnaryCallable( + listInterceptDeploymentsTransportSettings, + settings.listInterceptDeploymentsSettings(), + clientContext); + this.listInterceptDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listInterceptDeploymentsTransportSettings, + settings.listInterceptDeploymentsSettings(), + clientContext); + this.getInterceptDeploymentCallable = + callableFactory.createUnaryCallable( + getInterceptDeploymentTransportSettings, + settings.getInterceptDeploymentSettings(), + clientContext); + this.createInterceptDeploymentCallable = + callableFactory.createUnaryCallable( + createInterceptDeploymentTransportSettings, + settings.createInterceptDeploymentSettings(), + clientContext); + this.createInterceptDeploymentOperationCallable = + callableFactory.createOperationCallable( + createInterceptDeploymentTransportSettings, + settings.createInterceptDeploymentOperationSettings(), + clientContext, + operationsStub); + this.updateInterceptDeploymentCallable = + callableFactory.createUnaryCallable( + updateInterceptDeploymentTransportSettings, + settings.updateInterceptDeploymentSettings(), + clientContext); + this.updateInterceptDeploymentOperationCallable = + callableFactory.createOperationCallable( + updateInterceptDeploymentTransportSettings, + settings.updateInterceptDeploymentOperationSettings(), + clientContext, + operationsStub); + this.deleteInterceptDeploymentCallable = + callableFactory.createUnaryCallable( + deleteInterceptDeploymentTransportSettings, + settings.deleteInterceptDeploymentSettings(), + clientContext); + this.deleteInterceptDeploymentOperationCallable = + callableFactory.createOperationCallable( + deleteInterceptDeploymentTransportSettings, + settings.deleteInterceptDeploymentOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listInterceptEndpointGroupsCallable() { + return listInterceptEndpointGroupsCallable; + } + + @Override + public UnaryCallable + listInterceptEndpointGroupsPagedCallable() { + return listInterceptEndpointGroupsPagedCallable; + } + + @Override + public UnaryCallable + getInterceptEndpointGroupCallable() { + return getInterceptEndpointGroupCallable; + } + + @Override + public UnaryCallable + createInterceptEndpointGroupCallable() { + return createInterceptEndpointGroupCallable; + } + + @Override + public OperationCallable< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationCallable() { + return createInterceptEndpointGroupOperationCallable; + } + + @Override + public UnaryCallable + updateInterceptEndpointGroupCallable() { + return updateInterceptEndpointGroupCallable; + } + + @Override + public OperationCallable< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationCallable() { + return updateInterceptEndpointGroupOperationCallable; + } + + @Override + public UnaryCallable + deleteInterceptEndpointGroupCallable() { + return deleteInterceptEndpointGroupCallable; + } + + @Override + public OperationCallable + deleteInterceptEndpointGroupOperationCallable() { + return deleteInterceptEndpointGroupOperationCallable; + } + + @Override + public UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse> + listInterceptEndpointGroupAssociationsCallable() { + return listInterceptEndpointGroupAssociationsCallable; + } + + @Override + public UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsPagedCallable() { + return listInterceptEndpointGroupAssociationsPagedCallable; + } + + @Override + public UnaryCallable< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationCallable() { + return getInterceptEndpointGroupAssociationCallable; + } + + @Override + public UnaryCallable + createInterceptEndpointGroupAssociationCallable() { + return createInterceptEndpointGroupAssociationCallable; + } + + @Override + public OperationCallable< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationCallable() { + return createInterceptEndpointGroupAssociationOperationCallable; + } + + @Override + public UnaryCallable + updateInterceptEndpointGroupAssociationCallable() { + return updateInterceptEndpointGroupAssociationCallable; + } + + @Override + public OperationCallable< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationCallable() { + return updateInterceptEndpointGroupAssociationOperationCallable; + } + + @Override + public UnaryCallable + deleteInterceptEndpointGroupAssociationCallable() { + return deleteInterceptEndpointGroupAssociationCallable; + } + + @Override + public OperationCallable + deleteInterceptEndpointGroupAssociationOperationCallable() { + return deleteInterceptEndpointGroupAssociationOperationCallable; + } + + @Override + public UnaryCallable + listInterceptDeploymentGroupsCallable() { + return listInterceptDeploymentGroupsCallable; + } + + @Override + public UnaryCallable< + ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsPagedCallable() { + return listInterceptDeploymentGroupsPagedCallable; + } + + @Override + public UnaryCallable + getInterceptDeploymentGroupCallable() { + return getInterceptDeploymentGroupCallable; + } + + @Override + public UnaryCallable + createInterceptDeploymentGroupCallable() { + return createInterceptDeploymentGroupCallable; + } + + @Override + public OperationCallable< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationCallable() { + return createInterceptDeploymentGroupOperationCallable; + } + + @Override + public UnaryCallable + updateInterceptDeploymentGroupCallable() { + return updateInterceptDeploymentGroupCallable; + } + + @Override + public OperationCallable< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationCallable() { + return updateInterceptDeploymentGroupOperationCallable; + } + + @Override + public UnaryCallable + deleteInterceptDeploymentGroupCallable() { + return deleteInterceptDeploymentGroupCallable; + } + + @Override + public OperationCallable + deleteInterceptDeploymentGroupOperationCallable() { + return deleteInterceptDeploymentGroupOperationCallable; + } + + @Override + public UnaryCallable + listInterceptDeploymentsCallable() { + return listInterceptDeploymentsCallable; + } + + @Override + public UnaryCallable + listInterceptDeploymentsPagedCallable() { + return listInterceptDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + getInterceptDeploymentCallable() { + return getInterceptDeploymentCallable; + } + + @Override + public UnaryCallable + createInterceptDeploymentCallable() { + return createInterceptDeploymentCallable; + } + + @Override + public OperationCallable + createInterceptDeploymentOperationCallable() { + return createInterceptDeploymentOperationCallable; + } + + @Override + public UnaryCallable + updateInterceptDeploymentCallable() { + return updateInterceptDeploymentCallable; + } + + @Override + public OperationCallable + updateInterceptDeploymentOperationCallable() { + return updateInterceptDeploymentOperationCallable; + } + + @Override + public UnaryCallable + deleteInterceptDeploymentCallable() { + return deleteInterceptDeploymentCallable; + } + + @Override + public OperationCallable + deleteInterceptDeploymentOperationCallable() { + return deleteInterceptDeploymentOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcMirroringCallableFactory.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcMirroringCallableFactory.java new file mode 100644 index 000000000000..07b60489b5bf --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcMirroringCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Mirroring service API. + * + *

                                                                                              This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcMirroringCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcMirroringStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcMirroringStub.java new file mode 100644 index 000000000000..7c3433aab8cf --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcMirroringStub.java @@ -0,0 +1,1386 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.MirroringClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Mirroring service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcMirroringStub extends MirroringStub { + private static final MethodDescriptor< + ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsResponse> + listMirroringEndpointGroupsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/ListMirroringEndpointGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMirroringEndpointGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMirroringEndpointGroupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMirroringEndpointGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/GetMirroringEndpointGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMirroringEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MirroringEndpointGroup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMirroringEndpointGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/CreateMirroringEndpointGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMirroringEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMirroringEndpointGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/UpdateMirroringEndpointGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateMirroringEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMirroringEndpointGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/DeleteMirroringEndpointGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMirroringEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse> + listMirroringEndpointGroupAssociationsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/ListMirroringEndpointGroupAssociations") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListMirroringEndpointGroupAssociationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMirroringEndpointGroupAssociationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/GetMirroringEndpointGroupAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetMirroringEndpointGroupAssociationRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MirroringEndpointGroupAssociation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMirroringEndpointGroupAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/CreateMirroringEndpointGroupAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateMirroringEndpointGroupAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMirroringEndpointGroupAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/UpdateMirroringEndpointGroupAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateMirroringEndpointGroupAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMirroringEndpointGroupAssociationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/DeleteMirroringEndpointGroupAssociation") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteMirroringEndpointGroupAssociationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsResponse> + listMirroringDeploymentGroupsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/ListMirroringDeploymentGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMirroringDeploymentGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMirroringDeploymentGroupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetMirroringDeploymentGroupRequest, MirroringDeploymentGroup> + getMirroringDeploymentGroupMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/GetMirroringDeploymentGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMirroringDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MirroringDeploymentGroup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMirroringDeploymentGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/CreateMirroringDeploymentGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMirroringDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMirroringDeploymentGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/UpdateMirroringDeploymentGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateMirroringDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMirroringDeploymentGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/DeleteMirroringDeploymentGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMirroringDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListMirroringDeploymentsRequest, ListMirroringDeploymentsResponse> + listMirroringDeploymentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/ListMirroringDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMirroringDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMirroringDeploymentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMirroringDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networksecurity.v1.Mirroring/GetMirroringDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMirroringDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MirroringDeployment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMirroringDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/CreateMirroringDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMirroringDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMirroringDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/UpdateMirroringDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateMirroringDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMirroringDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.Mirroring/DeleteMirroringDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMirroringDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable< + ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsResponse> + listMirroringEndpointGroupsCallable; + private final UnaryCallable< + ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsPagedResponse> + listMirroringEndpointGroupsPagedCallable; + private final UnaryCallable + getMirroringEndpointGroupCallable; + private final UnaryCallable + createMirroringEndpointGroupCallable; + private final OperationCallable< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationCallable; + private final UnaryCallable + updateMirroringEndpointGroupCallable; + private final OperationCallable< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationCallable; + private final UnaryCallable + deleteMirroringEndpointGroupCallable; + private final OperationCallable + deleteMirroringEndpointGroupOperationCallable; + private final UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse> + listMirroringEndpointGroupAssociationsCallable; + private final UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsPagedCallable; + private final UnaryCallable< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationCallable; + private final UnaryCallable + createMirroringEndpointGroupAssociationCallable; + private final OperationCallable< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationCallable; + private final UnaryCallable + updateMirroringEndpointGroupAssociationCallable; + private final OperationCallable< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationCallable; + private final UnaryCallable + deleteMirroringEndpointGroupAssociationCallable; + private final OperationCallable< + DeleteMirroringEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupAssociationOperationCallable; + private final UnaryCallable< + ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsResponse> + listMirroringDeploymentGroupsCallable; + private final UnaryCallable< + ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsPagedCallable; + private final UnaryCallable + getMirroringDeploymentGroupCallable; + private final UnaryCallable + createMirroringDeploymentGroupCallable; + private final OperationCallable< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationCallable; + private final UnaryCallable + updateMirroringDeploymentGroupCallable; + private final OperationCallable< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationCallable; + private final UnaryCallable + deleteMirroringDeploymentGroupCallable; + private final OperationCallable + deleteMirroringDeploymentGroupOperationCallable; + private final UnaryCallable + listMirroringDeploymentsCallable; + private final UnaryCallable< + ListMirroringDeploymentsRequest, ListMirroringDeploymentsPagedResponse> + listMirroringDeploymentsPagedCallable; + private final UnaryCallable + getMirroringDeploymentCallable; + private final UnaryCallable + createMirroringDeploymentCallable; + private final OperationCallable< + CreateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + createMirroringDeploymentOperationCallable; + private final UnaryCallable + updateMirroringDeploymentCallable; + private final OperationCallable< + UpdateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + updateMirroringDeploymentOperationCallable; + private final UnaryCallable + deleteMirroringDeploymentCallable; + private final OperationCallable + deleteMirroringDeploymentOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcMirroringStub create(MirroringStubSettings settings) throws IOException { + return new GrpcMirroringStub(settings, ClientContext.create(settings)); + } + + public static final GrpcMirroringStub create(ClientContext clientContext) throws IOException { + return new GrpcMirroringStub(MirroringStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcMirroringStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcMirroringStub( + MirroringStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcMirroringStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcMirroringStub(MirroringStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcMirroringCallableFactory()); + } + + /** + * Constructs an instance of GrpcMirroringStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcMirroringStub( + MirroringStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listMirroringEndpointGroupsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMirroringEndpointGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getMirroringEndpointGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMirroringEndpointGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createMirroringEndpointGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMirroringEndpointGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateMirroringEndpointGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMirroringEndpointGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "mirroring_endpoint_group.name", + String.valueOf(request.getMirroringEndpointGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMirroringEndpointGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMirroringEndpointGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse> + listMirroringEndpointGroupAssociationsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMirroringEndpointGroupAssociationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getMirroringEndpointGroupAssociationTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getMirroringEndpointGroupAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createMirroringEndpointGroupAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMirroringEndpointGroupAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateMirroringEndpointGroupAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMirroringEndpointGroupAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "mirroring_endpoint_group_association.name", + String.valueOf(request.getMirroringEndpointGroupAssociation().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMirroringEndpointGroupAssociationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMirroringEndpointGroupAssociationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listMirroringDeploymentGroupsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMirroringDeploymentGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getMirroringDeploymentGroupTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getMirroringDeploymentGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createMirroringDeploymentGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMirroringDeploymentGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateMirroringDeploymentGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMirroringDeploymentGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "mirroring_deployment_group.name", + String.valueOf(request.getMirroringDeploymentGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMirroringDeploymentGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMirroringDeploymentGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listMirroringDeploymentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listMirroringDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getMirroringDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMirroringDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createMirroringDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMirroringDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateMirroringDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMirroringDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "mirroring_deployment.name", + String.valueOf(request.getMirroringDeployment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMirroringDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMirroringDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listMirroringEndpointGroupsCallable = + callableFactory.createUnaryCallable( + listMirroringEndpointGroupsTransportSettings, + settings.listMirroringEndpointGroupsSettings(), + clientContext); + this.listMirroringEndpointGroupsPagedCallable = + callableFactory.createPagedCallable( + listMirroringEndpointGroupsTransportSettings, + settings.listMirroringEndpointGroupsSettings(), + clientContext); + this.getMirroringEndpointGroupCallable = + callableFactory.createUnaryCallable( + getMirroringEndpointGroupTransportSettings, + settings.getMirroringEndpointGroupSettings(), + clientContext); + this.createMirroringEndpointGroupCallable = + callableFactory.createUnaryCallable( + createMirroringEndpointGroupTransportSettings, + settings.createMirroringEndpointGroupSettings(), + clientContext); + this.createMirroringEndpointGroupOperationCallable = + callableFactory.createOperationCallable( + createMirroringEndpointGroupTransportSettings, + settings.createMirroringEndpointGroupOperationSettings(), + clientContext, + operationsStub); + this.updateMirroringEndpointGroupCallable = + callableFactory.createUnaryCallable( + updateMirroringEndpointGroupTransportSettings, + settings.updateMirroringEndpointGroupSettings(), + clientContext); + this.updateMirroringEndpointGroupOperationCallable = + callableFactory.createOperationCallable( + updateMirroringEndpointGroupTransportSettings, + settings.updateMirroringEndpointGroupOperationSettings(), + clientContext, + operationsStub); + this.deleteMirroringEndpointGroupCallable = + callableFactory.createUnaryCallable( + deleteMirroringEndpointGroupTransportSettings, + settings.deleteMirroringEndpointGroupSettings(), + clientContext); + this.deleteMirroringEndpointGroupOperationCallable = + callableFactory.createOperationCallable( + deleteMirroringEndpointGroupTransportSettings, + settings.deleteMirroringEndpointGroupOperationSettings(), + clientContext, + operationsStub); + this.listMirroringEndpointGroupAssociationsCallable = + callableFactory.createUnaryCallable( + listMirroringEndpointGroupAssociationsTransportSettings, + settings.listMirroringEndpointGroupAssociationsSettings(), + clientContext); + this.listMirroringEndpointGroupAssociationsPagedCallable = + callableFactory.createPagedCallable( + listMirroringEndpointGroupAssociationsTransportSettings, + settings.listMirroringEndpointGroupAssociationsSettings(), + clientContext); + this.getMirroringEndpointGroupAssociationCallable = + callableFactory.createUnaryCallable( + getMirroringEndpointGroupAssociationTransportSettings, + settings.getMirroringEndpointGroupAssociationSettings(), + clientContext); + this.createMirroringEndpointGroupAssociationCallable = + callableFactory.createUnaryCallable( + createMirroringEndpointGroupAssociationTransportSettings, + settings.createMirroringEndpointGroupAssociationSettings(), + clientContext); + this.createMirroringEndpointGroupAssociationOperationCallable = + callableFactory.createOperationCallable( + createMirroringEndpointGroupAssociationTransportSettings, + settings.createMirroringEndpointGroupAssociationOperationSettings(), + clientContext, + operationsStub); + this.updateMirroringEndpointGroupAssociationCallable = + callableFactory.createUnaryCallable( + updateMirroringEndpointGroupAssociationTransportSettings, + settings.updateMirroringEndpointGroupAssociationSettings(), + clientContext); + this.updateMirroringEndpointGroupAssociationOperationCallable = + callableFactory.createOperationCallable( + updateMirroringEndpointGroupAssociationTransportSettings, + settings.updateMirroringEndpointGroupAssociationOperationSettings(), + clientContext, + operationsStub); + this.deleteMirroringEndpointGroupAssociationCallable = + callableFactory.createUnaryCallable( + deleteMirroringEndpointGroupAssociationTransportSettings, + settings.deleteMirroringEndpointGroupAssociationSettings(), + clientContext); + this.deleteMirroringEndpointGroupAssociationOperationCallable = + callableFactory.createOperationCallable( + deleteMirroringEndpointGroupAssociationTransportSettings, + settings.deleteMirroringEndpointGroupAssociationOperationSettings(), + clientContext, + operationsStub); + this.listMirroringDeploymentGroupsCallable = + callableFactory.createUnaryCallable( + listMirroringDeploymentGroupsTransportSettings, + settings.listMirroringDeploymentGroupsSettings(), + clientContext); + this.listMirroringDeploymentGroupsPagedCallable = + callableFactory.createPagedCallable( + listMirroringDeploymentGroupsTransportSettings, + settings.listMirroringDeploymentGroupsSettings(), + clientContext); + this.getMirroringDeploymentGroupCallable = + callableFactory.createUnaryCallable( + getMirroringDeploymentGroupTransportSettings, + settings.getMirroringDeploymentGroupSettings(), + clientContext); + this.createMirroringDeploymentGroupCallable = + callableFactory.createUnaryCallable( + createMirroringDeploymentGroupTransportSettings, + settings.createMirroringDeploymentGroupSettings(), + clientContext); + this.createMirroringDeploymentGroupOperationCallable = + callableFactory.createOperationCallable( + createMirroringDeploymentGroupTransportSettings, + settings.createMirroringDeploymentGroupOperationSettings(), + clientContext, + operationsStub); + this.updateMirroringDeploymentGroupCallable = + callableFactory.createUnaryCallable( + updateMirroringDeploymentGroupTransportSettings, + settings.updateMirroringDeploymentGroupSettings(), + clientContext); + this.updateMirroringDeploymentGroupOperationCallable = + callableFactory.createOperationCallable( + updateMirroringDeploymentGroupTransportSettings, + settings.updateMirroringDeploymentGroupOperationSettings(), + clientContext, + operationsStub); + this.deleteMirroringDeploymentGroupCallable = + callableFactory.createUnaryCallable( + deleteMirroringDeploymentGroupTransportSettings, + settings.deleteMirroringDeploymentGroupSettings(), + clientContext); + this.deleteMirroringDeploymentGroupOperationCallable = + callableFactory.createOperationCallable( + deleteMirroringDeploymentGroupTransportSettings, + settings.deleteMirroringDeploymentGroupOperationSettings(), + clientContext, + operationsStub); + this.listMirroringDeploymentsCallable = + callableFactory.createUnaryCallable( + listMirroringDeploymentsTransportSettings, + settings.listMirroringDeploymentsSettings(), + clientContext); + this.listMirroringDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listMirroringDeploymentsTransportSettings, + settings.listMirroringDeploymentsSettings(), + clientContext); + this.getMirroringDeploymentCallable = + callableFactory.createUnaryCallable( + getMirroringDeploymentTransportSettings, + settings.getMirroringDeploymentSettings(), + clientContext); + this.createMirroringDeploymentCallable = + callableFactory.createUnaryCallable( + createMirroringDeploymentTransportSettings, + settings.createMirroringDeploymentSettings(), + clientContext); + this.createMirroringDeploymentOperationCallable = + callableFactory.createOperationCallable( + createMirroringDeploymentTransportSettings, + settings.createMirroringDeploymentOperationSettings(), + clientContext, + operationsStub); + this.updateMirroringDeploymentCallable = + callableFactory.createUnaryCallable( + updateMirroringDeploymentTransportSettings, + settings.updateMirroringDeploymentSettings(), + clientContext); + this.updateMirroringDeploymentOperationCallable = + callableFactory.createOperationCallable( + updateMirroringDeploymentTransportSettings, + settings.updateMirroringDeploymentOperationSettings(), + clientContext, + operationsStub); + this.deleteMirroringDeploymentCallable = + callableFactory.createUnaryCallable( + deleteMirroringDeploymentTransportSettings, + settings.deleteMirroringDeploymentSettings(), + clientContext); + this.deleteMirroringDeploymentOperationCallable = + callableFactory.createOperationCallable( + deleteMirroringDeploymentTransportSettings, + settings.deleteMirroringDeploymentOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listMirroringEndpointGroupsCallable() { + return listMirroringEndpointGroupsCallable; + } + + @Override + public UnaryCallable + listMirroringEndpointGroupsPagedCallable() { + return listMirroringEndpointGroupsPagedCallable; + } + + @Override + public UnaryCallable + getMirroringEndpointGroupCallable() { + return getMirroringEndpointGroupCallable; + } + + @Override + public UnaryCallable + createMirroringEndpointGroupCallable() { + return createMirroringEndpointGroupCallable; + } + + @Override + public OperationCallable< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationCallable() { + return createMirroringEndpointGroupOperationCallable; + } + + @Override + public UnaryCallable + updateMirroringEndpointGroupCallable() { + return updateMirroringEndpointGroupCallable; + } + + @Override + public OperationCallable< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationCallable() { + return updateMirroringEndpointGroupOperationCallable; + } + + @Override + public UnaryCallable + deleteMirroringEndpointGroupCallable() { + return deleteMirroringEndpointGroupCallable; + } + + @Override + public OperationCallable + deleteMirroringEndpointGroupOperationCallable() { + return deleteMirroringEndpointGroupOperationCallable; + } + + @Override + public UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse> + listMirroringEndpointGroupAssociationsCallable() { + return listMirroringEndpointGroupAssociationsCallable; + } + + @Override + public UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsPagedCallable() { + return listMirroringEndpointGroupAssociationsPagedCallable; + } + + @Override + public UnaryCallable< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationCallable() { + return getMirroringEndpointGroupAssociationCallable; + } + + @Override + public UnaryCallable + createMirroringEndpointGroupAssociationCallable() { + return createMirroringEndpointGroupAssociationCallable; + } + + @Override + public OperationCallable< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationCallable() { + return createMirroringEndpointGroupAssociationOperationCallable; + } + + @Override + public UnaryCallable + updateMirroringEndpointGroupAssociationCallable() { + return updateMirroringEndpointGroupAssociationCallable; + } + + @Override + public OperationCallable< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationCallable() { + return updateMirroringEndpointGroupAssociationOperationCallable; + } + + @Override + public UnaryCallable + deleteMirroringEndpointGroupAssociationCallable() { + return deleteMirroringEndpointGroupAssociationCallable; + } + + @Override + public OperationCallable + deleteMirroringEndpointGroupAssociationOperationCallable() { + return deleteMirroringEndpointGroupAssociationOperationCallable; + } + + @Override + public UnaryCallable + listMirroringDeploymentGroupsCallable() { + return listMirroringDeploymentGroupsCallable; + } + + @Override + public UnaryCallable< + ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsPagedCallable() { + return listMirroringDeploymentGroupsPagedCallable; + } + + @Override + public UnaryCallable + getMirroringDeploymentGroupCallable() { + return getMirroringDeploymentGroupCallable; + } + + @Override + public UnaryCallable + createMirroringDeploymentGroupCallable() { + return createMirroringDeploymentGroupCallable; + } + + @Override + public OperationCallable< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationCallable() { + return createMirroringDeploymentGroupOperationCallable; + } + + @Override + public UnaryCallable + updateMirroringDeploymentGroupCallable() { + return updateMirroringDeploymentGroupCallable; + } + + @Override + public OperationCallable< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationCallable() { + return updateMirroringDeploymentGroupOperationCallable; + } + + @Override + public UnaryCallable + deleteMirroringDeploymentGroupCallable() { + return deleteMirroringDeploymentGroupCallable; + } + + @Override + public OperationCallable + deleteMirroringDeploymentGroupOperationCallable() { + return deleteMirroringDeploymentGroupOperationCallable; + } + + @Override + public UnaryCallable + listMirroringDeploymentsCallable() { + return listMirroringDeploymentsCallable; + } + + @Override + public UnaryCallable + listMirroringDeploymentsPagedCallable() { + return listMirroringDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + getMirroringDeploymentCallable() { + return getMirroringDeploymentCallable; + } + + @Override + public UnaryCallable + createMirroringDeploymentCallable() { + return createMirroringDeploymentCallable; + } + + @Override + public OperationCallable + createMirroringDeploymentOperationCallable() { + return createMirroringDeploymentOperationCallable; + } + + @Override + public UnaryCallable + updateMirroringDeploymentCallable() { + return updateMirroringDeploymentCallable; + } + + @Override + public OperationCallable + updateMirroringDeploymentOperationCallable() { + return updateMirroringDeploymentOperationCallable; + } + + @Override + public UnaryCallable + deleteMirroringDeploymentCallable() { + return deleteMirroringDeploymentCallable; + } + + @Override + public OperationCallable + deleteMirroringDeploymentOperationCallable() { + return deleteMirroringDeploymentOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java index 976d6202f3d4..ab7e53a3051a 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcNetworkSecurityStub.java @@ -17,9 +17,15 @@ package com.google.cloud.networksecurity.v1.stub; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthzPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListBackendAuthenticationConfigsPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPolicyRulesPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListTlsInspectionPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListUrlListsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -34,27 +40,69 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.cloud.networksecurity.v1.AuthorizationPolicy; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; import com.google.cloud.networksecurity.v1.ClientTlsPolicy; import com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateUrlListRequest; import com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteUrlListRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; import com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.GetUrlListRequest; import com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest; import com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse; import com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest; import com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse; import com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest; import com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListUrlListsRequest; +import com.google.cloud.networksecurity.v1.ListUrlListsResponse; import com.google.cloud.networksecurity.v1.OperationMetadata; import com.google.cloud.networksecurity.v1.ServerTlsPolicy; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; import com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateUrlListRequest; +import com.google.cloud.networksecurity.v1.UrlList; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -141,6 +189,78 @@ public class GrpcNetworkSecurityStub extends NetworkSecurityStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse> + listBackendAuthenticationConfigsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/ListBackendAuthenticationConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListBackendAuthenticationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListBackendAuthenticationConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetBackendAuthenticationConfigRequest, BackendAuthenticationConfig> + getBackendAuthenticationConfigMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/GetBackendAuthenticationConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetBackendAuthenticationConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BackendAuthenticationConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createBackendAuthenticationConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/CreateBackendAuthenticationConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateBackendAuthenticationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateBackendAuthenticationConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/UpdateBackendAuthenticationConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateBackendAuthenticationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteBackendAuthenticationConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/DeleteBackendAuthenticationConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteBackendAuthenticationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listServerTlsPoliciesMethodDescriptor = MethodDescriptor.newBuilder() @@ -263,6 +383,318 @@ public class GrpcNetworkSecurityStub extends NetworkSecurityStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesResponse> + listGatewaySecurityPoliciesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/ListGatewaySecurityPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGatewaySecurityPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGatewaySecurityPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getGatewaySecurityPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/GetGatewaySecurityPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetGatewaySecurityPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GatewaySecurityPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createGatewaySecurityPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/CreateGatewaySecurityPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGatewaySecurityPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateGatewaySecurityPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/UpdateGatewaySecurityPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateGatewaySecurityPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteGatewaySecurityPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/DeleteGatewaySecurityPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGatewaySecurityPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesResponse> + listGatewaySecurityPolicyRulesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/ListGatewaySecurityPolicyRules") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGatewaySecurityPolicyRulesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListGatewaySecurityPolicyRulesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule> + getGatewaySecurityPolicyRuleMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/GetGatewaySecurityPolicyRule") + .setRequestMarshaller( + ProtoUtils.marshaller(GetGatewaySecurityPolicyRuleRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GatewaySecurityPolicyRule.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createGatewaySecurityPolicyRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/CreateGatewaySecurityPolicyRule") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateGatewaySecurityPolicyRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateGatewaySecurityPolicyRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/UpdateGatewaySecurityPolicyRule") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateGatewaySecurityPolicyRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteGatewaySecurityPolicyRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/DeleteGatewaySecurityPolicyRule") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteGatewaySecurityPolicyRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listUrlListsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networksecurity.v1.NetworkSecurity/ListUrlLists") + .setRequestMarshaller(ProtoUtils.marshaller(ListUrlListsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUrlListsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getUrlListMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networksecurity.v1.NetworkSecurity/GetUrlList") + .setRequestMarshaller(ProtoUtils.marshaller(GetUrlListRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UrlList.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createUrlListMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networksecurity.v1.NetworkSecurity/CreateUrlList") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateUrlListRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateUrlListMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networksecurity.v1.NetworkSecurity/UpdateUrlList") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateUrlListRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteUrlListMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networksecurity.v1.NetworkSecurity/DeleteUrlList") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteUrlListRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListTlsInspectionPoliciesRequest, ListTlsInspectionPoliciesResponse> + listTlsInspectionPoliciesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/ListTlsInspectionPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTlsInspectionPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTlsInspectionPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getTlsInspectionPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/GetTlsInspectionPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTlsInspectionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TlsInspectionPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createTlsInspectionPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/CreateTlsInspectionPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateTlsInspectionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateTlsInspectionPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/UpdateTlsInspectionPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateTlsInspectionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteTlsInspectionPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/DeleteTlsInspectionPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTlsInspectionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAuthzPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/ListAuthzPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAuthzPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAuthzPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAuthzPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networksecurity.v1.NetworkSecurity/GetAuthzPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAuthzPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthzPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAuthzPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/CreateAuthzPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAuthzPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAuthzPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/UpdateAuthzPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAuthzPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAuthzPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.NetworkSecurity/DeleteAuthzPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAuthzPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -335,6 +767,29 @@ public class GrpcNetworkSecurityStub extends NetworkSecurityStub { deleteAuthorizationPolicyCallable; private final OperationCallable deleteAuthorizationPolicyOperationCallable; + private final UnaryCallable< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse> + listBackendAuthenticationConfigsCallable; + private final UnaryCallable< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsPagedResponse> + listBackendAuthenticationConfigsPagedCallable; + private final UnaryCallable + getBackendAuthenticationConfigCallable; + private final UnaryCallable + createBackendAuthenticationConfigCallable; + private final OperationCallable< + CreateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + createBackendAuthenticationConfigOperationCallable; + private final UnaryCallable + updateBackendAuthenticationConfigCallable; + private final OperationCallable< + UpdateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + updateBackendAuthenticationConfigOperationCallable; + private final UnaryCallable + deleteBackendAuthenticationConfigCallable; + private final OperationCallable< + DeleteBackendAuthenticationConfigRequest, Empty, OperationMetadata> + deleteBackendAuthenticationConfigOperationCallable; private final UnaryCallable listServerTlsPoliciesCallable; private final UnaryCallable @@ -371,6 +826,98 @@ public class GrpcNetworkSecurityStub extends NetworkSecurityStub { deleteClientTlsPolicyCallable; private final OperationCallable deleteClientTlsPolicyOperationCallable; + private final UnaryCallable< + ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesResponse> + listGatewaySecurityPoliciesCallable; + private final UnaryCallable< + ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesPagedResponse> + listGatewaySecurityPoliciesPagedCallable; + private final UnaryCallable + getGatewaySecurityPolicyCallable; + private final UnaryCallable + createGatewaySecurityPolicyCallable; + private final OperationCallable< + CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + createGatewaySecurityPolicyOperationCallable; + private final UnaryCallable + updateGatewaySecurityPolicyCallable; + private final OperationCallable< + UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + updateGatewaySecurityPolicyOperationCallable; + private final UnaryCallable + deleteGatewaySecurityPolicyCallable; + private final OperationCallable + deleteGatewaySecurityPolicyOperationCallable; + private final UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesResponse> + listGatewaySecurityPolicyRulesCallable; + private final UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesPagedResponse> + listGatewaySecurityPolicyRulesPagedCallable; + private final UnaryCallable + getGatewaySecurityPolicyRuleCallable; + private final UnaryCallable + createGatewaySecurityPolicyRuleCallable; + private final OperationCallable< + CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + createGatewaySecurityPolicyRuleOperationCallable; + private final UnaryCallable + updateGatewaySecurityPolicyRuleCallable; + private final OperationCallable< + UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + updateGatewaySecurityPolicyRuleOperationCallable; + private final UnaryCallable + deleteGatewaySecurityPolicyRuleCallable; + private final OperationCallable + deleteGatewaySecurityPolicyRuleOperationCallable; + private final UnaryCallable listUrlListsCallable; + private final UnaryCallable + listUrlListsPagedCallable; + private final UnaryCallable getUrlListCallable; + private final UnaryCallable createUrlListCallable; + private final OperationCallable + createUrlListOperationCallable; + private final UnaryCallable updateUrlListCallable; + private final OperationCallable + updateUrlListOperationCallable; + private final UnaryCallable deleteUrlListCallable; + private final OperationCallable + deleteUrlListOperationCallable; + private final UnaryCallable + listTlsInspectionPoliciesCallable; + private final UnaryCallable< + ListTlsInspectionPoliciesRequest, ListTlsInspectionPoliciesPagedResponse> + listTlsInspectionPoliciesPagedCallable; + private final UnaryCallable + getTlsInspectionPolicyCallable; + private final UnaryCallable + createTlsInspectionPolicyCallable; + private final OperationCallable< + CreateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + createTlsInspectionPolicyOperationCallable; + private final UnaryCallable + updateTlsInspectionPolicyCallable; + private final OperationCallable< + UpdateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + updateTlsInspectionPolicyOperationCallable; + private final UnaryCallable + deleteTlsInspectionPolicyCallable; + private final OperationCallable + deleteTlsInspectionPolicyOperationCallable; + private final UnaryCallable + listAuthzPoliciesCallable; + private final UnaryCallable + listAuthzPoliciesPagedCallable; + private final UnaryCallable getAuthzPolicyCallable; + private final UnaryCallable createAuthzPolicyCallable; + private final OperationCallable + createAuthzPolicyOperationCallable; + private final UnaryCallable updateAuthzPolicyCallable; + private final OperationCallable + updateAuthzPolicyOperationCallable; + private final UnaryCallable deleteAuthzPolicyCallable; + private final OperationCallable + deleteAuthzPolicyOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -435,6 +982,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAuthorizationPolicyTransportSettings = @@ -446,6 +994,7 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAuthorizationPolicyTransportSettings = @@ -457,6 +1006,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAuthorizationPolicyTransportSettings = @@ -481,69 +1031,139 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); - GrpcCallSettings - listServerTlsPoliciesTransportSettings = + GrpcCallSettings< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse> + listBackendAuthenticationConfigsTransportSettings = GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listServerTlsPoliciesMethodDescriptor) + . + newBuilder() + .setMethodDescriptor(listBackendAuthenticationConfigsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); - GrpcCallSettings - getServerTlsPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getServerTlsPolicyMethodDescriptor) + GrpcCallSettings + getBackendAuthenticationConfigTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getBackendAuthenticationConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); - GrpcCallSettings - createServerTlsPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createServerTlsPolicyMethodDescriptor) + GrpcCallSettings + createBackendAuthenticationConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBackendAuthenticationConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); - GrpcCallSettings - updateServerTlsPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateServerTlsPolicyMethodDescriptor) + GrpcCallSettings + updateBackendAuthenticationConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBackendAuthenticationConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( - "server_tls_policy.name", - String.valueOf(request.getServerTlsPolicy().getName())); + "backend_authentication_config.name", + String.valueOf(request.getBackendAuthenticationConfig().getName())); return builder.build(); }) .build(); - GrpcCallSettings - deleteServerTlsPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteServerTlsPolicyMethodDescriptor) + GrpcCallSettings + deleteBackendAuthenticationConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBackendAuthenticationConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); - GrpcCallSettings - listClientTlsPoliciesTransportSettings = + GrpcCallSettings + listServerTlsPoliciesTransportSettings = GrpcCallSettings - .newBuilder() + .newBuilder() + .setMethodDescriptor(listServerTlsPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getServerTlsPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServerTlsPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createServerTlsPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createServerTlsPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateServerTlsPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateServerTlsPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "server_tls_policy.name", + String.valueOf(request.getServerTlsPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteServerTlsPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteServerTlsPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listClientTlsPoliciesTransportSettings = + GrpcCallSettings + .newBuilder() .setMethodDescriptor(listClientTlsPoliciesMethodDescriptor) .setParamsExtractor( request -> { @@ -551,6 +1171,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getClientTlsPolicyTransportSettings = @@ -562,6 +1183,7 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createClientTlsPolicyTransportSettings = @@ -573,6 +1195,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateClientTlsPolicyTransportSettings = @@ -597,7 +1220,307 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listGatewaySecurityPoliciesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listGatewaySecurityPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getGatewaySecurityPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGatewaySecurityPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createGatewaySecurityPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGatewaySecurityPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateGatewaySecurityPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGatewaySecurityPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "gateway_security_policy.name", + String.valueOf(request.getGatewaySecurityPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteGatewaySecurityPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGatewaySecurityPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listGatewaySecurityPolicyRulesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listGatewaySecurityPolicyRulesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getGatewaySecurityPolicyRuleTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getGatewaySecurityPolicyRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createGatewaySecurityPolicyRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGatewaySecurityPolicyRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateGatewaySecurityPolicyRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGatewaySecurityPolicyRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "gateway_security_policy_rule.name", + String.valueOf(request.getGatewaySecurityPolicyRule().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteGatewaySecurityPolicyRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGatewaySecurityPolicyRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listUrlListsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listUrlListsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getUrlListTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getUrlListMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createUrlListTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createUrlListMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateUrlListTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateUrlListMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("url_list.name", String.valueOf(request.getUrlList().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteUrlListTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteUrlListMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listTlsInspectionPoliciesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listTlsInspectionPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getTlsInspectionPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTlsInspectionPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createTlsInspectionPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTlsInspectionPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateTlsInspectionPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTlsInspectionPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "tls_inspection_policy.name", + String.valueOf(request.getTlsInspectionPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteTlsInspectionPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTlsInspectionPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + listAuthzPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAuthzPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAuthzPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAuthzPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createAuthzPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAuthzPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateAuthzPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAuthzPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "authz_policy.name", String.valueOf(request.getAuthzPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAuthzPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthzPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -627,6 +1550,7 @@ protected GrpcNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -637,6 +1561,7 @@ protected GrpcNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -648,6 +1573,7 @@ protected GrpcNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listAuthorizationPoliciesCallable = @@ -698,6 +1624,54 @@ protected GrpcNetworkSecurityStub( settings.deleteAuthorizationPolicyOperationSettings(), clientContext, operationsStub); + this.listBackendAuthenticationConfigsCallable = + callableFactory.createUnaryCallable( + listBackendAuthenticationConfigsTransportSettings, + settings.listBackendAuthenticationConfigsSettings(), + clientContext); + this.listBackendAuthenticationConfigsPagedCallable = + callableFactory.createPagedCallable( + listBackendAuthenticationConfigsTransportSettings, + settings.listBackendAuthenticationConfigsSettings(), + clientContext); + this.getBackendAuthenticationConfigCallable = + callableFactory.createUnaryCallable( + getBackendAuthenticationConfigTransportSettings, + settings.getBackendAuthenticationConfigSettings(), + clientContext); + this.createBackendAuthenticationConfigCallable = + callableFactory.createUnaryCallable( + createBackendAuthenticationConfigTransportSettings, + settings.createBackendAuthenticationConfigSettings(), + clientContext); + this.createBackendAuthenticationConfigOperationCallable = + callableFactory.createOperationCallable( + createBackendAuthenticationConfigTransportSettings, + settings.createBackendAuthenticationConfigOperationSettings(), + clientContext, + operationsStub); + this.updateBackendAuthenticationConfigCallable = + callableFactory.createUnaryCallable( + updateBackendAuthenticationConfigTransportSettings, + settings.updateBackendAuthenticationConfigSettings(), + clientContext); + this.updateBackendAuthenticationConfigOperationCallable = + callableFactory.createOperationCallable( + updateBackendAuthenticationConfigTransportSettings, + settings.updateBackendAuthenticationConfigOperationSettings(), + clientContext, + operationsStub); + this.deleteBackendAuthenticationConfigCallable = + callableFactory.createUnaryCallable( + deleteBackendAuthenticationConfigTransportSettings, + settings.deleteBackendAuthenticationConfigSettings(), + clientContext); + this.deleteBackendAuthenticationConfigOperationCallable = + callableFactory.createOperationCallable( + deleteBackendAuthenticationConfigTransportSettings, + settings.deleteBackendAuthenticationConfigOperationSettings(), + clientContext, + operationsStub); this.listServerTlsPoliciesCallable = callableFactory.createUnaryCallable( listServerTlsPoliciesTransportSettings, @@ -794,9 +1768,235 @@ protected GrpcNetworkSecurityStub( settings.deleteClientTlsPolicyOperationSettings(), clientContext, operationsStub); - this.listLocationsCallable = + this.listGatewaySecurityPoliciesCallable = callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + listGatewaySecurityPoliciesTransportSettings, + settings.listGatewaySecurityPoliciesSettings(), + clientContext); + this.listGatewaySecurityPoliciesPagedCallable = + callableFactory.createPagedCallable( + listGatewaySecurityPoliciesTransportSettings, + settings.listGatewaySecurityPoliciesSettings(), + clientContext); + this.getGatewaySecurityPolicyCallable = + callableFactory.createUnaryCallable( + getGatewaySecurityPolicyTransportSettings, + settings.getGatewaySecurityPolicySettings(), + clientContext); + this.createGatewaySecurityPolicyCallable = + callableFactory.createUnaryCallable( + createGatewaySecurityPolicyTransportSettings, + settings.createGatewaySecurityPolicySettings(), + clientContext); + this.createGatewaySecurityPolicyOperationCallable = + callableFactory.createOperationCallable( + createGatewaySecurityPolicyTransportSettings, + settings.createGatewaySecurityPolicyOperationSettings(), + clientContext, + operationsStub); + this.updateGatewaySecurityPolicyCallable = + callableFactory.createUnaryCallable( + updateGatewaySecurityPolicyTransportSettings, + settings.updateGatewaySecurityPolicySettings(), + clientContext); + this.updateGatewaySecurityPolicyOperationCallable = + callableFactory.createOperationCallable( + updateGatewaySecurityPolicyTransportSettings, + settings.updateGatewaySecurityPolicyOperationSettings(), + clientContext, + operationsStub); + this.deleteGatewaySecurityPolicyCallable = + callableFactory.createUnaryCallable( + deleteGatewaySecurityPolicyTransportSettings, + settings.deleteGatewaySecurityPolicySettings(), + clientContext); + this.deleteGatewaySecurityPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteGatewaySecurityPolicyTransportSettings, + settings.deleteGatewaySecurityPolicyOperationSettings(), + clientContext, + operationsStub); + this.listGatewaySecurityPolicyRulesCallable = + callableFactory.createUnaryCallable( + listGatewaySecurityPolicyRulesTransportSettings, + settings.listGatewaySecurityPolicyRulesSettings(), + clientContext); + this.listGatewaySecurityPolicyRulesPagedCallable = + callableFactory.createPagedCallable( + listGatewaySecurityPolicyRulesTransportSettings, + settings.listGatewaySecurityPolicyRulesSettings(), + clientContext); + this.getGatewaySecurityPolicyRuleCallable = + callableFactory.createUnaryCallable( + getGatewaySecurityPolicyRuleTransportSettings, + settings.getGatewaySecurityPolicyRuleSettings(), + clientContext); + this.createGatewaySecurityPolicyRuleCallable = + callableFactory.createUnaryCallable( + createGatewaySecurityPolicyRuleTransportSettings, + settings.createGatewaySecurityPolicyRuleSettings(), + clientContext); + this.createGatewaySecurityPolicyRuleOperationCallable = + callableFactory.createOperationCallable( + createGatewaySecurityPolicyRuleTransportSettings, + settings.createGatewaySecurityPolicyRuleOperationSettings(), + clientContext, + operationsStub); + this.updateGatewaySecurityPolicyRuleCallable = + callableFactory.createUnaryCallable( + updateGatewaySecurityPolicyRuleTransportSettings, + settings.updateGatewaySecurityPolicyRuleSettings(), + clientContext); + this.updateGatewaySecurityPolicyRuleOperationCallable = + callableFactory.createOperationCallable( + updateGatewaySecurityPolicyRuleTransportSettings, + settings.updateGatewaySecurityPolicyRuleOperationSettings(), + clientContext, + operationsStub); + this.deleteGatewaySecurityPolicyRuleCallable = + callableFactory.createUnaryCallable( + deleteGatewaySecurityPolicyRuleTransportSettings, + settings.deleteGatewaySecurityPolicyRuleSettings(), + clientContext); + this.deleteGatewaySecurityPolicyRuleOperationCallable = + callableFactory.createOperationCallable( + deleteGatewaySecurityPolicyRuleTransportSettings, + settings.deleteGatewaySecurityPolicyRuleOperationSettings(), + clientContext, + operationsStub); + this.listUrlListsCallable = + callableFactory.createUnaryCallable( + listUrlListsTransportSettings, settings.listUrlListsSettings(), clientContext); + this.listUrlListsPagedCallable = + callableFactory.createPagedCallable( + listUrlListsTransportSettings, settings.listUrlListsSettings(), clientContext); + this.getUrlListCallable = + callableFactory.createUnaryCallable( + getUrlListTransportSettings, settings.getUrlListSettings(), clientContext); + this.createUrlListCallable = + callableFactory.createUnaryCallable( + createUrlListTransportSettings, settings.createUrlListSettings(), clientContext); + this.createUrlListOperationCallable = + callableFactory.createOperationCallable( + createUrlListTransportSettings, + settings.createUrlListOperationSettings(), + clientContext, + operationsStub); + this.updateUrlListCallable = + callableFactory.createUnaryCallable( + updateUrlListTransportSettings, settings.updateUrlListSettings(), clientContext); + this.updateUrlListOperationCallable = + callableFactory.createOperationCallable( + updateUrlListTransportSettings, + settings.updateUrlListOperationSettings(), + clientContext, + operationsStub); + this.deleteUrlListCallable = + callableFactory.createUnaryCallable( + deleteUrlListTransportSettings, settings.deleteUrlListSettings(), clientContext); + this.deleteUrlListOperationCallable = + callableFactory.createOperationCallable( + deleteUrlListTransportSettings, + settings.deleteUrlListOperationSettings(), + clientContext, + operationsStub); + this.listTlsInspectionPoliciesCallable = + callableFactory.createUnaryCallable( + listTlsInspectionPoliciesTransportSettings, + settings.listTlsInspectionPoliciesSettings(), + clientContext); + this.listTlsInspectionPoliciesPagedCallable = + callableFactory.createPagedCallable( + listTlsInspectionPoliciesTransportSettings, + settings.listTlsInspectionPoliciesSettings(), + clientContext); + this.getTlsInspectionPolicyCallable = + callableFactory.createUnaryCallable( + getTlsInspectionPolicyTransportSettings, + settings.getTlsInspectionPolicySettings(), + clientContext); + this.createTlsInspectionPolicyCallable = + callableFactory.createUnaryCallable( + createTlsInspectionPolicyTransportSettings, + settings.createTlsInspectionPolicySettings(), + clientContext); + this.createTlsInspectionPolicyOperationCallable = + callableFactory.createOperationCallable( + createTlsInspectionPolicyTransportSettings, + settings.createTlsInspectionPolicyOperationSettings(), + clientContext, + operationsStub); + this.updateTlsInspectionPolicyCallable = + callableFactory.createUnaryCallable( + updateTlsInspectionPolicyTransportSettings, + settings.updateTlsInspectionPolicySettings(), + clientContext); + this.updateTlsInspectionPolicyOperationCallable = + callableFactory.createOperationCallable( + updateTlsInspectionPolicyTransportSettings, + settings.updateTlsInspectionPolicyOperationSettings(), + clientContext, + operationsStub); + this.deleteTlsInspectionPolicyCallable = + callableFactory.createUnaryCallable( + deleteTlsInspectionPolicyTransportSettings, + settings.deleteTlsInspectionPolicySettings(), + clientContext); + this.deleteTlsInspectionPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteTlsInspectionPolicyTransportSettings, + settings.deleteTlsInspectionPolicyOperationSettings(), + clientContext, + operationsStub); + this.listAuthzPoliciesCallable = + callableFactory.createUnaryCallable( + listAuthzPoliciesTransportSettings, + settings.listAuthzPoliciesSettings(), + clientContext); + this.listAuthzPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAuthzPoliciesTransportSettings, + settings.listAuthzPoliciesSettings(), + clientContext); + this.getAuthzPolicyCallable = + callableFactory.createUnaryCallable( + getAuthzPolicyTransportSettings, settings.getAuthzPolicySettings(), clientContext); + this.createAuthzPolicyCallable = + callableFactory.createUnaryCallable( + createAuthzPolicyTransportSettings, + settings.createAuthzPolicySettings(), + clientContext); + this.createAuthzPolicyOperationCallable = + callableFactory.createOperationCallable( + createAuthzPolicyTransportSettings, + settings.createAuthzPolicyOperationSettings(), + clientContext, + operationsStub); + this.updateAuthzPolicyCallable = + callableFactory.createUnaryCallable( + updateAuthzPolicyTransportSettings, + settings.updateAuthzPolicySettings(), + clientContext); + this.updateAuthzPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAuthzPolicyTransportSettings, + settings.updateAuthzPolicyOperationSettings(), + clientContext, + operationsStub); + this.deleteAuthzPolicyCallable = + callableFactory.createUnaryCallable( + deleteAuthzPolicyTransportSettings, + settings.deleteAuthzPolicySettings(), + clientContext); + this.deleteAuthzPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAuthzPolicyTransportSettings, + settings.deleteAuthzPolicyOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.listLocationsPagedCallable = callableFactory.createPagedCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -877,6 +2077,64 @@ public GrpcOperationsStub getOperationsStub() { return deleteAuthorizationPolicyOperationCallable; } + @Override + public UnaryCallable< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse> + listBackendAuthenticationConfigsCallable() { + return listBackendAuthenticationConfigsCallable; + } + + @Override + public UnaryCallable< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsPagedResponse> + listBackendAuthenticationConfigsPagedCallable() { + return listBackendAuthenticationConfigsPagedCallable; + } + + @Override + public UnaryCallable + getBackendAuthenticationConfigCallable() { + return getBackendAuthenticationConfigCallable; + } + + @Override + public UnaryCallable + createBackendAuthenticationConfigCallable() { + return createBackendAuthenticationConfigCallable; + } + + @Override + public OperationCallable< + CreateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + createBackendAuthenticationConfigOperationCallable() { + return createBackendAuthenticationConfigOperationCallable; + } + + @Override + public UnaryCallable + updateBackendAuthenticationConfigCallable() { + return updateBackendAuthenticationConfigCallable; + } + + @Override + public OperationCallable< + UpdateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + updateBackendAuthenticationConfigOperationCallable() { + return updateBackendAuthenticationConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteBackendAuthenticationConfigCallable() { + return deleteBackendAuthenticationConfigCallable; + } + + @Override + public OperationCallable + deleteBackendAuthenticationConfigOperationCallable() { + return deleteBackendAuthenticationConfigOperationCallable; + } + @Override public UnaryCallable listServerTlsPoliciesCallable() { @@ -977,6 +2235,272 @@ public UnaryCallable deleteClientTlsPol return deleteClientTlsPolicyOperationCallable; } + @Override + public UnaryCallable + listGatewaySecurityPoliciesCallable() { + return listGatewaySecurityPoliciesCallable; + } + + @Override + public UnaryCallable + listGatewaySecurityPoliciesPagedCallable() { + return listGatewaySecurityPoliciesPagedCallable; + } + + @Override + public UnaryCallable + getGatewaySecurityPolicyCallable() { + return getGatewaySecurityPolicyCallable; + } + + @Override + public UnaryCallable + createGatewaySecurityPolicyCallable() { + return createGatewaySecurityPolicyCallable; + } + + @Override + public OperationCallable< + CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + createGatewaySecurityPolicyOperationCallable() { + return createGatewaySecurityPolicyOperationCallable; + } + + @Override + public UnaryCallable + updateGatewaySecurityPolicyCallable() { + return updateGatewaySecurityPolicyCallable; + } + + @Override + public OperationCallable< + UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + updateGatewaySecurityPolicyOperationCallable() { + return updateGatewaySecurityPolicyOperationCallable; + } + + @Override + public UnaryCallable + deleteGatewaySecurityPolicyCallable() { + return deleteGatewaySecurityPolicyCallable; + } + + @Override + public OperationCallable + deleteGatewaySecurityPolicyOperationCallable() { + return deleteGatewaySecurityPolicyOperationCallable; + } + + @Override + public UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesResponse> + listGatewaySecurityPolicyRulesCallable() { + return listGatewaySecurityPolicyRulesCallable; + } + + @Override + public UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesPagedResponse> + listGatewaySecurityPolicyRulesPagedCallable() { + return listGatewaySecurityPolicyRulesPagedCallable; + } + + @Override + public UnaryCallable + getGatewaySecurityPolicyRuleCallable() { + return getGatewaySecurityPolicyRuleCallable; + } + + @Override + public UnaryCallable + createGatewaySecurityPolicyRuleCallable() { + return createGatewaySecurityPolicyRuleCallable; + } + + @Override + public OperationCallable< + CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + createGatewaySecurityPolicyRuleOperationCallable() { + return createGatewaySecurityPolicyRuleOperationCallable; + } + + @Override + public UnaryCallable + updateGatewaySecurityPolicyRuleCallable() { + return updateGatewaySecurityPolicyRuleCallable; + } + + @Override + public OperationCallable< + UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + updateGatewaySecurityPolicyRuleOperationCallable() { + return updateGatewaySecurityPolicyRuleOperationCallable; + } + + @Override + public UnaryCallable + deleteGatewaySecurityPolicyRuleCallable() { + return deleteGatewaySecurityPolicyRuleCallable; + } + + @Override + public OperationCallable + deleteGatewaySecurityPolicyRuleOperationCallable() { + return deleteGatewaySecurityPolicyRuleOperationCallable; + } + + @Override + public UnaryCallable listUrlListsCallable() { + return listUrlListsCallable; + } + + @Override + public UnaryCallable listUrlListsPagedCallable() { + return listUrlListsPagedCallable; + } + + @Override + public UnaryCallable getUrlListCallable() { + return getUrlListCallable; + } + + @Override + public UnaryCallable createUrlListCallable() { + return createUrlListCallable; + } + + @Override + public OperationCallable + createUrlListOperationCallable() { + return createUrlListOperationCallable; + } + + @Override + public UnaryCallable updateUrlListCallable() { + return updateUrlListCallable; + } + + @Override + public OperationCallable + updateUrlListOperationCallable() { + return updateUrlListOperationCallable; + } + + @Override + public UnaryCallable deleteUrlListCallable() { + return deleteUrlListCallable; + } + + @Override + public OperationCallable + deleteUrlListOperationCallable() { + return deleteUrlListOperationCallable; + } + + @Override + public UnaryCallable + listTlsInspectionPoliciesCallable() { + return listTlsInspectionPoliciesCallable; + } + + @Override + public UnaryCallable + listTlsInspectionPoliciesPagedCallable() { + return listTlsInspectionPoliciesPagedCallable; + } + + @Override + public UnaryCallable + getTlsInspectionPolicyCallable() { + return getTlsInspectionPolicyCallable; + } + + @Override + public UnaryCallable + createTlsInspectionPolicyCallable() { + return createTlsInspectionPolicyCallable; + } + + @Override + public OperationCallable + createTlsInspectionPolicyOperationCallable() { + return createTlsInspectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + updateTlsInspectionPolicyCallable() { + return updateTlsInspectionPolicyCallable; + } + + @Override + public OperationCallable + updateTlsInspectionPolicyOperationCallable() { + return updateTlsInspectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + deleteTlsInspectionPolicyCallable() { + return deleteTlsInspectionPolicyCallable; + } + + @Override + public OperationCallable + deleteTlsInspectionPolicyOperationCallable() { + return deleteTlsInspectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + listAuthzPoliciesCallable() { + return listAuthzPoliciesCallable; + } + + @Override + public UnaryCallable + listAuthzPoliciesPagedCallable() { + return listAuthzPoliciesPagedCallable; + } + + @Override + public UnaryCallable getAuthzPolicyCallable() { + return getAuthzPolicyCallable; + } + + @Override + public UnaryCallable createAuthzPolicyCallable() { + return createAuthzPolicyCallable; + } + + @Override + public OperationCallable + createAuthzPolicyOperationCallable() { + return createAuthzPolicyOperationCallable; + } + + @Override + public UnaryCallable updateAuthzPolicyCallable() { + return updateAuthzPolicyCallable; + } + + @Override + public OperationCallable + updateAuthzPolicyOperationCallable() { + return updateAuthzPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteAuthzPolicyCallable() { + return deleteAuthzPolicyCallable; + } + + @Override + public OperationCallable + deleteAuthzPolicyOperationCallable() { + return deleteAuthzPolicyOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceStub.java index 9085ccde098d..2bc55e18edea 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceStub.java @@ -326,6 +326,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAddressGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -336,6 +337,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAddressGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -346,6 +348,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAddressGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -367,6 +370,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("address_group", String.valueOf(request.getAddressGroup())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getAddressGroup()) .build(); GrpcCallSettings removeAddressGroupItemsTransportSettings = @@ -378,6 +382,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("address_group", String.valueOf(request.getAddressGroup())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getAddressGroup()) .build(); GrpcCallSettings cloneAddressGroupItemsTransportSettings = @@ -389,6 +394,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("address_group", String.valueOf(request.getAddressGroup())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getAddressGroup()) .build(); GrpcCallSettings deleteAddressGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -399,6 +405,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAddressGroupReferencesTransportSettings = @@ -411,6 +418,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("address_group", String.valueOf(request.getAddressGroup())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getAddressGroup()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -441,6 +449,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -451,6 +460,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -462,6 +472,7 @@ protected GrpcOrganizationAddressGroupServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listAddressGroupsCallable = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationSecurityProfileGroupServiceCallableFactory.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationSecurityProfileGroupServiceCallableFactory.java new file mode 100644 index 000000000000..9c62ad9335c4 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationSecurityProfileGroupServiceCallableFactory.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the OrganizationSecurityProfileGroupService service API. + * + *

                                                                                              This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcOrganizationSecurityProfileGroupServiceCallableFactory + implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationSecurityProfileGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationSecurityProfileGroupServiceStub.java new file mode 100644 index 000000000000..2f13a4ebfc6a --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationSecurityProfileGroupServiceStub.java @@ -0,0 +1,821 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.GetSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse; +import com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the OrganizationSecurityProfileGroupService service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcOrganizationSecurityProfileGroupServiceStub + extends OrganizationSecurityProfileGroupServiceStub { + private static final MethodDescriptor< + ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsResponse> + listSecurityProfileGroupsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/ListSecurityProfileGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSecurityProfileGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSecurityProfileGroupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getSecurityProfileGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/GetSecurityProfileGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSecurityProfileGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SecurityProfileGroup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createSecurityProfileGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/CreateSecurityProfileGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSecurityProfileGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateSecurityProfileGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/UpdateSecurityProfileGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSecurityProfileGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteSecurityProfileGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/DeleteSecurityProfileGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSecurityProfileGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listSecurityProfilesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/ListSecurityProfiles") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSecurityProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSecurityProfilesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getSecurityProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/GetSecurityProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSecurityProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SecurityProfile.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createSecurityProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/CreateSecurityProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSecurityProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateSecurityProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/UpdateSecurityProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSecurityProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteSecurityProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService/DeleteSecurityProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSecurityProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listSecurityProfileGroupsCallable; + private final UnaryCallable< + ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsPagedResponse> + listSecurityProfileGroupsPagedCallable; + private final UnaryCallable + getSecurityProfileGroupCallable; + private final UnaryCallable + createSecurityProfileGroupCallable; + private final OperationCallable< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationCallable; + private final UnaryCallable + updateSecurityProfileGroupCallable; + private final OperationCallable< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationCallable; + private final UnaryCallable + deleteSecurityProfileGroupCallable; + private final OperationCallable + deleteSecurityProfileGroupOperationCallable; + private final UnaryCallable + listSecurityProfilesCallable; + private final UnaryCallable + listSecurityProfilesPagedCallable; + private final UnaryCallable + getSecurityProfileCallable; + private final UnaryCallable + createSecurityProfileCallable; + private final OperationCallable + createSecurityProfileOperationCallable; + private final UnaryCallable + updateSecurityProfileCallable; + private final OperationCallable + updateSecurityProfileOperationCallable; + private final UnaryCallable + deleteSecurityProfileCallable; + private final OperationCallable + deleteSecurityProfileOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcOrganizationSecurityProfileGroupServiceStub create( + OrganizationSecurityProfileGroupServiceStubSettings settings) throws IOException { + return new GrpcOrganizationSecurityProfileGroupServiceStub( + settings, ClientContext.create(settings)); + } + + public static final GrpcOrganizationSecurityProfileGroupServiceStub create( + ClientContext clientContext) throws IOException { + return new GrpcOrganizationSecurityProfileGroupServiceStub( + OrganizationSecurityProfileGroupServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcOrganizationSecurityProfileGroupServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcOrganizationSecurityProfileGroupServiceStub( + OrganizationSecurityProfileGroupServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcOrganizationSecurityProfileGroupServiceStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected GrpcOrganizationSecurityProfileGroupServiceStub( + OrganizationSecurityProfileGroupServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcOrganizationSecurityProfileGroupServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcOrganizationSecurityProfileGroupServiceStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected GrpcOrganizationSecurityProfileGroupServiceStub( + OrganizationSecurityProfileGroupServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listSecurityProfileGroupsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listSecurityProfileGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getSecurityProfileGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSecurityProfileGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createSecurityProfileGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSecurityProfileGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateSecurityProfileGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSecurityProfileGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "security_profile_group.name", + String.valueOf(request.getSecurityProfileGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteSecurityProfileGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSecurityProfileGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listSecurityProfilesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSecurityProfilesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getSecurityProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSecurityProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createSecurityProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSecurityProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateSecurityProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSecurityProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "security_profile.name", + String.valueOf(request.getSecurityProfile().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteSecurityProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSecurityProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listSecurityProfileGroupsCallable = + callableFactory.createUnaryCallable( + listSecurityProfileGroupsTransportSettings, + settings.listSecurityProfileGroupsSettings(), + clientContext); + this.listSecurityProfileGroupsPagedCallable = + callableFactory.createPagedCallable( + listSecurityProfileGroupsTransportSettings, + settings.listSecurityProfileGroupsSettings(), + clientContext); + this.getSecurityProfileGroupCallable = + callableFactory.createUnaryCallable( + getSecurityProfileGroupTransportSettings, + settings.getSecurityProfileGroupSettings(), + clientContext); + this.createSecurityProfileGroupCallable = + callableFactory.createUnaryCallable( + createSecurityProfileGroupTransportSettings, + settings.createSecurityProfileGroupSettings(), + clientContext); + this.createSecurityProfileGroupOperationCallable = + callableFactory.createOperationCallable( + createSecurityProfileGroupTransportSettings, + settings.createSecurityProfileGroupOperationSettings(), + clientContext, + operationsStub); + this.updateSecurityProfileGroupCallable = + callableFactory.createUnaryCallable( + updateSecurityProfileGroupTransportSettings, + settings.updateSecurityProfileGroupSettings(), + clientContext); + this.updateSecurityProfileGroupOperationCallable = + callableFactory.createOperationCallable( + updateSecurityProfileGroupTransportSettings, + settings.updateSecurityProfileGroupOperationSettings(), + clientContext, + operationsStub); + this.deleteSecurityProfileGroupCallable = + callableFactory.createUnaryCallable( + deleteSecurityProfileGroupTransportSettings, + settings.deleteSecurityProfileGroupSettings(), + clientContext); + this.deleteSecurityProfileGroupOperationCallable = + callableFactory.createOperationCallable( + deleteSecurityProfileGroupTransportSettings, + settings.deleteSecurityProfileGroupOperationSettings(), + clientContext, + operationsStub); + this.listSecurityProfilesCallable = + callableFactory.createUnaryCallable( + listSecurityProfilesTransportSettings, + settings.listSecurityProfilesSettings(), + clientContext); + this.listSecurityProfilesPagedCallable = + callableFactory.createPagedCallable( + listSecurityProfilesTransportSettings, + settings.listSecurityProfilesSettings(), + clientContext); + this.getSecurityProfileCallable = + callableFactory.createUnaryCallable( + getSecurityProfileTransportSettings, + settings.getSecurityProfileSettings(), + clientContext); + this.createSecurityProfileCallable = + callableFactory.createUnaryCallable( + createSecurityProfileTransportSettings, + settings.createSecurityProfileSettings(), + clientContext); + this.createSecurityProfileOperationCallable = + callableFactory.createOperationCallable( + createSecurityProfileTransportSettings, + settings.createSecurityProfileOperationSettings(), + clientContext, + operationsStub); + this.updateSecurityProfileCallable = + callableFactory.createUnaryCallable( + updateSecurityProfileTransportSettings, + settings.updateSecurityProfileSettings(), + clientContext); + this.updateSecurityProfileOperationCallable = + callableFactory.createOperationCallable( + updateSecurityProfileTransportSettings, + settings.updateSecurityProfileOperationSettings(), + clientContext, + operationsStub); + this.deleteSecurityProfileCallable = + callableFactory.createUnaryCallable( + deleteSecurityProfileTransportSettings, + settings.deleteSecurityProfileSettings(), + clientContext); + this.deleteSecurityProfileOperationCallable = + callableFactory.createOperationCallable( + deleteSecurityProfileTransportSettings, + settings.deleteSecurityProfileOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listSecurityProfileGroupsCallable() { + return listSecurityProfileGroupsCallable; + } + + @Override + public UnaryCallable + listSecurityProfileGroupsPagedCallable() { + return listSecurityProfileGroupsPagedCallable; + } + + @Override + public UnaryCallable + getSecurityProfileGroupCallable() { + return getSecurityProfileGroupCallable; + } + + @Override + public UnaryCallable + createSecurityProfileGroupCallable() { + return createSecurityProfileGroupCallable; + } + + @Override + public OperationCallable< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationCallable() { + return createSecurityProfileGroupOperationCallable; + } + + @Override + public UnaryCallable + updateSecurityProfileGroupCallable() { + return updateSecurityProfileGroupCallable; + } + + @Override + public OperationCallable< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationCallable() { + return updateSecurityProfileGroupOperationCallable; + } + + @Override + public UnaryCallable + deleteSecurityProfileGroupCallable() { + return deleteSecurityProfileGroupCallable; + } + + @Override + public OperationCallable + deleteSecurityProfileGroupOperationCallable() { + return deleteSecurityProfileGroupOperationCallable; + } + + @Override + public UnaryCallable + listSecurityProfilesCallable() { + return listSecurityProfilesCallable; + } + + @Override + public UnaryCallable + listSecurityProfilesPagedCallable() { + return listSecurityProfilesPagedCallable; + } + + @Override + public UnaryCallable getSecurityProfileCallable() { + return getSecurityProfileCallable; + } + + @Override + public UnaryCallable createSecurityProfileCallable() { + return createSecurityProfileCallable; + } + + @Override + public OperationCallable + createSecurityProfileOperationCallable() { + return createSecurityProfileOperationCallable; + } + + @Override + public UnaryCallable updateSecurityProfileCallable() { + return updateSecurityProfileCallable; + } + + @Override + public OperationCallable + updateSecurityProfileOperationCallable() { + return updateSecurityProfileOperationCallable; + } + + @Override + public UnaryCallable deleteSecurityProfileCallable() { + return deleteSecurityProfileCallable; + } + + @Override + public OperationCallable + deleteSecurityProfileOperationCallable() { + return deleteSecurityProfileOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStub.java new file mode 100644 index 000000000000..4e5bab04db0b --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStub.java @@ -0,0 +1,338 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Intercept service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class InterceptStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listInterceptEndpointGroupsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listInterceptEndpointGroupsPagedCallable()"); + } + + public UnaryCallable + listInterceptEndpointGroupsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listInterceptEndpointGroupsCallable()"); + } + + public UnaryCallable + getInterceptEndpointGroupCallable() { + throw new UnsupportedOperationException("Not implemented: getInterceptEndpointGroupCallable()"); + } + + public OperationCallable< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createInterceptEndpointGroupOperationCallable()"); + } + + public UnaryCallable + createInterceptEndpointGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: createInterceptEndpointGroupCallable()"); + } + + public OperationCallable< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateInterceptEndpointGroupOperationCallable()"); + } + + public UnaryCallable + updateInterceptEndpointGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateInterceptEndpointGroupCallable()"); + } + + public OperationCallable + deleteInterceptEndpointGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteInterceptEndpointGroupOperationCallable()"); + } + + public UnaryCallable + deleteInterceptEndpointGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteInterceptEndpointGroupCallable()"); + } + + public UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listInterceptEndpointGroupAssociationsPagedCallable()"); + } + + public UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse> + listInterceptEndpointGroupAssociationsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listInterceptEndpointGroupAssociationsCallable()"); + } + + public UnaryCallable< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: getInterceptEndpointGroupAssociationCallable()"); + } + + public OperationCallable< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createInterceptEndpointGroupAssociationOperationCallable()"); + } + + public UnaryCallable + createInterceptEndpointGroupAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createInterceptEndpointGroupAssociationCallable()"); + } + + public OperationCallable< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateInterceptEndpointGroupAssociationOperationCallable()"); + } + + public UnaryCallable + updateInterceptEndpointGroupAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateInterceptEndpointGroupAssociationCallable()"); + } + + public OperationCallable + deleteInterceptEndpointGroupAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteInterceptEndpointGroupAssociationOperationCallable()"); + } + + public UnaryCallable + deleteInterceptEndpointGroupAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteInterceptEndpointGroupAssociationCallable()"); + } + + public UnaryCallable< + ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listInterceptDeploymentGroupsPagedCallable()"); + } + + public UnaryCallable + listInterceptDeploymentGroupsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listInterceptDeploymentGroupsCallable()"); + } + + public UnaryCallable + getInterceptDeploymentGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: getInterceptDeploymentGroupCallable()"); + } + + public OperationCallable< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createInterceptDeploymentGroupOperationCallable()"); + } + + public UnaryCallable + createInterceptDeploymentGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: createInterceptDeploymentGroupCallable()"); + } + + public OperationCallable< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateInterceptDeploymentGroupOperationCallable()"); + } + + public UnaryCallable + updateInterceptDeploymentGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateInterceptDeploymentGroupCallable()"); + } + + public OperationCallable + deleteInterceptDeploymentGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteInterceptDeploymentGroupOperationCallable()"); + } + + public UnaryCallable + deleteInterceptDeploymentGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteInterceptDeploymentGroupCallable()"); + } + + public UnaryCallable + listInterceptDeploymentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listInterceptDeploymentsPagedCallable()"); + } + + public UnaryCallable + listInterceptDeploymentsCallable() { + throw new UnsupportedOperationException("Not implemented: listInterceptDeploymentsCallable()"); + } + + public UnaryCallable + getInterceptDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: getInterceptDeploymentCallable()"); + } + + public OperationCallable + createInterceptDeploymentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createInterceptDeploymentOperationCallable()"); + } + + public UnaryCallable + createInterceptDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: createInterceptDeploymentCallable()"); + } + + public OperationCallable + updateInterceptDeploymentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateInterceptDeploymentOperationCallable()"); + } + + public UnaryCallable + updateInterceptDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: updateInterceptDeploymentCallable()"); + } + + public OperationCallable + deleteInterceptDeploymentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteInterceptDeploymentOperationCallable()"); + } + + public UnaryCallable + deleteInterceptDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteInterceptDeploymentCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStubSettings.java new file mode 100644 index 000000000000..69bd90007678 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStubSettings.java @@ -0,0 +1,2099 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link InterceptStub}. + * + *

                                                                                              The default instance has everything set to sensible defaults: + * + *

                                                                                                + *
                                                                                              • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                              • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                              + * + *

                                                                                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                              For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getInterceptEndpointGroup: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * InterceptStubSettings.Builder interceptSettingsBuilder = InterceptStubSettings.newBuilder();
                                                                                              + * interceptSettingsBuilder
                                                                                              + *     .getInterceptEndpointGroupSettings()
                                                                                              + *     .setRetrySettings(
                                                                                              + *         interceptSettingsBuilder
                                                                                              + *             .getInterceptEndpointGroupSettings()
                                                                                              + *             .getRetrySettings()
                                                                                              + *             .toBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                              + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                              + *             .setMaxAttempts(5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                              + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                              + *             .setRetryDelayMultiplier(1.3)
                                                                                              + *             .setRpcTimeoutMultiplier(1.5)
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                              + *             .build());
                                                                                              + * InterceptStubSettings interceptSettings = interceptSettingsBuilder.build();
                                                                                              + * }
                                                                                              + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

                                                                                              To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createInterceptEndpointGroup: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * InterceptStubSettings.Builder interceptSettingsBuilder = InterceptStubSettings.newBuilder();
                                                                                              + * TimedRetryAlgorithm timedRetryAlgorithm =
                                                                                              + *     OperationalTimedPollAlgorithm.create(
                                                                                              + *         RetrySettings.newBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                                                                              + *             .setRetryDelayMultiplier(1.5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                                                                              + *             .build());
                                                                                              + * interceptSettingsBuilder
                                                                                              + *     .createClusterOperationSettings()
                                                                                              + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                                                                              + *     .build();
                                                                                              + * }
                                                                                              + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class InterceptStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + ListInterceptEndpointGroupsPagedResponse> + listInterceptEndpointGroupsSettings; + private final UnaryCallSettings + getInterceptEndpointGroupSettings; + private final UnaryCallSettings + createInterceptEndpointGroupSettings; + private final OperationCallSettings< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationSettings; + private final UnaryCallSettings + updateInterceptEndpointGroupSettings; + private final OperationCallSettings< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationSettings; + private final UnaryCallSettings + deleteInterceptEndpointGroupSettings; + private final OperationCallSettings + deleteInterceptEndpointGroupOperationSettings; + private final PagedCallSettings< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsSettings; + private final UnaryCallSettings< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationSettings; + private final UnaryCallSettings + createInterceptEndpointGroupAssociationSettings; + private final OperationCallSettings< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationSettings; + private final UnaryCallSettings + updateInterceptEndpointGroupAssociationSettings; + private final OperationCallSettings< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationSettings; + private final UnaryCallSettings + deleteInterceptEndpointGroupAssociationSettings; + private final OperationCallSettings< + DeleteInterceptEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupAssociationOperationSettings; + private final PagedCallSettings< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsSettings; + private final UnaryCallSettings + getInterceptDeploymentGroupSettings; + private final UnaryCallSettings + createInterceptDeploymentGroupSettings; + private final OperationCallSettings< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationSettings; + private final UnaryCallSettings + updateInterceptDeploymentGroupSettings; + private final OperationCallSettings< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationSettings; + private final UnaryCallSettings + deleteInterceptDeploymentGroupSettings; + private final OperationCallSettings< + DeleteInterceptDeploymentGroupRequest, Empty, OperationMetadata> + deleteInterceptDeploymentGroupOperationSettings; + private final PagedCallSettings< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + ListInterceptDeploymentsPagedResponse> + listInterceptDeploymentsSettings; + private final UnaryCallSettings + getInterceptDeploymentSettings; + private final UnaryCallSettings + createInterceptDeploymentSettings; + private final OperationCallSettings< + CreateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + createInterceptDeploymentOperationSettings; + private final UnaryCallSettings + updateInterceptDeploymentSettings; + private final OperationCallSettings< + UpdateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + updateInterceptDeploymentOperationSettings; + private final UnaryCallSettings + deleteInterceptDeploymentSettings; + private final OperationCallSettings + deleteInterceptDeploymentOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup> + LIST_INTERCEPT_ENDPOINT_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListInterceptEndpointGroupsRequest injectToken( + ListInterceptEndpointGroupsRequest payload, String token) { + return ListInterceptEndpointGroupsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListInterceptEndpointGroupsRequest injectPageSize( + ListInterceptEndpointGroupsRequest payload, int pageSize) { + return ListInterceptEndpointGroupsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListInterceptEndpointGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListInterceptEndpointGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListInterceptEndpointGroupsResponse payload) { + return payload.getInterceptEndpointGroupsList(); + } + }; + + private static final PagedListDescriptor< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation> + LIST_INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListInterceptEndpointGroupAssociationsRequest injectToken( + ListInterceptEndpointGroupAssociationsRequest payload, String token) { + return ListInterceptEndpointGroupAssociationsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListInterceptEndpointGroupAssociationsRequest injectPageSize( + ListInterceptEndpointGroupAssociationsRequest payload, int pageSize) { + return ListInterceptEndpointGroupAssociationsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListInterceptEndpointGroupAssociationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListInterceptEndpointGroupAssociationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListInterceptEndpointGroupAssociationsResponse payload) { + return payload.getInterceptEndpointGroupAssociationsList(); + } + }; + + private static final PagedListDescriptor< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup> + LIST_INTERCEPT_DEPLOYMENT_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListInterceptDeploymentGroupsRequest injectToken( + ListInterceptDeploymentGroupsRequest payload, String token) { + return ListInterceptDeploymentGroupsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListInterceptDeploymentGroupsRequest injectPageSize( + ListInterceptDeploymentGroupsRequest payload, int pageSize) { + return ListInterceptDeploymentGroupsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListInterceptDeploymentGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListInterceptDeploymentGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListInterceptDeploymentGroupsResponse payload) { + return payload.getInterceptDeploymentGroupsList(); + } + }; + + private static final PagedListDescriptor< + ListInterceptDeploymentsRequest, ListInterceptDeploymentsResponse, InterceptDeployment> + LIST_INTERCEPT_DEPLOYMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListInterceptDeploymentsRequest injectToken( + ListInterceptDeploymentsRequest payload, String token) { + return ListInterceptDeploymentsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListInterceptDeploymentsRequest injectPageSize( + ListInterceptDeploymentsRequest payload, int pageSize) { + return ListInterceptDeploymentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListInterceptDeploymentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListInterceptDeploymentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListInterceptDeploymentsResponse payload) { + return payload.getInterceptDeploymentsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + ListInterceptEndpointGroupsPagedResponse> + LIST_INTERCEPT_ENDPOINT_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + ListInterceptEndpointGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsResponse> + callable, + ListInterceptEndpointGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + InterceptEndpointGroup> + pageContext = + PageContext.create( + callable, LIST_INTERCEPT_ENDPOINT_GROUPS_PAGE_STR_DESC, request, context); + return ListInterceptEndpointGroupsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + ListInterceptEndpointGroupAssociationsPagedResponse> + LIST_INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + ListInterceptEndpointGroupAssociationsPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse> + callable, + ListInterceptEndpointGroupAssociationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + InterceptEndpointGroupAssociation> + pageContext = + PageContext.create( + callable, + LIST_INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS_PAGE_STR_DESC, + request, + context); + return ListInterceptEndpointGroupAssociationsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + ListInterceptDeploymentGroupsPagedResponse> + LIST_INTERCEPT_DEPLOYMENT_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + ListInterceptDeploymentGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsResponse> + callable, + ListInterceptDeploymentGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + InterceptDeploymentGroup> + pageContext = + PageContext.create( + callable, + LIST_INTERCEPT_DEPLOYMENT_GROUPS_PAGE_STR_DESC, + request, + context); + return ListInterceptDeploymentGroupsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + ListInterceptDeploymentsPagedResponse> + LIST_INTERCEPT_DEPLOYMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + ListInterceptDeploymentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListInterceptDeploymentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + InterceptDeployment> + pageContext = + PageContext.create( + callable, LIST_INTERCEPT_DEPLOYMENTS_PAGE_STR_DESC, request, context); + return ListInterceptDeploymentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listInterceptEndpointGroups. */ + public PagedCallSettings< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + ListInterceptEndpointGroupsPagedResponse> + listInterceptEndpointGroupsSettings() { + return listInterceptEndpointGroupsSettings; + } + + /** Returns the object with the settings used for calls to getInterceptEndpointGroup. */ + public UnaryCallSettings + getInterceptEndpointGroupSettings() { + return getInterceptEndpointGroupSettings; + } + + /** Returns the object with the settings used for calls to createInterceptEndpointGroup. */ + public UnaryCallSettings + createInterceptEndpointGroupSettings() { + return createInterceptEndpointGroupSettings; + } + + /** Returns the object with the settings used for calls to createInterceptEndpointGroup. */ + public OperationCallSettings< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationSettings() { + return createInterceptEndpointGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateInterceptEndpointGroup. */ + public UnaryCallSettings + updateInterceptEndpointGroupSettings() { + return updateInterceptEndpointGroupSettings; + } + + /** Returns the object with the settings used for calls to updateInterceptEndpointGroup. */ + public OperationCallSettings< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationSettings() { + return updateInterceptEndpointGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteInterceptEndpointGroup. */ + public UnaryCallSettings + deleteInterceptEndpointGroupSettings() { + return deleteInterceptEndpointGroupSettings; + } + + /** Returns the object with the settings used for calls to deleteInterceptEndpointGroup. */ + public OperationCallSettings + deleteInterceptEndpointGroupOperationSettings() { + return deleteInterceptEndpointGroupOperationSettings; + } + + /** + * Returns the object with the settings used for calls to listInterceptEndpointGroupAssociations. + */ + public PagedCallSettings< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsSettings() { + return listInterceptEndpointGroupAssociationsSettings; + } + + /** + * Returns the object with the settings used for calls to getInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationSettings() { + return getInterceptEndpointGroupAssociationSettings; + } + + /** + * Returns the object with the settings used for calls to createInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings + createInterceptEndpointGroupAssociationSettings() { + return createInterceptEndpointGroupAssociationSettings; + } + + /** + * Returns the object with the settings used for calls to createInterceptEndpointGroupAssociation. + */ + public OperationCallSettings< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationSettings() { + return createInterceptEndpointGroupAssociationOperationSettings; + } + + /** + * Returns the object with the settings used for calls to updateInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings + updateInterceptEndpointGroupAssociationSettings() { + return updateInterceptEndpointGroupAssociationSettings; + } + + /** + * Returns the object with the settings used for calls to updateInterceptEndpointGroupAssociation. + */ + public OperationCallSettings< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationSettings() { + return updateInterceptEndpointGroupAssociationOperationSettings; + } + + /** + * Returns the object with the settings used for calls to deleteInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings + deleteInterceptEndpointGroupAssociationSettings() { + return deleteInterceptEndpointGroupAssociationSettings; + } + + /** + * Returns the object with the settings used for calls to deleteInterceptEndpointGroupAssociation. + */ + public OperationCallSettings< + DeleteInterceptEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupAssociationOperationSettings() { + return deleteInterceptEndpointGroupAssociationOperationSettings; + } + + /** Returns the object with the settings used for calls to listInterceptDeploymentGroups. */ + public PagedCallSettings< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsSettings() { + return listInterceptDeploymentGroupsSettings; + } + + /** Returns the object with the settings used for calls to getInterceptDeploymentGroup. */ + public UnaryCallSettings + getInterceptDeploymentGroupSettings() { + return getInterceptDeploymentGroupSettings; + } + + /** Returns the object with the settings used for calls to createInterceptDeploymentGroup. */ + public UnaryCallSettings + createInterceptDeploymentGroupSettings() { + return createInterceptDeploymentGroupSettings; + } + + /** Returns the object with the settings used for calls to createInterceptDeploymentGroup. */ + public OperationCallSettings< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationSettings() { + return createInterceptDeploymentGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateInterceptDeploymentGroup. */ + public UnaryCallSettings + updateInterceptDeploymentGroupSettings() { + return updateInterceptDeploymentGroupSettings; + } + + /** Returns the object with the settings used for calls to updateInterceptDeploymentGroup. */ + public OperationCallSettings< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationSettings() { + return updateInterceptDeploymentGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteInterceptDeploymentGroup. */ + public UnaryCallSettings + deleteInterceptDeploymentGroupSettings() { + return deleteInterceptDeploymentGroupSettings; + } + + /** Returns the object with the settings used for calls to deleteInterceptDeploymentGroup. */ + public OperationCallSettings + deleteInterceptDeploymentGroupOperationSettings() { + return deleteInterceptDeploymentGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to listInterceptDeployments. */ + public PagedCallSettings< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + ListInterceptDeploymentsPagedResponse> + listInterceptDeploymentsSettings() { + return listInterceptDeploymentsSettings; + } + + /** Returns the object with the settings used for calls to getInterceptDeployment. */ + public UnaryCallSettings + getInterceptDeploymentSettings() { + return getInterceptDeploymentSettings; + } + + /** Returns the object with the settings used for calls to createInterceptDeployment. */ + public UnaryCallSettings + createInterceptDeploymentSettings() { + return createInterceptDeploymentSettings; + } + + /** Returns the object with the settings used for calls to createInterceptDeployment. */ + public OperationCallSettings< + CreateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + createInterceptDeploymentOperationSettings() { + return createInterceptDeploymentOperationSettings; + } + + /** Returns the object with the settings used for calls to updateInterceptDeployment. */ + public UnaryCallSettings + updateInterceptDeploymentSettings() { + return updateInterceptDeploymentSettings; + } + + /** Returns the object with the settings used for calls to updateInterceptDeployment. */ + public OperationCallSettings< + UpdateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + updateInterceptDeploymentOperationSettings() { + return updateInterceptDeploymentOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteInterceptDeployment. */ + public UnaryCallSettings + deleteInterceptDeploymentSettings() { + return deleteInterceptDeploymentSettings; + } + + /** Returns the object with the settings used for calls to deleteInterceptDeployment. */ + public OperationCallSettings + deleteInterceptDeploymentOperationSettings() { + return deleteInterceptDeploymentOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public InterceptStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcInterceptStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networksecurity"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "networksecurity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networksecurity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(InterceptStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected InterceptStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listInterceptEndpointGroupsSettings = + settingsBuilder.listInterceptEndpointGroupsSettings().build(); + getInterceptEndpointGroupSettings = settingsBuilder.getInterceptEndpointGroupSettings().build(); + createInterceptEndpointGroupSettings = + settingsBuilder.createInterceptEndpointGroupSettings().build(); + createInterceptEndpointGroupOperationSettings = + settingsBuilder.createInterceptEndpointGroupOperationSettings().build(); + updateInterceptEndpointGroupSettings = + settingsBuilder.updateInterceptEndpointGroupSettings().build(); + updateInterceptEndpointGroupOperationSettings = + settingsBuilder.updateInterceptEndpointGroupOperationSettings().build(); + deleteInterceptEndpointGroupSettings = + settingsBuilder.deleteInterceptEndpointGroupSettings().build(); + deleteInterceptEndpointGroupOperationSettings = + settingsBuilder.deleteInterceptEndpointGroupOperationSettings().build(); + listInterceptEndpointGroupAssociationsSettings = + settingsBuilder.listInterceptEndpointGroupAssociationsSettings().build(); + getInterceptEndpointGroupAssociationSettings = + settingsBuilder.getInterceptEndpointGroupAssociationSettings().build(); + createInterceptEndpointGroupAssociationSettings = + settingsBuilder.createInterceptEndpointGroupAssociationSettings().build(); + createInterceptEndpointGroupAssociationOperationSettings = + settingsBuilder.createInterceptEndpointGroupAssociationOperationSettings().build(); + updateInterceptEndpointGroupAssociationSettings = + settingsBuilder.updateInterceptEndpointGroupAssociationSettings().build(); + updateInterceptEndpointGroupAssociationOperationSettings = + settingsBuilder.updateInterceptEndpointGroupAssociationOperationSettings().build(); + deleteInterceptEndpointGroupAssociationSettings = + settingsBuilder.deleteInterceptEndpointGroupAssociationSettings().build(); + deleteInterceptEndpointGroupAssociationOperationSettings = + settingsBuilder.deleteInterceptEndpointGroupAssociationOperationSettings().build(); + listInterceptDeploymentGroupsSettings = + settingsBuilder.listInterceptDeploymentGroupsSettings().build(); + getInterceptDeploymentGroupSettings = + settingsBuilder.getInterceptDeploymentGroupSettings().build(); + createInterceptDeploymentGroupSettings = + settingsBuilder.createInterceptDeploymentGroupSettings().build(); + createInterceptDeploymentGroupOperationSettings = + settingsBuilder.createInterceptDeploymentGroupOperationSettings().build(); + updateInterceptDeploymentGroupSettings = + settingsBuilder.updateInterceptDeploymentGroupSettings().build(); + updateInterceptDeploymentGroupOperationSettings = + settingsBuilder.updateInterceptDeploymentGroupOperationSettings().build(); + deleteInterceptDeploymentGroupSettings = + settingsBuilder.deleteInterceptDeploymentGroupSettings().build(); + deleteInterceptDeploymentGroupOperationSettings = + settingsBuilder.deleteInterceptDeploymentGroupOperationSettings().build(); + listInterceptDeploymentsSettings = settingsBuilder.listInterceptDeploymentsSettings().build(); + getInterceptDeploymentSettings = settingsBuilder.getInterceptDeploymentSettings().build(); + createInterceptDeploymentSettings = settingsBuilder.createInterceptDeploymentSettings().build(); + createInterceptDeploymentOperationSettings = + settingsBuilder.createInterceptDeploymentOperationSettings().build(); + updateInterceptDeploymentSettings = settingsBuilder.updateInterceptDeploymentSettings().build(); + updateInterceptDeploymentOperationSettings = + settingsBuilder.updateInterceptDeploymentOperationSettings().build(); + deleteInterceptDeploymentSettings = settingsBuilder.deleteInterceptDeploymentSettings().build(); + deleteInterceptDeploymentOperationSettings = + settingsBuilder.deleteInterceptDeploymentOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-network-security") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for InterceptStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + ListInterceptEndpointGroupsPagedResponse> + listInterceptEndpointGroupsSettings; + private final UnaryCallSettings.Builder< + GetInterceptEndpointGroupRequest, InterceptEndpointGroup> + getInterceptEndpointGroupSettings; + private final UnaryCallSettings.Builder + createInterceptEndpointGroupSettings; + private final OperationCallSettings.Builder< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationSettings; + private final UnaryCallSettings.Builder + updateInterceptEndpointGroupSettings; + private final OperationCallSettings.Builder< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationSettings; + private final UnaryCallSettings.Builder + deleteInterceptEndpointGroupSettings; + private final OperationCallSettings.Builder< + DeleteInterceptEndpointGroupRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupOperationSettings; + private final PagedCallSettings.Builder< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsSettings; + private final UnaryCallSettings.Builder< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationSettings; + private final UnaryCallSettings.Builder< + CreateInterceptEndpointGroupAssociationRequest, Operation> + createInterceptEndpointGroupAssociationSettings; + private final OperationCallSettings.Builder< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationSettings; + private final UnaryCallSettings.Builder< + UpdateInterceptEndpointGroupAssociationRequest, Operation> + updateInterceptEndpointGroupAssociationSettings; + private final OperationCallSettings.Builder< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationSettings; + private final UnaryCallSettings.Builder< + DeleteInterceptEndpointGroupAssociationRequest, Operation> + deleteInterceptEndpointGroupAssociationSettings; + private final OperationCallSettings.Builder< + DeleteInterceptEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupAssociationOperationSettings; + private final PagedCallSettings.Builder< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsSettings; + private final UnaryCallSettings.Builder< + GetInterceptDeploymentGroupRequest, InterceptDeploymentGroup> + getInterceptDeploymentGroupSettings; + private final UnaryCallSettings.Builder + createInterceptDeploymentGroupSettings; + private final OperationCallSettings.Builder< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationSettings; + private final UnaryCallSettings.Builder + updateInterceptDeploymentGroupSettings; + private final OperationCallSettings.Builder< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationSettings; + private final UnaryCallSettings.Builder + deleteInterceptDeploymentGroupSettings; + private final OperationCallSettings.Builder< + DeleteInterceptDeploymentGroupRequest, Empty, OperationMetadata> + deleteInterceptDeploymentGroupOperationSettings; + private final PagedCallSettings.Builder< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + ListInterceptDeploymentsPagedResponse> + listInterceptDeploymentsSettings; + private final UnaryCallSettings.Builder + getInterceptDeploymentSettings; + private final UnaryCallSettings.Builder + createInterceptDeploymentSettings; + private final OperationCallSettings.Builder< + CreateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + createInterceptDeploymentOperationSettings; + private final UnaryCallSettings.Builder + updateInterceptDeploymentSettings; + private final OperationCallSettings.Builder< + UpdateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + updateInterceptDeploymentOperationSettings; + private final UnaryCallSettings.Builder + deleteInterceptDeploymentSettings; + private final OperationCallSettings.Builder< + DeleteInterceptDeploymentRequest, Empty, OperationMetadata> + deleteInterceptDeploymentOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listInterceptEndpointGroupsSettings = + PagedCallSettings.newBuilder(LIST_INTERCEPT_ENDPOINT_GROUPS_PAGE_STR_FACT); + getInterceptEndpointGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createInterceptEndpointGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createInterceptEndpointGroupOperationSettings = OperationCallSettings.newBuilder(); + updateInterceptEndpointGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateInterceptEndpointGroupOperationSettings = OperationCallSettings.newBuilder(); + deleteInterceptEndpointGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteInterceptEndpointGroupOperationSettings = OperationCallSettings.newBuilder(); + listInterceptEndpointGroupAssociationsSettings = + PagedCallSettings.newBuilder(LIST_INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS_PAGE_STR_FACT); + getInterceptEndpointGroupAssociationSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + createInterceptEndpointGroupAssociationSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + createInterceptEndpointGroupAssociationOperationSettings = OperationCallSettings.newBuilder(); + updateInterceptEndpointGroupAssociationSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateInterceptEndpointGroupAssociationOperationSettings = OperationCallSettings.newBuilder(); + deleteInterceptEndpointGroupAssociationSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteInterceptEndpointGroupAssociationOperationSettings = OperationCallSettings.newBuilder(); + listInterceptDeploymentGroupsSettings = + PagedCallSettings.newBuilder(LIST_INTERCEPT_DEPLOYMENT_GROUPS_PAGE_STR_FACT); + getInterceptDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createInterceptDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createInterceptDeploymentGroupOperationSettings = OperationCallSettings.newBuilder(); + updateInterceptDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateInterceptDeploymentGroupOperationSettings = OperationCallSettings.newBuilder(); + deleteInterceptDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteInterceptDeploymentGroupOperationSettings = OperationCallSettings.newBuilder(); + listInterceptDeploymentsSettings = + PagedCallSettings.newBuilder(LIST_INTERCEPT_DEPLOYMENTS_PAGE_STR_FACT); + getInterceptDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createInterceptDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createInterceptDeploymentOperationSettings = OperationCallSettings.newBuilder(); + updateInterceptDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateInterceptDeploymentOperationSettings = OperationCallSettings.newBuilder(); + deleteInterceptDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteInterceptDeploymentOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listInterceptEndpointGroupsSettings, + getInterceptEndpointGroupSettings, + createInterceptEndpointGroupSettings, + updateInterceptEndpointGroupSettings, + deleteInterceptEndpointGroupSettings, + listInterceptEndpointGroupAssociationsSettings, + getInterceptEndpointGroupAssociationSettings, + createInterceptEndpointGroupAssociationSettings, + updateInterceptEndpointGroupAssociationSettings, + deleteInterceptEndpointGroupAssociationSettings, + listInterceptDeploymentGroupsSettings, + getInterceptDeploymentGroupSettings, + createInterceptDeploymentGroupSettings, + updateInterceptDeploymentGroupSettings, + deleteInterceptDeploymentGroupSettings, + listInterceptDeploymentsSettings, + getInterceptDeploymentSettings, + createInterceptDeploymentSettings, + updateInterceptDeploymentSettings, + deleteInterceptDeploymentSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(InterceptStubSettings settings) { + super(settings); + + listInterceptEndpointGroupsSettings = + settings.listInterceptEndpointGroupsSettings.toBuilder(); + getInterceptEndpointGroupSettings = settings.getInterceptEndpointGroupSettings.toBuilder(); + createInterceptEndpointGroupSettings = + settings.createInterceptEndpointGroupSettings.toBuilder(); + createInterceptEndpointGroupOperationSettings = + settings.createInterceptEndpointGroupOperationSettings.toBuilder(); + updateInterceptEndpointGroupSettings = + settings.updateInterceptEndpointGroupSettings.toBuilder(); + updateInterceptEndpointGroupOperationSettings = + settings.updateInterceptEndpointGroupOperationSettings.toBuilder(); + deleteInterceptEndpointGroupSettings = + settings.deleteInterceptEndpointGroupSettings.toBuilder(); + deleteInterceptEndpointGroupOperationSettings = + settings.deleteInterceptEndpointGroupOperationSettings.toBuilder(); + listInterceptEndpointGroupAssociationsSettings = + settings.listInterceptEndpointGroupAssociationsSettings.toBuilder(); + getInterceptEndpointGroupAssociationSettings = + settings.getInterceptEndpointGroupAssociationSettings.toBuilder(); + createInterceptEndpointGroupAssociationSettings = + settings.createInterceptEndpointGroupAssociationSettings.toBuilder(); + createInterceptEndpointGroupAssociationOperationSettings = + settings.createInterceptEndpointGroupAssociationOperationSettings.toBuilder(); + updateInterceptEndpointGroupAssociationSettings = + settings.updateInterceptEndpointGroupAssociationSettings.toBuilder(); + updateInterceptEndpointGroupAssociationOperationSettings = + settings.updateInterceptEndpointGroupAssociationOperationSettings.toBuilder(); + deleteInterceptEndpointGroupAssociationSettings = + settings.deleteInterceptEndpointGroupAssociationSettings.toBuilder(); + deleteInterceptEndpointGroupAssociationOperationSettings = + settings.deleteInterceptEndpointGroupAssociationOperationSettings.toBuilder(); + listInterceptDeploymentGroupsSettings = + settings.listInterceptDeploymentGroupsSettings.toBuilder(); + getInterceptDeploymentGroupSettings = + settings.getInterceptDeploymentGroupSettings.toBuilder(); + createInterceptDeploymentGroupSettings = + settings.createInterceptDeploymentGroupSettings.toBuilder(); + createInterceptDeploymentGroupOperationSettings = + settings.createInterceptDeploymentGroupOperationSettings.toBuilder(); + updateInterceptDeploymentGroupSettings = + settings.updateInterceptDeploymentGroupSettings.toBuilder(); + updateInterceptDeploymentGroupOperationSettings = + settings.updateInterceptDeploymentGroupOperationSettings.toBuilder(); + deleteInterceptDeploymentGroupSettings = + settings.deleteInterceptDeploymentGroupSettings.toBuilder(); + deleteInterceptDeploymentGroupOperationSettings = + settings.deleteInterceptDeploymentGroupOperationSettings.toBuilder(); + listInterceptDeploymentsSettings = settings.listInterceptDeploymentsSettings.toBuilder(); + getInterceptDeploymentSettings = settings.getInterceptDeploymentSettings.toBuilder(); + createInterceptDeploymentSettings = settings.createInterceptDeploymentSettings.toBuilder(); + createInterceptDeploymentOperationSettings = + settings.createInterceptDeploymentOperationSettings.toBuilder(); + updateInterceptDeploymentSettings = settings.updateInterceptDeploymentSettings.toBuilder(); + updateInterceptDeploymentOperationSettings = + settings.updateInterceptDeploymentOperationSettings.toBuilder(); + deleteInterceptDeploymentSettings = settings.deleteInterceptDeploymentSettings.toBuilder(); + deleteInterceptDeploymentOperationSettings = + settings.deleteInterceptDeploymentOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listInterceptEndpointGroupsSettings, + getInterceptEndpointGroupSettings, + createInterceptEndpointGroupSettings, + updateInterceptEndpointGroupSettings, + deleteInterceptEndpointGroupSettings, + listInterceptEndpointGroupAssociationsSettings, + getInterceptEndpointGroupAssociationSettings, + createInterceptEndpointGroupAssociationSettings, + updateInterceptEndpointGroupAssociationSettings, + deleteInterceptEndpointGroupAssociationSettings, + listInterceptDeploymentGroupsSettings, + getInterceptDeploymentGroupSettings, + createInterceptDeploymentGroupSettings, + updateInterceptDeploymentGroupSettings, + deleteInterceptDeploymentGroupSettings, + listInterceptDeploymentsSettings, + getInterceptDeploymentSettings, + createInterceptDeploymentSettings, + updateInterceptDeploymentSettings, + deleteInterceptDeploymentSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listInterceptEndpointGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getInterceptEndpointGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createInterceptEndpointGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateInterceptEndpointGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteInterceptEndpointGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listInterceptEndpointGroupAssociationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getInterceptEndpointGroupAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createInterceptEndpointGroupAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateInterceptEndpointGroupAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteInterceptEndpointGroupAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listInterceptDeploymentGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getInterceptDeploymentGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createInterceptDeploymentGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateInterceptDeploymentGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteInterceptDeploymentGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listInterceptDeploymentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getInterceptDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createInterceptDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateInterceptDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteInterceptDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createInterceptEndpointGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(InterceptEndpointGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateInterceptEndpointGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(InterceptEndpointGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteInterceptEndpointGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createInterceptEndpointGroupAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + InterceptEndpointGroupAssociation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateInterceptEndpointGroupAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + InterceptEndpointGroupAssociation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteInterceptEndpointGroupAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createInterceptDeploymentGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(InterceptDeploymentGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateInterceptDeploymentGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(InterceptDeploymentGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteInterceptDeploymentGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createInterceptDeploymentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(InterceptDeployment.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateInterceptDeploymentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(InterceptDeployment.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteInterceptDeploymentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listInterceptEndpointGroups. */ + public PagedCallSettings.Builder< + ListInterceptEndpointGroupsRequest, + ListInterceptEndpointGroupsResponse, + ListInterceptEndpointGroupsPagedResponse> + listInterceptEndpointGroupsSettings() { + return listInterceptEndpointGroupsSettings; + } + + /** Returns the builder for the settings used for calls to getInterceptEndpointGroup. */ + public UnaryCallSettings.Builder + getInterceptEndpointGroupSettings() { + return getInterceptEndpointGroupSettings; + } + + /** Returns the builder for the settings used for calls to createInterceptEndpointGroup. */ + public UnaryCallSettings.Builder + createInterceptEndpointGroupSettings() { + return createInterceptEndpointGroupSettings; + } + + /** Returns the builder for the settings used for calls to createInterceptEndpointGroup. */ + public OperationCallSettings.Builder< + CreateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + createInterceptEndpointGroupOperationSettings() { + return createInterceptEndpointGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateInterceptEndpointGroup. */ + public UnaryCallSettings.Builder + updateInterceptEndpointGroupSettings() { + return updateInterceptEndpointGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateInterceptEndpointGroup. */ + public OperationCallSettings.Builder< + UpdateInterceptEndpointGroupRequest, InterceptEndpointGroup, OperationMetadata> + updateInterceptEndpointGroupOperationSettings() { + return updateInterceptEndpointGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteInterceptEndpointGroup. */ + public UnaryCallSettings.Builder + deleteInterceptEndpointGroupSettings() { + return deleteInterceptEndpointGroupSettings; + } + + /** Returns the builder for the settings used for calls to deleteInterceptEndpointGroup. */ + public OperationCallSettings.Builder< + DeleteInterceptEndpointGroupRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupOperationSettings() { + return deleteInterceptEndpointGroupOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * listInterceptEndpointGroupAssociations. + */ + public PagedCallSettings.Builder< + ListInterceptEndpointGroupAssociationsRequest, + ListInterceptEndpointGroupAssociationsResponse, + ListInterceptEndpointGroupAssociationsPagedResponse> + listInterceptEndpointGroupAssociationsSettings() { + return listInterceptEndpointGroupAssociationsSettings; + } + + /** + * Returns the builder for the settings used for calls to getInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder< + GetInterceptEndpointGroupAssociationRequest, InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociationSettings() { + return getInterceptEndpointGroupAssociationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * createInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + createInterceptEndpointGroupAssociationSettings() { + return createInterceptEndpointGroupAssociationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * createInterceptEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + CreateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + createInterceptEndpointGroupAssociationOperationSettings() { + return createInterceptEndpointGroupAssociationOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * updateInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + updateInterceptEndpointGroupAssociationSettings() { + return updateInterceptEndpointGroupAssociationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * updateInterceptEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + UpdateInterceptEndpointGroupAssociationRequest, + InterceptEndpointGroupAssociation, + OperationMetadata> + updateInterceptEndpointGroupAssociationOperationSettings() { + return updateInterceptEndpointGroupAssociationOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * deleteInterceptEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + deleteInterceptEndpointGroupAssociationSettings() { + return deleteInterceptEndpointGroupAssociationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * deleteInterceptEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + DeleteInterceptEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteInterceptEndpointGroupAssociationOperationSettings() { + return deleteInterceptEndpointGroupAssociationOperationSettings; + } + + /** Returns the builder for the settings used for calls to listInterceptDeploymentGroups. */ + public PagedCallSettings.Builder< + ListInterceptDeploymentGroupsRequest, + ListInterceptDeploymentGroupsResponse, + ListInterceptDeploymentGroupsPagedResponse> + listInterceptDeploymentGroupsSettings() { + return listInterceptDeploymentGroupsSettings; + } + + /** Returns the builder for the settings used for calls to getInterceptDeploymentGroup. */ + public UnaryCallSettings.Builder + getInterceptDeploymentGroupSettings() { + return getInterceptDeploymentGroupSettings; + } + + /** Returns the builder for the settings used for calls to createInterceptDeploymentGroup. */ + public UnaryCallSettings.Builder + createInterceptDeploymentGroupSettings() { + return createInterceptDeploymentGroupSettings; + } + + /** Returns the builder for the settings used for calls to createInterceptDeploymentGroup. */ + public OperationCallSettings.Builder< + CreateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + createInterceptDeploymentGroupOperationSettings() { + return createInterceptDeploymentGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateInterceptDeploymentGroup. */ + public UnaryCallSettings.Builder + updateInterceptDeploymentGroupSettings() { + return updateInterceptDeploymentGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateInterceptDeploymentGroup. */ + public OperationCallSettings.Builder< + UpdateInterceptDeploymentGroupRequest, InterceptDeploymentGroup, OperationMetadata> + updateInterceptDeploymentGroupOperationSettings() { + return updateInterceptDeploymentGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteInterceptDeploymentGroup. */ + public UnaryCallSettings.Builder + deleteInterceptDeploymentGroupSettings() { + return deleteInterceptDeploymentGroupSettings; + } + + /** Returns the builder for the settings used for calls to deleteInterceptDeploymentGroup. */ + public OperationCallSettings.Builder< + DeleteInterceptDeploymentGroupRequest, Empty, OperationMetadata> + deleteInterceptDeploymentGroupOperationSettings() { + return deleteInterceptDeploymentGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to listInterceptDeployments. */ + public PagedCallSettings.Builder< + ListInterceptDeploymentsRequest, + ListInterceptDeploymentsResponse, + ListInterceptDeploymentsPagedResponse> + listInterceptDeploymentsSettings() { + return listInterceptDeploymentsSettings; + } + + /** Returns the builder for the settings used for calls to getInterceptDeployment. */ + public UnaryCallSettings.Builder + getInterceptDeploymentSettings() { + return getInterceptDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to createInterceptDeployment. */ + public UnaryCallSettings.Builder + createInterceptDeploymentSettings() { + return createInterceptDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to createInterceptDeployment. */ + public OperationCallSettings.Builder< + CreateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + createInterceptDeploymentOperationSettings() { + return createInterceptDeploymentOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateInterceptDeployment. */ + public UnaryCallSettings.Builder + updateInterceptDeploymentSettings() { + return updateInterceptDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to updateInterceptDeployment. */ + public OperationCallSettings.Builder< + UpdateInterceptDeploymentRequest, InterceptDeployment, OperationMetadata> + updateInterceptDeploymentOperationSettings() { + return updateInterceptDeploymentOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteInterceptDeployment. */ + public UnaryCallSettings.Builder + deleteInterceptDeploymentSettings() { + return deleteInterceptDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to deleteInterceptDeployment. */ + public OperationCallSettings.Builder + deleteInterceptDeploymentOperationSettings() { + return deleteInterceptDeploymentOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public InterceptStubSettings build() throws IOException { + return new InterceptStubSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStub.java new file mode 100644 index 000000000000..6d21f2e48465 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStub.java @@ -0,0 +1,338 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.MirroringClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Mirroring service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class MirroringStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listMirroringEndpointGroupsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMirroringEndpointGroupsPagedCallable()"); + } + + public UnaryCallable + listMirroringEndpointGroupsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMirroringEndpointGroupsCallable()"); + } + + public UnaryCallable + getMirroringEndpointGroupCallable() { + throw new UnsupportedOperationException("Not implemented: getMirroringEndpointGroupCallable()"); + } + + public OperationCallable< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMirroringEndpointGroupOperationCallable()"); + } + + public UnaryCallable + createMirroringEndpointGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMirroringEndpointGroupCallable()"); + } + + public OperationCallable< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMirroringEndpointGroupOperationCallable()"); + } + + public UnaryCallable + updateMirroringEndpointGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMirroringEndpointGroupCallable()"); + } + + public OperationCallable + deleteMirroringEndpointGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMirroringEndpointGroupOperationCallable()"); + } + + public UnaryCallable + deleteMirroringEndpointGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMirroringEndpointGroupCallable()"); + } + + public UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMirroringEndpointGroupAssociationsPagedCallable()"); + } + + public UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse> + listMirroringEndpointGroupAssociationsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMirroringEndpointGroupAssociationsCallable()"); + } + + public UnaryCallable< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: getMirroringEndpointGroupAssociationCallable()"); + } + + public OperationCallable< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMirroringEndpointGroupAssociationOperationCallable()"); + } + + public UnaryCallable + createMirroringEndpointGroupAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMirroringEndpointGroupAssociationCallable()"); + } + + public OperationCallable< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMirroringEndpointGroupAssociationOperationCallable()"); + } + + public UnaryCallable + updateMirroringEndpointGroupAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMirroringEndpointGroupAssociationCallable()"); + } + + public OperationCallable + deleteMirroringEndpointGroupAssociationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMirroringEndpointGroupAssociationOperationCallable()"); + } + + public UnaryCallable + deleteMirroringEndpointGroupAssociationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMirroringEndpointGroupAssociationCallable()"); + } + + public UnaryCallable< + ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMirroringDeploymentGroupsPagedCallable()"); + } + + public UnaryCallable + listMirroringDeploymentGroupsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMirroringDeploymentGroupsCallable()"); + } + + public UnaryCallable + getMirroringDeploymentGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: getMirroringDeploymentGroupCallable()"); + } + + public OperationCallable< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMirroringDeploymentGroupOperationCallable()"); + } + + public UnaryCallable + createMirroringDeploymentGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMirroringDeploymentGroupCallable()"); + } + + public OperationCallable< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMirroringDeploymentGroupOperationCallable()"); + } + + public UnaryCallable + updateMirroringDeploymentGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMirroringDeploymentGroupCallable()"); + } + + public OperationCallable + deleteMirroringDeploymentGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMirroringDeploymentGroupOperationCallable()"); + } + + public UnaryCallable + deleteMirroringDeploymentGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMirroringDeploymentGroupCallable()"); + } + + public UnaryCallable + listMirroringDeploymentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMirroringDeploymentsPagedCallable()"); + } + + public UnaryCallable + listMirroringDeploymentsCallable() { + throw new UnsupportedOperationException("Not implemented: listMirroringDeploymentsCallable()"); + } + + public UnaryCallable + getMirroringDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: getMirroringDeploymentCallable()"); + } + + public OperationCallable + createMirroringDeploymentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMirroringDeploymentOperationCallable()"); + } + + public UnaryCallable + createMirroringDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: createMirroringDeploymentCallable()"); + } + + public OperationCallable + updateMirroringDeploymentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMirroringDeploymentOperationCallable()"); + } + + public UnaryCallable + updateMirroringDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: updateMirroringDeploymentCallable()"); + } + + public OperationCallable + deleteMirroringDeploymentOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMirroringDeploymentOperationCallable()"); + } + + public UnaryCallable + deleteMirroringDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteMirroringDeploymentCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStubSettings.java new file mode 100644 index 000000000000..1f8ea30ef705 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStubSettings.java @@ -0,0 +1,2099 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.MirroringClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link MirroringStub}. + * + *

                                                                                              The default instance has everything set to sensible defaults: + * + *

                                                                                                + *
                                                                                              • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                              • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                              + * + *

                                                                                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                              For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getMirroringEndpointGroup: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * MirroringStubSettings.Builder mirroringSettingsBuilder = MirroringStubSettings.newBuilder();
                                                                                              + * mirroringSettingsBuilder
                                                                                              + *     .getMirroringEndpointGroupSettings()
                                                                                              + *     .setRetrySettings(
                                                                                              + *         mirroringSettingsBuilder
                                                                                              + *             .getMirroringEndpointGroupSettings()
                                                                                              + *             .getRetrySettings()
                                                                                              + *             .toBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                              + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                              + *             .setMaxAttempts(5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                              + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                              + *             .setRetryDelayMultiplier(1.3)
                                                                                              + *             .setRpcTimeoutMultiplier(1.5)
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                              + *             .build());
                                                                                              + * MirroringStubSettings mirroringSettings = mirroringSettingsBuilder.build();
                                                                                              + * }
                                                                                              + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

                                                                                              To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createMirroringEndpointGroup: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * MirroringStubSettings.Builder mirroringSettingsBuilder = MirroringStubSettings.newBuilder();
                                                                                              + * TimedRetryAlgorithm timedRetryAlgorithm =
                                                                                              + *     OperationalTimedPollAlgorithm.create(
                                                                                              + *         RetrySettings.newBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                                                                              + *             .setRetryDelayMultiplier(1.5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                                                                              + *             .build());
                                                                                              + * mirroringSettingsBuilder
                                                                                              + *     .createClusterOperationSettings()
                                                                                              + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                                                                              + *     .build();
                                                                                              + * }
                                                                                              + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class MirroringStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + ListMirroringEndpointGroupsPagedResponse> + listMirroringEndpointGroupsSettings; + private final UnaryCallSettings + getMirroringEndpointGroupSettings; + private final UnaryCallSettings + createMirroringEndpointGroupSettings; + private final OperationCallSettings< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationSettings; + private final UnaryCallSettings + updateMirroringEndpointGroupSettings; + private final OperationCallSettings< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationSettings; + private final UnaryCallSettings + deleteMirroringEndpointGroupSettings; + private final OperationCallSettings + deleteMirroringEndpointGroupOperationSettings; + private final PagedCallSettings< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsSettings; + private final UnaryCallSettings< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationSettings; + private final UnaryCallSettings + createMirroringEndpointGroupAssociationSettings; + private final OperationCallSettings< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationSettings; + private final UnaryCallSettings + updateMirroringEndpointGroupAssociationSettings; + private final OperationCallSettings< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationSettings; + private final UnaryCallSettings + deleteMirroringEndpointGroupAssociationSettings; + private final OperationCallSettings< + DeleteMirroringEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupAssociationOperationSettings; + private final PagedCallSettings< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsSettings; + private final UnaryCallSettings + getMirroringDeploymentGroupSettings; + private final UnaryCallSettings + createMirroringDeploymentGroupSettings; + private final OperationCallSettings< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationSettings; + private final UnaryCallSettings + updateMirroringDeploymentGroupSettings; + private final OperationCallSettings< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationSettings; + private final UnaryCallSettings + deleteMirroringDeploymentGroupSettings; + private final OperationCallSettings< + DeleteMirroringDeploymentGroupRequest, Empty, OperationMetadata> + deleteMirroringDeploymentGroupOperationSettings; + private final PagedCallSettings< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + ListMirroringDeploymentsPagedResponse> + listMirroringDeploymentsSettings; + private final UnaryCallSettings + getMirroringDeploymentSettings; + private final UnaryCallSettings + createMirroringDeploymentSettings; + private final OperationCallSettings< + CreateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + createMirroringDeploymentOperationSettings; + private final UnaryCallSettings + updateMirroringDeploymentSettings; + private final OperationCallSettings< + UpdateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + updateMirroringDeploymentOperationSettings; + private final UnaryCallSettings + deleteMirroringDeploymentSettings; + private final OperationCallSettings + deleteMirroringDeploymentOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup> + LIST_MIRRORING_ENDPOINT_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMirroringEndpointGroupsRequest injectToken( + ListMirroringEndpointGroupsRequest payload, String token) { + return ListMirroringEndpointGroupsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMirroringEndpointGroupsRequest injectPageSize( + ListMirroringEndpointGroupsRequest payload, int pageSize) { + return ListMirroringEndpointGroupsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMirroringEndpointGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMirroringEndpointGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMirroringEndpointGroupsResponse payload) { + return payload.getMirroringEndpointGroupsList(); + } + }; + + private static final PagedListDescriptor< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation> + LIST_MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMirroringEndpointGroupAssociationsRequest injectToken( + ListMirroringEndpointGroupAssociationsRequest payload, String token) { + return ListMirroringEndpointGroupAssociationsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMirroringEndpointGroupAssociationsRequest injectPageSize( + ListMirroringEndpointGroupAssociationsRequest payload, int pageSize) { + return ListMirroringEndpointGroupAssociationsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMirroringEndpointGroupAssociationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMirroringEndpointGroupAssociationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMirroringEndpointGroupAssociationsResponse payload) { + return payload.getMirroringEndpointGroupAssociationsList(); + } + }; + + private static final PagedListDescriptor< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup> + LIST_MIRRORING_DEPLOYMENT_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMirroringDeploymentGroupsRequest injectToken( + ListMirroringDeploymentGroupsRequest payload, String token) { + return ListMirroringDeploymentGroupsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMirroringDeploymentGroupsRequest injectPageSize( + ListMirroringDeploymentGroupsRequest payload, int pageSize) { + return ListMirroringDeploymentGroupsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMirroringDeploymentGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMirroringDeploymentGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMirroringDeploymentGroupsResponse payload) { + return payload.getMirroringDeploymentGroupsList(); + } + }; + + private static final PagedListDescriptor< + ListMirroringDeploymentsRequest, ListMirroringDeploymentsResponse, MirroringDeployment> + LIST_MIRRORING_DEPLOYMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMirroringDeploymentsRequest injectToken( + ListMirroringDeploymentsRequest payload, String token) { + return ListMirroringDeploymentsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMirroringDeploymentsRequest injectPageSize( + ListMirroringDeploymentsRequest payload, int pageSize) { + return ListMirroringDeploymentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMirroringDeploymentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMirroringDeploymentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMirroringDeploymentsResponse payload) { + return payload.getMirroringDeploymentsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + ListMirroringEndpointGroupsPagedResponse> + LIST_MIRRORING_ENDPOINT_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + ListMirroringEndpointGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsResponse> + callable, + ListMirroringEndpointGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + MirroringEndpointGroup> + pageContext = + PageContext.create( + callable, LIST_MIRRORING_ENDPOINT_GROUPS_PAGE_STR_DESC, request, context); + return ListMirroringEndpointGroupsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + ListMirroringEndpointGroupAssociationsPagedResponse> + LIST_MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + ListMirroringEndpointGroupAssociationsPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse> + callable, + ListMirroringEndpointGroupAssociationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + MirroringEndpointGroupAssociation> + pageContext = + PageContext.create( + callable, + LIST_MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS_PAGE_STR_DESC, + request, + context); + return ListMirroringEndpointGroupAssociationsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + ListMirroringDeploymentGroupsPagedResponse> + LIST_MIRRORING_DEPLOYMENT_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + ListMirroringDeploymentGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsResponse> + callable, + ListMirroringDeploymentGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + MirroringDeploymentGroup> + pageContext = + PageContext.create( + callable, + LIST_MIRRORING_DEPLOYMENT_GROUPS_PAGE_STR_DESC, + request, + context); + return ListMirroringDeploymentGroupsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + ListMirroringDeploymentsPagedResponse> + LIST_MIRRORING_DEPLOYMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + ListMirroringDeploymentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListMirroringDeploymentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + MirroringDeployment> + pageContext = + PageContext.create( + callable, LIST_MIRRORING_DEPLOYMENTS_PAGE_STR_DESC, request, context); + return ListMirroringDeploymentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listMirroringEndpointGroups. */ + public PagedCallSettings< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + ListMirroringEndpointGroupsPagedResponse> + listMirroringEndpointGroupsSettings() { + return listMirroringEndpointGroupsSettings; + } + + /** Returns the object with the settings used for calls to getMirroringEndpointGroup. */ + public UnaryCallSettings + getMirroringEndpointGroupSettings() { + return getMirroringEndpointGroupSettings; + } + + /** Returns the object with the settings used for calls to createMirroringEndpointGroup. */ + public UnaryCallSettings + createMirroringEndpointGroupSettings() { + return createMirroringEndpointGroupSettings; + } + + /** Returns the object with the settings used for calls to createMirroringEndpointGroup. */ + public OperationCallSettings< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationSettings() { + return createMirroringEndpointGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateMirroringEndpointGroup. */ + public UnaryCallSettings + updateMirroringEndpointGroupSettings() { + return updateMirroringEndpointGroupSettings; + } + + /** Returns the object with the settings used for calls to updateMirroringEndpointGroup. */ + public OperationCallSettings< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationSettings() { + return updateMirroringEndpointGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMirroringEndpointGroup. */ + public UnaryCallSettings + deleteMirroringEndpointGroupSettings() { + return deleteMirroringEndpointGroupSettings; + } + + /** Returns the object with the settings used for calls to deleteMirroringEndpointGroup. */ + public OperationCallSettings + deleteMirroringEndpointGroupOperationSettings() { + return deleteMirroringEndpointGroupOperationSettings; + } + + /** + * Returns the object with the settings used for calls to listMirroringEndpointGroupAssociations. + */ + public PagedCallSettings< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsSettings() { + return listMirroringEndpointGroupAssociationsSettings; + } + + /** + * Returns the object with the settings used for calls to getMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationSettings() { + return getMirroringEndpointGroupAssociationSettings; + } + + /** + * Returns the object with the settings used for calls to createMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings + createMirroringEndpointGroupAssociationSettings() { + return createMirroringEndpointGroupAssociationSettings; + } + + /** + * Returns the object with the settings used for calls to createMirroringEndpointGroupAssociation. + */ + public OperationCallSettings< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationSettings() { + return createMirroringEndpointGroupAssociationOperationSettings; + } + + /** + * Returns the object with the settings used for calls to updateMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings + updateMirroringEndpointGroupAssociationSettings() { + return updateMirroringEndpointGroupAssociationSettings; + } + + /** + * Returns the object with the settings used for calls to updateMirroringEndpointGroupAssociation. + */ + public OperationCallSettings< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationSettings() { + return updateMirroringEndpointGroupAssociationOperationSettings; + } + + /** + * Returns the object with the settings used for calls to deleteMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings + deleteMirroringEndpointGroupAssociationSettings() { + return deleteMirroringEndpointGroupAssociationSettings; + } + + /** + * Returns the object with the settings used for calls to deleteMirroringEndpointGroupAssociation. + */ + public OperationCallSettings< + DeleteMirroringEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupAssociationOperationSettings() { + return deleteMirroringEndpointGroupAssociationOperationSettings; + } + + /** Returns the object with the settings used for calls to listMirroringDeploymentGroups. */ + public PagedCallSettings< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsSettings() { + return listMirroringDeploymentGroupsSettings; + } + + /** Returns the object with the settings used for calls to getMirroringDeploymentGroup. */ + public UnaryCallSettings + getMirroringDeploymentGroupSettings() { + return getMirroringDeploymentGroupSettings; + } + + /** Returns the object with the settings used for calls to createMirroringDeploymentGroup. */ + public UnaryCallSettings + createMirroringDeploymentGroupSettings() { + return createMirroringDeploymentGroupSettings; + } + + /** Returns the object with the settings used for calls to createMirroringDeploymentGroup. */ + public OperationCallSettings< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationSettings() { + return createMirroringDeploymentGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateMirroringDeploymentGroup. */ + public UnaryCallSettings + updateMirroringDeploymentGroupSettings() { + return updateMirroringDeploymentGroupSettings; + } + + /** Returns the object with the settings used for calls to updateMirroringDeploymentGroup. */ + public OperationCallSettings< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationSettings() { + return updateMirroringDeploymentGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMirroringDeploymentGroup. */ + public UnaryCallSettings + deleteMirroringDeploymentGroupSettings() { + return deleteMirroringDeploymentGroupSettings; + } + + /** Returns the object with the settings used for calls to deleteMirroringDeploymentGroup. */ + public OperationCallSettings + deleteMirroringDeploymentGroupOperationSettings() { + return deleteMirroringDeploymentGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to listMirroringDeployments. */ + public PagedCallSettings< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + ListMirroringDeploymentsPagedResponse> + listMirroringDeploymentsSettings() { + return listMirroringDeploymentsSettings; + } + + /** Returns the object with the settings used for calls to getMirroringDeployment. */ + public UnaryCallSettings + getMirroringDeploymentSettings() { + return getMirroringDeploymentSettings; + } + + /** Returns the object with the settings used for calls to createMirroringDeployment. */ + public UnaryCallSettings + createMirroringDeploymentSettings() { + return createMirroringDeploymentSettings; + } + + /** Returns the object with the settings used for calls to createMirroringDeployment. */ + public OperationCallSettings< + CreateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + createMirroringDeploymentOperationSettings() { + return createMirroringDeploymentOperationSettings; + } + + /** Returns the object with the settings used for calls to updateMirroringDeployment. */ + public UnaryCallSettings + updateMirroringDeploymentSettings() { + return updateMirroringDeploymentSettings; + } + + /** Returns the object with the settings used for calls to updateMirroringDeployment. */ + public OperationCallSettings< + UpdateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + updateMirroringDeploymentOperationSettings() { + return updateMirroringDeploymentOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMirroringDeployment. */ + public UnaryCallSettings + deleteMirroringDeploymentSettings() { + return deleteMirroringDeploymentSettings; + } + + /** Returns the object with the settings used for calls to deleteMirroringDeployment. */ + public OperationCallSettings + deleteMirroringDeploymentOperationSettings() { + return deleteMirroringDeploymentOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public MirroringStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcMirroringStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networksecurity"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "networksecurity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networksecurity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(MirroringStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MirroringStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listMirroringEndpointGroupsSettings = + settingsBuilder.listMirroringEndpointGroupsSettings().build(); + getMirroringEndpointGroupSettings = settingsBuilder.getMirroringEndpointGroupSettings().build(); + createMirroringEndpointGroupSettings = + settingsBuilder.createMirroringEndpointGroupSettings().build(); + createMirroringEndpointGroupOperationSettings = + settingsBuilder.createMirroringEndpointGroupOperationSettings().build(); + updateMirroringEndpointGroupSettings = + settingsBuilder.updateMirroringEndpointGroupSettings().build(); + updateMirroringEndpointGroupOperationSettings = + settingsBuilder.updateMirroringEndpointGroupOperationSettings().build(); + deleteMirroringEndpointGroupSettings = + settingsBuilder.deleteMirroringEndpointGroupSettings().build(); + deleteMirroringEndpointGroupOperationSettings = + settingsBuilder.deleteMirroringEndpointGroupOperationSettings().build(); + listMirroringEndpointGroupAssociationsSettings = + settingsBuilder.listMirroringEndpointGroupAssociationsSettings().build(); + getMirroringEndpointGroupAssociationSettings = + settingsBuilder.getMirroringEndpointGroupAssociationSettings().build(); + createMirroringEndpointGroupAssociationSettings = + settingsBuilder.createMirroringEndpointGroupAssociationSettings().build(); + createMirroringEndpointGroupAssociationOperationSettings = + settingsBuilder.createMirroringEndpointGroupAssociationOperationSettings().build(); + updateMirroringEndpointGroupAssociationSettings = + settingsBuilder.updateMirroringEndpointGroupAssociationSettings().build(); + updateMirroringEndpointGroupAssociationOperationSettings = + settingsBuilder.updateMirroringEndpointGroupAssociationOperationSettings().build(); + deleteMirroringEndpointGroupAssociationSettings = + settingsBuilder.deleteMirroringEndpointGroupAssociationSettings().build(); + deleteMirroringEndpointGroupAssociationOperationSettings = + settingsBuilder.deleteMirroringEndpointGroupAssociationOperationSettings().build(); + listMirroringDeploymentGroupsSettings = + settingsBuilder.listMirroringDeploymentGroupsSettings().build(); + getMirroringDeploymentGroupSettings = + settingsBuilder.getMirroringDeploymentGroupSettings().build(); + createMirroringDeploymentGroupSettings = + settingsBuilder.createMirroringDeploymentGroupSettings().build(); + createMirroringDeploymentGroupOperationSettings = + settingsBuilder.createMirroringDeploymentGroupOperationSettings().build(); + updateMirroringDeploymentGroupSettings = + settingsBuilder.updateMirroringDeploymentGroupSettings().build(); + updateMirroringDeploymentGroupOperationSettings = + settingsBuilder.updateMirroringDeploymentGroupOperationSettings().build(); + deleteMirroringDeploymentGroupSettings = + settingsBuilder.deleteMirroringDeploymentGroupSettings().build(); + deleteMirroringDeploymentGroupOperationSettings = + settingsBuilder.deleteMirroringDeploymentGroupOperationSettings().build(); + listMirroringDeploymentsSettings = settingsBuilder.listMirroringDeploymentsSettings().build(); + getMirroringDeploymentSettings = settingsBuilder.getMirroringDeploymentSettings().build(); + createMirroringDeploymentSettings = settingsBuilder.createMirroringDeploymentSettings().build(); + createMirroringDeploymentOperationSettings = + settingsBuilder.createMirroringDeploymentOperationSettings().build(); + updateMirroringDeploymentSettings = settingsBuilder.updateMirroringDeploymentSettings().build(); + updateMirroringDeploymentOperationSettings = + settingsBuilder.updateMirroringDeploymentOperationSettings().build(); + deleteMirroringDeploymentSettings = settingsBuilder.deleteMirroringDeploymentSettings().build(); + deleteMirroringDeploymentOperationSettings = + settingsBuilder.deleteMirroringDeploymentOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-network-security") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for MirroringStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + ListMirroringEndpointGroupsPagedResponse> + listMirroringEndpointGroupsSettings; + private final UnaryCallSettings.Builder< + GetMirroringEndpointGroupRequest, MirroringEndpointGroup> + getMirroringEndpointGroupSettings; + private final UnaryCallSettings.Builder + createMirroringEndpointGroupSettings; + private final OperationCallSettings.Builder< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationSettings; + private final UnaryCallSettings.Builder + updateMirroringEndpointGroupSettings; + private final OperationCallSettings.Builder< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationSettings; + private final UnaryCallSettings.Builder + deleteMirroringEndpointGroupSettings; + private final OperationCallSettings.Builder< + DeleteMirroringEndpointGroupRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupOperationSettings; + private final PagedCallSettings.Builder< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsSettings; + private final UnaryCallSettings.Builder< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationSettings; + private final UnaryCallSettings.Builder< + CreateMirroringEndpointGroupAssociationRequest, Operation> + createMirroringEndpointGroupAssociationSettings; + private final OperationCallSettings.Builder< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationSettings; + private final UnaryCallSettings.Builder< + UpdateMirroringEndpointGroupAssociationRequest, Operation> + updateMirroringEndpointGroupAssociationSettings; + private final OperationCallSettings.Builder< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationSettings; + private final UnaryCallSettings.Builder< + DeleteMirroringEndpointGroupAssociationRequest, Operation> + deleteMirroringEndpointGroupAssociationSettings; + private final OperationCallSettings.Builder< + DeleteMirroringEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupAssociationOperationSettings; + private final PagedCallSettings.Builder< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsSettings; + private final UnaryCallSettings.Builder< + GetMirroringDeploymentGroupRequest, MirroringDeploymentGroup> + getMirroringDeploymentGroupSettings; + private final UnaryCallSettings.Builder + createMirroringDeploymentGroupSettings; + private final OperationCallSettings.Builder< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationSettings; + private final UnaryCallSettings.Builder + updateMirroringDeploymentGroupSettings; + private final OperationCallSettings.Builder< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationSettings; + private final UnaryCallSettings.Builder + deleteMirroringDeploymentGroupSettings; + private final OperationCallSettings.Builder< + DeleteMirroringDeploymentGroupRequest, Empty, OperationMetadata> + deleteMirroringDeploymentGroupOperationSettings; + private final PagedCallSettings.Builder< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + ListMirroringDeploymentsPagedResponse> + listMirroringDeploymentsSettings; + private final UnaryCallSettings.Builder + getMirroringDeploymentSettings; + private final UnaryCallSettings.Builder + createMirroringDeploymentSettings; + private final OperationCallSettings.Builder< + CreateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + createMirroringDeploymentOperationSettings; + private final UnaryCallSettings.Builder + updateMirroringDeploymentSettings; + private final OperationCallSettings.Builder< + UpdateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + updateMirroringDeploymentOperationSettings; + private final UnaryCallSettings.Builder + deleteMirroringDeploymentSettings; + private final OperationCallSettings.Builder< + DeleteMirroringDeploymentRequest, Empty, OperationMetadata> + deleteMirroringDeploymentOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listMirroringEndpointGroupsSettings = + PagedCallSettings.newBuilder(LIST_MIRRORING_ENDPOINT_GROUPS_PAGE_STR_FACT); + getMirroringEndpointGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMirroringEndpointGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMirroringEndpointGroupOperationSettings = OperationCallSettings.newBuilder(); + updateMirroringEndpointGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMirroringEndpointGroupOperationSettings = OperationCallSettings.newBuilder(); + deleteMirroringEndpointGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMirroringEndpointGroupOperationSettings = OperationCallSettings.newBuilder(); + listMirroringEndpointGroupAssociationsSettings = + PagedCallSettings.newBuilder(LIST_MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS_PAGE_STR_FACT); + getMirroringEndpointGroupAssociationSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMirroringEndpointGroupAssociationSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMirroringEndpointGroupAssociationOperationSettings = OperationCallSettings.newBuilder(); + updateMirroringEndpointGroupAssociationSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMirroringEndpointGroupAssociationOperationSettings = OperationCallSettings.newBuilder(); + deleteMirroringEndpointGroupAssociationSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMirroringEndpointGroupAssociationOperationSettings = OperationCallSettings.newBuilder(); + listMirroringDeploymentGroupsSettings = + PagedCallSettings.newBuilder(LIST_MIRRORING_DEPLOYMENT_GROUPS_PAGE_STR_FACT); + getMirroringDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMirroringDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMirroringDeploymentGroupOperationSettings = OperationCallSettings.newBuilder(); + updateMirroringDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMirroringDeploymentGroupOperationSettings = OperationCallSettings.newBuilder(); + deleteMirroringDeploymentGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMirroringDeploymentGroupOperationSettings = OperationCallSettings.newBuilder(); + listMirroringDeploymentsSettings = + PagedCallSettings.newBuilder(LIST_MIRRORING_DEPLOYMENTS_PAGE_STR_FACT); + getMirroringDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMirroringDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMirroringDeploymentOperationSettings = OperationCallSettings.newBuilder(); + updateMirroringDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMirroringDeploymentOperationSettings = OperationCallSettings.newBuilder(); + deleteMirroringDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMirroringDeploymentOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listMirroringEndpointGroupsSettings, + getMirroringEndpointGroupSettings, + createMirroringEndpointGroupSettings, + updateMirroringEndpointGroupSettings, + deleteMirroringEndpointGroupSettings, + listMirroringEndpointGroupAssociationsSettings, + getMirroringEndpointGroupAssociationSettings, + createMirroringEndpointGroupAssociationSettings, + updateMirroringEndpointGroupAssociationSettings, + deleteMirroringEndpointGroupAssociationSettings, + listMirroringDeploymentGroupsSettings, + getMirroringDeploymentGroupSettings, + createMirroringDeploymentGroupSettings, + updateMirroringDeploymentGroupSettings, + deleteMirroringDeploymentGroupSettings, + listMirroringDeploymentsSettings, + getMirroringDeploymentSettings, + createMirroringDeploymentSettings, + updateMirroringDeploymentSettings, + deleteMirroringDeploymentSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(MirroringStubSettings settings) { + super(settings); + + listMirroringEndpointGroupsSettings = + settings.listMirroringEndpointGroupsSettings.toBuilder(); + getMirroringEndpointGroupSettings = settings.getMirroringEndpointGroupSettings.toBuilder(); + createMirroringEndpointGroupSettings = + settings.createMirroringEndpointGroupSettings.toBuilder(); + createMirroringEndpointGroupOperationSettings = + settings.createMirroringEndpointGroupOperationSettings.toBuilder(); + updateMirroringEndpointGroupSettings = + settings.updateMirroringEndpointGroupSettings.toBuilder(); + updateMirroringEndpointGroupOperationSettings = + settings.updateMirroringEndpointGroupOperationSettings.toBuilder(); + deleteMirroringEndpointGroupSettings = + settings.deleteMirroringEndpointGroupSettings.toBuilder(); + deleteMirroringEndpointGroupOperationSettings = + settings.deleteMirroringEndpointGroupOperationSettings.toBuilder(); + listMirroringEndpointGroupAssociationsSettings = + settings.listMirroringEndpointGroupAssociationsSettings.toBuilder(); + getMirroringEndpointGroupAssociationSettings = + settings.getMirroringEndpointGroupAssociationSettings.toBuilder(); + createMirroringEndpointGroupAssociationSettings = + settings.createMirroringEndpointGroupAssociationSettings.toBuilder(); + createMirroringEndpointGroupAssociationOperationSettings = + settings.createMirroringEndpointGroupAssociationOperationSettings.toBuilder(); + updateMirroringEndpointGroupAssociationSettings = + settings.updateMirroringEndpointGroupAssociationSettings.toBuilder(); + updateMirroringEndpointGroupAssociationOperationSettings = + settings.updateMirroringEndpointGroupAssociationOperationSettings.toBuilder(); + deleteMirroringEndpointGroupAssociationSettings = + settings.deleteMirroringEndpointGroupAssociationSettings.toBuilder(); + deleteMirroringEndpointGroupAssociationOperationSettings = + settings.deleteMirroringEndpointGroupAssociationOperationSettings.toBuilder(); + listMirroringDeploymentGroupsSettings = + settings.listMirroringDeploymentGroupsSettings.toBuilder(); + getMirroringDeploymentGroupSettings = + settings.getMirroringDeploymentGroupSettings.toBuilder(); + createMirroringDeploymentGroupSettings = + settings.createMirroringDeploymentGroupSettings.toBuilder(); + createMirroringDeploymentGroupOperationSettings = + settings.createMirroringDeploymentGroupOperationSettings.toBuilder(); + updateMirroringDeploymentGroupSettings = + settings.updateMirroringDeploymentGroupSettings.toBuilder(); + updateMirroringDeploymentGroupOperationSettings = + settings.updateMirroringDeploymentGroupOperationSettings.toBuilder(); + deleteMirroringDeploymentGroupSettings = + settings.deleteMirroringDeploymentGroupSettings.toBuilder(); + deleteMirroringDeploymentGroupOperationSettings = + settings.deleteMirroringDeploymentGroupOperationSettings.toBuilder(); + listMirroringDeploymentsSettings = settings.listMirroringDeploymentsSettings.toBuilder(); + getMirroringDeploymentSettings = settings.getMirroringDeploymentSettings.toBuilder(); + createMirroringDeploymentSettings = settings.createMirroringDeploymentSettings.toBuilder(); + createMirroringDeploymentOperationSettings = + settings.createMirroringDeploymentOperationSettings.toBuilder(); + updateMirroringDeploymentSettings = settings.updateMirroringDeploymentSettings.toBuilder(); + updateMirroringDeploymentOperationSettings = + settings.updateMirroringDeploymentOperationSettings.toBuilder(); + deleteMirroringDeploymentSettings = settings.deleteMirroringDeploymentSettings.toBuilder(); + deleteMirroringDeploymentOperationSettings = + settings.deleteMirroringDeploymentOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listMirroringEndpointGroupsSettings, + getMirroringEndpointGroupSettings, + createMirroringEndpointGroupSettings, + updateMirroringEndpointGroupSettings, + deleteMirroringEndpointGroupSettings, + listMirroringEndpointGroupAssociationsSettings, + getMirroringEndpointGroupAssociationSettings, + createMirroringEndpointGroupAssociationSettings, + updateMirroringEndpointGroupAssociationSettings, + deleteMirroringEndpointGroupAssociationSettings, + listMirroringDeploymentGroupsSettings, + getMirroringDeploymentGroupSettings, + createMirroringDeploymentGroupSettings, + updateMirroringDeploymentGroupSettings, + deleteMirroringDeploymentGroupSettings, + listMirroringDeploymentsSettings, + getMirroringDeploymentSettings, + createMirroringDeploymentSettings, + updateMirroringDeploymentSettings, + deleteMirroringDeploymentSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listMirroringEndpointGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getMirroringEndpointGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createMirroringEndpointGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateMirroringEndpointGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteMirroringEndpointGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMirroringEndpointGroupAssociationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getMirroringEndpointGroupAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createMirroringEndpointGroupAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateMirroringEndpointGroupAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteMirroringEndpointGroupAssociationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMirroringDeploymentGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getMirroringDeploymentGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createMirroringDeploymentGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateMirroringDeploymentGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteMirroringDeploymentGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listMirroringDeploymentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getMirroringDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createMirroringDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateMirroringDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteMirroringDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createMirroringEndpointGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MirroringEndpointGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateMirroringEndpointGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MirroringEndpointGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteMirroringEndpointGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createMirroringEndpointGroupAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + MirroringEndpointGroupAssociation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateMirroringEndpointGroupAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + MirroringEndpointGroupAssociation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteMirroringEndpointGroupAssociationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createMirroringDeploymentGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MirroringDeploymentGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateMirroringDeploymentGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MirroringDeploymentGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteMirroringDeploymentGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createMirroringDeploymentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MirroringDeployment.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateMirroringDeploymentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MirroringDeployment.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteMirroringDeploymentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listMirroringEndpointGroups. */ + public PagedCallSettings.Builder< + ListMirroringEndpointGroupsRequest, + ListMirroringEndpointGroupsResponse, + ListMirroringEndpointGroupsPagedResponse> + listMirroringEndpointGroupsSettings() { + return listMirroringEndpointGroupsSettings; + } + + /** Returns the builder for the settings used for calls to getMirroringEndpointGroup. */ + public UnaryCallSettings.Builder + getMirroringEndpointGroupSettings() { + return getMirroringEndpointGroupSettings; + } + + /** Returns the builder for the settings used for calls to createMirroringEndpointGroup. */ + public UnaryCallSettings.Builder + createMirroringEndpointGroupSettings() { + return createMirroringEndpointGroupSettings; + } + + /** Returns the builder for the settings used for calls to createMirroringEndpointGroup. */ + public OperationCallSettings.Builder< + CreateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + createMirroringEndpointGroupOperationSettings() { + return createMirroringEndpointGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateMirroringEndpointGroup. */ + public UnaryCallSettings.Builder + updateMirroringEndpointGroupSettings() { + return updateMirroringEndpointGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateMirroringEndpointGroup. */ + public OperationCallSettings.Builder< + UpdateMirroringEndpointGroupRequest, MirroringEndpointGroup, OperationMetadata> + updateMirroringEndpointGroupOperationSettings() { + return updateMirroringEndpointGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteMirroringEndpointGroup. */ + public UnaryCallSettings.Builder + deleteMirroringEndpointGroupSettings() { + return deleteMirroringEndpointGroupSettings; + } + + /** Returns the builder for the settings used for calls to deleteMirroringEndpointGroup. */ + public OperationCallSettings.Builder< + DeleteMirroringEndpointGroupRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupOperationSettings() { + return deleteMirroringEndpointGroupOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * listMirroringEndpointGroupAssociations. + */ + public PagedCallSettings.Builder< + ListMirroringEndpointGroupAssociationsRequest, + ListMirroringEndpointGroupAssociationsResponse, + ListMirroringEndpointGroupAssociationsPagedResponse> + listMirroringEndpointGroupAssociationsSettings() { + return listMirroringEndpointGroupAssociationsSettings; + } + + /** + * Returns the builder for the settings used for calls to getMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder< + GetMirroringEndpointGroupAssociationRequest, MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociationSettings() { + return getMirroringEndpointGroupAssociationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * createMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + createMirroringEndpointGroupAssociationSettings() { + return createMirroringEndpointGroupAssociationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * createMirroringEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + CreateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + createMirroringEndpointGroupAssociationOperationSettings() { + return createMirroringEndpointGroupAssociationOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * updateMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + updateMirroringEndpointGroupAssociationSettings() { + return updateMirroringEndpointGroupAssociationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * updateMirroringEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + UpdateMirroringEndpointGroupAssociationRequest, + MirroringEndpointGroupAssociation, + OperationMetadata> + updateMirroringEndpointGroupAssociationOperationSettings() { + return updateMirroringEndpointGroupAssociationOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * deleteMirroringEndpointGroupAssociation. + */ + public UnaryCallSettings.Builder + deleteMirroringEndpointGroupAssociationSettings() { + return deleteMirroringEndpointGroupAssociationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * deleteMirroringEndpointGroupAssociation. + */ + public OperationCallSettings.Builder< + DeleteMirroringEndpointGroupAssociationRequest, Empty, OperationMetadata> + deleteMirroringEndpointGroupAssociationOperationSettings() { + return deleteMirroringEndpointGroupAssociationOperationSettings; + } + + /** Returns the builder for the settings used for calls to listMirroringDeploymentGroups. */ + public PagedCallSettings.Builder< + ListMirroringDeploymentGroupsRequest, + ListMirroringDeploymentGroupsResponse, + ListMirroringDeploymentGroupsPagedResponse> + listMirroringDeploymentGroupsSettings() { + return listMirroringDeploymentGroupsSettings; + } + + /** Returns the builder for the settings used for calls to getMirroringDeploymentGroup. */ + public UnaryCallSettings.Builder + getMirroringDeploymentGroupSettings() { + return getMirroringDeploymentGroupSettings; + } + + /** Returns the builder for the settings used for calls to createMirroringDeploymentGroup. */ + public UnaryCallSettings.Builder + createMirroringDeploymentGroupSettings() { + return createMirroringDeploymentGroupSettings; + } + + /** Returns the builder for the settings used for calls to createMirroringDeploymentGroup. */ + public OperationCallSettings.Builder< + CreateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + createMirroringDeploymentGroupOperationSettings() { + return createMirroringDeploymentGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateMirroringDeploymentGroup. */ + public UnaryCallSettings.Builder + updateMirroringDeploymentGroupSettings() { + return updateMirroringDeploymentGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateMirroringDeploymentGroup. */ + public OperationCallSettings.Builder< + UpdateMirroringDeploymentGroupRequest, MirroringDeploymentGroup, OperationMetadata> + updateMirroringDeploymentGroupOperationSettings() { + return updateMirroringDeploymentGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteMirroringDeploymentGroup. */ + public UnaryCallSettings.Builder + deleteMirroringDeploymentGroupSettings() { + return deleteMirroringDeploymentGroupSettings; + } + + /** Returns the builder for the settings used for calls to deleteMirroringDeploymentGroup. */ + public OperationCallSettings.Builder< + DeleteMirroringDeploymentGroupRequest, Empty, OperationMetadata> + deleteMirroringDeploymentGroupOperationSettings() { + return deleteMirroringDeploymentGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to listMirroringDeployments. */ + public PagedCallSettings.Builder< + ListMirroringDeploymentsRequest, + ListMirroringDeploymentsResponse, + ListMirroringDeploymentsPagedResponse> + listMirroringDeploymentsSettings() { + return listMirroringDeploymentsSettings; + } + + /** Returns the builder for the settings used for calls to getMirroringDeployment. */ + public UnaryCallSettings.Builder + getMirroringDeploymentSettings() { + return getMirroringDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to createMirroringDeployment. */ + public UnaryCallSettings.Builder + createMirroringDeploymentSettings() { + return createMirroringDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to createMirroringDeployment. */ + public OperationCallSettings.Builder< + CreateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + createMirroringDeploymentOperationSettings() { + return createMirroringDeploymentOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateMirroringDeployment. */ + public UnaryCallSettings.Builder + updateMirroringDeploymentSettings() { + return updateMirroringDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to updateMirroringDeployment. */ + public OperationCallSettings.Builder< + UpdateMirroringDeploymentRequest, MirroringDeployment, OperationMetadata> + updateMirroringDeploymentOperationSettings() { + return updateMirroringDeploymentOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteMirroringDeployment. */ + public UnaryCallSettings.Builder + deleteMirroringDeploymentSettings() { + return deleteMirroringDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to deleteMirroringDeployment. */ + public OperationCallSettings.Builder + deleteMirroringDeploymentOperationSettings() { + return deleteMirroringDeploymentOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public MirroringStubSettings build() throws IOException { + return new MirroringStubSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java index 1bbbfe80945f..895667d6ff43 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java @@ -17,9 +17,15 @@ package com.google.cloud.networksecurity.v1.stub; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthzPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListBackendAuthenticationConfigsPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPolicyRulesPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListTlsInspectionPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListUrlListsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; @@ -29,27 +35,69 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.cloud.networksecurity.v1.AuthorizationPolicy; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; import com.google.cloud.networksecurity.v1.ClientTlsPolicy; import com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateUrlListRequest; import com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteUrlListRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; import com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.GetUrlListRequest; import com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest; import com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse; import com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest; import com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse; import com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest; import com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListUrlListsRequest; +import com.google.cloud.networksecurity.v1.ListUrlListsResponse; import com.google.cloud.networksecurity.v1.OperationMetadata; import com.google.cloud.networksecurity.v1.ServerTlsPolicy; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; import com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateUrlListRequest; +import com.google.cloud.networksecurity.v1.UrlList; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -122,6 +170,64 @@ public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: deleteAuthorizationPolicyCallable()"); } + public UnaryCallable< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsPagedResponse> + listBackendAuthenticationConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listBackendAuthenticationConfigsPagedCallable()"); + } + + public UnaryCallable< + ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse> + listBackendAuthenticationConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listBackendAuthenticationConfigsCallable()"); + } + + public UnaryCallable + getBackendAuthenticationConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: getBackendAuthenticationConfigCallable()"); + } + + public OperationCallable< + CreateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + createBackendAuthenticationConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createBackendAuthenticationConfigOperationCallable()"); + } + + public UnaryCallable + createBackendAuthenticationConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: createBackendAuthenticationConfigCallable()"); + } + + public OperationCallable< + UpdateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + updateBackendAuthenticationConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateBackendAuthenticationConfigOperationCallable()"); + } + + public UnaryCallable + updateBackendAuthenticationConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateBackendAuthenticationConfigCallable()"); + } + + public OperationCallable + deleteBackendAuthenticationConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteBackendAuthenticationConfigOperationCallable()"); + } + + public UnaryCallable + deleteBackendAuthenticationConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteBackendAuthenticationConfigCallable()"); + } + public UnaryCallable listServerTlsPoliciesPagedCallable() { throw new UnsupportedOperationException( @@ -212,6 +318,251 @@ public UnaryCallable deleteClientTlsPol throw new UnsupportedOperationException("Not implemented: deleteClientTlsPolicyCallable()"); } + public UnaryCallable + listGatewaySecurityPoliciesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listGatewaySecurityPoliciesPagedCallable()"); + } + + public UnaryCallable + listGatewaySecurityPoliciesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listGatewaySecurityPoliciesCallable()"); + } + + public UnaryCallable + getGatewaySecurityPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getGatewaySecurityPolicyCallable()"); + } + + public OperationCallable< + CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + createGatewaySecurityPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createGatewaySecurityPolicyOperationCallable()"); + } + + public UnaryCallable + createGatewaySecurityPolicyCallable() { + throw new UnsupportedOperationException( + "Not implemented: createGatewaySecurityPolicyCallable()"); + } + + public OperationCallable< + UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + updateGatewaySecurityPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateGatewaySecurityPolicyOperationCallable()"); + } + + public UnaryCallable + updateGatewaySecurityPolicyCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateGatewaySecurityPolicyCallable()"); + } + + public OperationCallable + deleteGatewaySecurityPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteGatewaySecurityPolicyOperationCallable()"); + } + + public UnaryCallable + deleteGatewaySecurityPolicyCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteGatewaySecurityPolicyCallable()"); + } + + public UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesPagedResponse> + listGatewaySecurityPolicyRulesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listGatewaySecurityPolicyRulesPagedCallable()"); + } + + public UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesResponse> + listGatewaySecurityPolicyRulesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listGatewaySecurityPolicyRulesCallable()"); + } + + public UnaryCallable + getGatewaySecurityPolicyRuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: getGatewaySecurityPolicyRuleCallable()"); + } + + public OperationCallable< + CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + createGatewaySecurityPolicyRuleOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createGatewaySecurityPolicyRuleOperationCallable()"); + } + + public UnaryCallable + createGatewaySecurityPolicyRuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: createGatewaySecurityPolicyRuleCallable()"); + } + + public OperationCallable< + UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + updateGatewaySecurityPolicyRuleOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateGatewaySecurityPolicyRuleOperationCallable()"); + } + + public UnaryCallable + updateGatewaySecurityPolicyRuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateGatewaySecurityPolicyRuleCallable()"); + } + + public OperationCallable + deleteGatewaySecurityPolicyRuleOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteGatewaySecurityPolicyRuleOperationCallable()"); + } + + public UnaryCallable + deleteGatewaySecurityPolicyRuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteGatewaySecurityPolicyRuleCallable()"); + } + + public UnaryCallable listUrlListsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listUrlListsPagedCallable()"); + } + + public UnaryCallable listUrlListsCallable() { + throw new UnsupportedOperationException("Not implemented: listUrlListsCallable()"); + } + + public UnaryCallable getUrlListCallable() { + throw new UnsupportedOperationException("Not implemented: getUrlListCallable()"); + } + + public OperationCallable + createUrlListOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createUrlListOperationCallable()"); + } + + public UnaryCallable createUrlListCallable() { + throw new UnsupportedOperationException("Not implemented: createUrlListCallable()"); + } + + public OperationCallable + updateUrlListOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateUrlListOperationCallable()"); + } + + public UnaryCallable updateUrlListCallable() { + throw new UnsupportedOperationException("Not implemented: updateUrlListCallable()"); + } + + public OperationCallable + deleteUrlListOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteUrlListOperationCallable()"); + } + + public UnaryCallable deleteUrlListCallable() { + throw new UnsupportedOperationException("Not implemented: deleteUrlListCallable()"); + } + + public UnaryCallable + listTlsInspectionPoliciesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listTlsInspectionPoliciesPagedCallable()"); + } + + public UnaryCallable + listTlsInspectionPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listTlsInspectionPoliciesCallable()"); + } + + public UnaryCallable + getTlsInspectionPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getTlsInspectionPolicyCallable()"); + } + + public OperationCallable + createTlsInspectionPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createTlsInspectionPolicyOperationCallable()"); + } + + public UnaryCallable + createTlsInspectionPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createTlsInspectionPolicyCallable()"); + } + + public OperationCallable + updateTlsInspectionPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateTlsInspectionPolicyOperationCallable()"); + } + + public UnaryCallable + updateTlsInspectionPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateTlsInspectionPolicyCallable()"); + } + + public OperationCallable + deleteTlsInspectionPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteTlsInspectionPolicyOperationCallable()"); + } + + public UnaryCallable + deleteTlsInspectionPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTlsInspectionPolicyCallable()"); + } + + public UnaryCallable + listAuthzPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthzPoliciesPagedCallable()"); + } + + public UnaryCallable + listAuthzPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthzPoliciesCallable()"); + } + + public UnaryCallable getAuthzPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getAuthzPolicyCallable()"); + } + + public OperationCallable + createAuthzPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAuthzPolicyOperationCallable()"); + } + + public UnaryCallable createAuthzPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createAuthzPolicyCallable()"); + } + + public OperationCallable + updateAuthzPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAuthzPolicyOperationCallable()"); + } + + public UnaryCallable updateAuthzPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateAuthzPolicyCallable()"); + } + + public OperationCallable + deleteAuthzPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAuthzPolicyOperationCallable()"); + } + + public UnaryCallable deleteAuthzPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAuthzPolicyCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java index f9c31da20bac..da95224552aa 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java @@ -17,9 +17,15 @@ package com.google.cloud.networksecurity.v1.stub; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthzPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListBackendAuthenticationConfigsPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPolicyRulesPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListTlsInspectionPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListUrlListsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -53,27 +59,69 @@ import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; import com.google.cloud.networksecurity.v1.AuthorizationPolicy; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; import com.google.cloud.networksecurity.v1.ClientTlsPolicy; import com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.CreateUrlListRequest; import com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.DeleteUrlListRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; import com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.GetUrlListRequest; import com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest; import com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse; import com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest; import com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse; import com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest; import com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse; +import com.google.cloud.networksecurity.v1.ListUrlListsRequest; +import com.google.cloud.networksecurity.v1.ListUrlListsResponse; import com.google.cloud.networksecurity.v1.OperationMetadata; import com.google.cloud.networksecurity.v1.ServerTlsPolicy; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; import com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest; import com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest; import com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.UpdateUrlListRequest; +import com.google.cloud.networksecurity.v1.UrlList; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -195,6 +243,29 @@ public class NetworkSecurityStubSettings extends StubSettings deleteAuthorizationPolicyOperationSettings; + private final PagedCallSettings< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + ListBackendAuthenticationConfigsPagedResponse> + listBackendAuthenticationConfigsSettings; + private final UnaryCallSettings< + GetBackendAuthenticationConfigRequest, BackendAuthenticationConfig> + getBackendAuthenticationConfigSettings; + private final UnaryCallSettings + createBackendAuthenticationConfigSettings; + private final OperationCallSettings< + CreateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + createBackendAuthenticationConfigOperationSettings; + private final UnaryCallSettings + updateBackendAuthenticationConfigSettings; + private final OperationCallSettings< + UpdateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + updateBackendAuthenticationConfigOperationSettings; + private final UnaryCallSettings + deleteBackendAuthenticationConfigSettings; + private final OperationCallSettings< + DeleteBackendAuthenticationConfigRequest, Empty, OperationMetadata> + deleteBackendAuthenticationConfigOperationSettings; private final PagedCallSettings< ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, @@ -237,6 +308,96 @@ public class NetworkSecurityStubSettings extends StubSettings deleteClientTlsPolicyOperationSettings; + private final PagedCallSettings< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + ListGatewaySecurityPoliciesPagedResponse> + listGatewaySecurityPoliciesSettings; + private final UnaryCallSettings + getGatewaySecurityPolicySettings; + private final UnaryCallSettings + createGatewaySecurityPolicySettings; + private final OperationCallSettings< + CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + createGatewaySecurityPolicyOperationSettings; + private final UnaryCallSettings + updateGatewaySecurityPolicySettings; + private final OperationCallSettings< + UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + updateGatewaySecurityPolicyOperationSettings; + private final UnaryCallSettings + deleteGatewaySecurityPolicySettings; + private final OperationCallSettings + deleteGatewaySecurityPolicyOperationSettings; + private final PagedCallSettings< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + ListGatewaySecurityPolicyRulesPagedResponse> + listGatewaySecurityPolicyRulesSettings; + private final UnaryCallSettings + getGatewaySecurityPolicyRuleSettings; + private final UnaryCallSettings + createGatewaySecurityPolicyRuleSettings; + private final OperationCallSettings< + CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + createGatewaySecurityPolicyRuleOperationSettings; + private final UnaryCallSettings + updateGatewaySecurityPolicyRuleSettings; + private final OperationCallSettings< + UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + updateGatewaySecurityPolicyRuleOperationSettings; + private final UnaryCallSettings + deleteGatewaySecurityPolicyRuleSettings; + private final OperationCallSettings< + DeleteGatewaySecurityPolicyRuleRequest, Empty, OperationMetadata> + deleteGatewaySecurityPolicyRuleOperationSettings; + private final PagedCallSettings< + ListUrlListsRequest, ListUrlListsResponse, ListUrlListsPagedResponse> + listUrlListsSettings; + private final UnaryCallSettings getUrlListSettings; + private final UnaryCallSettings createUrlListSettings; + private final OperationCallSettings + createUrlListOperationSettings; + private final UnaryCallSettings updateUrlListSettings; + private final OperationCallSettings + updateUrlListOperationSettings; + private final UnaryCallSettings deleteUrlListSettings; + private final OperationCallSettings + deleteUrlListOperationSettings; + private final PagedCallSettings< + ListTlsInspectionPoliciesRequest, + ListTlsInspectionPoliciesResponse, + ListTlsInspectionPoliciesPagedResponse> + listTlsInspectionPoliciesSettings; + private final UnaryCallSettings + getTlsInspectionPolicySettings; + private final UnaryCallSettings + createTlsInspectionPolicySettings; + private final OperationCallSettings< + CreateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + createTlsInspectionPolicyOperationSettings; + private final UnaryCallSettings + updateTlsInspectionPolicySettings; + private final OperationCallSettings< + UpdateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + updateTlsInspectionPolicyOperationSettings; + private final UnaryCallSettings + deleteTlsInspectionPolicySettings; + private final OperationCallSettings + deleteTlsInspectionPolicyOperationSettings; + private final PagedCallSettings< + ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, ListAuthzPoliciesPagedResponse> + listAuthzPoliciesSettings; + private final UnaryCallSettings getAuthzPolicySettings; + private final UnaryCallSettings createAuthzPolicySettings; + private final OperationCallSettings + createAuthzPolicyOperationSettings; + private final UnaryCallSettings updateAuthzPolicySettings; + private final OperationCallSettings + updateAuthzPolicyOperationSettings; + private final UnaryCallSettings deleteAuthzPolicySettings; + private final OperationCallSettings + deleteAuthzPolicyOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -291,6 +452,53 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + BackendAuthenticationConfig> + LIST_BACKEND_AUTHENTICATION_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + BackendAuthenticationConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBackendAuthenticationConfigsRequest injectToken( + ListBackendAuthenticationConfigsRequest payload, String token) { + return ListBackendAuthenticationConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListBackendAuthenticationConfigsRequest injectPageSize( + ListBackendAuthenticationConfigsRequest payload, int pageSize) { + return ListBackendAuthenticationConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListBackendAuthenticationConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBackendAuthenticationConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListBackendAuthenticationConfigsResponse payload) { + return payload.getBackendAuthenticationConfigsList(); + } + }; + private static final PagedListDescriptor< ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy> LIST_SERVER_TLS_POLICIES_PAGE_STR_DESC = @@ -369,6 +577,217 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + GatewaySecurityPolicy> + LIST_GATEWAY_SECURITY_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + GatewaySecurityPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGatewaySecurityPoliciesRequest injectToken( + ListGatewaySecurityPoliciesRequest payload, String token) { + return ListGatewaySecurityPoliciesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListGatewaySecurityPoliciesRequest injectPageSize( + ListGatewaySecurityPoliciesRequest payload, int pageSize) { + return ListGatewaySecurityPoliciesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListGatewaySecurityPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGatewaySecurityPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListGatewaySecurityPoliciesResponse payload) { + return payload.getGatewaySecurityPoliciesList(); + } + }; + + private static final PagedListDescriptor< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + GatewaySecurityPolicyRule> + LIST_GATEWAY_SECURITY_POLICY_RULES_PAGE_STR_DESC = + new PagedListDescriptor< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + GatewaySecurityPolicyRule>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGatewaySecurityPolicyRulesRequest injectToken( + ListGatewaySecurityPolicyRulesRequest payload, String token) { + return ListGatewaySecurityPolicyRulesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListGatewaySecurityPolicyRulesRequest injectPageSize( + ListGatewaySecurityPolicyRulesRequest payload, int pageSize) { + return ListGatewaySecurityPolicyRulesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListGatewaySecurityPolicyRulesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGatewaySecurityPolicyRulesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListGatewaySecurityPolicyRulesResponse payload) { + return payload.getGatewaySecurityPolicyRulesList(); + } + }; + + private static final PagedListDescriptor + LIST_URL_LISTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUrlListsRequest injectToken(ListUrlListsRequest payload, String token) { + return ListUrlListsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUrlListsRequest injectPageSize(ListUrlListsRequest payload, int pageSize) { + return ListUrlListsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListUrlListsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUrlListsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListUrlListsResponse payload) { + return payload.getUrlListsList(); + } + }; + + private static final PagedListDescriptor< + ListTlsInspectionPoliciesRequest, ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> + LIST_TLS_INSPECTION_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListTlsInspectionPoliciesRequest, + ListTlsInspectionPoliciesResponse, + TlsInspectionPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTlsInspectionPoliciesRequest injectToken( + ListTlsInspectionPoliciesRequest payload, String token) { + return ListTlsInspectionPoliciesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListTlsInspectionPoliciesRequest injectPageSize( + ListTlsInspectionPoliciesRequest payload, int pageSize) { + return ListTlsInspectionPoliciesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListTlsInspectionPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTlsInspectionPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListTlsInspectionPoliciesResponse payload) { + return payload.getTlsInspectionPoliciesList(); + } + }; + + private static final PagedListDescriptor< + ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, AuthzPolicy> + LIST_AUTHZ_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, AuthzPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAuthzPoliciesRequest injectToken( + ListAuthzPoliciesRequest payload, String token) { + return ListAuthzPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAuthzPoliciesRequest injectPageSize( + ListAuthzPoliciesRequest payload, int pageSize) { + return ListAuthzPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAuthzPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAuthzPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAuthzPoliciesResponse payload) { + return payload.getAuthzPoliciesList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -431,6 +850,39 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + ListBackendAuthenticationConfigsPagedResponse> + LIST_BACKEND_AUTHENTICATION_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + ListBackendAuthenticationConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse> + callable, + ListBackendAuthenticationConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + BackendAuthenticationConfig> + pageContext = + PageContext.create( + callable, + LIST_BACKEND_AUTHENTICATION_CONFIGS_PAGE_STR_DESC, + request, + context); + return ListBackendAuthenticationConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, @@ -479,6 +931,134 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + ListGatewaySecurityPoliciesPagedResponse> + LIST_GATEWAY_SECURITY_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + ListGatewaySecurityPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesResponse> + callable, + ListGatewaySecurityPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + GatewaySecurityPolicy> + pageContext = + PageContext.create( + callable, LIST_GATEWAY_SECURITY_POLICIES_PAGE_STR_DESC, request, context); + return ListGatewaySecurityPoliciesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + ListGatewaySecurityPolicyRulesPagedResponse> + LIST_GATEWAY_SECURITY_POLICY_RULES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + ListGatewaySecurityPolicyRulesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse> + callable, + ListGatewaySecurityPolicyRulesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + GatewaySecurityPolicyRule> + pageContext = + PageContext.create( + callable, + LIST_GATEWAY_SECURITY_POLICY_RULES_PAGE_STR_DESC, + request, + context); + return ListGatewaySecurityPolicyRulesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListUrlListsRequest, ListUrlListsResponse, ListUrlListsPagedResponse> + LIST_URL_LISTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUrlListsRequest, ListUrlListsResponse, ListUrlListsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUrlListsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_URL_LISTS_PAGE_STR_DESC, request, context); + return ListUrlListsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTlsInspectionPoliciesRequest, + ListTlsInspectionPoliciesResponse, + ListTlsInspectionPoliciesPagedResponse> + LIST_TLS_INSPECTION_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTlsInspectionPoliciesRequest, + ListTlsInspectionPoliciesResponse, + ListTlsInspectionPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListTlsInspectionPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListTlsInspectionPoliciesRequest, + ListTlsInspectionPoliciesResponse, + TlsInspectionPolicy> + pageContext = + PageContext.create( + callable, LIST_TLS_INSPECTION_POLICIES_PAGE_STR_DESC, request, context); + return ListTlsInspectionPoliciesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, ListAuthzPoliciesPagedResponse> + LIST_AUTHZ_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAuthzPoliciesRequest, + ListAuthzPoliciesResponse, + ListAuthzPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAuthzPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AUTHZ_POLICIES_PAGE_STR_DESC, request, context); + return ListAuthzPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -549,23 +1129,76 @@ public ApiFuture getFuturePagedResponse( return deleteAuthorizationPolicyOperationSettings; } - /** Returns the object with the settings used for calls to listServerTlsPolicies. */ + /** Returns the object with the settings used for calls to listBackendAuthenticationConfigs. */ public PagedCallSettings< - ListServerTlsPoliciesRequest, - ListServerTlsPoliciesResponse, - ListServerTlsPoliciesPagedResponse> - listServerTlsPoliciesSettings() { - return listServerTlsPoliciesSettings; + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + ListBackendAuthenticationConfigsPagedResponse> + listBackendAuthenticationConfigsSettings() { + return listBackendAuthenticationConfigsSettings; } - /** Returns the object with the settings used for calls to getServerTlsPolicy. */ - public UnaryCallSettings - getServerTlsPolicySettings() { - return getServerTlsPolicySettings; + /** Returns the object with the settings used for calls to getBackendAuthenticationConfig. */ + public UnaryCallSettings + getBackendAuthenticationConfigSettings() { + return getBackendAuthenticationConfigSettings; } - /** Returns the object with the settings used for calls to createServerTlsPolicy. */ - public UnaryCallSettings + /** Returns the object with the settings used for calls to createBackendAuthenticationConfig. */ + public UnaryCallSettings + createBackendAuthenticationConfigSettings() { + return createBackendAuthenticationConfigSettings; + } + + /** Returns the object with the settings used for calls to createBackendAuthenticationConfig. */ + public OperationCallSettings< + CreateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + createBackendAuthenticationConfigOperationSettings() { + return createBackendAuthenticationConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to updateBackendAuthenticationConfig. */ + public UnaryCallSettings + updateBackendAuthenticationConfigSettings() { + return updateBackendAuthenticationConfigSettings; + } + + /** Returns the object with the settings used for calls to updateBackendAuthenticationConfig. */ + public OperationCallSettings< + UpdateBackendAuthenticationConfigRequest, BackendAuthenticationConfig, OperationMetadata> + updateBackendAuthenticationConfigOperationSettings() { + return updateBackendAuthenticationConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteBackendAuthenticationConfig. */ + public UnaryCallSettings + deleteBackendAuthenticationConfigSettings() { + return deleteBackendAuthenticationConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteBackendAuthenticationConfig. */ + public OperationCallSettings + deleteBackendAuthenticationConfigOperationSettings() { + return deleteBackendAuthenticationConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to listServerTlsPolicies. */ + public PagedCallSettings< + ListServerTlsPoliciesRequest, + ListServerTlsPoliciesResponse, + ListServerTlsPoliciesPagedResponse> + listServerTlsPoliciesSettings() { + return listServerTlsPoliciesSettings; + } + + /** Returns the object with the settings used for calls to getServerTlsPolicy. */ + public UnaryCallSettings + getServerTlsPolicySettings() { + return getServerTlsPolicySettings; + } + + /** Returns the object with the settings used for calls to createServerTlsPolicy. */ + public UnaryCallSettings createServerTlsPolicySettings() { return createServerTlsPolicySettings; } @@ -651,6 +1284,254 @@ public ApiFuture getFuturePagedResponse( return deleteClientTlsPolicyOperationSettings; } + /** Returns the object with the settings used for calls to listGatewaySecurityPolicies. */ + public PagedCallSettings< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + ListGatewaySecurityPoliciesPagedResponse> + listGatewaySecurityPoliciesSettings() { + return listGatewaySecurityPoliciesSettings; + } + + /** Returns the object with the settings used for calls to getGatewaySecurityPolicy. */ + public UnaryCallSettings + getGatewaySecurityPolicySettings() { + return getGatewaySecurityPolicySettings; + } + + /** Returns the object with the settings used for calls to createGatewaySecurityPolicy. */ + public UnaryCallSettings + createGatewaySecurityPolicySettings() { + return createGatewaySecurityPolicySettings; + } + + /** Returns the object with the settings used for calls to createGatewaySecurityPolicy. */ + public OperationCallSettings< + CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + createGatewaySecurityPolicyOperationSettings() { + return createGatewaySecurityPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to updateGatewaySecurityPolicy. */ + public UnaryCallSettings + updateGatewaySecurityPolicySettings() { + return updateGatewaySecurityPolicySettings; + } + + /** Returns the object with the settings used for calls to updateGatewaySecurityPolicy. */ + public OperationCallSettings< + UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + updateGatewaySecurityPolicyOperationSettings() { + return updateGatewaySecurityPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteGatewaySecurityPolicy. */ + public UnaryCallSettings + deleteGatewaySecurityPolicySettings() { + return deleteGatewaySecurityPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteGatewaySecurityPolicy. */ + public OperationCallSettings + deleteGatewaySecurityPolicyOperationSettings() { + return deleteGatewaySecurityPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to listGatewaySecurityPolicyRules. */ + public PagedCallSettings< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + ListGatewaySecurityPolicyRulesPagedResponse> + listGatewaySecurityPolicyRulesSettings() { + return listGatewaySecurityPolicyRulesSettings; + } + + /** Returns the object with the settings used for calls to getGatewaySecurityPolicyRule. */ + public UnaryCallSettings + getGatewaySecurityPolicyRuleSettings() { + return getGatewaySecurityPolicyRuleSettings; + } + + /** Returns the object with the settings used for calls to createGatewaySecurityPolicyRule. */ + public UnaryCallSettings + createGatewaySecurityPolicyRuleSettings() { + return createGatewaySecurityPolicyRuleSettings; + } + + /** Returns the object with the settings used for calls to createGatewaySecurityPolicyRule. */ + public OperationCallSettings< + CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + createGatewaySecurityPolicyRuleOperationSettings() { + return createGatewaySecurityPolicyRuleOperationSettings; + } + + /** Returns the object with the settings used for calls to updateGatewaySecurityPolicyRule. */ + public UnaryCallSettings + updateGatewaySecurityPolicyRuleSettings() { + return updateGatewaySecurityPolicyRuleSettings; + } + + /** Returns the object with the settings used for calls to updateGatewaySecurityPolicyRule. */ + public OperationCallSettings< + UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + updateGatewaySecurityPolicyRuleOperationSettings() { + return updateGatewaySecurityPolicyRuleOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteGatewaySecurityPolicyRule. */ + public UnaryCallSettings + deleteGatewaySecurityPolicyRuleSettings() { + return deleteGatewaySecurityPolicyRuleSettings; + } + + /** Returns the object with the settings used for calls to deleteGatewaySecurityPolicyRule. */ + public OperationCallSettings + deleteGatewaySecurityPolicyRuleOperationSettings() { + return deleteGatewaySecurityPolicyRuleOperationSettings; + } + + /** Returns the object with the settings used for calls to listUrlLists. */ + public PagedCallSettings + listUrlListsSettings() { + return listUrlListsSettings; + } + + /** Returns the object with the settings used for calls to getUrlList. */ + public UnaryCallSettings getUrlListSettings() { + return getUrlListSettings; + } + + /** Returns the object with the settings used for calls to createUrlList. */ + public UnaryCallSettings createUrlListSettings() { + return createUrlListSettings; + } + + /** Returns the object with the settings used for calls to createUrlList. */ + public OperationCallSettings + createUrlListOperationSettings() { + return createUrlListOperationSettings; + } + + /** Returns the object with the settings used for calls to updateUrlList. */ + public UnaryCallSettings updateUrlListSettings() { + return updateUrlListSettings; + } + + /** Returns the object with the settings used for calls to updateUrlList. */ + public OperationCallSettings + updateUrlListOperationSettings() { + return updateUrlListOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteUrlList. */ + public UnaryCallSettings deleteUrlListSettings() { + return deleteUrlListSettings; + } + + /** Returns the object with the settings used for calls to deleteUrlList. */ + public OperationCallSettings + deleteUrlListOperationSettings() { + return deleteUrlListOperationSettings; + } + + /** Returns the object with the settings used for calls to listTlsInspectionPolicies. */ + public PagedCallSettings< + ListTlsInspectionPoliciesRequest, + ListTlsInspectionPoliciesResponse, + ListTlsInspectionPoliciesPagedResponse> + listTlsInspectionPoliciesSettings() { + return listTlsInspectionPoliciesSettings; + } + + /** Returns the object with the settings used for calls to getTlsInspectionPolicy. */ + public UnaryCallSettings + getTlsInspectionPolicySettings() { + return getTlsInspectionPolicySettings; + } + + /** Returns the object with the settings used for calls to createTlsInspectionPolicy. */ + public UnaryCallSettings + createTlsInspectionPolicySettings() { + return createTlsInspectionPolicySettings; + } + + /** Returns the object with the settings used for calls to createTlsInspectionPolicy. */ + public OperationCallSettings< + CreateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + createTlsInspectionPolicyOperationSettings() { + return createTlsInspectionPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to updateTlsInspectionPolicy. */ + public UnaryCallSettings + updateTlsInspectionPolicySettings() { + return updateTlsInspectionPolicySettings; + } + + /** Returns the object with the settings used for calls to updateTlsInspectionPolicy. */ + public OperationCallSettings< + UpdateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + updateTlsInspectionPolicyOperationSettings() { + return updateTlsInspectionPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteTlsInspectionPolicy. */ + public UnaryCallSettings + deleteTlsInspectionPolicySettings() { + return deleteTlsInspectionPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteTlsInspectionPolicy. */ + public OperationCallSettings + deleteTlsInspectionPolicyOperationSettings() { + return deleteTlsInspectionPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to listAuthzPolicies. */ + public PagedCallSettings< + ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, ListAuthzPoliciesPagedResponse> + listAuthzPoliciesSettings() { + return listAuthzPoliciesSettings; + } + + /** Returns the object with the settings used for calls to getAuthzPolicy. */ + public UnaryCallSettings getAuthzPolicySettings() { + return getAuthzPolicySettings; + } + + /** Returns the object with the settings used for calls to createAuthzPolicy. */ + public UnaryCallSettings createAuthzPolicySettings() { + return createAuthzPolicySettings; + } + + /** Returns the object with the settings used for calls to createAuthzPolicy. */ + public OperationCallSettings + createAuthzPolicyOperationSettings() { + return createAuthzPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to updateAuthzPolicy. */ + public UnaryCallSettings updateAuthzPolicySettings() { + return updateAuthzPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAuthzPolicy. */ + public OperationCallSettings + updateAuthzPolicyOperationSettings() { + return updateAuthzPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAuthzPolicy. */ + public UnaryCallSettings deleteAuthzPolicySettings() { + return deleteAuthzPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteAuthzPolicy. */ + public OperationCallSettings + deleteAuthzPolicyOperationSettings() { + return deleteAuthzPolicyOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -770,6 +1651,22 @@ protected NetworkSecurityStubSettings(Builder settingsBuilder) throws IOExceptio deleteAuthorizationPolicySettings = settingsBuilder.deleteAuthorizationPolicySettings().build(); deleteAuthorizationPolicyOperationSettings = settingsBuilder.deleteAuthorizationPolicyOperationSettings().build(); + listBackendAuthenticationConfigsSettings = + settingsBuilder.listBackendAuthenticationConfigsSettings().build(); + getBackendAuthenticationConfigSettings = + settingsBuilder.getBackendAuthenticationConfigSettings().build(); + createBackendAuthenticationConfigSettings = + settingsBuilder.createBackendAuthenticationConfigSettings().build(); + createBackendAuthenticationConfigOperationSettings = + settingsBuilder.createBackendAuthenticationConfigOperationSettings().build(); + updateBackendAuthenticationConfigSettings = + settingsBuilder.updateBackendAuthenticationConfigSettings().build(); + updateBackendAuthenticationConfigOperationSettings = + settingsBuilder.updateBackendAuthenticationConfigOperationSettings().build(); + deleteBackendAuthenticationConfigSettings = + settingsBuilder.deleteBackendAuthenticationConfigSettings().build(); + deleteBackendAuthenticationConfigOperationSettings = + settingsBuilder.deleteBackendAuthenticationConfigOperationSettings().build(); listServerTlsPoliciesSettings = settingsBuilder.listServerTlsPoliciesSettings().build(); getServerTlsPolicySettings = settingsBuilder.getServerTlsPolicySettings().build(); createServerTlsPolicySettings = settingsBuilder.createServerTlsPolicySettings().build(); @@ -792,6 +1689,67 @@ protected NetworkSecurityStubSettings(Builder settingsBuilder) throws IOExceptio deleteClientTlsPolicySettings = settingsBuilder.deleteClientTlsPolicySettings().build(); deleteClientTlsPolicyOperationSettings = settingsBuilder.deleteClientTlsPolicyOperationSettings().build(); + listGatewaySecurityPoliciesSettings = + settingsBuilder.listGatewaySecurityPoliciesSettings().build(); + getGatewaySecurityPolicySettings = settingsBuilder.getGatewaySecurityPolicySettings().build(); + createGatewaySecurityPolicySettings = + settingsBuilder.createGatewaySecurityPolicySettings().build(); + createGatewaySecurityPolicyOperationSettings = + settingsBuilder.createGatewaySecurityPolicyOperationSettings().build(); + updateGatewaySecurityPolicySettings = + settingsBuilder.updateGatewaySecurityPolicySettings().build(); + updateGatewaySecurityPolicyOperationSettings = + settingsBuilder.updateGatewaySecurityPolicyOperationSettings().build(); + deleteGatewaySecurityPolicySettings = + settingsBuilder.deleteGatewaySecurityPolicySettings().build(); + deleteGatewaySecurityPolicyOperationSettings = + settingsBuilder.deleteGatewaySecurityPolicyOperationSettings().build(); + listGatewaySecurityPolicyRulesSettings = + settingsBuilder.listGatewaySecurityPolicyRulesSettings().build(); + getGatewaySecurityPolicyRuleSettings = + settingsBuilder.getGatewaySecurityPolicyRuleSettings().build(); + createGatewaySecurityPolicyRuleSettings = + settingsBuilder.createGatewaySecurityPolicyRuleSettings().build(); + createGatewaySecurityPolicyRuleOperationSettings = + settingsBuilder.createGatewaySecurityPolicyRuleOperationSettings().build(); + updateGatewaySecurityPolicyRuleSettings = + settingsBuilder.updateGatewaySecurityPolicyRuleSettings().build(); + updateGatewaySecurityPolicyRuleOperationSettings = + settingsBuilder.updateGatewaySecurityPolicyRuleOperationSettings().build(); + deleteGatewaySecurityPolicyRuleSettings = + settingsBuilder.deleteGatewaySecurityPolicyRuleSettings().build(); + deleteGatewaySecurityPolicyRuleOperationSettings = + settingsBuilder.deleteGatewaySecurityPolicyRuleOperationSettings().build(); + listUrlListsSettings = settingsBuilder.listUrlListsSettings().build(); + getUrlListSettings = settingsBuilder.getUrlListSettings().build(); + createUrlListSettings = settingsBuilder.createUrlListSettings().build(); + createUrlListOperationSettings = settingsBuilder.createUrlListOperationSettings().build(); + updateUrlListSettings = settingsBuilder.updateUrlListSettings().build(); + updateUrlListOperationSettings = settingsBuilder.updateUrlListOperationSettings().build(); + deleteUrlListSettings = settingsBuilder.deleteUrlListSettings().build(); + deleteUrlListOperationSettings = settingsBuilder.deleteUrlListOperationSettings().build(); + listTlsInspectionPoliciesSettings = settingsBuilder.listTlsInspectionPoliciesSettings().build(); + getTlsInspectionPolicySettings = settingsBuilder.getTlsInspectionPolicySettings().build(); + createTlsInspectionPolicySettings = settingsBuilder.createTlsInspectionPolicySettings().build(); + createTlsInspectionPolicyOperationSettings = + settingsBuilder.createTlsInspectionPolicyOperationSettings().build(); + updateTlsInspectionPolicySettings = settingsBuilder.updateTlsInspectionPolicySettings().build(); + updateTlsInspectionPolicyOperationSettings = + settingsBuilder.updateTlsInspectionPolicyOperationSettings().build(); + deleteTlsInspectionPolicySettings = settingsBuilder.deleteTlsInspectionPolicySettings().build(); + deleteTlsInspectionPolicyOperationSettings = + settingsBuilder.deleteTlsInspectionPolicyOperationSettings().build(); + listAuthzPoliciesSettings = settingsBuilder.listAuthzPoliciesSettings().build(); + getAuthzPolicySettings = settingsBuilder.getAuthzPolicySettings().build(); + createAuthzPolicySettings = settingsBuilder.createAuthzPolicySettings().build(); + createAuthzPolicyOperationSettings = + settingsBuilder.createAuthzPolicyOperationSettings().build(); + updateAuthzPolicySettings = settingsBuilder.updateAuthzPolicySettings().build(); + updateAuthzPolicyOperationSettings = + settingsBuilder.updateAuthzPolicyOperationSettings().build(); + deleteAuthzPolicySettings = settingsBuilder.deleteAuthzPolicySettings().build(); + deleteAuthzPolicyOperationSettings = + settingsBuilder.deleteAuthzPolicyOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -804,6 +1762,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-network-security") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } @@ -832,6 +1791,33 @@ public static class Builder extends StubSettings.Builder deleteAuthorizationPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + ListBackendAuthenticationConfigsPagedResponse> + listBackendAuthenticationConfigsSettings; + private final UnaryCallSettings.Builder< + GetBackendAuthenticationConfigRequest, BackendAuthenticationConfig> + getBackendAuthenticationConfigSettings; + private final UnaryCallSettings.Builder + createBackendAuthenticationConfigSettings; + private final OperationCallSettings.Builder< + CreateBackendAuthenticationConfigRequest, + BackendAuthenticationConfig, + OperationMetadata> + createBackendAuthenticationConfigOperationSettings; + private final UnaryCallSettings.Builder + updateBackendAuthenticationConfigSettings; + private final OperationCallSettings.Builder< + UpdateBackendAuthenticationConfigRequest, + BackendAuthenticationConfig, + OperationMetadata> + updateBackendAuthenticationConfigOperationSettings; + private final UnaryCallSettings.Builder + deleteBackendAuthenticationConfigSettings; + private final OperationCallSettings.Builder< + DeleteBackendAuthenticationConfigRequest, Empty, OperationMetadata> + deleteBackendAuthenticationConfigOperationSettings; private final PagedCallSettings.Builder< ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, @@ -876,6 +1862,105 @@ public static class Builder extends StubSettings.Builder deleteClientTlsPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + ListGatewaySecurityPoliciesPagedResponse> + listGatewaySecurityPoliciesSettings; + private final UnaryCallSettings.Builder + getGatewaySecurityPolicySettings; + private final UnaryCallSettings.Builder + createGatewaySecurityPolicySettings; + private final OperationCallSettings.Builder< + CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + createGatewaySecurityPolicyOperationSettings; + private final UnaryCallSettings.Builder + updateGatewaySecurityPolicySettings; + private final OperationCallSettings.Builder< + UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + updateGatewaySecurityPolicyOperationSettings; + private final UnaryCallSettings.Builder + deleteGatewaySecurityPolicySettings; + private final OperationCallSettings.Builder< + DeleteGatewaySecurityPolicyRequest, Empty, OperationMetadata> + deleteGatewaySecurityPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + ListGatewaySecurityPolicyRulesPagedResponse> + listGatewaySecurityPolicyRulesSettings; + private final UnaryCallSettings.Builder< + GetGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule> + getGatewaySecurityPolicyRuleSettings; + private final UnaryCallSettings.Builder + createGatewaySecurityPolicyRuleSettings; + private final OperationCallSettings.Builder< + CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + createGatewaySecurityPolicyRuleOperationSettings; + private final UnaryCallSettings.Builder + updateGatewaySecurityPolicyRuleSettings; + private final OperationCallSettings.Builder< + UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + updateGatewaySecurityPolicyRuleOperationSettings; + private final UnaryCallSettings.Builder + deleteGatewaySecurityPolicyRuleSettings; + private final OperationCallSettings.Builder< + DeleteGatewaySecurityPolicyRuleRequest, Empty, OperationMetadata> + deleteGatewaySecurityPolicyRuleOperationSettings; + private final PagedCallSettings.Builder< + ListUrlListsRequest, ListUrlListsResponse, ListUrlListsPagedResponse> + listUrlListsSettings; + private final UnaryCallSettings.Builder getUrlListSettings; + private final UnaryCallSettings.Builder createUrlListSettings; + private final OperationCallSettings.Builder + createUrlListOperationSettings; + private final UnaryCallSettings.Builder updateUrlListSettings; + private final OperationCallSettings.Builder + updateUrlListOperationSettings; + private final UnaryCallSettings.Builder deleteUrlListSettings; + private final OperationCallSettings.Builder + deleteUrlListOperationSettings; + private final PagedCallSettings.Builder< + ListTlsInspectionPoliciesRequest, + ListTlsInspectionPoliciesResponse, + ListTlsInspectionPoliciesPagedResponse> + listTlsInspectionPoliciesSettings; + private final UnaryCallSettings.Builder + getTlsInspectionPolicySettings; + private final UnaryCallSettings.Builder + createTlsInspectionPolicySettings; + private final OperationCallSettings.Builder< + CreateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + createTlsInspectionPolicyOperationSettings; + private final UnaryCallSettings.Builder + updateTlsInspectionPolicySettings; + private final OperationCallSettings.Builder< + UpdateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + updateTlsInspectionPolicyOperationSettings; + private final UnaryCallSettings.Builder + deleteTlsInspectionPolicySettings; + private final OperationCallSettings.Builder< + DeleteTlsInspectionPolicyRequest, Empty, OperationMetadata> + deleteTlsInspectionPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, ListAuthzPoliciesPagedResponse> + listAuthzPoliciesSettings; + private final UnaryCallSettings.Builder + getAuthzPolicySettings; + private final UnaryCallSettings.Builder + createAuthzPolicySettings; + private final OperationCallSettings.Builder< + CreateAuthzPolicyRequest, AuthzPolicy, OperationMetadata> + createAuthzPolicyOperationSettings; + private final UnaryCallSettings.Builder + updateAuthzPolicySettings; + private final OperationCallSettings.Builder< + UpdateAuthzPolicyRequest, AuthzPolicy, OperationMetadata> + updateAuthzPolicyOperationSettings; + private final UnaryCallSettings.Builder + deleteAuthzPolicySettings; + private final OperationCallSettings.Builder + deleteAuthzPolicyOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -927,6 +2012,15 @@ protected Builder(ClientContext clientContext) { updateAuthorizationPolicyOperationSettings = OperationCallSettings.newBuilder(); deleteAuthorizationPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteAuthorizationPolicyOperationSettings = OperationCallSettings.newBuilder(); + listBackendAuthenticationConfigsSettings = + PagedCallSettings.newBuilder(LIST_BACKEND_AUTHENTICATION_CONFIGS_PAGE_STR_FACT); + getBackendAuthenticationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBackendAuthenticationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBackendAuthenticationConfigOperationSettings = OperationCallSettings.newBuilder(); + updateBackendAuthenticationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBackendAuthenticationConfigOperationSettings = OperationCallSettings.newBuilder(); + deleteBackendAuthenticationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBackendAuthenticationConfigOperationSettings = OperationCallSettings.newBuilder(); listServerTlsPoliciesSettings = PagedCallSettings.newBuilder(LIST_SERVER_TLS_POLICIES_PAGE_STR_FACT); getServerTlsPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -945,6 +2039,49 @@ protected Builder(ClientContext clientContext) { updateClientTlsPolicyOperationSettings = OperationCallSettings.newBuilder(); deleteClientTlsPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteClientTlsPolicyOperationSettings = OperationCallSettings.newBuilder(); + listGatewaySecurityPoliciesSettings = + PagedCallSettings.newBuilder(LIST_GATEWAY_SECURITY_POLICIES_PAGE_STR_FACT); + getGatewaySecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGatewaySecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGatewaySecurityPolicyOperationSettings = OperationCallSettings.newBuilder(); + updateGatewaySecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateGatewaySecurityPolicyOperationSettings = OperationCallSettings.newBuilder(); + deleteGatewaySecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGatewaySecurityPolicyOperationSettings = OperationCallSettings.newBuilder(); + listGatewaySecurityPolicyRulesSettings = + PagedCallSettings.newBuilder(LIST_GATEWAY_SECURITY_POLICY_RULES_PAGE_STR_FACT); + getGatewaySecurityPolicyRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGatewaySecurityPolicyRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGatewaySecurityPolicyRuleOperationSettings = OperationCallSettings.newBuilder(); + updateGatewaySecurityPolicyRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateGatewaySecurityPolicyRuleOperationSettings = OperationCallSettings.newBuilder(); + deleteGatewaySecurityPolicyRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGatewaySecurityPolicyRuleOperationSettings = OperationCallSettings.newBuilder(); + listUrlListsSettings = PagedCallSettings.newBuilder(LIST_URL_LISTS_PAGE_STR_FACT); + getUrlListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createUrlListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createUrlListOperationSettings = OperationCallSettings.newBuilder(); + updateUrlListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateUrlListOperationSettings = OperationCallSettings.newBuilder(); + deleteUrlListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteUrlListOperationSettings = OperationCallSettings.newBuilder(); + listTlsInspectionPoliciesSettings = + PagedCallSettings.newBuilder(LIST_TLS_INSPECTION_POLICIES_PAGE_STR_FACT); + getTlsInspectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createTlsInspectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createTlsInspectionPolicyOperationSettings = OperationCallSettings.newBuilder(); + updateTlsInspectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTlsInspectionPolicyOperationSettings = OperationCallSettings.newBuilder(); + deleteTlsInspectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTlsInspectionPolicyOperationSettings = OperationCallSettings.newBuilder(); + listAuthzPoliciesSettings = PagedCallSettings.newBuilder(LIST_AUTHZ_POLICIES_PAGE_STR_FACT); + getAuthzPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAuthzPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAuthzPolicyOperationSettings = OperationCallSettings.newBuilder(); + updateAuthzPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAuthzPolicyOperationSettings = OperationCallSettings.newBuilder(); + deleteAuthzPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAuthzPolicyOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -958,6 +2095,11 @@ protected Builder(ClientContext clientContext) { createAuthorizationPolicySettings, updateAuthorizationPolicySettings, deleteAuthorizationPolicySettings, + listBackendAuthenticationConfigsSettings, + getBackendAuthenticationConfigSettings, + createBackendAuthenticationConfigSettings, + updateBackendAuthenticationConfigSettings, + deleteBackendAuthenticationConfigSettings, listServerTlsPoliciesSettings, getServerTlsPolicySettings, createServerTlsPolicySettings, @@ -968,6 +2110,31 @@ protected Builder(ClientContext clientContext) { createClientTlsPolicySettings, updateClientTlsPolicySettings, deleteClientTlsPolicySettings, + listGatewaySecurityPoliciesSettings, + getGatewaySecurityPolicySettings, + createGatewaySecurityPolicySettings, + updateGatewaySecurityPolicySettings, + deleteGatewaySecurityPolicySettings, + listGatewaySecurityPolicyRulesSettings, + getGatewaySecurityPolicyRuleSettings, + createGatewaySecurityPolicyRuleSettings, + updateGatewaySecurityPolicyRuleSettings, + deleteGatewaySecurityPolicyRuleSettings, + listUrlListsSettings, + getUrlListSettings, + createUrlListSettings, + updateUrlListSettings, + deleteUrlListSettings, + listTlsInspectionPoliciesSettings, + getTlsInspectionPolicySettings, + createTlsInspectionPolicySettings, + updateTlsInspectionPolicySettings, + deleteTlsInspectionPolicySettings, + listAuthzPoliciesSettings, + getAuthzPolicySettings, + createAuthzPolicySettings, + updateAuthzPolicySettings, + deleteAuthzPolicySettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -990,6 +2157,22 @@ protected Builder(NetworkSecurityStubSettings settings) { deleteAuthorizationPolicySettings = settings.deleteAuthorizationPolicySettings.toBuilder(); deleteAuthorizationPolicyOperationSettings = settings.deleteAuthorizationPolicyOperationSettings.toBuilder(); + listBackendAuthenticationConfigsSettings = + settings.listBackendAuthenticationConfigsSettings.toBuilder(); + getBackendAuthenticationConfigSettings = + settings.getBackendAuthenticationConfigSettings.toBuilder(); + createBackendAuthenticationConfigSettings = + settings.createBackendAuthenticationConfigSettings.toBuilder(); + createBackendAuthenticationConfigOperationSettings = + settings.createBackendAuthenticationConfigOperationSettings.toBuilder(); + updateBackendAuthenticationConfigSettings = + settings.updateBackendAuthenticationConfigSettings.toBuilder(); + updateBackendAuthenticationConfigOperationSettings = + settings.updateBackendAuthenticationConfigOperationSettings.toBuilder(); + deleteBackendAuthenticationConfigSettings = + settings.deleteBackendAuthenticationConfigSettings.toBuilder(); + deleteBackendAuthenticationConfigOperationSettings = + settings.deleteBackendAuthenticationConfigOperationSettings.toBuilder(); listServerTlsPoliciesSettings = settings.listServerTlsPoliciesSettings.toBuilder(); getServerTlsPolicySettings = settings.getServerTlsPolicySettings.toBuilder(); createServerTlsPolicySettings = settings.createServerTlsPolicySettings.toBuilder(); @@ -1012,6 +2195,64 @@ protected Builder(NetworkSecurityStubSettings settings) { deleteClientTlsPolicySettings = settings.deleteClientTlsPolicySettings.toBuilder(); deleteClientTlsPolicyOperationSettings = settings.deleteClientTlsPolicyOperationSettings.toBuilder(); + listGatewaySecurityPoliciesSettings = + settings.listGatewaySecurityPoliciesSettings.toBuilder(); + getGatewaySecurityPolicySettings = settings.getGatewaySecurityPolicySettings.toBuilder(); + createGatewaySecurityPolicySettings = + settings.createGatewaySecurityPolicySettings.toBuilder(); + createGatewaySecurityPolicyOperationSettings = + settings.createGatewaySecurityPolicyOperationSettings.toBuilder(); + updateGatewaySecurityPolicySettings = + settings.updateGatewaySecurityPolicySettings.toBuilder(); + updateGatewaySecurityPolicyOperationSettings = + settings.updateGatewaySecurityPolicyOperationSettings.toBuilder(); + deleteGatewaySecurityPolicySettings = + settings.deleteGatewaySecurityPolicySettings.toBuilder(); + deleteGatewaySecurityPolicyOperationSettings = + settings.deleteGatewaySecurityPolicyOperationSettings.toBuilder(); + listGatewaySecurityPolicyRulesSettings = + settings.listGatewaySecurityPolicyRulesSettings.toBuilder(); + getGatewaySecurityPolicyRuleSettings = + settings.getGatewaySecurityPolicyRuleSettings.toBuilder(); + createGatewaySecurityPolicyRuleSettings = + settings.createGatewaySecurityPolicyRuleSettings.toBuilder(); + createGatewaySecurityPolicyRuleOperationSettings = + settings.createGatewaySecurityPolicyRuleOperationSettings.toBuilder(); + updateGatewaySecurityPolicyRuleSettings = + settings.updateGatewaySecurityPolicyRuleSettings.toBuilder(); + updateGatewaySecurityPolicyRuleOperationSettings = + settings.updateGatewaySecurityPolicyRuleOperationSettings.toBuilder(); + deleteGatewaySecurityPolicyRuleSettings = + settings.deleteGatewaySecurityPolicyRuleSettings.toBuilder(); + deleteGatewaySecurityPolicyRuleOperationSettings = + settings.deleteGatewaySecurityPolicyRuleOperationSettings.toBuilder(); + listUrlListsSettings = settings.listUrlListsSettings.toBuilder(); + getUrlListSettings = settings.getUrlListSettings.toBuilder(); + createUrlListSettings = settings.createUrlListSettings.toBuilder(); + createUrlListOperationSettings = settings.createUrlListOperationSettings.toBuilder(); + updateUrlListSettings = settings.updateUrlListSettings.toBuilder(); + updateUrlListOperationSettings = settings.updateUrlListOperationSettings.toBuilder(); + deleteUrlListSettings = settings.deleteUrlListSettings.toBuilder(); + deleteUrlListOperationSettings = settings.deleteUrlListOperationSettings.toBuilder(); + listTlsInspectionPoliciesSettings = settings.listTlsInspectionPoliciesSettings.toBuilder(); + getTlsInspectionPolicySettings = settings.getTlsInspectionPolicySettings.toBuilder(); + createTlsInspectionPolicySettings = settings.createTlsInspectionPolicySettings.toBuilder(); + createTlsInspectionPolicyOperationSettings = + settings.createTlsInspectionPolicyOperationSettings.toBuilder(); + updateTlsInspectionPolicySettings = settings.updateTlsInspectionPolicySettings.toBuilder(); + updateTlsInspectionPolicyOperationSettings = + settings.updateTlsInspectionPolicyOperationSettings.toBuilder(); + deleteTlsInspectionPolicySettings = settings.deleteTlsInspectionPolicySettings.toBuilder(); + deleteTlsInspectionPolicyOperationSettings = + settings.deleteTlsInspectionPolicyOperationSettings.toBuilder(); + listAuthzPoliciesSettings = settings.listAuthzPoliciesSettings.toBuilder(); + getAuthzPolicySettings = settings.getAuthzPolicySettings.toBuilder(); + createAuthzPolicySettings = settings.createAuthzPolicySettings.toBuilder(); + createAuthzPolicyOperationSettings = settings.createAuthzPolicyOperationSettings.toBuilder(); + updateAuthzPolicySettings = settings.updateAuthzPolicySettings.toBuilder(); + updateAuthzPolicyOperationSettings = settings.updateAuthzPolicyOperationSettings.toBuilder(); + deleteAuthzPolicySettings = settings.deleteAuthzPolicySettings.toBuilder(); + deleteAuthzPolicyOperationSettings = settings.deleteAuthzPolicyOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -1025,6 +2266,11 @@ protected Builder(NetworkSecurityStubSettings settings) { createAuthorizationPolicySettings, updateAuthorizationPolicySettings, deleteAuthorizationPolicySettings, + listBackendAuthenticationConfigsSettings, + getBackendAuthenticationConfigSettings, + createBackendAuthenticationConfigSettings, + updateBackendAuthenticationConfigSettings, + deleteBackendAuthenticationConfigSettings, listServerTlsPoliciesSettings, getServerTlsPolicySettings, createServerTlsPolicySettings, @@ -1035,6 +2281,31 @@ protected Builder(NetworkSecurityStubSettings settings) { createClientTlsPolicySettings, updateClientTlsPolicySettings, deleteClientTlsPolicySettings, + listGatewaySecurityPoliciesSettings, + getGatewaySecurityPolicySettings, + createGatewaySecurityPolicySettings, + updateGatewaySecurityPolicySettings, + deleteGatewaySecurityPolicySettings, + listGatewaySecurityPolicyRulesSettings, + getGatewaySecurityPolicyRuleSettings, + createGatewaySecurityPolicyRuleSettings, + updateGatewaySecurityPolicyRuleSettings, + deleteGatewaySecurityPolicyRuleSettings, + listUrlListsSettings, + getUrlListSettings, + createUrlListSettings, + updateUrlListSettings, + deleteUrlListSettings, + listTlsInspectionPoliciesSettings, + getTlsInspectionPolicySettings, + createTlsInspectionPolicySettings, + updateTlsInspectionPolicySettings, + deleteTlsInspectionPolicySettings, + listAuthzPoliciesSettings, + getAuthzPolicySettings, + createAuthzPolicySettings, + updateAuthzPolicySettings, + deleteAuthzPolicySettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1080,6 +2351,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .listBackendAuthenticationConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getBackendAuthenticationConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createBackendAuthenticationConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateBackendAuthenticationConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteBackendAuthenticationConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listServerTlsPoliciesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1131,41 +2427,564 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .listLocationsSettings() + .listGatewaySecurityPoliciesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .getLocationSettings() + .getGatewaySecurityPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createGatewaySecurityPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateGatewaySecurityPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteGatewaySecurityPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listGatewaySecurityPolicyRulesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getGatewaySecurityPolicyRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createGatewaySecurityPolicyRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateGatewaySecurityPolicyRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteGatewaySecurityPolicyRuleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listUrlListsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getUrlListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createUrlListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateUrlListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteUrlListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listTlsInspectionPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getTlsInspectionPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createTlsInspectionPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateTlsInspectionPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteTlsInspectionPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .listAuthzPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getAuthzPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createAuthzPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateAuthzPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteAuthzPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createAuthorizationPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AuthorizationPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateAuthorizationPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AuthorizationPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAuthorizationPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createBackendAuthenticationConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BackendAuthenticationConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateBackendAuthenticationConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BackendAuthenticationConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteBackendAuthenticationConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createServerTlsPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ServerTlsPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateServerTlsPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ServerTlsPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteServerTlsPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createClientTlsPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ClientTlsPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateClientTlsPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ClientTlsPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteClientTlsPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createGatewaySecurityPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(GatewaySecurityPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateGatewaySecurityPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(GatewaySecurityPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + .deleteGatewaySecurityPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + .createGatewaySecurityPolicyRuleOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + GatewaySecurityPolicyRule.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .createAuthorizationPolicyOperationSettings() + .updateGatewaySecurityPolicyRuleOperationSettings() .setInitialCallSettings( UnaryCallSettings - . + . newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AuthorizationPolicy.class)) + ProtoOperationTransformers.ResponseTransformer.create( + GatewaySecurityPolicyRule.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -1181,16 +3000,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateAuthorizationPolicyOperationSettings() + .deleteGatewaySecurityPolicyRuleOperationSettings() .setInitialCallSettings( UnaryCallSettings - . + . newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AuthorizationPolicy.class)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -1206,11 +3025,58 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteAuthorizationPolicyOperationSettings() + .createUrlListOperationSettings() .setInitialCallSettings( UnaryCallSettings - . - newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(UrlList.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateUrlListOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(UrlList.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteUrlListOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) @@ -1231,15 +3097,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .createServerTlsPolicyOperationSettings() + .createTlsInspectionPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ServerTlsPolicy.class)) + ProtoOperationTransformers.ResponseTransformer.create(TlsInspectionPolicy.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -1255,15 +3122,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateServerTlsPolicyOperationSettings() + .updateTlsInspectionPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ServerTlsPolicy.class)) + ProtoOperationTransformers.ResponseTransformer.create(TlsInspectionPolicy.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -1279,10 +3147,11 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteServerTlsPolicyOperationSettings() + .deleteTlsInspectionPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) @@ -1303,15 +3172,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .createClientTlsPolicyOperationSettings() + .createAuthzPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ClientTlsPolicy.class)) + ProtoOperationTransformers.ResponseTransformer.create(AuthzPolicy.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -1327,15 +3196,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateClientTlsPolicyOperationSettings() + .updateAuthzPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ClientTlsPolicy.class)) + ProtoOperationTransformers.ResponseTransformer.create(AuthzPolicy.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -1351,10 +3220,10 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteClientTlsPolicyOperationSettings() + .deleteAuthzPolicyOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) @@ -1445,6 +3314,65 @@ public Builder applyToAllUnaryMethods( return deleteAuthorizationPolicyOperationSettings; } + /** Returns the builder for the settings used for calls to listBackendAuthenticationConfigs. */ + public PagedCallSettings.Builder< + ListBackendAuthenticationConfigsRequest, + ListBackendAuthenticationConfigsResponse, + ListBackendAuthenticationConfigsPagedResponse> + listBackendAuthenticationConfigsSettings() { + return listBackendAuthenticationConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getBackendAuthenticationConfig. */ + public UnaryCallSettings.Builder< + GetBackendAuthenticationConfigRequest, BackendAuthenticationConfig> + getBackendAuthenticationConfigSettings() { + return getBackendAuthenticationConfigSettings; + } + + /** Returns the builder for the settings used for calls to createBackendAuthenticationConfig. */ + public UnaryCallSettings.Builder + createBackendAuthenticationConfigSettings() { + return createBackendAuthenticationConfigSettings; + } + + /** Returns the builder for the settings used for calls to createBackendAuthenticationConfig. */ + public OperationCallSettings.Builder< + CreateBackendAuthenticationConfigRequest, + BackendAuthenticationConfig, + OperationMetadata> + createBackendAuthenticationConfigOperationSettings() { + return createBackendAuthenticationConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateBackendAuthenticationConfig. */ + public UnaryCallSettings.Builder + updateBackendAuthenticationConfigSettings() { + return updateBackendAuthenticationConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateBackendAuthenticationConfig. */ + public OperationCallSettings.Builder< + UpdateBackendAuthenticationConfigRequest, + BackendAuthenticationConfig, + OperationMetadata> + updateBackendAuthenticationConfigOperationSettings() { + return updateBackendAuthenticationConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteBackendAuthenticationConfig. */ + public UnaryCallSettings.Builder + deleteBackendAuthenticationConfigSettings() { + return deleteBackendAuthenticationConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteBackendAuthenticationConfig. */ + public OperationCallSettings.Builder< + DeleteBackendAuthenticationConfigRequest, Empty, OperationMetadata> + deleteBackendAuthenticationConfigOperationSettings() { + return deleteBackendAuthenticationConfigOperationSettings; + } + /** Returns the builder for the settings used for calls to listServerTlsPolicies. */ public PagedCallSettings.Builder< ListServerTlsPoliciesRequest, @@ -1551,6 +3479,260 @@ public Builder applyToAllUnaryMethods( return deleteClientTlsPolicyOperationSettings; } + /** Returns the builder for the settings used for calls to listGatewaySecurityPolicies. */ + public PagedCallSettings.Builder< + ListGatewaySecurityPoliciesRequest, + ListGatewaySecurityPoliciesResponse, + ListGatewaySecurityPoliciesPagedResponse> + listGatewaySecurityPoliciesSettings() { + return listGatewaySecurityPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to getGatewaySecurityPolicy. */ + public UnaryCallSettings.Builder + getGatewaySecurityPolicySettings() { + return getGatewaySecurityPolicySettings; + } + + /** Returns the builder for the settings used for calls to createGatewaySecurityPolicy. */ + public UnaryCallSettings.Builder + createGatewaySecurityPolicySettings() { + return createGatewaySecurityPolicySettings; + } + + /** Returns the builder for the settings used for calls to createGatewaySecurityPolicy. */ + public OperationCallSettings.Builder< + CreateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + createGatewaySecurityPolicyOperationSettings() { + return createGatewaySecurityPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateGatewaySecurityPolicy. */ + public UnaryCallSettings.Builder + updateGatewaySecurityPolicySettings() { + return updateGatewaySecurityPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateGatewaySecurityPolicy. */ + public OperationCallSettings.Builder< + UpdateGatewaySecurityPolicyRequest, GatewaySecurityPolicy, OperationMetadata> + updateGatewaySecurityPolicyOperationSettings() { + return updateGatewaySecurityPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteGatewaySecurityPolicy. */ + public UnaryCallSettings.Builder + deleteGatewaySecurityPolicySettings() { + return deleteGatewaySecurityPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteGatewaySecurityPolicy. */ + public OperationCallSettings.Builder< + DeleteGatewaySecurityPolicyRequest, Empty, OperationMetadata> + deleteGatewaySecurityPolicyOperationSettings() { + return deleteGatewaySecurityPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to listGatewaySecurityPolicyRules. */ + public PagedCallSettings.Builder< + ListGatewaySecurityPolicyRulesRequest, + ListGatewaySecurityPolicyRulesResponse, + ListGatewaySecurityPolicyRulesPagedResponse> + listGatewaySecurityPolicyRulesSettings() { + return listGatewaySecurityPolicyRulesSettings; + } + + /** Returns the builder for the settings used for calls to getGatewaySecurityPolicyRule. */ + public UnaryCallSettings.Builder + getGatewaySecurityPolicyRuleSettings() { + return getGatewaySecurityPolicyRuleSettings; + } + + /** Returns the builder for the settings used for calls to createGatewaySecurityPolicyRule. */ + public UnaryCallSettings.Builder + createGatewaySecurityPolicyRuleSettings() { + return createGatewaySecurityPolicyRuleSettings; + } + + /** Returns the builder for the settings used for calls to createGatewaySecurityPolicyRule. */ + public OperationCallSettings.Builder< + CreateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + createGatewaySecurityPolicyRuleOperationSettings() { + return createGatewaySecurityPolicyRuleOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateGatewaySecurityPolicyRule. */ + public UnaryCallSettings.Builder + updateGatewaySecurityPolicyRuleSettings() { + return updateGatewaySecurityPolicyRuleSettings; + } + + /** Returns the builder for the settings used for calls to updateGatewaySecurityPolicyRule. */ + public OperationCallSettings.Builder< + UpdateGatewaySecurityPolicyRuleRequest, GatewaySecurityPolicyRule, OperationMetadata> + updateGatewaySecurityPolicyRuleOperationSettings() { + return updateGatewaySecurityPolicyRuleOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteGatewaySecurityPolicyRule. */ + public UnaryCallSettings.Builder + deleteGatewaySecurityPolicyRuleSettings() { + return deleteGatewaySecurityPolicyRuleSettings; + } + + /** Returns the builder for the settings used for calls to deleteGatewaySecurityPolicyRule. */ + public OperationCallSettings.Builder< + DeleteGatewaySecurityPolicyRuleRequest, Empty, OperationMetadata> + deleteGatewaySecurityPolicyRuleOperationSettings() { + return deleteGatewaySecurityPolicyRuleOperationSettings; + } + + /** Returns the builder for the settings used for calls to listUrlLists. */ + public PagedCallSettings.Builder< + ListUrlListsRequest, ListUrlListsResponse, ListUrlListsPagedResponse> + listUrlListsSettings() { + return listUrlListsSettings; + } + + /** Returns the builder for the settings used for calls to getUrlList. */ + public UnaryCallSettings.Builder getUrlListSettings() { + return getUrlListSettings; + } + + /** Returns the builder for the settings used for calls to createUrlList. */ + public UnaryCallSettings.Builder createUrlListSettings() { + return createUrlListSettings; + } + + /** Returns the builder for the settings used for calls to createUrlList. */ + public OperationCallSettings.Builder + createUrlListOperationSettings() { + return createUrlListOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateUrlList. */ + public UnaryCallSettings.Builder updateUrlListSettings() { + return updateUrlListSettings; + } + + /** Returns the builder for the settings used for calls to updateUrlList. */ + public OperationCallSettings.Builder + updateUrlListOperationSettings() { + return updateUrlListOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteUrlList. */ + public UnaryCallSettings.Builder deleteUrlListSettings() { + return deleteUrlListSettings; + } + + /** Returns the builder for the settings used for calls to deleteUrlList. */ + public OperationCallSettings.Builder + deleteUrlListOperationSettings() { + return deleteUrlListOperationSettings; + } + + /** Returns the builder for the settings used for calls to listTlsInspectionPolicies. */ + public PagedCallSettings.Builder< + ListTlsInspectionPoliciesRequest, + ListTlsInspectionPoliciesResponse, + ListTlsInspectionPoliciesPagedResponse> + listTlsInspectionPoliciesSettings() { + return listTlsInspectionPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to getTlsInspectionPolicy. */ + public UnaryCallSettings.Builder + getTlsInspectionPolicySettings() { + return getTlsInspectionPolicySettings; + } + + /** Returns the builder for the settings used for calls to createTlsInspectionPolicy. */ + public UnaryCallSettings.Builder + createTlsInspectionPolicySettings() { + return createTlsInspectionPolicySettings; + } + + /** Returns the builder for the settings used for calls to createTlsInspectionPolicy. */ + public OperationCallSettings.Builder< + CreateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + createTlsInspectionPolicyOperationSettings() { + return createTlsInspectionPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateTlsInspectionPolicy. */ + public UnaryCallSettings.Builder + updateTlsInspectionPolicySettings() { + return updateTlsInspectionPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateTlsInspectionPolicy. */ + public OperationCallSettings.Builder< + UpdateTlsInspectionPolicyRequest, TlsInspectionPolicy, OperationMetadata> + updateTlsInspectionPolicyOperationSettings() { + return updateTlsInspectionPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteTlsInspectionPolicy. */ + public UnaryCallSettings.Builder + deleteTlsInspectionPolicySettings() { + return deleteTlsInspectionPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteTlsInspectionPolicy. */ + public OperationCallSettings.Builder + deleteTlsInspectionPolicyOperationSettings() { + return deleteTlsInspectionPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to listAuthzPolicies. */ + public PagedCallSettings.Builder< + ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, ListAuthzPoliciesPagedResponse> + listAuthzPoliciesSettings() { + return listAuthzPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to getAuthzPolicy. */ + public UnaryCallSettings.Builder getAuthzPolicySettings() { + return getAuthzPolicySettings; + } + + /** Returns the builder for the settings used for calls to createAuthzPolicy. */ + public UnaryCallSettings.Builder + createAuthzPolicySettings() { + return createAuthzPolicySettings; + } + + /** Returns the builder for the settings used for calls to createAuthzPolicy. */ + public OperationCallSettings.Builder + createAuthzPolicyOperationSettings() { + return createAuthzPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateAuthzPolicy. */ + public UnaryCallSettings.Builder + updateAuthzPolicySettings() { + return updateAuthzPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAuthzPolicy. */ + public OperationCallSettings.Builder + updateAuthzPolicyOperationSettings() { + return updateAuthzPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAuthzPolicy. */ + public UnaryCallSettings.Builder + deleteAuthzPolicySettings() { + return deleteAuthzPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteAuthzPolicy. */ + public OperationCallSettings.Builder + deleteAuthzPolicyOperationSettings() { + return deleteAuthzPolicyOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java index 55ff06990836..43bb75a195dd 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java @@ -627,6 +627,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-network-security") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStub.java new file mode 100644 index 000000000000..56a0b6767ad5 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStub.java @@ -0,0 +1,194 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.GetSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse; +import com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OrganizationSecurityProfileGroupService service API. + * + *

                                                                                              This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class OrganizationSecurityProfileGroupServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listSecurityProfileGroupsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSecurityProfileGroupsPagedCallable()"); + } + + public UnaryCallable + listSecurityProfileGroupsCallable() { + throw new UnsupportedOperationException("Not implemented: listSecurityProfileGroupsCallable()"); + } + + public UnaryCallable + getSecurityProfileGroupCallable() { + throw new UnsupportedOperationException("Not implemented: getSecurityProfileGroupCallable()"); + } + + public OperationCallable< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createSecurityProfileGroupOperationCallable()"); + } + + public UnaryCallable + createSecurityProfileGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: createSecurityProfileGroupCallable()"); + } + + public OperationCallable< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateSecurityProfileGroupOperationCallable()"); + } + + public UnaryCallable + updateSecurityProfileGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateSecurityProfileGroupCallable()"); + } + + public OperationCallable + deleteSecurityProfileGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteSecurityProfileGroupOperationCallable()"); + } + + public UnaryCallable + deleteSecurityProfileGroupCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteSecurityProfileGroupCallable()"); + } + + public UnaryCallable + listSecurityProfilesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSecurityProfilesPagedCallable()"); + } + + public UnaryCallable + listSecurityProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: listSecurityProfilesCallable()"); + } + + public UnaryCallable getSecurityProfileCallable() { + throw new UnsupportedOperationException("Not implemented: getSecurityProfileCallable()"); + } + + public OperationCallable + createSecurityProfileOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createSecurityProfileOperationCallable()"); + } + + public UnaryCallable createSecurityProfileCallable() { + throw new UnsupportedOperationException("Not implemented: createSecurityProfileCallable()"); + } + + public OperationCallable + updateSecurityProfileOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateSecurityProfileOperationCallable()"); + } + + public UnaryCallable updateSecurityProfileCallable() { + throw new UnsupportedOperationException("Not implemented: updateSecurityProfileCallable()"); + } + + public OperationCallable + deleteSecurityProfileOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteSecurityProfileOperationCallable()"); + } + + public UnaryCallable deleteSecurityProfileCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSecurityProfileCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStubSettings.java new file mode 100644 index 000000000000..e77278f040aa --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStubSettings.java @@ -0,0 +1,1238 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.GetSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse; +import com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OrganizationSecurityProfileGroupServiceStub}. + * + *

                                                                                              The default instance has everything set to sensible defaults: + * + *

                                                                                                + *
                                                                                              • The default service address (networksecurity.googleapis.com) and default port (443) are + * used. + *
                                                                                              • Credentials are acquired automatically through Application Default Credentials. + *
                                                                                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                                                                              + * + *

                                                                                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                                                                              For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSecurityProfileGroup: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * OrganizationSecurityProfileGroupServiceStubSettings.Builder
                                                                                              + *     organizationSecurityProfileGroupServiceSettingsBuilder =
                                                                                              + *         OrganizationSecurityProfileGroupServiceStubSettings.newBuilder();
                                                                                              + * organizationSecurityProfileGroupServiceSettingsBuilder
                                                                                              + *     .getSecurityProfileGroupSettings()
                                                                                              + *     .setRetrySettings(
                                                                                              + *         organizationSecurityProfileGroupServiceSettingsBuilder
                                                                                              + *             .getSecurityProfileGroupSettings()
                                                                                              + *             .getRetrySettings()
                                                                                              + *             .toBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
                                                                                              + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
                                                                                              + *             .setMaxAttempts(5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
                                                                                              + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
                                                                                              + *             .setRetryDelayMultiplier(1.3)
                                                                                              + *             .setRpcTimeoutMultiplier(1.5)
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
                                                                                              + *             .build());
                                                                                              + * OrganizationSecurityProfileGroupServiceStubSettings
                                                                                              + *     organizationSecurityProfileGroupServiceSettings =
                                                                                              + *         organizationSecurityProfileGroupServiceSettingsBuilder.build();
                                                                                              + * }
                                                                                              + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

                                                                                              To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createSecurityProfileGroup: + * + *

                                                                                              {@code
                                                                                              + * // This snippet has been automatically generated and should be regarded as a code template only.
                                                                                              + * // It will require modifications to work:
                                                                                              + * // - It may require correct/in-range values for request initialization.
                                                                                              + * // - It may require specifying regional endpoints when creating the service client as shown in
                                                                                              + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                                                                                              + * OrganizationSecurityProfileGroupServiceStubSettings.Builder
                                                                                              + *     organizationSecurityProfileGroupServiceSettingsBuilder =
                                                                                              + *         OrganizationSecurityProfileGroupServiceStubSettings.newBuilder();
                                                                                              + * TimedRetryAlgorithm timedRetryAlgorithm =
                                                                                              + *     OperationalTimedPollAlgorithm.create(
                                                                                              + *         RetrySettings.newBuilder()
                                                                                              + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
                                                                                              + *             .setRetryDelayMultiplier(1.5)
                                                                                              + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
                                                                                              + *             .setTotalTimeoutDuration(Duration.ofHours(24))
                                                                                              + *             .build());
                                                                                              + * organizationSecurityProfileGroupServiceSettingsBuilder
                                                                                              + *     .createClusterOperationSettings()
                                                                                              + *     .setPollingAlgorithm(timedRetryAlgorithm)
                                                                                              + *     .build();
                                                                                              + * }
                                                                                              + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class OrganizationSecurityProfileGroupServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + ListSecurityProfileGroupsPagedResponse> + listSecurityProfileGroupsSettings; + private final UnaryCallSettings + getSecurityProfileGroupSettings; + private final UnaryCallSettings + createSecurityProfileGroupSettings; + private final OperationCallSettings< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationSettings; + private final UnaryCallSettings + updateSecurityProfileGroupSettings; + private final OperationCallSettings< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationSettings; + private final UnaryCallSettings + deleteSecurityProfileGroupSettings; + private final OperationCallSettings + deleteSecurityProfileGroupOperationSettings; + private final PagedCallSettings< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + ListSecurityProfilesPagedResponse> + listSecurityProfilesSettings; + private final UnaryCallSettings + getSecurityProfileSettings; + private final UnaryCallSettings + createSecurityProfileSettings; + private final OperationCallSettings< + CreateSecurityProfileRequest, SecurityProfile, OperationMetadata> + createSecurityProfileOperationSettings; + private final UnaryCallSettings + updateSecurityProfileSettings; + private final OperationCallSettings< + UpdateSecurityProfileRequest, SecurityProfile, OperationMetadata> + updateSecurityProfileOperationSettings; + private final UnaryCallSettings + deleteSecurityProfileSettings; + private final OperationCallSettings + deleteSecurityProfileOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsResponse, SecurityProfileGroup> + LIST_SECURITY_PROFILE_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSecurityProfileGroupsRequest injectToken( + ListSecurityProfileGroupsRequest payload, String token) { + return ListSecurityProfileGroupsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListSecurityProfileGroupsRequest injectPageSize( + ListSecurityProfileGroupsRequest payload, int pageSize) { + return ListSecurityProfileGroupsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListSecurityProfileGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSecurityProfileGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListSecurityProfileGroupsResponse payload) { + return payload.getSecurityProfileGroupsList(); + } + }; + + private static final PagedListDescriptor< + ListSecurityProfilesRequest, ListSecurityProfilesResponse, SecurityProfile> + LIST_SECURITY_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor< + ListSecurityProfilesRequest, ListSecurityProfilesResponse, SecurityProfile>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSecurityProfilesRequest injectToken( + ListSecurityProfilesRequest payload, String token) { + return ListSecurityProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSecurityProfilesRequest injectPageSize( + ListSecurityProfilesRequest payload, int pageSize) { + return ListSecurityProfilesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSecurityProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSecurityProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListSecurityProfilesResponse payload) { + return payload.getSecurityProfilesList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + ListSecurityProfileGroupsPagedResponse> + LIST_SECURITY_PROFILE_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + ListSecurityProfileGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListSecurityProfileGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + SecurityProfileGroup> + pageContext = + PageContext.create( + callable, LIST_SECURITY_PROFILE_GROUPS_PAGE_STR_DESC, request, context); + return ListSecurityProfileGroupsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + ListSecurityProfilesPagedResponse> + LIST_SECURITY_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + ListSecurityProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSecurityProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListSecurityProfilesRequest, ListSecurityProfilesResponse, SecurityProfile> + pageContext = + PageContext.create( + callable, LIST_SECURITY_PROFILES_PAGE_STR_DESC, request, context); + return ListSecurityProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listSecurityProfileGroups. */ + public PagedCallSettings< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + ListSecurityProfileGroupsPagedResponse> + listSecurityProfileGroupsSettings() { + return listSecurityProfileGroupsSettings; + } + + /** Returns the object with the settings used for calls to getSecurityProfileGroup. */ + public UnaryCallSettings + getSecurityProfileGroupSettings() { + return getSecurityProfileGroupSettings; + } + + /** Returns the object with the settings used for calls to createSecurityProfileGroup. */ + public UnaryCallSettings + createSecurityProfileGroupSettings() { + return createSecurityProfileGroupSettings; + } + + /** Returns the object with the settings used for calls to createSecurityProfileGroup. */ + public OperationCallSettings< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationSettings() { + return createSecurityProfileGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateSecurityProfileGroup. */ + public UnaryCallSettings + updateSecurityProfileGroupSettings() { + return updateSecurityProfileGroupSettings; + } + + /** Returns the object with the settings used for calls to updateSecurityProfileGroup. */ + public OperationCallSettings< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationSettings() { + return updateSecurityProfileGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteSecurityProfileGroup. */ + public UnaryCallSettings + deleteSecurityProfileGroupSettings() { + return deleteSecurityProfileGroupSettings; + } + + /** Returns the object with the settings used for calls to deleteSecurityProfileGroup. */ + public OperationCallSettings + deleteSecurityProfileGroupOperationSettings() { + return deleteSecurityProfileGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to listSecurityProfiles. */ + public PagedCallSettings< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + ListSecurityProfilesPagedResponse> + listSecurityProfilesSettings() { + return listSecurityProfilesSettings; + } + + /** Returns the object with the settings used for calls to getSecurityProfile. */ + public UnaryCallSettings + getSecurityProfileSettings() { + return getSecurityProfileSettings; + } + + /** Returns the object with the settings used for calls to createSecurityProfile. */ + public UnaryCallSettings + createSecurityProfileSettings() { + return createSecurityProfileSettings; + } + + /** Returns the object with the settings used for calls to createSecurityProfile. */ + public OperationCallSettings + createSecurityProfileOperationSettings() { + return createSecurityProfileOperationSettings; + } + + /** Returns the object with the settings used for calls to updateSecurityProfile. */ + public UnaryCallSettings + updateSecurityProfileSettings() { + return updateSecurityProfileSettings; + } + + /** Returns the object with the settings used for calls to updateSecurityProfile. */ + public OperationCallSettings + updateSecurityProfileOperationSettings() { + return updateSecurityProfileOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteSecurityProfile. */ + public UnaryCallSettings + deleteSecurityProfileSettings() { + return deleteSecurityProfileSettings; + } + + /** Returns the object with the settings used for calls to deleteSecurityProfile. */ + public OperationCallSettings + deleteSecurityProfileOperationSettings() { + return deleteSecurityProfileOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public OrganizationSecurityProfileGroupServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcOrganizationSecurityProfileGroupServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networksecurity"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "networksecurity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networksecurity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion( + OrganizationSecurityProfileGroupServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OrganizationSecurityProfileGroupServiceStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + listSecurityProfileGroupsSettings = settingsBuilder.listSecurityProfileGroupsSettings().build(); + getSecurityProfileGroupSettings = settingsBuilder.getSecurityProfileGroupSettings().build(); + createSecurityProfileGroupSettings = + settingsBuilder.createSecurityProfileGroupSettings().build(); + createSecurityProfileGroupOperationSettings = + settingsBuilder.createSecurityProfileGroupOperationSettings().build(); + updateSecurityProfileGroupSettings = + settingsBuilder.updateSecurityProfileGroupSettings().build(); + updateSecurityProfileGroupOperationSettings = + settingsBuilder.updateSecurityProfileGroupOperationSettings().build(); + deleteSecurityProfileGroupSettings = + settingsBuilder.deleteSecurityProfileGroupSettings().build(); + deleteSecurityProfileGroupOperationSettings = + settingsBuilder.deleteSecurityProfileGroupOperationSettings().build(); + listSecurityProfilesSettings = settingsBuilder.listSecurityProfilesSettings().build(); + getSecurityProfileSettings = settingsBuilder.getSecurityProfileSettings().build(); + createSecurityProfileSettings = settingsBuilder.createSecurityProfileSettings().build(); + createSecurityProfileOperationSettings = + settingsBuilder.createSecurityProfileOperationSettings().build(); + updateSecurityProfileSettings = settingsBuilder.updateSecurityProfileSettings().build(); + updateSecurityProfileOperationSettings = + settingsBuilder.updateSecurityProfileOperationSettings().build(); + deleteSecurityProfileSettings = settingsBuilder.deleteSecurityProfileSettings().build(); + deleteSecurityProfileOperationSettings = + settingsBuilder.deleteSecurityProfileOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-network-security") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for OrganizationSecurityProfileGroupServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + ListSecurityProfileGroupsPagedResponse> + listSecurityProfileGroupsSettings; + private final UnaryCallSettings.Builder + getSecurityProfileGroupSettings; + private final UnaryCallSettings.Builder + createSecurityProfileGroupSettings; + private final OperationCallSettings.Builder< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationSettings; + private final UnaryCallSettings.Builder + updateSecurityProfileGroupSettings; + private final OperationCallSettings.Builder< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationSettings; + private final UnaryCallSettings.Builder + deleteSecurityProfileGroupSettings; + private final OperationCallSettings.Builder< + DeleteSecurityProfileGroupRequest, Empty, OperationMetadata> + deleteSecurityProfileGroupOperationSettings; + private final PagedCallSettings.Builder< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + ListSecurityProfilesPagedResponse> + listSecurityProfilesSettings; + private final UnaryCallSettings.Builder + getSecurityProfileSettings; + private final UnaryCallSettings.Builder + createSecurityProfileSettings; + private final OperationCallSettings.Builder< + CreateSecurityProfileRequest, SecurityProfile, OperationMetadata> + createSecurityProfileOperationSettings; + private final UnaryCallSettings.Builder + updateSecurityProfileSettings; + private final OperationCallSettings.Builder< + UpdateSecurityProfileRequest, SecurityProfile, OperationMetadata> + updateSecurityProfileOperationSettings; + private final UnaryCallSettings.Builder + deleteSecurityProfileSettings; + private final OperationCallSettings.Builder< + DeleteSecurityProfileRequest, Empty, OperationMetadata> + deleteSecurityProfileOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listSecurityProfileGroupsSettings = + PagedCallSettings.newBuilder(LIST_SECURITY_PROFILE_GROUPS_PAGE_STR_FACT); + getSecurityProfileGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSecurityProfileGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSecurityProfileGroupOperationSettings = OperationCallSettings.newBuilder(); + updateSecurityProfileGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSecurityProfileGroupOperationSettings = OperationCallSettings.newBuilder(); + deleteSecurityProfileGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSecurityProfileGroupOperationSettings = OperationCallSettings.newBuilder(); + listSecurityProfilesSettings = + PagedCallSettings.newBuilder(LIST_SECURITY_PROFILES_PAGE_STR_FACT); + getSecurityProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSecurityProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSecurityProfileOperationSettings = OperationCallSettings.newBuilder(); + updateSecurityProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSecurityProfileOperationSettings = OperationCallSettings.newBuilder(); + deleteSecurityProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSecurityProfileOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listSecurityProfileGroupsSettings, + getSecurityProfileGroupSettings, + createSecurityProfileGroupSettings, + updateSecurityProfileGroupSettings, + deleteSecurityProfileGroupSettings, + listSecurityProfilesSettings, + getSecurityProfileSettings, + createSecurityProfileSettings, + updateSecurityProfileSettings, + deleteSecurityProfileSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(OrganizationSecurityProfileGroupServiceStubSettings settings) { + super(settings); + + listSecurityProfileGroupsSettings = settings.listSecurityProfileGroupsSettings.toBuilder(); + getSecurityProfileGroupSettings = settings.getSecurityProfileGroupSettings.toBuilder(); + createSecurityProfileGroupSettings = settings.createSecurityProfileGroupSettings.toBuilder(); + createSecurityProfileGroupOperationSettings = + settings.createSecurityProfileGroupOperationSettings.toBuilder(); + updateSecurityProfileGroupSettings = settings.updateSecurityProfileGroupSettings.toBuilder(); + updateSecurityProfileGroupOperationSettings = + settings.updateSecurityProfileGroupOperationSettings.toBuilder(); + deleteSecurityProfileGroupSettings = settings.deleteSecurityProfileGroupSettings.toBuilder(); + deleteSecurityProfileGroupOperationSettings = + settings.deleteSecurityProfileGroupOperationSettings.toBuilder(); + listSecurityProfilesSettings = settings.listSecurityProfilesSettings.toBuilder(); + getSecurityProfileSettings = settings.getSecurityProfileSettings.toBuilder(); + createSecurityProfileSettings = settings.createSecurityProfileSettings.toBuilder(); + createSecurityProfileOperationSettings = + settings.createSecurityProfileOperationSettings.toBuilder(); + updateSecurityProfileSettings = settings.updateSecurityProfileSettings.toBuilder(); + updateSecurityProfileOperationSettings = + settings.updateSecurityProfileOperationSettings.toBuilder(); + deleteSecurityProfileSettings = settings.deleteSecurityProfileSettings.toBuilder(); + deleteSecurityProfileOperationSettings = + settings.deleteSecurityProfileOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listSecurityProfileGroupsSettings, + getSecurityProfileGroupSettings, + createSecurityProfileGroupSettings, + updateSecurityProfileGroupSettings, + deleteSecurityProfileGroupSettings, + listSecurityProfilesSettings, + getSecurityProfileSettings, + createSecurityProfileSettings, + updateSecurityProfileSettings, + deleteSecurityProfileSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listSecurityProfileGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getSecurityProfileGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createSecurityProfileGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateSecurityProfileGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteSecurityProfileGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listSecurityProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getSecurityProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createSecurityProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateSecurityProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteSecurityProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createSecurityProfileGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(SecurityProfileGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateSecurityProfileGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(SecurityProfileGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteSecurityProfileGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createSecurityProfileOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(SecurityProfile.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateSecurityProfileOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(SecurityProfile.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteSecurityProfileOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                                                                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listSecurityProfileGroups. */ + public PagedCallSettings.Builder< + ListSecurityProfileGroupsRequest, + ListSecurityProfileGroupsResponse, + ListSecurityProfileGroupsPagedResponse> + listSecurityProfileGroupsSettings() { + return listSecurityProfileGroupsSettings; + } + + /** Returns the builder for the settings used for calls to getSecurityProfileGroup. */ + public UnaryCallSettings.Builder + getSecurityProfileGroupSettings() { + return getSecurityProfileGroupSettings; + } + + /** Returns the builder for the settings used for calls to createSecurityProfileGroup. */ + public UnaryCallSettings.Builder + createSecurityProfileGroupSettings() { + return createSecurityProfileGroupSettings; + } + + /** Returns the builder for the settings used for calls to createSecurityProfileGroup. */ + public OperationCallSettings.Builder< + CreateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + createSecurityProfileGroupOperationSettings() { + return createSecurityProfileGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateSecurityProfileGroup. */ + public UnaryCallSettings.Builder + updateSecurityProfileGroupSettings() { + return updateSecurityProfileGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateSecurityProfileGroup. */ + public OperationCallSettings.Builder< + UpdateSecurityProfileGroupRequest, SecurityProfileGroup, OperationMetadata> + updateSecurityProfileGroupOperationSettings() { + return updateSecurityProfileGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteSecurityProfileGroup. */ + public UnaryCallSettings.Builder + deleteSecurityProfileGroupSettings() { + return deleteSecurityProfileGroupSettings; + } + + /** Returns the builder for the settings used for calls to deleteSecurityProfileGroup. */ + public OperationCallSettings.Builder< + DeleteSecurityProfileGroupRequest, Empty, OperationMetadata> + deleteSecurityProfileGroupOperationSettings() { + return deleteSecurityProfileGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to listSecurityProfiles. */ + public PagedCallSettings.Builder< + ListSecurityProfilesRequest, + ListSecurityProfilesResponse, + ListSecurityProfilesPagedResponse> + listSecurityProfilesSettings() { + return listSecurityProfilesSettings; + } + + /** Returns the builder for the settings used for calls to getSecurityProfile. */ + public UnaryCallSettings.Builder + getSecurityProfileSettings() { + return getSecurityProfileSettings; + } + + /** Returns the builder for the settings used for calls to createSecurityProfile. */ + public UnaryCallSettings.Builder + createSecurityProfileSettings() { + return createSecurityProfileSettings; + } + + /** Returns the builder for the settings used for calls to createSecurityProfile. */ + public OperationCallSettings.Builder< + CreateSecurityProfileRequest, SecurityProfile, OperationMetadata> + createSecurityProfileOperationSettings() { + return createSecurityProfileOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateSecurityProfile. */ + public UnaryCallSettings.Builder + updateSecurityProfileSettings() { + return updateSecurityProfileSettings; + } + + /** Returns the builder for the settings used for calls to updateSecurityProfile. */ + public OperationCallSettings.Builder< + UpdateSecurityProfileRequest, SecurityProfile, OperationMetadata> + updateSecurityProfileOperationSettings() { + return updateSecurityProfileOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteSecurityProfile. */ + public UnaryCallSettings.Builder + deleteSecurityProfileSettings() { + return deleteSecurityProfileSettings; + } + + /** Returns the builder for the settings used for calls to deleteSecurityProfile. */ + public OperationCallSettings.Builder + deleteSecurityProfileOperationSettings() { + return deleteSecurityProfileOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public OrganizationSecurityProfileGroupServiceStubSettings build() throws IOException { + return new OrganizationSecurityProfileGroupServiceStubSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/Version.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/Version.java new file mode 100644 index 000000000000..cc9204acf868 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-network-security:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/DnsThreatDetectorServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/DnsThreatDetectorServiceStubSettings.java index e1eb5408ee6d..175383cd4190 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/DnsThreatDetectorServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/DnsThreatDetectorServiceStubSettings.java @@ -461,6 +461,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-network-security") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcDnsThreatDetectorServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcDnsThreatDetectorServiceStub.java index 4cac4c5a3f8b..1c99188930f9 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcDnsThreatDetectorServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcDnsThreatDetectorServiceStub.java @@ -251,6 +251,7 @@ protected GrpcDnsThreatDetectorServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDnsThreatDetectorTransportSettings = @@ -262,6 +263,7 @@ protected GrpcDnsThreatDetectorServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createDnsThreatDetectorTransportSettings = @@ -273,6 +275,7 @@ protected GrpcDnsThreatDetectorServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDnsThreatDetectorTransportSettings = @@ -297,6 +300,7 @@ protected GrpcDnsThreatDetectorServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -327,6 +331,7 @@ protected GrpcDnsThreatDetectorServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -337,6 +342,7 @@ protected GrpcDnsThreatDetectorServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -348,6 +354,7 @@ protected GrpcDnsThreatDetectorServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listDnsThreatDetectorsCallable = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java index 06faf37885d1..f8f6eeeb204a 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/GrpcNetworkSecurityStub.java @@ -437,6 +437,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAuthorizationPolicyTransportSettings = @@ -448,6 +449,7 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAuthorizationPolicyTransportSettings = @@ -459,6 +461,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAuthorizationPolicyTransportSettings = @@ -483,6 +486,7 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listServerTlsPoliciesTransportSettings = @@ -495,6 +499,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getServerTlsPolicyTransportSettings = @@ -506,6 +511,7 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createServerTlsPolicyTransportSettings = @@ -517,6 +523,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateServerTlsPolicyTransportSettings = @@ -541,6 +548,7 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listClientTlsPoliciesTransportSettings = @@ -553,6 +561,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getClientTlsPolicyTransportSettings = @@ -564,6 +573,7 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createClientTlsPolicyTransportSettings = @@ -575,6 +585,7 @@ protected GrpcNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateClientTlsPolicyTransportSettings = @@ -599,6 +610,7 @@ protected GrpcNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -629,6 +641,7 @@ protected GrpcNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -639,6 +652,7 @@ protected GrpcNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -650,6 +664,7 @@ protected GrpcNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listAuthorizationPoliciesCallable = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonDnsThreatDetectorServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonDnsThreatDetectorServiceStub.java index 6d3ad7f58276..8991eef0ee11 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonDnsThreatDetectorServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonDnsThreatDetectorServiceStub.java @@ -525,6 +525,7 @@ protected HttpJsonDnsThreatDetectorServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDnsThreatDetectorTransportSettings = @@ -537,6 +538,7 @@ protected HttpJsonDnsThreatDetectorServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createDnsThreatDetectorTransportSettings = @@ -549,6 +551,7 @@ protected HttpJsonDnsThreatDetectorServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDnsThreatDetectorTransportSettings = @@ -575,6 +578,7 @@ protected HttpJsonDnsThreatDetectorServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -609,6 +613,7 @@ protected HttpJsonDnsThreatDetectorServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -620,6 +625,7 @@ protected HttpJsonDnsThreatDetectorServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -632,6 +638,7 @@ protected HttpJsonDnsThreatDetectorServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listDnsThreatDetectorsCallable = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java index ad52b0a317fa..55a7d4b0c225 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/HttpJsonNetworkSecurityStub.java @@ -1040,6 +1040,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAuthorizationPolicyTransportSettings = @@ -1052,6 +1053,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAuthorizationPolicyTransportSettings = @@ -1064,6 +1066,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAuthorizationPolicyTransportSettings = @@ -1090,6 +1093,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listServerTlsPoliciesTransportSettings = @@ -1103,6 +1107,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getServerTlsPolicyTransportSettings = @@ -1115,6 +1120,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createServerTlsPolicyTransportSettings = @@ -1127,6 +1133,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateServerTlsPolicyTransportSettings = @@ -1153,6 +1160,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listClientTlsPoliciesTransportSettings = @@ -1166,6 +1174,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getClientTlsPolicyTransportSettings = @@ -1178,6 +1187,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createClientTlsPolicyTransportSettings = @@ -1190,6 +1200,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateClientTlsPolicyTransportSettings = @@ -1216,6 +1227,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -1250,6 +1262,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1261,6 +1274,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1273,6 +1287,7 @@ protected HttpJsonNetworkSecurityStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.listAuthorizationPoliciesCallable = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java index 7b7605c3c518..e746ada221c5 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java @@ -839,6 +839,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-network-security") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/Version.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/Version.java new file mode 100644 index 000000000000..2bc2dd93e2ea --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1beta1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-network-security:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json index c9dfa16b7bc4..1468db53c7a6 100644 --- a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json +++ b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -413,6 +503,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -539,6 +647,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networksecurity.v1.AntivirusOverride", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.AntivirusOverride$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networksecurity.v1.AuthorizationPolicy", "queryAllDeclaredConstructors": true, @@ -639,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CertificateProvider", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CertificateProvider$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CertificateProviderInstance", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +792,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CertificateProviderInstance$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +801,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ClientTlsPolicy", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$From", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ClientTlsPolicy$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$From$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$From$RequestSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$From$RequestSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CreateAddressGroupRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$HeaderMatch", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CreateAddressGroupRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$HeaderMatch$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$IpBlock", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$IpBlock$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$Principal", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$Principal$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$Principal$PrincipalSelector", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$RequestResource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$RequestResource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$RequestResource$TagValueIdSet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$RequestResource$TagValueIdSet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$StringMatch", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$StringMatch$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GetAddressGroupRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation$BaseProtocolMethodsOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GetAddressGroupRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation$HeaderSet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation$HeaderSet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation$MCP", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation$MCP$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation$MCPMethod", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$AuthzRule$To$RequestOperation$MCPMethod$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GrpcEndpoint", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.GrpcEndpoint$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$CustomProvider", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$CustomProvider$AuthzExtension", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$CustomProvider$AuthzExtension$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$CustomProvider$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$AddressGroupReference", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$CustomProvider$CloudIap", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$AddressGroupReference$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$CustomProvider$CloudIap$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$LoadBalancingScheme", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsRequest", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$PolicyProfile", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$Target", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsResponse", + "name": "com.google.cloud.networksecurity.v1.AuthzPolicy$Target$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsResponse$Builder", + "name": "com.google.cloud.networksecurity.v1.BackendAuthenticationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest", + "name": "com.google.cloud.networksecurity.v1.BackendAuthenticationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.BackendAuthenticationConfig$WellKnownRoots", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse", + "name": "com.google.cloud.networksecurity.v1.CertificateProvider", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse$Builder", + "name": "com.google.cloud.networksecurity.v1.CertificateProvider$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest", + "name": "com.google.cloud.networksecurity.v1.CertificateProviderInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.CertificateProviderInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse", + "name": "com.google.cloud.networksecurity.v1.ClientTlsPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse$Builder", + "name": "com.google.cloud.networksecurity.v1.ClientTlsPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest", + "name": "com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse", + "name": "com.google.cloud.networksecurity.v1.CreateAddressGroupRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateAddressGroupRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.OperationMetadata", + "name": "com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.OperationMetadata$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest", + "name": "com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy", + "name": "com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy$MTLSPolicy", + "name": "com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy$MTLSPolicy$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest", + "name": "com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest", + "name": "com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1404,3391 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest$Builder", + "name": "com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateUrlListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateUrlListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CustomInterceptProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CustomInterceptProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CustomMirroringProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CustomMirroringProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteUrlListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteUrlListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DnsThreatDetector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DnsThreatDetector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DnsThreatDetector$Provider", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpoint$AssociationReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpoint$AssociationReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpoint$EndpointSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpoint$EndpointSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpoint$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpointAssociation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpointAssociation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.FirewallEndpointAssociation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GatewaySecurityPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GatewaySecurityPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule$BasicProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetAddressGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetAddressGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetSecurityProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetSecurityProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetUrlListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetUrlListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GrpcEndpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GrpcEndpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeployment$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeploymentGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeploymentGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeploymentGroup$ConnectedEndpointGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeploymentGroup$ConnectedEndpointGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeploymentGroup$Deployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeploymentGroup$Deployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptDeploymentGroup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroup$AssociationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroup$AssociationDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroup$ConnectedDeploymentGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroup$ConnectedDeploymentGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation$LocationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation$LocationDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation$LocationDetails$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.InterceptLocation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$AddressGroupReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$AddressGroupReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListUrlListsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListUrlListsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListUrlListsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListUrlListsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeployment$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeploymentGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeploymentGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeploymentGroup$ConnectedEndpointGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeploymentGroup$ConnectedEndpointGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeploymentGroup$Deployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeploymentGroup$Deployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringDeploymentGroup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroup$AssociationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroup$AssociationDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroup$ConnectedDeploymentGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroup$ConnectedDeploymentGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroup$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation$LocationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation$LocationDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation$LocationDetails$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.MirroringLocation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.Protocol", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.SecurityProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.SecurityProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.SecurityProfile$ProfileType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.SecurityProfileGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.SecurityProfileGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy$MTLSPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy$MTLSPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy$MTLSPolicy$ClientValidationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.Severity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.SeverityOverride", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.SeverityOverride$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ThreatAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ThreatOverride", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ThreatOverride$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ThreatPreventionProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ThreatPreventionProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ThreatType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.TlsInspectionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.TlsInspectionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.TlsInspectionPolicy$Profile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.TlsInspectionPolicy$TlsVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateUrlListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateUrlListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UrlFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UrlFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UrlFilter$UrlFilteringAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UrlFilteringProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UrlFilteringProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UrlList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UrlList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, diff --git a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1beta1/reflect-config.json b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1beta1/reflect-config.json index cca99ecd00c5..038f4d039b04 100644 --- a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1beta1/reflect-config.json +++ b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1beta1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClientTest.java new file mode 100644 index 000000000000..3b7a9c92751f --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClientTest.java @@ -0,0 +1,780 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListDnsThreatDetectorsPagedResponse; +import static com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DnsThreatDetectorServiceClientTest { + private static MockDnsThreatDetectorService mockDnsThreatDetectorService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DnsThreatDetectorServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDnsThreatDetectorService = new MockDnsThreatDetectorService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockDnsThreatDetectorService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DnsThreatDetectorServiceSettings settings = + DnsThreatDetectorServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DnsThreatDetectorServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listDnsThreatDetectorsTest() throws Exception { + DnsThreatDetector responsesElement = DnsThreatDetector.newBuilder().build(); + ListDnsThreatDetectorsResponse expectedResponse = + ListDnsThreatDetectorsResponse.newBuilder() + .setNextPageToken("") + .addAllDnsThreatDetectors(Arrays.asList(responsesElement)) + .build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDnsThreatDetectorsPagedResponse pagedListResponse = client.listDnsThreatDetectors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDnsThreatDetectorsList().get(0), resources.get(0)); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDnsThreatDetectorsRequest actualRequest = + ((ListDnsThreatDetectorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDnsThreatDetectorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDnsThreatDetectors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDnsThreatDetectorsTest2() throws Exception { + DnsThreatDetector responsesElement = DnsThreatDetector.newBuilder().build(); + ListDnsThreatDetectorsResponse expectedResponse = + ListDnsThreatDetectorsResponse.newBuilder() + .setNextPageToken("") + .addAllDnsThreatDetectors(Arrays.asList(responsesElement)) + .build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDnsThreatDetectorsPagedResponse pagedListResponse = client.listDnsThreatDetectors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDnsThreatDetectorsList().get(0), resources.get(0)); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDnsThreatDetectorsRequest actualRequest = + ((ListDnsThreatDetectorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDnsThreatDetectorsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDnsThreatDetectors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDnsThreatDetectorTest() throws Exception { + DnsThreatDetector expectedResponse = + DnsThreatDetector.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllExcludedNetworks(new ArrayList()) + .build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + DnsThreatDetectorName name = + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]"); + + DnsThreatDetector actualResponse = client.getDnsThreatDetector(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDnsThreatDetectorRequest actualRequest = + ((GetDnsThreatDetectorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDnsThreatDetectorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + DnsThreatDetectorName name = + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]"); + client.getDnsThreatDetector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDnsThreatDetectorTest2() throws Exception { + DnsThreatDetector expectedResponse = + DnsThreatDetector.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllExcludedNetworks(new ArrayList()) + .build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + String name = "name3373707"; + + DnsThreatDetector actualResponse = client.getDnsThreatDetector(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDnsThreatDetectorRequest actualRequest = + ((GetDnsThreatDetectorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDnsThreatDetectorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + String name = "name3373707"; + client.getDnsThreatDetector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDnsThreatDetectorTest() throws Exception { + DnsThreatDetector expectedResponse = + DnsThreatDetector.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllExcludedNetworks(new ArrayList()) + .build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + String dnsThreatDetectorId = "dnsThreatDetectorId-1579667324"; + + DnsThreatDetector actualResponse = + client.createDnsThreatDetector(parent, dnsThreatDetector, dnsThreatDetectorId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDnsThreatDetectorRequest actualRequest = + ((CreateDnsThreatDetectorRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dnsThreatDetector, actualRequest.getDnsThreatDetector()); + Assert.assertEquals(dnsThreatDetectorId, actualRequest.getDnsThreatDetectorId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDnsThreatDetectorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + String dnsThreatDetectorId = "dnsThreatDetectorId-1579667324"; + client.createDnsThreatDetector(parent, dnsThreatDetector, dnsThreatDetectorId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDnsThreatDetectorTest2() throws Exception { + DnsThreatDetector expectedResponse = + DnsThreatDetector.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllExcludedNetworks(new ArrayList()) + .build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + String dnsThreatDetectorId = "dnsThreatDetectorId-1579667324"; + + DnsThreatDetector actualResponse = + client.createDnsThreatDetector(parent, dnsThreatDetector, dnsThreatDetectorId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDnsThreatDetectorRequest actualRequest = + ((CreateDnsThreatDetectorRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dnsThreatDetector, actualRequest.getDnsThreatDetector()); + Assert.assertEquals(dnsThreatDetectorId, actualRequest.getDnsThreatDetectorId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDnsThreatDetectorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + String parent = "parent-995424086"; + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + String dnsThreatDetectorId = "dnsThreatDetectorId-1579667324"; + client.createDnsThreatDetector(parent, dnsThreatDetector, dnsThreatDetectorId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDnsThreatDetectorTest() throws Exception { + DnsThreatDetector expectedResponse = + DnsThreatDetector.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllExcludedNetworks(new ArrayList()) + .build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DnsThreatDetector actualResponse = + client.updateDnsThreatDetector(dnsThreatDetector, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDnsThreatDetectorRequest actualRequest = + ((UpdateDnsThreatDetectorRequest) actualRequests.get(0)); + + Assert.assertEquals(dnsThreatDetector, actualRequest.getDnsThreatDetector()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDnsThreatDetectorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDnsThreatDetector(dnsThreatDetector, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDnsThreatDetectorTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + DnsThreatDetectorName name = + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]"); + + client.deleteDnsThreatDetector(name); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDnsThreatDetectorRequest actualRequest = + ((DeleteDnsThreatDetectorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDnsThreatDetectorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + DnsThreatDetectorName name = + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]"); + client.deleteDnsThreatDetector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDnsThreatDetectorTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDnsThreatDetectorService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDnsThreatDetector(name); + + List actualRequests = mockDnsThreatDetectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDnsThreatDetectorRequest actualRequest = + ((DeleteDnsThreatDetectorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDnsThreatDetectorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDnsThreatDetectorService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDnsThreatDetector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/FirewallActivationClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/FirewallActivationClientTest.java new file mode 100644 index 000000000000..29cbc4a2ead8 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/FirewallActivationClientTest.java @@ -0,0 +1,1495 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListFirewallEndpointsPagedResponse; +import static com.google.cloud.networksecurity.v1.FirewallActivationClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class FirewallActivationClientTest { + private static MockFirewallActivation mockFirewallActivation; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private FirewallActivationClient client; + + @BeforeClass + public static void startStaticServer() { + mockFirewallActivation = new MockFirewallActivation(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockFirewallActivation, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + FirewallActivationSettings settings = + FirewallActivationSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FirewallActivationClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listFirewallEndpointsTest() throws Exception { + FirewallEndpoint responsesElement = FirewallEndpoint.newBuilder().build(); + ListFirewallEndpointsResponse expectedResponse = + ListFirewallEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllFirewallEndpoints(Arrays.asList(responsesElement)) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFirewallEndpointsPagedResponse pagedListResponse = client.listFirewallEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFirewallEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFirewallEndpointsRequest actualRequest = + ((ListFirewallEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFirewallEndpointsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFirewallEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFirewallEndpointsTest2() throws Exception { + FirewallEndpoint responsesElement = FirewallEndpoint.newBuilder().build(); + ListFirewallEndpointsResponse expectedResponse = + ListFirewallEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllFirewallEndpoints(Arrays.asList(responsesElement)) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFirewallEndpointsPagedResponse pagedListResponse = client.listFirewallEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFirewallEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFirewallEndpointsRequest actualRequest = + ((ListFirewallEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFirewallEndpointsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFirewallEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFirewallEndpointsTest3() throws Exception { + FirewallEndpoint responsesElement = FirewallEndpoint.newBuilder().build(); + ListFirewallEndpointsResponse expectedResponse = + ListFirewallEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllFirewallEndpoints(Arrays.asList(responsesElement)) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFirewallEndpointsPagedResponse pagedListResponse = client.listFirewallEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFirewallEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFirewallEndpointsRequest actualRequest = + ((ListFirewallEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFirewallEndpointsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFirewallEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFirewallEndpointTest() throws Exception { + FirewallEndpoint expectedResponse = + FirewallEndpoint.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setReconciling(true) + .addAllAssociatedNetworks(new ArrayList()) + .addAllAssociations(new ArrayList()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .setBillingProjectId("billingProjectId-881358375") + .setEndpointSettings(FirewallEndpoint.EndpointSettings.newBuilder().build()) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + FirewallEndpointName name = + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]"); + + FirewallEndpoint actualResponse = client.getFirewallEndpoint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFirewallEndpointRequest actualRequest = ((GetFirewallEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFirewallEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + FirewallEndpointName name = + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]"); + client.getFirewallEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFirewallEndpointTest2() throws Exception { + FirewallEndpoint expectedResponse = + FirewallEndpoint.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setReconciling(true) + .addAllAssociatedNetworks(new ArrayList()) + .addAllAssociations(new ArrayList()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .setBillingProjectId("billingProjectId-881358375") + .setEndpointSettings(FirewallEndpoint.EndpointSettings.newBuilder().build()) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + String name = "name3373707"; + + FirewallEndpoint actualResponse = client.getFirewallEndpoint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFirewallEndpointRequest actualRequest = ((GetFirewallEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFirewallEndpointExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + String name = "name3373707"; + client.getFirewallEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFirewallEndpointTest() throws Exception { + FirewallEndpoint expectedResponse = + FirewallEndpoint.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setReconciling(true) + .addAllAssociatedNetworks(new ArrayList()) + .addAllAssociations(new ArrayList()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .setBillingProjectId("billingProjectId-881358375") + .setEndpointSettings(FirewallEndpoint.EndpointSettings.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFirewallEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + + FirewallEndpoint actualResponse = + client.createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFirewallEndpointRequest actualRequest = + ((CreateFirewallEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(firewallEndpoint, actualRequest.getFirewallEndpoint()); + Assert.assertEquals(firewallEndpointId, actualRequest.getFirewallEndpointId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFirewallEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + client.createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createFirewallEndpointTest2() throws Exception { + FirewallEndpoint expectedResponse = + FirewallEndpoint.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setReconciling(true) + .addAllAssociatedNetworks(new ArrayList()) + .addAllAssociations(new ArrayList()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .setBillingProjectId("billingProjectId-881358375") + .setEndpointSettings(FirewallEndpoint.EndpointSettings.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFirewallEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + + FirewallEndpoint actualResponse = + client.createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFirewallEndpointRequest actualRequest = + ((CreateFirewallEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(firewallEndpoint, actualRequest.getFirewallEndpoint()); + Assert.assertEquals(firewallEndpointId, actualRequest.getFirewallEndpointId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFirewallEndpointExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + client.createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createFirewallEndpointTest3() throws Exception { + FirewallEndpoint expectedResponse = + FirewallEndpoint.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setReconciling(true) + .addAllAssociatedNetworks(new ArrayList()) + .addAllAssociations(new ArrayList()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .setBillingProjectId("billingProjectId-881358375") + .setEndpointSettings(FirewallEndpoint.EndpointSettings.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFirewallEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + String parent = "parent-995424086"; + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + + FirewallEndpoint actualResponse = + client.createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFirewallEndpointRequest actualRequest = + ((CreateFirewallEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(firewallEndpoint, actualRequest.getFirewallEndpoint()); + Assert.assertEquals(firewallEndpointId, actualRequest.getFirewallEndpointId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFirewallEndpointExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + String parent = "parent-995424086"; + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + client.createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFirewallEndpointTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFirewallEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + FirewallEndpointName name = + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]"); + + client.deleteFirewallEndpointAsync(name).get(); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFirewallEndpointRequest actualRequest = + ((DeleteFirewallEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFirewallEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + FirewallEndpointName name = + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]"); + client.deleteFirewallEndpointAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFirewallEndpointTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFirewallEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteFirewallEndpointAsync(name).get(); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFirewallEndpointRequest actualRequest = + ((DeleteFirewallEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFirewallEndpointExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + String name = "name3373707"; + client.deleteFirewallEndpointAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateFirewallEndpointTest() throws Exception { + FirewallEndpoint expectedResponse = + FirewallEndpoint.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setReconciling(true) + .addAllAssociatedNetworks(new ArrayList()) + .addAllAssociations(new ArrayList()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .setBillingProjectId("billingProjectId-881358375") + .setEndpointSettings(FirewallEndpoint.EndpointSettings.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFirewallEndpointTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + FirewallEndpoint actualResponse = + client.updateFirewallEndpointAsync(firewallEndpoint, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFirewallEndpointRequest actualRequest = + ((UpdateFirewallEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(firewallEndpoint, actualRequest.getFirewallEndpoint()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFirewallEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFirewallEndpointAsync(firewallEndpoint, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listFirewallEndpointAssociationsTest() throws Exception { + FirewallEndpointAssociation responsesElement = FirewallEndpointAssociation.newBuilder().build(); + ListFirewallEndpointAssociationsResponse expectedResponse = + ListFirewallEndpointAssociationsResponse.newBuilder() + .setNextPageToken("") + .addAllFirewallEndpointAssociations(Arrays.asList(responsesElement)) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFirewallEndpointAssociationsPagedResponse pagedListResponse = + client.listFirewallEndpointAssociations(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFirewallEndpointAssociationsList().get(0), resources.get(0)); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFirewallEndpointAssociationsRequest actualRequest = + ((ListFirewallEndpointAssociationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFirewallEndpointAssociationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFirewallEndpointAssociations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFirewallEndpointAssociationsTest2() throws Exception { + FirewallEndpointAssociation responsesElement = FirewallEndpointAssociation.newBuilder().build(); + ListFirewallEndpointAssociationsResponse expectedResponse = + ListFirewallEndpointAssociationsResponse.newBuilder() + .setNextPageToken("") + .addAllFirewallEndpointAssociations(Arrays.asList(responsesElement)) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFirewallEndpointAssociationsPagedResponse pagedListResponse = + client.listFirewallEndpointAssociations(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getFirewallEndpointAssociationsList().get(0), resources.get(0)); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFirewallEndpointAssociationsRequest actualRequest = + ((ListFirewallEndpointAssociationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFirewallEndpointAssociationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFirewallEndpointAssociations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFirewallEndpointAssociationTest() throws Exception { + FirewallEndpointAssociation expectedResponse = + FirewallEndpointAssociation.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setFirewallEndpoint("firewallEndpoint1867120309") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .setReconciling(true) + .setDisabled(true) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + FirewallEndpointAssociationName name = + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]"); + + FirewallEndpointAssociation actualResponse = client.getFirewallEndpointAssociation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFirewallEndpointAssociationRequest actualRequest = + ((GetFirewallEndpointAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFirewallEndpointAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + FirewallEndpointAssociationName name = + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]"); + client.getFirewallEndpointAssociation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFirewallEndpointAssociationTest2() throws Exception { + FirewallEndpointAssociation expectedResponse = + FirewallEndpointAssociation.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setFirewallEndpoint("firewallEndpoint1867120309") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .setReconciling(true) + .setDisabled(true) + .build(); + mockFirewallActivation.addResponse(expectedResponse); + + String name = "name3373707"; + + FirewallEndpointAssociation actualResponse = client.getFirewallEndpointAssociation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFirewallEndpointAssociationRequest actualRequest = + ((GetFirewallEndpointAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFirewallEndpointAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + String name = "name3373707"; + client.getFirewallEndpointAssociation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFirewallEndpointAssociationTest() throws Exception { + FirewallEndpointAssociation expectedResponse = + FirewallEndpointAssociation.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setFirewallEndpoint("firewallEndpoint1867120309") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .setReconciling(true) + .setDisabled(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFirewallEndpointAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + String firewallEndpointAssociationId = "firewallEndpointAssociationId-891991865"; + + FirewallEndpointAssociation actualResponse = + client + .createFirewallEndpointAssociationAsync( + parent, firewallEndpointAssociation, firewallEndpointAssociationId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFirewallEndpointAssociationRequest actualRequest = + ((CreateFirewallEndpointAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + firewallEndpointAssociation, actualRequest.getFirewallEndpointAssociation()); + Assert.assertEquals( + firewallEndpointAssociationId, actualRequest.getFirewallEndpointAssociationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFirewallEndpointAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + String firewallEndpointAssociationId = "firewallEndpointAssociationId-891991865"; + client + .createFirewallEndpointAssociationAsync( + parent, firewallEndpointAssociation, firewallEndpointAssociationId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createFirewallEndpointAssociationTest2() throws Exception { + FirewallEndpointAssociation expectedResponse = + FirewallEndpointAssociation.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setFirewallEndpoint("firewallEndpoint1867120309") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .setReconciling(true) + .setDisabled(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFirewallEndpointAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + String parent = "parent-995424086"; + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + String firewallEndpointAssociationId = "firewallEndpointAssociationId-891991865"; + + FirewallEndpointAssociation actualResponse = + client + .createFirewallEndpointAssociationAsync( + parent, firewallEndpointAssociation, firewallEndpointAssociationId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFirewallEndpointAssociationRequest actualRequest = + ((CreateFirewallEndpointAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + firewallEndpointAssociation, actualRequest.getFirewallEndpointAssociation()); + Assert.assertEquals( + firewallEndpointAssociationId, actualRequest.getFirewallEndpointAssociationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFirewallEndpointAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + String parent = "parent-995424086"; + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + String firewallEndpointAssociationId = "firewallEndpointAssociationId-891991865"; + client + .createFirewallEndpointAssociationAsync( + parent, firewallEndpointAssociation, firewallEndpointAssociationId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFirewallEndpointAssociationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFirewallEndpointAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + FirewallEndpointAssociationName name = + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]"); + + client.deleteFirewallEndpointAssociationAsync(name).get(); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFirewallEndpointAssociationRequest actualRequest = + ((DeleteFirewallEndpointAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFirewallEndpointAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + FirewallEndpointAssociationName name = + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]"); + client.deleteFirewallEndpointAssociationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFirewallEndpointAssociationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFirewallEndpointAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteFirewallEndpointAssociationAsync(name).get(); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFirewallEndpointAssociationRequest actualRequest = + ((DeleteFirewallEndpointAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFirewallEndpointAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + String name = "name3373707"; + client.deleteFirewallEndpointAssociationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateFirewallEndpointAssociationTest() throws Exception { + FirewallEndpointAssociation expectedResponse = + FirewallEndpointAssociation.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setFirewallEndpoint("firewallEndpoint1867120309") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .setReconciling(true) + .setDisabled(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFirewallEndpointAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFirewallActivation.addResponse(resultOperation); + + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + FirewallEndpointAssociation actualResponse = + client + .updateFirewallEndpointAssociationAsync(firewallEndpointAssociation, updateMask) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFirewallActivation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFirewallEndpointAssociationRequest actualRequest = + ((UpdateFirewallEndpointAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals( + firewallEndpointAssociation, actualRequest.getFirewallEndpointAssociation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFirewallEndpointAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFirewallActivation.addException(exception); + + try { + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFirewallEndpointAssociationAsync(firewallEndpointAssociation, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/InterceptClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/InterceptClientTest.java new file mode 100644 index 000000000000..4ba0eff49763 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/InterceptClientTest.java @@ -0,0 +1,2419 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.InterceptClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class InterceptClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockIntercept mockIntercept; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private InterceptClient client; + + @BeforeClass + public static void startStaticServer() { + mockIntercept = new MockIntercept(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockIntercept, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + InterceptSettings settings = + InterceptSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = InterceptClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listInterceptEndpointGroupsTest() throws Exception { + InterceptEndpointGroup responsesElement = InterceptEndpointGroup.newBuilder().build(); + ListInterceptEndpointGroupsResponse expectedResponse = + ListInterceptEndpointGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllInterceptEndpointGroups(Arrays.asList(responsesElement)) + .build(); + mockIntercept.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListInterceptEndpointGroupsPagedResponse pagedListResponse = + client.listInterceptEndpointGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInterceptEndpointGroupsList().get(0), resources.get(0)); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInterceptEndpointGroupsRequest actualRequest = + ((ListInterceptEndpointGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInterceptEndpointGroupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listInterceptEndpointGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInterceptEndpointGroupsTest2() throws Exception { + InterceptEndpointGroup responsesElement = InterceptEndpointGroup.newBuilder().build(); + ListInterceptEndpointGroupsResponse expectedResponse = + ListInterceptEndpointGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllInterceptEndpointGroups(Arrays.asList(responsesElement)) + .build(); + mockIntercept.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListInterceptEndpointGroupsPagedResponse pagedListResponse = + client.listInterceptEndpointGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInterceptEndpointGroupsList().get(0), resources.get(0)); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInterceptEndpointGroupsRequest actualRequest = + ((ListInterceptEndpointGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInterceptEndpointGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String parent = "parent-995424086"; + client.listInterceptEndpointGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInterceptEndpointGroupTest() throws Exception { + InterceptEndpointGroup expectedResponse = + InterceptEndpointGroup.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setConnectedDeploymentGroup( + InterceptEndpointGroup.ConnectedDeploymentGroup.newBuilder().build()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + mockIntercept.addResponse(expectedResponse); + + InterceptEndpointGroupName name = + InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]"); + + InterceptEndpointGroup actualResponse = client.getInterceptEndpointGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInterceptEndpointGroupRequest actualRequest = + ((GetInterceptEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInterceptEndpointGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptEndpointGroupName name = + InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]"); + client.getInterceptEndpointGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInterceptEndpointGroupTest2() throws Exception { + InterceptEndpointGroup expectedResponse = + InterceptEndpointGroup.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setConnectedDeploymentGroup( + InterceptEndpointGroup.ConnectedDeploymentGroup.newBuilder().build()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + mockIntercept.addResponse(expectedResponse); + + String name = "name3373707"; + + InterceptEndpointGroup actualResponse = client.getInterceptEndpointGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInterceptEndpointGroupRequest actualRequest = + ((GetInterceptEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInterceptEndpointGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String name = "name3373707"; + client.getInterceptEndpointGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createInterceptEndpointGroupTest() throws Exception { + InterceptEndpointGroup expectedResponse = + InterceptEndpointGroup.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setConnectedDeploymentGroup( + InterceptEndpointGroup.ConnectedDeploymentGroup.newBuilder().build()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInterceptEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189"; + + InterceptEndpointGroup actualResponse = + client + .createInterceptEndpointGroupAsync( + parent, interceptEndpointGroup, interceptEndpointGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInterceptEndpointGroupRequest actualRequest = + ((CreateInterceptEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(interceptEndpointGroup, actualRequest.getInterceptEndpointGroup()); + Assert.assertEquals(interceptEndpointGroupId, actualRequest.getInterceptEndpointGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInterceptEndpointGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189"; + client + .createInterceptEndpointGroupAsync( + parent, interceptEndpointGroup, interceptEndpointGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createInterceptEndpointGroupTest2() throws Exception { + InterceptEndpointGroup expectedResponse = + InterceptEndpointGroup.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setConnectedDeploymentGroup( + InterceptEndpointGroup.ConnectedDeploymentGroup.newBuilder().build()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInterceptEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + String parent = "parent-995424086"; + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189"; + + InterceptEndpointGroup actualResponse = + client + .createInterceptEndpointGroupAsync( + parent, interceptEndpointGroup, interceptEndpointGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInterceptEndpointGroupRequest actualRequest = + ((CreateInterceptEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(interceptEndpointGroup, actualRequest.getInterceptEndpointGroup()); + Assert.assertEquals(interceptEndpointGroupId, actualRequest.getInterceptEndpointGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInterceptEndpointGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String parent = "parent-995424086"; + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189"; + client + .createInterceptEndpointGroupAsync( + parent, interceptEndpointGroup, interceptEndpointGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateInterceptEndpointGroupTest() throws Exception { + InterceptEndpointGroup expectedResponse = + InterceptEndpointGroup.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setConnectedDeploymentGroup( + InterceptEndpointGroup.ConnectedDeploymentGroup.newBuilder().build()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInterceptEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + InterceptEndpointGroup actualResponse = + client.updateInterceptEndpointGroupAsync(interceptEndpointGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateInterceptEndpointGroupRequest actualRequest = + ((UpdateInterceptEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(interceptEndpointGroup, actualRequest.getInterceptEndpointGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateInterceptEndpointGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateInterceptEndpointGroupAsync(interceptEndpointGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInterceptEndpointGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInterceptEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + InterceptEndpointGroupName name = + InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]"); + + client.deleteInterceptEndpointGroupAsync(name).get(); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInterceptEndpointGroupRequest actualRequest = + ((DeleteInterceptEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInterceptEndpointGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptEndpointGroupName name = + InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]"); + client.deleteInterceptEndpointGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInterceptEndpointGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInterceptEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteInterceptEndpointGroupAsync(name).get(); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInterceptEndpointGroupRequest actualRequest = + ((DeleteInterceptEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInterceptEndpointGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String name = "name3373707"; + client.deleteInterceptEndpointGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listInterceptEndpointGroupAssociationsTest() throws Exception { + InterceptEndpointGroupAssociation responsesElement = + InterceptEndpointGroupAssociation.newBuilder().build(); + ListInterceptEndpointGroupAssociationsResponse expectedResponse = + ListInterceptEndpointGroupAssociationsResponse.newBuilder() + .setNextPageToken("") + .addAllInterceptEndpointGroupAssociations(Arrays.asList(responsesElement)) + .build(); + mockIntercept.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListInterceptEndpointGroupAssociationsPagedResponse pagedListResponse = + client.listInterceptEndpointGroupAssociations(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getInterceptEndpointGroupAssociationsList().get(0), resources.get(0)); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInterceptEndpointGroupAssociationsRequest actualRequest = + ((ListInterceptEndpointGroupAssociationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInterceptEndpointGroupAssociationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listInterceptEndpointGroupAssociations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInterceptEndpointGroupAssociationsTest2() throws Exception { + InterceptEndpointGroupAssociation responsesElement = + InterceptEndpointGroupAssociation.newBuilder().build(); + ListInterceptEndpointGroupAssociationsResponse expectedResponse = + ListInterceptEndpointGroupAssociationsResponse.newBuilder() + .setNextPageToken("") + .addAllInterceptEndpointGroupAssociations(Arrays.asList(responsesElement)) + .build(); + mockIntercept.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListInterceptEndpointGroupAssociationsPagedResponse pagedListResponse = + client.listInterceptEndpointGroupAssociations(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getInterceptEndpointGroupAssociationsList().get(0), resources.get(0)); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInterceptEndpointGroupAssociationsRequest actualRequest = + ((ListInterceptEndpointGroupAssociationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInterceptEndpointGroupAssociationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String parent = "parent-995424086"; + client.listInterceptEndpointGroupAssociations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInterceptEndpointGroupAssociationTest() throws Exception { + InterceptEndpointGroupAssociation expectedResponse = + InterceptEndpointGroupAssociation.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptEndpointGroup( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .setNetworkCookie(-2014610027) + .build(); + mockIntercept.addResponse(expectedResponse); + + InterceptEndpointGroupAssociationName name = + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]"); + + InterceptEndpointGroupAssociation actualResponse = + client.getInterceptEndpointGroupAssociation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInterceptEndpointGroupAssociationRequest actualRequest = + ((GetInterceptEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInterceptEndpointGroupAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptEndpointGroupAssociationName name = + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]"); + client.getInterceptEndpointGroupAssociation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInterceptEndpointGroupAssociationTest2() throws Exception { + InterceptEndpointGroupAssociation expectedResponse = + InterceptEndpointGroupAssociation.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptEndpointGroup( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .setNetworkCookie(-2014610027) + .build(); + mockIntercept.addResponse(expectedResponse); + + String name = "name3373707"; + + InterceptEndpointGroupAssociation actualResponse = + client.getInterceptEndpointGroupAssociation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInterceptEndpointGroupAssociationRequest actualRequest = + ((GetInterceptEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInterceptEndpointGroupAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String name = "name3373707"; + client.getInterceptEndpointGroupAssociation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createInterceptEndpointGroupAssociationTest() throws Exception { + InterceptEndpointGroupAssociation expectedResponse = + InterceptEndpointGroupAssociation.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptEndpointGroup( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .setNetworkCookie(-2014610027) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInterceptEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844"; + + InterceptEndpointGroupAssociation actualResponse = + client + .createInterceptEndpointGroupAssociationAsync( + parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInterceptEndpointGroupAssociationRequest actualRequest = + ((CreateInterceptEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + interceptEndpointGroupAssociation, actualRequest.getInterceptEndpointGroupAssociation()); + Assert.assertEquals( + interceptEndpointGroupAssociationId, + actualRequest.getInterceptEndpointGroupAssociationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInterceptEndpointGroupAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844"; + client + .createInterceptEndpointGroupAssociationAsync( + parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createInterceptEndpointGroupAssociationTest2() throws Exception { + InterceptEndpointGroupAssociation expectedResponse = + InterceptEndpointGroupAssociation.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptEndpointGroup( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .setNetworkCookie(-2014610027) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInterceptEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + String parent = "parent-995424086"; + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844"; + + InterceptEndpointGroupAssociation actualResponse = + client + .createInterceptEndpointGroupAssociationAsync( + parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInterceptEndpointGroupAssociationRequest actualRequest = + ((CreateInterceptEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + interceptEndpointGroupAssociation, actualRequest.getInterceptEndpointGroupAssociation()); + Assert.assertEquals( + interceptEndpointGroupAssociationId, + actualRequest.getInterceptEndpointGroupAssociationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInterceptEndpointGroupAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String parent = "parent-995424086"; + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844"; + client + .createInterceptEndpointGroupAssociationAsync( + parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateInterceptEndpointGroupAssociationTest() throws Exception { + InterceptEndpointGroupAssociation expectedResponse = + InterceptEndpointGroupAssociation.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setInterceptEndpointGroup( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .setNetworkCookie(-2014610027) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInterceptEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + InterceptEndpointGroupAssociation actualResponse = + client + .updateInterceptEndpointGroupAssociationAsync( + interceptEndpointGroupAssociation, updateMask) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateInterceptEndpointGroupAssociationRequest actualRequest = + ((UpdateInterceptEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals( + interceptEndpointGroupAssociation, actualRequest.getInterceptEndpointGroupAssociation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateInterceptEndpointGroupAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client + .updateInterceptEndpointGroupAssociationAsync( + interceptEndpointGroupAssociation, updateMask) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInterceptEndpointGroupAssociationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInterceptEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + InterceptEndpointGroupAssociationName name = + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]"); + + client.deleteInterceptEndpointGroupAssociationAsync(name).get(); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInterceptEndpointGroupAssociationRequest actualRequest = + ((DeleteInterceptEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInterceptEndpointGroupAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptEndpointGroupAssociationName name = + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]"); + client.deleteInterceptEndpointGroupAssociationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInterceptEndpointGroupAssociationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInterceptEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteInterceptEndpointGroupAssociationAsync(name).get(); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInterceptEndpointGroupAssociationRequest actualRequest = + ((DeleteInterceptEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInterceptEndpointGroupAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String name = "name3373707"; + client.deleteInterceptEndpointGroupAssociationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listInterceptDeploymentGroupsTest() throws Exception { + InterceptDeploymentGroup responsesElement = InterceptDeploymentGroup.newBuilder().build(); + ListInterceptDeploymentGroupsResponse expectedResponse = + ListInterceptDeploymentGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllInterceptDeploymentGroups(Arrays.asList(responsesElement)) + .build(); + mockIntercept.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListInterceptDeploymentGroupsPagedResponse pagedListResponse = + client.listInterceptDeploymentGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getInterceptDeploymentGroupsList().get(0), resources.get(0)); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInterceptDeploymentGroupsRequest actualRequest = + ((ListInterceptDeploymentGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInterceptDeploymentGroupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listInterceptDeploymentGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInterceptDeploymentGroupsTest2() throws Exception { + InterceptDeploymentGroup responsesElement = InterceptDeploymentGroup.newBuilder().build(); + ListInterceptDeploymentGroupsResponse expectedResponse = + ListInterceptDeploymentGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllInterceptDeploymentGroups(Arrays.asList(responsesElement)) + .build(); + mockIntercept.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListInterceptDeploymentGroupsPagedResponse pagedListResponse = + client.listInterceptDeploymentGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getInterceptDeploymentGroupsList().get(0), resources.get(0)); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInterceptDeploymentGroupsRequest actualRequest = + ((ListInterceptDeploymentGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInterceptDeploymentGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String parent = "parent-995424086"; + client.listInterceptDeploymentGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInterceptDeploymentGroupTest() throws Exception { + InterceptDeploymentGroup expectedResponse = + InterceptDeploymentGroup.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + mockIntercept.addResponse(expectedResponse); + + InterceptDeploymentGroupName name = + InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]"); + + InterceptDeploymentGroup actualResponse = client.getInterceptDeploymentGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInterceptDeploymentGroupRequest actualRequest = + ((GetInterceptDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInterceptDeploymentGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptDeploymentGroupName name = + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]"); + client.getInterceptDeploymentGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInterceptDeploymentGroupTest2() throws Exception { + InterceptDeploymentGroup expectedResponse = + InterceptDeploymentGroup.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + mockIntercept.addResponse(expectedResponse); + + String name = "name3373707"; + + InterceptDeploymentGroup actualResponse = client.getInterceptDeploymentGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInterceptDeploymentGroupRequest actualRequest = + ((GetInterceptDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInterceptDeploymentGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String name = "name3373707"; + client.getInterceptDeploymentGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createInterceptDeploymentGroupTest() throws Exception { + InterceptDeploymentGroup expectedResponse = + InterceptDeploymentGroup.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInterceptDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995"; + + InterceptDeploymentGroup actualResponse = + client + .createInterceptDeploymentGroupAsync( + parent, interceptDeploymentGroup, interceptDeploymentGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInterceptDeploymentGroupRequest actualRequest = + ((CreateInterceptDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(interceptDeploymentGroup, actualRequest.getInterceptDeploymentGroup()); + Assert.assertEquals(interceptDeploymentGroupId, actualRequest.getInterceptDeploymentGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInterceptDeploymentGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995"; + client + .createInterceptDeploymentGroupAsync( + parent, interceptDeploymentGroup, interceptDeploymentGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createInterceptDeploymentGroupTest2() throws Exception { + InterceptDeploymentGroup expectedResponse = + InterceptDeploymentGroup.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInterceptDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + String parent = "parent-995424086"; + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995"; + + InterceptDeploymentGroup actualResponse = + client + .createInterceptDeploymentGroupAsync( + parent, interceptDeploymentGroup, interceptDeploymentGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInterceptDeploymentGroupRequest actualRequest = + ((CreateInterceptDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(interceptDeploymentGroup, actualRequest.getInterceptDeploymentGroup()); + Assert.assertEquals(interceptDeploymentGroupId, actualRequest.getInterceptDeploymentGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInterceptDeploymentGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String parent = "parent-995424086"; + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995"; + client + .createInterceptDeploymentGroupAsync( + parent, interceptDeploymentGroup, interceptDeploymentGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateInterceptDeploymentGroupTest() throws Exception { + InterceptDeploymentGroup expectedResponse = + InterceptDeploymentGroup.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInterceptDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + InterceptDeploymentGroup actualResponse = + client.updateInterceptDeploymentGroupAsync(interceptDeploymentGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateInterceptDeploymentGroupRequest actualRequest = + ((UpdateInterceptDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(interceptDeploymentGroup, actualRequest.getInterceptDeploymentGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateInterceptDeploymentGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateInterceptDeploymentGroupAsync(interceptDeploymentGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInterceptDeploymentGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInterceptDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + InterceptDeploymentGroupName name = + InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]"); + + client.deleteInterceptDeploymentGroupAsync(name).get(); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInterceptDeploymentGroupRequest actualRequest = + ((DeleteInterceptDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInterceptDeploymentGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptDeploymentGroupName name = + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]"); + client.deleteInterceptDeploymentGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInterceptDeploymentGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInterceptDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteInterceptDeploymentGroupAsync(name).get(); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInterceptDeploymentGroupRequest actualRequest = + ((DeleteInterceptDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInterceptDeploymentGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String name = "name3373707"; + client.deleteInterceptDeploymentGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listInterceptDeploymentsTest() throws Exception { + InterceptDeployment responsesElement = InterceptDeployment.newBuilder().build(); + ListInterceptDeploymentsResponse expectedResponse = + ListInterceptDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllInterceptDeployments(Arrays.asList(responsesElement)) + .build(); + mockIntercept.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListInterceptDeploymentsPagedResponse pagedListResponse = + client.listInterceptDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInterceptDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInterceptDeploymentsRequest actualRequest = + ((ListInterceptDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInterceptDeploymentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listInterceptDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInterceptDeploymentsTest2() throws Exception { + InterceptDeployment responsesElement = InterceptDeployment.newBuilder().build(); + ListInterceptDeploymentsResponse expectedResponse = + ListInterceptDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllInterceptDeployments(Arrays.asList(responsesElement)) + .build(); + mockIntercept.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListInterceptDeploymentsPagedResponse pagedListResponse = + client.listInterceptDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInterceptDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInterceptDeploymentsRequest actualRequest = + ((ListInterceptDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInterceptDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String parent = "parent-995424086"; + client.listInterceptDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInterceptDeploymentTest() throws Exception { + InterceptDeployment expectedResponse = + InterceptDeployment.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + mockIntercept.addResponse(expectedResponse); + + InterceptDeploymentName name = + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]"); + + InterceptDeployment actualResponse = client.getInterceptDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInterceptDeploymentRequest actualRequest = + ((GetInterceptDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInterceptDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptDeploymentName name = + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]"); + client.getInterceptDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInterceptDeploymentTest2() throws Exception { + InterceptDeployment expectedResponse = + InterceptDeployment.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + mockIntercept.addResponse(expectedResponse); + + String name = "name3373707"; + + InterceptDeployment actualResponse = client.getInterceptDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInterceptDeploymentRequest actualRequest = + ((GetInterceptDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInterceptDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String name = "name3373707"; + client.getInterceptDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createInterceptDeploymentTest() throws Exception { + InterceptDeployment expectedResponse = + InterceptDeployment.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInterceptDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + String interceptDeploymentId = "interceptDeploymentId-240023390"; + + InterceptDeployment actualResponse = + client + .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInterceptDeploymentRequest actualRequest = + ((CreateInterceptDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(interceptDeployment, actualRequest.getInterceptDeployment()); + Assert.assertEquals(interceptDeploymentId, actualRequest.getInterceptDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInterceptDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + String interceptDeploymentId = "interceptDeploymentId-240023390"; + client + .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createInterceptDeploymentTest2() throws Exception { + InterceptDeployment expectedResponse = + InterceptDeployment.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInterceptDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + String parent = "parent-995424086"; + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + String interceptDeploymentId = "interceptDeploymentId-240023390"; + + InterceptDeployment actualResponse = + client + .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInterceptDeploymentRequest actualRequest = + ((CreateInterceptDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(interceptDeployment, actualRequest.getInterceptDeployment()); + Assert.assertEquals(interceptDeploymentId, actualRequest.getInterceptDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createInterceptDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String parent = "parent-995424086"; + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + String interceptDeploymentId = "interceptDeploymentId-240023390"; + client + .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateInterceptDeploymentTest() throws Exception { + InterceptDeployment expectedResponse = + InterceptDeployment.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setInterceptDeploymentGroup( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInterceptDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + InterceptDeployment actualResponse = + client.updateInterceptDeploymentAsync(interceptDeployment, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateInterceptDeploymentRequest actualRequest = + ((UpdateInterceptDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(interceptDeployment, actualRequest.getInterceptDeployment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateInterceptDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateInterceptDeploymentAsync(interceptDeployment, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInterceptDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInterceptDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + InterceptDeploymentName name = + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]"); + + client.deleteInterceptDeploymentAsync(name).get(); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInterceptDeploymentRequest actualRequest = + ((DeleteInterceptDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInterceptDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + InterceptDeploymentName name = + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]"); + client.deleteInterceptDeploymentAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteInterceptDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInterceptDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIntercept.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteInterceptDeploymentAsync(name).get(); + + List actualRequests = mockIntercept.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInterceptDeploymentRequest actualRequest = + ((DeleteInterceptDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteInterceptDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIntercept.addException(exception); + + try { + String name = "name3373707"; + client.deleteInterceptDeploymentAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MirroringClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MirroringClientTest.java new file mode 100644 index 000000000000..513bd141e0c6 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MirroringClientTest.java @@ -0,0 +1,2414 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.MirroringClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse; +import static com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class MirroringClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockMirroring mockMirroring; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private MirroringClient client; + + @BeforeClass + public static void startStaticServer() { + mockMirroring = new MockMirroring(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockMirroring, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + MirroringSettings settings = + MirroringSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MirroringClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listMirroringEndpointGroupsTest() throws Exception { + MirroringEndpointGroup responsesElement = MirroringEndpointGroup.newBuilder().build(); + ListMirroringEndpointGroupsResponse expectedResponse = + ListMirroringEndpointGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllMirroringEndpointGroups(Arrays.asList(responsesElement)) + .build(); + mockMirroring.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMirroringEndpointGroupsPagedResponse pagedListResponse = + client.listMirroringEndpointGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMirroringEndpointGroupsList().get(0), resources.get(0)); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMirroringEndpointGroupsRequest actualRequest = + ((ListMirroringEndpointGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMirroringEndpointGroupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMirroringEndpointGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMirroringEndpointGroupsTest2() throws Exception { + MirroringEndpointGroup responsesElement = MirroringEndpointGroup.newBuilder().build(); + ListMirroringEndpointGroupsResponse expectedResponse = + ListMirroringEndpointGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllMirroringEndpointGroups(Arrays.asList(responsesElement)) + .build(); + mockMirroring.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMirroringEndpointGroupsPagedResponse pagedListResponse = + client.listMirroringEndpointGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMirroringEndpointGroupsList().get(0), resources.get(0)); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMirroringEndpointGroupsRequest actualRequest = + ((ListMirroringEndpointGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMirroringEndpointGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMirroringEndpointGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMirroringEndpointGroupTest() throws Exception { + MirroringEndpointGroup expectedResponse = + MirroringEndpointGroup.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .addAllConnectedDeploymentGroups( + new ArrayList()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + mockMirroring.addResponse(expectedResponse); + + MirroringEndpointGroupName name = + MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]"); + + MirroringEndpointGroup actualResponse = client.getMirroringEndpointGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMirroringEndpointGroupRequest actualRequest = + ((GetMirroringEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMirroringEndpointGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringEndpointGroupName name = + MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]"); + client.getMirroringEndpointGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMirroringEndpointGroupTest2() throws Exception { + MirroringEndpointGroup expectedResponse = + MirroringEndpointGroup.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .addAllConnectedDeploymentGroups( + new ArrayList()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + mockMirroring.addResponse(expectedResponse); + + String name = "name3373707"; + + MirroringEndpointGroup actualResponse = client.getMirroringEndpointGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMirroringEndpointGroupRequest actualRequest = + ((GetMirroringEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMirroringEndpointGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String name = "name3373707"; + client.getMirroringEndpointGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMirroringEndpointGroupTest() throws Exception { + MirroringEndpointGroup expectedResponse = + MirroringEndpointGroup.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .addAllConnectedDeploymentGroups( + new ArrayList()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMirroringEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834"; + + MirroringEndpointGroup actualResponse = + client + .createMirroringEndpointGroupAsync( + parent, mirroringEndpointGroup, mirroringEndpointGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMirroringEndpointGroupRequest actualRequest = + ((CreateMirroringEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(mirroringEndpointGroup, actualRequest.getMirroringEndpointGroup()); + Assert.assertEquals(mirroringEndpointGroupId, actualRequest.getMirroringEndpointGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMirroringEndpointGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834"; + client + .createMirroringEndpointGroupAsync( + parent, mirroringEndpointGroup, mirroringEndpointGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createMirroringEndpointGroupTest2() throws Exception { + MirroringEndpointGroup expectedResponse = + MirroringEndpointGroup.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .addAllConnectedDeploymentGroups( + new ArrayList()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMirroringEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + String parent = "parent-995424086"; + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834"; + + MirroringEndpointGroup actualResponse = + client + .createMirroringEndpointGroupAsync( + parent, mirroringEndpointGroup, mirroringEndpointGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMirroringEndpointGroupRequest actualRequest = + ((CreateMirroringEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(mirroringEndpointGroup, actualRequest.getMirroringEndpointGroup()); + Assert.assertEquals(mirroringEndpointGroupId, actualRequest.getMirroringEndpointGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMirroringEndpointGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String parent = "parent-995424086"; + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834"; + client + .createMirroringEndpointGroupAsync( + parent, mirroringEndpointGroup, mirroringEndpointGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateMirroringEndpointGroupTest() throws Exception { + MirroringEndpointGroup expectedResponse = + MirroringEndpointGroup.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .addAllConnectedDeploymentGroups( + new ArrayList()) + .setReconciling(true) + .addAllAssociations(new ArrayList()) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMirroringEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MirroringEndpointGroup actualResponse = + client.updateMirroringEndpointGroupAsync(mirroringEndpointGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMirroringEndpointGroupRequest actualRequest = + ((UpdateMirroringEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(mirroringEndpointGroup, actualRequest.getMirroringEndpointGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMirroringEndpointGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMirroringEndpointGroupAsync(mirroringEndpointGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMirroringEndpointGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMirroringEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + MirroringEndpointGroupName name = + MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]"); + + client.deleteMirroringEndpointGroupAsync(name).get(); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMirroringEndpointGroupRequest actualRequest = + ((DeleteMirroringEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMirroringEndpointGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringEndpointGroupName name = + MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]"); + client.deleteMirroringEndpointGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMirroringEndpointGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMirroringEndpointGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMirroringEndpointGroupAsync(name).get(); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMirroringEndpointGroupRequest actualRequest = + ((DeleteMirroringEndpointGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMirroringEndpointGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String name = "name3373707"; + client.deleteMirroringEndpointGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listMirroringEndpointGroupAssociationsTest() throws Exception { + MirroringEndpointGroupAssociation responsesElement = + MirroringEndpointGroupAssociation.newBuilder().build(); + ListMirroringEndpointGroupAssociationsResponse expectedResponse = + ListMirroringEndpointGroupAssociationsResponse.newBuilder() + .setNextPageToken("") + .addAllMirroringEndpointGroupAssociations(Arrays.asList(responsesElement)) + .build(); + mockMirroring.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMirroringEndpointGroupAssociationsPagedResponse pagedListResponse = + client.listMirroringEndpointGroupAssociations(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMirroringEndpointGroupAssociationsList().get(0), resources.get(0)); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMirroringEndpointGroupAssociationsRequest actualRequest = + ((ListMirroringEndpointGroupAssociationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMirroringEndpointGroupAssociationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMirroringEndpointGroupAssociations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMirroringEndpointGroupAssociationsTest2() throws Exception { + MirroringEndpointGroupAssociation responsesElement = + MirroringEndpointGroupAssociation.newBuilder().build(); + ListMirroringEndpointGroupAssociationsResponse expectedResponse = + ListMirroringEndpointGroupAssociationsResponse.newBuilder() + .setNextPageToken("") + .addAllMirroringEndpointGroupAssociations(Arrays.asList(responsesElement)) + .build(); + mockMirroring.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMirroringEndpointGroupAssociationsPagedResponse pagedListResponse = + client.listMirroringEndpointGroupAssociations(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMirroringEndpointGroupAssociationsList().get(0), resources.get(0)); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMirroringEndpointGroupAssociationsRequest actualRequest = + ((ListMirroringEndpointGroupAssociationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMirroringEndpointGroupAssociationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMirroringEndpointGroupAssociations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMirroringEndpointGroupAssociationTest() throws Exception { + MirroringEndpointGroupAssociation expectedResponse = + MirroringEndpointGroupAssociation.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringEndpointGroup( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .build(); + mockMirroring.addResponse(expectedResponse); + + MirroringEndpointGroupAssociationName name = + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]"); + + MirroringEndpointGroupAssociation actualResponse = + client.getMirroringEndpointGroupAssociation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMirroringEndpointGroupAssociationRequest actualRequest = + ((GetMirroringEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMirroringEndpointGroupAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringEndpointGroupAssociationName name = + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]"); + client.getMirroringEndpointGroupAssociation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMirroringEndpointGroupAssociationTest2() throws Exception { + MirroringEndpointGroupAssociation expectedResponse = + MirroringEndpointGroupAssociation.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringEndpointGroup( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .build(); + mockMirroring.addResponse(expectedResponse); + + String name = "name3373707"; + + MirroringEndpointGroupAssociation actualResponse = + client.getMirroringEndpointGroupAssociation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMirroringEndpointGroupAssociationRequest actualRequest = + ((GetMirroringEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMirroringEndpointGroupAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String name = "name3373707"; + client.getMirroringEndpointGroupAssociation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMirroringEndpointGroupAssociationTest() throws Exception { + MirroringEndpointGroupAssociation expectedResponse = + MirroringEndpointGroupAssociation.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringEndpointGroup( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMirroringEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507"; + + MirroringEndpointGroupAssociation actualResponse = + client + .createMirroringEndpointGroupAssociationAsync( + parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMirroringEndpointGroupAssociationRequest actualRequest = + ((CreateMirroringEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + mirroringEndpointGroupAssociation, actualRequest.getMirroringEndpointGroupAssociation()); + Assert.assertEquals( + mirroringEndpointGroupAssociationId, + actualRequest.getMirroringEndpointGroupAssociationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMirroringEndpointGroupAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507"; + client + .createMirroringEndpointGroupAssociationAsync( + parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createMirroringEndpointGroupAssociationTest2() throws Exception { + MirroringEndpointGroupAssociation expectedResponse = + MirroringEndpointGroupAssociation.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringEndpointGroup( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMirroringEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + String parent = "parent-995424086"; + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507"; + + MirroringEndpointGroupAssociation actualResponse = + client + .createMirroringEndpointGroupAssociationAsync( + parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMirroringEndpointGroupAssociationRequest actualRequest = + ((CreateMirroringEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + mirroringEndpointGroupAssociation, actualRequest.getMirroringEndpointGroupAssociation()); + Assert.assertEquals( + mirroringEndpointGroupAssociationId, + actualRequest.getMirroringEndpointGroupAssociationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMirroringEndpointGroupAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String parent = "parent-995424086"; + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507"; + client + .createMirroringEndpointGroupAssociationAsync( + parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateMirroringEndpointGroupAssociationTest() throws Exception { + MirroringEndpointGroupAssociation expectedResponse = + MirroringEndpointGroupAssociation.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setMirroringEndpointGroup( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setNetwork("network1843485230") + .addAllLocationsDetails( + new ArrayList()) + .setReconciling(true) + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMirroringEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MirroringEndpointGroupAssociation actualResponse = + client + .updateMirroringEndpointGroupAssociationAsync( + mirroringEndpointGroupAssociation, updateMask) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMirroringEndpointGroupAssociationRequest actualRequest = + ((UpdateMirroringEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals( + mirroringEndpointGroupAssociation, actualRequest.getMirroringEndpointGroupAssociation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMirroringEndpointGroupAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client + .updateMirroringEndpointGroupAssociationAsync( + mirroringEndpointGroupAssociation, updateMask) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMirroringEndpointGroupAssociationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMirroringEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + MirroringEndpointGroupAssociationName name = + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]"); + + client.deleteMirroringEndpointGroupAssociationAsync(name).get(); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMirroringEndpointGroupAssociationRequest actualRequest = + ((DeleteMirroringEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMirroringEndpointGroupAssociationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringEndpointGroupAssociationName name = + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]"); + client.deleteMirroringEndpointGroupAssociationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMirroringEndpointGroupAssociationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMirroringEndpointGroupAssociationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMirroringEndpointGroupAssociationAsync(name).get(); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMirroringEndpointGroupAssociationRequest actualRequest = + ((DeleteMirroringEndpointGroupAssociationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMirroringEndpointGroupAssociationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String name = "name3373707"; + client.deleteMirroringEndpointGroupAssociationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listMirroringDeploymentGroupsTest() throws Exception { + MirroringDeploymentGroup responsesElement = MirroringDeploymentGroup.newBuilder().build(); + ListMirroringDeploymentGroupsResponse expectedResponse = + ListMirroringDeploymentGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllMirroringDeploymentGroups(Arrays.asList(responsesElement)) + .build(); + mockMirroring.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMirroringDeploymentGroupsPagedResponse pagedListResponse = + client.listMirroringDeploymentGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMirroringDeploymentGroupsList().get(0), resources.get(0)); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMirroringDeploymentGroupsRequest actualRequest = + ((ListMirroringDeploymentGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMirroringDeploymentGroupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMirroringDeploymentGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMirroringDeploymentGroupsTest2() throws Exception { + MirroringDeploymentGroup responsesElement = MirroringDeploymentGroup.newBuilder().build(); + ListMirroringDeploymentGroupsResponse expectedResponse = + ListMirroringDeploymentGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllMirroringDeploymentGroups(Arrays.asList(responsesElement)) + .build(); + mockMirroring.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMirroringDeploymentGroupsPagedResponse pagedListResponse = + client.listMirroringDeploymentGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMirroringDeploymentGroupsList().get(0), resources.get(0)); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMirroringDeploymentGroupsRequest actualRequest = + ((ListMirroringDeploymentGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMirroringDeploymentGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMirroringDeploymentGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMirroringDeploymentGroupTest() throws Exception { + MirroringDeploymentGroup expectedResponse = + MirroringDeploymentGroup.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + mockMirroring.addResponse(expectedResponse); + + MirroringDeploymentGroupName name = + MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]"); + + MirroringDeploymentGroup actualResponse = client.getMirroringDeploymentGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMirroringDeploymentGroupRequest actualRequest = + ((GetMirroringDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMirroringDeploymentGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringDeploymentGroupName name = + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]"); + client.getMirroringDeploymentGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMirroringDeploymentGroupTest2() throws Exception { + MirroringDeploymentGroup expectedResponse = + MirroringDeploymentGroup.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + mockMirroring.addResponse(expectedResponse); + + String name = "name3373707"; + + MirroringDeploymentGroup actualResponse = client.getMirroringDeploymentGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMirroringDeploymentGroupRequest actualRequest = + ((GetMirroringDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMirroringDeploymentGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String name = "name3373707"; + client.getMirroringDeploymentGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMirroringDeploymentGroupTest() throws Exception { + MirroringDeploymentGroup expectedResponse = + MirroringDeploymentGroup.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMirroringDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862"; + + MirroringDeploymentGroup actualResponse = + client + .createMirroringDeploymentGroupAsync( + parent, mirroringDeploymentGroup, mirroringDeploymentGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMirroringDeploymentGroupRequest actualRequest = + ((CreateMirroringDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(mirroringDeploymentGroup, actualRequest.getMirroringDeploymentGroup()); + Assert.assertEquals(mirroringDeploymentGroupId, actualRequest.getMirroringDeploymentGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMirroringDeploymentGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862"; + client + .createMirroringDeploymentGroupAsync( + parent, mirroringDeploymentGroup, mirroringDeploymentGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createMirroringDeploymentGroupTest2() throws Exception { + MirroringDeploymentGroup expectedResponse = + MirroringDeploymentGroup.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMirroringDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + String parent = "parent-995424086"; + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862"; + + MirroringDeploymentGroup actualResponse = + client + .createMirroringDeploymentGroupAsync( + parent, mirroringDeploymentGroup, mirroringDeploymentGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMirroringDeploymentGroupRequest actualRequest = + ((CreateMirroringDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(mirroringDeploymentGroup, actualRequest.getMirroringDeploymentGroup()); + Assert.assertEquals(mirroringDeploymentGroupId, actualRequest.getMirroringDeploymentGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMirroringDeploymentGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String parent = "parent-995424086"; + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862"; + client + .createMirroringDeploymentGroupAsync( + parent, mirroringDeploymentGroup, mirroringDeploymentGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateMirroringDeploymentGroupTest() throws Exception { + MirroringDeploymentGroup expectedResponse = + MirroringDeploymentGroup.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .addAllConnectedEndpointGroups( + new ArrayList()) + .addAllNestedDeployments(new ArrayList()) + .setReconciling(true) + .setDescription("description-1724546052") + .addAllLocations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMirroringDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MirroringDeploymentGroup actualResponse = + client.updateMirroringDeploymentGroupAsync(mirroringDeploymentGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMirroringDeploymentGroupRequest actualRequest = + ((UpdateMirroringDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(mirroringDeploymentGroup, actualRequest.getMirroringDeploymentGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMirroringDeploymentGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMirroringDeploymentGroupAsync(mirroringDeploymentGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMirroringDeploymentGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMirroringDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + MirroringDeploymentGroupName name = + MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]"); + + client.deleteMirroringDeploymentGroupAsync(name).get(); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMirroringDeploymentGroupRequest actualRequest = + ((DeleteMirroringDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMirroringDeploymentGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringDeploymentGroupName name = + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]"); + client.deleteMirroringDeploymentGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMirroringDeploymentGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMirroringDeploymentGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMirroringDeploymentGroupAsync(name).get(); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMirroringDeploymentGroupRequest actualRequest = + ((DeleteMirroringDeploymentGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMirroringDeploymentGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String name = "name3373707"; + client.deleteMirroringDeploymentGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listMirroringDeploymentsTest() throws Exception { + MirroringDeployment responsesElement = MirroringDeployment.newBuilder().build(); + ListMirroringDeploymentsResponse expectedResponse = + ListMirroringDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllMirroringDeployments(Arrays.asList(responsesElement)) + .build(); + mockMirroring.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMirroringDeploymentsPagedResponse pagedListResponse = + client.listMirroringDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMirroringDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMirroringDeploymentsRequest actualRequest = + ((ListMirroringDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMirroringDeploymentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMirroringDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMirroringDeploymentsTest2() throws Exception { + MirroringDeployment responsesElement = MirroringDeployment.newBuilder().build(); + ListMirroringDeploymentsResponse expectedResponse = + ListMirroringDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllMirroringDeployments(Arrays.asList(responsesElement)) + .build(); + mockMirroring.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMirroringDeploymentsPagedResponse pagedListResponse = + client.listMirroringDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMirroringDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMirroringDeploymentsRequest actualRequest = + ((ListMirroringDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMirroringDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMirroringDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMirroringDeploymentTest() throws Exception { + MirroringDeployment expectedResponse = + MirroringDeployment.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + mockMirroring.addResponse(expectedResponse); + + MirroringDeploymentName name = + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]"); + + MirroringDeployment actualResponse = client.getMirroringDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMirroringDeploymentRequest actualRequest = + ((GetMirroringDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMirroringDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringDeploymentName name = + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]"); + client.getMirroringDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMirroringDeploymentTest2() throws Exception { + MirroringDeployment expectedResponse = + MirroringDeployment.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + mockMirroring.addResponse(expectedResponse); + + String name = "name3373707"; + + MirroringDeployment actualResponse = client.getMirroringDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMirroringDeploymentRequest actualRequest = + ((GetMirroringDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMirroringDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String name = "name3373707"; + client.getMirroringDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMirroringDeploymentTest() throws Exception { + MirroringDeployment expectedResponse = + MirroringDeployment.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMirroringDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + String mirroringDeploymentId = "mirroringDeploymentId-895939037"; + + MirroringDeployment actualResponse = + client + .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMirroringDeploymentRequest actualRequest = + ((CreateMirroringDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(mirroringDeployment, actualRequest.getMirroringDeployment()); + Assert.assertEquals(mirroringDeploymentId, actualRequest.getMirroringDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMirroringDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + String mirroringDeploymentId = "mirroringDeploymentId-895939037"; + client + .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createMirroringDeploymentTest2() throws Exception { + MirroringDeployment expectedResponse = + MirroringDeployment.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMirroringDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + String parent = "parent-995424086"; + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + String mirroringDeploymentId = "mirroringDeploymentId-895939037"; + + MirroringDeployment actualResponse = + client + .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMirroringDeploymentRequest actualRequest = + ((CreateMirroringDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(mirroringDeployment, actualRequest.getMirroringDeployment()); + Assert.assertEquals(mirroringDeploymentId, actualRequest.getMirroringDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMirroringDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String parent = "parent-995424086"; + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + String mirroringDeploymentId = "mirroringDeploymentId-895939037"; + client + .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateMirroringDeploymentTest() throws Exception { + MirroringDeployment expectedResponse = + MirroringDeployment.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setForwardingRule("forwardingRule-1429104743") + .setMirroringDeploymentGroup( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setReconciling(true) + .setDescription("description-1724546052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMirroringDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MirroringDeployment actualResponse = + client.updateMirroringDeploymentAsync(mirroringDeployment, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMirroringDeploymentRequest actualRequest = + ((UpdateMirroringDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(mirroringDeployment, actualRequest.getMirroringDeployment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMirroringDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMirroringDeploymentAsync(mirroringDeployment, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMirroringDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMirroringDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + MirroringDeploymentName name = + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]"); + + client.deleteMirroringDeploymentAsync(name).get(); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMirroringDeploymentRequest actualRequest = + ((DeleteMirroringDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMirroringDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + MirroringDeploymentName name = + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]"); + client.deleteMirroringDeploymentAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMirroringDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMirroringDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMirroring.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMirroringDeploymentAsync(name).get(); + + List actualRequests = mockMirroring.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMirroringDeploymentRequest actualRequest = + ((DeleteMirroringDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMirroringDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMirroring.addException(exception); + + try { + String name = "name3373707"; + client.deleteMirroringDeploymentAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockDnsThreatDetectorService.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockDnsThreatDetectorService.java new file mode 100644 index 000000000000..3991c2bc570a --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockDnsThreatDetectorService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDnsThreatDetectorService implements MockGrpcService { + private final MockDnsThreatDetectorServiceImpl serviceImpl; + + public MockDnsThreatDetectorService() { + serviceImpl = new MockDnsThreatDetectorServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockDnsThreatDetectorServiceImpl.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockDnsThreatDetectorServiceImpl.java new file mode 100644 index 000000000000..4e75cb15333d --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockDnsThreatDetectorServiceImpl.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceGrpc.DnsThreatDetectorServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDnsThreatDetectorServiceImpl extends DnsThreatDetectorServiceImplBase { + private List requests; + private Queue responses; + + public MockDnsThreatDetectorServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listDnsThreatDetectors( + ListDnsThreatDetectorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDnsThreatDetectorsResponse) { + requests.add(request); + responseObserver.onNext(((ListDnsThreatDetectorsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDnsThreatDetectors, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListDnsThreatDetectorsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDnsThreatDetector( + GetDnsThreatDetectorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DnsThreatDetector) { + requests.add(request); + responseObserver.onNext(((DnsThreatDetector) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDnsThreatDetector, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + DnsThreatDetector.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDnsThreatDetector( + CreateDnsThreatDetectorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DnsThreatDetector) { + requests.add(request); + responseObserver.onNext(((DnsThreatDetector) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateDnsThreatDetector, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + DnsThreatDetector.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDnsThreatDetector( + UpdateDnsThreatDetectorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DnsThreatDetector) { + requests.add(request); + responseObserver.onNext(((DnsThreatDetector) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDnsThreatDetector, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + DnsThreatDetector.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDnsThreatDetector( + DeleteDnsThreatDetectorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDnsThreatDetector, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockFirewallActivation.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockFirewallActivation.java new file mode 100644 index 000000000000..c57b2ceb26b1 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockFirewallActivation.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFirewallActivation implements MockGrpcService { + private final MockFirewallActivationImpl serviceImpl; + + public MockFirewallActivation() { + serviceImpl = new MockFirewallActivationImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockFirewallActivationImpl.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockFirewallActivationImpl.java new file mode 100644 index 000000000000..040b5c7a5691 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockFirewallActivationImpl.java @@ -0,0 +1,286 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networksecurity.v1.FirewallActivationGrpc.FirewallActivationImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFirewallActivationImpl extends FirewallActivationImplBase { + private List requests; + private Queue responses; + + public MockFirewallActivationImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listFirewallEndpoints( + ListFirewallEndpointsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFirewallEndpointsResponse) { + requests.add(request); + responseObserver.onNext(((ListFirewallEndpointsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListFirewallEndpoints, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListFirewallEndpointsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFirewallEndpoint( + GetFirewallEndpointRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FirewallEndpoint) { + requests.add(request); + responseObserver.onNext(((FirewallEndpoint) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetFirewallEndpoint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FirewallEndpoint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFirewallEndpoint( + CreateFirewallEndpointRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateFirewallEndpoint, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFirewallEndpoint( + DeleteFirewallEndpointRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFirewallEndpoint, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFirewallEndpoint( + UpdateFirewallEndpointRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateFirewallEndpoint, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFirewallEndpointAssociations( + ListFirewallEndpointAssociationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFirewallEndpointAssociationsResponse) { + requests.add(request); + responseObserver.onNext(((ListFirewallEndpointAssociationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListFirewallEndpointAssociations," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFirewallEndpointAssociationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFirewallEndpointAssociation( + GetFirewallEndpointAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FirewallEndpointAssociation) { + requests.add(request); + responseObserver.onNext(((FirewallEndpointAssociation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetFirewallEndpointAssociation," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FirewallEndpointAssociation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFirewallEndpointAssociation( + CreateFirewallEndpointAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateFirewallEndpointAssociation," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFirewallEndpointAssociation( + DeleteFirewallEndpointAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFirewallEndpointAssociation," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFirewallEndpointAssociation( + UpdateFirewallEndpointAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateFirewallEndpointAssociation," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockIntercept.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockIntercept.java new file mode 100644 index 000000000000..fb606e262a13 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockIntercept.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIntercept implements MockGrpcService { + private final MockInterceptImpl serviceImpl; + + public MockIntercept() { + serviceImpl = new MockInterceptImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockInterceptImpl.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockInterceptImpl.java new file mode 100644 index 000000000000..8872332b16d9 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockInterceptImpl.java @@ -0,0 +1,511 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networksecurity.v1.InterceptGrpc.InterceptImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockInterceptImpl extends InterceptImplBase { + private List requests; + private Queue responses; + + public MockInterceptImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listInterceptEndpointGroups( + ListInterceptEndpointGroupsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListInterceptEndpointGroupsResponse) { + requests.add(request); + responseObserver.onNext(((ListInterceptEndpointGroupsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListInterceptEndpointGroups, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListInterceptEndpointGroupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getInterceptEndpointGroup( + GetInterceptEndpointGroupRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof InterceptEndpointGroup) { + requests.add(request); + responseObserver.onNext(((InterceptEndpointGroup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetInterceptEndpointGroup, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + InterceptEndpointGroup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createInterceptEndpointGroup( + CreateInterceptEndpointGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateInterceptEndpointGroup, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateInterceptEndpointGroup( + UpdateInterceptEndpointGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateInterceptEndpointGroup, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteInterceptEndpointGroup( + DeleteInterceptEndpointGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteInterceptEndpointGroup, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listInterceptEndpointGroupAssociations( + ListInterceptEndpointGroupAssociationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListInterceptEndpointGroupAssociationsResponse) { + requests.add(request); + responseObserver.onNext(((ListInterceptEndpointGroupAssociationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListInterceptEndpointGroupAssociations," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListInterceptEndpointGroupAssociationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getInterceptEndpointGroupAssociation( + GetInterceptEndpointGroupAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof InterceptEndpointGroupAssociation) { + requests.add(request); + responseObserver.onNext(((InterceptEndpointGroupAssociation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetInterceptEndpointGroupAssociation," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + InterceptEndpointGroupAssociation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createInterceptEndpointGroupAssociation( + CreateInterceptEndpointGroupAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " CreateInterceptEndpointGroupAssociation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateInterceptEndpointGroupAssociation( + UpdateInterceptEndpointGroupAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " UpdateInterceptEndpointGroupAssociation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteInterceptEndpointGroupAssociation( + DeleteInterceptEndpointGroupAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " DeleteInterceptEndpointGroupAssociation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listInterceptDeploymentGroups( + ListInterceptDeploymentGroupsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListInterceptDeploymentGroupsResponse) { + requests.add(request); + responseObserver.onNext(((ListInterceptDeploymentGroupsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListInterceptDeploymentGroups, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListInterceptDeploymentGroupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getInterceptDeploymentGroup( + GetInterceptDeploymentGroupRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof InterceptDeploymentGroup) { + requests.add(request); + responseObserver.onNext(((InterceptDeploymentGroup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetInterceptDeploymentGroup, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + InterceptDeploymentGroup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createInterceptDeploymentGroup( + CreateInterceptDeploymentGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateInterceptDeploymentGroup," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateInterceptDeploymentGroup( + UpdateInterceptDeploymentGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateInterceptDeploymentGroup," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteInterceptDeploymentGroup( + DeleteInterceptDeploymentGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteInterceptDeploymentGroup," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listInterceptDeployments( + ListInterceptDeploymentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListInterceptDeploymentsResponse) { + requests.add(request); + responseObserver.onNext(((ListInterceptDeploymentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListInterceptDeployments, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListInterceptDeploymentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getInterceptDeployment( + GetInterceptDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof InterceptDeployment) { + requests.add(request); + responseObserver.onNext(((InterceptDeployment) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetInterceptDeployment, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + InterceptDeployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createInterceptDeployment( + CreateInterceptDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateInterceptDeployment, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateInterceptDeployment( + UpdateInterceptDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateInterceptDeployment, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteInterceptDeployment( + DeleteInterceptDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteInterceptDeployment, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockMirroring.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockMirroring.java new file mode 100644 index 000000000000..3b33151389aa --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockMirroring.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMirroring implements MockGrpcService { + private final MockMirroringImpl serviceImpl; + + public MockMirroring() { + serviceImpl = new MockMirroringImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockMirroringImpl.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockMirroringImpl.java new file mode 100644 index 000000000000..62a9d2a581a7 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockMirroringImpl.java @@ -0,0 +1,511 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networksecurity.v1.MirroringGrpc.MirroringImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockMirroringImpl extends MirroringImplBase { + private List requests; + private Queue responses; + + public MockMirroringImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listMirroringEndpointGroups( + ListMirroringEndpointGroupsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMirroringEndpointGroupsResponse) { + requests.add(request); + responseObserver.onNext(((ListMirroringEndpointGroupsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMirroringEndpointGroups, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMirroringEndpointGroupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMirroringEndpointGroup( + GetMirroringEndpointGroupRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MirroringEndpointGroup) { + requests.add(request); + responseObserver.onNext(((MirroringEndpointGroup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetMirroringEndpointGroup, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + MirroringEndpointGroup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMirroringEndpointGroup( + CreateMirroringEndpointGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateMirroringEndpointGroup, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMirroringEndpointGroup( + UpdateMirroringEndpointGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMirroringEndpointGroup, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMirroringEndpointGroup( + DeleteMirroringEndpointGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteMirroringEndpointGroup, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMirroringEndpointGroupAssociations( + ListMirroringEndpointGroupAssociationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMirroringEndpointGroupAssociationsResponse) { + requests.add(request); + responseObserver.onNext(((ListMirroringEndpointGroupAssociationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMirroringEndpointGroupAssociations," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMirroringEndpointGroupAssociationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMirroringEndpointGroupAssociation( + GetMirroringEndpointGroupAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MirroringEndpointGroupAssociation) { + requests.add(request); + responseObserver.onNext(((MirroringEndpointGroupAssociation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetMirroringEndpointGroupAssociation," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MirroringEndpointGroupAssociation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMirroringEndpointGroupAssociation( + CreateMirroringEndpointGroupAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " CreateMirroringEndpointGroupAssociation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMirroringEndpointGroupAssociation( + UpdateMirroringEndpointGroupAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " UpdateMirroringEndpointGroupAssociation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMirroringEndpointGroupAssociation( + DeleteMirroringEndpointGroupAssociationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " DeleteMirroringEndpointGroupAssociation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMirroringDeploymentGroups( + ListMirroringDeploymentGroupsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMirroringDeploymentGroupsResponse) { + requests.add(request); + responseObserver.onNext(((ListMirroringDeploymentGroupsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMirroringDeploymentGroups, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMirroringDeploymentGroupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMirroringDeploymentGroup( + GetMirroringDeploymentGroupRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MirroringDeploymentGroup) { + requests.add(request); + responseObserver.onNext(((MirroringDeploymentGroup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetMirroringDeploymentGroup, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + MirroringDeploymentGroup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMirroringDeploymentGroup( + CreateMirroringDeploymentGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateMirroringDeploymentGroup," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMirroringDeploymentGroup( + UpdateMirroringDeploymentGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMirroringDeploymentGroup," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMirroringDeploymentGroup( + DeleteMirroringDeploymentGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteMirroringDeploymentGroup," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMirroringDeployments( + ListMirroringDeploymentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMirroringDeploymentsResponse) { + requests.add(request); + responseObserver.onNext(((ListMirroringDeploymentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMirroringDeployments, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListMirroringDeploymentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMirroringDeployment( + GetMirroringDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MirroringDeployment) { + requests.add(request); + responseObserver.onNext(((MirroringDeployment) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetMirroringDeployment, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + MirroringDeployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMirroringDeployment( + CreateMirroringDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateMirroringDeployment, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMirroringDeployment( + UpdateMirroringDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMirroringDeployment, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMirroringDeployment( + DeleteMirroringDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteMirroringDeployment, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java index fa5adcddaa06..cf5fb97baefa 100644 --- a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockNetworkSecurityImpl.java @@ -170,6 +170,121 @@ public void deleteAuthorizationPolicy( } } + @Override + public void listBackendAuthenticationConfigs( + ListBackendAuthenticationConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBackendAuthenticationConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListBackendAuthenticationConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBackendAuthenticationConfigs," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBackendAuthenticationConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBackendAuthenticationConfig( + GetBackendAuthenticationConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BackendAuthenticationConfig) { + requests.add(request); + responseObserver.onNext(((BackendAuthenticationConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetBackendAuthenticationConfig," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BackendAuthenticationConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBackendAuthenticationConfig( + CreateBackendAuthenticationConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateBackendAuthenticationConfig," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBackendAuthenticationConfig( + UpdateBackendAuthenticationConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBackendAuthenticationConfig," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBackendAuthenticationConfig( + DeleteBackendAuthenticationConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteBackendAuthenticationConfig," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listServerTlsPolicies( ListServerTlsPoliciesRequest request, @@ -389,4 +504,549 @@ public void deleteClientTlsPolicy( Exception.class.getName()))); } } + + @Override + public void listGatewaySecurityPolicies( + ListGatewaySecurityPoliciesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGatewaySecurityPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListGatewaySecurityPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListGatewaySecurityPolicies, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGatewaySecurityPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGatewaySecurityPolicy( + GetGatewaySecurityPolicyRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GatewaySecurityPolicy) { + requests.add(request); + responseObserver.onNext(((GatewaySecurityPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGatewaySecurityPolicy, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + GatewaySecurityPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGatewaySecurityPolicy( + CreateGatewaySecurityPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateGatewaySecurityPolicy, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateGatewaySecurityPolicy( + UpdateGatewaySecurityPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateGatewaySecurityPolicy, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGatewaySecurityPolicy( + DeleteGatewaySecurityPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGatewaySecurityPolicy, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGatewaySecurityPolicyRules( + ListGatewaySecurityPolicyRulesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGatewaySecurityPolicyRulesResponse) { + requests.add(request); + responseObserver.onNext(((ListGatewaySecurityPolicyRulesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListGatewaySecurityPolicyRules," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGatewaySecurityPolicyRulesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGatewaySecurityPolicyRule( + GetGatewaySecurityPolicyRuleRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GatewaySecurityPolicyRule) { + requests.add(request); + responseObserver.onNext(((GatewaySecurityPolicyRule) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGatewaySecurityPolicyRule, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + GatewaySecurityPolicyRule.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGatewaySecurityPolicyRule( + CreateGatewaySecurityPolicyRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateGatewaySecurityPolicyRule," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateGatewaySecurityPolicyRule( + UpdateGatewaySecurityPolicyRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateGatewaySecurityPolicyRule," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGatewaySecurityPolicyRule( + DeleteGatewaySecurityPolicyRuleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGatewaySecurityPolicyRule," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listUrlLists( + ListUrlListsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListUrlListsResponse) { + requests.add(request); + responseObserver.onNext(((ListUrlListsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListUrlLists, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListUrlListsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getUrlList(GetUrlListRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UrlList) { + requests.add(request); + responseObserver.onNext(((UrlList) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetUrlList, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UrlList.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createUrlList( + CreateUrlListRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateUrlList, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateUrlList( + UpdateUrlListRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateUrlList, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteUrlList( + DeleteUrlListRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteUrlList, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTlsInspectionPolicies( + ListTlsInspectionPoliciesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTlsInspectionPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListTlsInspectionPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTlsInspectionPolicies, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListTlsInspectionPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTlsInspectionPolicy( + GetTlsInspectionPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TlsInspectionPolicy) { + requests.add(request); + responseObserver.onNext(((TlsInspectionPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTlsInspectionPolicy, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + TlsInspectionPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTlsInspectionPolicy( + CreateTlsInspectionPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTlsInspectionPolicy, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTlsInspectionPolicy( + UpdateTlsInspectionPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateTlsInspectionPolicy, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTlsInspectionPolicy( + DeleteTlsInspectionPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTlsInspectionPolicy, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAuthzPolicies( + ListAuthzPoliciesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAuthzPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListAuthzPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAuthzPolicies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAuthzPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAuthzPolicy( + GetAuthzPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthzPolicy) { + requests.add(request); + responseObserver.onNext(((AuthzPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAuthzPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthzPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAuthzPolicy( + CreateAuthzPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAuthzPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAuthzPolicy( + UpdateAuthzPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAuthzPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAuthzPolicy( + DeleteAuthzPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAuthzPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationSecurityProfileGroupService.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationSecurityProfileGroupService.java new file mode 100644 index 000000000000..a152cefd739f --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationSecurityProfileGroupService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockOrganizationSecurityProfileGroupService implements MockGrpcService { + private final MockOrganizationSecurityProfileGroupServiceImpl serviceImpl; + + public MockOrganizationSecurityProfileGroupService() { + serviceImpl = new MockOrganizationSecurityProfileGroupServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationSecurityProfileGroupServiceImpl.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationSecurityProfileGroupServiceImpl.java new file mode 100644 index 000000000000..9e35a3ffe930 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationSecurityProfileGroupServiceImpl.java @@ -0,0 +1,284 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceGrpc.OrganizationSecurityProfileGroupServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockOrganizationSecurityProfileGroupServiceImpl + extends OrganizationSecurityProfileGroupServiceImplBase { + private List requests; + private Queue responses; + + public MockOrganizationSecurityProfileGroupServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listSecurityProfileGroups( + ListSecurityProfileGroupsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSecurityProfileGroupsResponse) { + requests.add(request); + responseObserver.onNext(((ListSecurityProfileGroupsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSecurityProfileGroups, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListSecurityProfileGroupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSecurityProfileGroup( + GetSecurityProfileGroupRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SecurityProfileGroup) { + requests.add(request); + responseObserver.onNext(((SecurityProfileGroup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSecurityProfileGroup, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + SecurityProfileGroup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSecurityProfileGroup( + CreateSecurityProfileGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSecurityProfileGroup, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSecurityProfileGroup( + UpdateSecurityProfileGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSecurityProfileGroup, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSecurityProfileGroup( + DeleteSecurityProfileGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSecurityProfileGroup, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSecurityProfiles( + ListSecurityProfilesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSecurityProfilesResponse) { + requests.add(request); + responseObserver.onNext(((ListSecurityProfilesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSecurityProfiles, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListSecurityProfilesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSecurityProfile( + GetSecurityProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SecurityProfile) { + requests.add(request); + responseObserver.onNext(((SecurityProfile) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSecurityProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SecurityProfile.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSecurityProfile( + CreateSecurityProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSecurityProfile, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSecurityProfile( + UpdateSecurityProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSecurityProfile, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSecurityProfile( + DeleteSecurityProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSecurityProfile, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java index 983b2f600655..b63d966c564f 100644 --- a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java @@ -17,9 +17,15 @@ package com.google.cloud.networksecurity.v1; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthorizationPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListAuthzPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListBackendAuthenticationConfigsPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListClientTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListGatewaySecurityPolicyRulesPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListLocationsPagedResponse; import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListServerTlsPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListTlsInspectionPoliciesPagedResponse; +import static com.google.cloud.networksecurity.v1.NetworkSecurityClient.ListUrlListsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -570,29 +576,2836 @@ public void deleteAuthorizationPolicyExceptionTest2() throws Exception { } } + @Test + public void listBackendAuthenticationConfigsTest() throws Exception { + BackendAuthenticationConfig responsesElement = BackendAuthenticationConfig.newBuilder().build(); + ListBackendAuthenticationConfigsResponse expectedResponse = + ListBackendAuthenticationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllBackendAuthenticationConfigs(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBackendAuthenticationConfigsPagedResponse pagedListResponse = + client.listBackendAuthenticationConfigs(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getBackendAuthenticationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackendAuthenticationConfigsRequest actualRequest = + ((ListBackendAuthenticationConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackendAuthenticationConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBackendAuthenticationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackendAuthenticationConfigsTest2() throws Exception { + BackendAuthenticationConfig responsesElement = BackendAuthenticationConfig.newBuilder().build(); + ListBackendAuthenticationConfigsResponse expectedResponse = + ListBackendAuthenticationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllBackendAuthenticationConfigs(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackendAuthenticationConfigsPagedResponse pagedListResponse = + client.listBackendAuthenticationConfigs(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getBackendAuthenticationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackendAuthenticationConfigsRequest actualRequest = + ((ListBackendAuthenticationConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackendAuthenticationConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackendAuthenticationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackendAuthenticationConfigTest() throws Exception { + BackendAuthenticationConfig expectedResponse = + BackendAuthenticationConfig.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setClientCertificate("clientCertificate592328908") + .setTrustConfig("trustConfig515541946") + .setEtag("etag3123477") + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + BackendAuthenticationConfigName name = + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"); + + BackendAuthenticationConfig actualResponse = client.getBackendAuthenticationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackendAuthenticationConfigRequest actualRequest = + ((GetBackendAuthenticationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackendAuthenticationConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + BackendAuthenticationConfigName name = + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"); + client.getBackendAuthenticationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackendAuthenticationConfigTest2() throws Exception { + BackendAuthenticationConfig expectedResponse = + BackendAuthenticationConfig.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setClientCertificate("clientCertificate592328908") + .setTrustConfig("trustConfig515541946") + .setEtag("etag3123477") + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String name = "name3373707"; + + BackendAuthenticationConfig actualResponse = client.getBackendAuthenticationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackendAuthenticationConfigRequest actualRequest = + ((GetBackendAuthenticationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackendAuthenticationConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.getBackendAuthenticationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackendAuthenticationConfigTest() throws Exception { + BackendAuthenticationConfig expectedResponse = + BackendAuthenticationConfig.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setClientCertificate("clientCertificate592328908") + .setTrustConfig("trustConfig515541946") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackendAuthenticationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + String backendAuthenticationConfigId = "backendAuthenticationConfigId-396698039"; + + BackendAuthenticationConfig actualResponse = + client + .createBackendAuthenticationConfigAsync( + parent, backendAuthenticationConfig, backendAuthenticationConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackendAuthenticationConfigRequest actualRequest = + ((CreateBackendAuthenticationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + backendAuthenticationConfig, actualRequest.getBackendAuthenticationConfig()); + Assert.assertEquals( + backendAuthenticationConfigId, actualRequest.getBackendAuthenticationConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackendAuthenticationConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + String backendAuthenticationConfigId = "backendAuthenticationConfigId-396698039"; + client + .createBackendAuthenticationConfigAsync( + parent, backendAuthenticationConfig, backendAuthenticationConfigId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createBackendAuthenticationConfigTest2() throws Exception { + BackendAuthenticationConfig expectedResponse = + BackendAuthenticationConfig.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setClientCertificate("clientCertificate592328908") + .setTrustConfig("trustConfig515541946") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackendAuthenticationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String parent = "parent-995424086"; + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + String backendAuthenticationConfigId = "backendAuthenticationConfigId-396698039"; + + BackendAuthenticationConfig actualResponse = + client + .createBackendAuthenticationConfigAsync( + parent, backendAuthenticationConfig, backendAuthenticationConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackendAuthenticationConfigRequest actualRequest = + ((CreateBackendAuthenticationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + backendAuthenticationConfig, actualRequest.getBackendAuthenticationConfig()); + Assert.assertEquals( + backendAuthenticationConfigId, actualRequest.getBackendAuthenticationConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackendAuthenticationConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + String backendAuthenticationConfigId = "backendAuthenticationConfigId-396698039"; + client + .createBackendAuthenticationConfigAsync( + parent, backendAuthenticationConfig, backendAuthenticationConfigId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateBackendAuthenticationConfigTest() throws Exception { + BackendAuthenticationConfig expectedResponse = + BackendAuthenticationConfig.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setClientCertificate("clientCertificate592328908") + .setTrustConfig("trustConfig515541946") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackendAuthenticationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + BackendAuthenticationConfig actualResponse = + client + .updateBackendAuthenticationConfigAsync(backendAuthenticationConfig, updateMask) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBackendAuthenticationConfigRequest actualRequest = + ((UpdateBackendAuthenticationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + backendAuthenticationConfig, actualRequest.getBackendAuthenticationConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBackendAuthenticationConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackendAuthenticationConfigAsync(backendAuthenticationConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBackendAuthenticationConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackendAuthenticationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + BackendAuthenticationConfigName name = + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"); + + client.deleteBackendAuthenticationConfigAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackendAuthenticationConfigRequest actualRequest = + ((DeleteBackendAuthenticationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackendAuthenticationConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + BackendAuthenticationConfigName name = + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"); + client.deleteBackendAuthenticationConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBackendAuthenticationConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackendAuthenticationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteBackendAuthenticationConfigAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackendAuthenticationConfigRequest actualRequest = + ((DeleteBackendAuthenticationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackendAuthenticationConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.deleteBackendAuthenticationConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listServerTlsPoliciesTest() throws Exception { ServerTlsPolicy responsesElement = ServerTlsPolicy.newBuilder().build(); ListServerTlsPoliciesResponse expectedResponse = ListServerTlsPoliciesResponse.newBuilder() .setNextPageToken("") - .addAllServerTlsPolicies(Arrays.asList(responsesElement)) + .addAllServerTlsPolicies(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListServerTlsPoliciesPagedResponse pagedListResponse = client.listServerTlsPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServerTlsPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServerTlsPoliciesRequest actualRequest = + ((ListServerTlsPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServerTlsPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listServerTlsPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServerTlsPoliciesTest2() throws Exception { + ServerTlsPolicy responsesElement = ServerTlsPolicy.newBuilder().build(); + ListServerTlsPoliciesResponse expectedResponse = + ListServerTlsPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllServerTlsPolicies(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListServerTlsPoliciesPagedResponse pagedListResponse = client.listServerTlsPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServerTlsPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServerTlsPoliciesRequest actualRequest = + ((ListServerTlsPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServerTlsPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + client.listServerTlsPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServerTlsPolicyTest() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + ServerTlsPolicyName name = + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + + ServerTlsPolicy actualResponse = client.getServerTlsPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServerTlsPolicyRequest actualRequest = ((GetServerTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServerTlsPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + ServerTlsPolicyName name = + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + client.getServerTlsPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServerTlsPolicyTest2() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String name = "name3373707"; + + ServerTlsPolicy actualResponse = client.getServerTlsPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServerTlsPolicyRequest actualRequest = ((GetServerTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServerTlsPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.getServerTlsPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServerTlsPolicyTest() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + + ServerTlsPolicy actualResponse = + client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServerTlsPolicyRequest actualRequest = + ((CreateServerTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(serverTlsPolicy, actualRequest.getServerTlsPolicy()); + Assert.assertEquals(serverTlsPolicyId, actualRequest.getServerTlsPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServerTlsPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createServerTlsPolicyTest2() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String parent = "parent-995424086"; + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + + ServerTlsPolicy actualResponse = + client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServerTlsPolicyRequest actualRequest = + ((CreateServerTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(serverTlsPolicy, actualRequest.getServerTlsPolicy()); + Assert.assertEquals(serverTlsPolicyId, actualRequest.getServerTlsPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServerTlsPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateServerTlsPolicyTest() throws Exception { + ServerTlsPolicy expectedResponse = + ServerTlsPolicy.newBuilder() + .setName( + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAllowOpen(true) + .setServerCertificate(CertificateProvider.newBuilder().build()) + .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ServerTlsPolicy actualResponse = + client.updateServerTlsPolicyAsync(serverTlsPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateServerTlsPolicyRequest actualRequest = + ((UpdateServerTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(serverTlsPolicy, actualRequest.getServerTlsPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateServerTlsPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateServerTlsPolicyAsync(serverTlsPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteServerTlsPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + ServerTlsPolicyName name = + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + + client.deleteServerTlsPolicyAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteServerTlsPolicyRequest actualRequest = + ((DeleteServerTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteServerTlsPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + ServerTlsPolicyName name = + ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + client.deleteServerTlsPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteServerTlsPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServerTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteServerTlsPolicyAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteServerTlsPolicyRequest actualRequest = + ((DeleteServerTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteServerTlsPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.deleteServerTlsPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listClientTlsPoliciesTest() throws Exception { + ClientTlsPolicy responsesElement = ClientTlsPolicy.newBuilder().build(); + ListClientTlsPoliciesResponse expectedResponse = + ListClientTlsPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllClientTlsPolicies(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListClientTlsPoliciesPagedResponse pagedListResponse = client.listClientTlsPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClientTlsPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListClientTlsPoliciesRequest actualRequest = + ((ListClientTlsPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listClientTlsPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listClientTlsPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listClientTlsPoliciesTest2() throws Exception { + ClientTlsPolicy responsesElement = ClientTlsPolicy.newBuilder().build(); + ListClientTlsPoliciesResponse expectedResponse = + ListClientTlsPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllClientTlsPolicies(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListClientTlsPoliciesPagedResponse pagedListResponse = client.listClientTlsPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClientTlsPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListClientTlsPoliciesRequest actualRequest = + ((ListClientTlsPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listClientTlsPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + client.listClientTlsPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClientTlsPolicyTest() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + ClientTlsPolicyName name = + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + + ClientTlsPolicy actualResponse = client.getClientTlsPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClientTlsPolicyRequest actualRequest = ((GetClientTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClientTlsPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + ClientTlsPolicyName name = + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + client.getClientTlsPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClientTlsPolicyTest2() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String name = "name3373707"; + + ClientTlsPolicy actualResponse = client.getClientTlsPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClientTlsPolicyRequest actualRequest = ((GetClientTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClientTlsPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.getClientTlsPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClientTlsPolicyTest() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + + ClientTlsPolicy actualResponse = + client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClientTlsPolicyRequest actualRequest = + ((CreateClientTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(clientTlsPolicy, actualRequest.getClientTlsPolicy()); + Assert.assertEquals(clientTlsPolicyId, actualRequest.getClientTlsPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createClientTlsPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createClientTlsPolicyTest2() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String parent = "parent-995424086"; + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + + ClientTlsPolicy actualResponse = + client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClientTlsPolicyRequest actualRequest = + ((CreateClientTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(clientTlsPolicy, actualRequest.getClientTlsPolicy()); + Assert.assertEquals(clientTlsPolicyId, actualRequest.getClientTlsPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createClientTlsPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateClientTlsPolicyTest() throws Exception { + ClientTlsPolicy expectedResponse = + ClientTlsPolicy.newBuilder() + .setName( + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSni("sni114030") + .setClientCertificate(CertificateProvider.newBuilder().build()) + .addAllServerValidationCa(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ClientTlsPolicy actualResponse = + client.updateClientTlsPolicyAsync(clientTlsPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateClientTlsPolicyRequest actualRequest = + ((UpdateClientTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(clientTlsPolicy, actualRequest.getClientTlsPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateClientTlsPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateClientTlsPolicyAsync(clientTlsPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteClientTlsPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + ClientTlsPolicyName name = + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + + client.deleteClientTlsPolicyAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteClientTlsPolicyRequest actualRequest = + ((DeleteClientTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteClientTlsPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + ClientTlsPolicyName name = + ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + client.deleteClientTlsPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteClientTlsPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClientTlsPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteClientTlsPolicyAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteClientTlsPolicyRequest actualRequest = + ((DeleteClientTlsPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteClientTlsPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.deleteClientTlsPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listGatewaySecurityPoliciesTest() throws Exception { + GatewaySecurityPolicy responsesElement = GatewaySecurityPolicy.newBuilder().build(); + ListGatewaySecurityPoliciesResponse expectedResponse = + ListGatewaySecurityPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllGatewaySecurityPolicies(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListGatewaySecurityPoliciesPagedResponse pagedListResponse = + client.listGatewaySecurityPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGatewaySecurityPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGatewaySecurityPoliciesRequest actualRequest = + ((ListGatewaySecurityPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGatewaySecurityPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listGatewaySecurityPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGatewaySecurityPoliciesTest2() throws Exception { + GatewaySecurityPolicy responsesElement = GatewaySecurityPolicy.newBuilder().build(); + ListGatewaySecurityPoliciesResponse expectedResponse = + ListGatewaySecurityPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllGatewaySecurityPolicies(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListGatewaySecurityPoliciesPagedResponse pagedListResponse = + client.listGatewaySecurityPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGatewaySecurityPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGatewaySecurityPoliciesRequest actualRequest = + ((ListGatewaySecurityPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGatewaySecurityPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + client.listGatewaySecurityPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGatewaySecurityPolicyTest() throws Exception { + GatewaySecurityPolicy expectedResponse = + GatewaySecurityPolicy.newBuilder() + .setName( + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + GatewaySecurityPolicyName name = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + + GatewaySecurityPolicy actualResponse = client.getGatewaySecurityPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGatewaySecurityPolicyRequest actualRequest = + ((GetGatewaySecurityPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGatewaySecurityPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + GatewaySecurityPolicyName name = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + client.getGatewaySecurityPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGatewaySecurityPolicyTest2() throws Exception { + GatewaySecurityPolicy expectedResponse = + GatewaySecurityPolicy.newBuilder() + .setName( + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String name = "name3373707"; + + GatewaySecurityPolicy actualResponse = client.getGatewaySecurityPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGatewaySecurityPolicyRequest actualRequest = + ((GetGatewaySecurityPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGatewaySecurityPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.getGatewaySecurityPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGatewaySecurityPolicyTest() throws Exception { + GatewaySecurityPolicy expectedResponse = + GatewaySecurityPolicy.newBuilder() + .setName( + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGatewaySecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + String gatewaySecurityPolicyId = "gatewaySecurityPolicyId2047625137"; + + GatewaySecurityPolicy actualResponse = + client + .createGatewaySecurityPolicyAsync( + parent, gatewaySecurityPolicy, gatewaySecurityPolicyId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGatewaySecurityPolicyRequest actualRequest = + ((CreateGatewaySecurityPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(gatewaySecurityPolicy, actualRequest.getGatewaySecurityPolicy()); + Assert.assertEquals(gatewaySecurityPolicyId, actualRequest.getGatewaySecurityPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGatewaySecurityPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + String gatewaySecurityPolicyId = "gatewaySecurityPolicyId2047625137"; + client + .createGatewaySecurityPolicyAsync(parent, gatewaySecurityPolicy, gatewaySecurityPolicyId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGatewaySecurityPolicyTest2() throws Exception { + GatewaySecurityPolicy expectedResponse = + GatewaySecurityPolicy.newBuilder() + .setName( + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGatewaySecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String parent = "parent-995424086"; + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + String gatewaySecurityPolicyId = "gatewaySecurityPolicyId2047625137"; + + GatewaySecurityPolicy actualResponse = + client + .createGatewaySecurityPolicyAsync( + parent, gatewaySecurityPolicy, gatewaySecurityPolicyId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGatewaySecurityPolicyRequest actualRequest = + ((CreateGatewaySecurityPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(gatewaySecurityPolicy, actualRequest.getGatewaySecurityPolicy()); + Assert.assertEquals(gatewaySecurityPolicyId, actualRequest.getGatewaySecurityPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGatewaySecurityPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + String gatewaySecurityPolicyId = "gatewaySecurityPolicyId2047625137"; + client + .createGatewaySecurityPolicyAsync(parent, gatewaySecurityPolicy, gatewaySecurityPolicyId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateGatewaySecurityPolicyTest() throws Exception { + GatewaySecurityPolicy expectedResponse = + GatewaySecurityPolicy.newBuilder() + .setName( + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .setTlsInspectionPolicy( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateGatewaySecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + GatewaySecurityPolicy actualResponse = + client.updateGatewaySecurityPolicyAsync(gatewaySecurityPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateGatewaySecurityPolicyRequest actualRequest = + ((UpdateGatewaySecurityPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(gatewaySecurityPolicy, actualRequest.getGatewaySecurityPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateGatewaySecurityPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGatewaySecurityPolicyAsync(gatewaySecurityPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGatewaySecurityPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGatewaySecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + GatewaySecurityPolicyName name = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + + client.deleteGatewaySecurityPolicyAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGatewaySecurityPolicyRequest actualRequest = + ((DeleteGatewaySecurityPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGatewaySecurityPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + GatewaySecurityPolicyName name = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + client.deleteGatewaySecurityPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGatewaySecurityPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGatewaySecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteGatewaySecurityPolicyAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGatewaySecurityPolicyRequest actualRequest = + ((DeleteGatewaySecurityPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGatewaySecurityPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.deleteGatewaySecurityPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listGatewaySecurityPolicyRulesTest() throws Exception { + GatewaySecurityPolicyRule responsesElement = GatewaySecurityPolicyRule.newBuilder().build(); + ListGatewaySecurityPolicyRulesResponse expectedResponse = + ListGatewaySecurityPolicyRulesResponse.newBuilder() + .setNextPageToken("") + .addAllGatewaySecurityPolicyRules(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + GatewaySecurityPolicyName parent = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + + ListGatewaySecurityPolicyRulesPagedResponse pagedListResponse = + client.listGatewaySecurityPolicyRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getGatewaySecurityPolicyRulesList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGatewaySecurityPolicyRulesRequest actualRequest = + ((ListGatewaySecurityPolicyRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGatewaySecurityPolicyRulesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + GatewaySecurityPolicyName parent = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + client.listGatewaySecurityPolicyRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGatewaySecurityPolicyRulesTest2() throws Exception { + GatewaySecurityPolicyRule responsesElement = GatewaySecurityPolicyRule.newBuilder().build(); + ListGatewaySecurityPolicyRulesResponse expectedResponse = + ListGatewaySecurityPolicyRulesResponse.newBuilder() + .setNextPageToken("") + .addAllGatewaySecurityPolicyRules(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListGatewaySecurityPolicyRulesPagedResponse pagedListResponse = + client.listGatewaySecurityPolicyRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getGatewaySecurityPolicyRulesList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGatewaySecurityPolicyRulesRequest actualRequest = + ((ListGatewaySecurityPolicyRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGatewaySecurityPolicyRulesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + client.listGatewaySecurityPolicyRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGatewaySecurityPolicyRuleTest() throws Exception { + GatewaySecurityPolicyRule expectedResponse = + GatewaySecurityPolicyRule.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnabled(true) + .setPriority(-1165461084) + .setDescription("description-1724546052") + .setSessionMatcher("sessionMatcher-1681872452") + .setApplicationMatcher("applicationMatcher1416724930") + .setTlsInspectionEnabled(true) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + GatewaySecurityPolicyRuleName name = + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"); + + GatewaySecurityPolicyRule actualResponse = client.getGatewaySecurityPolicyRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGatewaySecurityPolicyRuleRequest actualRequest = + ((GetGatewaySecurityPolicyRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGatewaySecurityPolicyRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + GatewaySecurityPolicyRuleName name = + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"); + client.getGatewaySecurityPolicyRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGatewaySecurityPolicyRuleTest2() throws Exception { + GatewaySecurityPolicyRule expectedResponse = + GatewaySecurityPolicyRule.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnabled(true) + .setPriority(-1165461084) + .setDescription("description-1724546052") + .setSessionMatcher("sessionMatcher-1681872452") + .setApplicationMatcher("applicationMatcher1416724930") + .setTlsInspectionEnabled(true) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String name = "name3373707"; + + GatewaySecurityPolicyRule actualResponse = client.getGatewaySecurityPolicyRule(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGatewaySecurityPolicyRuleRequest actualRequest = + ((GetGatewaySecurityPolicyRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGatewaySecurityPolicyRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.getGatewaySecurityPolicyRule(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGatewaySecurityPolicyRuleTest() throws Exception { + GatewaySecurityPolicyRule expectedResponse = + GatewaySecurityPolicyRule.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnabled(true) + .setPriority(-1165461084) + .setDescription("description-1724546052") + .setSessionMatcher("sessionMatcher-1681872452") + .setApplicationMatcher("applicationMatcher1416724930") + .setTlsInspectionEnabled(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGatewaySecurityPolicyRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + GatewaySecurityPolicyName parent = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + String gatewaySecurityPolicyRuleId = "gatewaySecurityPolicyRuleId-1764962099"; + + GatewaySecurityPolicyRule actualResponse = + client + .createGatewaySecurityPolicyRuleAsync( + parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGatewaySecurityPolicyRuleRequest actualRequest = + ((CreateGatewaySecurityPolicyRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(gatewaySecurityPolicyRule, actualRequest.getGatewaySecurityPolicyRule()); + Assert.assertEquals( + gatewaySecurityPolicyRuleId, actualRequest.getGatewaySecurityPolicyRuleId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGatewaySecurityPolicyRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + GatewaySecurityPolicyName parent = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + String gatewaySecurityPolicyRuleId = "gatewaySecurityPolicyRuleId-1764962099"; + client + .createGatewaySecurityPolicyRuleAsync( + parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createGatewaySecurityPolicyRuleTest2() throws Exception { + GatewaySecurityPolicyRule expectedResponse = + GatewaySecurityPolicyRule.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnabled(true) + .setPriority(-1165461084) + .setDescription("description-1724546052") + .setSessionMatcher("sessionMatcher-1681872452") + .setApplicationMatcher("applicationMatcher1416724930") + .setTlsInspectionEnabled(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGatewaySecurityPolicyRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String parent = "parent-995424086"; + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + String gatewaySecurityPolicyRuleId = "gatewaySecurityPolicyRuleId-1764962099"; + + GatewaySecurityPolicyRule actualResponse = + client + .createGatewaySecurityPolicyRuleAsync( + parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGatewaySecurityPolicyRuleRequest actualRequest = + ((CreateGatewaySecurityPolicyRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(gatewaySecurityPolicyRule, actualRequest.getGatewaySecurityPolicyRule()); + Assert.assertEquals( + gatewaySecurityPolicyRuleId, actualRequest.getGatewaySecurityPolicyRuleId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGatewaySecurityPolicyRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + String gatewaySecurityPolicyRuleId = "gatewaySecurityPolicyRuleId-1764962099"; + client + .createGatewaySecurityPolicyRuleAsync( + parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateGatewaySecurityPolicyRuleTest() throws Exception { + GatewaySecurityPolicyRule expectedResponse = + GatewaySecurityPolicyRule.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEnabled(true) + .setPriority(-1165461084) + .setDescription("description-1724546052") + .setSessionMatcher("sessionMatcher-1681872452") + .setApplicationMatcher("applicationMatcher1416724930") + .setTlsInspectionEnabled(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateGatewaySecurityPolicyRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + GatewaySecurityPolicyRule actualResponse = + client.updateGatewaySecurityPolicyRuleAsync(gatewaySecurityPolicyRule, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateGatewaySecurityPolicyRuleRequest actualRequest = + ((UpdateGatewaySecurityPolicyRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(gatewaySecurityPolicyRule, actualRequest.getGatewaySecurityPolicyRule()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateGatewaySecurityPolicyRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGatewaySecurityPolicyRuleAsync(gatewaySecurityPolicyRule, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGatewaySecurityPolicyRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGatewaySecurityPolicyRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + GatewaySecurityPolicyRuleName name = + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"); + + client.deleteGatewaySecurityPolicyRuleAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGatewaySecurityPolicyRuleRequest actualRequest = + ((DeleteGatewaySecurityPolicyRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGatewaySecurityPolicyRuleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + GatewaySecurityPolicyRuleName name = + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"); + client.deleteGatewaySecurityPolicyRuleAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteGatewaySecurityPolicyRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGatewaySecurityPolicyRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteGatewaySecurityPolicyRuleAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGatewaySecurityPolicyRuleRequest actualRequest = + ((DeleteGatewaySecurityPolicyRuleRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGatewaySecurityPolicyRuleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.deleteGatewaySecurityPolicyRuleAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listUrlListsTest() throws Exception { + UrlList responsesElement = UrlList.newBuilder().build(); + ListUrlListsResponse expectedResponse = + ListUrlListsResponse.newBuilder() + .setNextPageToken("") + .addAllUrlLists(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListUrlListsPagedResponse pagedListResponse = client.listUrlLists(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUrlListsList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUrlListsRequest actualRequest = ((ListUrlListsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUrlListsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listUrlLists(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUrlListsTest2() throws Exception { + UrlList responsesElement = UrlList.newBuilder().build(); + ListUrlListsResponse expectedResponse = + ListUrlListsResponse.newBuilder() + .setNextPageToken("") + .addAllUrlLists(Arrays.asList(responsesElement)) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListUrlListsPagedResponse pagedListResponse = client.listUrlLists(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUrlListsList().get(0), resources.get(0)); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUrlListsRequest actualRequest = ((ListUrlListsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUrlListsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + client.listUrlLists(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUrlListTest() throws Exception { + UrlList expectedResponse = + UrlList.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllValues(new ArrayList()) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + UrlListName name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]"); + + UrlList actualResponse = client.getUrlList(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUrlListRequest actualRequest = ((GetUrlListRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUrlListExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + UrlListName name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]"); + client.getUrlList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUrlListTest2() throws Exception { + UrlList expectedResponse = + UrlList.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllValues(new ArrayList()) + .build(); + mockNetworkSecurity.addResponse(expectedResponse); + + String name = "name3373707"; + + UrlList actualResponse = client.getUrlList(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUrlListRequest actualRequest = ((GetUrlListRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUrlListExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.getUrlList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUrlListTest() throws Exception { + UrlList expectedResponse = + UrlList.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllValues(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createUrlListTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UrlList urlList = UrlList.newBuilder().build(); + String urlListId = "urlListId-564417368"; + + UrlList actualResponse = client.createUrlListAsync(parent, urlList, urlListId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateUrlListRequest actualRequest = ((CreateUrlListRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(urlList, actualRequest.getUrlList()); + Assert.assertEquals(urlListId, actualRequest.getUrlListId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createUrlListExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UrlList urlList = UrlList.newBuilder().build(); + String urlListId = "urlListId-564417368"; + client.createUrlListAsync(parent, urlList, urlListId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createUrlListTest2() throws Exception { + UrlList expectedResponse = + UrlList.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllValues(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createUrlListTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String parent = "parent-995424086"; + UrlList urlList = UrlList.newBuilder().build(); + String urlListId = "urlListId-564417368"; + + UrlList actualResponse = client.createUrlListAsync(parent, urlList, urlListId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateUrlListRequest actualRequest = ((CreateUrlListRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(urlList, actualRequest.getUrlList()); + Assert.assertEquals(urlListId, actualRequest.getUrlListId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createUrlListExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String parent = "parent-995424086"; + UrlList urlList = UrlList.newBuilder().build(); + String urlListId = "urlListId-564417368"; + client.createUrlListAsync(parent, urlList, urlListId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateUrlListTest() throws Exception { + UrlList expectedResponse = + UrlList.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllValues(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateUrlListTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + UrlList urlList = UrlList.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UrlList actualResponse = client.updateUrlListAsync(urlList, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateUrlListRequest actualRequest = ((UpdateUrlListRequest) actualRequests.get(0)); + + Assert.assertEquals(urlList, actualRequest.getUrlList()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateUrlListExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + UrlList urlList = UrlList.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUrlListAsync(urlList, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteUrlListTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteUrlListTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + UrlListName name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]"); + + client.deleteUrlListAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteUrlListRequest actualRequest = ((DeleteUrlListRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteUrlListExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + UrlListName name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]"); + client.deleteUrlListAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteUrlListTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteUrlListTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkSecurity.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteUrlListAsync(name).get(); + + List actualRequests = mockNetworkSecurity.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteUrlListRequest actualRequest = ((DeleteUrlListRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteUrlListExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkSecurity.addException(exception); + + try { + String name = "name3373707"; + client.deleteUrlListAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listTlsInspectionPoliciesTest() throws Exception { + TlsInspectionPolicy responsesElement = TlsInspectionPolicy.newBuilder().build(); + ListTlsInspectionPoliciesResponse expectedResponse = + ListTlsInspectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllTlsInspectionPolicies(Arrays.asList(responsesElement)) .build(); mockNetworkSecurity.addResponse(expectedResponse); LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ListServerTlsPoliciesPagedResponse pagedListResponse = client.listServerTlsPolicies(parent); + ListTlsInspectionPoliciesPagedResponse pagedListResponse = + client.listTlsInspectionPolicies(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getServerTlsPoliciesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getTlsInspectionPoliciesList().get(0), resources.get(0)); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListServerTlsPoliciesRequest actualRequest = - ((ListServerTlsPoliciesRequest) actualRequests.get(0)); + ListTlsInspectionPoliciesRequest actualRequest = + ((ListTlsInspectionPoliciesRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -602,13 +3415,13 @@ public void listServerTlsPoliciesTest() throws Exception { } @Test - public void listServerTlsPoliciesExceptionTest() throws Exception { + public void listTlsInspectionPoliciesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listServerTlsPolicies(parent); + client.listTlsInspectionPolicies(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -616,28 +3429,29 @@ public void listServerTlsPoliciesExceptionTest() throws Exception { } @Test - public void listServerTlsPoliciesTest2() throws Exception { - ServerTlsPolicy responsesElement = ServerTlsPolicy.newBuilder().build(); - ListServerTlsPoliciesResponse expectedResponse = - ListServerTlsPoliciesResponse.newBuilder() + public void listTlsInspectionPoliciesTest2() throws Exception { + TlsInspectionPolicy responsesElement = TlsInspectionPolicy.newBuilder().build(); + ListTlsInspectionPoliciesResponse expectedResponse = + ListTlsInspectionPoliciesResponse.newBuilder() .setNextPageToken("") - .addAllServerTlsPolicies(Arrays.asList(responsesElement)) + .addAllTlsInspectionPolicies(Arrays.asList(responsesElement)) .build(); mockNetworkSecurity.addResponse(expectedResponse); String parent = "parent-995424086"; - ListServerTlsPoliciesPagedResponse pagedListResponse = client.listServerTlsPolicies(parent); + ListTlsInspectionPoliciesPagedResponse pagedListResponse = + client.listTlsInspectionPolicies(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getServerTlsPoliciesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getTlsInspectionPoliciesList().get(0), resources.get(0)); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListServerTlsPoliciesRequest actualRequest = - ((ListServerTlsPoliciesRequest) actualRequests.get(0)); + ListTlsInspectionPoliciesRequest actualRequest = + ((ListTlsInspectionPoliciesRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -647,13 +3461,13 @@ public void listServerTlsPoliciesTest2() throws Exception { } @Test - public void listServerTlsPoliciesExceptionTest2() throws Exception { + public void listTlsInspectionPoliciesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { String parent = "parent-995424086"; - client.listServerTlsPolicies(parent); + client.listTlsInspectionPolicies(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -661,30 +3475,32 @@ public void listServerTlsPoliciesExceptionTest2() throws Exception { } @Test - public void getServerTlsPolicyTest() throws Exception { - ServerTlsPolicy expectedResponse = - ServerTlsPolicy.newBuilder() + public void getTlsInspectionPolicyTest() throws Exception { + TlsInspectionPolicy expectedResponse = + TlsInspectionPolicy.newBuilder() .setName( - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setAllowOpen(true) - .setServerCertificate(CertificateProvider.newBuilder().build()) - .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .setCaPool("caPool-1368606310") + .setTrustConfig("trustConfig515541946") + .setExcludePublicCaSet(true) + .addAllCustomTlsFeatures(new ArrayList()) .build(); mockNetworkSecurity.addResponse(expectedResponse); - ServerTlsPolicyName name = - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + TlsInspectionPolicyName name = + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"); - ServerTlsPolicy actualResponse = client.getServerTlsPolicy(name); + TlsInspectionPolicy actualResponse = client.getTlsInspectionPolicy(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetServerTlsPolicyRequest actualRequest = ((GetServerTlsPolicyRequest) actualRequests.get(0)); + GetTlsInspectionPolicyRequest actualRequest = + ((GetTlsInspectionPolicyRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -694,14 +3510,14 @@ public void getServerTlsPolicyTest() throws Exception { } @Test - public void getServerTlsPolicyExceptionTest() throws Exception { + public void getTlsInspectionPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { - ServerTlsPolicyName name = - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); - client.getServerTlsPolicy(name); + TlsInspectionPolicyName name = + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"); + client.getTlsInspectionPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -709,29 +3525,31 @@ public void getServerTlsPolicyExceptionTest() throws Exception { } @Test - public void getServerTlsPolicyTest2() throws Exception { - ServerTlsPolicy expectedResponse = - ServerTlsPolicy.newBuilder() + public void getTlsInspectionPolicyTest2() throws Exception { + TlsInspectionPolicy expectedResponse = + TlsInspectionPolicy.newBuilder() .setName( - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setAllowOpen(true) - .setServerCertificate(CertificateProvider.newBuilder().build()) - .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .setCaPool("caPool-1368606310") + .setTrustConfig("trustConfig515541946") + .setExcludePublicCaSet(true) + .addAllCustomTlsFeatures(new ArrayList()) .build(); mockNetworkSecurity.addResponse(expectedResponse); String name = "name3373707"; - ServerTlsPolicy actualResponse = client.getServerTlsPolicy(name); + TlsInspectionPolicy actualResponse = client.getTlsInspectionPolicy(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetServerTlsPolicyRequest actualRequest = ((GetServerTlsPolicyRequest) actualRequests.get(0)); + GetTlsInspectionPolicyRequest actualRequest = + ((GetTlsInspectionPolicyRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -741,13 +3559,13 @@ public void getServerTlsPolicyTest2() throws Exception { } @Test - public void getServerTlsPolicyExceptionTest2() throws Exception { + public void getTlsInspectionPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { String name = "name3373707"; - client.getServerTlsPolicy(name); + client.getTlsInspectionPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -755,43 +3573,46 @@ public void getServerTlsPolicyExceptionTest2() throws Exception { } @Test - public void createServerTlsPolicyTest() throws Exception { - ServerTlsPolicy expectedResponse = - ServerTlsPolicy.newBuilder() + public void createTlsInspectionPolicyTest() throws Exception { + TlsInspectionPolicy expectedResponse = + TlsInspectionPolicy.newBuilder() .setName( - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setAllowOpen(true) - .setServerCertificate(CertificateProvider.newBuilder().build()) - .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .setCaPool("caPool-1368606310") + .setTrustConfig("trustConfig515541946") + .setExcludePublicCaSet(true) + .addAllCustomTlsFeatures(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createServerTlsPolicyTest") + .setName("createTlsInspectionPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockNetworkSecurity.addResponse(resultOperation); LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); - String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + String tlsInspectionPolicyId = "tlsInspectionPolicyId-647545892"; - ServerTlsPolicy actualResponse = - client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + TlsInspectionPolicy actualResponse = + client + .createTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateServerTlsPolicyRequest actualRequest = - ((CreateServerTlsPolicyRequest) actualRequests.get(0)); + CreateTlsInspectionPolicyRequest actualRequest = + ((CreateTlsInspectionPolicyRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(serverTlsPolicy, actualRequest.getServerTlsPolicy()); - Assert.assertEquals(serverTlsPolicyId, actualRequest.getServerTlsPolicyId()); + Assert.assertEquals(tlsInspectionPolicy, actualRequest.getTlsInspectionPolicy()); + Assert.assertEquals(tlsInspectionPolicyId, actualRequest.getTlsInspectionPolicyId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -799,15 +3620,17 @@ public void createServerTlsPolicyTest() throws Exception { } @Test - public void createServerTlsPolicyExceptionTest() throws Exception { + public void createTlsInspectionPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); - String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; - client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + String tlsInspectionPolicyId = "tlsInspectionPolicyId-647545892"; + client + .createTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId) + .get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -817,43 +3640,46 @@ public void createServerTlsPolicyExceptionTest() throws Exception { } @Test - public void createServerTlsPolicyTest2() throws Exception { - ServerTlsPolicy expectedResponse = - ServerTlsPolicy.newBuilder() + public void createTlsInspectionPolicyTest2() throws Exception { + TlsInspectionPolicy expectedResponse = + TlsInspectionPolicy.newBuilder() .setName( - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setAllowOpen(true) - .setServerCertificate(CertificateProvider.newBuilder().build()) - .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .setCaPool("caPool-1368606310") + .setTrustConfig("trustConfig515541946") + .setExcludePublicCaSet(true) + .addAllCustomTlsFeatures(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createServerTlsPolicyTest") + .setName("createTlsInspectionPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockNetworkSecurity.addResponse(resultOperation); String parent = "parent-995424086"; - ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); - String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + String tlsInspectionPolicyId = "tlsInspectionPolicyId-647545892"; - ServerTlsPolicy actualResponse = - client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + TlsInspectionPolicy actualResponse = + client + .createTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateServerTlsPolicyRequest actualRequest = - ((CreateServerTlsPolicyRequest) actualRequests.get(0)); + CreateTlsInspectionPolicyRequest actualRequest = + ((CreateTlsInspectionPolicyRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(serverTlsPolicy, actualRequest.getServerTlsPolicy()); - Assert.assertEquals(serverTlsPolicyId, actualRequest.getServerTlsPolicyId()); + Assert.assertEquals(tlsInspectionPolicy, actualRequest.getTlsInspectionPolicy()); + Assert.assertEquals(tlsInspectionPolicyId, actualRequest.getTlsInspectionPolicyId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -861,15 +3687,17 @@ public void createServerTlsPolicyTest2() throws Exception { } @Test - public void createServerTlsPolicyExceptionTest2() throws Exception { + public void createTlsInspectionPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { String parent = "parent-995424086"; - ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); - String serverTlsPolicyId = "serverTlsPolicyId-1966046011"; - client.createServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId).get(); + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + String tlsInspectionPolicyId = "tlsInspectionPolicyId-647545892"; + client + .createTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId) + .get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -879,40 +3707,41 @@ public void createServerTlsPolicyExceptionTest2() throws Exception { } @Test - public void updateServerTlsPolicyTest() throws Exception { - ServerTlsPolicy expectedResponse = - ServerTlsPolicy.newBuilder() + public void updateTlsInspectionPolicyTest() throws Exception { + TlsInspectionPolicy expectedResponse = + TlsInspectionPolicy.newBuilder() .setName( - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]").toString()) + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) .setDescription("description-1724546052") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setAllowOpen(true) - .setServerCertificate(CertificateProvider.newBuilder().build()) - .setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.newBuilder().build()) + .setCaPool("caPool-1368606310") + .setTrustConfig("trustConfig515541946") + .setExcludePublicCaSet(true) + .addAllCustomTlsFeatures(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("updateServerTlsPolicyTest") + .setName("updateTlsInspectionPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockNetworkSecurity.addResponse(resultOperation); - ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - ServerTlsPolicy actualResponse = - client.updateServerTlsPolicyAsync(serverTlsPolicy, updateMask).get(); + TlsInspectionPolicy actualResponse = + client.updateTlsInspectionPolicyAsync(tlsInspectionPolicy, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateServerTlsPolicyRequest actualRequest = - ((UpdateServerTlsPolicyRequest) actualRequests.get(0)); + UpdateTlsInspectionPolicyRequest actualRequest = + ((UpdateTlsInspectionPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(serverTlsPolicy, actualRequest.getServerTlsPolicy()); + Assert.assertEquals(tlsInspectionPolicy, actualRequest.getTlsInspectionPolicy()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -921,14 +3750,14 @@ public void updateServerTlsPolicyTest() throws Exception { } @Test - public void updateServerTlsPolicyExceptionTest() throws Exception { + public void updateTlsInspectionPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { - ServerTlsPolicy serverTlsPolicy = ServerTlsPolicy.newBuilder().build(); + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateServerTlsPolicyAsync(serverTlsPolicy, updateMask).get(); + client.updateTlsInspectionPolicyAsync(tlsInspectionPolicy, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -938,25 +3767,25 @@ public void updateServerTlsPolicyExceptionTest() throws Exception { } @Test - public void deleteServerTlsPolicyTest() throws Exception { + public void deleteTlsInspectionPolicyTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteServerTlsPolicyTest") + .setName("deleteTlsInspectionPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockNetworkSecurity.addResponse(resultOperation); - ServerTlsPolicyName name = - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); + TlsInspectionPolicyName name = + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"); - client.deleteServerTlsPolicyAsync(name).get(); + client.deleteTlsInspectionPolicyAsync(name).get(); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteServerTlsPolicyRequest actualRequest = - ((DeleteServerTlsPolicyRequest) actualRequests.get(0)); + DeleteTlsInspectionPolicyRequest actualRequest = + ((DeleteTlsInspectionPolicyRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -966,14 +3795,14 @@ public void deleteServerTlsPolicyTest() throws Exception { } @Test - public void deleteServerTlsPolicyExceptionTest() throws Exception { + public void deleteTlsInspectionPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { - ServerTlsPolicyName name = - ServerTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"); - client.deleteServerTlsPolicyAsync(name).get(); + TlsInspectionPolicyName name = + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"); + client.deleteTlsInspectionPolicyAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -983,11 +3812,11 @@ public void deleteServerTlsPolicyExceptionTest() throws Exception { } @Test - public void deleteServerTlsPolicyTest2() throws Exception { + public void deleteTlsInspectionPolicyTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteServerTlsPolicyTest") + .setName("deleteTlsInspectionPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); @@ -995,12 +3824,12 @@ public void deleteServerTlsPolicyTest2() throws Exception { String name = "name3373707"; - client.deleteServerTlsPolicyAsync(name).get(); + client.deleteTlsInspectionPolicyAsync(name).get(); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteServerTlsPolicyRequest actualRequest = - ((DeleteServerTlsPolicyRequest) actualRequests.get(0)); + DeleteTlsInspectionPolicyRequest actualRequest = + ((DeleteTlsInspectionPolicyRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1010,13 +3839,13 @@ public void deleteServerTlsPolicyTest2() throws Exception { } @Test - public void deleteServerTlsPolicyExceptionTest2() throws Exception { + public void deleteTlsInspectionPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { String name = "name3373707"; - client.deleteServerTlsPolicyAsync(name).get(); + client.deleteTlsInspectionPolicyAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1026,28 +3855,27 @@ public void deleteServerTlsPolicyExceptionTest2() throws Exception { } @Test - public void listClientTlsPoliciesTest() throws Exception { - ClientTlsPolicy responsesElement = ClientTlsPolicy.newBuilder().build(); - ListClientTlsPoliciesResponse expectedResponse = - ListClientTlsPoliciesResponse.newBuilder() + public void listAuthzPoliciesTest() throws Exception { + AuthzPolicy responsesElement = AuthzPolicy.newBuilder().build(); + ListAuthzPoliciesResponse expectedResponse = + ListAuthzPoliciesResponse.newBuilder() .setNextPageToken("") - .addAllClientTlsPolicies(Arrays.asList(responsesElement)) + .addAllAuthzPolicies(Arrays.asList(responsesElement)) .build(); mockNetworkSecurity.addResponse(expectedResponse); LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ListClientTlsPoliciesPagedResponse pagedListResponse = client.listClientTlsPolicies(parent); + ListAuthzPoliciesPagedResponse pagedListResponse = client.listAuthzPolicies(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClientTlsPoliciesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getAuthzPoliciesList().get(0), resources.get(0)); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListClientTlsPoliciesRequest actualRequest = - ((ListClientTlsPoliciesRequest) actualRequests.get(0)); + ListAuthzPoliciesRequest actualRequest = ((ListAuthzPoliciesRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -1057,13 +3885,13 @@ public void listClientTlsPoliciesTest() throws Exception { } @Test - public void listClientTlsPoliciesExceptionTest() throws Exception { + public void listAuthzPoliciesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listClientTlsPolicies(parent); + client.listAuthzPolicies(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1071,28 +3899,27 @@ public void listClientTlsPoliciesExceptionTest() throws Exception { } @Test - public void listClientTlsPoliciesTest2() throws Exception { - ClientTlsPolicy responsesElement = ClientTlsPolicy.newBuilder().build(); - ListClientTlsPoliciesResponse expectedResponse = - ListClientTlsPoliciesResponse.newBuilder() + public void listAuthzPoliciesTest2() throws Exception { + AuthzPolicy responsesElement = AuthzPolicy.newBuilder().build(); + ListAuthzPoliciesResponse expectedResponse = + ListAuthzPoliciesResponse.newBuilder() .setNextPageToken("") - .addAllClientTlsPolicies(Arrays.asList(responsesElement)) + .addAllAuthzPolicies(Arrays.asList(responsesElement)) .build(); mockNetworkSecurity.addResponse(expectedResponse); String parent = "parent-995424086"; - ListClientTlsPoliciesPagedResponse pagedListResponse = client.listClientTlsPolicies(parent); + ListAuthzPoliciesPagedResponse pagedListResponse = client.listAuthzPolicies(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClientTlsPoliciesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getAuthzPoliciesList().get(0), resources.get(0)); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListClientTlsPoliciesRequest actualRequest = - ((ListClientTlsPoliciesRequest) actualRequests.get(0)); + ListAuthzPoliciesRequest actualRequest = ((ListAuthzPoliciesRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -1102,13 +3929,13 @@ public void listClientTlsPoliciesTest2() throws Exception { } @Test - public void listClientTlsPoliciesExceptionTest2() throws Exception { + public void listAuthzPoliciesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { String parent = "parent-995424086"; - client.listClientTlsPolicies(parent); + client.listAuthzPolicies(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1116,30 +3943,28 @@ public void listClientTlsPoliciesExceptionTest2() throws Exception { } @Test - public void getClientTlsPolicyTest() throws Exception { - ClientTlsPolicy expectedResponse = - ClientTlsPolicy.newBuilder() - .setName( - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) - .setDescription("description-1724546052") + public void getAuthzPolicyTest() throws Exception { + AuthzPolicy expectedResponse = + AuthzPolicy.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") .putAllLabels(new HashMap()) - .setSni("sni114030") - .setClientCertificate(CertificateProvider.newBuilder().build()) - .addAllServerValidationCa(new ArrayList()) + .setTarget(AuthzPolicy.Target.newBuilder().build()) + .addAllHttpRules(new ArrayList()) + .setCustomProvider(AuthzPolicy.CustomProvider.newBuilder().build()) .build(); mockNetworkSecurity.addResponse(expectedResponse); - ClientTlsPolicyName name = - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + AuthzPolicyName name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"); - ClientTlsPolicy actualResponse = client.getClientTlsPolicy(name); + AuthzPolicy actualResponse = client.getAuthzPolicy(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetClientTlsPolicyRequest actualRequest = ((GetClientTlsPolicyRequest) actualRequests.get(0)); + GetAuthzPolicyRequest actualRequest = ((GetAuthzPolicyRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1149,14 +3974,13 @@ public void getClientTlsPolicyTest() throws Exception { } @Test - public void getClientTlsPolicyExceptionTest() throws Exception { + public void getAuthzPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { - ClientTlsPolicyName name = - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); - client.getClientTlsPolicy(name); + AuthzPolicyName name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"); + client.getAuthzPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1164,29 +3988,28 @@ public void getClientTlsPolicyExceptionTest() throws Exception { } @Test - public void getClientTlsPolicyTest2() throws Exception { - ClientTlsPolicy expectedResponse = - ClientTlsPolicy.newBuilder() - .setName( - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) - .setDescription("description-1724546052") + public void getAuthzPolicyTest2() throws Exception { + AuthzPolicy expectedResponse = + AuthzPolicy.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") .putAllLabels(new HashMap()) - .setSni("sni114030") - .setClientCertificate(CertificateProvider.newBuilder().build()) - .addAllServerValidationCa(new ArrayList()) + .setTarget(AuthzPolicy.Target.newBuilder().build()) + .addAllHttpRules(new ArrayList()) + .setCustomProvider(AuthzPolicy.CustomProvider.newBuilder().build()) .build(); mockNetworkSecurity.addResponse(expectedResponse); String name = "name3373707"; - ClientTlsPolicy actualResponse = client.getClientTlsPolicy(name); + AuthzPolicy actualResponse = client.getAuthzPolicy(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetClientTlsPolicyRequest actualRequest = ((GetClientTlsPolicyRequest) actualRequests.get(0)); + GetAuthzPolicyRequest actualRequest = ((GetAuthzPolicyRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1196,13 +4019,13 @@ public void getClientTlsPolicyTest2() throws Exception { } @Test - public void getClientTlsPolicyExceptionTest2() throws Exception { + public void getAuthzPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { String name = "name3373707"; - client.getClientTlsPolicy(name); + client.getAuthzPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1210,43 +4033,41 @@ public void getClientTlsPolicyExceptionTest2() throws Exception { } @Test - public void createClientTlsPolicyTest() throws Exception { - ClientTlsPolicy expectedResponse = - ClientTlsPolicy.newBuilder() - .setName( - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) - .setDescription("description-1724546052") + public void createAuthzPolicyTest() throws Exception { + AuthzPolicy expectedResponse = + AuthzPolicy.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") .putAllLabels(new HashMap()) - .setSni("sni114030") - .setClientCertificate(CertificateProvider.newBuilder().build()) - .addAllServerValidationCa(new ArrayList()) + .setTarget(AuthzPolicy.Target.newBuilder().build()) + .addAllHttpRules(new ArrayList()) + .setCustomProvider(AuthzPolicy.CustomProvider.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createClientTlsPolicyTest") + .setName("createAuthzPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockNetworkSecurity.addResponse(resultOperation); LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); - String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + String authzPolicyId = "authzPolicyId1717400543"; - ClientTlsPolicy actualResponse = - client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + AuthzPolicy actualResponse = + client.createAuthzPolicyAsync(parent, authzPolicy, authzPolicyId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateClientTlsPolicyRequest actualRequest = - ((CreateClientTlsPolicyRequest) actualRequests.get(0)); + CreateAuthzPolicyRequest actualRequest = ((CreateAuthzPolicyRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(clientTlsPolicy, actualRequest.getClientTlsPolicy()); - Assert.assertEquals(clientTlsPolicyId, actualRequest.getClientTlsPolicyId()); + Assert.assertEquals(authzPolicy, actualRequest.getAuthzPolicy()); + Assert.assertEquals(authzPolicyId, actualRequest.getAuthzPolicyId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1254,15 +4075,15 @@ public void createClientTlsPolicyTest() throws Exception { } @Test - public void createClientTlsPolicyExceptionTest() throws Exception { + public void createAuthzPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); - String clientTlsPolicyId = "clientTlsPolicyId-188933315"; - client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + String authzPolicyId = "authzPolicyId1717400543"; + client.createAuthzPolicyAsync(parent, authzPolicy, authzPolicyId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1272,43 +4093,41 @@ public void createClientTlsPolicyExceptionTest() throws Exception { } @Test - public void createClientTlsPolicyTest2() throws Exception { - ClientTlsPolicy expectedResponse = - ClientTlsPolicy.newBuilder() - .setName( - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) - .setDescription("description-1724546052") + public void createAuthzPolicyTest2() throws Exception { + AuthzPolicy expectedResponse = + AuthzPolicy.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") .putAllLabels(new HashMap()) - .setSni("sni114030") - .setClientCertificate(CertificateProvider.newBuilder().build()) - .addAllServerValidationCa(new ArrayList()) + .setTarget(AuthzPolicy.Target.newBuilder().build()) + .addAllHttpRules(new ArrayList()) + .setCustomProvider(AuthzPolicy.CustomProvider.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("createClientTlsPolicyTest") + .setName("createAuthzPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockNetworkSecurity.addResponse(resultOperation); String parent = "parent-995424086"; - ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); - String clientTlsPolicyId = "clientTlsPolicyId-188933315"; + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + String authzPolicyId = "authzPolicyId1717400543"; - ClientTlsPolicy actualResponse = - client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + AuthzPolicy actualResponse = + client.createAuthzPolicyAsync(parent, authzPolicy, authzPolicyId).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateClientTlsPolicyRequest actualRequest = - ((CreateClientTlsPolicyRequest) actualRequests.get(0)); + CreateAuthzPolicyRequest actualRequest = ((CreateAuthzPolicyRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(clientTlsPolicy, actualRequest.getClientTlsPolicy()); - Assert.assertEquals(clientTlsPolicyId, actualRequest.getClientTlsPolicyId()); + Assert.assertEquals(authzPolicy, actualRequest.getAuthzPolicy()); + Assert.assertEquals(authzPolicyId, actualRequest.getAuthzPolicyId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1316,15 +4135,15 @@ public void createClientTlsPolicyTest2() throws Exception { } @Test - public void createClientTlsPolicyExceptionTest2() throws Exception { + public void createAuthzPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { String parent = "parent-995424086"; - ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); - String clientTlsPolicyId = "clientTlsPolicyId-188933315"; - client.createClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId).get(); + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + String authzPolicyId = "authzPolicyId1717400543"; + client.createAuthzPolicyAsync(parent, authzPolicy, authzPolicyId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1334,40 +4153,37 @@ public void createClientTlsPolicyExceptionTest2() throws Exception { } @Test - public void updateClientTlsPolicyTest() throws Exception { - ClientTlsPolicy expectedResponse = - ClientTlsPolicy.newBuilder() - .setName( - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]").toString()) - .setDescription("description-1724546052") + public void updateAuthzPolicyTest() throws Exception { + AuthzPolicy expectedResponse = + AuthzPolicy.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") .putAllLabels(new HashMap()) - .setSni("sni114030") - .setClientCertificate(CertificateProvider.newBuilder().build()) - .addAllServerValidationCa(new ArrayList()) + .setTarget(AuthzPolicy.Target.newBuilder().build()) + .addAllHttpRules(new ArrayList()) + .setCustomProvider(AuthzPolicy.CustomProvider.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() - .setName("updateClientTlsPolicyTest") + .setName("updateAuthzPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockNetworkSecurity.addResponse(resultOperation); - ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - ClientTlsPolicy actualResponse = - client.updateClientTlsPolicyAsync(clientTlsPolicy, updateMask).get(); + AuthzPolicy actualResponse = client.updateAuthzPolicyAsync(authzPolicy, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateClientTlsPolicyRequest actualRequest = - ((UpdateClientTlsPolicyRequest) actualRequests.get(0)); + UpdateAuthzPolicyRequest actualRequest = ((UpdateAuthzPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(clientTlsPolicy, actualRequest.getClientTlsPolicy()); + Assert.assertEquals(authzPolicy, actualRequest.getAuthzPolicy()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1376,14 +4192,14 @@ public void updateClientTlsPolicyTest() throws Exception { } @Test - public void updateClientTlsPolicyExceptionTest() throws Exception { + public void updateAuthzPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { - ClientTlsPolicy clientTlsPolicy = ClientTlsPolicy.newBuilder().build(); + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateClientTlsPolicyAsync(clientTlsPolicy, updateMask).get(); + client.updateAuthzPolicyAsync(authzPolicy, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1393,25 +4209,23 @@ public void updateClientTlsPolicyExceptionTest() throws Exception { } @Test - public void deleteClientTlsPolicyTest() throws Exception { + public void deleteAuthzPolicyTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteClientTlsPolicyTest") + .setName("deleteAuthzPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockNetworkSecurity.addResponse(resultOperation); - ClientTlsPolicyName name = - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); + AuthzPolicyName name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"); - client.deleteClientTlsPolicyAsync(name).get(); + client.deleteAuthzPolicyAsync(name).get(); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteClientTlsPolicyRequest actualRequest = - ((DeleteClientTlsPolicyRequest) actualRequests.get(0)); + DeleteAuthzPolicyRequest actualRequest = ((DeleteAuthzPolicyRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1421,14 +4235,13 @@ public void deleteClientTlsPolicyTest() throws Exception { } @Test - public void deleteClientTlsPolicyExceptionTest() throws Exception { + public void deleteAuthzPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { - ClientTlsPolicyName name = - ClientTlsPolicyName.of("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"); - client.deleteClientTlsPolicyAsync(name).get(); + AuthzPolicyName name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"); + client.deleteAuthzPolicyAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1438,11 +4251,11 @@ public void deleteClientTlsPolicyExceptionTest() throws Exception { } @Test - public void deleteClientTlsPolicyTest2() throws Exception { + public void deleteAuthzPolicyTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("deleteClientTlsPolicyTest") + .setName("deleteAuthzPolicyTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); @@ -1450,12 +4263,11 @@ public void deleteClientTlsPolicyTest2() throws Exception { String name = "name3373707"; - client.deleteClientTlsPolicyAsync(name).get(); + client.deleteAuthzPolicyAsync(name).get(); List actualRequests = mockNetworkSecurity.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteClientTlsPolicyRequest actualRequest = - ((DeleteClientTlsPolicyRequest) actualRequests.get(0)); + DeleteAuthzPolicyRequest actualRequest = ((DeleteAuthzPolicyRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1465,13 +4277,13 @@ public void deleteClientTlsPolicyTest2() throws Exception { } @Test - public void deleteClientTlsPolicyExceptionTest2() throws Exception { + public void deleteAuthzPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockNetworkSecurity.addException(exception); try { String name = "name3373707"; - client.deleteClientTlsPolicyAsync(name).get(); + client.deleteAuthzPolicyAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClientTest.java new file mode 100644 index 000000000000..a16e6114acfe --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClientTest.java @@ -0,0 +1,1651 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfileGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient.ListSecurityProfilesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OrganizationSecurityProfileGroupServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockOrganizationSecurityProfileGroupService + mockOrganizationSecurityProfileGroupService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private OrganizationSecurityProfileGroupServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockOrganizationSecurityProfileGroupService = new MockOrganizationSecurityProfileGroupService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockOrganizationSecurityProfileGroupService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + OrganizationSecurityProfileGroupServiceSettings settings = + OrganizationSecurityProfileGroupServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OrganizationSecurityProfileGroupServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listSecurityProfileGroupsTest() throws Exception { + SecurityProfileGroup responsesElement = SecurityProfileGroup.newBuilder().build(); + ListSecurityProfileGroupsResponse expectedResponse = + ListSecurityProfileGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityProfileGroups(Arrays.asList(responsesElement)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSecurityProfileGroupsPagedResponse pagedListResponse = + client.listSecurityProfileGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityProfileGroupsList().get(0), resources.get(0)); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityProfileGroupsRequest actualRequest = + ((ListSecurityProfileGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityProfileGroupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSecurityProfileGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityProfileGroupsTest2() throws Exception { + SecurityProfileGroup responsesElement = SecurityProfileGroup.newBuilder().build(); + ListSecurityProfileGroupsResponse expectedResponse = + ListSecurityProfileGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityProfileGroups(Arrays.asList(responsesElement)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListSecurityProfileGroupsPagedResponse pagedListResponse = + client.listSecurityProfileGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityProfileGroupsList().get(0), resources.get(0)); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityProfileGroupsRequest actualRequest = + ((ListSecurityProfileGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityProfileGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listSecurityProfileGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityProfileGroupsTest3() throws Exception { + SecurityProfileGroup responsesElement = SecurityProfileGroup.newBuilder().build(); + ListSecurityProfileGroupsResponse expectedResponse = + ListSecurityProfileGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityProfileGroups(Arrays.asList(responsesElement)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSecurityProfileGroupsPagedResponse pagedListResponse = + client.listSecurityProfileGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityProfileGroupsList().get(0), resources.get(0)); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityProfileGroupsRequest actualRequest = + ((ListSecurityProfileGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityProfileGroupsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSecurityProfileGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSecurityProfileGroupTest() throws Exception { + SecurityProfileGroup expectedResponse = + SecurityProfileGroup.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDataPathId(-1465603104) + .putAllLabels(new HashMap()) + .setThreatPreventionProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomMirroringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomInterceptProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setUrlFilteringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + SecurityProfileGroupName name = + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"); + + SecurityProfileGroup actualResponse = client.getSecurityProfileGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSecurityProfileGroupRequest actualRequest = + ((GetSecurityProfileGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSecurityProfileGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + SecurityProfileGroupName name = + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"); + client.getSecurityProfileGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSecurityProfileGroupTest2() throws Exception { + SecurityProfileGroup expectedResponse = + SecurityProfileGroup.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDataPathId(-1465603104) + .putAllLabels(new HashMap()) + .setThreatPreventionProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomMirroringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomInterceptProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setUrlFilteringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + String name = "name3373707"; + + SecurityProfileGroup actualResponse = client.getSecurityProfileGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSecurityProfileGroupRequest actualRequest = + ((GetSecurityProfileGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSecurityProfileGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + String name = "name3373707"; + client.getSecurityProfileGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSecurityProfileGroupTest() throws Exception { + SecurityProfileGroup expectedResponse = + SecurityProfileGroup.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDataPathId(-1465603104) + .putAllLabels(new HashMap()) + .setThreatPreventionProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomMirroringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomInterceptProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setUrlFilteringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSecurityProfileGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + + SecurityProfileGroup actualResponse = + client + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSecurityProfileGroupRequest actualRequest = + ((CreateSecurityProfileGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(securityProfileGroup, actualRequest.getSecurityProfileGroup()); + Assert.assertEquals(securityProfileGroupId, actualRequest.getSecurityProfileGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSecurityProfileGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + client + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createSecurityProfileGroupTest2() throws Exception { + SecurityProfileGroup expectedResponse = + SecurityProfileGroup.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDataPathId(-1465603104) + .putAllLabels(new HashMap()) + .setThreatPreventionProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomMirroringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomInterceptProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setUrlFilteringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSecurityProfileGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + + SecurityProfileGroup actualResponse = + client + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSecurityProfileGroupRequest actualRequest = + ((CreateSecurityProfileGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(securityProfileGroup, actualRequest.getSecurityProfileGroup()); + Assert.assertEquals(securityProfileGroupId, actualRequest.getSecurityProfileGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSecurityProfileGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + client + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createSecurityProfileGroupTest3() throws Exception { + SecurityProfileGroup expectedResponse = + SecurityProfileGroup.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDataPathId(-1465603104) + .putAllLabels(new HashMap()) + .setThreatPreventionProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomMirroringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomInterceptProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setUrlFilteringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSecurityProfileGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + String parent = "parent-995424086"; + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + + SecurityProfileGroup actualResponse = + client + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSecurityProfileGroupRequest actualRequest = + ((CreateSecurityProfileGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(securityProfileGroup, actualRequest.getSecurityProfileGroup()); + Assert.assertEquals(securityProfileGroupId, actualRequest.getSecurityProfileGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSecurityProfileGroupExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + String parent = "parent-995424086"; + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + client + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateSecurityProfileGroupTest() throws Exception { + SecurityProfileGroup expectedResponse = + SecurityProfileGroup.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDataPathId(-1465603104) + .putAllLabels(new HashMap()) + .setThreatPreventionProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomMirroringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setCustomInterceptProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setUrlFilteringProfile( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSecurityProfileGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SecurityProfileGroup actualResponse = + client.updateSecurityProfileGroupAsync(securityProfileGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSecurityProfileGroupRequest actualRequest = + ((UpdateSecurityProfileGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(securityProfileGroup, actualRequest.getSecurityProfileGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSecurityProfileGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSecurityProfileGroupAsync(securityProfileGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteSecurityProfileGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSecurityProfileGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + SecurityProfileGroupName name = + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"); + + client.deleteSecurityProfileGroupAsync(name).get(); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSecurityProfileGroupRequest actualRequest = + ((DeleteSecurityProfileGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSecurityProfileGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + SecurityProfileGroupName name = + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"); + client.deleteSecurityProfileGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteSecurityProfileGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSecurityProfileGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteSecurityProfileGroupAsync(name).get(); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSecurityProfileGroupRequest actualRequest = + ((DeleteSecurityProfileGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSecurityProfileGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSecurityProfileGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listSecurityProfilesTest() throws Exception { + SecurityProfile responsesElement = SecurityProfile.newBuilder().build(); + ListSecurityProfilesResponse expectedResponse = + ListSecurityProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityProfiles(Arrays.asList(responsesElement)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSecurityProfilesPagedResponse pagedListResponse = client.listSecurityProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityProfilesList().get(0), resources.get(0)); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityProfilesRequest actualRequest = + ((ListSecurityProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSecurityProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityProfilesTest2() throws Exception { + SecurityProfile responsesElement = SecurityProfile.newBuilder().build(); + ListSecurityProfilesResponse expectedResponse = + ListSecurityProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityProfiles(Arrays.asList(responsesElement)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListSecurityProfilesPagedResponse pagedListResponse = client.listSecurityProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityProfilesList().get(0), resources.get(0)); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityProfilesRequest actualRequest = + ((ListSecurityProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityProfilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listSecurityProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityProfilesTest3() throws Exception { + SecurityProfile responsesElement = SecurityProfile.newBuilder().build(); + ListSecurityProfilesResponse expectedResponse = + ListSecurityProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityProfiles(Arrays.asList(responsesElement)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSecurityProfilesPagedResponse pagedListResponse = client.listSecurityProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityProfilesList().get(0), resources.get(0)); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityProfilesRequest actualRequest = + ((ListSecurityProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityProfilesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSecurityProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSecurityProfileTest() throws Exception { + SecurityProfile expectedResponse = + SecurityProfile.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + SecurityProfileName name = + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"); + + SecurityProfile actualResponse = client.getSecurityProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSecurityProfileRequest actualRequest = ((GetSecurityProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSecurityProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + SecurityProfileName name = + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"); + client.getSecurityProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSecurityProfileTest2() throws Exception { + SecurityProfile expectedResponse = + SecurityProfile.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(expectedResponse); + + String name = "name3373707"; + + SecurityProfile actualResponse = client.getSecurityProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSecurityProfileRequest actualRequest = ((GetSecurityProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSecurityProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + String name = "name3373707"; + client.getSecurityProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSecurityProfileTest() throws Exception { + SecurityProfile expectedResponse = + SecurityProfile.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSecurityProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + + SecurityProfile actualResponse = + client.createSecurityProfileAsync(parent, securityProfile, securityProfileId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSecurityProfileRequest actualRequest = + ((CreateSecurityProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(securityProfile, actualRequest.getSecurityProfile()); + Assert.assertEquals(securityProfileId, actualRequest.getSecurityProfileId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSecurityProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + client.createSecurityProfileAsync(parent, securityProfile, securityProfileId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createSecurityProfileTest2() throws Exception { + SecurityProfile expectedResponse = + SecurityProfile.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSecurityProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + + SecurityProfile actualResponse = + client.createSecurityProfileAsync(parent, securityProfile, securityProfileId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSecurityProfileRequest actualRequest = + ((CreateSecurityProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(securityProfile, actualRequest.getSecurityProfile()); + Assert.assertEquals(securityProfileId, actualRequest.getSecurityProfileId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSecurityProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + client.createSecurityProfileAsync(parent, securityProfile, securityProfileId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createSecurityProfileTest3() throws Exception { + SecurityProfile expectedResponse = + SecurityProfile.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSecurityProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + String parent = "parent-995424086"; + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + + SecurityProfile actualResponse = + client.createSecurityProfileAsync(parent, securityProfile, securityProfileId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSecurityProfileRequest actualRequest = + ((CreateSecurityProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(securityProfile, actualRequest.getSecurityProfile()); + Assert.assertEquals(securityProfileId, actualRequest.getSecurityProfileId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSecurityProfileExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + String parent = "parent-995424086"; + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + client.createSecurityProfileAsync(parent, securityProfile, securityProfileId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateSecurityProfileTest() throws Exception { + SecurityProfile expectedResponse = + SecurityProfile.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSecurityProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SecurityProfile actualResponse = + client.updateSecurityProfileAsync(securityProfile, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSecurityProfileRequest actualRequest = + ((UpdateSecurityProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(securityProfile, actualRequest.getSecurityProfile()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSecurityProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSecurityProfileAsync(securityProfile, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteSecurityProfileTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSecurityProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + SecurityProfileName name = + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"); + + client.deleteSecurityProfileAsync(name).get(); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSecurityProfileRequest actualRequest = + ((DeleteSecurityProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSecurityProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + SecurityProfileName name = + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"); + client.deleteSecurityProfileAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteSecurityProfileTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteSecurityProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationSecurityProfileGroupService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteSecurityProfileAsync(name).get(); + + List actualRequests = + mockOrganizationSecurityProfileGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSecurityProfileRequest actualRequest = + ((DeleteSecurityProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSecurityProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationSecurityProfileGroupService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSecurityProfileAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceGrpc.java new file mode 100644 index 000000000000..32bf934709ca --- /dev/null +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceGrpc.java @@ -0,0 +1,1002 @@ +/* + * Copyright 2026 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. + */ +package com.google.cloud.networksecurity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                                                                              + * The Network Security API for DNS Threat Detectors.
                                                                                              + * 
                                                                                              + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class DnsThreatDetectorServiceGrpc { + + private DnsThreatDetectorServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networksecurity.v1.DnsThreatDetectorService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest, + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse> + getListDnsThreatDetectorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDnsThreatDetectors", + requestType = com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest, + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse> + getListDnsThreatDetectorsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest, + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse> + getListDnsThreatDetectorsMethod; + if ((getListDnsThreatDetectorsMethod = + DnsThreatDetectorServiceGrpc.getListDnsThreatDetectorsMethod) + == null) { + synchronized (DnsThreatDetectorServiceGrpc.class) { + if ((getListDnsThreatDetectorsMethod = + DnsThreatDetectorServiceGrpc.getListDnsThreatDetectorsMethod) + == null) { + DnsThreatDetectorServiceGrpc.getListDnsThreatDetectorsMethod = + getListDnsThreatDetectorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDnsThreatDetectors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DnsThreatDetectorServiceMethodDescriptorSupplier( + "ListDnsThreatDetectors")) + .build(); + } + } + } + return getListDnsThreatDetectorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getGetDnsThreatDetectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDnsThreatDetector", + requestType = com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest.class, + responseType = com.google.cloud.networksecurity.v1.DnsThreatDetector.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getGetDnsThreatDetectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getGetDnsThreatDetectorMethod; + if ((getGetDnsThreatDetectorMethod = DnsThreatDetectorServiceGrpc.getGetDnsThreatDetectorMethod) + == null) { + synchronized (DnsThreatDetectorServiceGrpc.class) { + if ((getGetDnsThreatDetectorMethod = + DnsThreatDetectorServiceGrpc.getGetDnsThreatDetectorMethod) + == null) { + DnsThreatDetectorServiceGrpc.getGetDnsThreatDetectorMethod = + getGetDnsThreatDetectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDnsThreatDetector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DnsThreatDetector + .getDefaultInstance())) + .setSchemaDescriptor( + new DnsThreatDetectorServiceMethodDescriptorSupplier( + "GetDnsThreatDetector")) + .build(); + } + } + } + return getGetDnsThreatDetectorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getCreateDnsThreatDetectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDnsThreatDetector", + requestType = com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest.class, + responseType = com.google.cloud.networksecurity.v1.DnsThreatDetector.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getCreateDnsThreatDetectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getCreateDnsThreatDetectorMethod; + if ((getCreateDnsThreatDetectorMethod = + DnsThreatDetectorServiceGrpc.getCreateDnsThreatDetectorMethod) + == null) { + synchronized (DnsThreatDetectorServiceGrpc.class) { + if ((getCreateDnsThreatDetectorMethod = + DnsThreatDetectorServiceGrpc.getCreateDnsThreatDetectorMethod) + == null) { + DnsThreatDetectorServiceGrpc.getCreateDnsThreatDetectorMethod = + getCreateDnsThreatDetectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateDnsThreatDetector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DnsThreatDetector + .getDefaultInstance())) + .setSchemaDescriptor( + new DnsThreatDetectorServiceMethodDescriptorSupplier( + "CreateDnsThreatDetector")) + .build(); + } + } + } + return getCreateDnsThreatDetectorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getUpdateDnsThreatDetectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDnsThreatDetector", + requestType = com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest.class, + responseType = com.google.cloud.networksecurity.v1.DnsThreatDetector.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getUpdateDnsThreatDetectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getUpdateDnsThreatDetectorMethod; + if ((getUpdateDnsThreatDetectorMethod = + DnsThreatDetectorServiceGrpc.getUpdateDnsThreatDetectorMethod) + == null) { + synchronized (DnsThreatDetectorServiceGrpc.class) { + if ((getUpdateDnsThreatDetectorMethod = + DnsThreatDetectorServiceGrpc.getUpdateDnsThreatDetectorMethod) + == null) { + DnsThreatDetectorServiceGrpc.getUpdateDnsThreatDetectorMethod = + getUpdateDnsThreatDetectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDnsThreatDetector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DnsThreatDetector + .getDefaultInstance())) + .setSchemaDescriptor( + new DnsThreatDetectorServiceMethodDescriptorSupplier( + "UpdateDnsThreatDetector")) + .build(); + } + } + } + return getUpdateDnsThreatDetectorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest, + com.google.protobuf.Empty> + getDeleteDnsThreatDetectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDnsThreatDetector", + requestType = com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest, + com.google.protobuf.Empty> + getDeleteDnsThreatDetectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest, + com.google.protobuf.Empty> + getDeleteDnsThreatDetectorMethod; + if ((getDeleteDnsThreatDetectorMethod = + DnsThreatDetectorServiceGrpc.getDeleteDnsThreatDetectorMethod) + == null) { + synchronized (DnsThreatDetectorServiceGrpc.class) { + if ((getDeleteDnsThreatDetectorMethod = + DnsThreatDetectorServiceGrpc.getDeleteDnsThreatDetectorMethod) + == null) { + DnsThreatDetectorServiceGrpc.getDeleteDnsThreatDetectorMethod = + getDeleteDnsThreatDetectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteDnsThreatDetector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DnsThreatDetectorServiceMethodDescriptorSupplier( + "DeleteDnsThreatDetector")) + .build(); + } + } + } + return getDeleteDnsThreatDetectorMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DnsThreatDetectorServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DnsThreatDetectorServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DnsThreatDetectorServiceStub(channel, callOptions); + } + }; + return DnsThreatDetectorServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DnsThreatDetectorServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DnsThreatDetectorServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DnsThreatDetectorServiceBlockingV2Stub(channel, callOptions); + } + }; + return DnsThreatDetectorServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DnsThreatDetectorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DnsThreatDetectorServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DnsThreatDetectorServiceBlockingStub(channel, callOptions); + } + }; + return DnsThreatDetectorServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DnsThreatDetectorServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DnsThreatDetectorServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DnsThreatDetectorServiceFutureStub(channel, callOptions); + } + }; + return DnsThreatDetectorServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                                                                              +   * The Network Security API for DNS Threat Detectors.
                                                                                              +   * 
                                                                                              + */ + public interface AsyncService { + + /** + * + * + *
                                                                                              +     * Lists DnsThreatDetectors in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listDnsThreatDetectors( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDnsThreatDetectorsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets the details of a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + default void getDnsThreatDetector( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDnsThreatDetectorMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new DnsThreatDetector in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createDnsThreatDetector( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDnsThreatDetectorMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + default void updateDnsThreatDetector( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDnsThreatDetectorMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + default void deleteDnsThreatDetector( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDnsThreatDetectorMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DnsThreatDetectorService. + * + *
                                                                                              +   * The Network Security API for DNS Threat Detectors.
                                                                                              +   * 
                                                                                              + */ + public abstract static class DnsThreatDetectorServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DnsThreatDetectorServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DnsThreatDetectorService. + * + *
                                                                                              +   * The Network Security API for DNS Threat Detectors.
                                                                                              +   * 
                                                                                              + */ + public static final class DnsThreatDetectorServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DnsThreatDetectorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DnsThreatDetectorServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DnsThreatDetectorServiceStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists DnsThreatDetectors in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listDnsThreatDetectors( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDnsThreatDetectorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets the details of a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public void getDnsThreatDetector( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDnsThreatDetectorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new DnsThreatDetector in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createDnsThreatDetector( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDnsThreatDetectorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public void updateDnsThreatDetector( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDnsThreatDetectorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public void deleteDnsThreatDetector( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDnsThreatDetectorMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DnsThreatDetectorService. + * + *
                                                                                              +   * The Network Security API for DNS Threat Detectors.
                                                                                              +   * 
                                                                                              + */ + public static final class DnsThreatDetectorServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DnsThreatDetectorServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DnsThreatDetectorServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DnsThreatDetectorServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists DnsThreatDetectors in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + listDnsThreatDetectors( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDnsThreatDetectorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets the details of a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetector( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDnsThreatDetectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new DnsThreatDetector in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector createDnsThreatDetector( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateDnsThreatDetectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector updateDnsThreatDetector( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateDnsThreatDetectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.protobuf.Empty deleteDnsThreatDetector( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteDnsThreatDetectorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * DnsThreatDetectorService. + * + *
                                                                                              +   * The Network Security API for DNS Threat Detectors.
                                                                                              +   * 
                                                                                              + */ + public static final class DnsThreatDetectorServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DnsThreatDetectorServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DnsThreatDetectorServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DnsThreatDetectorServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists DnsThreatDetectors in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + listDnsThreatDetectors( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDnsThreatDetectorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets the details of a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetector( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDnsThreatDetectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new DnsThreatDetector in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector createDnsThreatDetector( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDnsThreatDetectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector updateDnsThreatDetector( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDnsThreatDetectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.protobuf.Empty deleteDnsThreatDetector( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDnsThreatDetectorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * DnsThreatDetectorService. + * + *
                                                                                              +   * The Network Security API for DNS Threat Detectors.
                                                                                              +   * 
                                                                                              + */ + public static final class DnsThreatDetectorServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DnsThreatDetectorServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DnsThreatDetectorServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DnsThreatDetectorServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists DnsThreatDetectors in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse> + listDnsThreatDetectors( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDnsThreatDetectorsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Gets the details of a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.DnsThreatDetector> + getDnsThreatDetector( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDnsThreatDetectorMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new DnsThreatDetector in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.DnsThreatDetector> + createDnsThreatDetector( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDnsThreatDetectorMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Updates a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.DnsThreatDetector> + updateDnsThreatDetector( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDnsThreatDetectorMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single DnsThreatDetector.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteDnsThreatDetector( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDnsThreatDetectorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_DNS_THREAT_DETECTORS = 0; + private static final int METHODID_GET_DNS_THREAT_DETECTOR = 1; + private static final int METHODID_CREATE_DNS_THREAT_DETECTOR = 2; + private static final int METHODID_UPDATE_DNS_THREAT_DETECTOR = 3; + private static final int METHODID_DELETE_DNS_THREAT_DETECTOR = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_DNS_THREAT_DETECTORS: + serviceImpl.listDnsThreatDetectors( + (com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse>) + responseObserver); + break; + case METHODID_GET_DNS_THREAT_DETECTOR: + serviceImpl.getDnsThreatDetector( + (com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_DNS_THREAT_DETECTOR: + serviceImpl.createDnsThreatDetector( + (com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DNS_THREAT_DETECTOR: + serviceImpl.updateDnsThreatDetector( + (com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DNS_THREAT_DETECTOR: + serviceImpl.deleteDnsThreatDetector( + (com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListDnsThreatDetectorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest, + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse>( + service, METHODID_LIST_DNS_THREAT_DETECTORS))) + .addMethod( + getGetDnsThreatDetectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector>( + service, METHODID_GET_DNS_THREAT_DETECTOR))) + .addMethod( + getCreateDnsThreatDetectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector>( + service, METHODID_CREATE_DNS_THREAT_DETECTOR))) + .addMethod( + getUpdateDnsThreatDetectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest, + com.google.cloud.networksecurity.v1.DnsThreatDetector>( + service, METHODID_UPDATE_DNS_THREAT_DETECTOR))) + .addMethod( + getDeleteDnsThreatDetectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DNS_THREAT_DETECTOR))) + .build(); + } + + private abstract static class DnsThreatDetectorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DnsThreatDetectorServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DnsThreatDetectorService"); + } + } + + private static final class DnsThreatDetectorServiceFileDescriptorSupplier + extends DnsThreatDetectorServiceBaseDescriptorSupplier { + DnsThreatDetectorServiceFileDescriptorSupplier() {} + } + + private static final class DnsThreatDetectorServiceMethodDescriptorSupplier + extends DnsThreatDetectorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DnsThreatDetectorServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DnsThreatDetectorServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DnsThreatDetectorServiceFileDescriptorSupplier()) + .addMethod(getListDnsThreatDetectorsMethod()) + .addMethod(getGetDnsThreatDetectorMethod()) + .addMethod(getCreateDnsThreatDetectorMethod()) + .addMethod(getUpdateDnsThreatDetectorMethod()) + .addMethod(getDeleteDnsThreatDetectorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationGrpc.java new file mode 100644 index 000000000000..5a9fe30b5c26 --- /dev/null +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationGrpc.java @@ -0,0 +1,1694 @@ +/* + * Copyright 2026 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. + */ +package com.google.cloud.networksecurity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                                                                              + * Service for managing Firewall Endpoints and Associations.
                                                                                              + * 
                                                                                              + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class FirewallActivationGrpc { + + private FirewallActivationGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networksecurity.v1.FirewallActivation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest, + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse> + getListFirewallEndpointsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFirewallEndpoints", + requestType = com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest, + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse> + getListFirewallEndpointsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest, + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse> + getListFirewallEndpointsMethod; + if ((getListFirewallEndpointsMethod = FirewallActivationGrpc.getListFirewallEndpointsMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getListFirewallEndpointsMethod = FirewallActivationGrpc.getListFirewallEndpointsMethod) + == null) { + FirewallActivationGrpc.getListFirewallEndpointsMethod = + getListFirewallEndpointsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFirewallEndpoints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier("ListFirewallEndpoints")) + .build(); + } + } + } + return getListFirewallEndpointsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest, + com.google.cloud.networksecurity.v1.FirewallEndpoint> + getGetFirewallEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFirewallEndpoint", + requestType = com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest.class, + responseType = com.google.cloud.networksecurity.v1.FirewallEndpoint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest, + com.google.cloud.networksecurity.v1.FirewallEndpoint> + getGetFirewallEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest, + com.google.cloud.networksecurity.v1.FirewallEndpoint> + getGetFirewallEndpointMethod; + if ((getGetFirewallEndpointMethod = FirewallActivationGrpc.getGetFirewallEndpointMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getGetFirewallEndpointMethod = FirewallActivationGrpc.getGetFirewallEndpointMethod) + == null) { + FirewallActivationGrpc.getGetFirewallEndpointMethod = + getGetFirewallEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetFirewallEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.FirewallEndpoint + .getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier("GetFirewallEndpoint")) + .build(); + } + } + } + return getGetFirewallEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest, + com.google.longrunning.Operation> + getCreateFirewallEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFirewallEndpoint", + requestType = com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest, + com.google.longrunning.Operation> + getCreateFirewallEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest, + com.google.longrunning.Operation> + getCreateFirewallEndpointMethod; + if ((getCreateFirewallEndpointMethod = FirewallActivationGrpc.getCreateFirewallEndpointMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getCreateFirewallEndpointMethod = + FirewallActivationGrpc.getCreateFirewallEndpointMethod) + == null) { + FirewallActivationGrpc.getCreateFirewallEndpointMethod = + getCreateFirewallEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateFirewallEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier("CreateFirewallEndpoint")) + .build(); + } + } + } + return getCreateFirewallEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest, + com.google.longrunning.Operation> + getDeleteFirewallEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFirewallEndpoint", + requestType = com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest, + com.google.longrunning.Operation> + getDeleteFirewallEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest, + com.google.longrunning.Operation> + getDeleteFirewallEndpointMethod; + if ((getDeleteFirewallEndpointMethod = FirewallActivationGrpc.getDeleteFirewallEndpointMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getDeleteFirewallEndpointMethod = + FirewallActivationGrpc.getDeleteFirewallEndpointMethod) + == null) { + FirewallActivationGrpc.getDeleteFirewallEndpointMethod = + getDeleteFirewallEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteFirewallEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier("DeleteFirewallEndpoint")) + .build(); + } + } + } + return getDeleteFirewallEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest, + com.google.longrunning.Operation> + getUpdateFirewallEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFirewallEndpoint", + requestType = com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest, + com.google.longrunning.Operation> + getUpdateFirewallEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest, + com.google.longrunning.Operation> + getUpdateFirewallEndpointMethod; + if ((getUpdateFirewallEndpointMethod = FirewallActivationGrpc.getUpdateFirewallEndpointMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getUpdateFirewallEndpointMethod = + FirewallActivationGrpc.getUpdateFirewallEndpointMethod) + == null) { + FirewallActivationGrpc.getUpdateFirewallEndpointMethod = + getUpdateFirewallEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateFirewallEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier("UpdateFirewallEndpoint")) + .build(); + } + } + } + return getUpdateFirewallEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest, + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse> + getListFirewallEndpointAssociationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFirewallEndpointAssociations", + requestType = + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest.class, + responseType = + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest, + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse> + getListFirewallEndpointAssociationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest, + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse> + getListFirewallEndpointAssociationsMethod; + if ((getListFirewallEndpointAssociationsMethod = + FirewallActivationGrpc.getListFirewallEndpointAssociationsMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getListFirewallEndpointAssociationsMethod = + FirewallActivationGrpc.getListFirewallEndpointAssociationsMethod) + == null) { + FirewallActivationGrpc.getListFirewallEndpointAssociationsMethod = + getListFirewallEndpointAssociationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFirewallEndpointAssociations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListFirewallEndpointAssociationsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListFirewallEndpointAssociationsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier( + "ListFirewallEndpointAssociations")) + .build(); + } + } + } + return getListFirewallEndpointAssociationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation> + getGetFirewallEndpointAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFirewallEndpointAssociation", + requestType = com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest.class, + responseType = com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation> + getGetFirewallEndpointAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation> + getGetFirewallEndpointAssociationMethod; + if ((getGetFirewallEndpointAssociationMethod = + FirewallActivationGrpc.getGetFirewallEndpointAssociationMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getGetFirewallEndpointAssociationMethod = + FirewallActivationGrpc.getGetFirewallEndpointAssociationMethod) + == null) { + FirewallActivationGrpc.getGetFirewallEndpointAssociationMethod = + getGetFirewallEndpointAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetFirewallEndpointAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .GetFirewallEndpointAssociationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + .getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier( + "GetFirewallEndpointAssociation")) + .build(); + } + } + } + return getGetFirewallEndpointAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getCreateFirewallEndpointAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFirewallEndpointAssociation", + requestType = + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getCreateFirewallEndpointAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getCreateFirewallEndpointAssociationMethod; + if ((getCreateFirewallEndpointAssociationMethod = + FirewallActivationGrpc.getCreateFirewallEndpointAssociationMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getCreateFirewallEndpointAssociationMethod = + FirewallActivationGrpc.getCreateFirewallEndpointAssociationMethod) + == null) { + FirewallActivationGrpc.getCreateFirewallEndpointAssociationMethod = + getCreateFirewallEndpointAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateFirewallEndpointAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .CreateFirewallEndpointAssociationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier( + "CreateFirewallEndpointAssociation")) + .build(); + } + } + } + return getCreateFirewallEndpointAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getDeleteFirewallEndpointAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFirewallEndpointAssociation", + requestType = + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getDeleteFirewallEndpointAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getDeleteFirewallEndpointAssociationMethod; + if ((getDeleteFirewallEndpointAssociationMethod = + FirewallActivationGrpc.getDeleteFirewallEndpointAssociationMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getDeleteFirewallEndpointAssociationMethod = + FirewallActivationGrpc.getDeleteFirewallEndpointAssociationMethod) + == null) { + FirewallActivationGrpc.getDeleteFirewallEndpointAssociationMethod = + getDeleteFirewallEndpointAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteFirewallEndpointAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .DeleteFirewallEndpointAssociationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier( + "DeleteFirewallEndpointAssociation")) + .build(); + } + } + } + return getDeleteFirewallEndpointAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getUpdateFirewallEndpointAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFirewallEndpointAssociation", + requestType = + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getUpdateFirewallEndpointAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest, + com.google.longrunning.Operation> + getUpdateFirewallEndpointAssociationMethod; + if ((getUpdateFirewallEndpointAssociationMethod = + FirewallActivationGrpc.getUpdateFirewallEndpointAssociationMethod) + == null) { + synchronized (FirewallActivationGrpc.class) { + if ((getUpdateFirewallEndpointAssociationMethod = + FirewallActivationGrpc.getUpdateFirewallEndpointAssociationMethod) + == null) { + FirewallActivationGrpc.getUpdateFirewallEndpointAssociationMethod = + getUpdateFirewallEndpointAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateFirewallEndpointAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .UpdateFirewallEndpointAssociationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FirewallActivationMethodDescriptorSupplier( + "UpdateFirewallEndpointAssociation")) + .build(); + } + } + } + return getUpdateFirewallEndpointAssociationMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FirewallActivationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FirewallActivationStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirewallActivationStub(channel, callOptions); + } + }; + return FirewallActivationStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static FirewallActivationBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FirewallActivationBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirewallActivationBlockingV2Stub(channel, callOptions); + } + }; + return FirewallActivationBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FirewallActivationBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FirewallActivationBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirewallActivationBlockingStub(channel, callOptions); + } + }; + return FirewallActivationBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FirewallActivationFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FirewallActivationFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirewallActivationFutureStub(channel, callOptions); + } + }; + return FirewallActivationFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                                                                              +   * Service for managing Firewall Endpoints and Associations.
                                                                                              +   * 
                                                                                              + */ + public interface AsyncService { + + /** + * + * + *
                                                                                              +     * Lists FirewallEndpoints in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + default void listFirewallEndpoints( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFirewallEndpointsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + default void getFirewallEndpoint( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFirewallEndpointMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpoint in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + default void createFirewallEndpoint( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFirewallEndpointMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + default void deleteFirewallEndpoint( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFirewallEndpointMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Update a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + default void updateFirewallEndpoint( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFirewallEndpointMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists Associations in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listFirewallEndpointAssociations( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFirewallEndpointAssociationsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + default void getFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFirewallEndpointAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpointAssociation in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFirewallEndpointAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + default void deleteFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFirewallEndpointAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Update a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + default void updateFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFirewallEndpointAssociationMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service FirewallActivation. + * + *
                                                                                              +   * Service for managing Firewall Endpoints and Associations.
                                                                                              +   * 
                                                                                              + */ + public abstract static class FirewallActivationImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return FirewallActivationGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service FirewallActivation. + * + *
                                                                                              +   * Service for managing Firewall Endpoints and Associations.
                                                                                              +   * 
                                                                                              + */ + public static final class FirewallActivationStub + extends io.grpc.stub.AbstractAsyncStub { + private FirewallActivationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FirewallActivationStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirewallActivationStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists FirewallEndpoints in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public void listFirewallEndpoints( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFirewallEndpointsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public void getFirewallEndpoint( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFirewallEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpoint in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public void createFirewallEndpoint( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFirewallEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public void deleteFirewallEndpoint( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFirewallEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Update a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public void updateFirewallEndpoint( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFirewallEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists Associations in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listFirewallEndpointAssociations( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFirewallEndpointAssociationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public void getFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFirewallEndpointAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpointAssociation in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFirewallEndpointAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public void deleteFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFirewallEndpointAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Update a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public void updateFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFirewallEndpointAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service FirewallActivation. + * + *
                                                                                              +   * Service for managing Firewall Endpoints and Associations.
                                                                                              +   * 
                                                                                              + */ + public static final class FirewallActivationBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private FirewallActivationBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FirewallActivationBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirewallActivationBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists FirewallEndpoints in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse listFirewallEndpoints( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFirewallEndpointsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoint( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFirewallEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpoint in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createFirewallEndpoint( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFirewallEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteFirewallEndpoint( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFirewallEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Update a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateFirewallEndpoint( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFirewallEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists Associations in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + listFirewallEndpointAssociations( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFirewallEndpointAssociationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFirewallEndpointAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpointAssociation in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFirewallEndpointAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFirewallEndpointAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Update a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFirewallEndpointAssociationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service FirewallActivation. + * + *
                                                                                              +   * Service for managing Firewall Endpoints and Associations.
                                                                                              +   * 
                                                                                              + */ + public static final class FirewallActivationBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private FirewallActivationBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FirewallActivationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirewallActivationBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists FirewallEndpoints in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse listFirewallEndpoints( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFirewallEndpointsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoint( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFirewallEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpoint in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createFirewallEndpoint( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFirewallEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteFirewallEndpoint( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFirewallEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Update a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateFirewallEndpoint( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFirewallEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists Associations in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + listFirewallEndpointAssociations( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFirewallEndpointAssociationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFirewallEndpointAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpointAssociation in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFirewallEndpointAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFirewallEndpointAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Update a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFirewallEndpointAssociationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service FirewallActivation. + * + *
                                                                                              +   * Service for managing Firewall Endpoints and Associations.
                                                                                              +   * 
                                                                                              + */ + public static final class FirewallActivationFutureStub + extends io.grpc.stub.AbstractFutureStub { + private FirewallActivationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FirewallActivationFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FirewallActivationFutureStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists FirewallEndpoints in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse> + listFirewallEndpoints( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFirewallEndpointsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.FirewallEndpoint> + getFirewallEndpoint( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFirewallEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpoint in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createFirewallEndpoint( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFirewallEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFirewallEndpoint( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFirewallEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Update a single org Endpoint.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateFirewallEndpoint( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFirewallEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Lists Associations in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse> + listFirewallEndpointAssociations( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFirewallEndpointAssociationsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation> + getFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFirewallEndpointAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Creates a new FirewallEndpointAssociation in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFirewallEndpointAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFirewallEndpointAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Update a single FirewallEndpointAssociation.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFirewallEndpointAssociationMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_LIST_FIREWALL_ENDPOINTS = 0; + private static final int METHODID_GET_FIREWALL_ENDPOINT = 1; + private static final int METHODID_CREATE_FIREWALL_ENDPOINT = 2; + private static final int METHODID_DELETE_FIREWALL_ENDPOINT = 3; + private static final int METHODID_UPDATE_FIREWALL_ENDPOINT = 4; + private static final int METHODID_LIST_FIREWALL_ENDPOINT_ASSOCIATIONS = 5; + private static final int METHODID_GET_FIREWALL_ENDPOINT_ASSOCIATION = 6; + private static final int METHODID_CREATE_FIREWALL_ENDPOINT_ASSOCIATION = 7; + private static final int METHODID_DELETE_FIREWALL_ENDPOINT_ASSOCIATION = 8; + private static final int METHODID_UPDATE_FIREWALL_ENDPOINT_ASSOCIATION = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_FIREWALL_ENDPOINTS: + serviceImpl.listFirewallEndpoints( + (com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse>) + responseObserver); + break; + case METHODID_GET_FIREWALL_ENDPOINT: + serviceImpl.getFirewallEndpoint( + (com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FIREWALL_ENDPOINT: + serviceImpl.createFirewallEndpoint( + (com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FIREWALL_ENDPOINT: + serviceImpl.deleteFirewallEndpoint( + (com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FIREWALL_ENDPOINT: + serviceImpl.updateFirewallEndpoint( + (com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FIREWALL_ENDPOINT_ASSOCIATIONS: + serviceImpl.listFirewallEndpointAssociations( + (com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse>) + responseObserver); + break; + case METHODID_GET_FIREWALL_ENDPOINT_ASSOCIATION: + serviceImpl.getFirewallEndpointAssociation( + (com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation>) + responseObserver); + break; + case METHODID_CREATE_FIREWALL_ENDPOINT_ASSOCIATION: + serviceImpl.createFirewallEndpointAssociation( + (com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FIREWALL_ENDPOINT_ASSOCIATION: + serviceImpl.deleteFirewallEndpointAssociation( + (com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FIREWALL_ENDPOINT_ASSOCIATION: + serviceImpl.updateFirewallEndpointAssociation( + (com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListFirewallEndpointsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest, + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse>( + service, METHODID_LIST_FIREWALL_ENDPOINTS))) + .addMethod( + getGetFirewallEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest, + com.google.cloud.networksecurity.v1.FirewallEndpoint>( + service, METHODID_GET_FIREWALL_ENDPOINT))) + .addMethod( + getCreateFirewallEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_FIREWALL_ENDPOINT))) + .addMethod( + getDeleteFirewallEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_FIREWALL_ENDPOINT))) + .addMethod( + getUpdateFirewallEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_FIREWALL_ENDPOINT))) + .addMethod( + getListFirewallEndpointAssociationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest, + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse>( + service, METHODID_LIST_FIREWALL_ENDPOINT_ASSOCIATIONS))) + .addMethod( + getGetFirewallEndpointAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation>( + service, METHODID_GET_FIREWALL_ENDPOINT_ASSOCIATION))) + .addMethod( + getCreateFirewallEndpointAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_FIREWALL_ENDPOINT_ASSOCIATION))) + .addMethod( + getDeleteFirewallEndpointAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_FIREWALL_ENDPOINT_ASSOCIATION))) + .addMethod( + getUpdateFirewallEndpointAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_FIREWALL_ENDPOINT_ASSOCIATION))) + .build(); + } + + private abstract static class FirewallActivationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FirewallActivationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FirewallActivation"); + } + } + + private static final class FirewallActivationFileDescriptorSupplier + extends FirewallActivationBaseDescriptorSupplier { + FirewallActivationFileDescriptorSupplier() {} + } + + private static final class FirewallActivationMethodDescriptorSupplier + extends FirewallActivationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + FirewallActivationMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FirewallActivationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FirewallActivationFileDescriptorSupplier()) + .addMethod(getListFirewallEndpointsMethod()) + .addMethod(getGetFirewallEndpointMethod()) + .addMethod(getCreateFirewallEndpointMethod()) + .addMethod(getDeleteFirewallEndpointMethod()) + .addMethod(getUpdateFirewallEndpointMethod()) + .addMethod(getListFirewallEndpointAssociationsMethod()) + .addMethod(getGetFirewallEndpointAssociationMethod()) + .addMethod(getCreateFirewallEndpointAssociationMethod()) + .addMethod(getDeleteFirewallEndpointAssociationMethod()) + .addMethod(getUpdateFirewallEndpointAssociationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptGrpc.java new file mode 100644 index 000000000000..7a2de54d18f6 --- /dev/null +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptGrpc.java @@ -0,0 +1,3252 @@ +/* + * Copyright 2026 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. + */ +package com.google.cloud.networksecurity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                                                                              + * Service for Third-Party Packet Intercept (TPPI).
                                                                                              + * TPPI is the "in-band" flavor of the Network Security Integrations product.
                                                                                              + * 
                                                                                              + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class InterceptGrpc { + + private InterceptGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.networksecurity.v1.Intercept"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse> + getListInterceptEndpointGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInterceptEndpointGroups", + requestType = com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse> + getListInterceptEndpointGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse> + getListInterceptEndpointGroupsMethod; + if ((getListInterceptEndpointGroupsMethod = InterceptGrpc.getListInterceptEndpointGroupsMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getListInterceptEndpointGroupsMethod = + InterceptGrpc.getListInterceptEndpointGroupsMethod) + == null) { + InterceptGrpc.getListInterceptEndpointGroupsMethod = + getListInterceptEndpointGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListInterceptEndpointGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListInterceptEndpointGroupsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("ListInterceptEndpointGroups")) + .build(); + } + } + } + return getListInterceptEndpointGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup> + getGetInterceptEndpointGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInterceptEndpointGroup", + requestType = com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest.class, + responseType = com.google.cloud.networksecurity.v1.InterceptEndpointGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup> + getGetInterceptEndpointGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup> + getGetInterceptEndpointGroupMethod; + if ((getGetInterceptEndpointGroupMethod = InterceptGrpc.getGetInterceptEndpointGroupMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getGetInterceptEndpointGroupMethod = InterceptGrpc.getGetInterceptEndpointGroupMethod) + == null) { + InterceptGrpc.getGetInterceptEndpointGroupMethod = + getGetInterceptEndpointGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetInterceptEndpointGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("GetInterceptEndpointGroup")) + .build(); + } + } + } + return getGetInterceptEndpointGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getCreateInterceptEndpointGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInterceptEndpointGroup", + requestType = com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getCreateInterceptEndpointGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getCreateInterceptEndpointGroupMethod; + if ((getCreateInterceptEndpointGroupMethod = + InterceptGrpc.getCreateInterceptEndpointGroupMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getCreateInterceptEndpointGroupMethod = + InterceptGrpc.getCreateInterceptEndpointGroupMethod) + == null) { + InterceptGrpc.getCreateInterceptEndpointGroupMethod = + getCreateInterceptEndpointGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateInterceptEndpointGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .CreateInterceptEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("CreateInterceptEndpointGroup")) + .build(); + } + } + } + return getCreateInterceptEndpointGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getUpdateInterceptEndpointGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInterceptEndpointGroup", + requestType = com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getUpdateInterceptEndpointGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getUpdateInterceptEndpointGroupMethod; + if ((getUpdateInterceptEndpointGroupMethod = + InterceptGrpc.getUpdateInterceptEndpointGroupMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getUpdateInterceptEndpointGroupMethod = + InterceptGrpc.getUpdateInterceptEndpointGroupMethod) + == null) { + InterceptGrpc.getUpdateInterceptEndpointGroupMethod = + getUpdateInterceptEndpointGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateInterceptEndpointGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .UpdateInterceptEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("UpdateInterceptEndpointGroup")) + .build(); + } + } + } + return getUpdateInterceptEndpointGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getDeleteInterceptEndpointGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInterceptEndpointGroup", + requestType = com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getDeleteInterceptEndpointGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest, + com.google.longrunning.Operation> + getDeleteInterceptEndpointGroupMethod; + if ((getDeleteInterceptEndpointGroupMethod = + InterceptGrpc.getDeleteInterceptEndpointGroupMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getDeleteInterceptEndpointGroupMethod = + InterceptGrpc.getDeleteInterceptEndpointGroupMethod) + == null) { + InterceptGrpc.getDeleteInterceptEndpointGroupMethod = + getDeleteInterceptEndpointGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteInterceptEndpointGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .DeleteInterceptEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("DeleteInterceptEndpointGroup")) + .build(); + } + } + } + return getDeleteInterceptEndpointGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse> + getListInterceptEndpointGroupAssociationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInterceptEndpointGroupAssociations", + requestType = + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest.class, + responseType = + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse> + getListInterceptEndpointGroupAssociationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse> + getListInterceptEndpointGroupAssociationsMethod; + if ((getListInterceptEndpointGroupAssociationsMethod = + InterceptGrpc.getListInterceptEndpointGroupAssociationsMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getListInterceptEndpointGroupAssociationsMethod = + InterceptGrpc.getListInterceptEndpointGroupAssociationsMethod) + == null) { + InterceptGrpc.getListInterceptEndpointGroupAssociationsMethod = + getListInterceptEndpointGroupAssociationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListInterceptEndpointGroupAssociations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListInterceptEndpointGroupAssociationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListInterceptEndpointGroupAssociationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier( + "ListInterceptEndpointGroupAssociations")) + .build(); + } + } + } + return getListInterceptEndpointGroupAssociationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation> + getGetInterceptEndpointGroupAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInterceptEndpointGroupAssociation", + requestType = + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest.class, + responseType = com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation> + getGetInterceptEndpointGroupAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation> + getGetInterceptEndpointGroupAssociationMethod; + if ((getGetInterceptEndpointGroupAssociationMethod = + InterceptGrpc.getGetInterceptEndpointGroupAssociationMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getGetInterceptEndpointGroupAssociationMethod = + InterceptGrpc.getGetInterceptEndpointGroupAssociationMethod) + == null) { + InterceptGrpc.getGetInterceptEndpointGroupAssociationMethod = + getGetInterceptEndpointGroupAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetInterceptEndpointGroupAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .GetInterceptEndpointGroupAssociationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier( + "GetInterceptEndpointGroupAssociation")) + .build(); + } + } + } + return getGetInterceptEndpointGroupAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getCreateInterceptEndpointGroupAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInterceptEndpointGroupAssociation", + requestType = + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getCreateInterceptEndpointGroupAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getCreateInterceptEndpointGroupAssociationMethod; + if ((getCreateInterceptEndpointGroupAssociationMethod = + InterceptGrpc.getCreateInterceptEndpointGroupAssociationMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getCreateInterceptEndpointGroupAssociationMethod = + InterceptGrpc.getCreateInterceptEndpointGroupAssociationMethod) + == null) { + InterceptGrpc.getCreateInterceptEndpointGroupAssociationMethod = + getCreateInterceptEndpointGroupAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateInterceptEndpointGroupAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .CreateInterceptEndpointGroupAssociationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier( + "CreateInterceptEndpointGroupAssociation")) + .build(); + } + } + } + return getCreateInterceptEndpointGroupAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getUpdateInterceptEndpointGroupAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInterceptEndpointGroupAssociation", + requestType = + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getUpdateInterceptEndpointGroupAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getUpdateInterceptEndpointGroupAssociationMethod; + if ((getUpdateInterceptEndpointGroupAssociationMethod = + InterceptGrpc.getUpdateInterceptEndpointGroupAssociationMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getUpdateInterceptEndpointGroupAssociationMethod = + InterceptGrpc.getUpdateInterceptEndpointGroupAssociationMethod) + == null) { + InterceptGrpc.getUpdateInterceptEndpointGroupAssociationMethod = + getUpdateInterceptEndpointGroupAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateInterceptEndpointGroupAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .UpdateInterceptEndpointGroupAssociationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier( + "UpdateInterceptEndpointGroupAssociation")) + .build(); + } + } + } + return getUpdateInterceptEndpointGroupAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getDeleteInterceptEndpointGroupAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInterceptEndpointGroupAssociation", + requestType = + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getDeleteInterceptEndpointGroupAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getDeleteInterceptEndpointGroupAssociationMethod; + if ((getDeleteInterceptEndpointGroupAssociationMethod = + InterceptGrpc.getDeleteInterceptEndpointGroupAssociationMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getDeleteInterceptEndpointGroupAssociationMethod = + InterceptGrpc.getDeleteInterceptEndpointGroupAssociationMethod) + == null) { + InterceptGrpc.getDeleteInterceptEndpointGroupAssociationMethod = + getDeleteInterceptEndpointGroupAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteInterceptEndpointGroupAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .DeleteInterceptEndpointGroupAssociationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier( + "DeleteInterceptEndpointGroupAssociation")) + .build(); + } + } + } + return getDeleteInterceptEndpointGroupAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse> + getListInterceptDeploymentGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInterceptDeploymentGroups", + requestType = com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest.class, + responseType = + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse> + getListInterceptDeploymentGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse> + getListInterceptDeploymentGroupsMethod; + if ((getListInterceptDeploymentGroupsMethod = + InterceptGrpc.getListInterceptDeploymentGroupsMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getListInterceptDeploymentGroupsMethod = + InterceptGrpc.getListInterceptDeploymentGroupsMethod) + == null) { + InterceptGrpc.getListInterceptDeploymentGroupsMethod = + getListInterceptDeploymentGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListInterceptDeploymentGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListInterceptDeploymentGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListInterceptDeploymentGroupsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("ListInterceptDeploymentGroups")) + .build(); + } + } + } + return getListInterceptDeploymentGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup> + getGetInterceptDeploymentGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInterceptDeploymentGroup", + requestType = com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest.class, + responseType = com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup> + getGetInterceptDeploymentGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup> + getGetInterceptDeploymentGroupMethod; + if ((getGetInterceptDeploymentGroupMethod = InterceptGrpc.getGetInterceptDeploymentGroupMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getGetInterceptDeploymentGroupMethod = + InterceptGrpc.getGetInterceptDeploymentGroupMethod) + == null) { + InterceptGrpc.getGetInterceptDeploymentGroupMethod = + getGetInterceptDeploymentGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetInterceptDeploymentGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("GetInterceptDeploymentGroup")) + .build(); + } + } + } + return getGetInterceptDeploymentGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getCreateInterceptDeploymentGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInterceptDeploymentGroup", + requestType = com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getCreateInterceptDeploymentGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getCreateInterceptDeploymentGroupMethod; + if ((getCreateInterceptDeploymentGroupMethod = + InterceptGrpc.getCreateInterceptDeploymentGroupMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getCreateInterceptDeploymentGroupMethod = + InterceptGrpc.getCreateInterceptDeploymentGroupMethod) + == null) { + InterceptGrpc.getCreateInterceptDeploymentGroupMethod = + getCreateInterceptDeploymentGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateInterceptDeploymentGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .CreateInterceptDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("CreateInterceptDeploymentGroup")) + .build(); + } + } + } + return getCreateInterceptDeploymentGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getUpdateInterceptDeploymentGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInterceptDeploymentGroup", + requestType = com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getUpdateInterceptDeploymentGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getUpdateInterceptDeploymentGroupMethod; + if ((getUpdateInterceptDeploymentGroupMethod = + InterceptGrpc.getUpdateInterceptDeploymentGroupMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getUpdateInterceptDeploymentGroupMethod = + InterceptGrpc.getUpdateInterceptDeploymentGroupMethod) + == null) { + InterceptGrpc.getUpdateInterceptDeploymentGroupMethod = + getUpdateInterceptDeploymentGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateInterceptDeploymentGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .UpdateInterceptDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("UpdateInterceptDeploymentGroup")) + .build(); + } + } + } + return getUpdateInterceptDeploymentGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getDeleteInterceptDeploymentGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInterceptDeploymentGroup", + requestType = com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getDeleteInterceptDeploymentGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest, + com.google.longrunning.Operation> + getDeleteInterceptDeploymentGroupMethod; + if ((getDeleteInterceptDeploymentGroupMethod = + InterceptGrpc.getDeleteInterceptDeploymentGroupMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getDeleteInterceptDeploymentGroupMethod = + InterceptGrpc.getDeleteInterceptDeploymentGroupMethod) + == null) { + InterceptGrpc.getDeleteInterceptDeploymentGroupMethod = + getDeleteInterceptDeploymentGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteInterceptDeploymentGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .DeleteInterceptDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("DeleteInterceptDeploymentGroup")) + .build(); + } + } + } + return getDeleteInterceptDeploymentGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse> + getListInterceptDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInterceptDeployments", + requestType = com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse> + getListInterceptDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse> + getListInterceptDeploymentsMethod; + if ((getListInterceptDeploymentsMethod = InterceptGrpc.getListInterceptDeploymentsMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getListInterceptDeploymentsMethod = InterceptGrpc.getListInterceptDeploymentsMethod) + == null) { + InterceptGrpc.getListInterceptDeploymentsMethod = + getListInterceptDeploymentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListInterceptDeployments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("ListInterceptDeployments")) + .build(); + } + } + } + return getListInterceptDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest, + com.google.cloud.networksecurity.v1.InterceptDeployment> + getGetInterceptDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInterceptDeployment", + requestType = com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest.class, + responseType = com.google.cloud.networksecurity.v1.InterceptDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest, + com.google.cloud.networksecurity.v1.InterceptDeployment> + getGetInterceptDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest, + com.google.cloud.networksecurity.v1.InterceptDeployment> + getGetInterceptDeploymentMethod; + if ((getGetInterceptDeploymentMethod = InterceptGrpc.getGetInterceptDeploymentMethod) == null) { + synchronized (InterceptGrpc.class) { + if ((getGetInterceptDeploymentMethod = InterceptGrpc.getGetInterceptDeploymentMethod) + == null) { + InterceptGrpc.getGetInterceptDeploymentMethod = + getGetInterceptDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetInterceptDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.InterceptDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("GetInterceptDeployment")) + .build(); + } + } + } + return getGetInterceptDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest, + com.google.longrunning.Operation> + getCreateInterceptDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInterceptDeployment", + requestType = com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest, + com.google.longrunning.Operation> + getCreateInterceptDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest, + com.google.longrunning.Operation> + getCreateInterceptDeploymentMethod; + if ((getCreateInterceptDeploymentMethod = InterceptGrpc.getCreateInterceptDeploymentMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getCreateInterceptDeploymentMethod = InterceptGrpc.getCreateInterceptDeploymentMethod) + == null) { + InterceptGrpc.getCreateInterceptDeploymentMethod = + getCreateInterceptDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateInterceptDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("CreateInterceptDeployment")) + .build(); + } + } + } + return getCreateInterceptDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest, + com.google.longrunning.Operation> + getUpdateInterceptDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInterceptDeployment", + requestType = com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest, + com.google.longrunning.Operation> + getUpdateInterceptDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest, + com.google.longrunning.Operation> + getUpdateInterceptDeploymentMethod; + if ((getUpdateInterceptDeploymentMethod = InterceptGrpc.getUpdateInterceptDeploymentMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getUpdateInterceptDeploymentMethod = InterceptGrpc.getUpdateInterceptDeploymentMethod) + == null) { + InterceptGrpc.getUpdateInterceptDeploymentMethod = + getUpdateInterceptDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateInterceptDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("UpdateInterceptDeployment")) + .build(); + } + } + } + return getUpdateInterceptDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest, + com.google.longrunning.Operation> + getDeleteInterceptDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInterceptDeployment", + requestType = com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest, + com.google.longrunning.Operation> + getDeleteInterceptDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest, + com.google.longrunning.Operation> + getDeleteInterceptDeploymentMethod; + if ((getDeleteInterceptDeploymentMethod = InterceptGrpc.getDeleteInterceptDeploymentMethod) + == null) { + synchronized (InterceptGrpc.class) { + if ((getDeleteInterceptDeploymentMethod = InterceptGrpc.getDeleteInterceptDeploymentMethod) + == null) { + InterceptGrpc.getDeleteInterceptDeploymentMethod = + getDeleteInterceptDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteInterceptDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new InterceptMethodDescriptorSupplier("DeleteInterceptDeployment")) + .build(); + } + } + } + return getDeleteInterceptDeploymentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static InterceptStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public InterceptStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InterceptStub(channel, callOptions); + } + }; + return InterceptStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static InterceptBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public InterceptBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InterceptBlockingV2Stub(channel, callOptions); + } + }; + return InterceptBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static InterceptBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public InterceptBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InterceptBlockingStub(channel, callOptions); + } + }; + return InterceptBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static InterceptFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public InterceptFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InterceptFutureStub(channel, callOptions); + } + }; + return InterceptFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                                                                              +   * Service for Third-Party Packet Intercept (TPPI).
                                                                                              +   * TPPI is the "in-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public interface AsyncService { + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + default void listInterceptEndpointGroups( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInterceptEndpointGroupsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + default void getInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInterceptEndpointGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + default void createInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInterceptEndpointGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + default void updateInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInterceptEndpointGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + default void deleteInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInterceptEndpointGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + default void listInterceptEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInterceptEndpointGroupAssociationsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + default void getInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInterceptEndpointGroupAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + default void createInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInterceptEndpointGroupAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + default void updateInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInterceptEndpointGroupAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + default void deleteInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInterceptEndpointGroupAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + default void listInterceptDeploymentGroups( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInterceptDeploymentGroupsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + default void getInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInterceptDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + default void createInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInterceptDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + default void updateInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInterceptDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + default void deleteInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInterceptDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + default void listInterceptDeployments( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInterceptDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + default void getInterceptDeployment( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInterceptDeploymentMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + default void createInterceptDeployment( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInterceptDeploymentMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + default void updateInterceptDeployment( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInterceptDeploymentMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + default void deleteInterceptDeployment( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInterceptDeploymentMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Intercept. + * + *
                                                                                              +   * Service for Third-Party Packet Intercept (TPPI).
                                                                                              +   * TPPI is the "in-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public abstract static class InterceptImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return InterceptGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Intercept. + * + *
                                                                                              +   * Service for Third-Party Packet Intercept (TPPI).
                                                                                              +   * TPPI is the "in-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public static final class InterceptStub extends io.grpc.stub.AbstractAsyncStub { + private InterceptStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected InterceptStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InterceptStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public void listInterceptEndpointGroups( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInterceptEndpointGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public void getInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInterceptEndpointGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public void createInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInterceptEndpointGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public void updateInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInterceptEndpointGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public void deleteInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInterceptEndpointGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public void listInterceptEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInterceptEndpointGroupAssociationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public void getInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInterceptEndpointGroupAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public void createInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getCreateInterceptEndpointGroupAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public void updateInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getUpdateInterceptEndpointGroupAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public void deleteInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getDeleteInterceptEndpointGroupAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public void listInterceptDeploymentGroups( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInterceptDeploymentGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public void getInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInterceptDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public void createInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInterceptDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public void updateInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInterceptDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public void deleteInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInterceptDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public void listInterceptDeployments( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInterceptDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public void getInterceptDeployment( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInterceptDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public void createInterceptDeployment( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInterceptDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public void updateInterceptDeployment( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInterceptDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public void deleteInterceptDeployment( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInterceptDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Intercept. + * + *
                                                                                              +   * Service for Third-Party Packet Intercept (TPPI).
                                                                                              +   * TPPI is the "in-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public static final class InterceptBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private InterceptBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected InterceptBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InterceptBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + listInterceptEndpointGroups( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListInterceptEndpointGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetInterceptEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateInterceptEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateInterceptEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteInterceptEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + listInterceptEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getListInterceptEndpointGroupAssociationsMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetInterceptEndpointGroupAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getCreateInterceptEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getUpdateInterceptEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getDeleteInterceptEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + listInterceptDeploymentGroups( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListInterceptDeploymentGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup getInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetInterceptDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateInterceptDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateInterceptDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteInterceptDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + listInterceptDeployments( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListInterceptDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployment( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetInterceptDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createInterceptDeployment( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateInterceptDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateInterceptDeployment( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateInterceptDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteInterceptDeployment( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteInterceptDeploymentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Intercept. + * + *
                                                                                              +   * Service for Third-Party Packet Intercept (TPPI).
                                                                                              +   * TPPI is the "in-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public static final class InterceptBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private InterceptBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected InterceptBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InterceptBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + listInterceptEndpointGroups( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInterceptEndpointGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInterceptEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInterceptEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInterceptEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInterceptEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + listInterceptEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListInterceptEndpointGroupAssociationsMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInterceptEndpointGroupAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getCreateInterceptEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getUpdateInterceptEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getDeleteInterceptEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + listInterceptDeploymentGroups( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInterceptDeploymentGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup getInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInterceptDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInterceptDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInterceptDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInterceptDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + listInterceptDeployments( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInterceptDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployment( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInterceptDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createInterceptDeployment( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInterceptDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateInterceptDeployment( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInterceptDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteInterceptDeployment( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInterceptDeploymentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Intercept. + * + *
                                                                                              +   * Service for Third-Party Packet Intercept (TPPI).
                                                                                              +   * TPPI is the "in-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public static final class InterceptFutureStub + extends io.grpc.stub.AbstractFutureStub { + private InterceptFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected InterceptFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InterceptFutureStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse> + listInterceptEndpointGroups( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInterceptEndpointGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup> + getInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInterceptEndpointGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInterceptEndpointGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInterceptEndpointGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInterceptEndpointGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse> + listInterceptEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInterceptEndpointGroupAssociationsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation> + getInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInterceptEndpointGroupAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getCreateInterceptEndpointGroupAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getUpdateInterceptEndpointGroupAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getDeleteInterceptEndpointGroupAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse> + listInterceptDeploymentGroups( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInterceptDeploymentGroupsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup> + getInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInterceptDeploymentGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInterceptDeploymentGroupMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInterceptDeploymentGroupMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInterceptDeploymentGroupMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse> + listInterceptDeployments( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInterceptDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.InterceptDeployment> + getInterceptDeployment( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInterceptDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createInterceptDeployment( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInterceptDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateInterceptDeployment( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInterceptDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteInterceptDeployment( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInterceptDeploymentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INTERCEPT_ENDPOINT_GROUPS = 0; + private static final int METHODID_GET_INTERCEPT_ENDPOINT_GROUP = 1; + private static final int METHODID_CREATE_INTERCEPT_ENDPOINT_GROUP = 2; + private static final int METHODID_UPDATE_INTERCEPT_ENDPOINT_GROUP = 3; + private static final int METHODID_DELETE_INTERCEPT_ENDPOINT_GROUP = 4; + private static final int METHODID_LIST_INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS = 5; + private static final int METHODID_GET_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION = 6; + private static final int METHODID_CREATE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION = 7; + private static final int METHODID_UPDATE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION = 8; + private static final int METHODID_DELETE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION = 9; + private static final int METHODID_LIST_INTERCEPT_DEPLOYMENT_GROUPS = 10; + private static final int METHODID_GET_INTERCEPT_DEPLOYMENT_GROUP = 11; + private static final int METHODID_CREATE_INTERCEPT_DEPLOYMENT_GROUP = 12; + private static final int METHODID_UPDATE_INTERCEPT_DEPLOYMENT_GROUP = 13; + private static final int METHODID_DELETE_INTERCEPT_DEPLOYMENT_GROUP = 14; + private static final int METHODID_LIST_INTERCEPT_DEPLOYMENTS = 15; + private static final int METHODID_GET_INTERCEPT_DEPLOYMENT = 16; + private static final int METHODID_CREATE_INTERCEPT_DEPLOYMENT = 17; + private static final int METHODID_UPDATE_INTERCEPT_DEPLOYMENT = 18; + private static final int METHODID_DELETE_INTERCEPT_DEPLOYMENT = 19; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INTERCEPT_ENDPOINT_GROUPS: + serviceImpl.listInterceptEndpointGroups( + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse>) + responseObserver); + break; + case METHODID_GET_INTERCEPT_ENDPOINT_GROUP: + serviceImpl.getInterceptEndpointGroup( + (com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup>) + responseObserver); + break; + case METHODID_CREATE_INTERCEPT_ENDPOINT_GROUP: + serviceImpl.createInterceptEndpointGroup( + (com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INTERCEPT_ENDPOINT_GROUP: + serviceImpl.updateInterceptEndpointGroup( + (com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INTERCEPT_ENDPOINT_GROUP: + serviceImpl.deleteInterceptEndpointGroup( + (com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS: + serviceImpl.listInterceptEndpointGroupAssociations( + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1 + .ListInterceptEndpointGroupAssociationsResponse>) + responseObserver); + break; + case METHODID_GET_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION: + serviceImpl.getInterceptEndpointGroupAssociation( + (com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation>) + responseObserver); + break; + case METHODID_CREATE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION: + serviceImpl.createInterceptEndpointGroupAssociation( + (com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION: + serviceImpl.updateInterceptEndpointGroupAssociation( + (com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION: + serviceImpl.deleteInterceptEndpointGroupAssociation( + (com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_INTERCEPT_DEPLOYMENT_GROUPS: + serviceImpl.listInterceptDeploymentGroups( + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse>) + responseObserver); + break; + case METHODID_GET_INTERCEPT_DEPLOYMENT_GROUP: + serviceImpl.getInterceptDeploymentGroup( + (com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup>) + responseObserver); + break; + case METHODID_CREATE_INTERCEPT_DEPLOYMENT_GROUP: + serviceImpl.createInterceptDeploymentGroup( + (com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INTERCEPT_DEPLOYMENT_GROUP: + serviceImpl.updateInterceptDeploymentGroup( + (com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INTERCEPT_DEPLOYMENT_GROUP: + serviceImpl.deleteInterceptDeploymentGroup( + (com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_INTERCEPT_DEPLOYMENTS: + serviceImpl.listInterceptDeployments( + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse>) + responseObserver); + break; + case METHODID_GET_INTERCEPT_DEPLOYMENT: + serviceImpl.getInterceptDeployment( + (com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_INTERCEPT_DEPLOYMENT: + serviceImpl.createInterceptDeployment( + (com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INTERCEPT_DEPLOYMENT: + serviceImpl.updateInterceptDeployment( + (com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INTERCEPT_DEPLOYMENT: + serviceImpl.deleteInterceptDeployment( + (com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInterceptEndpointGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse>( + service, METHODID_LIST_INTERCEPT_ENDPOINT_GROUPS))) + .addMethod( + getGetInterceptEndpointGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup>( + service, METHODID_GET_INTERCEPT_ENDPOINT_GROUP))) + .addMethod( + getCreateInterceptEndpointGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_INTERCEPT_ENDPOINT_GROUP))) + .addMethod( + getUpdateInterceptEndpointGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_INTERCEPT_ENDPOINT_GROUP))) + .addMethod( + getDeleteInterceptEndpointGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_INTERCEPT_ENDPOINT_GROUP))) + .addMethod( + getListInterceptEndpointGroupAssociationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1 + .ListInterceptEndpointGroupAssociationsRequest, + com.google.cloud.networksecurity.v1 + .ListInterceptEndpointGroupAssociationsResponse>( + service, METHODID_LIST_INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS))) + .addMethod( + getGetInterceptEndpointGroupAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation>( + service, METHODID_GET_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION))) + .addMethod( + getCreateInterceptEndpointGroupAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1 + .CreateInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION))) + .addMethod( + getUpdateInterceptEndpointGroupAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1 + .UpdateInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION))) + .addMethod( + getDeleteInterceptEndpointGroupAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1 + .DeleteInterceptEndpointGroupAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION))) + .addMethod( + getListInterceptDeploymentGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse>( + service, METHODID_LIST_INTERCEPT_DEPLOYMENT_GROUPS))) + .addMethod( + getGetInterceptDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup>( + service, METHODID_GET_INTERCEPT_DEPLOYMENT_GROUP))) + .addMethod( + getCreateInterceptDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_INTERCEPT_DEPLOYMENT_GROUP))) + .addMethod( + getUpdateInterceptDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_INTERCEPT_DEPLOYMENT_GROUP))) + .addMethod( + getDeleteInterceptDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_INTERCEPT_DEPLOYMENT_GROUP))) + .addMethod( + getListInterceptDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse>( + service, METHODID_LIST_INTERCEPT_DEPLOYMENTS))) + .addMethod( + getGetInterceptDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest, + com.google.cloud.networksecurity.v1.InterceptDeployment>( + service, METHODID_GET_INTERCEPT_DEPLOYMENT))) + .addMethod( + getCreateInterceptDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_INTERCEPT_DEPLOYMENT))) + .addMethod( + getUpdateInterceptDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_INTERCEPT_DEPLOYMENT))) + .addMethod( + getDeleteInterceptDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_INTERCEPT_DEPLOYMENT))) + .build(); + } + + private abstract static class InterceptBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + InterceptBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Intercept"); + } + } + + private static final class InterceptFileDescriptorSupplier + extends InterceptBaseDescriptorSupplier { + InterceptFileDescriptorSupplier() {} + } + + private static final class InterceptMethodDescriptorSupplier + extends InterceptBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + InterceptMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (InterceptGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new InterceptFileDescriptorSupplier()) + .addMethod(getListInterceptEndpointGroupsMethod()) + .addMethod(getGetInterceptEndpointGroupMethod()) + .addMethod(getCreateInterceptEndpointGroupMethod()) + .addMethod(getUpdateInterceptEndpointGroupMethod()) + .addMethod(getDeleteInterceptEndpointGroupMethod()) + .addMethod(getListInterceptEndpointGroupAssociationsMethod()) + .addMethod(getGetInterceptEndpointGroupAssociationMethod()) + .addMethod(getCreateInterceptEndpointGroupAssociationMethod()) + .addMethod(getUpdateInterceptEndpointGroupAssociationMethod()) + .addMethod(getDeleteInterceptEndpointGroupAssociationMethod()) + .addMethod(getListInterceptDeploymentGroupsMethod()) + .addMethod(getGetInterceptDeploymentGroupMethod()) + .addMethod(getCreateInterceptDeploymentGroupMethod()) + .addMethod(getUpdateInterceptDeploymentGroupMethod()) + .addMethod(getDeleteInterceptDeploymentGroupMethod()) + .addMethod(getListInterceptDeploymentsMethod()) + .addMethod(getGetInterceptDeploymentMethod()) + .addMethod(getCreateInterceptDeploymentMethod()) + .addMethod(getUpdateInterceptDeploymentMethod()) + .addMethod(getDeleteInterceptDeploymentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringGrpc.java new file mode 100644 index 000000000000..abb422a27e82 --- /dev/null +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringGrpc.java @@ -0,0 +1,3245 @@ +/* + * Copyright 2026 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. + */ +package com.google.cloud.networksecurity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                                                                              + * PM2 is the "out-of-band" flavor of the Network Security Integrations product.
                                                                                              + * 
                                                                                              + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class MirroringGrpc { + + private MirroringGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.networksecurity.v1.Mirroring"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse> + getListMirroringEndpointGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMirroringEndpointGroups", + requestType = com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse> + getListMirroringEndpointGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse> + getListMirroringEndpointGroupsMethod; + if ((getListMirroringEndpointGroupsMethod = MirroringGrpc.getListMirroringEndpointGroupsMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getListMirroringEndpointGroupsMethod = + MirroringGrpc.getListMirroringEndpointGroupsMethod) + == null) { + MirroringGrpc.getListMirroringEndpointGroupsMethod = + getListMirroringEndpointGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMirroringEndpointGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListMirroringEndpointGroupsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("ListMirroringEndpointGroups")) + .build(); + } + } + } + return getListMirroringEndpointGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup> + getGetMirroringEndpointGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMirroringEndpointGroup", + requestType = com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest.class, + responseType = com.google.cloud.networksecurity.v1.MirroringEndpointGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup> + getGetMirroringEndpointGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup> + getGetMirroringEndpointGroupMethod; + if ((getGetMirroringEndpointGroupMethod = MirroringGrpc.getGetMirroringEndpointGroupMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getGetMirroringEndpointGroupMethod = MirroringGrpc.getGetMirroringEndpointGroupMethod) + == null) { + MirroringGrpc.getGetMirroringEndpointGroupMethod = + getGetMirroringEndpointGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMirroringEndpointGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("GetMirroringEndpointGroup")) + .build(); + } + } + } + return getGetMirroringEndpointGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getCreateMirroringEndpointGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMirroringEndpointGroup", + requestType = com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getCreateMirroringEndpointGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getCreateMirroringEndpointGroupMethod; + if ((getCreateMirroringEndpointGroupMethod = + MirroringGrpc.getCreateMirroringEndpointGroupMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getCreateMirroringEndpointGroupMethod = + MirroringGrpc.getCreateMirroringEndpointGroupMethod) + == null) { + MirroringGrpc.getCreateMirroringEndpointGroupMethod = + getCreateMirroringEndpointGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMirroringEndpointGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .CreateMirroringEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("CreateMirroringEndpointGroup")) + .build(); + } + } + } + return getCreateMirroringEndpointGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getUpdateMirroringEndpointGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMirroringEndpointGroup", + requestType = com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getUpdateMirroringEndpointGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getUpdateMirroringEndpointGroupMethod; + if ((getUpdateMirroringEndpointGroupMethod = + MirroringGrpc.getUpdateMirroringEndpointGroupMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getUpdateMirroringEndpointGroupMethod = + MirroringGrpc.getUpdateMirroringEndpointGroupMethod) + == null) { + MirroringGrpc.getUpdateMirroringEndpointGroupMethod = + getUpdateMirroringEndpointGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMirroringEndpointGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .UpdateMirroringEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("UpdateMirroringEndpointGroup")) + .build(); + } + } + } + return getUpdateMirroringEndpointGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getDeleteMirroringEndpointGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMirroringEndpointGroup", + requestType = com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getDeleteMirroringEndpointGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest, + com.google.longrunning.Operation> + getDeleteMirroringEndpointGroupMethod; + if ((getDeleteMirroringEndpointGroupMethod = + MirroringGrpc.getDeleteMirroringEndpointGroupMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getDeleteMirroringEndpointGroupMethod = + MirroringGrpc.getDeleteMirroringEndpointGroupMethod) + == null) { + MirroringGrpc.getDeleteMirroringEndpointGroupMethod = + getDeleteMirroringEndpointGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMirroringEndpointGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .DeleteMirroringEndpointGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("DeleteMirroringEndpointGroup")) + .build(); + } + } + } + return getDeleteMirroringEndpointGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse> + getListMirroringEndpointGroupAssociationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMirroringEndpointGroupAssociations", + requestType = + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest.class, + responseType = + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse> + getListMirroringEndpointGroupAssociationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse> + getListMirroringEndpointGroupAssociationsMethod; + if ((getListMirroringEndpointGroupAssociationsMethod = + MirroringGrpc.getListMirroringEndpointGroupAssociationsMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getListMirroringEndpointGroupAssociationsMethod = + MirroringGrpc.getListMirroringEndpointGroupAssociationsMethod) + == null) { + MirroringGrpc.getListMirroringEndpointGroupAssociationsMethod = + getListMirroringEndpointGroupAssociationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListMirroringEndpointGroupAssociations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListMirroringEndpointGroupAssociationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListMirroringEndpointGroupAssociationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier( + "ListMirroringEndpointGroupAssociations")) + .build(); + } + } + } + return getListMirroringEndpointGroupAssociationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation> + getGetMirroringEndpointGroupAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMirroringEndpointGroupAssociation", + requestType = + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest.class, + responseType = com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation> + getGetMirroringEndpointGroupAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation> + getGetMirroringEndpointGroupAssociationMethod; + if ((getGetMirroringEndpointGroupAssociationMethod = + MirroringGrpc.getGetMirroringEndpointGroupAssociationMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getGetMirroringEndpointGroupAssociationMethod = + MirroringGrpc.getGetMirroringEndpointGroupAssociationMethod) + == null) { + MirroringGrpc.getGetMirroringEndpointGroupAssociationMethod = + getGetMirroringEndpointGroupAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetMirroringEndpointGroupAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .GetMirroringEndpointGroupAssociationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier( + "GetMirroringEndpointGroupAssociation")) + .build(); + } + } + } + return getGetMirroringEndpointGroupAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getCreateMirroringEndpointGroupAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMirroringEndpointGroupAssociation", + requestType = + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getCreateMirroringEndpointGroupAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getCreateMirroringEndpointGroupAssociationMethod; + if ((getCreateMirroringEndpointGroupAssociationMethod = + MirroringGrpc.getCreateMirroringEndpointGroupAssociationMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getCreateMirroringEndpointGroupAssociationMethod = + MirroringGrpc.getCreateMirroringEndpointGroupAssociationMethod) + == null) { + MirroringGrpc.getCreateMirroringEndpointGroupAssociationMethod = + getCreateMirroringEndpointGroupAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateMirroringEndpointGroupAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .CreateMirroringEndpointGroupAssociationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier( + "CreateMirroringEndpointGroupAssociation")) + .build(); + } + } + } + return getCreateMirroringEndpointGroupAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getUpdateMirroringEndpointGroupAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMirroringEndpointGroupAssociation", + requestType = + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getUpdateMirroringEndpointGroupAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getUpdateMirroringEndpointGroupAssociationMethod; + if ((getUpdateMirroringEndpointGroupAssociationMethod = + MirroringGrpc.getUpdateMirroringEndpointGroupAssociationMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getUpdateMirroringEndpointGroupAssociationMethod = + MirroringGrpc.getUpdateMirroringEndpointGroupAssociationMethod) + == null) { + MirroringGrpc.getUpdateMirroringEndpointGroupAssociationMethod = + getUpdateMirroringEndpointGroupAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateMirroringEndpointGroupAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .UpdateMirroringEndpointGroupAssociationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier( + "UpdateMirroringEndpointGroupAssociation")) + .build(); + } + } + } + return getUpdateMirroringEndpointGroupAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getDeleteMirroringEndpointGroupAssociationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMirroringEndpointGroupAssociation", + requestType = + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getDeleteMirroringEndpointGroupAssociationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation> + getDeleteMirroringEndpointGroupAssociationMethod; + if ((getDeleteMirroringEndpointGroupAssociationMethod = + MirroringGrpc.getDeleteMirroringEndpointGroupAssociationMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getDeleteMirroringEndpointGroupAssociationMethod = + MirroringGrpc.getDeleteMirroringEndpointGroupAssociationMethod) + == null) { + MirroringGrpc.getDeleteMirroringEndpointGroupAssociationMethod = + getDeleteMirroringEndpointGroupAssociationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteMirroringEndpointGroupAssociation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .DeleteMirroringEndpointGroupAssociationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier( + "DeleteMirroringEndpointGroupAssociation")) + .build(); + } + } + } + return getDeleteMirroringEndpointGroupAssociationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse> + getListMirroringDeploymentGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMirroringDeploymentGroups", + requestType = com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest.class, + responseType = + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse> + getListMirroringDeploymentGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse> + getListMirroringDeploymentGroupsMethod; + if ((getListMirroringDeploymentGroupsMethod = + MirroringGrpc.getListMirroringDeploymentGroupsMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getListMirroringDeploymentGroupsMethod = + MirroringGrpc.getListMirroringDeploymentGroupsMethod) + == null) { + MirroringGrpc.getListMirroringDeploymentGroupsMethod = + getListMirroringDeploymentGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMirroringDeploymentGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListMirroringDeploymentGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListMirroringDeploymentGroupsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("ListMirroringDeploymentGroups")) + .build(); + } + } + } + return getListMirroringDeploymentGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup> + getGetMirroringDeploymentGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMirroringDeploymentGroup", + requestType = com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest.class, + responseType = com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup> + getGetMirroringDeploymentGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup> + getGetMirroringDeploymentGroupMethod; + if ((getGetMirroringDeploymentGroupMethod = MirroringGrpc.getGetMirroringDeploymentGroupMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getGetMirroringDeploymentGroupMethod = + MirroringGrpc.getGetMirroringDeploymentGroupMethod) + == null) { + MirroringGrpc.getGetMirroringDeploymentGroupMethod = + getGetMirroringDeploymentGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMirroringDeploymentGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("GetMirroringDeploymentGroup")) + .build(); + } + } + } + return getGetMirroringDeploymentGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getCreateMirroringDeploymentGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMirroringDeploymentGroup", + requestType = com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getCreateMirroringDeploymentGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getCreateMirroringDeploymentGroupMethod; + if ((getCreateMirroringDeploymentGroupMethod = + MirroringGrpc.getCreateMirroringDeploymentGroupMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getCreateMirroringDeploymentGroupMethod = + MirroringGrpc.getCreateMirroringDeploymentGroupMethod) + == null) { + MirroringGrpc.getCreateMirroringDeploymentGroupMethod = + getCreateMirroringDeploymentGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMirroringDeploymentGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .CreateMirroringDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("CreateMirroringDeploymentGroup")) + .build(); + } + } + } + return getCreateMirroringDeploymentGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getUpdateMirroringDeploymentGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMirroringDeploymentGroup", + requestType = com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getUpdateMirroringDeploymentGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getUpdateMirroringDeploymentGroupMethod; + if ((getUpdateMirroringDeploymentGroupMethod = + MirroringGrpc.getUpdateMirroringDeploymentGroupMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getUpdateMirroringDeploymentGroupMethod = + MirroringGrpc.getUpdateMirroringDeploymentGroupMethod) + == null) { + MirroringGrpc.getUpdateMirroringDeploymentGroupMethod = + getUpdateMirroringDeploymentGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMirroringDeploymentGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .UpdateMirroringDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("UpdateMirroringDeploymentGroup")) + .build(); + } + } + } + return getUpdateMirroringDeploymentGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getDeleteMirroringDeploymentGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMirroringDeploymentGroup", + requestType = com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getDeleteMirroringDeploymentGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest, + com.google.longrunning.Operation> + getDeleteMirroringDeploymentGroupMethod; + if ((getDeleteMirroringDeploymentGroupMethod = + MirroringGrpc.getDeleteMirroringDeploymentGroupMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getDeleteMirroringDeploymentGroupMethod = + MirroringGrpc.getDeleteMirroringDeploymentGroupMethod) + == null) { + MirroringGrpc.getDeleteMirroringDeploymentGroupMethod = + getDeleteMirroringDeploymentGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMirroringDeploymentGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .DeleteMirroringDeploymentGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("DeleteMirroringDeploymentGroup")) + .build(); + } + } + } + return getDeleteMirroringDeploymentGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse> + getListMirroringDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMirroringDeployments", + requestType = com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse> + getListMirroringDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse> + getListMirroringDeploymentsMethod; + if ((getListMirroringDeploymentsMethod = MirroringGrpc.getListMirroringDeploymentsMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getListMirroringDeploymentsMethod = MirroringGrpc.getListMirroringDeploymentsMethod) + == null) { + MirroringGrpc.getListMirroringDeploymentsMethod = + getListMirroringDeploymentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMirroringDeployments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("ListMirroringDeployments")) + .build(); + } + } + } + return getListMirroringDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest, + com.google.cloud.networksecurity.v1.MirroringDeployment> + getGetMirroringDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMirroringDeployment", + requestType = com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest.class, + responseType = com.google.cloud.networksecurity.v1.MirroringDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest, + com.google.cloud.networksecurity.v1.MirroringDeployment> + getGetMirroringDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest, + com.google.cloud.networksecurity.v1.MirroringDeployment> + getGetMirroringDeploymentMethod; + if ((getGetMirroringDeploymentMethod = MirroringGrpc.getGetMirroringDeploymentMethod) == null) { + synchronized (MirroringGrpc.class) { + if ((getGetMirroringDeploymentMethod = MirroringGrpc.getGetMirroringDeploymentMethod) + == null) { + MirroringGrpc.getGetMirroringDeploymentMethod = + getGetMirroringDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMirroringDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.MirroringDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("GetMirroringDeployment")) + .build(); + } + } + } + return getGetMirroringDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest, + com.google.longrunning.Operation> + getCreateMirroringDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMirroringDeployment", + requestType = com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest, + com.google.longrunning.Operation> + getCreateMirroringDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest, + com.google.longrunning.Operation> + getCreateMirroringDeploymentMethod; + if ((getCreateMirroringDeploymentMethod = MirroringGrpc.getCreateMirroringDeploymentMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getCreateMirroringDeploymentMethod = MirroringGrpc.getCreateMirroringDeploymentMethod) + == null) { + MirroringGrpc.getCreateMirroringDeploymentMethod = + getCreateMirroringDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMirroringDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("CreateMirroringDeployment")) + .build(); + } + } + } + return getCreateMirroringDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest, + com.google.longrunning.Operation> + getUpdateMirroringDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMirroringDeployment", + requestType = com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest, + com.google.longrunning.Operation> + getUpdateMirroringDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest, + com.google.longrunning.Operation> + getUpdateMirroringDeploymentMethod; + if ((getUpdateMirroringDeploymentMethod = MirroringGrpc.getUpdateMirroringDeploymentMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getUpdateMirroringDeploymentMethod = MirroringGrpc.getUpdateMirroringDeploymentMethod) + == null) { + MirroringGrpc.getUpdateMirroringDeploymentMethod = + getUpdateMirroringDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMirroringDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("UpdateMirroringDeployment")) + .build(); + } + } + } + return getUpdateMirroringDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest, + com.google.longrunning.Operation> + getDeleteMirroringDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMirroringDeployment", + requestType = com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest, + com.google.longrunning.Operation> + getDeleteMirroringDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest, + com.google.longrunning.Operation> + getDeleteMirroringDeploymentMethod; + if ((getDeleteMirroringDeploymentMethod = MirroringGrpc.getDeleteMirroringDeploymentMethod) + == null) { + synchronized (MirroringGrpc.class) { + if ((getDeleteMirroringDeploymentMethod = MirroringGrpc.getDeleteMirroringDeploymentMethod) + == null) { + MirroringGrpc.getDeleteMirroringDeploymentMethod = + getDeleteMirroringDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMirroringDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MirroringMethodDescriptorSupplier("DeleteMirroringDeployment")) + .build(); + } + } + } + return getDeleteMirroringDeploymentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MirroringStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MirroringStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MirroringStub(channel, callOptions); + } + }; + return MirroringStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static MirroringBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MirroringBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MirroringBlockingV2Stub(channel, callOptions); + } + }; + return MirroringBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MirroringBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MirroringBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MirroringBlockingStub(channel, callOptions); + } + }; + return MirroringBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MirroringFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MirroringFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MirroringFutureStub(channel, callOptions); + } + }; + return MirroringFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                                                                              +   * PM2 is the "out-of-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public interface AsyncService { + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + default void listMirroringEndpointGroups( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMirroringEndpointGroupsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + default void getMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMirroringEndpointGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + default void createMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMirroringEndpointGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + default void updateMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMirroringEndpointGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + default void deleteMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMirroringEndpointGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + default void listMirroringEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMirroringEndpointGroupAssociationsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + default void getMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMirroringEndpointGroupAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + default void createMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMirroringEndpointGroupAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + default void updateMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMirroringEndpointGroupAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + default void deleteMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMirroringEndpointGroupAssociationMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + default void listMirroringDeploymentGroups( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMirroringDeploymentGroupsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + default void getMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMirroringDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + default void createMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMirroringDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + default void updateMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMirroringDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + default void deleteMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMirroringDeploymentGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + default void listMirroringDeployments( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMirroringDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + default void getMirroringDeployment( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMirroringDeploymentMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + default void createMirroringDeployment( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMirroringDeploymentMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + default void updateMirroringDeployment( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMirroringDeploymentMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + default void deleteMirroringDeployment( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMirroringDeploymentMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Mirroring. + * + *
                                                                                              +   * PM2 is the "out-of-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public abstract static class MirroringImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return MirroringGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Mirroring. + * + *
                                                                                              +   * PM2 is the "out-of-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public static final class MirroringStub extends io.grpc.stub.AbstractAsyncStub { + private MirroringStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MirroringStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MirroringStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public void listMirroringEndpointGroups( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMirroringEndpointGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public void getMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMirroringEndpointGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public void createMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMirroringEndpointGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public void updateMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMirroringEndpointGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public void deleteMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMirroringEndpointGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public void listMirroringEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMirroringEndpointGroupAssociationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public void getMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMirroringEndpointGroupAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public void createMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getCreateMirroringEndpointGroupAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public void updateMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getUpdateMirroringEndpointGroupAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public void deleteMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getDeleteMirroringEndpointGroupAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public void listMirroringDeploymentGroups( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMirroringDeploymentGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public void getMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMirroringDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public void createMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMirroringDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public void updateMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMirroringDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public void deleteMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMirroringDeploymentGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public void listMirroringDeployments( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMirroringDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public void getMirroringDeployment( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMirroringDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public void createMirroringDeployment( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMirroringDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public void updateMirroringDeployment( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMirroringDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public void deleteMirroringDeployment( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMirroringDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Mirroring. + * + *
                                                                                              +   * PM2 is the "out-of-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public static final class MirroringBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private MirroringBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MirroringBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MirroringBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + listMirroringEndpointGroups( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMirroringEndpointGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMirroringEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMirroringEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMirroringEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMirroringEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + listMirroringEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getListMirroringEndpointGroupAssociationsMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMirroringEndpointGroupAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getCreateMirroringEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getUpdateMirroringEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getDeleteMirroringEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + listMirroringDeploymentGroups( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMirroringDeploymentGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup getMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMirroringDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMirroringDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMirroringDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMirroringDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + listMirroringDeployments( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMirroringDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployment( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMirroringDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createMirroringDeployment( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMirroringDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateMirroringDeployment( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMirroringDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteMirroringDeployment( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMirroringDeploymentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Mirroring. + * + *
                                                                                              +   * PM2 is the "out-of-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public static final class MirroringBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MirroringBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MirroringBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MirroringBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + listMirroringEndpointGroups( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMirroringEndpointGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMirroringEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMirroringEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMirroringEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMirroringEndpointGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + listMirroringEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListMirroringEndpointGroupAssociationsMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMirroringEndpointGroupAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getCreateMirroringEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getUpdateMirroringEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getDeleteMirroringEndpointGroupAssociationMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + listMirroringDeploymentGroups( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMirroringDeploymentGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup getMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMirroringDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMirroringDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMirroringDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMirroringDeploymentGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + listMirroringDeployments( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMirroringDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployment( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMirroringDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createMirroringDeployment( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMirroringDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateMirroringDeployment( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMirroringDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteMirroringDeployment( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMirroringDeploymentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Mirroring. + * + *
                                                                                              +   * PM2 is the "out-of-band" flavor of the Network Security Integrations product.
                                                                                              +   * 
                                                                                              + */ + public static final class MirroringFutureStub + extends io.grpc.stub.AbstractFutureStub { + private MirroringFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MirroringFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MirroringFutureStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists endpoint groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse> + listMirroringEndpointGroups( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMirroringEndpointGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific endpoint group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup> + getMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMirroringEndpointGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates an endpoint group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMirroringEndpointGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Updates an endpoint group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMirroringEndpointGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Deletes an endpoint group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMirroringEndpointGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Lists associations in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse> + listMirroringEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMirroringEndpointGroupAssociationsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific association.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation> + getMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMirroringEndpointGroupAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Creates an association in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getCreateMirroringEndpointGroupAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Updates an association.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getUpdateMirroringEndpointGroupAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes an association.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getDeleteMirroringEndpointGroupAssociationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Lists deployment groups in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse> + listMirroringDeploymentGroups( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMirroringDeploymentGroupsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment group.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup> + getMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMirroringDeploymentGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment group in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMirroringDeploymentGroupMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment group.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMirroringDeploymentGroupMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment group.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMirroringDeploymentGroupMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                                                                              +     * Lists deployments in a given project and location.
                                                                                              +     * See https://google.aip.dev/132.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse> + listMirroringDeployments( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMirroringDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Gets a specific deployment.
                                                                                              +     * See https://google.aip.dev/131.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.MirroringDeployment> + getMirroringDeployment( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMirroringDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates a deployment in a given project and location.
                                                                                              +     * See https://google.aip.dev/133.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createMirroringDeployment( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMirroringDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Updates a deployment.
                                                                                              +     * See https://google.aip.dev/134.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateMirroringDeployment( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMirroringDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a deployment.
                                                                                              +     * See https://google.aip.dev/135.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteMirroringDeployment( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMirroringDeploymentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MIRRORING_ENDPOINT_GROUPS = 0; + private static final int METHODID_GET_MIRRORING_ENDPOINT_GROUP = 1; + private static final int METHODID_CREATE_MIRRORING_ENDPOINT_GROUP = 2; + private static final int METHODID_UPDATE_MIRRORING_ENDPOINT_GROUP = 3; + private static final int METHODID_DELETE_MIRRORING_ENDPOINT_GROUP = 4; + private static final int METHODID_LIST_MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS = 5; + private static final int METHODID_GET_MIRRORING_ENDPOINT_GROUP_ASSOCIATION = 6; + private static final int METHODID_CREATE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION = 7; + private static final int METHODID_UPDATE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION = 8; + private static final int METHODID_DELETE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION = 9; + private static final int METHODID_LIST_MIRRORING_DEPLOYMENT_GROUPS = 10; + private static final int METHODID_GET_MIRRORING_DEPLOYMENT_GROUP = 11; + private static final int METHODID_CREATE_MIRRORING_DEPLOYMENT_GROUP = 12; + private static final int METHODID_UPDATE_MIRRORING_DEPLOYMENT_GROUP = 13; + private static final int METHODID_DELETE_MIRRORING_DEPLOYMENT_GROUP = 14; + private static final int METHODID_LIST_MIRRORING_DEPLOYMENTS = 15; + private static final int METHODID_GET_MIRRORING_DEPLOYMENT = 16; + private static final int METHODID_CREATE_MIRRORING_DEPLOYMENT = 17; + private static final int METHODID_UPDATE_MIRRORING_DEPLOYMENT = 18; + private static final int METHODID_DELETE_MIRRORING_DEPLOYMENT = 19; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_MIRRORING_ENDPOINT_GROUPS: + serviceImpl.listMirroringEndpointGroups( + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse>) + responseObserver); + break; + case METHODID_GET_MIRRORING_ENDPOINT_GROUP: + serviceImpl.getMirroringEndpointGroup( + (com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup>) + responseObserver); + break; + case METHODID_CREATE_MIRRORING_ENDPOINT_GROUP: + serviceImpl.createMirroringEndpointGroup( + (com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MIRRORING_ENDPOINT_GROUP: + serviceImpl.updateMirroringEndpointGroup( + (com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MIRRORING_ENDPOINT_GROUP: + serviceImpl.deleteMirroringEndpointGroup( + (com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS: + serviceImpl.listMirroringEndpointGroupAssociations( + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1 + .ListMirroringEndpointGroupAssociationsResponse>) + responseObserver); + break; + case METHODID_GET_MIRRORING_ENDPOINT_GROUP_ASSOCIATION: + serviceImpl.getMirroringEndpointGroupAssociation( + (com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation>) + responseObserver); + break; + case METHODID_CREATE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION: + serviceImpl.createMirroringEndpointGroupAssociation( + (com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION: + serviceImpl.updateMirroringEndpointGroupAssociation( + (com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION: + serviceImpl.deleteMirroringEndpointGroupAssociation( + (com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MIRRORING_DEPLOYMENT_GROUPS: + serviceImpl.listMirroringDeploymentGroups( + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse>) + responseObserver); + break; + case METHODID_GET_MIRRORING_DEPLOYMENT_GROUP: + serviceImpl.getMirroringDeploymentGroup( + (com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup>) + responseObserver); + break; + case METHODID_CREATE_MIRRORING_DEPLOYMENT_GROUP: + serviceImpl.createMirroringDeploymentGroup( + (com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MIRRORING_DEPLOYMENT_GROUP: + serviceImpl.updateMirroringDeploymentGroup( + (com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MIRRORING_DEPLOYMENT_GROUP: + serviceImpl.deleteMirroringDeploymentGroup( + (com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MIRRORING_DEPLOYMENTS: + serviceImpl.listMirroringDeployments( + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse>) + responseObserver); + break; + case METHODID_GET_MIRRORING_DEPLOYMENT: + serviceImpl.getMirroringDeployment( + (com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MIRRORING_DEPLOYMENT: + serviceImpl.createMirroringDeployment( + (com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MIRRORING_DEPLOYMENT: + serviceImpl.updateMirroringDeployment( + (com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MIRRORING_DEPLOYMENT: + serviceImpl.deleteMirroringDeployment( + (com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMirroringEndpointGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse>( + service, METHODID_LIST_MIRRORING_ENDPOINT_GROUPS))) + .addMethod( + getGetMirroringEndpointGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup>( + service, METHODID_GET_MIRRORING_ENDPOINT_GROUP))) + .addMethod( + getCreateMirroringEndpointGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_MIRRORING_ENDPOINT_GROUP))) + .addMethod( + getUpdateMirroringEndpointGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_MIRRORING_ENDPOINT_GROUP))) + .addMethod( + getDeleteMirroringEndpointGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_MIRRORING_ENDPOINT_GROUP))) + .addMethod( + getListMirroringEndpointGroupAssociationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1 + .ListMirroringEndpointGroupAssociationsRequest, + com.google.cloud.networksecurity.v1 + .ListMirroringEndpointGroupAssociationsResponse>( + service, METHODID_LIST_MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS))) + .addMethod( + getGetMirroringEndpointGroupAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation>( + service, METHODID_GET_MIRRORING_ENDPOINT_GROUP_ASSOCIATION))) + .addMethod( + getCreateMirroringEndpointGroupAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1 + .CreateMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION))) + .addMethod( + getUpdateMirroringEndpointGroupAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1 + .UpdateMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION))) + .addMethod( + getDeleteMirroringEndpointGroupAssociationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1 + .DeleteMirroringEndpointGroupAssociationRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_MIRRORING_ENDPOINT_GROUP_ASSOCIATION))) + .addMethod( + getListMirroringDeploymentGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse>( + service, METHODID_LIST_MIRRORING_DEPLOYMENT_GROUPS))) + .addMethod( + getGetMirroringDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup>( + service, METHODID_GET_MIRRORING_DEPLOYMENT_GROUP))) + .addMethod( + getCreateMirroringDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_MIRRORING_DEPLOYMENT_GROUP))) + .addMethod( + getUpdateMirroringDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_MIRRORING_DEPLOYMENT_GROUP))) + .addMethod( + getDeleteMirroringDeploymentGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_MIRRORING_DEPLOYMENT_GROUP))) + .addMethod( + getListMirroringDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse>( + service, METHODID_LIST_MIRRORING_DEPLOYMENTS))) + .addMethod( + getGetMirroringDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest, + com.google.cloud.networksecurity.v1.MirroringDeployment>( + service, METHODID_GET_MIRRORING_DEPLOYMENT))) + .addMethod( + getCreateMirroringDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_MIRRORING_DEPLOYMENT))) + .addMethod( + getUpdateMirroringDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_MIRRORING_DEPLOYMENT))) + .addMethod( + getDeleteMirroringDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_MIRRORING_DEPLOYMENT))) + .build(); + } + + private abstract static class MirroringBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MirroringBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Mirroring"); + } + } + + private static final class MirroringFileDescriptorSupplier + extends MirroringBaseDescriptorSupplier { + MirroringFileDescriptorSupplier() {} + } + + private static final class MirroringMethodDescriptorSupplier + extends MirroringBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + MirroringMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MirroringGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MirroringFileDescriptorSupplier()) + .addMethod(getListMirroringEndpointGroupsMethod()) + .addMethod(getGetMirroringEndpointGroupMethod()) + .addMethod(getCreateMirroringEndpointGroupMethod()) + .addMethod(getUpdateMirroringEndpointGroupMethod()) + .addMethod(getDeleteMirroringEndpointGroupMethod()) + .addMethod(getListMirroringEndpointGroupAssociationsMethod()) + .addMethod(getGetMirroringEndpointGroupAssociationMethod()) + .addMethod(getCreateMirroringEndpointGroupAssociationMethod()) + .addMethod(getUpdateMirroringEndpointGroupAssociationMethod()) + .addMethod(getDeleteMirroringEndpointGroupAssociationMethod()) + .addMethod(getListMirroringDeploymentGroupsMethod()) + .addMethod(getGetMirroringDeploymentGroupMethod()) + .addMethod(getCreateMirroringDeploymentGroupMethod()) + .addMethod(getUpdateMirroringDeploymentGroupMethod()) + .addMethod(getDeleteMirroringDeploymentGroupMethod()) + .addMethod(getListMirroringDeploymentsMethod()) + .addMethod(getGetMirroringDeploymentMethod()) + .addMethod(getCreateMirroringDeploymentMethod()) + .addMethod(getUpdateMirroringDeploymentMethod()) + .addMethod(getDeleteMirroringDeploymentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java index 49df9f32dc3c..555fa24dc9d8 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityGrpc.java @@ -290,6 +290,277 @@ private NetworkSecurityGrpc() {} return getDeleteAuthorizationPolicyMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest, + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse> + getListBackendAuthenticationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackendAuthenticationConfigs", + requestType = + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest.class, + responseType = + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest, + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse> + getListBackendAuthenticationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest, + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse> + getListBackendAuthenticationConfigsMethod; + if ((getListBackendAuthenticationConfigsMethod = + NetworkSecurityGrpc.getListBackendAuthenticationConfigsMethod) + == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getListBackendAuthenticationConfigsMethod = + NetworkSecurityGrpc.getListBackendAuthenticationConfigsMethod) + == null) { + NetworkSecurityGrpc.getListBackendAuthenticationConfigsMethod = + getListBackendAuthenticationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBackendAuthenticationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListBackendAuthenticationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListBackendAuthenticationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkSecurityMethodDescriptorSupplier( + "ListBackendAuthenticationConfigs")) + .build(); + } + } + } + return getListBackendAuthenticationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig> + getGetBackendAuthenticationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackendAuthenticationConfig", + requestType = com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest.class, + responseType = com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig> + getGetBackendAuthenticationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig> + getGetBackendAuthenticationConfigMethod; + if ((getGetBackendAuthenticationConfigMethod = + NetworkSecurityGrpc.getGetBackendAuthenticationConfigMethod) + == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getGetBackendAuthenticationConfigMethod = + NetworkSecurityGrpc.getGetBackendAuthenticationConfigMethod) + == null) { + NetworkSecurityGrpc.getGetBackendAuthenticationConfigMethod = + getGetBackendAuthenticationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetBackendAuthenticationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .GetBackendAuthenticationConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new NetworkSecurityMethodDescriptorSupplier( + "GetBackendAuthenticationConfig")) + .build(); + } + } + } + return getGetBackendAuthenticationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getCreateBackendAuthenticationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackendAuthenticationConfig", + requestType = + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getCreateBackendAuthenticationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getCreateBackendAuthenticationConfigMethod; + if ((getCreateBackendAuthenticationConfigMethod = + NetworkSecurityGrpc.getCreateBackendAuthenticationConfigMethod) + == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getCreateBackendAuthenticationConfigMethod = + NetworkSecurityGrpc.getCreateBackendAuthenticationConfigMethod) + == null) { + NetworkSecurityGrpc.getCreateBackendAuthenticationConfigMethod = + getCreateBackendAuthenticationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateBackendAuthenticationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .CreateBackendAuthenticationConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkSecurityMethodDescriptorSupplier( + "CreateBackendAuthenticationConfig")) + .build(); + } + } + } + return getCreateBackendAuthenticationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getUpdateBackendAuthenticationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackendAuthenticationConfig", + requestType = + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getUpdateBackendAuthenticationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getUpdateBackendAuthenticationConfigMethod; + if ((getUpdateBackendAuthenticationConfigMethod = + NetworkSecurityGrpc.getUpdateBackendAuthenticationConfigMethod) + == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getUpdateBackendAuthenticationConfigMethod = + NetworkSecurityGrpc.getUpdateBackendAuthenticationConfigMethod) + == null) { + NetworkSecurityGrpc.getUpdateBackendAuthenticationConfigMethod = + getUpdateBackendAuthenticationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateBackendAuthenticationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .UpdateBackendAuthenticationConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkSecurityMethodDescriptorSupplier( + "UpdateBackendAuthenticationConfig")) + .build(); + } + } + } + return getUpdateBackendAuthenticationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getDeleteBackendAuthenticationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackendAuthenticationConfig", + requestType = + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getDeleteBackendAuthenticationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest, + com.google.longrunning.Operation> + getDeleteBackendAuthenticationConfigMethod; + if ((getDeleteBackendAuthenticationConfigMethod = + NetworkSecurityGrpc.getDeleteBackendAuthenticationConfigMethod) + == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getDeleteBackendAuthenticationConfigMethod = + NetworkSecurityGrpc.getDeleteBackendAuthenticationConfigMethod) + == null) { + NetworkSecurityGrpc.getDeleteBackendAuthenticationConfigMethod = + getDeleteBackendAuthenticationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteBackendAuthenticationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .DeleteBackendAuthenticationConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkSecurityMethodDescriptorSupplier( + "DeleteBackendAuthenticationConfig")) + .build(); + } + } + } + return getDeleteBackendAuthenticationConfigMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest, com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> @@ -780,142 +1051,3574 @@ private NetworkSecurityGrpc() {} return getDeleteClientTlsPolicyMethod; } - /** Creates a new async stub that supports all call types for the service */ - public static NetworkSecurityStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityStub(channel, callOptions); - } - }; - return NetworkSecurityStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse> + getListGatewaySecurityPoliciesMethod; - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static NetworkSecurityBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityBlockingV2Stub(channel, callOptions); - } - }; - return NetworkSecurityBlockingV2Stub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGatewaySecurityPolicies", + requestType = com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse> + getListGatewaySecurityPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse> + getListGatewaySecurityPoliciesMethod; + if ((getListGatewaySecurityPoliciesMethod = + NetworkSecurityGrpc.getListGatewaySecurityPoliciesMethod) + == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getListGatewaySecurityPoliciesMethod = + NetworkSecurityGrpc.getListGatewaySecurityPoliciesMethod) + == null) { + NetworkSecurityGrpc.getListGatewaySecurityPoliciesMethod = + getListGatewaySecurityPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListGatewaySecurityPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1 + .ListGatewaySecurityPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkSecurityMethodDescriptorSupplier( + "ListGatewaySecurityPolicies")) + .build(); + } + } + } + return getListGatewaySecurityPoliciesMethod; } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static NetworkSecurityBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityBlockingStub(channel, callOptions); - } - }; - return NetworkSecurityBlockingStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy> + getGetGatewaySecurityPolicyMethod; - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static NetworkSecurityFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NetworkSecurityFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityFutureStub(channel, callOptions); - } - }; - return NetworkSecurityFutureStub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGatewaySecurityPolicy", + requestType = com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest.class, + responseType = com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy> + getGetGatewaySecurityPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy> + getGetGatewaySecurityPolicyMethod; + if ((getGetGatewaySecurityPolicyMethod = NetworkSecurityGrpc.getGetGatewaySecurityPolicyMethod) + == null) { + synchronized (NetworkSecurityGrpc.class) { + if ((getGetGatewaySecurityPolicyMethod = + NetworkSecurityGrpc.getGetGatewaySecurityPolicyMethod) + == null) { + NetworkSecurityGrpc.getGetGatewaySecurityPolicyMethod = + getGetGatewaySecurityPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetGatewaySecurityPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new NetworkSecurityMethodDescriptorSupplier("GetGatewaySecurityPolicy")) + .build(); + } + } + } + return getGetGatewaySecurityPolicyMethod; } - /** - * - * - *
                                                                                              -   * Network Security API provides resources to configure authentication and
                                                                                              -   * authorization policies. Refer to per API resource documentation for more
                                                                                              -   * information.
                                                                                              -   * 
                                                                                              - */ - public interface AsyncService { + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest, + com.google.longrunning.Operation> + getCreateGatewaySecurityPolicyMethod; - /** - * - * - *
                                                                                              -     * Lists AuthorizationPolicies in a given project and location.
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateGatewaySecurityPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateGatewaySecurityPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getCreateGatewaySecurityPolicyMethod;
                                                                                              +    if ((getCreateGatewaySecurityPolicyMethod =
                                                                                              +            NetworkSecurityGrpc.getCreateGatewaySecurityPolicyMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getCreateGatewaySecurityPolicyMethod =
                                                                                              +                NetworkSecurityGrpc.getCreateGatewaySecurityPolicyMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getCreateGatewaySecurityPolicyMethod =
                                                                                              +              getCreateGatewaySecurityPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "CreateGatewaySecurityPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier(
                                                                                              +                              "CreateGatewaySecurityPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getCreateGatewaySecurityPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateGatewaySecurityPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "UpdateGatewaySecurityPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateGatewaySecurityPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getUpdateGatewaySecurityPolicyMethod;
                                                                                              +    if ((getUpdateGatewaySecurityPolicyMethod =
                                                                                              +            NetworkSecurityGrpc.getUpdateGatewaySecurityPolicyMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getUpdateGatewaySecurityPolicyMethod =
                                                                                              +                NetworkSecurityGrpc.getUpdateGatewaySecurityPolicyMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getUpdateGatewaySecurityPolicyMethod =
                                                                                              +              getUpdateGatewaySecurityPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "UpdateGatewaySecurityPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier(
                                                                                              +                              "UpdateGatewaySecurityPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getUpdateGatewaySecurityPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteGatewaySecurityPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteGatewaySecurityPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteGatewaySecurityPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getDeleteGatewaySecurityPolicyMethod;
                                                                                              +    if ((getDeleteGatewaySecurityPolicyMethod =
                                                                                              +            NetworkSecurityGrpc.getDeleteGatewaySecurityPolicyMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getDeleteGatewaySecurityPolicyMethod =
                                                                                              +                NetworkSecurityGrpc.getDeleteGatewaySecurityPolicyMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getDeleteGatewaySecurityPolicyMethod =
                                                                                              +              getDeleteGatewaySecurityPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "DeleteGatewaySecurityPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier(
                                                                                              +                              "DeleteGatewaySecurityPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getDeleteGatewaySecurityPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse>
                                                                                              +      getListGatewaySecurityPolicyRulesMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "ListGatewaySecurityPolicyRules",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest.class,
                                                                                              +      responseType =
                                                                                              +          com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse>
                                                                                              +      getListGatewaySecurityPolicyRulesMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest,
                                                                                              +            com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse>
                                                                                              +        getListGatewaySecurityPolicyRulesMethod;
                                                                                              +    if ((getListGatewaySecurityPolicyRulesMethod =
                                                                                              +            NetworkSecurityGrpc.getListGatewaySecurityPolicyRulesMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getListGatewaySecurityPolicyRulesMethod =
                                                                                              +                NetworkSecurityGrpc.getListGatewaySecurityPolicyRulesMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getListGatewaySecurityPolicyRulesMethod =
                                                                                              +              getListGatewaySecurityPolicyRulesMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "ListGatewaySecurityPolicyRules"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1
                                                                                              +                                  .ListGatewaySecurityPolicyRulesRequest.getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1
                                                                                              +                                  .ListGatewaySecurityPolicyRulesResponse.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier(
                                                                                              +                              "ListGatewaySecurityPolicyRules"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getListGatewaySecurityPolicyRulesMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule>
                                                                                              +      getGetGatewaySecurityPolicyRuleMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "GetGatewaySecurityPolicyRule",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest.class,
                                                                                              +      responseType = com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule>
                                                                                              +      getGetGatewaySecurityPolicyRuleMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest,
                                                                                              +            com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule>
                                                                                              +        getGetGatewaySecurityPolicyRuleMethod;
                                                                                              +    if ((getGetGatewaySecurityPolicyRuleMethod =
                                                                                              +            NetworkSecurityGrpc.getGetGatewaySecurityPolicyRuleMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getGetGatewaySecurityPolicyRuleMethod =
                                                                                              +                NetworkSecurityGrpc.getGetGatewaySecurityPolicyRuleMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getGetGatewaySecurityPolicyRuleMethod =
                                                                                              +              getGetGatewaySecurityPolicyRuleMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "GetGatewaySecurityPolicyRule"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1
                                                                                              +                                  .GetGatewaySecurityPolicyRuleRequest.getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier(
                                                                                              +                              "GetGatewaySecurityPolicyRule"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getGetGatewaySecurityPolicyRuleMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateGatewaySecurityPolicyRuleMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateGatewaySecurityPolicyRule",
                                                                                              +      requestType =
                                                                                              +          com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateGatewaySecurityPolicyRuleMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getCreateGatewaySecurityPolicyRuleMethod;
                                                                                              +    if ((getCreateGatewaySecurityPolicyRuleMethod =
                                                                                              +            NetworkSecurityGrpc.getCreateGatewaySecurityPolicyRuleMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getCreateGatewaySecurityPolicyRuleMethod =
                                                                                              +                NetworkSecurityGrpc.getCreateGatewaySecurityPolicyRuleMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getCreateGatewaySecurityPolicyRuleMethod =
                                                                                              +              getCreateGatewaySecurityPolicyRuleMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "CreateGatewaySecurityPolicyRule"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1
                                                                                              +                                  .CreateGatewaySecurityPolicyRuleRequest.getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier(
                                                                                              +                              "CreateGatewaySecurityPolicyRule"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getCreateGatewaySecurityPolicyRuleMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateGatewaySecurityPolicyRuleMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "UpdateGatewaySecurityPolicyRule",
                                                                                              +      requestType =
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateGatewaySecurityPolicyRuleMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getUpdateGatewaySecurityPolicyRuleMethod;
                                                                                              +    if ((getUpdateGatewaySecurityPolicyRuleMethod =
                                                                                              +            NetworkSecurityGrpc.getUpdateGatewaySecurityPolicyRuleMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getUpdateGatewaySecurityPolicyRuleMethod =
                                                                                              +                NetworkSecurityGrpc.getUpdateGatewaySecurityPolicyRuleMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getUpdateGatewaySecurityPolicyRuleMethod =
                                                                                              +              getUpdateGatewaySecurityPolicyRuleMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "UpdateGatewaySecurityPolicyRule"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1
                                                                                              +                                  .UpdateGatewaySecurityPolicyRuleRequest.getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier(
                                                                                              +                              "UpdateGatewaySecurityPolicyRule"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getUpdateGatewaySecurityPolicyRuleMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteGatewaySecurityPolicyRuleMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteGatewaySecurityPolicyRule",
                                                                                              +      requestType =
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteGatewaySecurityPolicyRuleMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getDeleteGatewaySecurityPolicyRuleMethod;
                                                                                              +    if ((getDeleteGatewaySecurityPolicyRuleMethod =
                                                                                              +            NetworkSecurityGrpc.getDeleteGatewaySecurityPolicyRuleMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getDeleteGatewaySecurityPolicyRuleMethod =
                                                                                              +                NetworkSecurityGrpc.getDeleteGatewaySecurityPolicyRuleMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getDeleteGatewaySecurityPolicyRuleMethod =
                                                                                              +              getDeleteGatewaySecurityPolicyRuleMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "DeleteGatewaySecurityPolicyRule"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1
                                                                                              +                                  .DeleteGatewaySecurityPolicyRuleRequest.getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier(
                                                                                              +                              "DeleteGatewaySecurityPolicyRule"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getDeleteGatewaySecurityPolicyRuleMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.ListUrlListsRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.ListUrlListsResponse>
                                                                                              +      getListUrlListsMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "ListUrlLists",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.ListUrlListsRequest.class,
                                                                                              +      responseType = com.google.cloud.networksecurity.v1.ListUrlListsResponse.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.ListUrlListsRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.ListUrlListsResponse>
                                                                                              +      getListUrlListsMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.ListUrlListsRequest,
                                                                                              +            com.google.cloud.networksecurity.v1.ListUrlListsResponse>
                                                                                              +        getListUrlListsMethod;
                                                                                              +    if ((getListUrlListsMethod = NetworkSecurityGrpc.getListUrlListsMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getListUrlListsMethod = NetworkSecurityGrpc.getListUrlListsMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getListUrlListsMethod =
                                                                                              +              getListUrlListsMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUrlLists"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.ListUrlListsRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.ListUrlListsResponse
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("ListUrlLists"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getListUrlListsMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.GetUrlListRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.UrlList>
                                                                                              +      getGetUrlListMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "GetUrlList",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.GetUrlListRequest.class,
                                                                                              +      responseType = com.google.cloud.networksecurity.v1.UrlList.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.GetUrlListRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.UrlList>
                                                                                              +      getGetUrlListMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.GetUrlListRequest,
                                                                                              +            com.google.cloud.networksecurity.v1.UrlList>
                                                                                              +        getGetUrlListMethod;
                                                                                              +    if ((getGetUrlListMethod = NetworkSecurityGrpc.getGetUrlListMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getGetUrlListMethod = NetworkSecurityGrpc.getGetUrlListMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getGetUrlListMethod =
                                                                                              +              getGetUrlListMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUrlList"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.GetUrlListRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("GetUrlList"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getGetUrlListMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateUrlListRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateUrlListMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateUrlList",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.CreateUrlListRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateUrlListRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateUrlListMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.CreateUrlListRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getCreateUrlListMethod;
                                                                                              +    if ((getCreateUrlListMethod = NetworkSecurityGrpc.getCreateUrlListMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getCreateUrlListMethod = NetworkSecurityGrpc.getCreateUrlListMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getCreateUrlListMethod =
                                                                                              +              getCreateUrlListMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUrlList"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.CreateUrlListRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("CreateUrlList"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getCreateUrlListMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateUrlListRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateUrlListMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "UpdateUrlList",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.UpdateUrlListRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateUrlListRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateUrlListMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.UpdateUrlListRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getUpdateUrlListMethod;
                                                                                              +    if ((getUpdateUrlListMethod = NetworkSecurityGrpc.getUpdateUrlListMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getUpdateUrlListMethod = NetworkSecurityGrpc.getUpdateUrlListMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getUpdateUrlListMethod =
                                                                                              +              getUpdateUrlListMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUrlList"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.UpdateUrlListRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("UpdateUrlList"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getUpdateUrlListMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteUrlListRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteUrlListMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteUrlList",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.DeleteUrlListRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteUrlListRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteUrlListMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.DeleteUrlListRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getDeleteUrlListMethod;
                                                                                              +    if ((getDeleteUrlListMethod = NetworkSecurityGrpc.getDeleteUrlListMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getDeleteUrlListMethod = NetworkSecurityGrpc.getDeleteUrlListMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getDeleteUrlListMethod =
                                                                                              +              getDeleteUrlListMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUrlList"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.DeleteUrlListRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("DeleteUrlList"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getDeleteUrlListMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse>
                                                                                              +      getListTlsInspectionPoliciesMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "ListTlsInspectionPolicies",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest.class,
                                                                                              +      responseType = com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse>
                                                                                              +      getListTlsInspectionPoliciesMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest,
                                                                                              +            com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse>
                                                                                              +        getListTlsInspectionPoliciesMethod;
                                                                                              +    if ((getListTlsInspectionPoliciesMethod =
                                                                                              +            NetworkSecurityGrpc.getListTlsInspectionPoliciesMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getListTlsInspectionPoliciesMethod =
                                                                                              +                NetworkSecurityGrpc.getListTlsInspectionPoliciesMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getListTlsInspectionPoliciesMethod =
                                                                                              +              getListTlsInspectionPoliciesMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "ListTlsInspectionPolicies"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("ListTlsInspectionPolicies"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getListTlsInspectionPoliciesMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.TlsInspectionPolicy>
                                                                                              +      getGetTlsInspectionPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "GetTlsInspectionPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest.class,
                                                                                              +      responseType = com.google.cloud.networksecurity.v1.TlsInspectionPolicy.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.TlsInspectionPolicy>
                                                                                              +      getGetTlsInspectionPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest,
                                                                                              +            com.google.cloud.networksecurity.v1.TlsInspectionPolicy>
                                                                                              +        getGetTlsInspectionPolicyMethod;
                                                                                              +    if ((getGetTlsInspectionPolicyMethod = NetworkSecurityGrpc.getGetTlsInspectionPolicyMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getGetTlsInspectionPolicyMethod = NetworkSecurityGrpc.getGetTlsInspectionPolicyMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getGetTlsInspectionPolicyMethod =
                                                                                              +              getGetTlsInspectionPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "GetTlsInspectionPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.TlsInspectionPolicy
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("GetTlsInspectionPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getGetTlsInspectionPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateTlsInspectionPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateTlsInspectionPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateTlsInspectionPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getCreateTlsInspectionPolicyMethod;
                                                                                              +    if ((getCreateTlsInspectionPolicyMethod =
                                                                                              +            NetworkSecurityGrpc.getCreateTlsInspectionPolicyMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getCreateTlsInspectionPolicyMethod =
                                                                                              +                NetworkSecurityGrpc.getCreateTlsInspectionPolicyMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getCreateTlsInspectionPolicyMethod =
                                                                                              +              getCreateTlsInspectionPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "CreateTlsInspectionPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("CreateTlsInspectionPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getCreateTlsInspectionPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateTlsInspectionPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "UpdateTlsInspectionPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateTlsInspectionPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getUpdateTlsInspectionPolicyMethod;
                                                                                              +    if ((getUpdateTlsInspectionPolicyMethod =
                                                                                              +            NetworkSecurityGrpc.getUpdateTlsInspectionPolicyMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getUpdateTlsInspectionPolicyMethod =
                                                                                              +                NetworkSecurityGrpc.getUpdateTlsInspectionPolicyMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getUpdateTlsInspectionPolicyMethod =
                                                                                              +              getUpdateTlsInspectionPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "UpdateTlsInspectionPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("UpdateTlsInspectionPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getUpdateTlsInspectionPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteTlsInspectionPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteTlsInspectionPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteTlsInspectionPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getDeleteTlsInspectionPolicyMethod;
                                                                                              +    if ((getDeleteTlsInspectionPolicyMethod =
                                                                                              +            NetworkSecurityGrpc.getDeleteTlsInspectionPolicyMethod)
                                                                                              +        == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getDeleteTlsInspectionPolicyMethod =
                                                                                              +                NetworkSecurityGrpc.getDeleteTlsInspectionPolicyMethod)
                                                                                              +            == null) {
                                                                                              +          NetworkSecurityGrpc.getDeleteTlsInspectionPolicyMethod =
                                                                                              +              getDeleteTlsInspectionPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(
                                                                                              +                          generateFullMethodName(SERVICE_NAME, "DeleteTlsInspectionPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("DeleteTlsInspectionPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getDeleteTlsInspectionPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse>
                                                                                              +      getListAuthzPoliciesMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "ListAuthzPolicies",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest.class,
                                                                                              +      responseType = com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse>
                                                                                              +      getListAuthzPoliciesMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest,
                                                                                              +            com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse>
                                                                                              +        getListAuthzPoliciesMethod;
                                                                                              +    if ((getListAuthzPoliciesMethod = NetworkSecurityGrpc.getListAuthzPoliciesMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getListAuthzPoliciesMethod = NetworkSecurityGrpc.getListAuthzPoliciesMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getListAuthzPoliciesMethod =
                                                                                              +              getListAuthzPoliciesMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAuthzPolicies"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("ListAuthzPolicies"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getListAuthzPoliciesMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.AuthzPolicy>
                                                                                              +      getGetAuthzPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "GetAuthzPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest.class,
                                                                                              +      responseType = com.google.cloud.networksecurity.v1.AuthzPolicy.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest,
                                                                                              +          com.google.cloud.networksecurity.v1.AuthzPolicy>
                                                                                              +      getGetAuthzPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest,
                                                                                              +            com.google.cloud.networksecurity.v1.AuthzPolicy>
                                                                                              +        getGetAuthzPolicyMethod;
                                                                                              +    if ((getGetAuthzPolicyMethod = NetworkSecurityGrpc.getGetAuthzPolicyMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getGetAuthzPolicyMethod = NetworkSecurityGrpc.getGetAuthzPolicyMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getGetAuthzPolicyMethod =
                                                                                              +              getGetAuthzPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthzPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("GetAuthzPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getGetAuthzPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateAuthzPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "CreateAuthzPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getCreateAuthzPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getCreateAuthzPolicyMethod;
                                                                                              +    if ((getCreateAuthzPolicyMethod = NetworkSecurityGrpc.getCreateAuthzPolicyMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getCreateAuthzPolicyMethod = NetworkSecurityGrpc.getCreateAuthzPolicyMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getCreateAuthzPolicyMethod =
                                                                                              +              getCreateAuthzPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAuthzPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("CreateAuthzPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getCreateAuthzPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateAuthzPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "UpdateAuthzPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getUpdateAuthzPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getUpdateAuthzPolicyMethod;
                                                                                              +    if ((getUpdateAuthzPolicyMethod = NetworkSecurityGrpc.getUpdateAuthzPolicyMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getUpdateAuthzPolicyMethod = NetworkSecurityGrpc.getUpdateAuthzPolicyMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getUpdateAuthzPolicyMethod =
                                                                                              +              getUpdateAuthzPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAuthzPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("UpdateAuthzPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getUpdateAuthzPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  private static volatile io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteAuthzPolicyMethod;
                                                                                              +
                                                                                              +  @io.grpc.stub.annotations.RpcMethod(
                                                                                              +      fullMethodName = SERVICE_NAME + '/' + "DeleteAuthzPolicy",
                                                                                              +      requestType = com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest.class,
                                                                                              +      responseType = com.google.longrunning.Operation.class,
                                                                                              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +  public static io.grpc.MethodDescriptor<
                                                                                              +          com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest,
                                                                                              +          com.google.longrunning.Operation>
                                                                                              +      getDeleteAuthzPolicyMethod() {
                                                                                              +    io.grpc.MethodDescriptor<
                                                                                              +            com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest,
                                                                                              +            com.google.longrunning.Operation>
                                                                                              +        getDeleteAuthzPolicyMethod;
                                                                                              +    if ((getDeleteAuthzPolicyMethod = NetworkSecurityGrpc.getDeleteAuthzPolicyMethod) == null) {
                                                                                              +      synchronized (NetworkSecurityGrpc.class) {
                                                                                              +        if ((getDeleteAuthzPolicyMethod = NetworkSecurityGrpc.getDeleteAuthzPolicyMethod) == null) {
                                                                                              +          NetworkSecurityGrpc.getDeleteAuthzPolicyMethod =
                                                                                              +              getDeleteAuthzPolicyMethod =
                                                                                              +                  io.grpc.MethodDescriptor
                                                                                              +                      .
                                                                                              +                          newBuilder()
                                                                                              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
                                                                                              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAuthzPolicy"))
                                                                                              +                      .setSampledToLocalTracing(true)
                                                                                              +                      .setRequestMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest
                                                                                              +                                  .getDefaultInstance()))
                                                                                              +                      .setResponseMarshaller(
                                                                                              +                          io.grpc.protobuf.ProtoUtils.marshaller(
                                                                                              +                              com.google.longrunning.Operation.getDefaultInstance()))
                                                                                              +                      .setSchemaDescriptor(
                                                                                              +                          new NetworkSecurityMethodDescriptorSupplier("DeleteAuthzPolicy"))
                                                                                              +                      .build();
                                                                                              +        }
                                                                                              +      }
                                                                                              +    }
                                                                                              +    return getDeleteAuthzPolicyMethod;
                                                                                              +  }
                                                                                              +
                                                                                              +  /** Creates a new async stub that supports all call types for the service */
                                                                                              +  public static NetworkSecurityStub newStub(io.grpc.Channel channel) {
                                                                                              +    io.grpc.stub.AbstractStub.StubFactory factory =
                                                                                              +        new io.grpc.stub.AbstractStub.StubFactory() {
                                                                                              +          @java.lang.Override
                                                                                              +          public NetworkSecurityStub newStub(
                                                                                              +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                                                                                              +            return new NetworkSecurityStub(channel, callOptions);
                                                                                              +          }
                                                                                              +        };
                                                                                              +    return NetworkSecurityStub.newStub(factory, channel);
                                                                                              +  }
                                                                                              +
                                                                                              +  /** Creates a new blocking-style stub that supports all types of calls on the service */
                                                                                              +  public static NetworkSecurityBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) {
                                                                                              +    io.grpc.stub.AbstractStub.StubFactory factory =
                                                                                              +        new io.grpc.stub.AbstractStub.StubFactory() {
                                                                                              +          @java.lang.Override
                                                                                              +          public NetworkSecurityBlockingV2Stub newStub(
                                                                                              +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                                                                                              +            return new NetworkSecurityBlockingV2Stub(channel, callOptions);
                                                                                              +          }
                                                                                              +        };
                                                                                              +    return NetworkSecurityBlockingV2Stub.newStub(factory, channel);
                                                                                              +  }
                                                                                              +
                                                                                              +  /**
                                                                                              +   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
                                                                                              +   */
                                                                                              +  public static NetworkSecurityBlockingStub newBlockingStub(io.grpc.Channel channel) {
                                                                                              +    io.grpc.stub.AbstractStub.StubFactory factory =
                                                                                              +        new io.grpc.stub.AbstractStub.StubFactory() {
                                                                                              +          @java.lang.Override
                                                                                              +          public NetworkSecurityBlockingStub newStub(
                                                                                              +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                                                                                              +            return new NetworkSecurityBlockingStub(channel, callOptions);
                                                                                              +          }
                                                                                              +        };
                                                                                              +    return NetworkSecurityBlockingStub.newStub(factory, channel);
                                                                                              +  }
                                                                                              +
                                                                                              +  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
                                                                                              +  public static NetworkSecurityFutureStub newFutureStub(io.grpc.Channel channel) {
                                                                                              +    io.grpc.stub.AbstractStub.StubFactory factory =
                                                                                              +        new io.grpc.stub.AbstractStub.StubFactory() {
                                                                                              +          @java.lang.Override
                                                                                              +          public NetworkSecurityFutureStub newStub(
                                                                                              +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                                                                                              +            return new NetworkSecurityFutureStub(channel, callOptions);
                                                                                              +          }
                                                                                              +        };
                                                                                              +    return NetworkSecurityFutureStub.newStub(factory, channel);
                                                                                              +  }
                                                                                              +
                                                                                              +  /**
                                                                                              +   *
                                                                                              +   *
                                                                                              +   * 
                                                                                              +   * Network Security API provides resources to configure authentication and
                                                                                              +   * authorization policies. Refer to per API resource documentation for more
                                                                                              +   * information.
                                                                                              +   * 
                                                                                              + */ + public interface AsyncService { + + /** + * + * + *
                                                                                              +     * Lists AuthorizationPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listAuthorizationPolicies( + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAuthorizationPoliciesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + default void getAuthorizationPolicy( + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAuthorizationPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new AuthorizationPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createAuthorizationPolicy( + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAuthorizationPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + default void updateAuthorizationPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAuthorizationPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + default void deleteAuthorizationPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAuthorizationPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists BackendAuthenticationConfigs in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listBackendAuthenticationConfigs( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackendAuthenticationConfigsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + default void getBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBackendAuthenticationConfigMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new BackendAuthenticationConfig in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBackendAuthenticationConfigMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + default void updateBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackendAuthenticationConfigMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + default void deleteBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackendAuthenticationConfigMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists ServerTlsPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listServerTlsPolicies( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServerTlsPoliciesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + default void getServerTlsPolicy( + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetServerTlsPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new ServerTlsPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createServerTlsPolicy( + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServerTlsPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + default void updateServerTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServerTlsPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + default void deleteServerTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServerTlsPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists ClientTlsPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listClientTlsPolicies( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClientTlsPoliciesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + default void getClientTlsPolicy( + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetClientTlsPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new ClientTlsPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createClientTlsPolicy( + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClientTlsPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + default void updateClientTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClientTlsPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + default void deleteClientTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteClientTlsPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists GatewaySecurityPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listGatewaySecurityPolicies( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGatewaySecurityPoliciesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + default void getGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGatewaySecurityPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGatewaySecurityPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + default void updateGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGatewaySecurityPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + default void deleteGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGatewaySecurityPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists GatewaySecurityPolicyRules in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listGatewaySecurityPolicyRules( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGatewaySecurityPolicyRulesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + default void getGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGatewaySecurityPolicyRuleMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGatewaySecurityPolicyRuleMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + default void updateGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGatewaySecurityPolicyRuleMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + default void deleteGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGatewaySecurityPolicyRuleMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists UrlLists in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listUrlLists( + com.google.cloud.networksecurity.v1.ListUrlListsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUrlListsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single UrlList.
                                                                                              +     * 
                                                                                              + */ + default void getUrlList( + com.google.cloud.networksecurity.v1.GetUrlListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUrlListMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new UrlList in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createUrlList( + com.google.cloud.networksecurity.v1.CreateUrlListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateUrlListMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single UrlList.
                                                                                              +     * 
                                                                                              + */ + default void updateUrlList( + com.google.cloud.networksecurity.v1.UpdateUrlListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateUrlListMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single UrlList.
                                                                                              +     * 
                                                                                              + */ + default void deleteUrlList( + com.google.cloud.networksecurity.v1.DeleteUrlListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteUrlListMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists TlsInspectionPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listTlsInspectionPolicies( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTlsInspectionPoliciesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + default void getTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTlsInspectionPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new TlsInspectionPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTlsInspectionPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + default void updateTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTlsInspectionPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + default void deleteTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTlsInspectionPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists AuthzPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void listAuthzPolicies( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAuthzPoliciesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + default void getAuthzPolicy( + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAuthzPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new AuthzPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + default void createAuthzPolicy( + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAuthzPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + default void updateAuthzPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAuthzPolicyMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + default void deleteAuthzPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAuthzPolicyMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service NetworkSecurity. + * + *
                                                                                              +   * Network Security API provides resources to configure authentication and
                                                                                              +   * authorization policies. Refer to per API resource documentation for more
                                                                                              +   * information.
                                                                                              +   * 
                                                                                              + */ + public abstract static class NetworkSecurityImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return NetworkSecurityGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service NetworkSecurity. + * + *
                                                                                              +   * Network Security API provides resources to configure authentication and
                                                                                              +   * authorization policies. Refer to per API resource documentation for more
                                                                                              +   * information.
                                                                                              +   * 
                                                                                              + */ + public static final class NetworkSecurityStub + extends io.grpc.stub.AbstractAsyncStub { + private NetworkSecurityStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists AuthorizationPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listAuthorizationPolicies( + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + public void getAuthorizationPolicy( + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new AuthorizationPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createAuthorizationPolicy( + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + public void updateAuthorizationPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + public void deleteAuthorizationPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists BackendAuthenticationConfigs in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listBackendAuthenticationConfigs( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackendAuthenticationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + public void getBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackendAuthenticationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new BackendAuthenticationConfig in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackendAuthenticationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + public void updateBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackendAuthenticationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + public void deleteBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackendAuthenticationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists ServerTlsPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listServerTlsPolicies( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public void getServerTlsPolicy( + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new ServerTlsPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createServerTlsPolicy( + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public void updateServerTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public void deleteServerTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists ClientTlsPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listClientTlsPolicies( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public void getClientTlsPolicy( + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new ClientTlsPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createClientTlsPolicy( + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public void updateClientTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public void deleteClientTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists GatewaySecurityPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listGatewaySecurityPolicies( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGatewaySecurityPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public void getGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGatewaySecurityPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGatewaySecurityPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public void updateGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGatewaySecurityPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public void deleteGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGatewaySecurityPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists GatewaySecurityPolicyRules in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listGatewaySecurityPolicyRules( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGatewaySecurityPolicyRulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public void getGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGatewaySecurityPolicyRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGatewaySecurityPolicyRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public void updateGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGatewaySecurityPolicyRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public void deleteGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGatewaySecurityPolicyRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists UrlLists in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listUrlLists( + com.google.cloud.networksecurity.v1.ListUrlListsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUrlListsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single UrlList.
                                                                                              +     * 
                                                                                              + */ + public void getUrlList( + com.google.cloud.networksecurity.v1.GetUrlListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUrlListMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new UrlList in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createUrlList( + com.google.cloud.networksecurity.v1.CreateUrlListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUrlListMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single UrlList.
                                                                                              +     * 
                                                                                              + */ + public void updateUrlList( + com.google.cloud.networksecurity.v1.UpdateUrlListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUrlListMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single UrlList.
                                                                                              +     * 
                                                                                              + */ + public void deleteUrlList( + com.google.cloud.networksecurity.v1.DeleteUrlListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUrlListMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists TlsInspectionPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listTlsInspectionPolicies( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTlsInspectionPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + public void getTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTlsInspectionPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new TlsInspectionPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTlsInspectionPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + public void updateTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTlsInspectionPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + public void deleteTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTlsInspectionPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists AuthzPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void listAuthzPolicies( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthzPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + public void getAuthzPolicy( + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthzPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new AuthzPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public void createAuthzPolicy( + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAuthzPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + public void updateAuthzPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAuthzPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + public void deleteAuthzPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthzPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service NetworkSecurity. + * + *
                                                                                              +   * Network Security API provides resources to configure authentication and
                                                                                              +   * authorization policies. Refer to per API resource documentation for more
                                                                                              +   * information.
                                                                                              +   * 
                                                                                              + */ + public static final class NetworkSecurityBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private NetworkSecurityBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists AuthorizationPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse + listAuthorizationPolicies( + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy( + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new AuthorizationPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createAuthorizationPolicy( + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateAuthorizationPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteAuthorizationPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists BackendAuthenticationConfigs in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + listBackendAuthenticationConfigs( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBackendAuthenticationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBackendAuthenticationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new BackendAuthenticationConfig in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateBackendAuthenticationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateBackendAuthenticationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteBackendAuthenticationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists ServerTlsPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse listServerTlsPolicies( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy( + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new ServerTlsPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createServerTlsPolicy( + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateServerTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single ServerTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteServerTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists ClientTlsPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse listClientTlsPolicies( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy( + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new ClientTlsPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createClientTlsPolicy( + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateClientTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single ClientTlsPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteClientTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists GatewaySecurityPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + listGatewaySecurityPolicies( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListGatewaySecurityPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetGatewaySecurityPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateGatewaySecurityPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateGatewaySecurityPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteGatewaySecurityPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists GatewaySecurityPolicyRules in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + listGatewaySecurityPolicyRules( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListGatewaySecurityPolicyRulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetGatewaySecurityPolicyRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateGatewaySecurityPolicyRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateGatewaySecurityPolicyRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteGatewaySecurityPolicyRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists UrlLists in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListUrlListsResponse listUrlLists( + com.google.cloud.networksecurity.v1.ListUrlListsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListUrlListsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single UrlList.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.UrlList getUrlList( + com.google.cloud.networksecurity.v1.GetUrlListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetUrlListMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new UrlList in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createUrlList( + com.google.cloud.networksecurity.v1.CreateUrlListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateUrlListMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single UrlList.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateUrlList( + com.google.cloud.networksecurity.v1.UpdateUrlListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateUrlListMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single UrlList.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteUrlList( + com.google.cloud.networksecurity.v1.DeleteUrlListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteUrlListMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists TlsInspectionPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + listTlsInspectionPolicies( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListTlsInspectionPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetTlsInspectionPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new TlsInspectionPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateTlsInspectionPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateTlsInspectionPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single TlsInspectionPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteTlsInspectionPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists AuthzPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse listAuthzPolicies( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAuthzPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicy( + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAuthzPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new AuthzPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createAuthzPolicy( + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAuthzPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateAuthzPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAuthzPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteAuthzPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAuthzPolicyMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service NetworkSecurity. + * + *
                                                                                              +   * Network Security API provides resources to configure authentication and
                                                                                              +   * authorization policies. Refer to per API resource documentation for more
                                                                                              +   * information.
                                                                                              +   * 
                                                                                              + */ + public static final class NetworkSecurityBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private NetworkSecurityBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NetworkSecurityBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NetworkSecurityBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists AuthorizationPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse + listAuthorizationPolicies( + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single AuthorizationPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy( + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new AuthorizationPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createAuthorizationPolicy( + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single AuthorizationPolicy.
                                                                                                    * 
                                                                                              */ - default void listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAuthorizationPoliciesMethod(), responseObserver); + public com.google.longrunning.Operation updateAuthorizationPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Gets details of a single AuthorizationPolicy.
                                                                                              +     * Deletes a single AuthorizationPolicy.
                                                                                                    * 
                                                                                              */ - default void getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAuthorizationPolicyMethod(), responseObserver); + public com.google.longrunning.Operation deleteAuthorizationPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Creates a new AuthorizationPolicy in a given project and location.
                                                                                              +     * Lists BackendAuthenticationConfigs in a given project and location.
                                                                                                    * 
                                                                                              */ - default void createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAuthorizationPolicyMethod(), responseObserver); + public com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + listBackendAuthenticationConfigs( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackendAuthenticationConfigsMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Updates the parameters of a single AuthorizationPolicy.
                                                                                              +     * Gets details of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                                    * 
                                                                                              */ - default void updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAuthorizationPolicyMethod(), responseObserver); + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackendAuthenticationConfigMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Deletes a single AuthorizationPolicy.
                                                                                              +     * Creates a new BackendAuthenticationConfig in a given project and location.
                                                                                                    * 
                                                                                              */ - default void deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAuthorizationPolicyMethod(), responseObserver); + public com.google.longrunning.Operation createBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackendAuthenticationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackendAuthenticationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackendAuthenticationConfigMethod(), getCallOptions(), request); } /** @@ -925,13 +4628,10 @@ default void deleteAuthorizationPolicy( * Lists ServerTlsPolicies in a given project and location. *
                                                                                              */ - default void listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListServerTlsPoliciesMethod(), responseObserver); + public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse listServerTlsPolicies( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); } /** @@ -941,12 +4641,10 @@ default void listServerTlsPolicies( * Gets details of a single ServerTlsPolicy. * */ - default void getServerTlsPolicy( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetServerTlsPolicyMethod(), responseObserver); + public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy( + com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); } /** @@ -956,11 +4654,10 @@ default void getServerTlsPolicy( * Creates a new ServerTlsPolicy in a given project and location. * */ - default void createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateServerTlsPolicyMethod(), responseObserver); + public com.google.longrunning.Operation createServerTlsPolicy( + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); } /** @@ -970,11 +4667,10 @@ default void createServerTlsPolicy( * Updates the parameters of a single ServerTlsPolicy. * */ - default void updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateServerTlsPolicyMethod(), responseObserver); + public com.google.longrunning.Operation updateServerTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); } /** @@ -984,11 +4680,10 @@ default void updateServerTlsPolicy( * Deletes a single ServerTlsPolicy. * */ - default void deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteServerTlsPolicyMethod(), responseObserver); + public com.google.longrunning.Operation deleteServerTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); } /** @@ -998,13 +4693,10 @@ default void deleteServerTlsPolicy( * Lists ClientTlsPolicies in a given project and location. * */ - default void listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListClientTlsPoliciesMethod(), responseObserver); + public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse listClientTlsPolicies( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); } /** @@ -1014,12 +4706,10 @@ default void listClientTlsPolicies( * Gets details of a single ClientTlsPolicy. * */ - default void getClientTlsPolicy( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetClientTlsPolicyMethod(), responseObserver); + public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy( + com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); } /** @@ -1029,11 +4719,10 @@ default void getClientTlsPolicy( * Creates a new ClientTlsPolicy in a given project and location. * */ - default void createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateClientTlsPolicyMethod(), responseObserver); + public com.google.longrunning.Operation createClientTlsPolicy( + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); } /** @@ -1043,11 +4732,10 @@ default void createClientTlsPolicy( * Updates the parameters of a single ClientTlsPolicy. * */ - default void updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateClientTlsPolicyMethod(), responseObserver); + public com.google.longrunning.Operation updateClientTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); } /** @@ -1057,304 +4745,344 @@ default void updateClientTlsPolicy( * Deletes a single ClientTlsPolicy. * */ - default void deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteClientTlsPolicyMethod(), responseObserver); + public com.google.longrunning.Operation deleteClientTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); } - } - /** - * Base class for the server implementation of the service NetworkSecurity. - * - *
                                                                                              -   * Network Security API provides resources to configure authentication and
                                                                                              -   * authorization policies. Refer to per API resource documentation for more
                                                                                              -   * information.
                                                                                              -   * 
                                                                                              - */ - public abstract static class NetworkSecurityImplBase - implements io.grpc.BindableService, AsyncService { + /** + * + * + *
                                                                                              +     * Lists GatewaySecurityPolicies in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + listGatewaySecurityPolicies( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGatewaySecurityPoliciesMethod(), getCallOptions(), request); + } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return NetworkSecurityGrpc.bindService(this); + /** + * + * + *
                                                                                              +     * Gets details of a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGatewaySecurityPolicyMethod(), getCallOptions(), request); } - } - /** - * A stub to allow clients to do asynchronous rpc calls to service NetworkSecurity. - * - *
                                                                                              -   * Network Security API provides resources to configure authentication and
                                                                                              -   * authorization policies. Refer to per API resource documentation for more
                                                                                              -   * information.
                                                                                              -   * 
                                                                                              - */ - public static final class NetworkSecurityStub - extends io.grpc.stub.AbstractAsyncStub { - private NetworkSecurityStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + /** + * + * + *
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGatewaySecurityPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGatewaySecurityPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single GatewaySecurityPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGatewaySecurityPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists GatewaySecurityPolicyRules in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + listGatewaySecurityPolicyRules( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGatewaySecurityPolicyRulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGatewaySecurityPolicyRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGatewaySecurityPolicyRuleMethod(), getCallOptions(), request); } - @java.lang.Override - protected NetworkSecurityStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityStub(channel, callOptions); + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGatewaySecurityPolicyRuleMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Lists AuthorizationPolicies in a given project and location.
                                                                                              +     * Deletes a single GatewaySecurityPolicyRule.
                                                                                                    * 
                                                                                              */ - public void listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGatewaySecurityPolicyRuleMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Gets details of a single AuthorizationPolicy.
                                                                                              +     * Lists UrlLists in a given project and location.
                                                                                                    * 
                                                                                              */ - public void getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.networksecurity.v1.ListUrlListsResponse listUrlLists( + com.google.cloud.networksecurity.v1.ListUrlListsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUrlListsMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Creates a new AuthorizationPolicy in a given project and location.
                                                                                              +     * Gets details of a single UrlList.
                                                                                                    * 
                                                                                              */ - public void createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.networksecurity.v1.UrlList getUrlList( + com.google.cloud.networksecurity.v1.GetUrlListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUrlListMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Updates the parameters of a single AuthorizationPolicy.
                                                                                              +     * Creates a new UrlList in a given project and location.
                                                                                                    * 
                                                                                              */ - public void updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createUrlList( + com.google.cloud.networksecurity.v1.CreateUrlListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUrlListMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Deletes a single AuthorizationPolicy.
                                                                                              +     * Updates the parameters of a single UrlList.
                                                                                                    * 
                                                                                              */ - public void deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateUrlList( + com.google.cloud.networksecurity.v1.UpdateUrlListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUrlListMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Lists ServerTlsPolicies in a given project and location.
                                                                                              +     * Deletes a single UrlList.
                                                                                                    * 
                                                                                              */ - public void listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteUrlList( + com.google.cloud.networksecurity.v1.DeleteUrlListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUrlListMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Gets details of a single ServerTlsPolicy.
                                                                                              +     * Lists TlsInspectionPolicies in a given project and location.
                                                                                                    * 
                                                                                              */ - public void getServerTlsPolicy( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + listTlsInspectionPolicies( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTlsInspectionPoliciesMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Creates a new ServerTlsPolicy in a given project and location.
                                                                                              +     * Gets details of a single TlsInspectionPolicy.
                                                                                                    * 
                                                                                              */ - public void createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTlsInspectionPolicyMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Updates the parameters of a single ServerTlsPolicy.
                                                                                              +     * Creates a new TlsInspectionPolicy in a given project and location.
                                                                                                    * 
                                                                                              */ - public void updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTlsInspectionPolicyMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Deletes a single ServerTlsPolicy.
                                                                                              +     * Updates the parameters of a single TlsInspectionPolicy.
                                                                                                    * 
                                                                                              */ - public void deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTlsInspectionPolicyMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Lists ClientTlsPolicies in a given project and location.
                                                                                              +     * Deletes a single TlsInspectionPolicy.
                                                                                                    * 
                                                                                              */ - public void listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTlsInspectionPolicyMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Gets details of a single ClientTlsPolicy.
                                                                                              +     * Lists AuthzPolicies in a given project and location.
                                                                                                    * 
                                                                                              */ - public void getClientTlsPolicy( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse listAuthzPolicies( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthzPoliciesMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Creates a new ClientTlsPolicy in a given project and location.
                                                                                              +     * Gets details of a single AuthzPolicy.
                                                                                                    * 
                                                                                              */ - public void createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicy( + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthzPolicyMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Updates the parameters of a single ClientTlsPolicy.
                                                                                              +     * Creates a new AuthzPolicy in a given project and location.
                                                                                                    * 
                                                                                              */ - public void updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createAuthzPolicy( + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAuthzPolicyMethod(), getCallOptions(), request); } /** * * *
                                                                                              -     * Deletes a single ClientTlsPolicy.
                                                                                              +     * Updates the parameters of a single AuthzPolicy.
                                                                                                    * 
                                                                                              */ - public void deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateAuthzPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAuthzPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single AuthzPolicy.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteAuthzPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAuthzPolicyMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do synchronous rpc calls to service NetworkSecurity. + * A stub to allow clients to do ListenableFuture-style rpc calls to service NetworkSecurity. * *
                                                                                                  * Network Security API provides resources to configure authentication and
                                                                                              @@ -1362,17 +5090,16 @@ public void deleteClientTlsPolicy(
                                                                                                  * information.
                                                                                                  * 
                                                                                              */ - public static final class NetworkSecurityBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private NetworkSecurityBlockingV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class NetworkSecurityFutureStub + extends io.grpc.stub.AbstractFutureStub { + private NetworkSecurityFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected NetworkSecurityBlockingV2Stub build( + protected NetworkSecurityFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityBlockingV2Stub(channel, callOptions); + return new NetworkSecurityFutureStub(channel, callOptions); } /** @@ -1382,12 +5109,12 @@ protected NetworkSecurityBlockingV2Stub build( * Lists AuthorizationPolicies in a given project and location. * */ - public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); + com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), request); } /** @@ -1397,11 +5124,12 @@ protected NetworkSecurityBlockingV2Stub build( * Gets details of a single AuthorizationPolicy. * */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.AuthorizationPolicy> + getAuthorizationPolicy( + com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), request); } /** @@ -1411,11 +5139,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationP * Creates a new AuthorizationPolicy in a given project and location. * */ - public com.google.longrunning.Operation createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createAuthorizationPolicy( + com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), request); } /** @@ -1425,11 +5153,11 @@ public com.google.longrunning.Operation createAuthorizationPolicy( * Updates the parameters of a single AuthorizationPolicy. * */ - public com.google.longrunning.Operation updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateAuthorizationPolicy( + com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), request); } /** @@ -1437,607 +5165,589 @@ public com.google.longrunning.Operation updateAuthorizationPolicy( * *
                                                                                                    * Deletes a single AuthorizationPolicy.
                                                                                              -     * 
                                                                                              - */ - public com.google.longrunning.Operation deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
                                                                                              -     * Lists ServerTlsPolicies in a given project and location.
                                                                                              -     * 
                                                                                              - */ - public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
                                                                                              -     * Gets details of a single ServerTlsPolicy.
                                                                                              -     * 
                                                                                              - */ - public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); + * + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAuthorizationPolicy( + com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Creates a new ServerTlsPolicy in a given project and location.
                                                                                              +     * Lists BackendAuthenticationConfigs in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse> + listBackendAuthenticationConfigs( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackendAuthenticationConfigsMethod(), getCallOptions()), + request); } /** * * *
                                                                                              -     * Updates the parameters of a single ServerTlsPolicy.
                                                                                              +     * Gets details of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig> + getBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackendAuthenticationConfigMethod(), getCallOptions()), + request); } /** * * *
                                                                                              -     * Deletes a single ServerTlsPolicy.
                                                                                              +     * Creates a new BackendAuthenticationConfig in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackendAuthenticationConfigMethod(), getCallOptions()), + request); } /** * * *
                                                                                              -     * Lists ClientTlsPolicies in a given project and location.
                                                                                              +     * Updates the parameters of a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                                    * 
                                                                                              */ - public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackendAuthenticationConfigMethod(), getCallOptions()), + request); } /** * * *
                                                                                              -     * Gets details of a single ClientTlsPolicy.
                                                                                              +     * Deletes a single BackendAuthenticationConfig to
                                                                                              +     * BackendAuthenticationConfig.
                                                                                                    * 
                                                                                              */ - public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackendAuthenticationConfigMethod(), getCallOptions()), + request); } /** * * *
                                                                                              -     * Creates a new ClientTlsPolicy in a given project and location.
                                                                                              +     * Lists ServerTlsPolicies in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> + listServerTlsPolicies( + com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Updates the parameters of a single ClientTlsPolicy.
                                                                                              +     * Gets details of a single ServerTlsPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ServerTlsPolicy> + getServerTlsPolicy(com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Deletes a single ClientTlsPolicy.
                                                                                              +     * Creates a new ServerTlsPolicy in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service NetworkSecurity. - * - *
                                                                                              -   * Network Security API provides resources to configure authentication and
                                                                                              -   * authorization policies. Refer to per API resource documentation for more
                                                                                              -   * information.
                                                                                              -   * 
                                                                                              - */ - public static final class NetworkSecurityBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private NetworkSecurityBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NetworkSecurityBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityBlockingStub(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture + createServerTlsPolicy( + com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Lists AuthorizationPolicies in a given project and location.
                                                                                              +     * Updates the parameters of a single ServerTlsPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse - listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAuthorizationPoliciesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateServerTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Gets details of a single AuthorizationPolicy.
                                                                                              +     * Deletes a single ServerTlsPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.cloud.networksecurity.v1.AuthorizationPolicy getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAuthorizationPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteServerTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Creates a new AuthorizationPolicy in a given project and location.
                                                                                              +     * Lists ClientTlsPolicies in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAuthorizationPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> + listClientTlsPolicies( + com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Updates the parameters of a single AuthorizationPolicy.
                                                                                              +     * Gets details of a single ClientTlsPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAuthorizationPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ClientTlsPolicy> + getClientTlsPolicy(com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Deletes a single AuthorizationPolicy.
                                                                                              +     * Creates a new ClientTlsPolicy in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAuthorizationPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createClientTlsPolicy( + com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Lists ServerTlsPolicies in a given project and location.
                                                                                              +     * Updates the parameters of a single ClientTlsPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServerTlsPoliciesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateClientTlsPolicy( + com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Gets details of a single ServerTlsPolicy.
                                                                                              +     * Deletes a single ClientTlsPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.cloud.networksecurity.v1.ServerTlsPolicy getServerTlsPolicy( - com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServerTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteClientTlsPolicy( + com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Creates a new ServerTlsPolicy in a given project and location.
                                                                                              +     * Lists GatewaySecurityPolicies in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServerTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse> + listGatewaySecurityPolicies( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGatewaySecurityPoliciesMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Updates the parameters of a single ServerTlsPolicy.
                                                                                              +     * Gets details of a single GatewaySecurityPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServerTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy> + getGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGatewaySecurityPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Deletes a single ServerTlsPolicy.
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServerTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGatewaySecurityPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Lists ClientTlsPolicies in a given project and location.
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClientTlsPoliciesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGatewaySecurityPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Gets details of a single ClientTlsPolicy.
                                                                                              +     * Deletes a single GatewaySecurityPolicy.
                                                                                                    * 
                                                                                              */ - public com.google.cloud.networksecurity.v1.ClientTlsPolicy getClientTlsPolicy( - com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetClientTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGatewaySecurityPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Creates a new ClientTlsPolicy in a given project and location.
                                                                                              +     * Lists GatewaySecurityPolicyRules in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClientTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse> + listGatewaySecurityPolicyRules( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGatewaySecurityPolicyRulesMethod(), getCallOptions()), + request); } /** * * *
                                                                                              -     * Updates the parameters of a single ClientTlsPolicy.
                                                                                              +     * Gets details of a single GatewaySecurityPolicyRule.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClientTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule> + getGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGatewaySecurityPolicyRuleMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Deletes a single ClientTlsPolicy.
                                                                                              +     * Creates a new GatewaySecurityPolicy in a given project and location.
                                                                                                    * 
                                                                                              */ - public com.google.longrunning.Operation deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClientTlsPolicyMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGatewaySecurityPolicyRuleMethod(), getCallOptions()), + request); } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service NetworkSecurity. - * - *
                                                                                              -   * Network Security API provides resources to configure authentication and
                                                                                              -   * authorization policies. Refer to per API resource documentation for more
                                                                                              -   * information.
                                                                                              -   * 
                                                                                              - */ - public static final class NetworkSecurityFutureStub - extends io.grpc.stub.AbstractFutureStub { - private NetworkSecurityFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGatewaySecurityPolicyRuleMethod(), getCallOptions()), + request); } - @java.lang.Override - protected NetworkSecurityFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NetworkSecurityFutureStub(channel, callOptions); + /** + * + * + *
                                                                                              +     * Deletes a single GatewaySecurityPolicyRule.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGatewaySecurityPolicyRuleMethod(), getCallOptions()), + request); } /** * * *
                                                                                              -     * Lists AuthorizationPolicies in a given project and location.
                                                                                              +     * Lists UrlLists in a given project and location.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse> - listAuthorizationPolicies( - com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest request) { + com.google.cloud.networksecurity.v1.ListUrlListsResponse> + listUrlLists(com.google.cloud.networksecurity.v1.ListUrlListsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAuthorizationPoliciesMethod(), getCallOptions()), request); + getChannel().newCall(getListUrlListsMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Gets details of a single AuthorizationPolicy.
                                                                                              +     * Gets details of a single UrlList.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.AuthorizationPolicy> - getAuthorizationPolicy( - com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest request) { + com.google.cloud.networksecurity.v1.UrlList> + getUrlList(com.google.cloud.networksecurity.v1.GetUrlListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAuthorizationPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getGetUrlListMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Creates a new AuthorizationPolicy in a given project and location.
                                                                                              +     * Creates a new UrlList in a given project and location.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - createAuthorizationPolicy( - com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest request) { + createUrlList(com.google.cloud.networksecurity.v1.CreateUrlListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAuthorizationPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getCreateUrlListMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Updates the parameters of a single AuthorizationPolicy.
                                                                                              +     * Updates the parameters of a single UrlList.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - updateAuthorizationPolicy( - com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest request) { + updateUrlList(com.google.cloud.networksecurity.v1.UpdateUrlListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAuthorizationPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateUrlListMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Deletes a single AuthorizationPolicy.
                                                                                              +     * Deletes a single UrlList.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - deleteAuthorizationPolicy( - com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest request) { + deleteUrlList(com.google.cloud.networksecurity.v1.DeleteUrlListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAuthorizationPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteUrlListMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Lists ServerTlsPolicies in a given project and location.
                                                                                              +     * Lists TlsInspectionPolicies in a given project and location.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse> - listServerTlsPolicies( - com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest request) { + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse> + listTlsInspectionPolicies( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServerTlsPoliciesMethod(), getCallOptions()), request); + getChannel().newCall(getListTlsInspectionPoliciesMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Gets details of a single ServerTlsPolicy.
                                                                                              +     * Gets details of a single TlsInspectionPolicy.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ServerTlsPolicy> - getServerTlsPolicy(com.google.cloud.networksecurity.v1.GetServerTlsPolicyRequest request) { + com.google.cloud.networksecurity.v1.TlsInspectionPolicy> + getTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServerTlsPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getGetTlsInspectionPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Creates a new ServerTlsPolicy in a given project and location.
                                                                                              +     * Creates a new TlsInspectionPolicy in a given project and location.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - createServerTlsPolicy( - com.google.cloud.networksecurity.v1.CreateServerTlsPolicyRequest request) { + createTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServerTlsPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getCreateTlsInspectionPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Updates the parameters of a single ServerTlsPolicy.
                                                                                              +     * Updates the parameters of a single TlsInspectionPolicy.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - updateServerTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateServerTlsPolicyRequest request) { + updateTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServerTlsPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateTlsInspectionPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Deletes a single ServerTlsPolicy.
                                                                                              +     * Deletes a single TlsInspectionPolicy.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - deleteServerTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteServerTlsPolicyRequest request) { + deleteTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServerTlsPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteTlsInspectionPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Lists ClientTlsPolicies in a given project and location.
                                                                                              +     * Lists AuthzPolicies in a given project and location.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse> - listClientTlsPolicies( - com.google.cloud.networksecurity.v1.ListClientTlsPoliciesRequest request) { + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse> + listAuthzPolicies(com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListClientTlsPoliciesMethod(), getCallOptions()), request); + getChannel().newCall(getListAuthzPoliciesMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Gets details of a single ClientTlsPolicy.
                                                                                              +     * Gets details of a single AuthzPolicy.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networksecurity.v1.ClientTlsPolicy> - getClientTlsPolicy(com.google.cloud.networksecurity.v1.GetClientTlsPolicyRequest request) { + com.google.cloud.networksecurity.v1.AuthzPolicy> + getAuthzPolicy(com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetClientTlsPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getGetAuthzPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Creates a new ClientTlsPolicy in a given project and location.
                                                                                              +     * Creates a new AuthzPolicy in a given project and location.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - createClientTlsPolicy( - com.google.cloud.networksecurity.v1.CreateClientTlsPolicyRequest request) { + createAuthzPolicy(com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateClientTlsPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getCreateAuthzPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Updates the parameters of a single ClientTlsPolicy.
                                                                                              +     * Updates the parameters of a single AuthzPolicy.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - updateClientTlsPolicy( - com.google.cloud.networksecurity.v1.UpdateClientTlsPolicyRequest request) { + updateAuthzPolicy(com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateClientTlsPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateAuthzPolicyMethod(), getCallOptions()), request); } /** * * *
                                                                                              -     * Deletes a single ClientTlsPolicy.
                                                                                              +     * Deletes a single AuthzPolicy.
                                                                                                    * 
                                                                                              */ public com.google.common.util.concurrent.ListenableFuture - deleteClientTlsPolicy( - com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest request) { + deleteAuthzPolicy(com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteClientTlsPolicyMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteAuthzPolicyMethod(), getCallOptions()), request); } } @@ -2046,16 +5756,46 @@ protected NetworkSecurityFutureStub build( private static final int METHODID_CREATE_AUTHORIZATION_POLICY = 2; private static final int METHODID_UPDATE_AUTHORIZATION_POLICY = 3; private static final int METHODID_DELETE_AUTHORIZATION_POLICY = 4; - private static final int METHODID_LIST_SERVER_TLS_POLICIES = 5; - private static final int METHODID_GET_SERVER_TLS_POLICY = 6; - private static final int METHODID_CREATE_SERVER_TLS_POLICY = 7; - private static final int METHODID_UPDATE_SERVER_TLS_POLICY = 8; - private static final int METHODID_DELETE_SERVER_TLS_POLICY = 9; - private static final int METHODID_LIST_CLIENT_TLS_POLICIES = 10; - private static final int METHODID_GET_CLIENT_TLS_POLICY = 11; - private static final int METHODID_CREATE_CLIENT_TLS_POLICY = 12; - private static final int METHODID_UPDATE_CLIENT_TLS_POLICY = 13; - private static final int METHODID_DELETE_CLIENT_TLS_POLICY = 14; + private static final int METHODID_LIST_BACKEND_AUTHENTICATION_CONFIGS = 5; + private static final int METHODID_GET_BACKEND_AUTHENTICATION_CONFIG = 6; + private static final int METHODID_CREATE_BACKEND_AUTHENTICATION_CONFIG = 7; + private static final int METHODID_UPDATE_BACKEND_AUTHENTICATION_CONFIG = 8; + private static final int METHODID_DELETE_BACKEND_AUTHENTICATION_CONFIG = 9; + private static final int METHODID_LIST_SERVER_TLS_POLICIES = 10; + private static final int METHODID_GET_SERVER_TLS_POLICY = 11; + private static final int METHODID_CREATE_SERVER_TLS_POLICY = 12; + private static final int METHODID_UPDATE_SERVER_TLS_POLICY = 13; + private static final int METHODID_DELETE_SERVER_TLS_POLICY = 14; + private static final int METHODID_LIST_CLIENT_TLS_POLICIES = 15; + private static final int METHODID_GET_CLIENT_TLS_POLICY = 16; + private static final int METHODID_CREATE_CLIENT_TLS_POLICY = 17; + private static final int METHODID_UPDATE_CLIENT_TLS_POLICY = 18; + private static final int METHODID_DELETE_CLIENT_TLS_POLICY = 19; + private static final int METHODID_LIST_GATEWAY_SECURITY_POLICIES = 20; + private static final int METHODID_GET_GATEWAY_SECURITY_POLICY = 21; + private static final int METHODID_CREATE_GATEWAY_SECURITY_POLICY = 22; + private static final int METHODID_UPDATE_GATEWAY_SECURITY_POLICY = 23; + private static final int METHODID_DELETE_GATEWAY_SECURITY_POLICY = 24; + private static final int METHODID_LIST_GATEWAY_SECURITY_POLICY_RULES = 25; + private static final int METHODID_GET_GATEWAY_SECURITY_POLICY_RULE = 26; + private static final int METHODID_CREATE_GATEWAY_SECURITY_POLICY_RULE = 27; + private static final int METHODID_UPDATE_GATEWAY_SECURITY_POLICY_RULE = 28; + private static final int METHODID_DELETE_GATEWAY_SECURITY_POLICY_RULE = 29; + private static final int METHODID_LIST_URL_LISTS = 30; + private static final int METHODID_GET_URL_LIST = 31; + private static final int METHODID_CREATE_URL_LIST = 32; + private static final int METHODID_UPDATE_URL_LIST = 33; + private static final int METHODID_DELETE_URL_LIST = 34; + private static final int METHODID_LIST_TLS_INSPECTION_POLICIES = 35; + private static final int METHODID_GET_TLS_INSPECTION_POLICY = 36; + private static final int METHODID_CREATE_TLS_INSPECTION_POLICY = 37; + private static final int METHODID_UPDATE_TLS_INSPECTION_POLICY = 38; + private static final int METHODID_DELETE_TLS_INSPECTION_POLICY = 39; + private static final int METHODID_LIST_AUTHZ_POLICIES = 40; + private static final int METHODID_GET_AUTHZ_POLICY = 41; + private static final int METHODID_CREATE_AUTHZ_POLICY = 42; + private static final int METHODID_UPDATE_AUTHZ_POLICY = 43; + private static final int METHODID_DELETE_AUTHZ_POLICY = 44; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2102,6 +5842,38 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_BACKEND_AUTHENTICATION_CONFIGS: + serviceImpl.listBackendAuthenticationConfigs( + (com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse>) + responseObserver); + break; + case METHODID_GET_BACKEND_AUTHENTICATION_CONFIG: + serviceImpl.getBackendAuthenticationConfig( + (com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig>) + responseObserver); + break; + case METHODID_CREATE_BACKEND_AUTHENTICATION_CONFIG: + serviceImpl.createBackendAuthenticationConfig( + (com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKEND_AUTHENTICATION_CONFIG: + serviceImpl.updateBackendAuthenticationConfig( + (com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKEND_AUTHENTICATION_CONFIG: + serviceImpl.deleteBackendAuthenticationConfig( + (com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_SERVER_TLS_POLICIES: serviceImpl.listServerTlsPolicies( (com.google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) request, @@ -2158,6 +5930,148 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_GATEWAY_SECURITY_POLICIES: + serviceImpl.listGatewaySecurityPolicies( + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse>) + responseObserver); + break; + case METHODID_GET_GATEWAY_SECURITY_POLICY: + serviceImpl.getGatewaySecurityPolicy( + (com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy>) + responseObserver); + break; + case METHODID_CREATE_GATEWAY_SECURITY_POLICY: + serviceImpl.createGatewaySecurityPolicy( + (com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_GATEWAY_SECURITY_POLICY: + serviceImpl.updateGatewaySecurityPolicy( + (com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GATEWAY_SECURITY_POLICY: + serviceImpl.deleteGatewaySecurityPolicy( + (com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GATEWAY_SECURITY_POLICY_RULES: + serviceImpl.listGatewaySecurityPolicyRules( + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse>) + responseObserver); + break; + case METHODID_GET_GATEWAY_SECURITY_POLICY_RULE: + serviceImpl.getGatewaySecurityPolicyRule( + (com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule>) + responseObserver); + break; + case METHODID_CREATE_GATEWAY_SECURITY_POLICY_RULE: + serviceImpl.createGatewaySecurityPolicyRule( + (com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_GATEWAY_SECURITY_POLICY_RULE: + serviceImpl.updateGatewaySecurityPolicyRule( + (com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GATEWAY_SECURITY_POLICY_RULE: + serviceImpl.deleteGatewaySecurityPolicyRule( + (com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_URL_LISTS: + serviceImpl.listUrlLists( + (com.google.cloud.networksecurity.v1.ListUrlListsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListUrlListsResponse>) + responseObserver); + break; + case METHODID_GET_URL_LIST: + serviceImpl.getUrlList( + (com.google.cloud.networksecurity.v1.GetUrlListRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_URL_LIST: + serviceImpl.createUrlList( + (com.google.cloud.networksecurity.v1.CreateUrlListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_URL_LIST: + serviceImpl.updateUrlList( + (com.google.cloud.networksecurity.v1.UpdateUrlListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_URL_LIST: + serviceImpl.deleteUrlList( + (com.google.cloud.networksecurity.v1.DeleteUrlListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TLS_INSPECTION_POLICIES: + serviceImpl.listTlsInspectionPolicies( + (com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse>) + responseObserver); + break; + case METHODID_GET_TLS_INSPECTION_POLICY: + serviceImpl.getTlsInspectionPolicy( + (com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_TLS_INSPECTION_POLICY: + serviceImpl.createTlsInspectionPolicy( + (com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_TLS_INSPECTION_POLICY: + serviceImpl.updateTlsInspectionPolicy( + (com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TLS_INSPECTION_POLICY: + serviceImpl.deleteTlsInspectionPolicy( + (com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_AUTHZ_POLICIES: + serviceImpl.listAuthzPolicies( + (com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse>) + responseObserver); + break; + case METHODID_GET_AUTHZ_POLICY: + serviceImpl.getAuthzPolicy( + (com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_AUTHZ_POLICY: + serviceImpl.createAuthzPolicy( + (com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AUTHZ_POLICY: + serviceImpl.updateAuthzPolicy( + (com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AUTHZ_POLICY: + serviceImpl.deleteAuthzPolicy( + (com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2211,6 +6125,41 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest, com.google.longrunning.Operation>( service, METHODID_DELETE_AUTHORIZATION_POLICY))) + .addMethod( + getListBackendAuthenticationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest, + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse>( + service, METHODID_LIST_BACKEND_AUTHENTICATION_CONFIGS))) + .addMethod( + getGetBackendAuthenticationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig>( + service, METHODID_GET_BACKEND_AUTHENTICATION_CONFIG))) + .addMethod( + getCreateBackendAuthenticationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_BACKEND_AUTHENTICATION_CONFIG))) + .addMethod( + getUpdateBackendAuthenticationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_BACKEND_AUTHENTICATION_CONFIG))) + .addMethod( + getDeleteBackendAuthenticationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_BACKEND_AUTHENTICATION_CONFIG))) .addMethod( getListServerTlsPoliciesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2275,6 +6224,174 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.networksecurity.v1.DeleteClientTlsPolicyRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_CLIENT_TLS_POLICY))) + .addMethod( + getListGatewaySecurityPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse>( + service, METHODID_LIST_GATEWAY_SECURITY_POLICIES))) + .addMethod( + getGetGatewaySecurityPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy>( + service, METHODID_GET_GATEWAY_SECURITY_POLICY))) + .addMethod( + getCreateGatewaySecurityPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_GATEWAY_SECURITY_POLICY))) + .addMethod( + getUpdateGatewaySecurityPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_GATEWAY_SECURITY_POLICY))) + .addMethod( + getDeleteGatewaySecurityPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_GATEWAY_SECURITY_POLICY))) + .addMethod( + getListGatewaySecurityPolicyRulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse>( + service, METHODID_LIST_GATEWAY_SECURITY_POLICY_RULES))) + .addMethod( + getGetGatewaySecurityPolicyRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule>( + service, METHODID_GET_GATEWAY_SECURITY_POLICY_RULE))) + .addMethod( + getCreateGatewaySecurityPolicyRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_GATEWAY_SECURITY_POLICY_RULE))) + .addMethod( + getUpdateGatewaySecurityPolicyRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_GATEWAY_SECURITY_POLICY_RULE))) + .addMethod( + getDeleteGatewaySecurityPolicyRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_GATEWAY_SECURITY_POLICY_RULE))) + .addMethod( + getListUrlListsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListUrlListsRequest, + com.google.cloud.networksecurity.v1.ListUrlListsResponse>( + service, METHODID_LIST_URL_LISTS))) + .addMethod( + getGetUrlListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetUrlListRequest, + com.google.cloud.networksecurity.v1.UrlList>(service, METHODID_GET_URL_LIST))) + .addMethod( + getCreateUrlListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateUrlListRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_URL_LIST))) + .addMethod( + getUpdateUrlListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateUrlListRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_URL_LIST))) + .addMethod( + getDeleteUrlListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteUrlListRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_URL_LIST))) + .addMethod( + getListTlsInspectionPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest, + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse>( + service, METHODID_LIST_TLS_INSPECTION_POLICIES))) + .addMethod( + getGetTlsInspectionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy>( + service, METHODID_GET_TLS_INSPECTION_POLICY))) + .addMethod( + getCreateTlsInspectionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_TLS_INSPECTION_POLICY))) + .addMethod( + getUpdateTlsInspectionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_TLS_INSPECTION_POLICY))) + .addMethod( + getDeleteTlsInspectionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_TLS_INSPECTION_POLICY))) + .addMethod( + getListAuthzPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest, + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse>( + service, METHODID_LIST_AUTHZ_POLICIES))) + .addMethod( + getGetAuthzPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest, + com.google.cloud.networksecurity.v1.AuthzPolicy>( + service, METHODID_GET_AUTHZ_POLICY))) + .addMethod( + getCreateAuthzPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_AUTHZ_POLICY))) + .addMethod( + getUpdateAuthzPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_AUTHZ_POLICY))) + .addMethod( + getDeleteAuthzPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_AUTHZ_POLICY))) .build(); } @@ -2331,6 +6448,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateAuthorizationPolicyMethod()) .addMethod(getUpdateAuthorizationPolicyMethod()) .addMethod(getDeleteAuthorizationPolicyMethod()) + .addMethod(getListBackendAuthenticationConfigsMethod()) + .addMethod(getGetBackendAuthenticationConfigMethod()) + .addMethod(getCreateBackendAuthenticationConfigMethod()) + .addMethod(getUpdateBackendAuthenticationConfigMethod()) + .addMethod(getDeleteBackendAuthenticationConfigMethod()) .addMethod(getListServerTlsPoliciesMethod()) .addMethod(getGetServerTlsPolicyMethod()) .addMethod(getCreateServerTlsPolicyMethod()) @@ -2341,6 +6463,31 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateClientTlsPolicyMethod()) .addMethod(getUpdateClientTlsPolicyMethod()) .addMethod(getDeleteClientTlsPolicyMethod()) + .addMethod(getListGatewaySecurityPoliciesMethod()) + .addMethod(getGetGatewaySecurityPolicyMethod()) + .addMethod(getCreateGatewaySecurityPolicyMethod()) + .addMethod(getUpdateGatewaySecurityPolicyMethod()) + .addMethod(getDeleteGatewaySecurityPolicyMethod()) + .addMethod(getListGatewaySecurityPolicyRulesMethod()) + .addMethod(getGetGatewaySecurityPolicyRuleMethod()) + .addMethod(getCreateGatewaySecurityPolicyRuleMethod()) + .addMethod(getUpdateGatewaySecurityPolicyRuleMethod()) + .addMethod(getDeleteGatewaySecurityPolicyRuleMethod()) + .addMethod(getListUrlListsMethod()) + .addMethod(getGetUrlListMethod()) + .addMethod(getCreateUrlListMethod()) + .addMethod(getUpdateUrlListMethod()) + .addMethod(getDeleteUrlListMethod()) + .addMethod(getListTlsInspectionPoliciesMethod()) + .addMethod(getGetTlsInspectionPolicyMethod()) + .addMethod(getCreateTlsInspectionPolicyMethod()) + .addMethod(getUpdateTlsInspectionPolicyMethod()) + .addMethod(getDeleteTlsInspectionPolicyMethod()) + .addMethod(getListAuthzPoliciesMethod()) + .addMethod(getGetAuthzPolicyMethod()) + .addMethod(getCreateAuthzPolicyMethod()) + .addMethod(getUpdateAuthzPolicyMethod()) + .addMethod(getDeleteAuthzPolicyMethod()) .build(); } } diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceGrpc.java new file mode 100644 index 000000000000..5925486fafc5 --- /dev/null +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceGrpc.java @@ -0,0 +1,1706 @@ +/* + * Copyright 2026 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. + */ +package com.google.cloud.networksecurity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                                                                              + * Organization SecurityProfileGroup is created under organization.
                                                                                              + * 
                                                                                              + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class OrganizationSecurityProfileGroupServiceGrpc { + + private OrganizationSecurityProfileGroupServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest, + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse> + getListSecurityProfileGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecurityProfileGroups", + requestType = com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest, + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse> + getListSecurityProfileGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest, + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse> + getListSecurityProfileGroupsMethod; + if ((getListSecurityProfileGroupsMethod = + OrganizationSecurityProfileGroupServiceGrpc.getListSecurityProfileGroupsMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getListSecurityProfileGroupsMethod = + OrganizationSecurityProfileGroupServiceGrpc.getListSecurityProfileGroupsMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getListSecurityProfileGroupsMethod = + getListSecurityProfileGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSecurityProfileGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "ListSecurityProfileGroups")) + .build(); + } + } + } + return getListSecurityProfileGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest, + com.google.cloud.networksecurity.v1.SecurityProfileGroup> + getGetSecurityProfileGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecurityProfileGroup", + requestType = com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest.class, + responseType = com.google.cloud.networksecurity.v1.SecurityProfileGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest, + com.google.cloud.networksecurity.v1.SecurityProfileGroup> + getGetSecurityProfileGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest, + com.google.cloud.networksecurity.v1.SecurityProfileGroup> + getGetSecurityProfileGroupMethod; + if ((getGetSecurityProfileGroupMethod = + OrganizationSecurityProfileGroupServiceGrpc.getGetSecurityProfileGroupMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getGetSecurityProfileGroupMethod = + OrganizationSecurityProfileGroupServiceGrpc.getGetSecurityProfileGroupMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getGetSecurityProfileGroupMethod = + getGetSecurityProfileGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSecurityProfileGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.SecurityProfileGroup + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "GetSecurityProfileGroup")) + .build(); + } + } + } + return getGetSecurityProfileGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getCreateSecurityProfileGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSecurityProfileGroup", + requestType = com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getCreateSecurityProfileGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getCreateSecurityProfileGroupMethod; + if ((getCreateSecurityProfileGroupMethod = + OrganizationSecurityProfileGroupServiceGrpc.getCreateSecurityProfileGroupMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getCreateSecurityProfileGroupMethod = + OrganizationSecurityProfileGroupServiceGrpc.getCreateSecurityProfileGroupMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getCreateSecurityProfileGroupMethod = + getCreateSecurityProfileGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateSecurityProfileGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "CreateSecurityProfileGroup")) + .build(); + } + } + } + return getCreateSecurityProfileGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getUpdateSecurityProfileGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityProfileGroup", + requestType = com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getUpdateSecurityProfileGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getUpdateSecurityProfileGroupMethod; + if ((getUpdateSecurityProfileGroupMethod = + OrganizationSecurityProfileGroupServiceGrpc.getUpdateSecurityProfileGroupMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getUpdateSecurityProfileGroupMethod = + OrganizationSecurityProfileGroupServiceGrpc.getUpdateSecurityProfileGroupMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getUpdateSecurityProfileGroupMethod = + getUpdateSecurityProfileGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSecurityProfileGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "UpdateSecurityProfileGroup")) + .build(); + } + } + } + return getUpdateSecurityProfileGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getDeleteSecurityProfileGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSecurityProfileGroup", + requestType = com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getDeleteSecurityProfileGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest, + com.google.longrunning.Operation> + getDeleteSecurityProfileGroupMethod; + if ((getDeleteSecurityProfileGroupMethod = + OrganizationSecurityProfileGroupServiceGrpc.getDeleteSecurityProfileGroupMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getDeleteSecurityProfileGroupMethod = + OrganizationSecurityProfileGroupServiceGrpc.getDeleteSecurityProfileGroupMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getDeleteSecurityProfileGroupMethod = + getDeleteSecurityProfileGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSecurityProfileGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "DeleteSecurityProfileGroup")) + .build(); + } + } + } + return getDeleteSecurityProfileGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest, + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse> + getListSecurityProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecurityProfiles", + requestType = com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest, + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse> + getListSecurityProfilesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest, + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse> + getListSecurityProfilesMethod; + if ((getListSecurityProfilesMethod = + OrganizationSecurityProfileGroupServiceGrpc.getListSecurityProfilesMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getListSecurityProfilesMethod = + OrganizationSecurityProfileGroupServiceGrpc.getListSecurityProfilesMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getListSecurityProfilesMethod = + getListSecurityProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSecurityProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "ListSecurityProfiles")) + .build(); + } + } + } + return getListSecurityProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest, + com.google.cloud.networksecurity.v1.SecurityProfile> + getGetSecurityProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecurityProfile", + requestType = com.google.cloud.networksecurity.v1.GetSecurityProfileRequest.class, + responseType = com.google.cloud.networksecurity.v1.SecurityProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest, + com.google.cloud.networksecurity.v1.SecurityProfile> + getGetSecurityProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest, + com.google.cloud.networksecurity.v1.SecurityProfile> + getGetSecurityProfileMethod; + if ((getGetSecurityProfileMethod = + OrganizationSecurityProfileGroupServiceGrpc.getGetSecurityProfileMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getGetSecurityProfileMethod = + OrganizationSecurityProfileGroupServiceGrpc.getGetSecurityProfileMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getGetSecurityProfileMethod = + getGetSecurityProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSecurityProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.SecurityProfile + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "GetSecurityProfile")) + .build(); + } + } + } + return getGetSecurityProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest, + com.google.longrunning.Operation> + getCreateSecurityProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSecurityProfile", + requestType = com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest, + com.google.longrunning.Operation> + getCreateSecurityProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest, + com.google.longrunning.Operation> + getCreateSecurityProfileMethod; + if ((getCreateSecurityProfileMethod = + OrganizationSecurityProfileGroupServiceGrpc.getCreateSecurityProfileMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getCreateSecurityProfileMethod = + OrganizationSecurityProfileGroupServiceGrpc.getCreateSecurityProfileMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getCreateSecurityProfileMethod = + getCreateSecurityProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateSecurityProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "CreateSecurityProfile")) + .build(); + } + } + } + return getCreateSecurityProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest, + com.google.longrunning.Operation> + getUpdateSecurityProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityProfile", + requestType = com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest, + com.google.longrunning.Operation> + getUpdateSecurityProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest, + com.google.longrunning.Operation> + getUpdateSecurityProfileMethod; + if ((getUpdateSecurityProfileMethod = + OrganizationSecurityProfileGroupServiceGrpc.getUpdateSecurityProfileMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getUpdateSecurityProfileMethod = + OrganizationSecurityProfileGroupServiceGrpc.getUpdateSecurityProfileMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getUpdateSecurityProfileMethod = + getUpdateSecurityProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSecurityProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "UpdateSecurityProfile")) + .build(); + } + } + } + return getUpdateSecurityProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest, + com.google.longrunning.Operation> + getDeleteSecurityProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSecurityProfile", + requestType = com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest, + com.google.longrunning.Operation> + getDeleteSecurityProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest, + com.google.longrunning.Operation> + getDeleteSecurityProfileMethod; + if ((getDeleteSecurityProfileMethod = + OrganizationSecurityProfileGroupServiceGrpc.getDeleteSecurityProfileMethod) + == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + if ((getDeleteSecurityProfileMethod = + OrganizationSecurityProfileGroupServiceGrpc.getDeleteSecurityProfileMethod) + == null) { + OrganizationSecurityProfileGroupServiceGrpc.getDeleteSecurityProfileMethod = + getDeleteSecurityProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSecurityProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier( + "DeleteSecurityProfile")) + .build(); + } + } + } + return getDeleteSecurityProfileMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static OrganizationSecurityProfileGroupServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationSecurityProfileGroupServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationSecurityProfileGroupServiceStub(channel, callOptions); + } + }; + return OrganizationSecurityProfileGroupServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static OrganizationSecurityProfileGroupServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory + factory = + new io.grpc.stub.AbstractStub.StubFactory< + OrganizationSecurityProfileGroupServiceBlockingV2Stub>() { + @java.lang.Override + public OrganizationSecurityProfileGroupServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationSecurityProfileGroupServiceBlockingV2Stub( + channel, callOptions); + } + }; + return OrganizationSecurityProfileGroupServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static OrganizationSecurityProfileGroupServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory + factory = + new io.grpc.stub.AbstractStub.StubFactory< + OrganizationSecurityProfileGroupServiceBlockingStub>() { + @java.lang.Override + public OrganizationSecurityProfileGroupServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationSecurityProfileGroupServiceBlockingStub( + channel, callOptions); + } + }; + return OrganizationSecurityProfileGroupServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static OrganizationSecurityProfileGroupServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory + factory = + new io.grpc.stub.AbstractStub.StubFactory< + OrganizationSecurityProfileGroupServiceFutureStub>() { + @java.lang.Override + public OrganizationSecurityProfileGroupServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationSecurityProfileGroupServiceFutureStub(channel, callOptions); + } + }; + return OrganizationSecurityProfileGroupServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                                                                              +   * Organization SecurityProfileGroup is created under organization.
                                                                                              +   * 
                                                                                              + */ + public interface AsyncService { + + /** + * + * + *
                                                                                              +     * Lists SecurityProfileGroups in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + default void listSecurityProfileGroups( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSecurityProfileGroupsMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + default void getSecurityProfileGroup( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSecurityProfileGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfileGroup in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + default void createSecurityProfileGroup( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSecurityProfileGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + default void updateSecurityProfileGroup( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecurityProfileGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + default void deleteSecurityProfileGroup( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSecurityProfileGroupMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfiles in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + default void listSecurityProfiles( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSecurityProfilesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + default void getSecurityProfile( + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSecurityProfileMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfile in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + default void createSecurityProfile( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSecurityProfileMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + default void updateSecurityProfile( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecurityProfileMethod(), responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + default void deleteSecurityProfile( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSecurityProfileMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service + * OrganizationSecurityProfileGroupService. + * + *
                                                                                              +   * Organization SecurityProfileGroup is created under organization.
                                                                                              +   * 
                                                                                              + */ + public abstract static class OrganizationSecurityProfileGroupServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return OrganizationSecurityProfileGroupServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service + * OrganizationSecurityProfileGroupService. + * + *
                                                                                              +   * Organization SecurityProfileGroup is created under organization.
                                                                                              +   * 
                                                                                              + */ + public static final class OrganizationSecurityProfileGroupServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private OrganizationSecurityProfileGroupServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationSecurityProfileGroupServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationSecurityProfileGroupServiceStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfileGroups in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public void listSecurityProfileGroups( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSecurityProfileGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public void getSecurityProfileGroup( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecurityProfileGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfileGroup in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public void createSecurityProfileGroup( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSecurityProfileGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public void updateSecurityProfileGroup( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityProfileGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public void deleteSecurityProfileGroup( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSecurityProfileGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfiles in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public void listSecurityProfiles( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSecurityProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public void getSecurityProfile( + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecurityProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfile in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public void createSecurityProfile( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSecurityProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public void updateSecurityProfile( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public void deleteSecurityProfile( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSecurityProfileMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service + * OrganizationSecurityProfileGroupService. + * + *
                                                                                              +   * Organization SecurityProfileGroup is created under organization.
                                                                                              +   * 
                                                                                              + */ + public static final class OrganizationSecurityProfileGroupServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub< + OrganizationSecurityProfileGroupServiceBlockingV2Stub> { + private OrganizationSecurityProfileGroupServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationSecurityProfileGroupServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationSecurityProfileGroupServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfileGroups in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + listSecurityProfileGroups( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListSecurityProfileGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroup( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSecurityProfileGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfileGroup in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createSecurityProfileGroup( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateSecurityProfileGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateSecurityProfileGroup( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateSecurityProfileGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteSecurityProfileGroup( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteSecurityProfileGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfiles in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse listSecurityProfiles( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListSecurityProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfile( + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetSecurityProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfile in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createSecurityProfile( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateSecurityProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateSecurityProfile( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateSecurityProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteSecurityProfile( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteSecurityProfileMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * OrganizationSecurityProfileGroupService. + * + *
                                                                                              +   * Organization SecurityProfileGroup is created under organization.
                                                                                              +   * 
                                                                                              + */ + public static final class OrganizationSecurityProfileGroupServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub< + OrganizationSecurityProfileGroupServiceBlockingStub> { + private OrganizationSecurityProfileGroupServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationSecurityProfileGroupServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationSecurityProfileGroupServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfileGroups in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + listSecurityProfileGroups( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSecurityProfileGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroup( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSecurityProfileGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfileGroup in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createSecurityProfileGroup( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSecurityProfileGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateSecurityProfileGroup( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityProfileGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteSecurityProfileGroup( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSecurityProfileGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfiles in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse listSecurityProfiles( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSecurityProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfile( + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSecurityProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfile in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation createSecurityProfile( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSecurityProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation updateSecurityProfile( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.longrunning.Operation deleteSecurityProfile( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSecurityProfileMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * OrganizationSecurityProfileGroupService. + * + *
                                                                                              +   * Organization SecurityProfileGroup is created under organization.
                                                                                              +   * 
                                                                                              + */ + public static final class OrganizationSecurityProfileGroupServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private OrganizationSecurityProfileGroupServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationSecurityProfileGroupServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationSecurityProfileGroupServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfileGroups in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse> + listSecurityProfileGroups( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSecurityProfileGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.SecurityProfileGroup> + getSecurityProfileGroup( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecurityProfileGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfileGroup in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createSecurityProfileGroup( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSecurityProfileGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateSecurityProfileGroup( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityProfileGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfileGroup.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSecurityProfileGroup( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSecurityProfileGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Lists SecurityProfiles in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse> + listSecurityProfiles( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSecurityProfilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Gets details of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.SecurityProfile> + getSecurityProfile(com.google.cloud.networksecurity.v1.GetSecurityProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecurityProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Creates a new SecurityProfile in a given organization and location.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + createSecurityProfile( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSecurityProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Updates the parameters of a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateSecurityProfile( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                              +     * Deletes a single SecurityProfile.
                                                                                              +     * 
                                                                                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSecurityProfile( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSecurityProfileMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_SECURITY_PROFILE_GROUPS = 0; + private static final int METHODID_GET_SECURITY_PROFILE_GROUP = 1; + private static final int METHODID_CREATE_SECURITY_PROFILE_GROUP = 2; + private static final int METHODID_UPDATE_SECURITY_PROFILE_GROUP = 3; + private static final int METHODID_DELETE_SECURITY_PROFILE_GROUP = 4; + private static final int METHODID_LIST_SECURITY_PROFILES = 5; + private static final int METHODID_GET_SECURITY_PROFILE = 6; + private static final int METHODID_CREATE_SECURITY_PROFILE = 7; + private static final int METHODID_UPDATE_SECURITY_PROFILE = 8; + private static final int METHODID_DELETE_SECURITY_PROFILE = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_SECURITY_PROFILE_GROUPS: + serviceImpl.listSecurityProfileGroups( + (com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse>) + responseObserver); + break; + case METHODID_GET_SECURITY_PROFILE_GROUP: + serviceImpl.getSecurityProfileGroup( + (com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.SecurityProfileGroup>) + responseObserver); + break; + case METHODID_CREATE_SECURITY_PROFILE_GROUP: + serviceImpl.createSecurityProfileGroup( + (com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SECURITY_PROFILE_GROUP: + serviceImpl.updateSecurityProfileGroup( + (com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SECURITY_PROFILE_GROUP: + serviceImpl.deleteSecurityProfileGroup( + (com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SECURITY_PROFILES: + serviceImpl.listSecurityProfiles( + (com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse>) + responseObserver); + break; + case METHODID_GET_SECURITY_PROFILE: + serviceImpl.getSecurityProfile( + (com.google.cloud.networksecurity.v1.GetSecurityProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SECURITY_PROFILE: + serviceImpl.createSecurityProfile( + (com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SECURITY_PROFILE: + serviceImpl.updateSecurityProfile( + (com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SECURITY_PROFILE: + serviceImpl.deleteSecurityProfile( + (com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListSecurityProfileGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest, + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse>( + service, METHODID_LIST_SECURITY_PROFILE_GROUPS))) + .addMethod( + getGetSecurityProfileGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest, + com.google.cloud.networksecurity.v1.SecurityProfileGroup>( + service, METHODID_GET_SECURITY_PROFILE_GROUP))) + .addMethod( + getCreateSecurityProfileGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_SECURITY_PROFILE_GROUP))) + .addMethod( + getUpdateSecurityProfileGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_SECURITY_PROFILE_GROUP))) + .addMethod( + getDeleteSecurityProfileGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_SECURITY_PROFILE_GROUP))) + .addMethod( + getListSecurityProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest, + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse>( + service, METHODID_LIST_SECURITY_PROFILES))) + .addMethod( + getGetSecurityProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest, + com.google.cloud.networksecurity.v1.SecurityProfile>( + service, METHODID_GET_SECURITY_PROFILE))) + .addMethod( + getCreateSecurityProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SECURITY_PROFILE))) + .addMethod( + getUpdateSecurityProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SECURITY_PROFILE))) + .addMethod( + getDeleteSecurityProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SECURITY_PROFILE))) + .build(); + } + + private abstract static class OrganizationSecurityProfileGroupServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + OrganizationSecurityProfileGroupServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("OrganizationSecurityProfileGroupService"); + } + } + + private static final class OrganizationSecurityProfileGroupServiceFileDescriptorSupplier + extends OrganizationSecurityProfileGroupServiceBaseDescriptorSupplier { + OrganizationSecurityProfileGroupServiceFileDescriptorSupplier() {} + } + + private static final class OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier + extends OrganizationSecurityProfileGroupServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + OrganizationSecurityProfileGroupServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (OrganizationSecurityProfileGroupServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new OrganizationSecurityProfileGroupServiceFileDescriptorSupplier()) + .addMethod(getListSecurityProfileGroupsMethod()) + .addMethod(getGetSecurityProfileGroupMethod()) + .addMethod(getCreateSecurityProfileGroupMethod()) + .addMethod(getUpdateSecurityProfileGroupMethod()) + .addMethod(getDeleteSecurityProfileGroupMethod()) + .addMethod(getListSecurityProfilesMethod()) + .addMethod(getGetSecurityProfileMethod()) + .addMethod(getCreateSecurityProfileMethod()) + .addMethod(getUpdateSecurityProfileMethod()) + .addMethod(getDeleteSecurityProfileMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupProto.java index 22f94b33380e..f277c309ade0 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupProto.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupProto.java @@ -109,25 +109,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "3google/cloud/networksecurity/v1/address_group.proto\022\037google.cloud.networksecur" + "ity.v1\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.proto\032#google/longrunning/operations.proto\032" + + "behavior.proto\032\033google/api/field_info.pr" + + "oto\032\031google/api/resource.proto\032,google/c" + + "loud/networksecurity/v1/common.proto\032#go" + + "ogle/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\275\006\n" + "\014AddressGroup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" - + "\006labels\030\005" - + " \003(\01329.google.cloud.networksecurity.v1.AddressGroup.LabelsEntryB\003\340A\001\022E\n" - + "\004type\030\006" - + " \001(\01622.google.cloud.networksecurity.v1.AddressGroup.TypeB\003\340A\002\022\022\n" + + "\006labels\030\005 \003(\01329.go" + + "ogle.cloud.networksecurity.v1.AddressGroup.LabelsEntryB\003\340A\001\022E\n" + + "\004type\030\006 \001(\01622.goog" + + "le.cloud.networksecurity.v1.AddressGroup.TypeB\003\340A\002\022\022\n" + "\005items\030\007 \003(\tB\003\340A\001\022\025\n" + "\010capacity\030\010 \001(\005B\003\340A\002\022\026\n" + "\tself_link\030\t \001(\tB\003\340A\003\022K\n" + "\007purpose\030\n" + " \003(\01625.google.cloud.networksecurity.v1.AddressGroup.PurposeB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"0\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\010\n" @@ -137,9 +139,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023PURPOSE_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\017\n" + "\013CLOUD_ARMOR\020\002:\311\001\352A\305\001\n" - + "+networksecurity.googleapis.com/AddressGroup\022Eprojects/{pro" - + "ject}/locations/{location}/addressGroups/{address_group}\022Oorganizations/{organiz" - + "ation}/locations/{location}/addressGroups/{address_group}\"\241\001\n" + + "+networksecurity.googleapis.com/AddressGroup\022Eprojects/{project}/locations/" + + "{location}/addressGroups/{address_group}\022Oorganizations/{organization}/locations" + + "/{location}/addressGroups/{address_group}\"\241\001\n" + "\030ListAddressGroupsRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\021\n" @@ -147,25 +149,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\t\022#\n" + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\220\001\n" + "\031ListAddressGroupsResponse\022E\n" - + "\016address_groups\030\001 \003(\0132-.go" - + "ogle.cloud.networksecurity.v1.AddressGroup\022\027\n" + + "\016address_groups\030\001" + + " \003(\0132-.google.cloud.networksecurity.v1.AddressGroup\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"[\n" + "\026GetAddressGroupRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + "+networksecurity.googleapis.com/AddressGroup\"\343\001\n" + "\031CreateAddressGroupRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+net" - + "worksecurity.googleapis.com/AddressGroup\022\035\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+networksecurity.googleapis.com/AddressGroup\022\035\n" + "\020address_group_id\030\002 \001(\tB\003\340A\002\022I\n\r" - + "address_group\030\003" - + " \001(\0132-.google.cloud.networksecurity.v1.AddressGroupB\003\340A\002\022\027\n\n" + + "address_group\030\003 \001(\0132-" + + ".google.cloud.networksecurity.v1.AddressGroupB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"\265\001\n" + "\031UpdateAddressGroupRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022I\n\r" - + "address_group\030\002 \001(\0132-" - + ".google.cloud.networksecurity.v1.AddressGroupB\003\340A\002\022\027\n\n" + + "address_group\030\002" + + " \001(\0132-.google.cloud.networksecurity.v1.AddressGroupB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"w\n" + "\031DeleteAddressGroupRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" @@ -193,121 +195,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\234\002\n" + "\"ListAddressGroupReferencesResponse\022{\n" - + "\030address_group_references\030\001 \003(\0132Y.google.c" - + "loud.networksecurity.v1.ListAddressGroup" - + "ReferencesResponse.AddressGroupReference\022\027\n" + + "\030address_group_references\030\001 \003(\0132Y.google.cloud.networksecu" + + "rity.v1.ListAddressGroupReferencesResponse.AddressGroupReference\022\027\n" + "\017next_page_token\030\002 \001(\t\032`\n" + "\025AddressGroupReference\022\027\n" + "\017firewall_policy\030\001 \001(\t\022\027\n" + "\017security_policy\030\004 \001(\t\022\025\n\r" + "rule_priority\030\002 \001(\0052\332\023\n" + "\023AddressGroupService\022\316\001\n" - + "\021ListAddressGroups\0229.google.cloud.networksecurity" - + ".v1.ListAddressGroupsRequest\032:.google.cloud.networksecurity.v1.ListAddressGroups" - + "Response\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/addressGroups\022\273\001\n" - + "\017GetAddressGroup\0227.google.cloud.networks" - + "ecurity.v1.GetAddressGroupRequest\032-.google.cloud.networksecurity.v1.AddressGroup" - + "\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=projects/*/locations/*/addressGroups/*}\022\246\002\n" - + "\022CreateAddressGroup\022:.google.cloud.networksecurity" - + ".v1.CreateAddressGroupRequest\032\035.google.longrunning.Operation\"\264\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operat" - + "ionMetadata\332A%parent,address_group,addre" - + "ss_group_id\202\323\344\223\002B\"1/v1/{parent=projects/*/locations/*}/addressGroups:\r" + + "\021ListAddressGroups\0229.google.cloud.networksecurity.v1.ListAddressG" + + "roupsRequest\032:.google.cloud.networksecur" + + "ity.v1.ListAddressGroupsResponse\"B\332A\006par" + + "ent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/addressGroups\022\273\001\n" + + "\017GetAddressGroup\0227.google.cloud.networksecurity.v1.GetAd" + + "dressGroupRequest\032-.google.cloud.network" + + "security.v1.AddressGroup\"@\332A\004name\202\323\344\223\0023\022" + + "1/v1/{name=projects/*/locations/*/addressGroups/*}\022\246\002\n" + + "\022CreateAddressGroup\022:.google.cloud.networksecurity.v1.CreateAddres" + + "sGroupRequest\032\035.google.longrunning.Operation\"\264\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMetadata\332A%pa" + + "rent,address_group,address_group_id\202\323\344\223\002" + + "B\"1/v1/{parent=projects/*/locations/*}/addressGroups:\r" + "address_group\022\250\002\n" - + "\022UpdateAddressGroup\022:.google.cloud.networksecurity.v1.UpdateAddressGroupR" - + "equest\032\035.google.longrunning.Operation\"\266\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networks" - + "ecurity.v1.OperationMetadata\332A\031address_g" - + "roup,update_mask\202\323\344\223\002P2?/v1/{address_gro" - + "up.name=projects/*/locations/*/addressGroups/*}:\r" + + "\022UpdateAddressGroup\022:.google.cloud.networksecurit" + + "y.v1.UpdateAddressGroupRequest\032\035.google.longrunning.Operation\"\266\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.Opera" + + "tionMetadata\332A\031address_group,update_mask" + + "\202\323\344\223\002P2?/v1/{address_group.name=projects/*/locations/*/addressGroups/*}:\r" + "address_group\022\236\002\n" - + "\024AddAddressGroupItems\022<.google.cloud.networksecurity.v" - + "1.AddAddressGroupItemsRequest\032\035.google.longrunning.Operation\"\250\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operat" - + "ionMetadata\332A\023address_group,items\202\323\344\223\002H\"" - + "C/v1/{address_group=projects/*/locations/*/addressGroups/*}:addItems:\001*\022\247\002\n" - + "\027RemoveAddressGroupItems\022?.google.cloud.netwo" - + "rksecurity.v1.RemoveAddressGroupItemsReq" - + "uest\032\035.google.longrunning.Operation\"\253\001\312AA\n" + + "\024AddAddressGroupItems\022<.google.cloud.networksecurity.v1.AddAddressGrou" + + "pItemsRequest\032\035.google.longrunning.Operation\"\250\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMetadata\332A\023ad" + + "dress_group,items\202\323\344\223\002H\"C/v1/{address_gr" + + "oup=projects/*/locations/*/addressGroups/*}:addItems:\001*\022\247\002\n" + + "\027RemoveAddressGroupItems\022?.google.cloud.networksecurity.v1.Re" + + "moveAddressGroupItemsRequest\032\035.google.longrunning.Operation\"\253\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operati" + + "onMetadata\332A\023address_group,items\202\323\344\223\002K\"F" + + "/v1/{address_group=projects/*/locations/*/addressGroups/*}:removeItems:\001*\022\263\002\n" + + "\026CloneAddressGroupItems\022>.google.cloud.netw" + + "orksecurity.v1.CloneAddressGroupItemsReq" + + "uest\032\035.google.longrunning.Operation\"\271\001\312AA\n" + "\014AddressGroup\0221google.cloud.networksec" - + "urity.v1.OperationMetadata\332A\023address_gro" - + "up,items\202\323\344\223\002K\"F/v1/{address_group=proje" - + "cts/*/locations/*/addressGroups/*}:removeItems:\001*\022\263\002\n" - + "\026CloneAddressGroupItems\022>.google.cloud.networksecurity.v1.CloneAddr" - + "essGroupItemsRequest\032\035.google.longrunning.Operation\"\271\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMetada" - + "ta\332A\"address_group,source_address_group\202" - + "\323\344\223\002J\"E/v1/{address_group=projects/*/loc" - + "ations/*/addressGroups/*}:cloneItems:\001*\022\377\001\n" - + "\022DeleteAddressGroup\022:.google.cloud.ne" - + "tworksecurity.v1.DeleteAddressGroupRequest\032\035.google.longrunning.Operation\"\215\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.net" - + "worksecurity.v1.OperationMetadata\332A\004name" - + "\202\323\344\223\0023*1/v1/{name=projects/*/locations/*/addressGroups/*}\022\210\002\n" - + "\032ListAddressGroupReferences\022B.google.cloud.networksecurity." - + "v1.ListAddressGroupReferencesRequest\032C.g" - + "oogle.cloud.networksecurity.v1.ListAddressGroupReferencesResponse\"a\332A\r" - + "address_group\202\323\344\223\002K\022I/v1/{address_group=projects/*" - + "/locations/*/addressGroups/*}:listRefere" - + "nces\032R\312A\036networksecurity.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-platform2\223\024\n" + + "urity.v1.OperationMetadata\332A\"address_gro" + + "up,source_address_group\202\323\344\223\002J\"E/v1/{addr" + + "ess_group=projects/*/locations/*/addressGroups/*}:cloneItems:\001*\022\377\001\n" + + "\022DeleteAddressGroup\022:.google.cloud.networksecurity.v1" + + ".DeleteAddressGroupRequest\032\035.google.longrunning.Operation\"\215\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.networksecurity.v1." + + "OperationMetadata\332A\004name\202\323\344\223\0023*1/v1/{nam" + + "e=projects/*/locations/*/addressGroups/*}\022\210\002\n" + + "\032ListAddressGroupReferences\022B.google.cloud.networksecurity.v1.ListAddressGr" + + "oupReferencesRequest\032C.google.cloud.netw" + + "orksecurity.v1.ListAddressGroupReferencesResponse\"a\332A\r" + + "address_group\202\323\344\223\002K\022I/v1/{address_group=projects/*/locations/*/add" + + "ressGroups/*}:listReferences\032R\312A\036network" + + "security.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform2\223\024\n" + "\037OrganizationAddressGroupService\022\323\001\n" - + "\021ListAddressGroups\0229.google.cloud.networksecurity.v1.ListAddressGroupsRe" - + "quest\032:.google.cloud.networksecurity.v1." - + "ListAddressGroupsResponse\"G\332A\006parent\202\323\344\223" - + "\0028\0226/v1/{parent=organizations/*/locations/*}/addressGroups\022\300\001\n" - + "\017GetAddressGroup\0227.google.cloud.networksecurity.v1.GetAddr" - + "essGroupRequest\032-.google.cloud.networkse" - + "curity.v1.AddressGroup\"E\332A\004name\202\323\344\223\0028\0226/" - + "v1/{name=organizations/*/locations/*/addressGroups/*}\022\253\002\n" - + "\022CreateAddressGroup\022:.google.cloud.networksecurity.v1.CreateAdd" - + "ressGroupRequest\032\035.google.longrunning.Operation\"\271\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMetadata\332A" - + "%parent,address_group,address_group_id\202\323" - + "\344\223\002G\"6/v1/{parent=organizations/*/locations/*}/addressGroups:\r" + + "\021ListAddressGroups\0229.google.cloud.networksecurit" + + "y.v1.ListAddressGroupsRequest\032:.google.cloud.networksecurity.v1.ListAddressGroup" + + "sResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=" + + "organizations/*/locations/*}/addressGroups\022\300\001\n" + + "\017GetAddressGroup\0227.google.cloud.networksecurity.v1.GetAddressGroupRequest\032" + + "-.google.cloud.networksecurity.v1.Addres" + + "sGroup\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=organiz" + + "ations/*/locations/*/addressGroups/*}\022\253\002\n" + + "\022CreateAddressGroup\022:.google.cloud.netw" + + "orksecurity.v1.CreateAddressGroupRequest\032\035.google.longrunning.Operation\"\271\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurit" + + "y.v1.OperationMetadata\332A%parent,address_" + + "group,address_group_id\202\323\344\223\002G\"6/v1/{paren" + + "t=organizations/*/locations/*}/addressGroups:\r" + "address_group\022\255\002\n" - + "\022UpdateAddressGroup\022:.google.cloud.networ" - + "ksecurity.v1.UpdateAddressGroupRequest\032\035.google.longrunning.Operation\"\273\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networksecurity." - + "v1.OperationMetadata\332A\031address_group,upd" - + "ate_mask\202\323\344\223\002U2D/v1/{address_group.name=" - + "organizations/*/locations/*/addressGroups/*}:\r" + + "\022UpdateAddressGroup\022:.google.cloud.networksecurity.v1.Upd" + + "ateAddressGroupRequest\032\035.google.longrunning.Operation\"\273\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMeta" + + "data\332A\031address_group,update_mask\202\323\344\223\002U2D" + + "/v1/{address_group.name=organizations/*/locations/*/addressGroups/*}:\r" + "address_group\022\243\002\n" - + "\024AddAddressGroupItems\022<.google.cloud.networksecurity.v1.A" - + "ddAddressGroupItemsRequest\032\035.google.longrunning.Operation\"\255\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operation" - + "Metadata\332A\023address_group,items\202\323\344\223\002M\"H/v" - + "1/{address_group=organizations/*/locations/*/addressGroups/*}:addItems:\001*\022\254\002\n" - + "\027RemoveAddressGroupItems\022?.google.cloud.net" - + "worksecurity.v1.RemoveAddressGroupItemsR" - + "equest\032\035.google.longrunning.Operation\"\260\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networks" - + "ecurity.v1.OperationMetadata\332A\023address_g" - + "roup,items\202\323\344\223\002P\"K/v1/{address_group=org" - + "anizations/*/locations/*/addressGroups/*}:removeItems:\001*\022\270\002\n" - + "\026CloneAddressGroupItems\022>.google.cloud.networksecurity.v1.Cl" - + "oneAddressGroupItemsRequest\032\035.google.longrunning.Operation\"\276\001\312AA\n" - + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operatio" - + "nMetadata\332A\"address_group,source_address" - + "_group\202\323\344\223\002O\"J/v1/{address_group=organiz" - + "ations/*/locations/*/addressGroups/*}:cloneItems:\001*\022\204\002\n" - + "\022DeleteAddressGroup\022:.google.cloud.networksecurity.v1.DeleteAddre" - + "ssGroupRequest\032\035.google.longrunning.Operation\"\222\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.networksecurity.v1.OperationMet" - + "adata\332A\004name\202\323\344\223\0028*6/v1/{name=organizations/*/locations/*/addressGroups/*}\022\215\002\n" - + "\032ListAddressGroupReferences\022B.google.cloud" - + ".networksecurity.v1.ListAddressGroupReferencesRequest\032C.google.cloud.networksecu" - + "rity.v1.ListAddressGroupReferencesResponse\"f\332A\r" - + "address_group\202\323\344\223\002P\022N/v1/{address" - + "_group=organizations/*/locations/*/addre" - + "ssGroups/*}:listReferences\032R\312A\036networkse" - + "curity.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\335\002\n" - + "#com.google.cloud.networksecurity.v1B\021AddressG" - + "roupProtoP\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb;network" - + "securitypb\252\002\037Google.Cloud.NetworkSecurit" - + "y.V1\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Google::Cloud::NetworkSecurity::V1\352Ah\n" - + "3networksecurity.googleapis.com/OrganizationLocation\0221organizations/{organization" - + "}/locations/{location}b\006proto3" + + "\024AddAddressGroupItems\022<.google.cloud.networksecurity.v1.AddAddressGroupIt" + + "emsRequest\032\035.google.longrunning.Operation\"\255\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMetadata\332A\023addre" + + "ss_group,items\202\323\344\223\002M\"H/v1/{address_group" + + "=organizations/*/locations/*/addressGroups/*}:addItems:\001*\022\254\002\n" + + "\027RemoveAddressGroupItems\022?.google.cloud.networksecurity.v1." + + "RemoveAddressGroupItemsRequest\032\035.google.longrunning.Operation\"\260\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.Opera" + + "tionMetadata\332A\023address_group,items\202\323\344\223\002P" + + "\"K/v1/{address_group=organizations/*/loc" + + "ations/*/addressGroups/*}:removeItems:\001*\022\270\002\n" + + "\026CloneAddressGroupItems\022>.google.cloud.networksecurity.v1.CloneAddressGroupI" + + "temsRequest\032\035.google.longrunning.Operation\"\276\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMetadata\332A\"addr" + + "ess_group,source_address_group\202\323\344\223\002O\"J/v" + + "1/{address_group=organizations/*/locations/*/addressGroups/*}:cloneItems:\001*\022\204\002\n" + + "\022DeleteAddressGroup\022:.google.cloud.networ" + + "ksecurity.v1.DeleteAddressGroupRequest\032\035.google.longrunning.Operation\"\222\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.network" + + "security.v1.OperationMetadata\332A\004name\202\323\344\223" + + "\0028*6/v1/{name=organizations/*/locations/*/addressGroups/*}\022\215\002\n" + + "\032ListAddressGroupReferences\022B.google.cloud.networksecurity" + + ".v1.ListAddressGroupReferencesRequest\032C." + + "google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse\"f\332A\r" + + "address_group\202\323\344\223\002P\022N/v1/{address_group=organizat" + + "ions/*/locations/*/addressGroups/*}:list" + + "References\032R\312A\036networksecurity.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/cloud-platformB\362\001\n" + + "#com.google.cloud.networksecurity.v1B\021AddressGroupProtoP\001ZMclo" + + "ud.google.com/go/networksecurity/apiv1/n" + + "etworksecuritypb;networksecuritypb\252\002\037Goo" + + "gle.Cloud.NetworkSecurity.V1\312\002\037Google\\Cl" + + "oud\\NetworkSecurity\\V1\352\002\"Google::Cloud::NetworkSecurity::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -316,8 +314,11 @@ 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.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -447,8 +448,11 @@ 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.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = @@ -459,7 +463,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AntivirusOverride.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AntivirusOverride.java new file mode 100644 index 000000000000..708fc2960416 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AntivirusOverride.java @@ -0,0 +1,759 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Defines what action to take for antivirus threats per protocol.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AntivirusOverride} + */ +@com.google.protobuf.Generated +public final class AntivirusOverride extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AntivirusOverride) + AntivirusOverrideOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AntivirusOverride"); + } + + // Use AntivirusOverride.newBuilder() to construct. + private AntivirusOverride(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AntivirusOverride() { + protocol_ = 0; + action_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_AntivirusOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_AntivirusOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AntivirusOverride.class, + com.google.cloud.networksecurity.v1.AntivirusOverride.Builder.class); + } + + public static final int PROTOCOL_FIELD_NUMBER = 1; + private int protocol_ = 0; + + /** + * + * + *
                                                                                              +   * Required. Protocol to match.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override + public int getProtocolValue() { + return protocol_; + } + + /** + * + * + *
                                                                                              +   * Required. Protocol to match.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocol. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.Protocol getProtocol() { + com.google.cloud.networksecurity.v1.Protocol result = + com.google.cloud.networksecurity.v1.Protocol.forNumber(protocol_); + return result == null ? com.google.cloud.networksecurity.v1.Protocol.UNRECOGNIZED : result; + } + + public static final int ACTION_FIELD_NUMBER = 2; + private int action_ = 0; + + /** + * + * + *
                                                                                              +   * Required. Threat action override. For some threat types, only a subset of
                                                                                              +   * actions applies.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                                                                              +   * Required. Threat action override. For some threat types, only a subset of
                                                                                              +   * actions applies.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatAction getAction() { + com.google.cloud.networksecurity.v1.ThreatAction result = + com.google.cloud.networksecurity.v1.ThreatAction.forNumber(action_); + return result == null ? com.google.cloud.networksecurity.v1.ThreatAction.UNRECOGNIZED : result; + } + + 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 (protocol_ + != com.google.cloud.networksecurity.v1.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { + output.writeEnum(1, protocol_); + } + if (action_ + != com.google.cloud.networksecurity.v1.ThreatAction.THREAT_ACTION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, action_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (protocol_ + != com.google.cloud.networksecurity.v1.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, protocol_); + } + if (action_ + != com.google.cloud.networksecurity.v1.ThreatAction.THREAT_ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_); + } + 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.networksecurity.v1.AntivirusOverride)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AntivirusOverride other = + (com.google.cloud.networksecurity.v1.AntivirusOverride) obj; + + if (protocol_ != other.protocol_) return false; + if (action_ != other.action_) 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) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + protocol_; + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride 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.networksecurity.v1.AntivirusOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride 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.networksecurity.v1.AntivirusOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AntivirusOverride 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Defines what action to take for antivirus threats per protocol.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AntivirusOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AntivirusOverride) + com.google.cloud.networksecurity.v1.AntivirusOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_AntivirusOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_AntivirusOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AntivirusOverride.class, + com.google.cloud.networksecurity.v1.AntivirusOverride.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.AntivirusOverride.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + protocol_ = 0; + action_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_AntivirusOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AntivirusOverride getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AntivirusOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AntivirusOverride build() { + com.google.cloud.networksecurity.v1.AntivirusOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AntivirusOverride buildPartial() { + com.google.cloud.networksecurity.v1.AntivirusOverride result = + new com.google.cloud.networksecurity.v1.AntivirusOverride(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.AntivirusOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.protocol_ = protocol_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = action_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.AntivirusOverride) { + return mergeFrom((com.google.cloud.networksecurity.v1.AntivirusOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.AntivirusOverride other) { + if (other == com.google.cloud.networksecurity.v1.AntivirusOverride.getDefaultInstance()) + return this; + if (other.protocol_ != 0) { + setProtocolValue(other.getProtocolValue()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + 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 8: + { + protocol_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 int protocol_ = 0; + + /** + * + * + *
                                                                                              +     * Required. Protocol to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + @java.lang.Override + public int getProtocolValue() { + return protocol_; + } + + /** + * + * + *
                                                                                              +     * Required. Protocol to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolValue(int value) { + protocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Protocol to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocol. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.Protocol getProtocol() { + com.google.cloud.networksecurity.v1.Protocol result = + com.google.cloud.networksecurity.v1.Protocol.forNumber(protocol_); + return result == null ? com.google.cloud.networksecurity.v1.Protocol.UNRECOGNIZED : result; + } + + /** + * + * + *
                                                                                              +     * Required. Protocol to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(com.google.cloud.networksecurity.v1.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + protocol_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Protocol to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00000001); + protocol_ = 0; + onChanged(); + return this; + } + + private int action_ = 0; + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatAction getAction() { + com.google.cloud.networksecurity.v1.ThreatAction result = + com.google.cloud.networksecurity.v1.ThreatAction.forNumber(action_); + return result == null + ? com.google.cloud.networksecurity.v1.ThreatAction.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.cloud.networksecurity.v1.ThreatAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + action_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000002); + action_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AntivirusOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AntivirusOverride) + private static final com.google.cloud.networksecurity.v1.AntivirusOverride DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AntivirusOverride(); + } + + public static com.google.cloud.networksecurity.v1.AntivirusOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AntivirusOverride 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.networksecurity.v1.AntivirusOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AntivirusOverrideOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AntivirusOverrideOrBuilder.java new file mode 100644 index 000000000000..6b2367d1303b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AntivirusOverrideOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface AntivirusOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AntivirusOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Protocol to match.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocol. + */ + int getProtocolValue(); + + /** + * + * + *
                                                                                              +   * Required. Protocol to match.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Protocol protocol = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocol. + */ + com.google.cloud.networksecurity.v1.Protocol getProtocol(); + + /** + * + * + *
                                                                                              +   * Required. Threat action override. For some threat types, only a subset of
                                                                                              +   * actions applies.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + + /** + * + * + *
                                                                                              +   * Required. Threat action override. For some threat types, only a subset of
                                                                                              +   * actions applies.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + com.google.cloud.networksecurity.v1.ThreatAction getAction(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java index 35e63dafaf0b..e00acf28189a 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicy.java @@ -272,10 +272,10 @@ public interface RuleOrBuilder * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -289,10 +289,10 @@ public interface RuleOrBuilder * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -305,10 +305,10 @@ public interface RuleOrBuilder * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -321,10 +321,10 @@ public interface RuleOrBuilder * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -339,10 +339,10 @@ public interface RuleOrBuilder * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -356,9 +356,9 @@ public interface RuleOrBuilder * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -374,9 +374,9 @@ public interface RuleOrBuilder * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -392,9 +392,9 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDest * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -409,9 +409,9 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDest * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -429,9 +429,9 @@ com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination getDest * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -503,9 +503,9 @@ public interface SourceOrBuilder * * *
                                                                                              -       * Optional. List of peer identities to match for authorization. At least one
                                                                                              -       * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -       * match (example, "namespace/*") or a suffix match (example,
                                                                                              +       * Optional. List of peer identities to match for authorization. At least
                                                                                              +       * one principal should match. Each peer can be an exact match, or a
                                                                                              +       * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                      * "*/service-account") or a presence match "*". Authorization based on
                                                                                                      * the principal name without certificate validation (configured by
                                                                                                      * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -521,9 +521,9 @@ public interface SourceOrBuilder
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              -       * Optional. List of peer identities to match for authorization. At least one
                                                                                              -       * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -       * match (example, "namespace/*") or a suffix match (example,
                                                                                              +       * Optional. List of peer identities to match for authorization. At least
                                                                                              +       * one principal should match. Each peer can be an exact match, or a
                                                                                              +       * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                      * "*/service-account") or a presence match "*". Authorization based on
                                                                                                      * the principal name without certificate validation (configured by
                                                                                                      * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -539,9 +539,9 @@ public interface SourceOrBuilder
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              -       * Optional. List of peer identities to match for authorization. At least one
                                                                                              -       * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -       * match (example, "namespace/*") or a suffix match (example,
                                                                                              +       * Optional. List of peer identities to match for authorization. At least
                                                                                              +       * one principal should match. Each peer can be an exact match, or a
                                                                                              +       * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                      * "*/service-account") or a presence match "*". Authorization based on
                                                                                                      * the principal name without certificate validation (configured by
                                                                                                      * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -558,9 +558,9 @@ public interface SourceOrBuilder
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              -       * Optional. List of peer identities to match for authorization. At least one
                                                                                              -       * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -       * match (example, "namespace/*") or a suffix match (example,
                                                                                              +       * Optional. List of peer identities to match for authorization. At least
                                                                                              +       * one principal should match. Each peer can be an exact match, or a
                                                                                              +       * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                      * "*/service-account") or a presence match "*". Authorization based on
                                                                                                      * the principal name without certificate validation (configured by
                                                                                                      * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -577,11 +577,11 @@ public interface SourceOrBuilder
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              -       * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -       * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -       * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -       * should be considered untrusted.
                                                                                              +       * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +       * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +       * proxies should be considered untrusted.
                                                                                                      * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -594,11 +594,11 @@ public interface SourceOrBuilder * * *
                                                                                              -       * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -       * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -       * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -       * should be considered untrusted.
                                                                                              +       * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +       * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +       * proxies should be considered untrusted.
                                                                                                      * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -611,11 +611,11 @@ public interface SourceOrBuilder * * *
                                                                                              -       * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -       * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -       * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -       * should be considered untrusted.
                                                                                              +       * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +       * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +       * proxies should be considered untrusted.
                                                                                                      * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -629,11 +629,11 @@ public interface SourceOrBuilder * * *
                                                                                              -       * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -       * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -       * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -       * should be considered untrusted.
                                                                                              +       * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +       * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +       * proxies should be considered untrusted.
                                                                                                      * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -704,9 +704,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                              -       * Optional. List of peer identities to match for authorization. At least one
                                                                                              -       * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -       * match (example, "namespace/*") or a suffix match (example,
                                                                                              +       * Optional. List of peer identities to match for authorization. At least
                                                                                              +       * one principal should match. Each peer can be an exact match, or a
                                                                                              +       * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                      * "*/service-account") or a presence match "*". Authorization based on
                                                                                                      * the principal name without certificate validation (configured by
                                                                                                      * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -724,9 +724,9 @@ public com.google.protobuf.ProtocolStringList getPrincipalsList() {
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              -       * Optional. List of peer identities to match for authorization. At least one
                                                                                              -       * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -       * match (example, "namespace/*") or a suffix match (example,
                                                                                              +       * Optional. List of peer identities to match for authorization. At least
                                                                                              +       * one principal should match. Each peer can be an exact match, or a
                                                                                              +       * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                      * "*/service-account") or a presence match "*". Authorization based on
                                                                                                      * the principal name without certificate validation (configured by
                                                                                                      * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -744,9 +744,9 @@ public int getPrincipalsCount() {
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              -       * Optional. List of peer identities to match for authorization. At least one
                                                                                              -       * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -       * match (example, "namespace/*") or a suffix match (example,
                                                                                              +       * Optional. List of peer identities to match for authorization. At least
                                                                                              +       * one principal should match. Each peer can be an exact match, or a
                                                                                              +       * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                      * "*/service-account") or a presence match "*". Authorization based on
                                                                                                      * the principal name without certificate validation (configured by
                                                                                                      * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -765,9 +765,9 @@ public java.lang.String getPrincipals(int index) {
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              -       * Optional. List of peer identities to match for authorization. At least one
                                                                                              -       * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -       * match (example, "namespace/*") or a suffix match (example,
                                                                                              +       * Optional. List of peer identities to match for authorization. At least
                                                                                              +       * one principal should match. Each peer can be an exact match, or a
                                                                                              +       * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                      * "*/service-account") or a presence match "*". Authorization based on
                                                                                                      * the principal name without certificate validation (configured by
                                                                                                      * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -792,11 +792,11 @@ public com.google.protobuf.ByteString getPrincipalsBytes(int index) {
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              -       * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -       * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -       * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -       * should be considered untrusted.
                                                                                              +       * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +       * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +       * proxies should be considered untrusted.
                                                                                                      * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -811,11 +811,11 @@ public com.google.protobuf.ProtocolStringList getIpBlocksList() { * * *
                                                                                              -       * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -       * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -       * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -       * should be considered untrusted.
                                                                                              +       * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +       * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +       * proxies should be considered untrusted.
                                                                                                      * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -830,11 +830,11 @@ public int getIpBlocksCount() { * * *
                                                                                              -       * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -       * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -       * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -       * should be considered untrusted.
                                                                                              +       * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +       * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +       * proxies should be considered untrusted.
                                                                                                      * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -850,11 +850,11 @@ public java.lang.String getIpBlocks(int index) { * * *
                                                                                              -       * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -       * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -       * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -       * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -       * should be considered untrusted.
                                                                                              +       * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +       * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +       * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +       * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +       * proxies should be considered untrusted.
                                                                                                      * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1257,9 +1257,9 @@ private void ensurePrincipalsIsMutable() { * * *
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1278,9 +1278,9 @@ public com.google.protobuf.ProtocolStringList getPrincipalsList() {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1298,9 +1298,9 @@ public int getPrincipalsCount() {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1319,9 +1319,9 @@ public java.lang.String getPrincipals(int index) {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1340,9 +1340,9 @@ public com.google.protobuf.ByteString getPrincipalsBytes(int index) {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1369,9 +1369,9 @@ public Builder setPrincipals(int index, java.lang.String value) {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1397,9 +1397,9 @@ public Builder addPrincipals(java.lang.String value) {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1422,9 +1422,9 @@ public Builder addAllPrincipals(java.lang.Iterable values) {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1446,9 +1446,9 @@ public Builder clearPrincipals() {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of peer identities to match for authorization. At least one
                                                                                              -         * principal should match. Each peer can be an exact match, or a prefix
                                                                                              -         * match (example, "namespace/*") or a suffix match (example,
                                                                                              +         * Optional. List of peer identities to match for authorization. At least
                                                                                              +         * one principal should match. Each peer can be an exact match, or a
                                                                                              +         * prefix match (example, "namespace/*") or a suffix match (example,
                                                                                                        * "*/service-account") or a presence match "*". Authorization based on
                                                                                                        * the principal name without certificate validation (configured by
                                                                                                        * ServerTlsPolicy resource) is considered insecure.
                                                                                              @@ -1485,11 +1485,11 @@ private void ensureIpBlocksIsMutable() {
                                                                                                        *
                                                                                                        *
                                                                                                        * 
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1505,11 +1505,11 @@ public com.google.protobuf.ProtocolStringList getIpBlocksList() { * * *
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1524,11 +1524,11 @@ public int getIpBlocksCount() { * * *
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1544,11 +1544,11 @@ public java.lang.String getIpBlocks(int index) { * * *
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1564,11 +1564,11 @@ public com.google.protobuf.ByteString getIpBlocksBytes(int index) { * * *
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1592,11 +1592,11 @@ public Builder setIpBlocks(int index, java.lang.String value) { * * *
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1619,11 +1619,11 @@ public Builder addIpBlocks(java.lang.String value) { * * *
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1643,11 +1643,11 @@ public Builder addAllIpBlocks(java.lang.Iterable values) { * * *
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1666,11 +1666,11 @@ public Builder clearIpBlocks() { * * *
                                                                                              -         * Optional. List of CIDR ranges to match based on source IP address. At least one
                                                                                              -         * IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g.,
                                                                                              -         * "1.2.3.0/24") are supported. Authorization based on source IP alone
                                                                                              -         * should be avoided. The IP addresses of any load balancers or proxies
                                                                                              -         * should be considered untrusted.
                                                                                              +         * Optional. List of CIDR ranges to match based on source IP address. At
                                                                                              +         * least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
                                                                                              +         * (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
                                                                                              +         * alone should be avoided. The IP addresses of any load balancers or
                                                                                              +         * proxies should be considered untrusted.
                                                                                                        * 
                                                                                              * * repeated string ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1755,9 +1755,9 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -       * http requests. At least one host should match. Each host can be an
                                                                                              -       * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +       * Required. List of host names to match. Matched against the ":authority"
                                                                                              +       * header in http requests. At least one host should match. Each host can
                                                                                              +       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                      * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                      * 
                                                                                              * @@ -1771,9 +1771,9 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -       * http requests. At least one host should match. Each host can be an
                                                                                              -       * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +       * Required. List of host names to match. Matched against the ":authority"
                                                                                              +       * header in http requests. At least one host should match. Each host can
                                                                                              +       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                      * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                      * 
                                                                                              * @@ -1787,9 +1787,9 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -       * http requests. At least one host should match. Each host can be an
                                                                                              -       * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +       * Required. List of host names to match. Matched against the ":authority"
                                                                                              +       * header in http requests. At least one host should match. Each host can
                                                                                              +       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                      * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                      * 
                                                                                              * @@ -1804,9 +1804,9 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -       * http requests. At least one host should match. Each host can be an
                                                                                              -       * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +       * Required. List of host names to match. Matched against the ":authority"
                                                                                              +       * header in http requests. At least one host should match. Each host can
                                                                                              +       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                      * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                      * 
                                                                                              * @@ -1821,7 +1821,8 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Required. List of destination ports to match. At least one port should match.
                                                                                              +       * Required. List of destination ports to match. At least one port should
                                                                                              +       * match.
                                                                                                      * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1834,7 +1835,8 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Required. List of destination ports to match. At least one port should match.
                                                                                              +       * Required. List of destination ports to match. At least one port should
                                                                                              +       * match.
                                                                                                      * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1847,7 +1849,8 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Required. List of destination ports to match. At least one port should match.
                                                                                              +       * Required. List of destination ports to match. At least one port should
                                                                                              +       * match.
                                                                                                      * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1919,11 +1922,11 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -       * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -       * header should match. Avoid using header matches to make authorization
                                                                                              -       * decisions unless there is a strong guarantee that requests arrive
                                                                                              -       * through a trusted client or proxy.
                                                                                              +       * Optional. Match against key:value pair in http header. Provides a
                                                                                              +       * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +       * cases. At least one header should match. Avoid using header matches to
                                                                                              +       * make authorization decisions unless there is a strong guarantee that
                                                                                              +       * requests arrive through a trusted client or proxy.
                                                                                                      * 
                                                                                              * * @@ -1938,11 +1941,11 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -       * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -       * header should match. Avoid using header matches to make authorization
                                                                                              -       * decisions unless there is a strong guarantee that requests arrive
                                                                                              -       * through a trusted client or proxy.
                                                                                              +       * Optional. Match against key:value pair in http header. Provides a
                                                                                              +       * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +       * cases. At least one header should match. Avoid using header matches to
                                                                                              +       * make authorization decisions unless there is a strong guarantee that
                                                                                              +       * requests arrive through a trusted client or proxy.
                                                                                                      * 
                                                                                              * * @@ -1958,11 +1961,11 @@ public interface DestinationOrBuilder * * *
                                                                                              -       * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -       * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -       * header should match. Avoid using header matches to make authorization
                                                                                              -       * decisions unless there is a strong guarantee that requests arrive
                                                                                              -       * through a trusted client or proxy.
                                                                                              +       * Optional. Match against key:value pair in http header. Provides a
                                                                                              +       * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +       * cases. At least one header should match. Avoid using header matches to
                                                                                              +       * make authorization decisions unless there is a strong guarantee that
                                                                                              +       * requests arrive through a trusted client or proxy.
                                                                                                      * 
                                                                                              * * @@ -3183,9 +3186,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
                                                                                              -       * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -       * http requests. At least one host should match. Each host can be an
                                                                                              -       * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +       * Required. List of host names to match. Matched against the ":authority"
                                                                                              +       * header in http requests. At least one host should match. Each host can
                                                                                              +       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                      * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                      * 
                                                                                              * @@ -3201,9 +3204,9 @@ public com.google.protobuf.ProtocolStringList getHostsList() { * * *
                                                                                              -       * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -       * http requests. At least one host should match. Each host can be an
                                                                                              -       * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +       * Required. List of host names to match. Matched against the ":authority"
                                                                                              +       * header in http requests. At least one host should match. Each host can
                                                                                              +       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                      * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                      * 
                                                                                              * @@ -3219,9 +3222,9 @@ public int getHostsCount() { * * *
                                                                                              -       * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -       * http requests. At least one host should match. Each host can be an
                                                                                              -       * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +       * Required. List of host names to match. Matched against the ":authority"
                                                                                              +       * header in http requests. At least one host should match. Each host can
                                                                                              +       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                      * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                      * 
                                                                                              * @@ -3238,9 +3241,9 @@ public java.lang.String getHosts(int index) { * * *
                                                                                              -       * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -       * http requests. At least one host should match. Each host can be an
                                                                                              -       * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +       * Required. List of host names to match. Matched against the ":authority"
                                                                                              +       * header in http requests. At least one host should match. Each host can
                                                                                              +       * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                      * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                      * 
                                                                                              * @@ -3262,7 +3265,8 @@ public com.google.protobuf.ByteString getHostsBytes(int index) { * * *
                                                                                              -       * Required. List of destination ports to match. At least one port should match.
                                                                                              +       * Required. List of destination ports to match. At least one port should
                                                                                              +       * match.
                                                                                                      * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3278,7 +3282,8 @@ public java.util.List getPortsList() { * * *
                                                                                              -       * Required. List of destination ports to match. At least one port should match.
                                                                                              +       * Required. List of destination ports to match. At least one port should
                                                                                              +       * match.
                                                                                                      * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3293,7 +3298,8 @@ public int getPortsCount() { * * *
                                                                                              -       * Required. List of destination ports to match. At least one port should match.
                                                                                              +       * Required. List of destination ports to match. At least one port should
                                                                                              +       * match.
                                                                                                      * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3388,11 +3394,11 @@ public com.google.protobuf.ByteString getMethodsBytes(int index) { * * *
                                                                                              -       * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -       * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -       * header should match. Avoid using header matches to make authorization
                                                                                              -       * decisions unless there is a strong guarantee that requests arrive
                                                                                              -       * through a trusted client or proxy.
                                                                                              +       * Optional. Match against key:value pair in http header. Provides a
                                                                                              +       * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +       * cases. At least one header should match. Avoid using header matches to
                                                                                              +       * make authorization decisions unless there is a strong guarantee that
                                                                                              +       * requests arrive through a trusted client or proxy.
                                                                                                      * 
                                                                                              * * @@ -3410,11 +3416,11 @@ public boolean hasHttpHeaderMatch() { * * *
                                                                                              -       * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -       * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -       * header should match. Avoid using header matches to make authorization
                                                                                              -       * decisions unless there is a strong guarantee that requests arrive
                                                                                              -       * through a trusted client or proxy.
                                                                                              +       * Optional. Match against key:value pair in http header. Provides a
                                                                                              +       * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +       * cases. At least one header should match. Avoid using header matches to
                                                                                              +       * make authorization decisions unless there is a strong guarantee that
                                                                                              +       * requests arrive through a trusted client or proxy.
                                                                                                      * 
                                                                                              * * @@ -3437,11 +3443,11 @@ public boolean hasHttpHeaderMatch() { * * *
                                                                                              -       * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -       * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -       * header should match. Avoid using header matches to make authorization
                                                                                              -       * decisions unless there is a strong guarantee that requests arrive
                                                                                              -       * through a trusted client or proxy.
                                                                                              +       * Optional. Match against key:value pair in http header. Provides a
                                                                                              +       * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +       * cases. At least one header should match. Avoid using header matches to
                                                                                              +       * make authorization decisions unless there is a strong guarantee that
                                                                                              +       * requests arrive through a trusted client or proxy.
                                                                                                      * 
                                                                                              * * @@ -3964,9 +3970,9 @@ private void ensureHostsIsMutable() { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -3983,9 +3989,9 @@ public com.google.protobuf.ProtocolStringList getHostsList() { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -4001,9 +4007,9 @@ public int getHostsCount() { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -4020,9 +4026,9 @@ public java.lang.String getHosts(int index) { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -4039,9 +4045,9 @@ public com.google.protobuf.ByteString getHostsBytes(int index) { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -4066,9 +4072,9 @@ public Builder setHosts(int index, java.lang.String value) { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -4092,9 +4098,9 @@ public Builder addHosts(java.lang.String value) { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -4115,9 +4121,9 @@ public Builder addAllHosts(java.lang.Iterable values) { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -4137,9 +4143,9 @@ public Builder clearHosts() { * * *
                                                                                              -         * Required. List of host names to match. Matched against the ":authority" header in
                                                                                              -         * http requests. At least one host should match. Each host can be an
                                                                                              -         * exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                              +         * Required. List of host names to match. Matched against the ":authority"
                                                                                              +         * header in http requests. At least one host should match. Each host can
                                                                                              +         * be an exact match, or a prefix match (example "mydomain.*") or a suffix
                                                                                                        * match (example "*.myorg.com") or a presence (any) match "*".
                                                                                                        * 
                                                                                              * @@ -4173,7 +4179,8 @@ private void ensurePortsIsMutable() { * * *
                                                                                              -         * Required. List of destination ports to match. At least one port should match.
                                                                                              +         * Required. List of destination ports to match. At least one port should
                                                                                              +         * match.
                                                                                                        * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4189,7 +4196,8 @@ public java.util.List getPortsList() { * * *
                                                                                              -         * Required. List of destination ports to match. At least one port should match.
                                                                                              +         * Required. List of destination ports to match. At least one port should
                                                                                              +         * match.
                                                                                                        * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4204,7 +4212,8 @@ public int getPortsCount() { * * *
                                                                                              -         * Required. List of destination ports to match. At least one port should match.
                                                                                              +         * Required. List of destination ports to match. At least one port should
                                                                                              +         * match.
                                                                                                        * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4220,7 +4229,8 @@ public int getPorts(int index) { * * *
                                                                                              -         * Required. List of destination ports to match. At least one port should match.
                                                                                              +         * Required. List of destination ports to match. At least one port should
                                                                                              +         * match.
                                                                                                        * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4242,7 +4252,8 @@ public Builder setPorts(int index, int value) { * * *
                                                                                              -         * Required. List of destination ports to match. At least one port should match.
                                                                                              +         * Required. List of destination ports to match. At least one port should
                                                                                              +         * match.
                                                                                                        * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4263,7 +4274,8 @@ public Builder addPorts(int value) { * * *
                                                                                              -         * Required. List of destination ports to match. At least one port should match.
                                                                                              +         * Required. List of destination ports to match. At least one port should
                                                                                              +         * match.
                                                                                                        * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4283,7 +4295,8 @@ public Builder addAllPorts(java.lang.Iterable value * * *
                                                                                              -         * Required. List of destination ports to match. At least one port should match.
                                                                                              +         * Required. List of destination ports to match. At least one port should
                                                                                              +         * match.
                                                                                                        * 
                                                                                              * * repeated uint32 ports = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4505,11 +4518,11 @@ public Builder addMethodsBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4526,11 +4539,11 @@ public boolean hasHttpHeaderMatch() { * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4556,11 +4569,11 @@ public boolean hasHttpHeaderMatch() { * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4587,11 +4600,11 @@ public Builder setHttpHeaderMatch( * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4616,11 +4629,11 @@ public Builder setHttpHeaderMatch( * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4654,11 +4667,11 @@ public Builder mergeHttpHeaderMatch( * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4680,11 +4693,11 @@ public Builder clearHttpHeaderMatch() { * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4703,11 +4716,11 @@ public Builder clearHttpHeaderMatch() { * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4731,11 +4744,11 @@ public Builder clearHttpHeaderMatch() { * * *
                                                                                              -         * Optional. Match against key:value pair in http header. Provides a flexible match
                                                                                              -         * based on HTTP headers, for potentially advanced use cases. At least one
                                                                                              -         * header should match. Avoid using header matches to make authorization
                                                                                              -         * decisions unless there is a strong guarantee that requests arrive
                                                                                              -         * through a trusted client or proxy.
                                                                                              +         * Optional. Match against key:value pair in http header. Provides a
                                                                                              +         * flexible match based on HTTP headers, for potentially advanced use
                                                                                              +         * cases. At least one header should match. Avoid using header matches to
                                                                                              +         * make authorization decisions unless there is a strong guarantee that
                                                                                              +         * requests arrive through a trusted client or proxy.
                                                                                                        * 
                                                                                              * * @@ -4831,10 +4844,10 @@ public com.google.protobuf.Parser getParserForType() { * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -4851,10 +4864,10 @@ public com.google.protobuf.Parser getParserForType() { * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -4872,10 +4885,10 @@ public com.google.protobuf.Parser getParserForType() { * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -4891,10 +4904,10 @@ public int getSourcesCount() { * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -4911,10 +4924,10 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo * * *
                                                                                              -     * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -     * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -     * the action specified in the 'action' field will be applied without any
                                                                                              -     * rule checks for the source.
                                                                                              +     * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +     * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +     * If not set, the action specified in the 'action' field will be applied
                                                                                              +     * without any rule checks for the source.
                                                                                                    * 
                                                                                              * * @@ -4937,9 +4950,9 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -4958,9 +4971,9 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -4981,9 +4994,9 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -5001,9 +5014,9 @@ public int getDestinationsCount() { * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -5022,9 +5035,9 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination * * *
                                                                                              -     * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -     * must match. A destination is a match if a request matches all the
                                                                                              -     * specified hosts, ports, methods and headers. If not set, the
                                                                                              +     * Optional. List of attributes for the traffic destination. All of the
                                                                                              +     * destinations must match. A destination is a match if a request matches
                                                                                              +     * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                    * action specified in the 'action' field will be applied without any rule
                                                                                                    * checks for the destination.
                                                                                                    * 
                                                                                              @@ -5494,10 +5507,10 @@ private void ensureSourcesIsMutable() { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5517,10 +5530,10 @@ private void ensureSourcesIsMutable() { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5539,10 +5552,10 @@ public int getSourcesCount() { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5562,10 +5575,10 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source getSo * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5591,10 +5604,10 @@ public Builder setSources( * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5619,10 +5632,10 @@ public Builder setSources( * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5648,10 +5661,10 @@ public Builder addSources( * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5677,10 +5690,10 @@ public Builder addSources( * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5704,10 +5717,10 @@ public Builder addSources( * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5732,10 +5745,10 @@ public Builder addSources( * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5760,10 +5773,10 @@ public Builder addAllSources( * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5785,10 +5798,10 @@ public Builder clearSources() { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5810,10 +5823,10 @@ public Builder removeSources(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5829,10 +5842,10 @@ public Builder removeSources(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5852,10 +5865,10 @@ public Builder removeSources(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5877,10 +5890,10 @@ public Builder removeSources(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5899,10 +5912,10 @@ public Builder removeSources(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5922,10 +5935,10 @@ public Builder removeSources(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic source. All of the sources must match.
                                                                                              -       * A source is a match if both principals and ip_blocks match. If not set,
                                                                                              -       * the action specified in the 'action' field will be applied without any
                                                                                              -       * rule checks for the source.
                                                                                              +       * Optional. List of attributes for the traffic source. All of the sources
                                                                                              +       * must match. A source is a match if both principals and ip_blocks match.
                                                                                              +       * If not set, the action specified in the 'action' field will be applied
                                                                                              +       * without any rule checks for the source.
                                                                                                      * 
                                                                                              * * @@ -5979,9 +5992,9 @@ private void ensureDestinationsIsMutable() { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6004,9 +6017,9 @@ private void ensureDestinationsIsMutable() { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6027,9 +6040,9 @@ public int getDestinationsCount() { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6051,9 +6064,9 @@ public int getDestinationsCount() { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6082,9 +6095,9 @@ public Builder setDestinations( * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6111,9 +6124,9 @@ public Builder setDestinations( * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6141,9 +6154,9 @@ public Builder addDestinations( * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6172,9 +6185,9 @@ public Builder addDestinations( * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6200,9 +6213,9 @@ public Builder addDestinations( * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6229,9 +6242,9 @@ public Builder addDestinations( * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6259,9 +6272,9 @@ public Builder addAllDestinations( * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6285,9 +6298,9 @@ public Builder clearDestinations() { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6311,9 +6324,9 @@ public Builder removeDestinations(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6331,9 +6344,9 @@ public Builder removeDestinations(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6355,9 +6368,9 @@ public Builder removeDestinations(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6381,9 +6394,9 @@ public Builder removeDestinations(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6404,9 +6417,9 @@ public Builder removeDestinations(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6428,9 +6441,9 @@ public Builder removeDestinations(int index) { * * *
                                                                                              -       * Optional. List of attributes for the traffic destination. All of the destinations
                                                                                              -       * must match. A destination is a match if a request matches all the
                                                                                              -       * specified hosts, ports, methods and headers. If not set, the
                                                                                              +       * Optional. List of attributes for the traffic destination. All of the
                                                                                              +       * destinations must match. A destination is a match if a request matches
                                                                                              +       * all the specified hosts, ports, methods and headers. If not set, the
                                                                                                      * action specified in the 'action' field will be applied without any rule
                                                                                                      * checks for the destination.
                                                                                                      * 
                                                                                              @@ -6765,7 +6778,8 @@ public int getLabelsCount() { * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -6789,7 +6803,8 @@ public java.util.Map getLabels() { * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -6803,7 +6818,8 @@ public java.util.Map getLabelsMap() { * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -6824,7 +6840,8 @@ public java.util.Map getLabelsMap() { * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -6895,10 +6912,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction( * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -6915,10 +6933,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction( * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -6936,10 +6955,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Action getAction( * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -6955,10 +6975,11 @@ public int getRulesCount() { * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -6974,10 +6995,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getRules(int * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -8245,7 +8267,8 @@ public int getLabelsCount() { * * *
                                                                                              -     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +     * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +     * resource.
                                                                                                    * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -8269,7 +8292,8 @@ public java.util.Map getLabels() { * * *
                                                                                              -     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +     * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +     * resource.
                                                                                                    * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -8283,7 +8307,8 @@ public java.util.Map getLabelsMap() { * * *
                                                                                              -     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +     * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +     * resource.
                                                                                                    * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -8304,7 +8329,8 @@ public java.util.Map getLabelsMap() { * * *
                                                                                              -     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +     * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +     * resource.
                                                                                                    * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -8331,7 +8357,8 @@ public Builder clearLabels() { * * *
                                                                                              -     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +     * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +     * resource.
                                                                                                    * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -8355,7 +8382,8 @@ public java.util.Map getMutableLabels() { * * *
                                                                                              -     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +     * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +     * resource.
                                                                                                    * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -8376,7 +8404,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
                                                                                              -     * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +     * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +     * resource.
                                                                                                    * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -8521,10 +8550,11 @@ private void ensureRulesIsMutable() { * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8544,10 +8574,11 @@ private void ensureRulesIsMutable() { * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8566,10 +8597,11 @@ public int getRulesCount() { * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8588,10 +8620,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule getRules(int * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8617,10 +8650,11 @@ public Builder setRules( * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8644,10 +8678,11 @@ public Builder setRules( * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8672,10 +8707,11 @@ public Builder addRules(com.google.cloud.networksecurity.v1.AuthorizationPolicy. * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8701,10 +8737,11 @@ public Builder addRules( * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8727,10 +8764,11 @@ public Builder addRules( * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8754,10 +8792,11 @@ public Builder addRules( * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8781,10 +8820,11 @@ public Builder addAllRules( * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8806,10 +8846,11 @@ public Builder clearRules() { * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8831,10 +8872,11 @@ public Builder removeRules(int index) { * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8850,10 +8892,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder getR * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8873,10 +8916,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder get * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8897,10 +8941,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder get * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8917,10 +8962,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder addR * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * @@ -8939,10 +8985,11 @@ public com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Builder addR * * *
                                                                                              -     * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -     * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -     * a match if there is a matching source and destination. If left blank, the
                                                                                              -     * action specified in the `action` field will be applied on every request.
                                                                                              +     * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +     * match in order for the action specified in the 'action' field to be taken.
                                                                                              +     * A rule is a match if there is a matching source and destination. If left
                                                                                              +     * blank, the action specified in the `action` field will be applied on every
                                                                                              +     * request.
                                                                                                    * 
                                                                                              * * diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java index 73fb6081554a..4a261b8568fe 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyOrBuilder.java @@ -164,7 +164,8 @@ public interface AuthorizationPolicyOrBuilder * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -175,7 +176,8 @@ public interface AuthorizationPolicyOrBuilder * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -190,7 +192,8 @@ public interface AuthorizationPolicyOrBuilder * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -201,7 +204,8 @@ public interface AuthorizationPolicyOrBuilder * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -216,7 +220,8 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Set of label tags associated with the AuthorizationPolicy resource.
                                                                                              +   * Optional. Set of label tags associated with the AuthorizationPolicy
                                                                                              +   * resource.
                                                                                                  * 
                                                                                              * * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -259,10 +264,11 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -275,10 +281,11 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -291,10 +298,11 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -307,10 +315,11 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * @@ -324,10 +333,11 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. List of rules to match. Note that at least one of the rules must match in
                                                                                              -   * order for the action specified in the 'action' field to be taken. A rule is
                                                                                              -   * a match if there is a matching source and destination. If left blank, the
                                                                                              -   * action specified in the `action` field will be applied on every request.
                                                                                              +   * Optional. List of rules to match. Note that at least one of the rules must
                                                                                              +   * match in order for the action specified in the 'action' field to be taken.
                                                                                              +   * A rule is a match if there is a matching source and destination. If left
                                                                                              +   * blank, the action specified in the `action` field will be applied on every
                                                                                              +   * request.
                                                                                                  * 
                                                                                              * * diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicy.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicy.java new file mode 100644 index 000000000000..801d09f8d077 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicy.java @@ -0,0 +1,30847 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * `AuthzPolicy` is a resource that allows to forward traffic to a
                                                                                              + * callout backend designed to scan the traffic for security purposes.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy} + */ +@com.google.protobuf.Generated +public final class AuthzPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy) + AuthzPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthzPolicy"); + } + + // Use AuthzPolicy.newBuilder() to construct. + private AuthzPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthzPolicy() { + name_ = ""; + description_ = ""; + httpRules_ = java.util.Collections.emptyList(); + action_ = 0; + policyProfile_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder.class); + } + + /** + * + * + *
                                                                                              +   * Load balancing schemes supported by the `AuthzPolicy` resource. The valid
                                                                                              +   * values are `INTERNAL_MANAGED` and
                                                                                              +   * `EXTERNAL_MANAGED`. For more information, refer to [Backend services
                                                                                              +   * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme} + */ + public enum LoadBalancingScheme implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Default value. Do not use.
                                                                                              +     * 
                                                                                              + * + * LOAD_BALANCING_SCHEME_UNSPECIFIED = 0; + */ + LOAD_BALANCING_SCHEME_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * Signifies that this is used for Regional internal or Cross-region
                                                                                              +     * internal Application Load Balancing.
                                                                                              +     * 
                                                                                              + * + * INTERNAL_MANAGED = 1; + */ + INTERNAL_MANAGED(1), + /** + * + * + *
                                                                                              +     * Signifies that this is used for Global external or Regional external
                                                                                              +     * Application Load Balancing.
                                                                                              +     * 
                                                                                              + * + * EXTERNAL_MANAGED = 2; + */ + EXTERNAL_MANAGED(2), + /** + * + * + *
                                                                                              +     * Signifies that this is used for Cloud Service Mesh. Meant for use by
                                                                                              +     * CSM GKE controller only.
                                                                                              +     * 
                                                                                              + * + * INTERNAL_SELF_MANAGED = 3; + */ + INTERNAL_SELF_MANAGED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LoadBalancingScheme"); + } + + /** + * + * + *
                                                                                              +     * Default value. Do not use.
                                                                                              +     * 
                                                                                              + * + * LOAD_BALANCING_SCHEME_UNSPECIFIED = 0; + */ + public static final int LOAD_BALANCING_SCHEME_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * Signifies that this is used for Regional internal or Cross-region
                                                                                              +     * internal Application Load Balancing.
                                                                                              +     * 
                                                                                              + * + * INTERNAL_MANAGED = 1; + */ + public static final int INTERNAL_MANAGED_VALUE = 1; + + /** + * + * + *
                                                                                              +     * Signifies that this is used for Global external or Regional external
                                                                                              +     * Application Load Balancing.
                                                                                              +     * 
                                                                                              + * + * EXTERNAL_MANAGED = 2; + */ + public static final int EXTERNAL_MANAGED_VALUE = 2; + + /** + * + * + *
                                                                                              +     * Signifies that this is used for Cloud Service Mesh. Meant for use by
                                                                                              +     * CSM GKE controller only.
                                                                                              +     * 
                                                                                              + * + * INTERNAL_SELF_MANAGED = 3; + */ + public static final int INTERNAL_SELF_MANAGED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LoadBalancingScheme valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LoadBalancingScheme forNumber(int value) { + switch (value) { + case 0: + return LOAD_BALANCING_SCHEME_UNSPECIFIED; + case 1: + return INTERNAL_MANAGED; + case 2: + return EXTERNAL_MANAGED; + case 3: + return INTERNAL_SELF_MANAGED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LoadBalancingScheme findValueByNumber(int number) { + return LoadBalancingScheme.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final LoadBalancingScheme[] VALUES = values(); + + public static LoadBalancingScheme valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LoadBalancingScheme(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme) + } + + /** + * + * + *
                                                                                              +   * The action to be applied to this policy. Valid values are
                                                                                              +   * `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction} + */ + public enum AuthzAction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Unspecified action.
                                                                                              +     * 
                                                                                              + * + * AUTHZ_ACTION_UNSPECIFIED = 0; + */ + AUTHZ_ACTION_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * Allow request to pass through to the backend.
                                                                                              +     * 
                                                                                              + * + * ALLOW = 1; + */ + ALLOW(1), + /** + * + * + *
                                                                                              +     * Deny the request and return a HTTP 404 to the client.
                                                                                              +     * 
                                                                                              + * + * DENY = 2; + */ + DENY(2), + /** + * + * + *
                                                                                              +     * Delegate the authorization decision to an external authorization engine.
                                                                                              +     * 
                                                                                              + * + * CUSTOM = 3; + */ + CUSTOM(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthzAction"); + } + + /** + * + * + *
                                                                                              +     * Unspecified action.
                                                                                              +     * 
                                                                                              + * + * AUTHZ_ACTION_UNSPECIFIED = 0; + */ + public static final int AUTHZ_ACTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * Allow request to pass through to the backend.
                                                                                              +     * 
                                                                                              + * + * ALLOW = 1; + */ + public static final int ALLOW_VALUE = 1; + + /** + * + * + *
                                                                                              +     * Deny the request and return a HTTP 404 to the client.
                                                                                              +     * 
                                                                                              + * + * DENY = 2; + */ + public static final int DENY_VALUE = 2; + + /** + * + * + *
                                                                                              +     * Delegate the authorization decision to an external authorization engine.
                                                                                              +     * 
                                                                                              + * + * CUSTOM = 3; + */ + public static final int CUSTOM_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthzAction valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AuthzAction forNumber(int value) { + switch (value) { + case 0: + return AUTHZ_ACTION_UNSPECIFIED; + case 1: + return ALLOW; + case 2: + return DENY; + case 3: + return CUSTOM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthzAction findValueByNumber(int number) { + return AuthzAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.getDescriptor().getEnumTypes().get(1); + } + + private static final AuthzAction[] VALUES = values(); + + public static AuthzAction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AuthzAction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction) + } + + /** + * + * + *
                                                                                              +   * The type of authorization being performed.
                                                                                              +   * New values may be added in the future.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile} + */ + public enum PolicyProfile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Unspecified policy profile.
                                                                                              +     * 
                                                                                              + * + * POLICY_PROFILE_UNSPECIFIED = 0; + */ + POLICY_PROFILE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * Applies to request authorization. `CUSTOM` authorization
                                                                                              +     * policies with Authz extensions will be allowed with `EXT_AUTHZ_GRPC` or
                                                                                              +     * `EXT_PROC_GRPC` protocols. Extensions are invoked only for request header
                                                                                              +     * events.
                                                                                              +     * 
                                                                                              + * + * REQUEST_AUTHZ = 1; + */ + REQUEST_AUTHZ(1), + /** + * + * + *
                                                                                              +     * Applies to content security, sanitization, etc. Only
                                                                                              +     * `CUSTOM` action is allowed in this policy profile. AuthzExtensions in the
                                                                                              +     * custom provider must support `EXT_PROC_GRPC` protocol only and be capable
                                                                                              +     * of receiving all `EXT_PROC_GRPC` events (REQUEST_HEADERS, REQUEST_BODY,
                                                                                              +     * REQUEST_TRAILERS, RESPONSE_HEADERS, RESPONSE_BODY, RESPONSE_TRAILERS)
                                                                                              +     * with `FULL_DUPLEX_STREAMED` body send mode.
                                                                                              +     * 
                                                                                              + * + * CONTENT_AUTHZ = 2; + */ + CONTENT_AUTHZ(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PolicyProfile"); + } + + /** + * + * + *
                                                                                              +     * Unspecified policy profile.
                                                                                              +     * 
                                                                                              + * + * POLICY_PROFILE_UNSPECIFIED = 0; + */ + public static final int POLICY_PROFILE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * Applies to request authorization. `CUSTOM` authorization
                                                                                              +     * policies with Authz extensions will be allowed with `EXT_AUTHZ_GRPC` or
                                                                                              +     * `EXT_PROC_GRPC` protocols. Extensions are invoked only for request header
                                                                                              +     * events.
                                                                                              +     * 
                                                                                              + * + * REQUEST_AUTHZ = 1; + */ + public static final int REQUEST_AUTHZ_VALUE = 1; + + /** + * + * + *
                                                                                              +     * Applies to content security, sanitization, etc. Only
                                                                                              +     * `CUSTOM` action is allowed in this policy profile. AuthzExtensions in the
                                                                                              +     * custom provider must support `EXT_PROC_GRPC` protocol only and be capable
                                                                                              +     * of receiving all `EXT_PROC_GRPC` events (REQUEST_HEADERS, REQUEST_BODY,
                                                                                              +     * REQUEST_TRAILERS, RESPONSE_HEADERS, RESPONSE_BODY, RESPONSE_TRAILERS)
                                                                                              +     * with `FULL_DUPLEX_STREAMED` body send mode.
                                                                                              +     * 
                                                                                              + * + * CONTENT_AUTHZ = 2; + */ + public static final int CONTENT_AUTHZ_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyProfile valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PolicyProfile forNumber(int value) { + switch (value) { + case 0: + return POLICY_PROFILE_UNSPECIFIED; + case 1: + return REQUEST_AUTHZ; + case 2: + return CONTENT_AUTHZ; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PolicyProfile findValueByNumber(int number) { + return PolicyProfile.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.getDescriptor().getEnumTypes().get(2); + } + + private static final PolicyProfile[] VALUES = values(); + + public static PolicyProfile valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PolicyProfile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile) + } + + public interface TargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.Target) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +     * extensions must share the same load balancing scheme. Supported values:
                                                                                              +     * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +     * to [Backend services
                                                                                              +     * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for loadBalancingScheme. + */ + int getLoadBalancingSchemeValue(); + + /** + * + * + *
                                                                                              +     * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +     * extensions must share the same load balancing scheme. Supported values:
                                                                                              +     * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +     * to [Backend services
                                                                                              +     * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loadBalancingScheme. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme getLoadBalancingScheme(); + + /** + * + * + *
                                                                                              +     * Required. A list of references to the Forwarding Rules on which this
                                                                                              +     * policy will be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the resources. + */ + java.util.List getResourcesList(); + + /** + * + * + *
                                                                                              +     * Required. A list of references to the Forwarding Rules on which this
                                                                                              +     * policy will be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of resources. + */ + int getResourcesCount(); + + /** + * + * + *
                                                                                              +     * Required. A list of references to the Forwarding Rules on which this
                                                                                              +     * policy will be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The resources at the given index. + */ + java.lang.String getResources(int index); + + /** + * + * + *
                                                                                              +     * Required. A list of references to the Forwarding Rules on which this
                                                                                              +     * policy will be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the resources at the given index. + */ + com.google.protobuf.ByteString getResourcesBytes(int index); + } + + /** + * + * + *
                                                                                              +   * Specifies the set of targets to which this policy should be applied to.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.Target} + */ + public static final class Target extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.Target) + TargetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Target"); + } + + // Use Target.newBuilder() to construct. + private Target(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Target() { + loadBalancingScheme_ = 0; + resources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.Target.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.Target.Builder.class); + } + + public static final int LOAD_BALANCING_SCHEME_FIELD_NUMBER = 8; + private int loadBalancingScheme_ = 0; + + /** + * + * + *
                                                                                              +     * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +     * extensions must share the same load balancing scheme. Supported values:
                                                                                              +     * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +     * to [Backend services
                                                                                              +     * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for loadBalancingScheme. + */ + @java.lang.Override + public int getLoadBalancingSchemeValue() { + return loadBalancingScheme_; + } + + /** + * + * + *
                                                                                              +     * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +     * extensions must share the same load balancing scheme. Supported values:
                                                                                              +     * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +     * to [Backend services
                                                                                              +     * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loadBalancingScheme. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme + getLoadBalancingScheme() { + com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme result = + com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme.forNumber( + loadBalancingScheme_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme.UNRECOGNIZED + : result; + } + + public static final int RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList resources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +     * Required. A list of references to the Forwarding Rules on which this
                                                                                              +     * policy will be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the resources. + */ + public com.google.protobuf.ProtocolStringList getResourcesList() { + return resources_; + } + + /** + * + * + *
                                                                                              +     * Required. A list of references to the Forwarding Rules on which this
                                                                                              +     * policy will be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of resources. + */ + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
                                                                                              +     * Required. A list of references to the Forwarding Rules on which this
                                                                                              +     * policy will be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The resources at the given index. + */ + public java.lang.String getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
                                                                                              +     * Required. A list of references to the Forwarding Rules on which this
                                                                                              +     * policy will be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the resources at the given index. + */ + public com.google.protobuf.ByteString getResourcesBytes(int index) { + return resources_.getByteString(index); + } + + 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 < resources_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resources_.getRaw(i)); + } + if (loadBalancingScheme_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme + .LOAD_BALANCING_SCHEME_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, loadBalancingScheme_); + } + 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 < resources_.size(); i++) { + dataSize += computeStringSizeNoTag(resources_.getRaw(i)); + } + size += dataSize; + size += 1 * getResourcesList().size(); + } + if (loadBalancingScheme_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme + .LOAD_BALANCING_SCHEME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, loadBalancingScheme_); + } + 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.networksecurity.v1.AuthzPolicy.Target)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.Target other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.Target) obj; + + if (loadBalancingScheme_ != other.loadBalancingScheme_) return false; + if (!getResourcesList().equals(other.getResourcesList())) 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) + LOAD_BALANCING_SCHEME_FIELD_NUMBER; + hash = (53 * hash) + loadBalancingScheme_; + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target 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.networksecurity.v1.AuthzPolicy.Target parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target 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.networksecurity.v1.AuthzPolicy.Target parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.Target 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * Specifies the set of targets to which this policy should be applied to.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.Target} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.Target) + com.google.cloud.networksecurity.v1.AuthzPolicy.TargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.Target.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.Target.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.AuthzPolicy.Target.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + loadBalancingScheme_ = 0; + resources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.Target getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.Target.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.Target build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.Target result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.Target buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.Target result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.Target(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.AuthzPolicy.Target result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.loadBalancingScheme_ = loadBalancingScheme_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + resources_.makeImmutable(); + result.resources_ = resources_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.Target) { + return mergeFrom((com.google.cloud.networksecurity.v1.AuthzPolicy.Target) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthzPolicy.Target other) { + if (other == com.google.cloud.networksecurity.v1.AuthzPolicy.Target.getDefaultInstance()) + return this; + if (other.loadBalancingScheme_ != 0) { + setLoadBalancingSchemeValue(other.getLoadBalancingSchemeValue()); + } + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ |= 0x00000002; + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + 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(); + ensureResourcesIsMutable(); + resources_.add(s); + break; + } // case 10 + case 64: + { + loadBalancingScheme_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 64 + 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 int loadBalancingScheme_ = 0; + + /** + * + * + *
                                                                                              +       * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +       * extensions must share the same load balancing scheme. Supported values:
                                                                                              +       * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +       * to [Backend services
                                                                                              +       * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for loadBalancingScheme. + */ + @java.lang.Override + public int getLoadBalancingSchemeValue() { + return loadBalancingScheme_; + } + + /** + * + * + *
                                                                                              +       * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +       * extensions must share the same load balancing scheme. Supported values:
                                                                                              +       * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +       * to [Backend services
                                                                                              +       * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for loadBalancingScheme to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancingSchemeValue(int value) { + loadBalancingScheme_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +       * extensions must share the same load balancing scheme. Supported values:
                                                                                              +       * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +       * to [Backend services
                                                                                              +       * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loadBalancingScheme. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme + getLoadBalancingScheme() { + com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme result = + com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme.forNumber( + loadBalancingScheme_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +       * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +       * extensions must share the same load balancing scheme. Supported values:
                                                                                              +       * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +       * to [Backend services
                                                                                              +       * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The loadBalancingScheme to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancingScheme( + com.google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + loadBalancingScheme_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. All gateways and forwarding rules referenced by this policy and
                                                                                              +       * extensions must share the same load balancing scheme. Supported values:
                                                                                              +       * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
                                                                                              +       * to [Backend services
                                                                                              +       * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLoadBalancingScheme() { + bitField0_ = (bitField0_ & ~0x00000001); + loadBalancingScheme_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList resources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureResourcesIsMutable() { + if (!resources_.isModifiable()) { + resources_ = new com.google.protobuf.LazyStringArrayList(resources_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the resources. + */ + public com.google.protobuf.ProtocolStringList getResourcesList() { + resources_.makeImmutable(); + return resources_; + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of resources. + */ + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The resources at the given index. + */ + public java.lang.String getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the resources at the given index. + */ + public com.google.protobuf.ByteString getResourcesBytes(int index) { + return resources_.getByteString(index); + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The resources to set. + * @return This builder for chaining. + */ + public Builder setResources(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resources to add. + * @return This builder for chaining. + */ + public Builder addResources(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The resources to add. + * @return This builder for chaining. + */ + public Builder addAllResources(java.lang.Iterable values) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResources() { + resources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to the Forwarding Rules on which this
                                                                                              +       * policy will be applied.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the resources to add. + * @return This builder for chaining. + */ + public Builder addResourcesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResourcesIsMutable(); + resources_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.Target) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.Target) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.Target DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthzPolicy.Target(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.Target getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Target 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.networksecurity.v1.AuthzPolicy.Target getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AuthzRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a source of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the from field is set. + */ + boolean hasFrom(); + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a source of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The from. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From getFrom(); + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a source of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.FromOrBuilder getFromOrBuilder(); + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a target of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the to field is set. + */ + boolean hasTo(); + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a target of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The to. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To getTo(); + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a target of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.ToOrBuilder getToOrBuilder(); + + /** + * + * + *
                                                                                              +     * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +     * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +     * and to. Refer to the CEL language reference for a list of available
                                                                                              +     * attributes.
                                                                                              +     * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The when. + */ + java.lang.String getWhen(); + + /** + * + * + *
                                                                                              +     * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +     * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +     * and to. Refer to the CEL language reference for a list of available
                                                                                              +     * attributes.
                                                                                              +     * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for when. + */ + com.google.protobuf.ByteString getWhenBytes(); + } + + /** + * + * + *
                                                                                              +   * Conditions to match against the incoming request.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule} + */ + public static final class AuthzRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule) + AuthzRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthzRule"); + } + + // Use AuthzRule.newBuilder() to construct. + private AuthzRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthzRule() { + when_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder.class); + } + + public interface StringMatchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * The input string must match exactly the string specified here.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` only matches the value ``abc``.
                                                                                              +       * 
                                                                                              + * + * string exact = 1; + * + * @return Whether the exact field is set. + */ + boolean hasExact(); + + /** + * + * + *
                                                                                              +       * The input string must match exactly the string specified here.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` only matches the value ``abc``.
                                                                                              +       * 
                                                                                              + * + * string exact = 1; + * + * @return The exact. + */ + java.lang.String getExact(); + + /** + * + * + *
                                                                                              +       * The input string must match exactly the string specified here.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` only matches the value ``abc``.
                                                                                              +       * 
                                                                                              + * + * string exact = 1; + * + * @return The bytes for exact. + */ + com.google.protobuf.ByteString getExactBytes(); + + /** + * + * + *
                                                                                              +       * The input string must have the prefix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``abc.xyz``
                                                                                              +       * 
                                                                                              + * + * string prefix = 2; + * + * @return Whether the prefix field is set. + */ + boolean hasPrefix(); + + /** + * + * + *
                                                                                              +       * The input string must have the prefix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``abc.xyz``
                                                                                              +       * 
                                                                                              + * + * string prefix = 2; + * + * @return The prefix. + */ + java.lang.String getPrefix(); + + /** + * + * + *
                                                                                              +       * The input string must have the prefix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``abc.xyz``
                                                                                              +       * 
                                                                                              + * + * string prefix = 2; + * + * @return The bytes for prefix. + */ + com.google.protobuf.ByteString getPrefixBytes(); + + /** + * + * + *
                                                                                              +       * The input string must have the suffix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc``
                                                                                              +       * 
                                                                                              + * + * string suffix = 3; + * + * @return Whether the suffix field is set. + */ + boolean hasSuffix(); + + /** + * + * + *
                                                                                              +       * The input string must have the suffix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc``
                                                                                              +       * 
                                                                                              + * + * string suffix = 3; + * + * @return The suffix. + */ + java.lang.String getSuffix(); + + /** + * + * + *
                                                                                              +       * The input string must have the suffix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc``
                                                                                              +       * 
                                                                                              + * + * string suffix = 3; + * + * @return The bytes for suffix. + */ + com.google.protobuf.ByteString getSuffixBytes(); + + /** + * + * + *
                                                                                              +       * The input string must have the substring specified here.
                                                                                              +       * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +       * 
                                                                                              + * + * string contains = 4; + * + * @return Whether the contains field is set. + */ + boolean hasContains(); + + /** + * + * + *
                                                                                              +       * The input string must have the substring specified here.
                                                                                              +       * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +       * 
                                                                                              + * + * string contains = 4; + * + * @return The contains. + */ + java.lang.String getContains(); + + /** + * + * + *
                                                                                              +       * The input string must have the substring specified here.
                                                                                              +       * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +       * 
                                                                                              + * + * string contains = 4; + * + * @return The bytes for contains. + */ + com.google.protobuf.ByteString getContainsBytes(); + + /** + * + * + *
                                                                                              +       * If true, indicates the exact/prefix/suffix/contains matching should be
                                                                                              +       * case insensitive. For example, the matcher ``data`` will match both
                                                                                              +       * input string ``Data`` and ``data`` if set to true.
                                                                                              +       * 
                                                                                              + * + * bool ignore_case = 5; + * + * @return The ignoreCase. + */ + boolean getIgnoreCase(); + + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.MatchPatternCase + getMatchPatternCase(); + } + + /** + * + * + *
                                                                                              +     * Determines how a string value should be matched.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch} + */ + public static final class StringMatch extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch) + StringMatchOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StringMatch"); + } + + // Use StringMatch.newBuilder() to construct. + private StringMatch(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StringMatch() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + .class); + } + + private int matchPatternCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object matchPattern_; + + public enum MatchPatternCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXACT(1), + PREFIX(2), + SUFFIX(3), + CONTAINS(4), + MATCHPATTERN_NOT_SET(0); + private final int value; + + private MatchPatternCase(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 MatchPatternCase valueOf(int value) { + return forNumber(value); + } + + public static MatchPatternCase forNumber(int value) { + switch (value) { + case 1: + return EXACT; + case 2: + return PREFIX; + case 3: + return SUFFIX; + case 4: + return CONTAINS; + case 0: + return MATCHPATTERN_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MatchPatternCase getMatchPatternCase() { + return MatchPatternCase.forNumber(matchPatternCase_); + } + + public static final int EXACT_FIELD_NUMBER = 1; + + /** + * + * + *
                                                                                              +       * The input string must match exactly the string specified here.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` only matches the value ``abc``.
                                                                                              +       * 
                                                                                              + * + * string exact = 1; + * + * @return Whether the exact field is set. + */ + public boolean hasExact() { + return matchPatternCase_ == 1; + } + + /** + * + * + *
                                                                                              +       * The input string must match exactly the string specified here.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` only matches the value ``abc``.
                                                                                              +       * 
                                                                                              + * + * string exact = 1; + * + * @return The exact. + */ + public java.lang.String getExact() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 1) { + ref = matchPattern_; + } + 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(); + if (matchPatternCase_ == 1) { + matchPattern_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                              +       * The input string must match exactly the string specified here.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` only matches the value ``abc``.
                                                                                              +       * 
                                                                                              + * + * string exact = 1; + * + * @return The bytes for exact. + */ + public com.google.protobuf.ByteString getExactBytes() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 1) { + ref = matchPattern_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matchPatternCase_ == 1) { + matchPattern_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREFIX_FIELD_NUMBER = 2; + + /** + * + * + *
                                                                                              +       * The input string must have the prefix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``abc.xyz``
                                                                                              +       * 
                                                                                              + * + * string prefix = 2; + * + * @return Whether the prefix field is set. + */ + public boolean hasPrefix() { + return matchPatternCase_ == 2; + } + + /** + * + * + *
                                                                                              +       * The input string must have the prefix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``abc.xyz``
                                                                                              +       * 
                                                                                              + * + * string prefix = 2; + * + * @return The prefix. + */ + public java.lang.String getPrefix() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 2) { + ref = matchPattern_; + } + 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(); + if (matchPatternCase_ == 2) { + matchPattern_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                              +       * The input string must have the prefix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``abc.xyz``
                                                                                              +       * 
                                                                                              + * + * string prefix = 2; + * + * @return The bytes for prefix. + */ + public com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 2) { + ref = matchPattern_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matchPatternCase_ == 2) { + matchPattern_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUFFIX_FIELD_NUMBER = 3; + + /** + * + * + *
                                                                                              +       * The input string must have the suffix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc``
                                                                                              +       * 
                                                                                              + * + * string suffix = 3; + * + * @return Whether the suffix field is set. + */ + public boolean hasSuffix() { + return matchPatternCase_ == 3; + } + + /** + * + * + *
                                                                                              +       * The input string must have the suffix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc``
                                                                                              +       * 
                                                                                              + * + * string suffix = 3; + * + * @return The suffix. + */ + public java.lang.String getSuffix() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 3) { + ref = matchPattern_; + } + 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(); + if (matchPatternCase_ == 3) { + matchPattern_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                              +       * The input string must have the suffix specified here.
                                                                                              +       * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc``
                                                                                              +       * 
                                                                                              + * + * string suffix = 3; + * + * @return The bytes for suffix. + */ + public com.google.protobuf.ByteString getSuffixBytes() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 3) { + ref = matchPattern_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matchPatternCase_ == 3) { + matchPattern_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTAINS_FIELD_NUMBER = 4; + + /** + * + * + *
                                                                                              +       * The input string must have the substring specified here.
                                                                                              +       * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +       * 
                                                                                              + * + * string contains = 4; + * + * @return Whether the contains field is set. + */ + public boolean hasContains() { + return matchPatternCase_ == 4; + } + + /** + * + * + *
                                                                                              +       * The input string must have the substring specified here.
                                                                                              +       * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +       * 
                                                                                              + * + * string contains = 4; + * + * @return The contains. + */ + public java.lang.String getContains() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 4) { + ref = matchPattern_; + } + 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(); + if (matchPatternCase_ == 4) { + matchPattern_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                              +       * The input string must have the substring specified here.
                                                                                              +       * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +       *
                                                                                              +       * Examples:
                                                                                              +       *
                                                                                              +       * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +       * 
                                                                                              + * + * string contains = 4; + * + * @return The bytes for contains. + */ + public com.google.protobuf.ByteString getContainsBytes() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 4) { + ref = matchPattern_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matchPatternCase_ == 4) { + matchPattern_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IGNORE_CASE_FIELD_NUMBER = 5; + private boolean ignoreCase_ = false; + + /** + * + * + *
                                                                                              +       * If true, indicates the exact/prefix/suffix/contains matching should be
                                                                                              +       * case insensitive. For example, the matcher ``data`` will match both
                                                                                              +       * input string ``Data`` and ``data`` if set to true.
                                                                                              +       * 
                                                                                              + * + * bool ignore_case = 5; + * + * @return The ignoreCase. + */ + @java.lang.Override + public boolean getIgnoreCase() { + return ignoreCase_; + } + + 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 (matchPatternCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, matchPattern_); + } + if (matchPatternCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, matchPattern_); + } + if (matchPatternCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, matchPattern_); + } + if (matchPatternCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, matchPattern_); + } + if (ignoreCase_ != false) { + output.writeBool(5, ignoreCase_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchPatternCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, matchPattern_); + } + if (matchPatternCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, matchPattern_); + } + if (matchPatternCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, matchPattern_); + } + if (matchPatternCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, matchPattern_); + } + if (ignoreCase_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, ignoreCase_); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch) obj; + + if (getIgnoreCase() != other.getIgnoreCase()) return false; + if (!getMatchPatternCase().equals(other.getMatchPatternCase())) return false; + switch (matchPatternCase_) { + case 1: + if (!getExact().equals(other.getExact())) return false; + break; + case 2: + if (!getPrefix().equals(other.getPrefix())) return false; + break; + case 3: + if (!getSuffix().equals(other.getSuffix())) return false; + break; + case 4: + if (!getContains().equals(other.getContains())) 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(); + hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreCase()); + switch (matchPatternCase_) { + case 1: + hash = (37 * hash) + EXACT_FIELD_NUMBER; + hash = (53 * hash) + getExact().hashCode(); + break; + case 2: + hash = (37 * hash) + PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getPrefix().hashCode(); + break; + case 3: + hash = (37 * hash) + SUFFIX_FIELD_NUMBER; + hash = (53 * hash) + getSuffix().hashCode(); + break; + case 4: + hash = (37 * hash) + CONTAINS_FIELD_NUMBER; + hash = (53 * hash) + getContains().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch 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.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch 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.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Determines how a string value should be matched.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ignoreCase_ = false; + matchPatternCase_ = 0; + matchPattern_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ignoreCase_ = ignoreCase_; + } + } + + private void buildPartialOneofs( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch result) { + result.matchPatternCase_ = matchPatternCase_; + result.matchPattern_ = this.matchPattern_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()) return this; + if (other.getIgnoreCase() != false) { + setIgnoreCase(other.getIgnoreCase()); + } + switch (other.getMatchPatternCase()) { + case EXACT: + { + matchPatternCase_ = 1; + matchPattern_ = other.matchPattern_; + onChanged(); + break; + } + case PREFIX: + { + matchPatternCase_ = 2; + matchPattern_ = other.matchPattern_; + onChanged(); + break; + } + case SUFFIX: + { + matchPatternCase_ = 3; + matchPattern_ = other.matchPattern_; + onChanged(); + break; + } + case CONTAINS: + { + matchPatternCase_ = 4; + matchPattern_ = other.matchPattern_; + onChanged(); + break; + } + case MATCHPATTERN_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: + { + java.lang.String s = input.readStringRequireUtf8(); + matchPatternCase_ = 1; + matchPattern_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + matchPatternCase_ = 2; + matchPattern_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + matchPatternCase_ = 3; + matchPattern_ = s; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + matchPatternCase_ = 4; + matchPattern_ = s; + break; + } // case 34 + case 40: + { + ignoreCase_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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 matchPatternCase_ = 0; + private java.lang.Object matchPattern_; + + public MatchPatternCase getMatchPatternCase() { + return MatchPatternCase.forNumber(matchPatternCase_); + } + + public Builder clearMatchPattern() { + matchPatternCase_ = 0; + matchPattern_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                                                                              +         * The input string must match exactly the string specified here.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` only matches the value ``abc``.
                                                                                              +         * 
                                                                                              + * + * string exact = 1; + * + * @return Whether the exact field is set. + */ + @java.lang.Override + public boolean hasExact() { + return matchPatternCase_ == 1; + } + + /** + * + * + *
                                                                                              +         * The input string must match exactly the string specified here.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` only matches the value ``abc``.
                                                                                              +         * 
                                                                                              + * + * string exact = 1; + * + * @return The exact. + */ + @java.lang.Override + public java.lang.String getExact() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 1) { + ref = matchPattern_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (matchPatternCase_ == 1) { + matchPattern_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * The input string must match exactly the string specified here.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` only matches the value ``abc``.
                                                                                              +         * 
                                                                                              + * + * string exact = 1; + * + * @return The bytes for exact. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExactBytes() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 1) { + ref = matchPattern_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matchPatternCase_ == 1) { + matchPattern_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * The input string must match exactly the string specified here.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` only matches the value ``abc``.
                                                                                              +         * 
                                                                                              + * + * string exact = 1; + * + * @param value The exact to set. + * @return This builder for chaining. + */ + public Builder setExact(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchPatternCase_ = 1; + matchPattern_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must match exactly the string specified here.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` only matches the value ``abc``.
                                                                                              +         * 
                                                                                              + * + * string exact = 1; + * + * @return This builder for chaining. + */ + public Builder clearExact() { + if (matchPatternCase_ == 1) { + matchPatternCase_ = 0; + matchPattern_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must match exactly the string specified here.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` only matches the value ``abc``.
                                                                                              +         * 
                                                                                              + * + * string exact = 1; + * + * @param value The bytes for exact to set. + * @return This builder for chaining. + */ + public Builder setExactBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchPatternCase_ = 1; + matchPattern_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the prefix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``abc.xyz``
                                                                                              +         * 
                                                                                              + * + * string prefix = 2; + * + * @return Whether the prefix field is set. + */ + @java.lang.Override + public boolean hasPrefix() { + return matchPatternCase_ == 2; + } + + /** + * + * + *
                                                                                              +         * The input string must have the prefix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``abc.xyz``
                                                                                              +         * 
                                                                                              + * + * string prefix = 2; + * + * @return The prefix. + */ + @java.lang.Override + public java.lang.String getPrefix() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 2) { + ref = matchPattern_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (matchPatternCase_ == 2) { + matchPattern_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * The input string must have the prefix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``abc.xyz``
                                                                                              +         * 
                                                                                              + * + * string prefix = 2; + * + * @return The bytes for prefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 2) { + ref = matchPattern_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matchPatternCase_ == 2) { + matchPattern_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * The input string must have the prefix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``abc.xyz``
                                                                                              +         * 
                                                                                              + * + * string prefix = 2; + * + * @param value The prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchPatternCase_ = 2; + matchPattern_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the prefix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``abc.xyz``
                                                                                              +         * 
                                                                                              + * + * string prefix = 2; + * + * @return This builder for chaining. + */ + public Builder clearPrefix() { + if (matchPatternCase_ == 2) { + matchPatternCase_ = 0; + matchPattern_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the prefix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``abc.xyz``
                                                                                              +         * 
                                                                                              + * + * string prefix = 2; + * + * @param value The bytes for prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchPatternCase_ = 2; + matchPattern_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the suffix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc``
                                                                                              +         * 
                                                                                              + * + * string suffix = 3; + * + * @return Whether the suffix field is set. + */ + @java.lang.Override + public boolean hasSuffix() { + return matchPatternCase_ == 3; + } + + /** + * + * + *
                                                                                              +         * The input string must have the suffix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc``
                                                                                              +         * 
                                                                                              + * + * string suffix = 3; + * + * @return The suffix. + */ + @java.lang.Override + public java.lang.String getSuffix() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 3) { + ref = matchPattern_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (matchPatternCase_ == 3) { + matchPattern_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * The input string must have the suffix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc``
                                                                                              +         * 
                                                                                              + * + * string suffix = 3; + * + * @return The bytes for suffix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuffixBytes() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 3) { + ref = matchPattern_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matchPatternCase_ == 3) { + matchPattern_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * The input string must have the suffix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc``
                                                                                              +         * 
                                                                                              + * + * string suffix = 3; + * + * @param value The suffix to set. + * @return This builder for chaining. + */ + public Builder setSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchPatternCase_ = 3; + matchPattern_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the suffix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc``
                                                                                              +         * 
                                                                                              + * + * string suffix = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuffix() { + if (matchPatternCase_ == 3) { + matchPatternCase_ = 0; + matchPattern_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the suffix specified here.
                                                                                              +         * Note: empty prefix is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc``
                                                                                              +         * 
                                                                                              + * + * string suffix = 3; + * + * @param value The bytes for suffix to set. + * @return This builder for chaining. + */ + public Builder setSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchPatternCase_ = 3; + matchPattern_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the substring specified here.
                                                                                              +         * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +         * 
                                                                                              + * + * string contains = 4; + * + * @return Whether the contains field is set. + */ + @java.lang.Override + public boolean hasContains() { + return matchPatternCase_ == 4; + } + + /** + * + * + *
                                                                                              +         * The input string must have the substring specified here.
                                                                                              +         * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +         * 
                                                                                              + * + * string contains = 4; + * + * @return The contains. + */ + @java.lang.Override + public java.lang.String getContains() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 4) { + ref = matchPattern_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (matchPatternCase_ == 4) { + matchPattern_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * The input string must have the substring specified here.
                                                                                              +         * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +         * 
                                                                                              + * + * string contains = 4; + * + * @return The bytes for contains. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainsBytes() { + java.lang.Object ref = ""; + if (matchPatternCase_ == 4) { + ref = matchPattern_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (matchPatternCase_ == 4) { + matchPattern_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * The input string must have the substring specified here.
                                                                                              +         * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +         * 
                                                                                              + * + * string contains = 4; + * + * @param value The contains to set. + * @return This builder for chaining. + */ + public Builder setContains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchPatternCase_ = 4; + matchPattern_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the substring specified here.
                                                                                              +         * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +         * 
                                                                                              + * + * string contains = 4; + * + * @return This builder for chaining. + */ + public Builder clearContains() { + if (matchPatternCase_ == 4) { + matchPatternCase_ = 0; + matchPattern_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * The input string must have the substring specified here.
                                                                                              +         * Note: empty contains match is not allowed, please use regex instead.
                                                                                              +         *
                                                                                              +         * Examples:
                                                                                              +         *
                                                                                              +         * * ``abc`` matches the value ``xyz.abc.def``
                                                                                              +         * 
                                                                                              + * + * string contains = 4; + * + * @param value The bytes for contains to set. + * @return This builder for chaining. + */ + public Builder setContainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchPatternCase_ = 4; + matchPattern_ = value; + onChanged(); + return this; + } + + private boolean ignoreCase_; + + /** + * + * + *
                                                                                              +         * If true, indicates the exact/prefix/suffix/contains matching should be
                                                                                              +         * case insensitive. For example, the matcher ``data`` will match both
                                                                                              +         * input string ``Data`` and ``data`` if set to true.
                                                                                              +         * 
                                                                                              + * + * bool ignore_case = 5; + * + * @return The ignoreCase. + */ + @java.lang.Override + public boolean getIgnoreCase() { + return ignoreCase_; + } + + /** + * + * + *
                                                                                              +         * If true, indicates the exact/prefix/suffix/contains matching should be
                                                                                              +         * case insensitive. For example, the matcher ``data`` will match both
                                                                                              +         * input string ``Data`` and ``data`` if set to true.
                                                                                              +         * 
                                                                                              + * + * bool ignore_case = 5; + * + * @param value The ignoreCase to set. + * @return This builder for chaining. + */ + public Builder setIgnoreCase(boolean value) { + + ignoreCase_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * If true, indicates the exact/prefix/suffix/contains matching should be
                                                                                              +         * case insensitive. For example, the matcher ``data`` will match both
                                                                                              +         * input string ``Data`` and ``data`` if set to true.
                                                                                              +         * 
                                                                                              + * + * bool ignore_case = 5; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreCase() { + bitField0_ = (bitField0_ & ~0x00000010); + ignoreCase_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringMatch 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.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IpBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * Required. The address prefix.
                                                                                              +       * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prefix. + */ + java.lang.String getPrefix(); + + /** + * + * + *
                                                                                              +       * Required. The address prefix.
                                                                                              +       * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prefix. + */ + com.google.protobuf.ByteString getPrefixBytes(); + + /** + * + * + *
                                                                                              +       * Required. The length of the address range.
                                                                                              +       * 
                                                                                              + * + * int32 length = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The length. + */ + int getLength(); + } + + /** + * + * + *
                                                                                              +     * Represents a range of IP Addresses.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock} + */ + public static final class IpBlock extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock) + IpBlockOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IpBlock"); + } + + // Use IpBlock.newBuilder() to construct. + private IpBlock(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IpBlock() { + prefix_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder.class); + } + + public static final int PREFIX_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object prefix_ = ""; + + /** + * + * + *
                                                                                              +       * Required. The address prefix.
                                                                                              +       * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prefix. + */ + @java.lang.Override + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + 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(); + prefix_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +       * Required. The address prefix.
                                                                                              +       * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 2; + private int length_ = 0; + + /** + * + * + *
                                                                                              +       * Required. The length of the address range.
                                                                                              +       * 
                                                                                              + * + * int32 length = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + + 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.GeneratedMessage.isStringEmpty(prefix_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, prefix_); + } + if (length_ != 0) { + output.writeInt32(2, length_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prefix_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, prefix_); + } + if (length_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, length_); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock) obj; + + if (!getPrefix().equals(other.getPrefix())) return false; + if (getLength() != other.getLength()) 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) + PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getPrefix().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getLength(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock 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.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock 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.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Represents a range of IP Addresses.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prefix_ = ""; + length_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prefix_ = prefix_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.length_ = length_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + .getDefaultInstance()) return this; + if (!other.getPrefix().isEmpty()) { + prefix_ = other.prefix_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getLength() != 0) { + setLength(other.getLength()); + } + 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: + { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + length_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 prefix_ = ""; + + /** + * + * + *
                                                                                              +         * Required. The address prefix.
                                                                                              +         * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prefix. + */ + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * Required. The address prefix.
                                                                                              +         * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prefix. + */ + public com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * Required. The address prefix.
                                                                                              +         * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prefix_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The address prefix.
                                                                                              +         * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrefix() { + prefix_ = getDefaultInstance().getPrefix(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The address prefix.
                                                                                              +         * 
                                                                                              + * + * string prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prefix_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int length_; + + /** + * + * + *
                                                                                              +         * Required. The length of the address range.
                                                                                              +         * 
                                                                                              + * + * int32 length = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + + /** + * + * + *
                                                                                              +         * Required. The length of the address range.
                                                                                              +         * 
                                                                                              + * + * int32 length = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(int value) { + + length_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The length of the address range.
                                                                                              +         * 
                                                                                              + * + * int32 length = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLength() { + bitField0_ = (bitField0_ & ~0x00000002); + length_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IpBlock 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.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RequestResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +       * the resource manager tags value associated with the source VM of a
                                                                                              +       * request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tagValueIdSet field is set. + */ + boolean hasTagValueIdSet(); + + /** + * + * + *
                                                                                              +       * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +       * the resource manager tags value associated with the source VM of a
                                                                                              +       * request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tagValueIdSet. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + getTagValueIdSet(); + + /** + * + * + *
                                                                                              +       * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +       * the resource manager tags value associated with the source VM of a
                                                                                              +       * request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSetOrBuilder + getTagValueIdSetOrBuilder(); + + /** + * + * + *
                                                                                              +       * Optional. An IAM service account to match against the source
                                                                                              +       * service account of the VM sending the request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iamServiceAccount field is set. + */ + boolean hasIamServiceAccount(); + + /** + * + * + *
                                                                                              +       * Optional. An IAM service account to match against the source
                                                                                              +       * service account of the VM sending the request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iamServiceAccount. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getIamServiceAccount(); + + /** + * + * + *
                                                                                              +       * Optional. An IAM service account to match against the source
                                                                                              +       * service account of the VM sending the request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getIamServiceAccountOrBuilder(); + } + + /** + * + * + *
                                                                                              +     * Describes the properties of a client VM resource accessing the internal
                                                                                              +     * application load balancers.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource} + */ + public static final class RequestResource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource) + RequestResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RequestResource"); + } + + // Use RequestResource.newBuilder() to construct. + private RequestResource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RequestResource() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder + .class); + } + + public interface TagValueIdSetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +         * Required. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request. The match follows AND semantics which means all
                                                                                              +         * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +         * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the ids. + */ + java.util.List getIdsList(); + + /** + * + * + *
                                                                                              +         * Required. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request. The match follows AND semantics which means all
                                                                                              +         * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +         * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of ids. + */ + int getIdsCount(); + + /** + * + * + *
                                                                                              +         * Required. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request. The match follows AND semantics which means all
                                                                                              +         * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +         * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The ids at the given index. + */ + long getIds(int index); + } + + /** + * + * + *
                                                                                              +       * Describes a set of resource tag value permanent IDs to match against
                                                                                              +       * the resource manager tags value associated with the source VM of a
                                                                                              +       * request.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet} + */ + public static final class TagValueIdSet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet) + TagValueIdSetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TagValueIdSet"); + } + + // Use TagValueIdSet.newBuilder() to construct. + private TagValueIdSet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TagValueIdSet() { + ids_ = emptyLongList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.Builder.class); + } + + public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList ids_ = emptyLongList(); + + /** + * + * + *
                                                                                              +         * Required. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request. The match follows AND semantics which means all
                                                                                              +         * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +         * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the ids. + */ + @java.lang.Override + public java.util.List getIdsList() { + return ids_; + } + + /** + * + * + *
                                                                                              +         * Required. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request. The match follows AND semantics which means all
                                                                                              +         * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +         * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of ids. + */ + public int getIdsCount() { + return ids_.size(); + } + + /** + * + * + *
                                                                                              +         * Required. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request. The match follows AND semantics which means all
                                                                                              +         * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +         * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The ids at the given index. + */ + public long getIds(int index) { + return ids_.getLong(index); + } + + private int idsMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getIdsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(idsMemoizedSerializedSize); + } + for (int i = 0; i < ids_.size(); i++) { + output.writeInt64NoTag(ids_.getLong(i)); + } + 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 < ids_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(ids_.getLong(i)); + } + size += dataSize; + if (!getIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + idsMemoizedSerializedSize = dataSize; + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet) + obj; + + if (!getIdsList().equals(other.getIdsList())) 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 (getIdsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + 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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + 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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +         * Describes a set of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ids_ = emptyLongList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + ids_.makeImmutable(); + result.ids_ = ids_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.getDefaultInstance()) return this; + if (!other.ids_.isEmpty()) { + if (ids_.isEmpty()) { + ids_ = other.ids_; + ids_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureIdsIsMutable(); + ids_.addAll(other.ids_); + } + 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 8: + { + long v = input.readInt64(); + ensureIdsIsMutable(); + ids_.addLong(v); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + ids_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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 bitField0_; + + private com.google.protobuf.Internal.LongList ids_ = emptyLongList(); + + private void ensureIdsIsMutable() { + if (!ids_.isModifiable()) { + ids_ = makeMutableCopy(ids_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                                                                                              +           * Required. A list of resource tag value permanent IDs to match against
                                                                                              +           * the resource manager tags value associated with the source VM of a
                                                                                              +           * request. The match follows AND semantics which means all
                                                                                              +           * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +           * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the ids. + */ + public java.util.List getIdsList() { + ids_.makeImmutable(); + return ids_; + } + + /** + * + * + *
                                                                                              +           * Required. A list of resource tag value permanent IDs to match against
                                                                                              +           * the resource manager tags value associated with the source VM of a
                                                                                              +           * request. The match follows AND semantics which means all
                                                                                              +           * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +           * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of ids. + */ + public int getIdsCount() { + return ids_.size(); + } + + /** + * + * + *
                                                                                              +           * Required. A list of resource tag value permanent IDs to match against
                                                                                              +           * the resource manager tags value associated with the source VM of a
                                                                                              +           * request. The match follows AND semantics which means all
                                                                                              +           * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +           * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The ids at the given index. + */ + public long getIds(int index) { + return ids_.getLong(index); + } + + /** + * + * + *
                                                                                              +           * Required. A list of resource tag value permanent IDs to match against
                                                                                              +           * the resource manager tags value associated with the source VM of a
                                                                                              +           * request. The match follows AND semantics which means all
                                                                                              +           * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +           * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The ids to set. + * @return This builder for chaining. + */ + public Builder setIds(int index, long value) { + + ensureIdsIsMutable(); + ids_.setLong(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Required. A list of resource tag value permanent IDs to match against
                                                                                              +           * the resource manager tags value associated with the source VM of a
                                                                                              +           * request. The match follows AND semantics which means all
                                                                                              +           * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +           * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ids to add. + * @return This builder for chaining. + */ + public Builder addIds(long value) { + + ensureIdsIsMutable(); + ids_.addLong(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Required. A list of resource tag value permanent IDs to match against
                                                                                              +           * the resource manager tags value associated with the source VM of a
                                                                                              +           * request. The match follows AND semantics which means all
                                                                                              +           * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +           * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The ids to add. + * @return This builder for chaining. + */ + public Builder addAllIds(java.lang.Iterable values) { + ensureIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ids_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Required. A list of resource tag value permanent IDs to match against
                                                                                              +           * the resource manager tags value associated with the source VM of a
                                                                                              +           * request. The match follows AND semantics which means all
                                                                                              +           * the ids must match. Limited to 5 ids in the Tag value id set.
                                                                                              +           * 
                                                                                              + * + * repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearIds() { + ids_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .RequestResource.TagValueIdSet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TagValueIdSet 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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TAG_VALUE_ID_SET_FIELD_NUMBER = 1; + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + tagValueIdSet_; + + /** + * + * + *
                                                                                              +       * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +       * the resource manager tags value associated with the source VM of a
                                                                                              +       * request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tagValueIdSet field is set. + */ + @java.lang.Override + public boolean hasTagValueIdSet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +       * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +       * the resource manager tags value associated with the source VM of a
                                                                                              +       * request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tagValueIdSet. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + getTagValueIdSet() { + return tagValueIdSet_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.getDefaultInstance() + : tagValueIdSet_; + } + + /** + * + * + *
                                                                                              +       * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +       * the resource manager tags value associated with the source VM of a
                                                                                              +       * request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSetOrBuilder + getTagValueIdSetOrBuilder() { + return tagValueIdSet_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.getDefaultInstance() + : tagValueIdSet_; + } + + public static final int IAM_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + iamServiceAccount_; + + /** + * + * + *
                                                                                              +       * Optional. An IAM service account to match against the source
                                                                                              +       * service account of the VM sending the request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iamServiceAccount field is set. + */ + @java.lang.Override + public boolean hasIamServiceAccount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +       * Optional. An IAM service account to match against the source
                                                                                              +       * service account of the VM sending the request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iamServiceAccount. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + getIamServiceAccount() { + return iamServiceAccount_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : iamServiceAccount_; + } + + /** + * + * + *
                                                                                              +       * Optional. An IAM service account to match against the source
                                                                                              +       * service account of the VM sending the request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getIamServiceAccountOrBuilder() { + return iamServiceAccount_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : iamServiceAccount_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTagValueIdSet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getIamServiceAccount()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTagValueIdSet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIamServiceAccount()); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource) obj; + + if (hasTagValueIdSet() != other.hasTagValueIdSet()) return false; + if (hasTagValueIdSet()) { + if (!getTagValueIdSet().equals(other.getTagValueIdSet())) return false; + } + if (hasIamServiceAccount() != other.hasIamServiceAccount()) return false; + if (hasIamServiceAccount()) { + if (!getIamServiceAccount().equals(other.getIamServiceAccount())) 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 (hasTagValueIdSet()) { + hash = (37 * hash) + TAG_VALUE_ID_SET_FIELD_NUMBER; + hash = (53 * hash) + getTagValueIdSet().hashCode(); + } + if (hasIamServiceAccount()) { + hash = (37 * hash) + IAM_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getIamServiceAccount().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + 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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + 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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Describes the properties of a client VM resource accessing the internal
                                                                                              +       * application load balancers.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTagValueIdSetFieldBuilder(); + internalGetIamServiceAccountFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tagValueIdSet_ = null; + if (tagValueIdSetBuilder_ != null) { + tagValueIdSetBuilder_.dispose(); + tagValueIdSetBuilder_ = null; + } + iamServiceAccount_ = null; + if (iamServiceAccountBuilder_ != null) { + iamServiceAccountBuilder_.dispose(); + iamServiceAccountBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tagValueIdSet_ = + tagValueIdSetBuilder_ == null ? tagValueIdSet_ : tagValueIdSetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.iamServiceAccount_ = + iamServiceAccountBuilder_ == null + ? iamServiceAccount_ + : iamServiceAccountBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .getDefaultInstance()) return this; + if (other.hasTagValueIdSet()) { + mergeTagValueIdSet(other.getTagValueIdSet()); + } + if (other.hasIamServiceAccount()) { + mergeIamServiceAccount(other.getIamServiceAccount()); + } + 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( + internalGetTagValueIdSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetIamServiceAccountFieldBuilder().getBuilder(), extensionRegistry); + 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.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + tagValueIdSet_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSetOrBuilder> + tagValueIdSetBuilder_; + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tagValueIdSet field is set. + */ + public boolean hasTagValueIdSet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tagValueIdSet. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet + getTagValueIdSet() { + if (tagValueIdSetBuilder_ == null) { + return tagValueIdSet_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.getDefaultInstance() + : tagValueIdSet_; + } else { + return tagValueIdSetBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTagValueIdSet( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + value) { + if (tagValueIdSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tagValueIdSet_ = value; + } else { + tagValueIdSetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTagValueIdSet( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + .Builder + builderForValue) { + if (tagValueIdSetBuilder_ == null) { + tagValueIdSet_ = builderForValue.build(); + } else { + tagValueIdSetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTagValueIdSet( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet + value) { + if (tagValueIdSetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && tagValueIdSet_ != null + && tagValueIdSet_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.getDefaultInstance()) { + getTagValueIdSetBuilder().mergeFrom(value); + } else { + tagValueIdSet_ = value; + } + } else { + tagValueIdSetBuilder_.mergeFrom(value); + } + if (tagValueIdSet_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTagValueIdSet() { + bitField0_ = (bitField0_ & ~0x00000001); + tagValueIdSet_ = null; + if (tagValueIdSetBuilder_ != null) { + tagValueIdSetBuilder_.dispose(); + tagValueIdSetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.Builder + getTagValueIdSetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetTagValueIdSetFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSetOrBuilder + getTagValueIdSetOrBuilder() { + if (tagValueIdSetBuilder_ != null) { + return tagValueIdSetBuilder_.getMessageOrBuilder(); + } else { + return tagValueIdSet_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.getDefaultInstance() + : tagValueIdSet_; + } + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resource tag value permanent IDs to match against
                                                                                              +         * the resource manager tags value associated with the source VM of a
                                                                                              +         * request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet tag_value_id_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSetOrBuilder> + internalGetTagValueIdSetFieldBuilder() { + if (tagValueIdSetBuilder_ == null) { + tagValueIdSetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSet.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .TagValueIdSetOrBuilder>( + getTagValueIdSet(), getParentForChildren(), isClean()); + tagValueIdSet_ = null; + } + return tagValueIdSetBuilder_; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + iamServiceAccount_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + iamServiceAccountBuilder_; + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iamServiceAccount field is set. + */ + public boolean hasIamServiceAccount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iamServiceAccount. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + getIamServiceAccount() { + if (iamServiceAccountBuilder_ == null) { + return iamServiceAccount_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : iamServiceAccount_; + } else { + return iamServiceAccountBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIamServiceAccount( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (iamServiceAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + iamServiceAccount_ = value; + } else { + iamServiceAccountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIamServiceAccount( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (iamServiceAccountBuilder_ == null) { + iamServiceAccount_ = builderForValue.build(); + } else { + iamServiceAccountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIamServiceAccount( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (iamServiceAccountBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && iamServiceAccount_ != null + && iamServiceAccount_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()) { + getIamServiceAccountBuilder().mergeFrom(value); + } else { + iamServiceAccount_ = value; + } + } else { + iamServiceAccountBuilder_.mergeFrom(value); + } + if (iamServiceAccount_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIamServiceAccount() { + bitField0_ = (bitField0_ & ~0x00000002); + iamServiceAccount_ = null; + if (iamServiceAccountBuilder_ != null) { + iamServiceAccountBuilder_.dispose(); + iamServiceAccountBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + getIamServiceAccountBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetIamServiceAccountFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getIamServiceAccountOrBuilder() { + if (iamServiceAccountBuilder_ != null) { + return iamServiceAccountBuilder_.getMessageOrBuilder(); + } else { + return iamServiceAccount_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : iamServiceAccount_; + } + } + + /** + * + * + *
                                                                                              +         * Optional. An IAM service account to match against the source
                                                                                              +         * service account of the VM sending the request.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch iam_service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + internalGetIamServiceAccountFieldBuilder() { + if (iamServiceAccountBuilder_ == null) { + iamServiceAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder>( + getIamServiceAccount(), getParentForChildren(), isClean()); + iamServiceAccount_ = null; + } + return iamServiceAccountBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestResource 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.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface HeaderMatchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * Optional. Specifies the name of the header in the request.
                                                                                              +       * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +       * Optional. Specifies the name of the header in the request.
                                                                                              +       * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +       * Optional. Specifies how the header match will be performed.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + * + * + *
                                                                                              +       * Optional. Specifies how the header match will be performed.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The value. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getValue(); + + /** + * + * + *
                                                                                              +       * Optional. Specifies how the header match will be performed.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getValueOrBuilder(); + } + + /** + * + * + *
                                                                                              +     * Determines how a HTTP header should be matched.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch} + */ + public static final class HeaderMatch extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch) + HeaderMatchOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HeaderMatch"); + } + + // Use HeaderMatch.newBuilder() to construct. + private HeaderMatch(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HeaderMatch() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder + .class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +       * Optional. Specifies the name of the header in the request.
                                                                                              +       * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +       * Optional. Specifies the name of the header in the request.
                                                                                              +       * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value_; + + /** + * + * + *
                                                                                              +       * Optional. Specifies how the header match will be performed.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +       * Optional. Specifies how the header match will be performed.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The value. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getValue() { + return value_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : value_; + } + + /** + * + * + *
                                                                                              +       * Optional. Specifies how the header match will be performed.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getValueOrBuilder() { + return value_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : value_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch) obj; + + if (!getName().equals(other.getName())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch 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.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch 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.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Determines how a HTTP header should be matched.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetValueFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +         * Optional. Specifies the name of the header in the request.
                                                                                              +         * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies the name of the header in the request.
                                                                                              +         * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies the name of the header in the request.
                                                                                              +         * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies the name of the header in the request.
                                                                                              +         * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies the name of the header in the request.
                                                                                              +         * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + valueBuilder_; + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The value. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getValue() { + if (valueBuilder_ == null) { + return value_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : value_; + } else { + return valueBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValue( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValue( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeValue( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : value_; + } + } + + /** + * + * + *
                                                                                              +         * Optional. Specifies how the header match will be performed.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + internalGetValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder>( + getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeaderMatch 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.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PrincipalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * Optional. An enum to decide what principal value the principal rule
                                                                                              +       * will match against. If not specified, the PrincipalSelector is
                                                                                              +       * CLIENT_CERT_URI_SAN.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for principalSelector. + */ + int getPrincipalSelectorValue(); + + /** + * + * + *
                                                                                              +       * Optional. An enum to decide what principal value the principal rule
                                                                                              +       * will match against. If not specified, the PrincipalSelector is
                                                                                              +       * CLIENT_CERT_URI_SAN.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The principalSelector. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + getPrincipalSelector(); + + /** + * + * + *
                                                                                              +       * Required. A non-empty string whose value is matched against the
                                                                                              +       * principal value based on the principal_selector. Only exact match can
                                                                                              +       * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +       * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + boolean hasPrincipal(); + + /** + * + * + *
                                                                                              +       * Required. A non-empty string whose value is matched against the
                                                                                              +       * principal value based on the principal_selector. Only exact match can
                                                                                              +       * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +       * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getPrincipal(); + + /** + * + * + *
                                                                                              +       * Required. A non-empty string whose value is matched against the
                                                                                              +       * principal value based on the principal_selector. Only exact match can
                                                                                              +       * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +       * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getPrincipalOrBuilder(); + } + + /** + * + * + *
                                                                                              +     * Describes the properties of a principal to be matched against.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal} + */ + public static final class Principal extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal) + PrincipalOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Principal"); + } + + // Use Principal.newBuilder() to construct. + private Principal(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Principal() { + principalSelector_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder.class); + } + + /** + * + * + *
                                                                                              +       * The principal value the principal rule will match against.
                                                                                              +       * 
                                                                                              + * + * Protobuf enum {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector} + */ + public enum PrincipalSelector implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +         * Unspecified principal selector. It will be treated as
                                                                                              +         * CLIENT_CERT_URI_SAN by default.
                                                                                              +         * 
                                                                                              + * + * PRINCIPAL_SELECTOR_UNSPECIFIED = 0; + */ + PRINCIPAL_SELECTOR_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +         * The principal rule is matched against a list of URI SANs in the
                                                                                              +         * validated client's certificate. A match happens when there is any
                                                                                              +         * exact URI SAN value match. This is the default principal selector.
                                                                                              +         * 
                                                                                              + * + * CLIENT_CERT_URI_SAN = 1; + */ + CLIENT_CERT_URI_SAN(1), + /** + * + * + *
                                                                                              +         * The principal rule is matched against a list of DNS Name SANs in the
                                                                                              +         * validated client's certificate. A match happens when there is any
                                                                                              +         * exact DNS Name SAN value match.
                                                                                              +         * This is only applicable for Application Load Balancers
                                                                                              +         * except for classic Global External Application load balancer.
                                                                                              +         * CLIENT_CERT_DNS_NAME_SAN is not supported for INTERNAL_SELF_MANAGED
                                                                                              +         * load balancing scheme.
                                                                                              +         * 
                                                                                              + * + * CLIENT_CERT_DNS_NAME_SAN = 2; + */ + CLIENT_CERT_DNS_NAME_SAN(2), + /** + * + * + *
                                                                                              +         * The principal rule is matched against the common name in the client's
                                                                                              +         * certificate. Authorization against multiple common names in the
                                                                                              +         * client certificate is not supported. Requests with multiple common
                                                                                              +         * names in the client certificate will be rejected if
                                                                                              +         * CLIENT_CERT_COMMON_NAME is set as the principal selector. A match
                                                                                              +         * happens when there is an exact common name value match.
                                                                                              +         * This is only applicable for Application Load Balancers
                                                                                              +         * except for global external Application Load Balancer and
                                                                                              +         * classic Application Load Balancer.
                                                                                              +         * CLIENT_CERT_COMMON_NAME is not supported for INTERNAL_SELF_MANAGED
                                                                                              +         * load balancing scheme.
                                                                                              +         * 
                                                                                              + * + * CLIENT_CERT_COMMON_NAME = 3; + */ + CLIENT_CERT_COMMON_NAME(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PrincipalSelector"); + } + + /** + * + * + *
                                                                                              +         * Unspecified principal selector. It will be treated as
                                                                                              +         * CLIENT_CERT_URI_SAN by default.
                                                                                              +         * 
                                                                                              + * + * PRINCIPAL_SELECTOR_UNSPECIFIED = 0; + */ + public static final int PRINCIPAL_SELECTOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +         * The principal rule is matched against a list of URI SANs in the
                                                                                              +         * validated client's certificate. A match happens when there is any
                                                                                              +         * exact URI SAN value match. This is the default principal selector.
                                                                                              +         * 
                                                                                              + * + * CLIENT_CERT_URI_SAN = 1; + */ + public static final int CLIENT_CERT_URI_SAN_VALUE = 1; + + /** + * + * + *
                                                                                              +         * The principal rule is matched against a list of DNS Name SANs in the
                                                                                              +         * validated client's certificate. A match happens when there is any
                                                                                              +         * exact DNS Name SAN value match.
                                                                                              +         * This is only applicable for Application Load Balancers
                                                                                              +         * except for classic Global External Application load balancer.
                                                                                              +         * CLIENT_CERT_DNS_NAME_SAN is not supported for INTERNAL_SELF_MANAGED
                                                                                              +         * load balancing scheme.
                                                                                              +         * 
                                                                                              + * + * CLIENT_CERT_DNS_NAME_SAN = 2; + */ + public static final int CLIENT_CERT_DNS_NAME_SAN_VALUE = 2; + + /** + * + * + *
                                                                                              +         * The principal rule is matched against the common name in the client's
                                                                                              +         * certificate. Authorization against multiple common names in the
                                                                                              +         * client certificate is not supported. Requests with multiple common
                                                                                              +         * names in the client certificate will be rejected if
                                                                                              +         * CLIENT_CERT_COMMON_NAME is set as the principal selector. A match
                                                                                              +         * happens when there is an exact common name value match.
                                                                                              +         * This is only applicable for Application Load Balancers
                                                                                              +         * except for global external Application Load Balancer and
                                                                                              +         * classic Application Load Balancer.
                                                                                              +         * CLIENT_CERT_COMMON_NAME is not supported for INTERNAL_SELF_MANAGED
                                                                                              +         * load balancing scheme.
                                                                                              +         * 
                                                                                              + * + * CLIENT_CERT_COMMON_NAME = 3; + */ + public static final int CLIENT_CERT_COMMON_NAME_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrincipalSelector valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PrincipalSelector forNumber(int value) { + switch (value) { + case 0: + return PRINCIPAL_SELECTOR_UNSPECIFIED; + case 1: + return CLIENT_CERT_URI_SAN; + case 2: + return CLIENT_CERT_DNS_NAME_SAN; + case 3: + return CLIENT_CERT_COMMON_NAME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PrincipalSelector findValueByNumber(int number) { + return PrincipalSelector.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PrincipalSelector[] VALUES = values(); + + public static PrincipalSelector valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PrincipalSelector(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector) + } + + private int bitField0_; + public static final int PRINCIPAL_SELECTOR_FIELD_NUMBER = 1; + private int principalSelector_ = 0; + + /** + * + * + *
                                                                                              +       * Optional. An enum to decide what principal value the principal rule
                                                                                              +       * will match against. If not specified, the PrincipalSelector is
                                                                                              +       * CLIENT_CERT_URI_SAN.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for principalSelector. + */ + @java.lang.Override + public int getPrincipalSelectorValue() { + return principalSelector_; + } + + /** + * + * + *
                                                                                              +       * Optional. An enum to decide what principal value the principal rule
                                                                                              +       * will match against. If not specified, the PrincipalSelector is
                                                                                              +       * CLIENT_CERT_URI_SAN.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The principalSelector. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + getPrincipalSelector() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + result = + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + .PrincipalSelector.forNumber(principalSelector_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + .UNRECOGNIZED + : result; + } + + public static final int PRINCIPAL_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal_; + + /** + * + * + *
                                                                                              +       * Required. A non-empty string whose value is matched against the
                                                                                              +       * principal value based on the principal_selector. Only exact match can
                                                                                              +       * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +       * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + @java.lang.Override + public boolean hasPrincipal() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +       * Required. A non-empty string whose value is matched against the
                                                                                              +       * principal value based on the principal_selector. Only exact match can
                                                                                              +       * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +       * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getPrincipal() { + return principal_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : principal_; + } + + /** + * + * + *
                                                                                              +       * Required. A non-empty string whose value is matched against the
                                                                                              +       * principal value based on the principal_selector. Only exact match can
                                                                                              +       * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +       * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getPrincipalOrBuilder() { + return principal_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : principal_; + } + + 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 (principalSelector_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + .PRINCIPAL_SELECTOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, principalSelector_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPrincipal()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (principalSelector_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + .PRINCIPAL_SELECTOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, principalSelector_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrincipal()); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.Principal)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal) obj; + + if (principalSelector_ != other.principalSelector_) return false; + if (hasPrincipal() != other.hasPrincipal()) return false; + if (hasPrincipal()) { + if (!getPrincipal().equals(other.getPrincipal())) 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) + PRINCIPAL_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + principalSelector_; + if (hasPrincipal()) { + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal 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.networksecurity.v1.AuthzPolicy.AuthzRule.Principal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal 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.networksecurity.v1.AuthzPolicy.AuthzRule.Principal parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.Principal 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Describes the properties of a principal to be matched against.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPrincipalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + principalSelector_ = 0; + principal_ = null; + if (principalBuilder_ != null) { + principalBuilder_.dispose(); + principalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.principalSelector_ = principalSelector_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.principal_ = principalBuilder_ == null ? principal_ : principalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + .getDefaultInstance()) return this; + if (other.principalSelector_ != 0) { + setPrincipalSelectorValue(other.getPrincipalSelectorValue()); + } + if (other.hasPrincipal()) { + mergePrincipal(other.getPrincipal()); + } + 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 8: + { + principalSelector_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetPrincipalFieldBuilder().getBuilder(), extensionRegistry); + 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 int principalSelector_ = 0; + + /** + * + * + *
                                                                                              +         * Optional. An enum to decide what principal value the principal rule
                                                                                              +         * will match against. If not specified, the PrincipalSelector is
                                                                                              +         * CLIENT_CERT_URI_SAN.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for principalSelector. + */ + @java.lang.Override + public int getPrincipalSelectorValue() { + return principalSelector_; + } + + /** + * + * + *
                                                                                              +         * Optional. An enum to decide what principal value the principal rule
                                                                                              +         * will match against. If not specified, the PrincipalSelector is
                                                                                              +         * CLIENT_CERT_URI_SAN.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for principalSelector to set. + * @return This builder for chaining. + */ + public Builder setPrincipalSelectorValue(int value) { + principalSelector_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. An enum to decide what principal value the principal rule
                                                                                              +         * will match against. If not specified, the PrincipalSelector is
                                                                                              +         * CLIENT_CERT_URI_SAN.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The principalSelector. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + getPrincipalSelector() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + result = + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + .PrincipalSelector.forNumber(principalSelector_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + .PrincipalSelector.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +         * Optional. An enum to decide what principal value the principal rule
                                                                                              +         * will match against. If not specified, the PrincipalSelector is
                                                                                              +         * CLIENT_CERT_URI_SAN.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The principalSelector to set. + * @return This builder for chaining. + */ + public Builder setPrincipalSelector( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + principalSelector_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. An enum to decide what principal value the principal rule
                                                                                              +         * will match against. If not specified, the PrincipalSelector is
                                                                                              +         * CLIENT_CERT_URI_SAN.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector principal_selector = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrincipalSelector() { + bitField0_ = (bitField0_ & ~0x00000001); + principalSelector_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + principalBuilder_; + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the principal field is set. + */ + public boolean hasPrincipal() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The principal. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + getPrincipal() { + if (principalBuilder_ == null) { + return principal_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : principal_; + } else { + return principalBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrincipal( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (principalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + principal_ = value; + } else { + principalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrincipal( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (principalBuilder_ == null) { + principal_ = builderForValue.build(); + } else { + principalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrincipal( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (principalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && principal_ != null + && principal_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()) { + getPrincipalBuilder().mergeFrom(value); + } else { + principal_ = value; + } + } else { + principalBuilder_.mergeFrom(value); + } + if (principal_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrincipal() { + bitField0_ = (bitField0_ & ~0x00000002); + principal_ = null; + if (principalBuilder_ != null) { + principalBuilder_.dispose(); + principalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + getPrincipalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPrincipalFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getPrincipalOrBuilder() { + if (principalBuilder_ != null) { + return principalBuilder_.getMessageOrBuilder(); + } else { + return principal_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance() + : principal_; + } + } + + /** + * + * + *
                                                                                              +         * Required. A non-empty string whose value is matched against the
                                                                                              +         * principal value based on the principal_selector. Only exact match can
                                                                                              +         * be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN,
                                                                                              +         * CLIENT_CERT_COMMON_NAME selectors.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch principal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + internalGetPrincipalFieldBuilder() { + if (principalBuilder_ == null) { + principalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder>( + getPrincipal(), getParentForChildren(), isClean()); + principal_ = null; + } + return principalBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Principal 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.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FromOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSourcesList(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource getSources( + int index); + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSourcesCount(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + getSourcesOrBuilderList(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder + getSourcesOrBuilder(int index); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNotSourcesList(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource getNotSources( + int index); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNotSourcesCount(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + getNotSourcesOrBuilderList(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder + getNotSourcesOrBuilder(int index); + } + + /** + * + * + *
                                                                                              +     * Describes properties of one or more sources of a request.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From} + */ + public static final class From extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From) + FromOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "From"); + } + + // Use From.newBuilder() to construct. + private From(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private From() { + sources_ = java.util.Collections.emptyList(); + notSources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.Builder.class); + } + + public interface RequestSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPrincipalsList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal getPrincipals( + int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPrincipalsCount(); + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder> + getPrincipalsOrBuilderList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder + getPrincipalsOrBuilder(int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIpBlocksList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock getIpBlocks(int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIpBlocksCount(); + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder> + getIpBlocksOrBuilderList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder + getIpBlocksOrBuilder(int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getResourcesList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource getResources( + int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getResourcesCount(); + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .RequestResourceOrBuilder> + getResourcesOrBuilderList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResourceOrBuilder + getResourcesOrBuilder(int index); + } + + /** + * + * + *
                                                                                              +       * Describes the properties of a single source.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource} + */ + public static final class RequestSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource) + RequestSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RequestSource"); + } + + // Use RequestSource.newBuilder() to construct. + private RequestSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RequestSource() { + principals_ = java.util.Collections.emptyList(); + ipBlocks_ = java.util.Collections.emptyList(); + resources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder.class); + } + + public static final int PRINCIPALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + principals_; + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPrincipalsList() { + return principals_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder> + getPrincipalsOrBuilderList() { + return principals_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPrincipalsCount() { + return principals_.size(); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal getPrincipals( + int index) { + return principals_.get(index); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of identities derived from the client's certificate.
                                                                                              +         * This field will not match on a request unless frontend mutual TLS is
                                                                                              +         * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +         * has been successfully validated by mTLS.
                                                                                              +         * Each identity is a string whose value is matched against a list of
                                                                                              +         * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +         * certificate. A match happens when any principal matches with the
                                                                                              +         * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +         * internal Application Load Balancers, regional external Application
                                                                                              +         * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +         * Cloud Service Mesh. This field is not supported for global external
                                                                                              +         * Application Load Balancers.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder + getPrincipalsOrBuilder(int index) { + return principals_.get(index); + } + + public static final int IP_BLOCKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + ipBlocks_; + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIpBlocksList() { + return ipBlocks_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder> + getIpBlocksOrBuilderList() { + return ipBlocks_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIpBlocksCount() { + return ipBlocks_.size(); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock getIpBlocks( + int index) { + return ipBlocks_.get(index); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +         * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +         * per Authorization Policy
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder + getIpBlocksOrBuilder(int index) { + return ipBlocks_.get(index); + } + + public static final int RESOURCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource> + resources_; + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource> + getResourcesList() { + return resources_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .RequestResourceOrBuilder> + getResourcesOrBuilderList() { + return resources_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of resources to match against the resource of the
                                                                                              +         * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +         * Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResourceOrBuilder + getResourcesOrBuilder(int index) { + return resources_.get(index); + } + + 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 < principals_.size(); i++) { + output.writeMessage(1, principals_.get(i)); + } + for (int i = 0; i < ipBlocks_.size(); i++) { + output.writeMessage(2, ipBlocks_.get(i)); + } + for (int i = 0; i < resources_.size(); i++) { + output.writeMessage(3, resources_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < principals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, principals_.get(i)); + } + for (int i = 0; i < ipBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ipBlocks_.get(i)); + } + for (int i = 0; i < resources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resources_.get(i)); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource) obj; + + if (!getPrincipalsList().equals(other.getPrincipalsList())) return false; + if (!getIpBlocksList().equals(other.getIpBlocksList())) return false; + if (!getResourcesList().equals(other.getResourcesList())) 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 (getPrincipalsCount() > 0) { + hash = (37 * hash) + PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getPrincipalsList().hashCode(); + } + if (getIpBlocksCount() > 0) { + hash = (37 * hash) + IP_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getIpBlocksList().hashCode(); + } + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + 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.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + 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.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +         * Describes the properties of a single source.
                                                                                              +         * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (principalsBuilder_ == null) { + principals_ = java.util.Collections.emptyList(); + } else { + principals_ = null; + principalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (ipBlocksBuilder_ == null) { + ipBlocks_ = java.util.Collections.emptyList(); + } else { + ipBlocks_ = null; + ipBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + } else { + resources_ = null; + resourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource result) { + if (principalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + principals_ = java.util.Collections.unmodifiableList(principals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.principals_ = principals_; + } else { + result.principals_ = principalsBuilder_.build(); + } + if (ipBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + ipBlocks_ = java.util.Collections.unmodifiableList(ipBlocks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ipBlocks_ = ipBlocks_; + } else { + result.ipBlocks_ = ipBlocksBuilder_.build(); + } + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .getDefaultInstance()) return this; + if (principalsBuilder_ == null) { + if (!other.principals_.isEmpty()) { + if (principals_.isEmpty()) { + principals_ = other.principals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrincipalsIsMutable(); + principals_.addAll(other.principals_); + } + onChanged(); + } + } else { + if (!other.principals_.isEmpty()) { + if (principalsBuilder_.isEmpty()) { + principalsBuilder_.dispose(); + principalsBuilder_ = null; + principals_ = other.principals_; + bitField0_ = (bitField0_ & ~0x00000001); + principalsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPrincipalsFieldBuilder() + : null; + } else { + principalsBuilder_.addAllMessages(other.principals_); + } + } + } + if (ipBlocksBuilder_ == null) { + if (!other.ipBlocks_.isEmpty()) { + if (ipBlocks_.isEmpty()) { + ipBlocks_ = other.ipBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIpBlocksIsMutable(); + ipBlocks_.addAll(other.ipBlocks_); + } + onChanged(); + } + } else { + if (!other.ipBlocks_.isEmpty()) { + if (ipBlocksBuilder_.isEmpty()) { + ipBlocksBuilder_.dispose(); + ipBlocksBuilder_ = null; + ipBlocks_ = other.ipBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + ipBlocksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIpBlocksFieldBuilder() + : null; + } else { + ipBlocksBuilder_.addAllMessages(other.ipBlocks_); + } + } + } + if (resourcesBuilder_ == null) { + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + onChanged(); + } + } else { + if (!other.resources_.isEmpty()) { + if (resourcesBuilder_.isEmpty()) { + resourcesBuilder_.dispose(); + resourcesBuilder_ = null; + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000004); + resourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResourcesFieldBuilder() + : null; + } else { + resourcesBuilder_.addAllMessages(other.resources_); + } + } + } + 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: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + .parser(), + extensionRegistry); + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(m); + } else { + principalsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + .parser(), + extensionRegistry); + if (ipBlocksBuilder_ == null) { + ensureIpBlocksIsMutable(); + ipBlocks_.add(m); + } else { + ipBlocksBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .RequestResource.parser(), + extensionRegistry); + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(m); + } else { + resourcesBuilder_.addMessage(m); + } + break; + } // case 26 + 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.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal> + principals_ = java.util.Collections.emptyList(); + + private void ensurePrincipalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + principals_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal>( + principals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder> + principalsBuilder_; + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPrincipalsList() { + if (principalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(principals_); + } else { + return principalsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPrincipalsCount() { + if (principalsBuilder_ == null) { + return principals_.size(); + } else { + return principalsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal getPrincipals( + int index) { + if (principalsBuilder_ == null) { + return principals_.get(index); + } else { + return principalsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrincipals( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.set(index, value); + onChanged(); + } else { + principalsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrincipals( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder + builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.set(index, builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPrincipals( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(value); + onChanged(); + } else { + principalsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPrincipals( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(index, value); + onChanged(); + } else { + principalsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPrincipals( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder + builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPrincipals( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder + builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(index, builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPrincipals( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal> + values) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, principals_); + onChanged(); + } else { + principalsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPrincipals() { + if (principalsBuilder_ == null) { + principals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + principalsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePrincipals(int index) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.remove(index); + onChanged(); + } else { + principalsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder + getPrincipalsBuilder(int index) { + return internalGetPrincipalsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder + getPrincipalsOrBuilder(int index) { + if (principalsBuilder_ == null) { + return principals_.get(index); + } else { + return principalsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder> + getPrincipalsOrBuilderList() { + if (principalsBuilder_ != null) { + return principalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(principals_); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder + addPrincipalsBuilder() { + return internalGetPrincipalsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder + addPrincipalsBuilder(int index) { + return internalGetPrincipalsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of identities derived from the client's certificate.
                                                                                              +           * This field will not match on a request unless frontend mutual TLS is
                                                                                              +           * enabled for the forwarding rule or Gateway and the client certificate
                                                                                              +           * has been successfully validated by mTLS.
                                                                                              +           * Each identity is a string whose value is matched against a list of
                                                                                              +           * URI SANs, DNS Name SANs, or the common name in the client's
                                                                                              +           * certificate. A match happens when any principal matches with the
                                                                                              +           * rule. Limited to 50 principals per Authorization Policy for regional
                                                                                              +           * internal Application Load Balancers, regional external Application
                                                                                              +           * Load Balancers, cross-region internal Application Load Balancers, and
                                                                                              +           * Cloud Service Mesh. This field is not supported for global external
                                                                                              +           * Application Load Balancers.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal principals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder> + getPrincipalsBuilderList() { + return internalGetPrincipalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder> + internalGetPrincipalsFieldBuilder() { + if (principalsBuilder_ == null) { + principalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.PrincipalOrBuilder>( + principals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + principals_ = null; + } + return principalsBuilder_; + } + + private java.util.List + ipBlocks_ = java.util.Collections.emptyList(); + + private void ensureIpBlocksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + ipBlocks_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock>(ipBlocks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder> + ipBlocksBuilder_; + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIpBlocksList() { + if (ipBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(ipBlocks_); + } else { + return ipBlocksBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIpBlocksCount() { + if (ipBlocksBuilder_ == null) { + return ipBlocks_.size(); + } else { + return ipBlocksBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock getIpBlocks( + int index) { + if (ipBlocksBuilder_ == null) { + return ipBlocks_.get(index); + } else { + return ipBlocksBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIpBlocks( + int index, com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock value) { + if (ipBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpBlocksIsMutable(); + ipBlocks_.set(index, value); + onChanged(); + } else { + ipBlocksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIpBlocks( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder + builderForValue) { + if (ipBlocksBuilder_ == null) { + ensureIpBlocksIsMutable(); + ipBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + ipBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpBlocks( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock value) { + if (ipBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpBlocksIsMutable(); + ipBlocks_.add(value); + onChanged(); + } else { + ipBlocksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpBlocks( + int index, com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock value) { + if (ipBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpBlocksIsMutable(); + ipBlocks_.add(index, value); + onChanged(); + } else { + ipBlocksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpBlocks( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder + builderForValue) { + if (ipBlocksBuilder_ == null) { + ensureIpBlocksIsMutable(); + ipBlocks_.add(builderForValue.build()); + onChanged(); + } else { + ipBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpBlocks( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder + builderForValue) { + if (ipBlocksBuilder_ == null) { + ensureIpBlocksIsMutable(); + ipBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + ipBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIpBlocks( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock> + values) { + if (ipBlocksBuilder_ == null) { + ensureIpBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipBlocks_); + onChanged(); + } else { + ipBlocksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIpBlocks() { + if (ipBlocksBuilder_ == null) { + ipBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + ipBlocksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIpBlocks(int index) { + if (ipBlocksBuilder_ == null) { + ensureIpBlocksIsMutable(); + ipBlocks_.remove(index); + onChanged(); + } else { + ipBlocksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder + getIpBlocksBuilder(int index) { + return internalGetIpBlocksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder + getIpBlocksOrBuilder(int index) { + if (ipBlocksBuilder_ == null) { + return ipBlocks_.get(index); + } else { + return ipBlocksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder> + getIpBlocksOrBuilderList() { + if (ipBlocksBuilder_ != null) { + return ipBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ipBlocks_); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder + addIpBlocksBuilder() { + return internalGetIpBlocksFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder + addIpBlocksBuilder(int index) { + return internalGetIpBlocksFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of IP addresses or IP address ranges to match
                                                                                              +           * against the source IP address of the request. Limited to 10 ip_blocks
                                                                                              +           * per Authorization Policy
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock ip_blocks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder> + getIpBlocksBuilderList() { + return internalGetIpBlocksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder> + internalGetIpBlocksFieldBuilder() { + if (ipBlocksBuilder_ == null) { + ipBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockOrBuilder>( + ipBlocks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + ipBlocks_ = null; + } + return ipBlocksBuilder_; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource> + resources_ = java.util.Collections.emptyList(); + + private void ensureResourcesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + resources_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource>( + resources_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .RequestResourceOrBuilder> + resourcesBuilder_; + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource> + getResourcesList() { + if (resourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resources_); + } else { + return resourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getResourcesCount() { + if (resourcesBuilder_ == null) { + return resources_.size(); + } else { + return resourcesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + getResources(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder + builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.set(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResources( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + } else { + resourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(index, value); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResources( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder + builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addResources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder + builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllResources( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource> + values) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + onChanged(); + } else { + resourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + resourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeResources(int index) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.remove(index); + onChanged(); + } else { + resourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder + getResourcesBuilder(int index) { + return internalGetResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResourceOrBuilder + getResourcesOrBuilder(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .RequestResourceOrBuilder> + getResourcesOrBuilderList() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resources_); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder + addResourcesBuilder() { + return internalGetResourcesFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder + addResourcesBuilder(int index) { + return internalGetResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of resources to match against the resource of the
                                                                                              +           * source VM of a request. Limited to 10 resources per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder> + getResourcesBuilderList() { + return internalGetResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .RequestResourceOrBuilder> + internalGetResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .RequestResourceOrBuilder>( + resources_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestSource 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.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource> + sources_; + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource> + getSourcesList() { + return sources_; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + getSourcesOrBuilderList() { + return sources_; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSourcesCount() { + return sources_.size(); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + getSources(int index) { + return sources_.get(index); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the properties of a request's sources. At least one
                                                                                              +       * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +       * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +       * request. Within a single source, the match follows AND semantics
                                                                                              +       * across fields and OR semantics within a single field, i.e. a match
                                                                                              +       * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder + getSourcesOrBuilder(int index) { + return sources_.get(index); + } + + public static final int NOT_SOURCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource> + notSources_; + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource> + getNotSourcesList() { + return notSources_; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + getNotSourcesOrBuilderList() { + return notSources_; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNotSourcesCount() { + return notSources_.size(); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + getNotSources(int index) { + return notSources_.get(index); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of request sources. Matches
                                                                                              +       * requests from sources that do not match the criteria specified in this
                                                                                              +       * field. At least one of sources or notSources must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder + getNotSourcesOrBuilder(int index) { + return notSources_.get(index); + } + + 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 < sources_.size(); i++) { + output.writeMessage(1, sources_.get(i)); + } + for (int i = 0; i < notSources_.size(); i++) { + output.writeMessage(2, notSources_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); + } + for (int i = 0; i < notSources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, notSources_.get(i)); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.From)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From) obj; + + if (!getSourcesList().equals(other.getSourcesList())) return false; + if (!getNotSourcesList().equals(other.getNotSourcesList())) 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 (getSourcesCount() > 0) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSourcesList().hashCode(); + } + if (getNotSourcesCount() > 0) { + hash = (37 * hash) + NOT_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getNotSourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From 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.networksecurity.v1.AuthzPolicy.AuthzRule.From parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From 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.networksecurity.v1.AuthzPolicy.AuthzRule.From parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.From 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Describes properties of one or more sources of a request.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.FromOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sourcesBuilder_ == null) { + sources_ = java.util.Collections.emptyList(); + } else { + sources_ = null; + sourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (notSourcesBuilder_ == null) { + notSources_ = java.util.Collections.emptyList(); + } else { + notSources_ = null; + notSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From result) { + if (sourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sources_ = java.util.Collections.unmodifiableList(sources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sources_ = sources_; + } else { + result.sources_ = sourcesBuilder_.build(); + } + if (notSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + notSources_ = java.util.Collections.unmodifiableList(notSources_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.notSources_ = notSources_; + } else { + result.notSources_ = notSourcesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .getDefaultInstance()) return this; + if (sourcesBuilder_ == null) { + if (!other.sources_.isEmpty()) { + if (sources_.isEmpty()) { + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourcesIsMutable(); + sources_.addAll(other.sources_); + } + onChanged(); + } + } else { + if (!other.sources_.isEmpty()) { + if (sourcesBuilder_.isEmpty()) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000001); + sourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSourcesFieldBuilder() + : null; + } else { + sourcesBuilder_.addAllMessages(other.sources_); + } + } + } + if (notSourcesBuilder_ == null) { + if (!other.notSources_.isEmpty()) { + if (notSources_.isEmpty()) { + notSources_ = other.notSources_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNotSourcesIsMutable(); + notSources_.addAll(other.notSources_); + } + onChanged(); + } + } else { + if (!other.notSources_.isEmpty()) { + if (notSourcesBuilder_.isEmpty()) { + notSourcesBuilder_.dispose(); + notSourcesBuilder_ = null; + notSources_ = other.notSources_; + bitField0_ = (bitField0_ & ~0x00000002); + notSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetNotSourcesFieldBuilder() + : null; + } else { + notSourcesBuilder_.addAllMessages(other.notSources_); + } + } + } + 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: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSource.parser(), + extensionRegistry); + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(m); + } else { + sourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSource.parser(), + extensionRegistry); + if (notSourcesBuilder_ == null) { + ensureNotSourcesIsMutable(); + notSources_.add(m); + } else { + notSourcesBuilder_.addMessage(m); + } + 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 java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource> + sources_ = java.util.Collections.emptyList(); + + private void ensureSourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sources_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource>( + sources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + sourcesBuilder_; + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource> + getSourcesList() { + if (sourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sources_); + } else { + return sourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSourcesCount() { + if (sourcesBuilder_ == null) { + return sources_.size(); + } else { + return sourcesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + getSources(int index) { + if (sourcesBuilder_ == null) { + return sources_.get(index); + } else { + return sourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.set(index, value); + onChanged(); + } else { + sourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.set(index, builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSources( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.add(value); + onChanged(); + } else { + sourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.add(index, value); + onChanged(); + } else { + sourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSources( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(index, builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSources( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSource> + values) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + onChanged(); + } else { + sourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSources() { + if (sourcesBuilder_ == null) { + sources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSources(int index) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.remove(index); + onChanged(); + } else { + sourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + getSourcesBuilder(int index) { + return internalGetSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder + getSourcesOrBuilder(int index) { + if (sourcesBuilder_ == null) { + return sources_.get(index); + } else { + return sourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + getSourcesOrBuilderList() { + if (sourcesBuilder_ != null) { + return sourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sources_); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + addSourcesBuilder() { + return internalGetSourcesFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + addSourcesBuilder(int index) { + return internalGetSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the properties of a request's sources. At least one
                                                                                              +         * of sources or notSources must be specified. Limited to 1 source.
                                                                                              +         * A match occurs when ANY source (in sources or notSources) matches the
                                                                                              +         * request. Within a single source, the match follows AND semantics
                                                                                              +         * across fields and OR semantics within a single field, i.e. a match
                                                                                              +         * occurs when ANY principal matches AND ANY ipBlocks match.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder> + getSourcesBuilderList() { + return internalGetSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + internalGetSourcesFieldBuilder() { + if (sourcesBuilder_ == null) { + sourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder>( + sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sources_ = null; + } + return sourcesBuilder_; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource> + notSources_ = java.util.Collections.emptyList(); + + private void ensureNotSourcesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + notSources_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource>( + notSources_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + notSourcesBuilder_; + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource> + getNotSourcesList() { + if (notSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(notSources_); + } else { + return notSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getNotSourcesCount() { + if (notSourcesBuilder_ == null) { + return notSources_.size(); + } else { + return notSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + getNotSources(int index) { + if (notSourcesBuilder_ == null) { + return notSources_.get(index); + } else { + return notSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNotSources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource value) { + if (notSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotSourcesIsMutable(); + notSources_.set(index, value); + onChanged(); + } else { + notSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNotSources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + builderForValue) { + if (notSourcesBuilder_ == null) { + ensureNotSourcesIsMutable(); + notSources_.set(index, builderForValue.build()); + onChanged(); + } else { + notSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNotSources( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource value) { + if (notSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotSourcesIsMutable(); + notSources_.add(value); + onChanged(); + } else { + notSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNotSources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource value) { + if (notSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotSourcesIsMutable(); + notSources_.add(index, value); + onChanged(); + } else { + notSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNotSources( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + builderForValue) { + if (notSourcesBuilder_ == null) { + ensureNotSourcesIsMutable(); + notSources_.add(builderForValue.build()); + onChanged(); + } else { + notSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNotSources( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + builderForValue) { + if (notSourcesBuilder_ == null) { + ensureNotSourcesIsMutable(); + notSources_.add(index, builderForValue.build()); + onChanged(); + } else { + notSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNotSources( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSource> + values) { + if (notSourcesBuilder_ == null) { + ensureNotSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notSources_); + onChanged(); + } else { + notSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNotSources() { + if (notSourcesBuilder_ == null) { + notSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + notSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNotSources(int index) { + if (notSourcesBuilder_ == null) { + ensureNotSourcesIsMutable(); + notSources_.remove(index); + onChanged(); + } else { + notSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + getNotSourcesBuilder(int index) { + return internalGetNotSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder + getNotSourcesOrBuilder(int index) { + if (notSourcesBuilder_ == null) { + return notSources_.get(index); + } else { + return notSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + getNotSourcesOrBuilderList() { + if (notSourcesBuilder_ != null) { + return notSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notSources_); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + addNotSourcesBuilder() { + return internalGetNotSourcesFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource.Builder + addNotSourcesBuilder(int index) { + return internalGetNotSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of request sources. Matches
                                                                                              +         * requests from sources that do not match the criteria specified in this
                                                                                              +         * field. At least one of sources or notSources must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder> + getNotSourcesBuilderList() { + return internalGetNotSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder> + internalGetNotSourcesFieldBuilder() { + if (notSourcesBuilder_ == null) { + notSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .RequestSourceOrBuilder>( + notSources_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + notSources_ = null; + } + return notSourcesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public From 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.networksecurity.v1.AuthzPolicy.AuthzRule.From + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getOperationsList(); + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation getOperations( + int index); + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getOperationsCount(); + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + getOperationsOrBuilderList(); + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder + getOperationsOrBuilder(int index); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNotOperationsList(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + getNotOperations(int index); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNotOperationsCount(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + getNotOperationsOrBuilderList(); + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder + getNotOperationsOrBuilder(int index); + } + + /** + * + * + *
                                                                                              +     * Describes properties of one or more targets of a request.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To} + */ + public static final class To extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To) + ToOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "To"); + } + + // Use To.newBuilder() to construct. + private To(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private To() { + operations_ = java.util.Collections.emptyList(); + notOperations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.Builder.class); + } + + public interface RequestOperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +         * Optional. A list of headers to match against in http header.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the headerSet field is set. + */ + boolean hasHeaderSet(); + + /** + * + * + *
                                                                                              +         * Optional. A list of headers to match against in http header.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The headerSet. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet + getHeaderSet(); + + /** + * + * + *
                                                                                              +         * Optional. A list of headers to match against in http header.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSetOrBuilder + getHeaderSetOrBuilder(); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getHostsList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getHosts(int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getHostsCount(); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + getHostsOrBuilderList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getHostsOrBuilder(int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPathsList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getPaths(int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPathsCount(); + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + getPathsOrBuilderList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getPathsOrBuilder(int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +         * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +         * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +         * Limited to 10 methods per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the methods. + */ + java.util.List getMethodsList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +         * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +         * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +         * Limited to 10 methods per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of methods. + */ + int getMethodsCount(); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +         * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +         * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +         * Limited to 10 methods per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The methods at the given index. + */ + java.lang.String getMethods(int index); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +         * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +         * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +         * Limited to 10 methods per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the methods at the given index. + */ + com.google.protobuf.ByteString getMethodsBytes(int index); + + /** + * + * + *
                                                                                              +         * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +         * payload in the request body cannot be successfully parsed, the
                                                                                              +         * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +         * targeting AgentGateway resources.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcp field is set. + */ + boolean hasMcp(); + + /** + * + * + *
                                                                                              +         * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +         * payload in the request body cannot be successfully parsed, the
                                                                                              +         * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +         * targeting AgentGateway resources.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcp. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP getMcp(); + + /** + * + * + *
                                                                                              +         * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +         * payload in the request body cannot be successfully parsed, the
                                                                                              +         * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +         * targeting AgentGateway resources.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder + getMcpOrBuilder(); + } + + /** + * + * + *
                                                                                              +       * Describes properties of one or more targets of a request.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation} + */ + public static final class RequestOperation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation) + RequestOperationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RequestOperation"); + } + + // Use RequestOperation.newBuilder() to construct. + private RequestOperation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RequestOperation() { + hosts_ = java.util.Collections.emptyList(); + paths_ = java.util.Collections.emptyList(); + methods_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder.class); + } + + /** + * + * + *
                                                                                              +         * Describes the option to match against the base MCP protocol methods.
                                                                                              +         * 
                                                                                              + * + * Protobuf enum {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption} + */ + public enum BaseProtocolMethodsOption implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +           * Unspecified option. Defaults to SKIP_BASE_PROTOCOL_METHODS.
                                                                                              +           * 
                                                                                              + * + * BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED = 0; + */ + BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +           * Skip matching on the base MCP protocol methods.
                                                                                              +           * 
                                                                                              + * + * SKIP_BASE_PROTOCOL_METHODS = 1; + */ + SKIP_BASE_PROTOCOL_METHODS(1), + /** + * + * + *
                                                                                              +           * Match on the base MCP protocol methods.
                                                                                              +           * 
                                                                                              + * + * MATCH_BASE_PROTOCOL_METHODS = 2; + */ + MATCH_BASE_PROTOCOL_METHODS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BaseProtocolMethodsOption"); + } + + /** + * + * + *
                                                                                              +           * Unspecified option. Defaults to SKIP_BASE_PROTOCOL_METHODS.
                                                                                              +           * 
                                                                                              + * + * BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED = 0; + */ + public static final int BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +           * Skip matching on the base MCP protocol methods.
                                                                                              +           * 
                                                                                              + * + * SKIP_BASE_PROTOCOL_METHODS = 1; + */ + public static final int SKIP_BASE_PROTOCOL_METHODS_VALUE = 1; + + /** + * + * + *
                                                                                              +           * Match on the base MCP protocol methods.
                                                                                              +           * 
                                                                                              + * + * MATCH_BASE_PROTOCOL_METHODS = 2; + */ + public static final int MATCH_BASE_PROTOCOL_METHODS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BaseProtocolMethodsOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BaseProtocolMethodsOption forNumber(int value) { + switch (value) { + case 0: + return BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED; + case 1: + return SKIP_BASE_PROTOCOL_METHODS; + case 2: + return MATCH_BASE_PROTOCOL_METHODS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BaseProtocolMethodsOption findValueByNumber(int number) { + return BaseProtocolMethodsOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BaseProtocolMethodsOption[] VALUES = values(); + + public static BaseProtocolMethodsOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BaseProtocolMethodsOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption) + } + + public interface HeaderSetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getHeadersList(); + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch getHeaders( + int index); + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getHeadersCount(); + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .HeaderMatchOrBuilder> + getHeadersOrBuilderList(); + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatchOrBuilder + getHeadersOrBuilder(int index); + } + + /** + * + * + *
                                                                                              +         * Describes a set of HTTP headers to match against.
                                                                                              +         * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet} + */ + public static final class HeaderSet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet) + HeaderSetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HeaderSet"); + } + + // Use HeaderSet.newBuilder() to construct. + private HeaderSet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HeaderSet() { + headers_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.Builder.class); + } + + public static final int HEADERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch> + headers_; + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch> + getHeadersList() { + return headers_; + } + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .HeaderMatchOrBuilder> + getHeadersOrBuilderList() { + return headers_; + } + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getHeadersCount() { + return headers_.size(); + } + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch getHeaders( + int index) { + return headers_.get(index); + } + + /** + * + * + *
                                                                                              +           * Required. A list of headers to match against in http header.
                                                                                              +           * The match can be one of exact, prefix, suffix, or contains
                                                                                              +           * (substring match). The match follows AND semantics which means all
                                                                                              +           * the headers must match. Matches are always case sensitive unless
                                                                                              +           * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +           * Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatchOrBuilder + getHeadersOrBuilder(int index) { + return headers_.get(index); + } + + 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 < headers_.size(); i++) { + output.writeMessage(1, headers_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < headers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet + other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet) + obj; + + if (!getHeadersList().equals(other.getHeadersList())) 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 (getHeadersCount() > 0) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getHeadersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +           * Describes a set of HTTP headers to match against.
                                                                                              +           * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (headersBuilder_ == null) { + headers_ = java.util.Collections.emptyList(); + } else { + headers_ = null; + headersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + result) { + if (headersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + headers_ = java.util.Collections.unmodifiableList(headers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.headers_ = headers_; + } else { + result.headers_ = headersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.getDefaultInstance()) return this; + if (headersBuilder_ == null) { + if (!other.headers_.isEmpty()) { + if (headers_.isEmpty()) { + headers_ = other.headers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHeadersIsMutable(); + headers_.addAll(other.headers_); + } + onChanged(); + } + } else { + if (!other.headers_.isEmpty()) { + if (headersBuilder_.isEmpty()) { + headersBuilder_.dispose(); + headersBuilder_ = null; + headers_ = other.headers_; + bitField0_ = (bitField0_ & ~0x00000001); + headersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetHeadersFieldBuilder() + : null; + } else { + headersBuilder_.addAllMessages(other.headers_); + } + } + } + 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: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .HeaderMatch.parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + 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 bitField0_; + + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch> + headers_ = java.util.Collections.emptyList(); + + private void ensureHeadersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + headers_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch>( + headers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatchOrBuilder> + headersBuilder_; + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch> + getHeadersList() { + if (headersBuilder_ == null) { + return java.util.Collections.unmodifiableList(headers_); + } else { + return headersBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getHeadersCount() { + if (headersBuilder_ == null) { + return headers_.size(); + } else { + return headersBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch getHeaders( + int index) { + if (headersBuilder_ == null) { + return headers_.get(index); + } else { + return headersBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHeaders( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch value) { + if (headersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeadersIsMutable(); + headers_.set(index, value); + onChanged(); + } else { + headersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHeaders( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder + builderForValue) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.set(index, builderForValue.build()); + onChanged(); + } else { + headersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addHeaders( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch value) { + if (headersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeadersIsMutable(); + headers_.add(value); + onChanged(); + } else { + headersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addHeaders( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch value) { + if (headersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHeadersIsMutable(); + headers_.add(index, value); + onChanged(); + } else { + headersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addHeaders( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder + builderForValue) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(builderForValue.build()); + onChanged(); + } else { + headersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addHeaders( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder + builderForValue) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(index, builderForValue.build()); + onChanged(); + } else { + headersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllHeaders( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch> + values) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + onChanged(); + } else { + headersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHeaders() { + if (headersBuilder_ == null) { + headers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + headersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeHeaders(int index) { + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.remove(index); + onChanged(); + } else { + headersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder + getHeadersBuilder(int index) { + return internalGetHeadersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatchOrBuilder + getHeadersOrBuilder(int index) { + if (headersBuilder_ == null) { + return headers_.get(index); + } else { + return headersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .HeaderMatchOrBuilder> + getHeadersOrBuilderList() { + if (headersBuilder_ != null) { + return headersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(headers_); + } + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder + addHeadersBuilder() { + return internalGetHeadersFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder + addHeadersBuilder(int index) { + return internalGetHeadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +             * Required. A list of headers to match against in http header.
                                                                                              +             * The match can be one of exact, prefix, suffix, or contains
                                                                                              +             * (substring match). The match follows AND semantics which means all
                                                                                              +             * the headers must match. Matches are always case sensitive unless
                                                                                              +             * the ignoreCase is set. Limited to 10 headers per Authorization
                                                                                              +             * Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder> + getHeadersBuilderList() { + return internalGetHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatchOrBuilder> + internalGetHeadersFieldBuilder() { + if (headersBuilder_ == null) { + headersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .HeaderMatchOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + headers_ = null; + } + return headersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeaderSet 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MCPMethodOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +           * Required. The MCP method to match against. Allowed values are as
                                                                                              +           * follows:
                                                                                              +           * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +           * sub methods under the respective methods.
                                                                                              +           * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +           * `resources/templates/list`
                                                                                              +           * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +           * `resources/unsubscribe`, `resources/read`
                                                                                              +           * Params cannot be specified for categories 1 and 2.
                                                                                              +           * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +           * Required. The MCP method to match against. Allowed values are as
                                                                                              +           * follows:
                                                                                              +           * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +           * sub methods under the respective methods.
                                                                                              +           * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +           * `resources/templates/list`
                                                                                              +           * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +           * `resources/unsubscribe`, `resources/read`
                                                                                              +           * Params cannot be specified for categories 1 and 2.
                                                                                              +           * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getParamsList(); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getParams( + int index); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getParamsCount(); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatchOrBuilder> + getParamsOrBuilderList(); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getParamsOrBuilder(int index); + } + + /** + * + * + *
                                                                                              +         * Describes a set of MCP methods to match against.
                                                                                              +         * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod} + */ + public static final class MCPMethod extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod) + MCPMethodOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MCPMethod"); + } + + // Use MCPMethod.newBuilder() to construct. + private MCPMethod(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MCPMethod() { + name_ = ""; + params_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +           * Required. The MCP method to match against. Allowed values are as
                                                                                              +           * follows:
                                                                                              +           * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +           * sub methods under the respective methods.
                                                                                              +           * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +           * `resources/templates/list`
                                                                                              +           * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +           * `resources/unsubscribe`, `resources/read`
                                                                                              +           * Params cannot be specified for categories 1 and 2.
                                                                                              +           * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +           * Required. The MCP method to match against. Allowed values are as
                                                                                              +           * follows:
                                                                                              +           * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +           * sub methods under the respective methods.
                                                                                              +           * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +           * `resources/templates/list`
                                                                                              +           * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +           * `resources/unsubscribe`, `resources/read`
                                                                                              +           * Params cannot be specified for categories 1 and 2.
                                                                                              +           * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + params_; + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + getParamsList() { + return params_; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatchOrBuilder> + getParamsOrBuilderList() { + return params_; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getParamsCount() { + return params_.size(); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getParams( + int index) { + return params_.get(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP method parameters to match against. The
                                                                                              +           * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +           * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +           * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getParamsOrBuilder(int index) { + return params_.get(index); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < params_.size(); i++) { + output.writeMessage(2, params_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < params_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, params_.get(i)); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod + other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getParamsList().equals(other.getParamsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getParamsCount() > 0) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getParamsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +           * Describes a set of MCP methods to match against.
                                                                                              +           * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethodOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (paramsBuilder_ == null) { + params_ = java.util.Collections.emptyList(); + } else { + params_ = null; + paramsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + result) { + if (paramsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + params_ = java.util.Collections.unmodifiableList(params_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.params_ = params_; + } else { + result.params_ = paramsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (paramsBuilder_ == null) { + if (!other.params_.isEmpty()) { + if (params_.isEmpty()) { + params_ = other.params_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParamsIsMutable(); + params_.addAll(other.params_); + } + onChanged(); + } + } else { + if (!other.params_.isEmpty()) { + if (paramsBuilder_.isEmpty()) { + paramsBuilder_.dispose(); + paramsBuilder_ = null; + params_ = other.params_; + bitField0_ = (bitField0_ & ~0x00000002); + paramsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetParamsFieldBuilder() + : null; + } else { + paramsBuilder_.addAllMessages(other.params_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatch.parser(), + extensionRegistry); + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.add(m); + } else { + paramsBuilder_.addMessage(m); + } + 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +             * Required. The MCP method to match against. Allowed values are as
                                                                                              +             * follows:
                                                                                              +             * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +             * sub methods under the respective methods.
                                                                                              +             * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +             * `resources/templates/list`
                                                                                              +             * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +             * `resources/unsubscribe`, `resources/read`
                                                                                              +             * Params cannot be specified for categories 1 and 2.
                                                                                              +             * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +             * Required. The MCP method to match against. Allowed values are as
                                                                                              +             * follows:
                                                                                              +             * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +             * sub methods under the respective methods.
                                                                                              +             * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +             * `resources/templates/list`
                                                                                              +             * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +             * `resources/unsubscribe`, `resources/read`
                                                                                              +             * Params cannot be specified for categories 1 and 2.
                                                                                              +             * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +             * Required. The MCP method to match against. Allowed values are as
                                                                                              +             * follows:
                                                                                              +             * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +             * sub methods under the respective methods.
                                                                                              +             * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +             * `resources/templates/list`
                                                                                              +             * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +             * `resources/unsubscribe`, `resources/read`
                                                                                              +             * Params cannot be specified for categories 1 and 2.
                                                                                              +             * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +             * Required. The MCP method to match against. Allowed values are as
                                                                                              +             * follows:
                                                                                              +             * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +             * sub methods under the respective methods.
                                                                                              +             * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +             * `resources/templates/list`
                                                                                              +             * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +             * `resources/unsubscribe`, `resources/read`
                                                                                              +             * Params cannot be specified for categories 1 and 2.
                                                                                              +             * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +             * Required. The MCP method to match against. Allowed values are as
                                                                                              +             * follows:
                                                                                              +             * 1. `tools`, `prompts`, `resources` - these will match against all
                                                                                              +             * sub methods under the respective methods.
                                                                                              +             * 2. `prompts/list`, `tools/list`, `resources/list`,
                                                                                              +             * `resources/templates/list`
                                                                                              +             * 3. `prompts/get`, `tools/call`, `resources/subscribe`,
                                                                                              +             * `resources/unsubscribe`, `resources/read`
                                                                                              +             * Params cannot be specified for categories 1 and 2.
                                                                                              +             * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + params_ = java.util.Collections.emptyList(); + + private void ensureParamsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + params_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch>( + params_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + paramsBuilder_; + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + getParamsList() { + if (paramsBuilder_ == null) { + return java.util.Collections.unmodifiableList(params_); + } else { + return paramsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getParamsCount() { + if (paramsBuilder_ == null) { + return params_.size(); + } else { + return paramsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getParams( + int index) { + if (paramsBuilder_ == null) { + return params_.get(index); + } else { + return paramsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParams( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParamsIsMutable(); + params_.set(index, value); + onChanged(); + } else { + paramsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParams( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.set(index, builderForValue.build()); + onChanged(); + } else { + paramsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParams( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParamsIsMutable(); + params_.add(value); + onChanged(); + } else { + paramsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParams( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParamsIsMutable(); + params_.add(index, value); + onChanged(); + } else { + paramsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParams( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.add(builderForValue.build()); + onChanged(); + } else { + paramsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addParams( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.add(index, builderForValue.build()); + onChanged(); + } else { + paramsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllParams( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + values) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, params_); + onChanged(); + } else { + paramsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + params_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + paramsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeParams(int index) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.remove(index); + onChanged(); + } else { + paramsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + getParamsBuilder(int index) { + return internalGetParamsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getParamsOrBuilder(int index) { + if (paramsBuilder_ == null) { + return params_.get(index); + } else { + return paramsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatchOrBuilder> + getParamsOrBuilderList() { + if (paramsBuilder_ != null) { + return paramsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(params_); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + addParamsBuilder() { + return internalGetParamsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + addParamsBuilder(int index) { + return internalGetParamsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP method parameters to match against. The
                                                                                              +             * match can be one of exact, prefix, suffix, or contains (substring
                                                                                              +             * match). Matches are always case sensitive unless the ignoreCase is
                                                                                              +             * set. Limited to 10 MCP method parameters per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder> + getParamsBuilderList() { + return internalGetParamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + internalGetParamsFieldBuilder() { + if (paramsBuilder_ == null) { + paramsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatchOrBuilder>( + params_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + params_ = null; + } + return paramsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MCPMethod 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MCPOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +           * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +           * specific methods namely:
                                                                                              +           * * initialize
                                                                                              +           * * completion/
                                                                                              +           * * logging/
                                                                                              +           * * notifications/
                                                                                              +           * * ping
                                                                                              +           * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for baseProtocolMethodsOption. + */ + int getBaseProtocolMethodsOptionValue(); + + /** + * + * + *
                                                                                              +           * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +           * specific methods namely:
                                                                                              +           * * initialize
                                                                                              +           * * completion/
                                                                                              +           * * logging/
                                                                                              +           * * notifications/
                                                                                              +           * * ping
                                                                                              +           * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The baseProtocolMethodsOption. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption + getBaseProtocolMethodsOption(); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod> + getMethodsList(); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod + getMethods(int index); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMethodsCount(); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethodOrBuilder> + getMethodsOrBuilderList(); + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethodOrBuilder + getMethodsOrBuilder(int index); + } + + /** + * + * + *
                                                                                              +         * Describes a set of MCP protocol attributes to match against for a
                                                                                              +         * given MCP request.
                                                                                              +         * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP} + */ + public static final class MCP extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP) + MCPOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MCP"); + } + + // Use MCP.newBuilder() to construct. + private MCP(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MCP() { + baseProtocolMethodsOption_ = 0; + methods_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .Builder + .class); + } + + public static final int BASE_PROTOCOL_METHODS_OPTION_FIELD_NUMBER = 1; + private int baseProtocolMethodsOption_ = 0; + + /** + * + * + *
                                                                                              +           * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +           * specific methods namely:
                                                                                              +           * * initialize
                                                                                              +           * * completion/
                                                                                              +           * * logging/
                                                                                              +           * * notifications/
                                                                                              +           * * ping
                                                                                              +           * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for baseProtocolMethodsOption. + */ + @java.lang.Override + public int getBaseProtocolMethodsOptionValue() { + return baseProtocolMethodsOption_; + } + + /** + * + * + *
                                                                                              +           * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +           * specific methods namely:
                                                                                              +           * * initialize
                                                                                              +           * * completion/
                                                                                              +           * * logging/
                                                                                              +           * * notifications/
                                                                                              +           * * ping
                                                                                              +           * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The baseProtocolMethodsOption. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption + getBaseProtocolMethodsOption() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption + result = + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption.forNumber(baseProtocolMethodsOption_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption.UNRECOGNIZED + : result; + } + + public static final int METHODS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod> + methods_; + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod> + getMethodsList() { + return methods_; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethodOrBuilder> + getMethodsOrBuilderList() { + return methods_; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMethodsCount() { + return methods_.size(); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + getMethods(int index) { + return methods_.get(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of MCP methods and associated parameters to match
                                                                                              +           * on. It is recommended to use this field to match on tools, prompts
                                                                                              +           * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +           * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +           * protocol methods.
                                                                                              +           * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethodOrBuilder + getMethodsOrBuilder(int index) { + return methods_.get(index); + } + + 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 (baseProtocolMethodsOption_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption.BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, baseProtocolMethodsOption_); + } + for (int i = 0; i < methods_.size(); i++) { + output.writeMessage(2, methods_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (baseProtocolMethodsOption_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption.BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, baseProtocolMethodsOption_); + } + for (int i = 0; i < methods_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, methods_.get(i)); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP) + obj; + + if (baseProtocolMethodsOption_ != other.baseProtocolMethodsOption_) return false; + if (!getMethodsList().equals(other.getMethodsList())) 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) + BASE_PROTOCOL_METHODS_OPTION_FIELD_NUMBER; + hash = (53 * hash) + baseProtocolMethodsOption_; + if (getMethodsCount() > 0) { + hash = (37 * hash) + METHODS_FIELD_NUMBER; + hash = (53 * hash) + getMethodsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +           * Describes a set of MCP protocol attributes to match against for a
                                                                                              +           * given MCP request.
                                                                                              +           * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + baseProtocolMethodsOption_ = 0; + if (methodsBuilder_ == null) { + methods_ = java.util.Collections.emptyList(); + } else { + methods_ = null; + methodsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + result) { + if (methodsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + methods_ = java.util.Collections.unmodifiableList(methods_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.methods_ = methods_; + } else { + result.methods_ = methodsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseProtocolMethodsOption_ = baseProtocolMethodsOption_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .getDefaultInstance()) return this; + if (other.baseProtocolMethodsOption_ != 0) { + setBaseProtocolMethodsOptionValue(other.getBaseProtocolMethodsOptionValue()); + } + if (methodsBuilder_ == null) { + if (!other.methods_.isEmpty()) { + if (methods_.isEmpty()) { + methods_ = other.methods_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMethodsIsMutable(); + methods_.addAll(other.methods_); + } + onChanged(); + } + } else { + if (!other.methods_.isEmpty()) { + if (methodsBuilder_.isEmpty()) { + methodsBuilder_.dispose(); + methodsBuilder_ = null; + methods_ = other.methods_; + bitField0_ = (bitField0_ & ~0x00000002); + methodsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMethodsFieldBuilder() + : null; + } else { + methodsBuilder_.addAllMessages(other.methods_); + } + } + } + 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 8: + { + baseProtocolMethodsOption_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod + m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod.parser(), + extensionRegistry); + if (methodsBuilder_ == null) { + ensureMethodsIsMutable(); + methods_.add(m); + } else { + methodsBuilder_.addMessage(m); + } + 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 int baseProtocolMethodsOption_ = 0; + + /** + * + * + *
                                                                                              +             * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +             * specific methods namely:
                                                                                              +             * * initialize
                                                                                              +             * * completion/
                                                                                              +             * * logging/
                                                                                              +             * * notifications/
                                                                                              +             * * ping
                                                                                              +             * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +             * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for baseProtocolMethodsOption. + */ + @java.lang.Override + public int getBaseProtocolMethodsOptionValue() { + return baseProtocolMethodsOption_; + } + + /** + * + * + *
                                                                                              +             * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +             * specific methods namely:
                                                                                              +             * * initialize
                                                                                              +             * * completion/
                                                                                              +             * * logging/
                                                                                              +             * * notifications/
                                                                                              +             * * ping
                                                                                              +             * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +             * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for baseProtocolMethodsOption to set. + * @return This builder for chaining. + */ + public Builder setBaseProtocolMethodsOptionValue(int value) { + baseProtocolMethodsOption_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +             * specific methods namely:
                                                                                              +             * * initialize
                                                                                              +             * * completion/
                                                                                              +             * * logging/
                                                                                              +             * * notifications/
                                                                                              +             * * ping
                                                                                              +             * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +             * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The baseProtocolMethodsOption. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption + getBaseProtocolMethodsOption() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption + result = + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption.forNumber(baseProtocolMethodsOption_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +             * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +             * specific methods namely:
                                                                                              +             * * initialize
                                                                                              +             * * completion/
                                                                                              +             * * logging/
                                                                                              +             * * notifications/
                                                                                              +             * * ping
                                                                                              +             * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +             * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The baseProtocolMethodsOption to set. + * @return This builder for chaining. + */ + public Builder setBaseProtocolMethodsOption( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .BaseProtocolMethodsOption + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + baseProtocolMethodsOption_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. If specified, matches on the MCP protocol’s non-access
                                                                                              +             * specific methods namely:
                                                                                              +             * * initialize
                                                                                              +             * * completion/
                                                                                              +             * * logging/
                                                                                              +             * * notifications/
                                                                                              +             * * ping
                                                                                              +             * Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
                                                                                              +             * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBaseProtocolMethodsOption() { + bitField0_ = (bitField0_ & ~0x00000001); + baseProtocolMethodsOption_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod> + methods_ = java.util.Collections.emptyList(); + + private void ensureMethodsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + methods_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod>(methods_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethodOrBuilder> + methodsBuilder_; + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod> + getMethodsList() { + if (methodsBuilder_ == null) { + return java.util.Collections.unmodifiableList(methods_); + } else { + return methodsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMethodsCount() { + if (methodsBuilder_ == null) { + return methods_.size(); + } else { + return methodsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + getMethods(int index) { + if (methodsBuilder_ == null) { + return methods_.get(index); + } else { + return methodsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMethods( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + value) { + if (methodsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMethodsIsMutable(); + methods_.set(index, value); + onChanged(); + } else { + methodsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMethods( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder + builderForValue) { + if (methodsBuilder_ == null) { + ensureMethodsIsMutable(); + methods_.set(index, builderForValue.build()); + onChanged(); + } else { + methodsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMethods( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + value) { + if (methodsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMethodsIsMutable(); + methods_.add(value); + onChanged(); + } else { + methodsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMethods( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod + value) { + if (methodsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMethodsIsMutable(); + methods_.add(index, value); + onChanged(); + } else { + methodsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMethods( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder + builderForValue) { + if (methodsBuilder_ == null) { + ensureMethodsIsMutable(); + methods_.add(builderForValue.build()); + onChanged(); + } else { + methodsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMethods( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder + builderForValue) { + if (methodsBuilder_ == null) { + ensureMethodsIsMutable(); + methods_.add(index, builderForValue.build()); + onChanged(); + } else { + methodsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMethods( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod> + values) { + if (methodsBuilder_ == null) { + ensureMethodsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, methods_); + onChanged(); + } else { + methodsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMethods() { + if (methodsBuilder_ == null) { + methods_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + methodsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMethods(int index) { + if (methodsBuilder_ == null) { + ensureMethodsIsMutable(); + methods_.remove(index); + onChanged(); + } else { + methodsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder + getMethodsBuilder(int index) { + return internalGetMethodsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethodOrBuilder + getMethodsOrBuilder(int index) { + if (methodsBuilder_ == null) { + return methods_.get(index); + } else { + return methodsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethodOrBuilder> + getMethodsOrBuilderList() { + if (methodsBuilder_ != null) { + return methodsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(methods_); + } + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder + addMethodsBuilder() { + return internalGetMethodsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder + addMethodsBuilder(int index) { + return internalGetMethodsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +             * Optional. A list of MCP methods and associated parameters to match
                                                                                              +             * on. It is recommended to use this field to match on tools, prompts
                                                                                              +             * and resource accesses while setting the baseProtocolMethodsOption
                                                                                              +             * to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP
                                                                                              +             * protocol methods.
                                                                                              +             * Limited to 10 MCP methods per Authorization Policy.
                                                                                              +             * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder> + getMethodsBuilderList() { + return internalGetMethodsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethod.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPMethodOrBuilder> + internalGetMethodsFieldBuilder() { + if (methodsBuilder_ == null) { + methodsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethod.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCPMethodOrBuilder>( + methods_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + methods_ = null; + } + return methodsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MCP 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int HEADER_SET_FIELD_NUMBER = 1; + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + headerSet_; + + /** + * + * + *
                                                                                              +         * Optional. A list of headers to match against in http header.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the headerSet field is set. + */ + @java.lang.Override + public boolean hasHeaderSet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of headers to match against in http header.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The headerSet. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + getHeaderSet() { + return headerSet_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.getDefaultInstance() + : headerSet_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of headers to match against in http header.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSetOrBuilder + getHeaderSetOrBuilder() { + return headerSet_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.getDefaultInstance() + : headerSet_; + } + + public static final int HOSTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + hosts_; + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getHostsList() { + return hosts_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + getHostsOrBuilderList() { + return hosts_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getHostsCount() { + return hosts_.size(); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getHosts( + int index) { + return hosts_.get(index); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +         * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * hosts per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getHostsOrBuilder(int index) { + return hosts_.get(index); + } + + public static final int PATHS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + paths_; + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPathsList() { + return paths_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + getPathsOrBuilderList() { + return paths_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPathsCount() { + return paths_.size(); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getPaths( + int index) { + return paths_.get(index); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of paths to match against. The match can be one of
                                                                                              +         * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +         * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +         * paths per Authorization Policy.
                                                                                              +         * Note that this path match includes the query parameters. For gRPC
                                                                                              +         * services, this should be a fully-qualified name of the form
                                                                                              +         * /package.service/method.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getPathsOrBuilder(int index) { + return paths_.get(index); + } + + public static final int METHODS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList methods_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +         * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +         * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +         * Limited to 10 methods per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the methods. + */ + public com.google.protobuf.ProtocolStringList getMethodsList() { + return methods_; + } + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +         * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +         * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +         * Limited to 10 methods per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of methods. + */ + public int getMethodsCount() { + return methods_.size(); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +         * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +         * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +         * Limited to 10 methods per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The methods at the given index. + */ + public java.lang.String getMethods(int index) { + return methods_.get(index); + } + + /** + * + * + *
                                                                                              +         * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +         * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +         * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +         * Limited to 10 methods per Authorization Policy.
                                                                                              +         * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the methods at the given index. + */ + public com.google.protobuf.ByteString getMethodsBytes(int index) { + return methods_.getByteString(index); + } + + public static final int MCP_FIELD_NUMBER = 5; + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + mcp_; + + /** + * + * + *
                                                                                              +         * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +         * payload in the request body cannot be successfully parsed, the
                                                                                              +         * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +         * targeting AgentGateway resources.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcp field is set. + */ + @java.lang.Override + public boolean hasMcp() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +         * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +         * payload in the request body cannot be successfully parsed, the
                                                                                              +         * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +         * targeting AgentGateway resources.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcp. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + getMcp() { + return mcp_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + .getDefaultInstance() + : mcp_; + } + + /** + * + * + *
                                                                                              +         * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +         * payload in the request body cannot be successfully parsed, the
                                                                                              +         * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +         * targeting AgentGateway resources.
                                                                                              +         * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPOrBuilder + getMcpOrBuilder() { + return mcp_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + .getDefaultInstance() + : mcp_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getHeaderSet()); + } + for (int i = 0; i < hosts_.size(); i++) { + output.writeMessage(2, hosts_.get(i)); + } + for (int i = 0; i < paths_.size(); i++) { + output.writeMessage(3, paths_.get(i)); + } + for (int i = 0; i < methods_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, methods_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getMcp()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeaderSet()); + } + for (int i = 0; i < hosts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, hosts_.get(i)); + } + for (int i = 0; i < paths_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, paths_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < methods_.size(); i++) { + dataSize += computeStringSizeNoTag(methods_.getRaw(i)); + } + size += dataSize; + size += 1 * getMethodsList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMcp()); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation) obj; + + if (hasHeaderSet() != other.hasHeaderSet()) return false; + if (hasHeaderSet()) { + if (!getHeaderSet().equals(other.getHeaderSet())) return false; + } + if (!getHostsList().equals(other.getHostsList())) return false; + if (!getPathsList().equals(other.getPathsList())) return false; + if (!getMethodsList().equals(other.getMethodsList())) return false; + if (hasMcp() != other.hasMcp()) return false; + if (hasMcp()) { + if (!getMcp().equals(other.getMcp())) 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 (hasHeaderSet()) { + hash = (37 * hash) + HEADER_SET_FIELD_NUMBER; + hash = (53 * hash) + getHeaderSet().hashCode(); + } + if (getHostsCount() > 0) { + hash = (37 * hash) + HOSTS_FIELD_NUMBER; + hash = (53 * hash) + getHostsList().hashCode(); + } + if (getPathsCount() > 0) { + hash = (37 * hash) + PATHS_FIELD_NUMBER; + hash = (53 * hash) + getPathsList().hashCode(); + } + if (getMethodsCount() > 0) { + hash = (37 * hash) + METHODS_FIELD_NUMBER; + hash = (53 * hash) + getMethodsList().hashCode(); + } + if (hasMcp()) { + hash = (37 * hash) + MCP_FIELD_NUMBER; + hash = (53 * hash) + getMcp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +         * Describes properties of one or more targets of a request.
                                                                                              +         * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetHeaderSetFieldBuilder(); + internalGetHostsFieldBuilder(); + internalGetPathsFieldBuilder(); + internalGetMcpFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + headerSet_ = null; + if (headerSetBuilder_ != null) { + headerSetBuilder_.dispose(); + headerSetBuilder_ = null; + } + if (hostsBuilder_ == null) { + hosts_ = java.util.Collections.emptyList(); + } else { + hosts_ = null; + hostsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (pathsBuilder_ == null) { + paths_ = java.util.Collections.emptyList(); + } else { + paths_ = null; + pathsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + methods_ = com.google.protobuf.LazyStringArrayList.emptyList(); + mcp_ = null; + if (mcpBuilder_ != null) { + mcpBuilder_.dispose(); + mcpBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + result) { + if (hostsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + hosts_ = java.util.Collections.unmodifiableList(hosts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.hosts_ = hosts_; + } else { + result.hosts_ = hostsBuilder_.build(); + } + if (pathsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + paths_ = java.util.Collections.unmodifiableList(paths_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.paths_ = paths_; + } else { + result.paths_ = pathsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.headerSet_ = + headerSetBuilder_ == null ? headerSet_ : headerSetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + methods_.makeImmutable(); + result.methods_ = methods_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mcp_ = mcpBuilder_ == null ? mcp_ : mcpBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .getDefaultInstance()) return this; + if (other.hasHeaderSet()) { + mergeHeaderSet(other.getHeaderSet()); + } + if (hostsBuilder_ == null) { + if (!other.hosts_.isEmpty()) { + if (hosts_.isEmpty()) { + hosts_ = other.hosts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureHostsIsMutable(); + hosts_.addAll(other.hosts_); + } + onChanged(); + } + } else { + if (!other.hosts_.isEmpty()) { + if (hostsBuilder_.isEmpty()) { + hostsBuilder_.dispose(); + hostsBuilder_ = null; + hosts_ = other.hosts_; + bitField0_ = (bitField0_ & ~0x00000002); + hostsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetHostsFieldBuilder() + : null; + } else { + hostsBuilder_.addAllMessages(other.hosts_); + } + } + } + if (pathsBuilder_ == null) { + if (!other.paths_.isEmpty()) { + if (paths_.isEmpty()) { + paths_ = other.paths_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePathsIsMutable(); + paths_.addAll(other.paths_); + } + onChanged(); + } + } else { + if (!other.paths_.isEmpty()) { + if (pathsBuilder_.isEmpty()) { + pathsBuilder_.dispose(); + pathsBuilder_ = null; + paths_ = other.paths_; + bitField0_ = (bitField0_ & ~0x00000004); + pathsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPathsFieldBuilder() + : null; + } else { + pathsBuilder_.addAllMessages(other.paths_); + } + } + } + if (!other.methods_.isEmpty()) { + if (methods_.isEmpty()) { + methods_ = other.methods_; + bitField0_ |= 0x00000008; + } else { + ensureMethodsIsMutable(); + methods_.addAll(other.methods_); + } + onChanged(); + } + if (other.hasMcp()) { + mergeMcp(other.getMcp()); + } + 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( + internalGetHeaderSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .parser(), + extensionRegistry); + if (hostsBuilder_ == null) { + ensureHostsIsMutable(); + hosts_.add(m); + } else { + hostsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .parser(), + extensionRegistry); + if (pathsBuilder_ == null) { + ensurePathsIsMutable(); + paths_.add(m); + } else { + pathsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMethodsIsMutable(); + methods_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetMcpFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + headerSet_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSetOrBuilder> + headerSetBuilder_; + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the headerSet field is set. + */ + public boolean hasHeaderSet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The headerSet. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + getHeaderSet() { + if (headerSetBuilder_ == null) { + return headerSet_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.getDefaultInstance() + : headerSet_; + } else { + return headerSetBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHeaderSet( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + value) { + if (headerSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headerSet_ = value; + } else { + headerSetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHeaderSet( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.Builder + builderForValue) { + if (headerSetBuilder_ == null) { + headerSet_ = builderForValue.build(); + } else { + headerSetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHeaderSet( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet + value) { + if (headerSetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && headerSet_ != null + && headerSet_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.HeaderSet.getDefaultInstance()) { + getHeaderSetBuilder().mergeFrom(value); + } else { + headerSet_ = value; + } + } else { + headerSetBuilder_.mergeFrom(value); + } + if (headerSet_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHeaderSet() { + bitField0_ = (bitField0_ & ~0x00000001); + headerSet_ = null; + if (headerSetBuilder_ != null) { + headerSetBuilder_.dispose(); + headerSetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.Builder + getHeaderSetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetHeaderSetFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSetOrBuilder + getHeaderSetOrBuilder() { + if (headerSetBuilder_ != null) { + return headerSetBuilder_.getMessageOrBuilder(); + } else { + return headerSet_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.getDefaultInstance() + : headerSet_; + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of headers to match against in http header.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet header_set = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSetOrBuilder> + internalGetHeaderSetFieldBuilder() { + if (headerSetBuilder_ == null) { + headerSetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSet.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .HeaderSetOrBuilder>(getHeaderSet(), getParentForChildren(), isClean()); + headerSet_ = null; + } + return headerSetBuilder_; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + hosts_ = java.util.Collections.emptyList(); + + private void ensureHostsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + hosts_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch>( + hosts_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + hostsBuilder_; + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + getHostsList() { + if (hostsBuilder_ == null) { + return java.util.Collections.unmodifiableList(hosts_); + } else { + return hostsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getHostsCount() { + if (hostsBuilder_ == null) { + return hosts_.size(); + } else { + return hostsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getHosts( + int index) { + if (hostsBuilder_ == null) { + return hosts_.get(index); + } else { + return hostsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHosts( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (hostsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostsIsMutable(); + hosts_.set(index, value); + onChanged(); + } else { + hostsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHosts( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (hostsBuilder_ == null) { + ensureHostsIsMutable(); + hosts_.set(index, builderForValue.build()); + onChanged(); + } else { + hostsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHosts( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (hostsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostsIsMutable(); + hosts_.add(value); + onChanged(); + } else { + hostsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHosts( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (hostsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostsIsMutable(); + hosts_.add(index, value); + onChanged(); + } else { + hostsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHosts( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (hostsBuilder_ == null) { + ensureHostsIsMutable(); + hosts_.add(builderForValue.build()); + onChanged(); + } else { + hostsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHosts( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (hostsBuilder_ == null) { + ensureHostsIsMutable(); + hosts_.add(index, builderForValue.build()); + onChanged(); + } else { + hostsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllHosts( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + values) { + if (hostsBuilder_ == null) { + ensureHostsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hosts_); + onChanged(); + } else { + hostsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHosts() { + if (hostsBuilder_ == null) { + hosts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + hostsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeHosts(int index) { + if (hostsBuilder_ == null) { + ensureHostsIsMutable(); + hosts_.remove(index); + onChanged(); + } else { + hostsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + getHostsBuilder(int index) { + return internalGetHostsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getHostsOrBuilder(int index) { + if (hostsBuilder_ == null) { + return hosts_.get(index); + } else { + return hostsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatchOrBuilder> + getHostsOrBuilderList() { + if (hostsBuilder_ != null) { + return hostsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hosts_); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + addHostsBuilder() { + return internalGetHostsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + addHostsBuilder(int index) { + return internalGetHostsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP Hosts to match against. The match can be one
                                                                                              +           * of exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * hosts per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch hosts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder> + getHostsBuilderList() { + return internalGetHostsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + internalGetHostsFieldBuilder() { + if (hostsBuilder_ == null) { + hostsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatchOrBuilder>( + hosts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + hosts_ = null; + } + return hostsBuilder_; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + paths_ = java.util.Collections.emptyList(); + + private void ensurePathsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + paths_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch>( + paths_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + pathsBuilder_; + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + getPathsList() { + if (pathsBuilder_ == null) { + return java.util.Collections.unmodifiableList(paths_); + } else { + return pathsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPathsCount() { + if (pathsBuilder_ == null) { + return paths_.size(); + } else { + return pathsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch getPaths( + int index) { + if (pathsBuilder_ == null) { + return paths_.get(index); + } else { + return pathsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPaths( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (pathsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.set(index, value); + onChanged(); + } else { + pathsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPaths( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (pathsBuilder_ == null) { + ensurePathsIsMutable(); + paths_.set(index, builderForValue.build()); + onChanged(); + } else { + pathsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPaths( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (pathsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.add(value); + onChanged(); + } else { + pathsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPaths( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value) { + if (pathsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.add(index, value); + onChanged(); + } else { + pathsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPaths( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (pathsBuilder_ == null) { + ensurePathsIsMutable(); + paths_.add(builderForValue.build()); + onChanged(); + } else { + pathsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPaths( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + builderForValue) { + if (pathsBuilder_ == null) { + ensurePathsIsMutable(); + paths_.add(index, builderForValue.build()); + onChanged(); + } else { + pathsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPaths( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch> + values) { + if (pathsBuilder_ == null) { + ensurePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_); + onChanged(); + } else { + pathsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPaths() { + if (pathsBuilder_ == null) { + paths_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + pathsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePaths(int index) { + if (pathsBuilder_ == null) { + ensurePathsIsMutable(); + paths_.remove(index); + onChanged(); + } else { + pathsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + getPathsBuilder(int index) { + return internalGetPathsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder + getPathsOrBuilder(int index) { + if (pathsBuilder_ == null) { + return paths_.get(index); + } else { + return pathsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatchOrBuilder> + getPathsOrBuilderList() { + if (pathsBuilder_ != null) { + return pathsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(paths_); + } + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + addPathsBuilder() { + return internalGetPathsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder + addPathsBuilder(int index) { + return internalGetPathsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of paths to match against. The match can be one of
                                                                                              +           * exact, prefix, suffix, or contains (substring match). Matches are
                                                                                              +           * always case sensitive unless the ignoreCase is set. Limited to 10
                                                                                              +           * paths per Authorization Policy.
                                                                                              +           * Note that this path match includes the query parameters. For gRPC
                                                                                              +           * services, this should be a fully-qualified name of the form
                                                                                              +           * /package.service/method.
                                                                                              +           * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder> + getPathsBuilderList() { + return internalGetPathsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> + internalGetPathsFieldBuilder() { + if (pathsBuilder_ == null) { + pathsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule + .StringMatchOrBuilder>( + paths_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + paths_ = null; + } + return pathsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList methods_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureMethodsIsMutable() { + if (!methods_.isModifiable()) { + methods_ = new com.google.protobuf.LazyStringArrayList(methods_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the methods. + */ + public com.google.protobuf.ProtocolStringList getMethodsList() { + methods_.makeImmutable(); + return methods_; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of methods. + */ + public int getMethodsCount() { + return methods_.size(); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The methods at the given index. + */ + public java.lang.String getMethods(int index) { + return methods_.get(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the methods at the given index. + */ + public com.google.protobuf.ByteString getMethodsBytes(int index) { + return methods_.getByteString(index); + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The methods to set. + * @return This builder for chaining. + */ + public Builder setMethods(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMethodsIsMutable(); + methods_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The methods to add. + * @return This builder for chaining. + */ + public Builder addMethods(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMethodsIsMutable(); + methods_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The methods to add. + * @return This builder for chaining. + */ + public Builder addAllMethods(java.lang.Iterable values) { + ensureMethodsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, methods_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMethods() { + methods_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. A list of HTTP methods to match against. Each entry must be
                                                                                              +           * a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE,
                                                                                              +           * OPTIONS). It only allows exact match and is always case sensitive.
                                                                                              +           * Limited to 10 methods per Authorization Policy.
                                                                                              +           * 
                                                                                              + * + * repeated string methods = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the methods to add. + * @return This builder for chaining. + */ + public Builder addMethodsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMethodsIsMutable(); + methods_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + mcp_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPOrBuilder> + mcpBuilder_; + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcp field is set. + */ + public boolean hasMcp() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcp. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + getMcp() { + if (mcpBuilder_ == null) { + return mcp_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .getDefaultInstance() + : mcp_; + } else { + return mcpBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMcp( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + value) { + if (mcpBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mcp_ = value; + } else { + mcpBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMcp( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + .Builder + builderForValue) { + if (mcpBuilder_ == null) { + mcp_ = builderForValue.build(); + } else { + mcpBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMcp( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + value) { + if (mcpBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && mcp_ != null + && mcp_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.MCP + .getDefaultInstance()) { + getMcpBuilder().mergeFrom(value); + } else { + mcp_ = value; + } + } else { + mcpBuilder_.mergeFrom(value); + } + if (mcp_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMcp() { + bitField0_ = (bitField0_ & ~0x00000010); + mcp_ = null; + if (mcpBuilder_ != null) { + mcpBuilder_.dispose(); + mcpBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + .Builder + getMcpBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetMcpFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPOrBuilder + getMcpOrBuilder() { + if (mcpBuilder_ != null) { + return mcpBuilder_.getMessageOrBuilder(); + } else { + return mcp_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .getDefaultInstance() + : mcp_; + } + } + + /** + * + * + *
                                                                                              +           * Optional. Defines the MCP protocol attributes to match on. If the MCP
                                                                                              +           * payload in the request body cannot be successfully parsed, the
                                                                                              +           * request will be denied. This field can be set only for AuthzPolicies
                                                                                              +           * targeting AgentGateway resources.
                                                                                              +           * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP mcp = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPOrBuilder> + internalGetMcpFieldBuilder() { + if (mcpBuilder_ == null) { + mcpBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCP + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .MCPOrBuilder>(getMcp(), getParentForChildren(), isClean()); + mcp_ = null; + } + return mcpBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestOperation 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.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int OPERATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation> + operations_; + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation> + getOperationsList() { + return operations_; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + getOperationsOrBuilderList() { + return operations_; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getOperationsCount() { + return operations_.size(); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + getOperations(int index) { + return operations_.get(index); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of one or more targets of a request. At
                                                                                              +       * least one of operations or notOperations must be specified. Limited to
                                                                                              +       * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +       * notOperations) matches. Within an operation, the match follows AND
                                                                                              +       * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +       * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +       * matches.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder + getOperationsOrBuilder(int index) { + return operations_.get(index); + } + + public static final int NOT_OPERATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation> + notOperations_; + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation> + getNotOperationsList() { + return notOperations_; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + getNotOperationsOrBuilderList() { + return notOperations_; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNotOperationsCount() { + return notOperations_.size(); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + getNotOperations(int index) { + return notOperations_.get(index); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes the negated properties of the targets of a request.
                                                                                              +       * Matches requests for operations that do not match the criteria
                                                                                              +       * specified in this field. At least one of operations or notOperations
                                                                                              +       * must be specified.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperationOrBuilder + getNotOperationsOrBuilder(int index) { + return notOperations_.get(index); + } + + 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 < operations_.size(); i++) { + output.writeMessage(1, operations_.get(i)); + } + for (int i = 0; i < notOperations_.size(); i++) { + output.writeMessage(2, notOperations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < operations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, operations_.get(i)); + } + for (int i = 0; i < notOperations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, notOperations_.get(i)); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule.To)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To) obj; + + if (!getOperationsList().equals(other.getOperationsList())) return false; + if (!getNotOperationsList().equals(other.getNotOperationsList())) 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 (getOperationsCount() > 0) { + hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperationsList().hashCode(); + } + if (getNotOperationsCount() > 0) { + hash = (37 * hash) + NOT_OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotOperationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To 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.networksecurity.v1.AuthzPolicy.AuthzRule.To parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To 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.networksecurity.v1.AuthzPolicy.AuthzRule.To parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule.To 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Describes properties of one or more targets of a request.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.ToOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + } else { + operations_ = null; + operationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (notOperationsBuilder_ == null) { + notOperations_ = java.util.Collections.emptyList(); + } else { + notOperations_ = null; + notOperationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To result) { + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + if (notOperationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + notOperations_ = java.util.Collections.unmodifiableList(notOperations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.notOperations_ = notOperations_; + } else { + result.notOperations_ = notOperationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To) { + return mergeFrom((com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.getDefaultInstance()) + return this; + if (operationsBuilder_ == null) { + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + onChanged(); + } + } else { + if (!other.operations_.isEmpty()) { + if (operationsBuilder_.isEmpty()) { + operationsBuilder_.dispose(); + operationsBuilder_ = null; + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + operationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetOperationsFieldBuilder() + : null; + } else { + operationsBuilder_.addAllMessages(other.operations_); + } + } + } + if (notOperationsBuilder_ == null) { + if (!other.notOperations_.isEmpty()) { + if (notOperations_.isEmpty()) { + notOperations_ = other.notOperations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNotOperationsIsMutable(); + notOperations_.addAll(other.notOperations_); + } + onChanged(); + } + } else { + if (!other.notOperations_.isEmpty()) { + if (notOperationsBuilder_.isEmpty()) { + notOperationsBuilder_.dispose(); + notOperationsBuilder_ = null; + notOperations_ = other.notOperations_; + bitField0_ = (bitField0_ & ~0x00000002); + notOperationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetNotOperationsFieldBuilder() + : null; + } else { + notOperationsBuilder_.addAllMessages(other.notOperations_); + } + } + } + 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: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.parser(), + extensionRegistry); + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(m); + } else { + operationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation.parser(), + extensionRegistry); + if (notOperationsBuilder_ == null) { + ensureNotOperationsIsMutable(); + notOperations_.add(m); + } else { + notOperationsBuilder_.addMessage(m); + } + 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 java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation> + operations_ = java.util.Collections.emptyList(); + + private void ensureOperationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + operations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation>( + operations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + operationsBuilder_; + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation> + getOperationsList() { + if (operationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operations_); + } else { + return operationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getOperationsCount() { + if (operationsBuilder_ == null) { + return operations_.size(); + } else { + return operationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + getOperations(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOperations( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.set(index, value); + onChanged(); + } else { + operationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOperations( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.set(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOperations( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(value); + onChanged(); + } else { + operationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOperations( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(index, value); + onChanged(); + } else { + operationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOperations( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOperations( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllOperations( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation> + values) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); + onChanged(); + } else { + operationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOperations() { + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + operationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeOperations(int index) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.remove(index); + onChanged(); + } else { + operationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + getOperationsBuilder(int index) { + return internalGetOperationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder + getOperationsOrBuilder(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + getOperationsOrBuilderList() { + if (operationsBuilder_ != null) { + return operationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operations_); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + addOperationsBuilder() { + return internalGetOperationsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + addOperationsBuilder(int index) { + return internalGetOperationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes properties of one or more targets of a request. At
                                                                                              +         * least one of operations or notOperations must be specified. Limited to
                                                                                              +         * 1 operation. A match occurs when ANY operation (in operations or
                                                                                              +         * notOperations) matches. Within an operation, the match follows AND
                                                                                              +         * semantics across fields and OR semantics within a field, i.e. a match
                                                                                              +         * occurs when ANY path matches AND ANY header matches and ANY method
                                                                                              +         * matches.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation operations = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder> + getOperationsBuilderList() { + return internalGetOperationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + internalGetOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + operationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + operations_ = null; + } + return operationsBuilder_; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation> + notOperations_ = java.util.Collections.emptyList(); + + private void ensureNotOperationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + notOperations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation>( + notOperations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + notOperationsBuilder_; + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation> + getNotOperationsList() { + if (notOperationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notOperations_); + } else { + return notOperationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getNotOperationsCount() { + if (notOperationsBuilder_ == null) { + return notOperations_.size(); + } else { + return notOperationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + getNotOperations(int index) { + if (notOperationsBuilder_ == null) { + return notOperations_.get(index); + } else { + return notOperationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNotOperations( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation value) { + if (notOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotOperationsIsMutable(); + notOperations_.set(index, value); + onChanged(); + } else { + notOperationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNotOperations( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + builderForValue) { + if (notOperationsBuilder_ == null) { + ensureNotOperationsIsMutable(); + notOperations_.set(index, builderForValue.build()); + onChanged(); + } else { + notOperationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNotOperations( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation value) { + if (notOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotOperationsIsMutable(); + notOperations_.add(value); + onChanged(); + } else { + notOperationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNotOperations( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation value) { + if (notOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotOperationsIsMutable(); + notOperations_.add(index, value); + onChanged(); + } else { + notOperationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNotOperations( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + builderForValue) { + if (notOperationsBuilder_ == null) { + ensureNotOperationsIsMutable(); + notOperations_.add(builderForValue.build()); + onChanged(); + } else { + notOperationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNotOperations( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + builderForValue) { + if (notOperationsBuilder_ == null) { + ensureNotOperationsIsMutable(); + notOperations_.add(index, builderForValue.build()); + onChanged(); + } else { + notOperationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNotOperations( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperation> + values) { + if (notOperationsBuilder_ == null) { + ensureNotOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notOperations_); + onChanged(); + } else { + notOperationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNotOperations() { + if (notOperationsBuilder_ == null) { + notOperations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + notOperationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNotOperations(int index) { + if (notOperationsBuilder_ == null) { + ensureNotOperationsIsMutable(); + notOperations_.remove(index); + onChanged(); + } else { + notOperationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + getNotOperationsBuilder(int index) { + return internalGetNotOperationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder + getNotOperationsOrBuilder(int index) { + if (notOperationsBuilder_ == null) { + return notOperations_.get(index); + } else { + return notOperationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + getNotOperationsOrBuilderList() { + if (notOperationsBuilder_ != null) { + return notOperationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notOperations_); + } + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + addNotOperationsBuilder() { + return internalGetNotOperationsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.Builder + addNotOperationsBuilder(int index) { + return internalGetNotOperationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +         * Optional. Describes the negated properties of the targets of a request.
                                                                                              +         * Matches requests for operations that do not match the criteria
                                                                                              +         * specified in this field. At least one of operations or notOperations
                                                                                              +         * must be specified.
                                                                                              +         * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation not_operations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder> + getNotOperationsBuilderList() { + return internalGetNotOperationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder> + internalGetNotOperationsFieldBuilder() { + if (notOperationsBuilder_ == null) { + notOperationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .RequestOperationOrBuilder>( + notOperations_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + notOperations_ = null; + } + return notOperationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public To 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.networksecurity.v1.AuthzPolicy.AuthzRule.To + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FROM_FIELD_NUMBER = 1; + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from_; + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a source of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the from field is set. + */ + @java.lang.Override + public boolean hasFrom() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a source of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The from. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From getFrom() { + return from_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.getDefaultInstance() + : from_; + } + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a source of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.FromOrBuilder + getFromOrBuilder() { + return from_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.getDefaultInstance() + : from_; + } + + public static final int TO_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to_; + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a target of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the to field is set. + */ + @java.lang.Override + public boolean hasTo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a target of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The to. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To getTo() { + return to_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.getDefaultInstance() + : to_; + } + + /** + * + * + *
                                                                                              +     * Optional. Describes properties of a target of a request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.ToOrBuilder getToOrBuilder() { + return to_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.getDefaultInstance() + : to_; + } + + public static final int WHEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object when_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +     * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +     * and to. Refer to the CEL language reference for a list of available
                                                                                              +     * attributes.
                                                                                              +     * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The when. + */ + @java.lang.Override + public java.lang.String getWhen() { + java.lang.Object ref = when_; + 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(); + when_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +     * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +     * and to. Refer to the CEL language reference for a list of available
                                                                                              +     * attributes.
                                                                                              +     * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for when. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWhenBytes() { + java.lang.Object ref = when_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + when_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFrom()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(when_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, when_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFrom()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(when_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, when_); + } + 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.networksecurity.v1.AuthzPolicy.AuthzRule)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule) obj; + + if (hasFrom() != other.hasFrom()) return false; + if (hasFrom()) { + if (!getFrom().equals(other.getFrom())) return false; + } + if (hasTo() != other.hasTo()) return false; + if (hasTo()) { + if (!getTo().equals(other.getTo())) return false; + } + if (!getWhen().equals(other.getWhen())) 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 (hasFrom()) { + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + } + if (hasTo()) { + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + } + hash = (37 * hash) + WHEN_FIELD_NUMBER; + hash = (53 * hash) + getWhen().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule 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.networksecurity.v1.AuthzPolicy.AuthzRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule 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.networksecurity.v1.AuthzPolicy.AuthzRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.AuthzRule 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * Conditions to match against the incoming request.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule) + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFromFieldBuilder(); + internalGetToFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + from_ = null; + if (fromBuilder_ != null) { + fromBuilder_.dispose(); + fromBuilder_ = null; + } + to_ = null; + if (toBuilder_ != null) { + toBuilder_.dispose(); + toBuilder_ = null; + } + when_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.from_ = fromBuilder_ == null ? from_ : fromBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.to_ = toBuilder_ == null ? to_ : toBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.when_ = when_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule) { + return mergeFrom((com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule other) { + if (other == com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.getDefaultInstance()) + return this; + if (other.hasFrom()) { + mergeFrom(other.getFrom()); + } + if (other.hasTo()) { + mergeTo(other.getTo()); + } + if (!other.getWhen().isEmpty()) { + when_ = other.when_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage(internalGetFromFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetToFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + when_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.FromOrBuilder> + fromBuilder_; + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the from field is set. + */ + public boolean hasFrom() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The from. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From getFrom() { + if (fromBuilder_ == null) { + return from_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.getDefaultInstance() + : from_; + } else { + return fromBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFrom(com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From value) { + if (fromBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + from_ = value; + } else { + fromBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.Builder builderForValue) { + if (fromBuilder_ == null) { + from_ = builderForValue.build(); + } else { + fromBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From value) { + if (fromBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && from_ != null + && from_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From + .getDefaultInstance()) { + getFromBuilder().mergeFrom(value); + } else { + from_ = value; + } + } else { + fromBuilder_.mergeFrom(value); + } + if (from_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFrom() { + bitField0_ = (bitField0_ & ~0x00000001); + from_ = null; + if (fromBuilder_ != null) { + fromBuilder_.dispose(); + fromBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.Builder + getFromBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetFromFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.FromOrBuilder + getFromOrBuilder() { + if (fromBuilder_ != null) { + return fromBuilder_.getMessageOrBuilder(); + } else { + return from_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.getDefaultInstance() + : from_; + } + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a source of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.FromOrBuilder> + internalGetFromFieldBuilder() { + if (fromBuilder_ == null) { + fromBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.FromOrBuilder>( + getFrom(), getParentForChildren(), isClean()); + from_ = null; + } + return fromBuilder_; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.ToOrBuilder> + toBuilder_; + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the to field is set. + */ + public boolean hasTo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The to. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To getTo() { + if (toBuilder_ == null) { + return to_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.getDefaultInstance() + : to_; + } else { + return toBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTo(com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To value) { + if (toBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + to_ = value; + } else { + toBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTo( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.Builder builderForValue) { + if (toBuilder_ == null) { + to_ = builderForValue.build(); + } else { + toBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTo(com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To value) { + if (toBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && to_ != null + && to_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To + .getDefaultInstance()) { + getToBuilder().mergeFrom(value); + } else { + to_ = value; + } + } else { + toBuilder_.mergeFrom(value); + } + if (to_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTo() { + bitField0_ = (bitField0_ & ~0x00000002); + to_ = null; + if (toBuilder_ != null) { + toBuilder_.dispose(); + toBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.Builder getToBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetToFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.ToOrBuilder + getToOrBuilder() { + if (toBuilder_ != null) { + return toBuilder_.getMessageOrBuilder(); + } else { + return to_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.getDefaultInstance() + : to_; + } + } + + /** + * + * + *
                                                                                              +       * Optional. Describes properties of a target of a request.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.ToOrBuilder> + internalGetToFieldBuilder() { + if (toBuilder_ == null) { + toBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.ToOrBuilder>( + getTo(), getParentForChildren(), isClean()); + to_ = null; + } + return toBuilder_; + } + + private java.lang.Object when_ = ""; + + /** + * + * + *
                                                                                              +       * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +       * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +       * and to. Refer to the CEL language reference for a list of available
                                                                                              +       * attributes.
                                                                                              +       * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The when. + */ + public java.lang.String getWhen() { + java.lang.Object ref = when_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + when_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +       * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +       * and to. Refer to the CEL language reference for a list of available
                                                                                              +       * attributes.
                                                                                              +       * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for when. + */ + public com.google.protobuf.ByteString getWhenBytes() { + java.lang.Object ref = when_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + when_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +       * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +       * and to. Refer to the CEL language reference for a list of available
                                                                                              +       * attributes.
                                                                                              +       * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The when to set. + * @return This builder for chaining. + */ + public Builder setWhen(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + when_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +       * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +       * and to. Refer to the CEL language reference for a list of available
                                                                                              +       * attributes.
                                                                                              +       * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWhen() { + when_ = getDefaultInstance().getWhen(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. CEL expression that describes the conditions to be satisfied
                                                                                              +       * for the action. The result of the CEL expression is ANDed with the from
                                                                                              +       * and to. Refer to the CEL language reference for a list of available
                                                                                              +       * attributes.
                                                                                              +       * 
                                                                                              + * + * string when = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for when to set. + * @return This builder for chaining. + */ + public Builder setWhenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + when_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthzRule 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.networksecurity.v1.AuthzPolicy.AuthzRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomProviderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +     * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +     * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +     * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +     * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +     * both places.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudIap field is set. + */ + boolean hasCloudIap(); + + /** + * + * + *
                                                                                              +     * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +     * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +     * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +     * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +     * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +     * both places.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudIap. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap getCloudIap(); + + /** + * + * + *
                                                                                              +     * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +     * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +     * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +     * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +     * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +     * both places.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIapOrBuilder + getCloudIapOrBuilder(); + + /** + * + * + *
                                                                                              +     * Optional. Delegate authorization decision to user authored Service
                                                                                              +     * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authzExtension field is set. + */ + boolean hasAuthzExtension(); + + /** + * + * + *
                                                                                              +     * Optional. Delegate authorization decision to user authored Service
                                                                                              +     * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authzExtension. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + getAuthzExtension(); + + /** + * + * + *
                                                                                              +     * Optional. Delegate authorization decision to user authored Service
                                                                                              +     * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtensionOrBuilder + getAuthzExtensionOrBuilder(); + } + + /** + * + * + *
                                                                                              +   * Allows delegating authorization decisions to Cloud IAP or to
                                                                                              +   * Service Extensions.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider} + */ + public static final class CustomProvider extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider) + CustomProviderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomProvider"); + } + + // Use CustomProvider.newBuilder() to construct. + private CustomProvider(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomProvider() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.Builder.class); + } + + public interface CloudIapOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
                                                                                              +     * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +     * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +     * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +     * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +     * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +     * both places.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap} + */ + public static final class CloudIap extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap) + CloudIapOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudIap"); + } + + // Use CloudIap.newBuilder() to construct. + private CloudIap(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudIap() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.Builder + .class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + 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.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + 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.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap) + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + .getDefaultInstance()) return this; + 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; + 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudIap 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.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AuthzExtensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * Required. A list of references to authorization
                                                                                              +       * extensions that will be invoked for requests matching this policy.
                                                                                              +       * Limited to 1 custom provider.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the resources. + */ + java.util.List getResourcesList(); + + /** + * + * + *
                                                                                              +       * Required. A list of references to authorization
                                                                                              +       * extensions that will be invoked for requests matching this policy.
                                                                                              +       * Limited to 1 custom provider.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of resources. + */ + int getResourcesCount(); + + /** + * + * + *
                                                                                              +       * Required. A list of references to authorization
                                                                                              +       * extensions that will be invoked for requests matching this policy.
                                                                                              +       * Limited to 1 custom provider.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The resources at the given index. + */ + java.lang.String getResources(int index); + + /** + * + * + *
                                                                                              +       * Required. A list of references to authorization
                                                                                              +       * extensions that will be invoked for requests matching this policy.
                                                                                              +       * Limited to 1 custom provider.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the resources at the given index. + */ + com.google.protobuf.ByteString getResourcesBytes(int index); + } + + /** + * + * + *
                                                                                              +     * Optional. Delegate authorization decision to user authored extension.
                                                                                              +     * Only one of cloudIap or authzExtension can be specified.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension} + */ + public static final class AuthzExtension extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension) + AuthzExtensionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthzExtension"); + } + + // Use AuthzExtension.newBuilder() to construct. + private AuthzExtension(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthzExtension() { + resources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .Builder.class); + } + + public static final int RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList resources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +       * Required. A list of references to authorization
                                                                                              +       * extensions that will be invoked for requests matching this policy.
                                                                                              +       * Limited to 1 custom provider.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the resources. + */ + public com.google.protobuf.ProtocolStringList getResourcesList() { + return resources_; + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to authorization
                                                                                              +       * extensions that will be invoked for requests matching this policy.
                                                                                              +       * Limited to 1 custom provider.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of resources. + */ + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to authorization
                                                                                              +       * extensions that will be invoked for requests matching this policy.
                                                                                              +       * Limited to 1 custom provider.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The resources at the given index. + */ + public java.lang.String getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
                                                                                              +       * Required. A list of references to authorization
                                                                                              +       * extensions that will be invoked for requests matching this policy.
                                                                                              +       * Limited to 1 custom provider.
                                                                                              +       * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the resources at the given index. + */ + public com.google.protobuf.ByteString getResourcesBytes(int index) { + return resources_.getByteString(index); + } + + 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 < resources_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resources_.getRaw(i)); + } + 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 < resources_.size(); i++) { + dataSize += computeStringSizeNoTag(resources_.getRaw(i)); + } + size += dataSize; + size += 1 * getResourcesList().size(); + } + 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.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension) obj; + + if (!getResourcesList().equals(other.getResourcesList())) 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 (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + 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.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + 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.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored extension.
                                                                                              +       * Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension) + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .class, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + resources_.makeImmutable(); + result.resources_ = resources_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .getDefaultInstance()) return this; + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ |= 0x00000001; + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + 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(); + ensureResourcesIsMutable(); + resources_.add(s); + 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 bitField0_; + + private com.google.protobuf.LazyStringArrayList resources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureResourcesIsMutable() { + if (!resources_.isModifiable()) { + resources_ = new com.google.protobuf.LazyStringArrayList(resources_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the resources. + */ + public com.google.protobuf.ProtocolStringList getResourcesList() { + resources_.makeImmutable(); + return resources_; + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of resources. + */ + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The resources at the given index. + */ + public java.lang.String getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the resources at the given index. + */ + public com.google.protobuf.ByteString getResourcesBytes(int index) { + return resources_.getByteString(index); + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The resources to set. + * @return This builder for chaining. + */ + public Builder setResources(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resources to add. + * @return This builder for chaining. + */ + public Builder addResources(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The resources to add. + * @return This builder for chaining. + */ + public Builder addAllResources(java.lang.Iterable values) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResources() { + resources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. A list of references to authorization
                                                                                              +         * extensions that will be invoked for requests matching this policy.
                                                                                              +         * Limited to 1 custom provider.
                                                                                              +         * 
                                                                                              + * + * repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the resources to add. + * @return This builder for chaining. + */ + public Builder addResourcesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResourcesIsMutable(); + resources_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider + .AuthzExtension + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthzExtension 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.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CLOUD_IAP_FIELD_NUMBER = 1; + private com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloudIap_; + + /** + * + * + *
                                                                                              +     * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +     * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +     * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +     * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +     * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +     * both places.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudIap field is set. + */ + @java.lang.Override + public boolean hasCloudIap() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +     * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +     * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +     * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +     * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +     * both places.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudIap. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap getCloudIap() { + return cloudIap_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + .getDefaultInstance() + : cloudIap_; + } + + /** + * + * + *
                                                                                              +     * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +     * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +     * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +     * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +     * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +     * both places.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIapOrBuilder + getCloudIapOrBuilder() { + return cloudIap_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + .getDefaultInstance() + : cloudIap_; + } + + public static final int AUTHZ_EXTENSION_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + authzExtension_; + + /** + * + * + *
                                                                                              +     * Optional. Delegate authorization decision to user authored Service
                                                                                              +     * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authzExtension field is set. + */ + @java.lang.Override + public boolean hasAuthzExtension() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Delegate authorization decision to user authored Service
                                                                                              +     * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authzExtension. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + getAuthzExtension() { + return authzExtension_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .getDefaultInstance() + : authzExtension_; + } + + /** + * + * + *
                                                                                              +     * Optional. Delegate authorization decision to user authored Service
                                                                                              +     * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtensionOrBuilder + getAuthzExtensionOrBuilder() { + return authzExtension_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .getDefaultInstance() + : authzExtension_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCloudIap()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAuthzExtension()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCloudIap()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthzExtension()); + } + 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.networksecurity.v1.AuthzPolicy.CustomProvider)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider other = + (com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider) obj; + + if (hasCloudIap() != other.hasCloudIap()) return false; + if (hasCloudIap()) { + if (!getCloudIap().equals(other.getCloudIap())) return false; + } + if (hasAuthzExtension() != other.hasAuthzExtension()) return false; + if (hasAuthzExtension()) { + if (!getAuthzExtension().equals(other.getAuthzExtension())) 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 (hasCloudIap()) { + hash = (37 * hash) + CLOUD_IAP_FIELD_NUMBER; + hash = (53 * hash) + getCloudIap().hashCode(); + } + if (hasAuthzExtension()) { + hash = (37 * hash) + AUTHZ_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getAuthzExtension().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider 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.networksecurity.v1.AuthzPolicy.CustomProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider 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.networksecurity.v1.AuthzPolicy.CustomProvider parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy.CustomProvider 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * Allows delegating authorization decisions to Cloud IAP or to
                                                                                              +     * Service Extensions.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider) + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCloudIapFieldBuilder(); + internalGetAuthzExtensionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloudIap_ = null; + if (cloudIapBuilder_ != null) { + cloudIapBuilder_.dispose(); + cloudIapBuilder_ = null; + } + authzExtension_ = null; + if (authzExtensionBuilder_ != null) { + authzExtensionBuilder_.dispose(); + authzExtensionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider build() { + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider result = + new com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloudIap_ = cloudIapBuilder_ == null ? cloudIap_ : cloudIapBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authzExtension_ = + authzExtensionBuilder_ == null ? authzExtension_ : authzExtensionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider) { + return mergeFrom((com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider other) { + if (other + == com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.getDefaultInstance()) + return this; + if (other.hasCloudIap()) { + mergeCloudIap(other.getCloudIap()); + } + if (other.hasAuthzExtension()) { + mergeAuthzExtension(other.getAuthzExtension()); + } + 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( + internalGetCloudIapFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAuthzExtensionFieldBuilder().getBuilder(), extensionRegistry); + 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.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloudIap_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIapOrBuilder> + cloudIapBuilder_; + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudIap field is set. + */ + public boolean hasCloudIap() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudIap. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap getCloudIap() { + if (cloudIapBuilder_ == null) { + return cloudIap_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + .getDefaultInstance() + : cloudIap_; + } else { + return cloudIapBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudIap( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap value) { + if (cloudIapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudIap_ = value; + } else { + cloudIapBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudIap( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.Builder + builderForValue) { + if (cloudIapBuilder_ == null) { + cloudIap_ = builderForValue.build(); + } else { + cloudIapBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudIap( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap value) { + if (cloudIapBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && cloudIap_ != null + && cloudIap_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + .getDefaultInstance()) { + getCloudIapBuilder().mergeFrom(value); + } else { + cloudIap_ = value; + } + } else { + cloudIapBuilder_.mergeFrom(value); + } + if (cloudIap_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudIap() { + bitField0_ = (bitField0_ & ~0x00000001); + cloudIap_ = null; + if (cloudIapBuilder_ != null) { + cloudIapBuilder_.dispose(); + cloudIapBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.Builder + getCloudIapBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCloudIapFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIapOrBuilder + getCloudIapOrBuilder() { + if (cloudIapBuilder_ != null) { + return cloudIapBuilder_.getMessageOrBuilder(); + } else { + return cloudIap_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap + .getDefaultInstance() + : cloudIap_; + } + } + + /** + * + * + *
                                                                                              +       * Optional. Delegates authorization decisions to Cloud IAP. Applicable
                                                                                              +       * only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy
                                                                                              +       * level is not compatible with Cloud IAP settings in the BackendService.
                                                                                              +       * Enabling IAP in both places will result in request failure. Ensure that
                                                                                              +       * IAP is enabled in either the AuthzPolicy or the BackendService but not in
                                                                                              +       * both places.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap cloud_iap = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIapOrBuilder> + internalGetCloudIapFieldBuilder() { + if (cloudIapBuilder_ == null) { + cloudIapBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIap.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.CloudIapOrBuilder>( + getCloudIap(), getParentForChildren(), isClean()); + cloudIap_ = null; + } + return cloudIapBuilder_; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + authzExtension_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider + .AuthzExtensionOrBuilder> + authzExtensionBuilder_; + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authzExtension field is set. + */ + public boolean hasAuthzExtension() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authzExtension. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + getAuthzExtension() { + if (authzExtensionBuilder_ == null) { + return authzExtension_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .getDefaultInstance() + : authzExtension_; + } else { + return authzExtensionBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthzExtension( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension value) { + if (authzExtensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authzExtension_ = value; + } else { + authzExtensionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthzExtension( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension.Builder + builderForValue) { + if (authzExtensionBuilder_ == null) { + authzExtension_ = builderForValue.build(); + } else { + authzExtensionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuthzExtension( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension value) { + if (authzExtensionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && authzExtension_ != null + && authzExtension_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .getDefaultInstance()) { + getAuthzExtensionBuilder().mergeFrom(value); + } else { + authzExtension_ = value; + } + } else { + authzExtensionBuilder_.mergeFrom(value); + } + if (authzExtension_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuthzExtension() { + bitField0_ = (bitField0_ & ~0x00000002); + authzExtension_ = null; + if (authzExtensionBuilder_ != null) { + authzExtensionBuilder_.dispose(); + authzExtensionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension.Builder + getAuthzExtensionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAuthzExtensionFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtensionOrBuilder + getAuthzExtensionOrBuilder() { + if (authzExtensionBuilder_ != null) { + return authzExtensionBuilder_.getMessageOrBuilder(); + } else { + return authzExtension_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .getDefaultInstance() + : authzExtension_; + } + } + + /** + * + * + *
                                                                                              +       * Optional. Delegate authorization decision to user authored Service
                                                                                              +       * Extension. Only one of cloudIap or authzExtension can be specified.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension authz_extension = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider + .AuthzExtensionOrBuilder> + internalGetAuthzExtensionFieldBuilder() { + if (authzExtensionBuilder_ == null) { + authzExtensionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.AuthzExtension + .Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider + .AuthzExtensionOrBuilder>( + getAuthzExtension(), getParentForChildren(), isClean()); + authzExtension_ = null; + } + return authzExtensionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomProvider 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.networksecurity.v1.AuthzPolicy.CustomProvider + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +   * format:
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +   * format:
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A human-readable description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A human-readable description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TARGET_FIELD_NUMBER = 6; + private com.google.cloud.networksecurity.v1.AuthzPolicy.Target target_; + + /** + * + * + *
                                                                                              +   * Required. Specifies the set of resources to which this policy should be
                                                                                              +   * applied to.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the target field is set. + */ + @java.lang.Override + public boolean hasTarget() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Specifies the set of resources to which this policy should be
                                                                                              +   * applied to.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The target. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.Target getTarget() { + return target_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.Target.getDefaultInstance() + : target_; + } + + /** + * + * + *
                                                                                              +   * Required. Specifies the set of resources to which this policy should be
                                                                                              +   * applied to.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.TargetOrBuilder getTargetOrBuilder() { + return target_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.Target.getDefaultInstance() + : target_; + } + + public static final int HTTP_RULES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List httpRules_; + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getHttpRulesList() { + return httpRules_; + } + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder> + getHttpRulesOrBuilderList() { + return httpRules_; + } + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getHttpRulesCount() { + return httpRules_.size(); + } + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule getHttpRules(int index) { + return httpRules_.get(index); + } + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder getHttpRulesOrBuilder( + int index) { + return httpRules_.get(index); + } + + public static final int ACTION_FIELD_NUMBER = 8; + private int action_ = 0; + + /** + * + * + *
                                                                                              +   * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +   *
                                                                                              +   * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +   *
                                                                                              +   * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +   * be allowed.
                                                                                              +   *
                                                                                              +   * When the action is `DENY`, only requests matching the policy will be
                                                                                              +   * denied.
                                                                                              +   *
                                                                                              +   * When a request arrives, the policies are evaluated in the following order:
                                                                                              +   *
                                                                                              +   * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +   * policy is evaluated using the custom authorization providers and the
                                                                                              +   * request is denied if the provider rejects the request.
                                                                                              +   *
                                                                                              +   * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +   * is denied.
                                                                                              +   *
                                                                                              +   * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +   * `ALLOW` policies match the request, the request is allowed.
                                                                                              +   *
                                                                                              +   * 4. Else the request is denied by default if none of the configured
                                                                                              +   * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                                                                              +   * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +   *
                                                                                              +   * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +   *
                                                                                              +   * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +   * be allowed.
                                                                                              +   *
                                                                                              +   * When the action is `DENY`, only requests matching the policy will be
                                                                                              +   * denied.
                                                                                              +   *
                                                                                              +   * When a request arrives, the policies are evaluated in the following order:
                                                                                              +   *
                                                                                              +   * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +   * policy is evaluated using the custom authorization providers and the
                                                                                              +   * request is denied if the provider rejects the request.
                                                                                              +   *
                                                                                              +   * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +   * is denied.
                                                                                              +   *
                                                                                              +   * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +   * `ALLOW` policies match the request, the request is allowed.
                                                                                              +   *
                                                                                              +   * 4. Else the request is denied by default if none of the configured
                                                                                              +   * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction getAction() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction result = + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction.forNumber(action_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction.UNRECOGNIZED + : result; + } + + public static final int CUSTOM_PROVIDER_FIELD_NUMBER = 10; + private com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider customProvider_; + + /** + * + * + *
                                                                                              +   * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +   * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +   * `cloudIap` or `authzExtension` must be specified.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customProvider field is set. + */ + @java.lang.Override + public boolean hasCustomProvider() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +   * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +   * `cloudIap` or `authzExtension` must be specified.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customProvider. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider getCustomProvider() { + return customProvider_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.getDefaultInstance() + : customProvider_; + } + + /** + * + * + *
                                                                                              +   * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +   * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +   * `cloudIap` or `authzExtension` must be specified.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProviderOrBuilder + getCustomProviderOrBuilder() { + return customProvider_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.getDefaultInstance() + : customProvider_; + } + + public static final int POLICY_PROFILE_FIELD_NUMBER = 11; + private int policyProfile_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +   * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +   * once AuthzPolicy is created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for policyProfile. + */ + @java.lang.Override + public int getPolicyProfileValue() { + return policyProfile_; + } + + /** + * + * + *
                                                                                              +   * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +   * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +   * once AuthzPolicy is created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The policyProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile getPolicyProfile() { + com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile result = + com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile.forNumber(policyProfile_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getTarget()); + } + for (int i = 0; i < httpRules_.size(); i++) { + output.writeMessage(7, httpRules_.get(i)); + } + if (action_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction.AUTHZ_ACTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, action_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getCustomProvider()); + } + if (policyProfile_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile.POLICY_PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, policyProfile_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTarget()); + } + for (int i = 0; i < httpRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, httpRules_.get(i)); + } + if (action_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction.AUTHZ_ACTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, action_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCustomProvider()); + } + if (policyProfile_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile.POLICY_PROFILE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, policyProfile_); + } + 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.networksecurity.v1.AuthzPolicy)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AuthzPolicy other = + (com.google.cloud.networksecurity.v1.AuthzPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasTarget() != other.hasTarget()) return false; + if (hasTarget()) { + if (!getTarget().equals(other.getTarget())) return false; + } + if (!getHttpRulesList().equals(other.getHttpRulesList())) return false; + if (action_ != other.action_) return false; + if (hasCustomProvider() != other.hasCustomProvider()) return false; + if (hasCustomProvider()) { + if (!getCustomProvider().equals(other.getCustomProvider())) return false; + } + if (policyProfile_ != other.policyProfile_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasTarget()) { + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + } + if (getHttpRulesCount() > 0) { + hash = (37 * hash) + HTTP_RULES_FIELD_NUMBER; + hash = (53 * hash) + getHttpRulesList().hashCode(); + } + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + if (hasCustomProvider()) { + hash = (37 * hash) + CUSTOM_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getCustomProvider().hashCode(); + } + hash = (37 * hash) + POLICY_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + policyProfile_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy 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.networksecurity.v1.AuthzPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy 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.networksecurity.v1.AuthzPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.AuthzPolicy 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * `AuthzPolicy` is a resource that allows to forward traffic to a
                                                                                              +   * callout backend designed to scan the traffic for security purposes.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.AuthzPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AuthzPolicy) + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AuthzPolicy.class, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.AuthzPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetTargetFieldBuilder(); + internalGetHttpRulesFieldBuilder(); + internalGetCustomProviderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + description_ = ""; + internalGetMutableLabels().clear(); + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); + targetBuilder_ = null; + } + if (httpRulesBuilder_ == null) { + httpRules_ = java.util.Collections.emptyList(); + } else { + httpRules_ = null; + httpRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + action_ = 0; + customProvider_ = null; + if (customProviderBuilder_ != null) { + customProviderBuilder_.dispose(); + customProviderBuilder_ = null; + } + policyProfile_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy build() { + com.google.cloud.networksecurity.v1.AuthzPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy buildPartial() { + com.google.cloud.networksecurity.v1.AuthzPolicy result = + new com.google.cloud.networksecurity.v1.AuthzPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AuthzPolicy result) { + if (httpRulesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + httpRules_ = java.util.Collections.unmodifiableList(httpRules_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.httpRules_ = httpRules_; + } else { + result.httpRules_ = httpRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.AuthzPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customProvider_ = + customProviderBuilder_ == null ? customProvider_ : customProviderBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.policyProfile_ = policyProfile_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.AuthzPolicy) { + return mergeFrom((com.google.cloud.networksecurity.v1.AuthzPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.AuthzPolicy other) { + if (other == com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (other.hasTarget()) { + mergeTarget(other.getTarget()); + } + if (httpRulesBuilder_ == null) { + if (!other.httpRules_.isEmpty()) { + if (httpRules_.isEmpty()) { + httpRules_ = other.httpRules_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureHttpRulesIsMutable(); + httpRules_.addAll(other.httpRules_); + } + onChanged(); + } + } else { + if (!other.httpRules_.isEmpty()) { + if (httpRulesBuilder_.isEmpty()) { + httpRulesBuilder_.dispose(); + httpRulesBuilder_ = null; + httpRules_ = other.httpRules_; + bitField0_ = (bitField0_ & ~0x00000040); + httpRulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetHttpRulesFieldBuilder() + : null; + } else { + httpRulesBuilder_.addAllMessages(other.httpRules_); + } + } + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasCustomProvider()) { + mergeCustomProvider(other.getCustomProvider()); + } + if (other.policyProfile_ != 0) { + setPolicyProfileValue(other.getPolicyProfileValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetTargetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.parser(), + extensionRegistry); + if (httpRulesBuilder_ == null) { + ensureHttpRulesIsMutable(); + httpRules_.add(m); + } else { + httpRulesBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 82: + { + input.readMessage( + internalGetCustomProviderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 88: + { + policyProfile_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 88 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +     * format:
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +     * format:
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +     * format:
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +     * format:
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +     * format:
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A human-readable description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A human-readable description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A human-readable description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A human-readable description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A human-readable description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +     *
                                                                                              +     * The format must comply with [the following
                                                                                              +     * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +     *
                                                                                              +     * The format must comply with [the following
                                                                                              +     * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +     *
                                                                                              +     * The format must comply with [the following
                                                                                              +     * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +     *
                                                                                              +     * The format must comply with [the following
                                                                                              +     * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +     *
                                                                                              +     * The format must comply with [the following
                                                                                              +     * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +     *
                                                                                              +     * The format must comply with [the following
                                                                                              +     * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +     *
                                                                                              +     * The format must comply with [the following
                                                                                              +     * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy.Target target_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.Target, + com.google.cloud.networksecurity.v1.AuthzPolicy.Target.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.TargetOrBuilder> + targetBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the target field is set. + */ + public boolean hasTarget() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The target. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.Target getTarget() { + if (targetBuilder_ == null) { + return target_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.Target.getDefaultInstance() + : target_; + } else { + return targetBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTarget(com.google.cloud.networksecurity.v1.AuthzPolicy.Target value) { + if (targetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + } else { + targetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTarget( + com.google.cloud.networksecurity.v1.AuthzPolicy.Target.Builder builderForValue) { + if (targetBuilder_ == null) { + target_ = builderForValue.build(); + } else { + targetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTarget(com.google.cloud.networksecurity.v1.AuthzPolicy.Target value) { + if (targetBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && target_ != null + && target_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.Target.getDefaultInstance()) { + getTargetBuilder().mergeFrom(value); + } else { + target_ = value; + } + } else { + targetBuilder_.mergeFrom(value); + } + if (target_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTarget() { + bitField0_ = (bitField0_ & ~0x00000020); + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); + targetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.Target.Builder getTargetBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetTargetFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.TargetOrBuilder getTargetOrBuilder() { + if (targetBuilder_ != null) { + return targetBuilder_.getMessageOrBuilder(); + } else { + return target_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.Target.getDefaultInstance() + : target_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Specifies the set of resources to which this policy should be
                                                                                              +     * applied to.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.Target, + com.google.cloud.networksecurity.v1.AuthzPolicy.Target.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.TargetOrBuilder> + internalGetTargetFieldBuilder() { + if (targetBuilder_ == null) { + targetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.Target, + com.google.cloud.networksecurity.v1.AuthzPolicy.Target.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.TargetOrBuilder>( + getTarget(), getParentForChildren(), isClean()); + target_ = null; + } + return targetBuilder_; + } + + private java.util.List httpRules_ = + java.util.Collections.emptyList(); + + private void ensureHttpRulesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + httpRules_ = + new java.util.ArrayList( + httpRules_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder> + httpRulesBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getHttpRulesList() { + if (httpRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(httpRules_); + } else { + return httpRulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getHttpRulesCount() { + if (httpRulesBuilder_ == null) { + return httpRules_.size(); + } else { + return httpRulesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule getHttpRules(int index) { + if (httpRulesBuilder_ == null) { + return httpRules_.get(index); + } else { + return httpRulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHttpRules( + int index, com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule value) { + if (httpRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHttpRulesIsMutable(); + httpRules_.set(index, value); + onChanged(); + } else { + httpRulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHttpRules( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder builderForValue) { + if (httpRulesBuilder_ == null) { + ensureHttpRulesIsMutable(); + httpRules_.set(index, builderForValue.build()); + onChanged(); + } else { + httpRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHttpRules(com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule value) { + if (httpRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHttpRulesIsMutable(); + httpRules_.add(value); + onChanged(); + } else { + httpRulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHttpRules( + int index, com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule value) { + if (httpRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHttpRulesIsMutable(); + httpRules_.add(index, value); + onChanged(); + } else { + httpRulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHttpRules( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder builderForValue) { + if (httpRulesBuilder_ == null) { + ensureHttpRulesIsMutable(); + httpRules_.add(builderForValue.build()); + onChanged(); + } else { + httpRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHttpRules( + int index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder builderForValue) { + if (httpRulesBuilder_ == null) { + ensureHttpRulesIsMutable(); + httpRules_.add(index, builderForValue.build()); + onChanged(); + } else { + httpRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllHttpRules( + java.lang.Iterable + values) { + if (httpRulesBuilder_ == null) { + ensureHttpRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, httpRules_); + onChanged(); + } else { + httpRulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHttpRules() { + if (httpRulesBuilder_ == null) { + httpRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + httpRulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeHttpRules(int index) { + if (httpRulesBuilder_ == null) { + ensureHttpRulesIsMutable(); + httpRules_.remove(index); + onChanged(); + } else { + httpRulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder getHttpRulesBuilder( + int index) { + return internalGetHttpRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder getHttpRulesOrBuilder( + int index) { + if (httpRulesBuilder_ == null) { + return httpRules_.get(index); + } else { + return httpRulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder> + getHttpRulesOrBuilderList() { + if (httpRulesBuilder_ != null) { + return httpRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(httpRules_); + } + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder addHttpRulesBuilder() { + return internalGetHttpRulesFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder addHttpRulesBuilder( + int index) { + return internalGetHttpRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +     * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +     * request or when no HTTP rules are specified in the policy.
                                                                                              +     * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +     * to 5 rules.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getHttpRulesBuilderList() { + return internalGetHttpRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder> + internalGetHttpRulesFieldBuilder() { + if (httpRulesBuilder_ == null) { + httpRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder>( + httpRules_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + httpRules_ = null; + } + return httpRulesBuilder_; + } + + private int action_ = 0; + + /** + * + * + *
                                                                                              +     * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +     *
                                                                                              +     * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +     *
                                                                                              +     * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +     * be allowed.
                                                                                              +     *
                                                                                              +     * When the action is `DENY`, only requests matching the policy will be
                                                                                              +     * denied.
                                                                                              +     *
                                                                                              +     * When a request arrives, the policies are evaluated in the following order:
                                                                                              +     *
                                                                                              +     * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +     * policy is evaluated using the custom authorization providers and the
                                                                                              +     * request is denied if the provider rejects the request.
                                                                                              +     *
                                                                                              +     * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +     * is denied.
                                                                                              +     *
                                                                                              +     * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +     * `ALLOW` policies match the request, the request is allowed.
                                                                                              +     *
                                                                                              +     * 4. Else the request is denied by default if none of the configured
                                                                                              +     * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                                                                              +     * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +     *
                                                                                              +     * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +     *
                                                                                              +     * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +     * be allowed.
                                                                                              +     *
                                                                                              +     * When the action is `DENY`, only requests matching the policy will be
                                                                                              +     * denied.
                                                                                              +     *
                                                                                              +     * When a request arrives, the policies are evaluated in the following order:
                                                                                              +     *
                                                                                              +     * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +     * policy is evaluated using the custom authorization providers and the
                                                                                              +     * request is denied if the provider rejects the request.
                                                                                              +     *
                                                                                              +     * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +     * is denied.
                                                                                              +     *
                                                                                              +     * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +     * `ALLOW` policies match the request, the request is allowed.
                                                                                              +     *
                                                                                              +     * 4. Else the request is denied by default if none of the configured
                                                                                              +     * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +     *
                                                                                              +     * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +     *
                                                                                              +     * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +     * be allowed.
                                                                                              +     *
                                                                                              +     * When the action is `DENY`, only requests matching the policy will be
                                                                                              +     * denied.
                                                                                              +     *
                                                                                              +     * When a request arrives, the policies are evaluated in the following order:
                                                                                              +     *
                                                                                              +     * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +     * policy is evaluated using the custom authorization providers and the
                                                                                              +     * request is denied if the provider rejects the request.
                                                                                              +     *
                                                                                              +     * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +     * is denied.
                                                                                              +     *
                                                                                              +     * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +     * `ALLOW` policies match the request, the request is allowed.
                                                                                              +     *
                                                                                              +     * 4. Else the request is denied by default if none of the configured
                                                                                              +     * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction getAction() { + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction result = + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction.forNumber(action_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +     *
                                                                                              +     * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +     *
                                                                                              +     * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +     * be allowed.
                                                                                              +     *
                                                                                              +     * When the action is `DENY`, only requests matching the policy will be
                                                                                              +     * denied.
                                                                                              +     *
                                                                                              +     * When a request arrives, the policies are evaluated in the following order:
                                                                                              +     *
                                                                                              +     * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +     * policy is evaluated using the custom authorization providers and the
                                                                                              +     * request is denied if the provider rejects the request.
                                                                                              +     *
                                                                                              +     * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +     * is denied.
                                                                                              +     *
                                                                                              +     * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +     * `ALLOW` policies match the request, the request is allowed.
                                                                                              +     *
                                                                                              +     * 4. Else the request is denied by default if none of the configured
                                                                                              +     * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + action_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +     *
                                                                                              +     * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +     *
                                                                                              +     * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +     * be allowed.
                                                                                              +     *
                                                                                              +     * When the action is `DENY`, only requests matching the policy will be
                                                                                              +     * denied.
                                                                                              +     *
                                                                                              +     * When a request arrives, the policies are evaluated in the following order:
                                                                                              +     *
                                                                                              +     * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +     * policy is evaluated using the custom authorization providers and the
                                                                                              +     * request is denied if the provider rejects the request.
                                                                                              +     *
                                                                                              +     * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +     * is denied.
                                                                                              +     *
                                                                                              +     * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +     * `ALLOW` policies match the request, the request is allowed.
                                                                                              +     *
                                                                                              +     * 4. Else the request is denied by default if none of the configured
                                                                                              +     * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000080); + action_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider customProvider_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProviderOrBuilder> + customProviderBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customProvider field is set. + */ + public boolean hasCustomProvider() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customProvider. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider getCustomProvider() { + if (customProviderBuilder_ == null) { + return customProvider_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.getDefaultInstance() + : customProvider_; + } else { + return customProviderBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomProvider( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider value) { + if (customProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customProvider_ = value; + } else { + customProviderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomProvider( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.Builder builderForValue) { + if (customProviderBuilder_ == null) { + customProvider_ = builderForValue.build(); + } else { + customProviderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomProvider( + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider value) { + if (customProviderBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && customProvider_ != null + && customProvider_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider + .getDefaultInstance()) { + getCustomProviderBuilder().mergeFrom(value); + } else { + customProvider_ = value; + } + } else { + customProviderBuilder_.mergeFrom(value); + } + if (customProvider_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomProvider() { + bitField0_ = (bitField0_ & ~0x00000100); + customProvider_ = null; + if (customProviderBuilder_ != null) { + customProviderBuilder_.dispose(); + customProviderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.Builder + getCustomProviderBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetCustomProviderFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProviderOrBuilder + getCustomProviderOrBuilder() { + if (customProviderBuilder_ != null) { + return customProviderBuilder_.getMessageOrBuilder(); + } else { + return customProvider_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.getDefaultInstance() + : customProvider_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +     * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +     * `cloudIap` or `authzExtension` must be specified.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProviderOrBuilder> + internalGetCustomProviderFieldBuilder() { + if (customProviderBuilder_ == null) { + customProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProviderOrBuilder>( + getCustomProvider(), getParentForChildren(), isClean()); + customProvider_ = null; + } + return customProviderBuilder_; + } + + private int policyProfile_ = 0; + + /** + * + * + *
                                                                                              +     * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +     * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +     * once AuthzPolicy is created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for policyProfile. + */ + @java.lang.Override + public int getPolicyProfileValue() { + return policyProfile_; + } + + /** + * + * + *
                                                                                              +     * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +     * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +     * once AuthzPolicy is created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for policyProfile to set. + * @return This builder for chaining. + */ + public Builder setPolicyProfileValue(int value) { + policyProfile_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +     * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +     * once AuthzPolicy is created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The policyProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile getPolicyProfile() { + com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile result = + com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile.forNumber(policyProfile_); + return result == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +     * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +     * once AuthzPolicy is created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The policyProfile to set. + * @return This builder for chaining. + */ + public Builder setPolicyProfile( + com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + policyProfile_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +     * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +     * once AuthzPolicy is created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicyProfile() { + bitField0_ = (bitField0_ & ~0x00000200); + policyProfile_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AuthzPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AuthzPolicy) + private static final com.google.cloud.networksecurity.v1.AuthzPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AuthzPolicy(); + } + + public static com.google.cloud.networksecurity.v1.AuthzPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthzPolicy 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.networksecurity.v1.AuthzPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyName.java new file mode 100644 index 000000000000..e53d0934cf2f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AuthzPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTHZ_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/authzPolicies/{authz_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String authzPolicy; + + @Deprecated + protected AuthzPolicyName() { + project = null; + location = null; + authzPolicy = null; + } + + private AuthzPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + authzPolicy = Preconditions.checkNotNull(builder.getAuthzPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthzPolicy() { + return authzPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AuthzPolicyName of(String project, String location, String authzPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthzPolicy(authzPolicy) + .build(); + } + + public static String format(String project, String location, String authzPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthzPolicy(authzPolicy) + .build() + .toString(); + } + + public static AuthzPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTHZ_POLICY.validatedMatch( + formattedString, "AuthzPolicyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("authz_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AuthzPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTHZ_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (authzPolicy != null) { + fieldMapBuilder.put("authz_policy", authzPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTHZ_POLICY.instantiate( + "project", project, "location", location, "authz_policy", authzPolicy); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AuthzPolicyName that = ((AuthzPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.authzPolicy, that.authzPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(authzPolicy); + return h; + } + + /** Builder for projects/{project}/locations/{location}/authzPolicies/{authz_policy}. */ + public static class Builder { + private String project; + private String location; + private String authzPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthzPolicy() { + return authzPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAuthzPolicy(String authzPolicy) { + this.authzPolicy = authzPolicy; + return this; + } + + private Builder(AuthzPolicyName authzPolicyName) { + this.project = authzPolicyName.project; + this.location = authzPolicyName.location; + this.authzPolicy = authzPolicyName.authzPolicy; + } + + public AuthzPolicyName build() { + return new AuthzPolicyName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyOrBuilder.java new file mode 100644 index 000000000000..e4092add4f29 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyOrBuilder.java @@ -0,0 +1,539 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface AuthzPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AuthzPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +   * format:
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Identifier. Name of the `AuthzPolicy` resource in the following
                                                                                              +   * format:
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A human-readable description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. A human-readable description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Set of labels associated with the `AuthzPolicy` resource.
                                                                                              +   *
                                                                                              +   * The format must comply with [the following
                                                                                              +   * requirements](/compute/docs/labeling-resources#requirements).
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Required. Specifies the set of resources to which this policy should be
                                                                                              +   * applied to.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the target field is set. + */ + boolean hasTarget(); + + /** + * + * + *
                                                                                              +   * Required. Specifies the set of resources to which this policy should be
                                                                                              +   * applied to.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The target. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.Target getTarget(); + + /** + * + * + *
                                                                                              +   * Required. Specifies the set of resources to which this policy should be
                                                                                              +   * applied to.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.Target target = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.TargetOrBuilder getTargetOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getHttpRulesList(); + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule getHttpRules(int index); + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getHttpRulesCount(); + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getHttpRulesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Optional. A list of authorization HTTP rules to match against the incoming
                                                                                              +   * request. A policy match occurs when at least one HTTP rule matches the
                                                                                              +   * request or when no HTTP rules are specified in the policy.
                                                                                              +   * At least one HTTP Rule is required for Allow or Deny Action. Limited
                                                                                              +   * to 5 rules.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule http_rules = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRuleOrBuilder getHttpRulesOrBuilder( + int index); + + /** + * + * + *
                                                                                              +   * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +   *
                                                                                              +   * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +   *
                                                                                              +   * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +   * be allowed.
                                                                                              +   *
                                                                                              +   * When the action is `DENY`, only requests matching the policy will be
                                                                                              +   * denied.
                                                                                              +   *
                                                                                              +   * When a request arrives, the policies are evaluated in the following order:
                                                                                              +   *
                                                                                              +   * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +   * policy is evaluated using the custom authorization providers and the
                                                                                              +   * request is denied if the provider rejects the request.
                                                                                              +   *
                                                                                              +   * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +   * is denied.
                                                                                              +   *
                                                                                              +   * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +   * `ALLOW` policies match the request, the request is allowed.
                                                                                              +   *
                                                                                              +   * 4. Else the request is denied by default if none of the configured
                                                                                              +   * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + + /** + * + * + *
                                                                                              +   * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`.
                                                                                              +   *
                                                                                              +   * When the action is `CUSTOM`, `customProvider` must be specified.
                                                                                              +   *
                                                                                              +   * When the action is `ALLOW`, only requests matching the policy will
                                                                                              +   * be allowed.
                                                                                              +   *
                                                                                              +   * When the action is `DENY`, only requests matching the policy will be
                                                                                              +   * denied.
                                                                                              +   *
                                                                                              +   * When a request arrives, the policies are evaluated in the following order:
                                                                                              +   *
                                                                                              +   * 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM`
                                                                                              +   * policy is evaluated using the custom authorization providers and the
                                                                                              +   * request is denied if the provider rejects the request.
                                                                                              +   *
                                                                                              +   * 2. If there are any `DENY` policies that match the request, the request
                                                                                              +   * is denied.
                                                                                              +   *
                                                                                              +   * 3. If there are no `ALLOW` policies for the resource or if any of the
                                                                                              +   * `ALLOW` policies match the request, the request is allowed.
                                                                                              +   *
                                                                                              +   * 4. Else the request is denied by default if none of the configured
                                                                                              +   * AuthzPolicies with `ALLOW` action match the request.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction action = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzAction getAction(); + + /** + * + * + *
                                                                                              +   * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +   * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +   * `cloudIap` or `authzExtension` must be specified.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customProvider field is set. + */ + boolean hasCustomProvider(); + + /** + * + * + *
                                                                                              +   * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +   * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +   * `cloudIap` or `authzExtension` must be specified.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customProvider. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider getCustomProvider(); + + /** + * + * + *
                                                                                              +   * Optional. Required if the action is `CUSTOM`. Allows delegating
                                                                                              +   * authorization decisions to Cloud IAP or to Service Extensions. One of
                                                                                              +   * `cloudIap` or `authzExtension` must be specified.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.CustomProvider custom_provider = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.CustomProviderOrBuilder + getCustomProviderOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +   * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +   * once AuthzPolicy is created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for policyProfile. + */ + int getPolicyProfileValue(); + + /** + * + * + *
                                                                                              +   * Optional. Immutable. Defines the type of authorization being performed.
                                                                                              +   * If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
                                                                                              +   * once AuthzPolicy is created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile policy_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The policyProfile. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfile getPolicyProfile(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyProto.java new file mode 100644 index 000000000000..722760005dcf --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyProto.java @@ -0,0 +1,588 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class AuthzPolicyProto extends com.google.protobuf.GeneratedFile { + private AuthzPolicyProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthzPolicyProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "2google/cloud/networksecurity/v1/authz_policy.proto\022\037google.cloud.networksecuri" + + "ty.v1\032\037google/api/field_behavior.proto\032\033" + + "google/api/field_info.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\363\"\n" + + "\013AuthzPolicy\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\001\022M\n" + + "\006labels\030\005 \003(\01328.google.c" + + "loud.networksecurity.v1.AuthzPolicy.LabelsEntryB\003\340A\001\022H\n" + + "\006target\030\006 \001(\01323.google.cl" + + "oud.networksecurity.v1.AuthzPolicy.TargetB\003\340A\002\022O\n\n" + + "http_rules\030\007 \003(\01326.google.clou" + + "d.networksecurity.v1.AuthzPolicy.AuthzRuleB\003\340A\001\022M\n" + + "\006action\030\010 \001(\01628.google.cloud.n" + + "etworksecurity.v1.AuthzPolicy.AuthzActionB\003\340A\002\022Y\n" + + "\017custom_provider\030\n" + + " \001(\0132;.google" + + ".cloud.networksecurity.v1.AuthzPolicy.CustomProviderB\003\340A\001\022Z\n" + + "\016policy_profile\030\013 \001(" + + "\0162:.google.cloud.networksecurity.v1.AuthzPolicy.PolicyProfileB\006\340A\001\340A\005\032\206\001\n" + + "\006Target\022d\n" + + "\025load_balancing_scheme\030\010 \001(\0162@.google" + + ".cloud.networksecurity.v1.AuthzPolicy.LoadBalancingSchemeB\003\340A\001\022\026\n" + + "\tresources\030\001 \003(\tB\003\340A\002\032\316\026\n" + + "\tAuthzRule\022N\n" + + "\004from\030\001 \001(\0132;.goo" + + "gle.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.FromB\003\340A\001\022J\n" + + "\002to\030\002 \001(\01329.googl" + + "e.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.ToB\003\340A\001\022\021\n" + + "\004when\030\003 \001(\tB\003\340A\001\032|\n" + + "\013StringMatch\022\017\n" + + "\005exact\030\001 \001(\tH\000\022\020\n" + + "\006prefix\030\002 \001(\tH\000\022\020\n" + + "\006suffix\030\003 \001(\tH\000\022\022\n" + + "\010contains\030\004 \001(\tH\000\022\023\n" + + "\013ignore_case\030\005 \001(\010B\017\n\r" + + "match_pattern\0323\n" + + "\007IpBlock\022\023\n" + + "\006prefix\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006length\030\002 \001(\005B\003\340A\002\032\217\002\n" + + "\017RequestResource\022s\n" + + "\020tag_value_id_set\030\001 \001(\0132T.google.cloud.netw" + + "orksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSetB\003\340A\001\022d\n" + + "\023iam_service_account\030\002 \001(\0132B.google.cloud.netw" + + "orksecurity.v1.AuthzPolicy.AuthzRule.StringMatchB\003\340A\001\032!\n\r" + + "TagValueIdSet\022\020\n" + + "\003ids\030\001 \003(\003B\003\340A\002\032x\n" + + "\013HeaderMatch\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\001\022V\n" + + "\005value\030\002 \001(\0132B.google.cloud.network" + + "security.v1.AuthzPolicy.AuthzRule.StringMatchB\003\340A\001\032\352\002\n" + + "\tPrincipal\022s\n" + + "\022principal_selector\030\001 \001(\0162R.google.cloud.networksecur" + + "ity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelectorB\003\340A\001\022Z\n" + + "\tprincipal\030\002 \001(\013" + + "2B.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchB\003\340A\002\"\213\001\n" + + "\021PrincipalSelector\022\"\n" + + "\036PRINCIPAL_SELECTOR_UNSPECIFIED\020\000\022\027\n" + + "\023CLIENT_CERT_URI_SAN\020\001\022\034\n" + + "\030CLIENT_CERT_DNS_NAME_SAN\020\002\022\033\n" + + "\027CLIENT_CERT_COMMON_NAME\020\003\032\361\003\n" + + "\004From\022_\n" + + "\007sources\030\001 \003(\0132I.google.cloud.networksecurity.v1.Auth" + + "zPolicy.AuthzRule.From.RequestSourceB\003\340A\001\022c\n" + + "\013not_sources\030\002 \003(\0132I.google.cloud.ne" + + "tworksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSourceB\003\340A\001\032\242\002\n\r" + + "RequestSource\022Y\n\n" + + "principals\030\001 \003(\0132@.google.cloud.netw" + + "orksecurity.v1.AuthzPolicy.AuthzRule.PrincipalB\003\340A\001\022V\n" + + "\tip_blocks\030\002 \003(\0132>.google." + + "cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlockB\003\340A\001\022^\n" + + "\tresources\030\003 \003(\0132F" + + ".google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResourceB\003\340A\001\032\361" + + "\t\n" + + "\002To\022c\n\n" + + "operations\030\001 \003(\0132J.google.cloud.ne" + + "tworksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperationB\003\340A\001\022g\n" + + "\016not_operations\030\002 \003(\0132J.google.cloud.networksecurity.v" + + "1.AuthzPolicy.AuthzRule.To.RequestOperationB\003\340A\001\032\234\010\n" + + "\020RequestOperation\022m\n\n" + + "header_set\030\001 \001(\0132T.google.cloud.networksecurity" + + ".v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSetB\003\340A\001\022V\n" + + "\005hosts\030\002 \003(\0132B.go" + + "ogle.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchB\003\340A\001\022V\n" + + "\005paths\030\003 " + + "\003(\0132B.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchB\003\340A\001\022\024\n" + + "\007methods\030\004 \003(\tB\003\340A\001\022`\n" + + "\003mcp\030\005 \001(\0132N.google" + + ".cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPB\003\340A\001\032e\n" + + "\tHeaderSet\022X\n" + + "\007headers\030\001 \003(\0132B.google.clou" + + "d.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatchB\003\340A\002\032w\n" + + "\tMCPMethod\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022W\n" + + "\006params\030\002 \003(\0132B.google.clo" + + "ud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchB\003\340A\001\032\203\002\n" + + "\003MCP\022\217\001\n" + + "\034base_protocol_methods_option\030\001 \001(\0162d.google.clo" + + "ud.networksecurity.v1.AuthzPolicy.AuthzR" + + "ule.To.RequestOperation.BaseProtocolMethodsOptionB\003\340A\001\022j\n" + + "\007methods\030\002 \003(\0132T.google.cloud.networksecurity.v1.AuthzPolicy.Au" + + "thzRule.To.RequestOperation.MCPMethodB\003\340A\001\"\212\001\n" + + "\031BaseProtocolMethodsOption\022,\n" + + "(BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED\020\000\022\036\n" + + "\032SKIP_BASE_PROTOCOL_METHODS\020\001\022\037\n" + + "\033MATCH_BASE_PROTOCOL_METHODS\020\002\032\216\002\n" + + "\016CustomProvider\022\\\n" + + "\tcloud_iap\030\001 \001(\0132D.google.cloud.net" + + "worksecurity.v1.AuthzPolicy.CustomProvider.CloudIapB\003\340A\001\022h\n" + + "\017authz_extension\030\002 \001(\0132J.google.cloud.networksecurity.v1.Auth" + + "zPolicy.CustomProvider.AuthzExtensionB\003\340A\001\032\n\n" + + "\010CloudIap\032(\n" + + "\016AuthzExtension\022\026\n" + + "\tresources\030\001 \003(\tB\003\340A\002\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\203\001\n" + + "\023LoadBalancingScheme\022%\n" + + "!LOAD_BALANCING_SCHEME_UNSPECIFIED\020\000\022\024\n" + + "\020INTERNAL_MANAGED\020\001\022\024\n" + + "\020EXTERNAL_MANAGED\020\002\022\031\n" + + "\025INTERNAL_SELF_MANAGED\020\003\"L\n" + + "\013AuthzAction\022\034\n" + + "\030AUTHZ_ACTION_UNSPECIFIED\020\000\022\t\n" + + "\005ALLOW\020\001\022\010\n" + + "\004DENY\020\002\022\n\n" + + "\006CUSTOM\020\003\"U\n\r" + + "PolicyProfile\022\036\n" + + "\032POLICY_PROFILE_UNSPECIFIED\020\000\022\021\n\r" + + "REQUEST_AUTHZ\020\001\022\021\n\r" + + "CONTENT_AUTHZ\020\002:\222\001\352A\216\001\n" + + "*networksecurity.googleapis.com/AuthzPolicy\022Dprojects/{project}/locati" + + "ons/{location}/authzPolicies/{authz_policy}*\r" + + "authzPolicies2\013authzPolicy\"\346\001\n" + + "\030CreateAuthzPolicyRequest\022B\n" + + "\006parent\030\001 \001(\tB2\340A" + + "\002\372A,\022*networksecurity.googleapis.com/AuthzPolicy\022\034\n" + + "\017authz_policy_id\030\002 \001(\tB\003\340A\002\022G\n" + + "\014authz_policy\030\003" + + " \001(\0132,.google.cloud.networksecurity.v1.AuthzPolicyB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\273\001\n" + + "\030ListAuthzPoliciesRequest\022B\n" + + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*n" + + "etworksecurity.googleapis.com/AuthzPolicy\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\217\001\n" + + "\031ListAuthzPoliciesResponse\022D\n" + + "\016authz_policies\030\001" + + " \003(\0132,.google.cloud.networksecurity.v1.AuthzPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"Y\n" + + "\025GetAuthzPolicyRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*networksecurity.googleapis.com/AuthzPolicy\"\272\001\n" + + "\030UpdateAuthzPolicyRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022G\n" + + "\014authz_policy\030\002 \001(\0132,.g" + + "oogle.cloud.networksecurity.v1.AuthzPolicyB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"}\n" + + "\030DeleteAuthzPolicyRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*networksecurity.googleapis.com/AuthzPolicy\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\361\001\n" + + "#com.google.cloud.networksecurity.v1B\020AuthzPolicyProtoP\001ZMcloud.googl" + + "e.com/go/networksecurity/apiv1/networkse" + + "curitypb;networksecuritypb\252\002\037Google.Clou" + + "d.NetworkSecurity.V1\312\002\037Google\\Cloud\\Netw" + + "orkSecurity\\V1\352\002\"Google::Cloud::NetworkSecurity::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Description", + "Labels", + "Target", + "HttpRules", + "Action", + "CustomProvider", + "PolicyProfile", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor.getNestedType(0); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_Target_descriptor, + new java.lang.String[] { + "LoadBalancingScheme", "Resources", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor.getNestedType(1); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor, + new java.lang.String[] { + "From", "To", "When", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_StringMatch_descriptor, + new java.lang.String[] { + "Exact", "Prefix", "Suffix", "Contains", "IgnoreCase", "MatchPattern", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_IpBlock_descriptor, + new java.lang.String[] { + "Prefix", "Length", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor + .getNestedType(2); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_descriptor, + new java.lang.String[] { + "TagValueIdSet", "IamServiceAccount", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_RequestResource_TagValueIdSet_descriptor, + new java.lang.String[] { + "Ids", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor + .getNestedType(3); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_HeaderMatch_descriptor, + new java.lang.String[] { + "Name", "Value", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor + .getNestedType(4); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_Principal_descriptor, + new java.lang.String[] { + "PrincipalSelector", "Principal", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor + .getNestedType(5); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_descriptor, + new java.lang.String[] { + "Sources", "NotSources", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_From_RequestSource_descriptor, + new java.lang.String[] { + "Principals", "IpBlocks", "Resources", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_descriptor + .getNestedType(6); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_descriptor, + new java.lang.String[] { + "Operations", "NotOperations", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor, + new java.lang.String[] { + "HeaderSet", "Hosts", "Paths", "Methods", "Mcp", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_HeaderSet_descriptor, + new java.lang.String[] { + "Headers", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCPMethod_descriptor, + new java.lang.String[] { + "Name", "Params", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_descriptor + .getNestedType(2); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_AuthzRule_To_RequestOperation_MCP_descriptor, + new java.lang.String[] { + "BaseProtocolMethodsOption", "Methods", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor.getNestedType(2); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_descriptor, + new java.lang.String[] { + "CloudIap", "AuthzExtension", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_CloudIap_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_CustomProvider_AuthzExtension_descriptor, + new java.lang.String[] { + "Resources", + }); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_descriptor.getNestedType(3); + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AuthzPolicy_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "AuthzPolicyId", "AuthzPolicy", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_descriptor, + new java.lang.String[] { + "AuthzPolicies", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "AuthzPolicy", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfig.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfig.java new file mode 100644 index 000000000000..b3d9564dd9d0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfig.java @@ -0,0 +1,2854 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * BackendAuthenticationConfig message groups the TrustConfig together with
                                                                                              + * other settings that control how the load balancer authenticates, and
                                                                                              + * expresses its identity to, the backend:
                                                                                              + *
                                                                                              + * * `trustConfig` is the attached TrustConfig.
                                                                                              + *
                                                                                              + * * `wellKnownRoots` indicates whether the load balance should trust backend
                                                                                              + * server certificates that are issued by public certificate authorities, in
                                                                                              + * addition to certificates trusted by the TrustConfig.
                                                                                              + *
                                                                                              + * * `clientCertificate` is a client certificate that the load balancer uses to
                                                                                              + * express its identity to the backend, if the connection to the backend uses
                                                                                              + * mTLS.
                                                                                              + *
                                                                                              + * You can attach the BackendAuthenticationConfig to the load balancer's
                                                                                              + * BackendService directly determining how that BackendService negotiates TLS.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.BackendAuthenticationConfig} + */ +@com.google.protobuf.Generated +public final class BackendAuthenticationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.BackendAuthenticationConfig) + BackendAuthenticationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BackendAuthenticationConfig"); + } + + // Use BackendAuthenticationConfig.newBuilder() to construct. + private BackendAuthenticationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BackendAuthenticationConfig() { + name_ = ""; + description_ = ""; + clientCertificate_ = ""; + trustConfig_ = ""; + wellKnownRoots_ = 0; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.class, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder.class); + } + + /** + * + * + *
                                                                                              +   * Enum to specify the well known roots to use for server certificate
                                                                                              +   * validation.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code + * google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots} + */ + public enum WellKnownRoots implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Equivalent to NONE.
                                                                                              +     * 
                                                                                              + * + * WELL_KNOWN_ROOTS_UNSPECIFIED = 0; + */ + WELL_KNOWN_ROOTS_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The BackendService will only validate server certificates against roots
                                                                                              +     * specified in TrustConfig.
                                                                                              +     * 
                                                                                              + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
                                                                                              +     * The BackendService uses a set of well-known public roots, in addition to
                                                                                              +     * any roots specified in the trustConfig field, when validating the server
                                                                                              +     * certificates presented by the backend. Validation with these roots is
                                                                                              +     * only considered when the TlsSettings.sni field in the BackendService is
                                                                                              +     * set.
                                                                                              +     *
                                                                                              +     * The well-known roots are a set of root CAs managed by Google. CAs in this
                                                                                              +     * set can be added or removed without notice.
                                                                                              +     * 
                                                                                              + * + * PUBLIC_ROOTS = 2; + */ + PUBLIC_ROOTS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WellKnownRoots"); + } + + /** + * + * + *
                                                                                              +     * Equivalent to NONE.
                                                                                              +     * 
                                                                                              + * + * WELL_KNOWN_ROOTS_UNSPECIFIED = 0; + */ + public static final int WELL_KNOWN_ROOTS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The BackendService will only validate server certificates against roots
                                                                                              +     * specified in TrustConfig.
                                                                                              +     * 
                                                                                              + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The BackendService uses a set of well-known public roots, in addition to
                                                                                              +     * any roots specified in the trustConfig field, when validating the server
                                                                                              +     * certificates presented by the backend. Validation with these roots is
                                                                                              +     * only considered when the TlsSettings.sni field in the BackendService is
                                                                                              +     * set.
                                                                                              +     *
                                                                                              +     * The well-known roots are a set of root CAs managed by Google. CAs in this
                                                                                              +     * set can be added or removed without notice.
                                                                                              +     * 
                                                                                              + * + * PUBLIC_ROOTS = 2; + */ + public static final int PUBLIC_ROOTS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WellKnownRoots valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static WellKnownRoots forNumber(int value) { + switch (value) { + case 0: + return WELL_KNOWN_ROOTS_UNSPECIFIED; + case 1: + return NONE; + case 2: + return PUBLIC_ROOTS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WellKnownRoots findValueByNumber(int number) { + return WellKnownRoots.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final WellKnownRoots[] VALUES = values(); + + public static WellKnownRoots valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private WellKnownRoots(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +   * pattern
                                                                                              +   * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +   * pattern
                                                                                              +   * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientCertificate_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +   * resource. This is a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +   *
                                                                                              +   * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +   * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +   * scope.
                                                                                              +   * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The clientCertificate. + */ + @java.lang.Override + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + 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(); + clientCertificate_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +   * resource. This is a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +   *
                                                                                              +   * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +   * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +   * scope.
                                                                                              +   * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRUST_CONFIG_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object trustConfig_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A reference to a TrustConfig resource from the
                                                                                              +   * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +   * path following the form
                                                                                              +   * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +   *
                                                                                              +   * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +   * if specified, to validate the server certificates presented by the backend.
                                                                                              +   * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +   * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The trustConfig. + */ + @java.lang.Override + public java.lang.String getTrustConfig() { + java.lang.Object ref = trustConfig_; + 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(); + trustConfig_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A reference to a TrustConfig resource from the
                                                                                              +   * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +   * path following the form
                                                                                              +   * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +   *
                                                                                              +   * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +   * if specified, to validate the server certificates presented by the backend.
                                                                                              +   * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +   * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trustConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrustConfigBytes() { + java.lang.Object ref = trustConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trustConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WELL_KNOWN_ROOTS_FIELD_NUMBER = 8; + private int wellKnownRoots_ = 0; + + /** + * + * + *
                                                                                              +   * Well known roots to use for server certificate validation.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @return The enum numeric value on the wire for wellKnownRoots. + */ + @java.lang.Override + public int getWellKnownRootsValue() { + return wellKnownRoots_; + } + + /** + * + * + *
                                                                                              +   * Well known roots to use for server certificate validation.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @return The wellKnownRoots. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots + getWellKnownRoots() { + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots result = + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots.forNumber( + wellKnownRoots_); + return result == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots + .UNRECOGNIZED + : result; + } + + public static final int ETAG_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +   * Output only. Etag of the resource.
                                                                                              +   * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Output only. Etag of the resource.
                                                                                              +   * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientCertificate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, clientCertificate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trustConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, trustConfig_); + } + if (wellKnownRoots_ + != com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots + .WELL_KNOWN_ROOTS_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, wellKnownRoots_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientCertificate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, clientCertificate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trustConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, trustConfig_); + } + if (wellKnownRoots_ + != com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots + .WELL_KNOWN_ROOTS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, wellKnownRoots_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, etag_); + } + 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.networksecurity.v1.BackendAuthenticationConfig)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig other = + (com.google.cloud.networksecurity.v1.BackendAuthenticationConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getClientCertificate().equals(other.getClientCertificate())) return false; + if (!getTrustConfig().equals(other.getTrustConfig())) return false; + if (wellKnownRoots_ != other.wellKnownRoots_) return false; + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificate().hashCode(); + hash = (37 * hash) + TRUST_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrustConfig().hashCode(); + hash = (37 * hash) + WELL_KNOWN_ROOTS_FIELD_NUMBER; + hash = (53 * hash) + wellKnownRoots_; + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig 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.networksecurity.v1.BackendAuthenticationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig 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.networksecurity.v1.BackendAuthenticationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.BackendAuthenticationConfig 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * BackendAuthenticationConfig message groups the TrustConfig together with
                                                                                              +   * other settings that control how the load balancer authenticates, and
                                                                                              +   * expresses its identity to, the backend:
                                                                                              +   *
                                                                                              +   * * `trustConfig` is the attached TrustConfig.
                                                                                              +   *
                                                                                              +   * * `wellKnownRoots` indicates whether the load balance should trust backend
                                                                                              +   * server certificates that are issued by public certificate authorities, in
                                                                                              +   * addition to certificates trusted by the TrustConfig.
                                                                                              +   *
                                                                                              +   * * `clientCertificate` is a client certificate that the load balancer uses to
                                                                                              +   * express its identity to the backend, if the connection to the backend uses
                                                                                              +   * mTLS.
                                                                                              +   *
                                                                                              +   * You can attach the BackendAuthenticationConfig to the load balancer's
                                                                                              +   * BackendService directly determining how that BackendService negotiates TLS.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.BackendAuthenticationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.BackendAuthenticationConfig) + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.class, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + clientCertificate_ = ""; + trustConfig_ = ""; + wellKnownRoots_ = 0; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig build() { + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig buildPartial() { + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig result = + new com.google.cloud.networksecurity.v1.BackendAuthenticationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clientCertificate_ = clientCertificate_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.trustConfig_ = trustConfig_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.wellKnownRoots_ = wellKnownRoots_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.BackendAuthenticationConfig) { + return mergeFrom((com.google.cloud.networksecurity.v1.BackendAuthenticationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig other) { + if (other + == com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getTrustConfig().isEmpty()) { + trustConfig_ = other.trustConfig_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.wellKnownRoots_ != 0) { + setWellKnownRootsValue(other.getWellKnownRootsValue()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000100; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + clientCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + trustConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + wellKnownRoots_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +     * pattern
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +     * pattern
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +     * pattern
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +     * pattern
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +     * pattern
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Set of label tags associated with the resource.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Set of label tags associated with the resource.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Set of label tags associated with the resource.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Set of label tags associated with the resource.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Set of label tags associated with the resource.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Set of label tags associated with the resource.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
                                                                                              +     * Set of label tags associated with the resource.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 5; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object clientCertificate_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +     * resource. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +     *
                                                                                              +     * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +     * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +     * scope.
                                                                                              +     * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The clientCertificate. + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +     * resource. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +     *
                                                                                              +     * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +     * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +     * scope.
                                                                                              +     * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientCertificate. + */ + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +     * resource. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +     *
                                                                                              +     * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +     * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +     * scope.
                                                                                              +     * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientCertificate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +     * resource. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +     *
                                                                                              +     * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +     * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +     * scope.
                                                                                              +     * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearClientCertificate() { + clientCertificate_ = getDefaultInstance().getClientCertificate(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +     * resource. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +     *
                                                                                              +     * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +     * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +     * scope.
                                                                                              +     * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientCertificate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object trustConfig_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A reference to a TrustConfig resource from the
                                                                                              +     * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +     * path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +     *
                                                                                              +     * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +     * if specified, to validate the server certificates presented by the backend.
                                                                                              +     * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The trustConfig. + */ + public java.lang.String getTrustConfig() { + java.lang.Object ref = trustConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trustConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A reference to a TrustConfig resource from the
                                                                                              +     * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +     * path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +     *
                                                                                              +     * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +     * if specified, to validate the server certificates presented by the backend.
                                                                                              +     * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trustConfig. + */ + public com.google.protobuf.ByteString getTrustConfigBytes() { + java.lang.Object ref = trustConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trustConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A reference to a TrustConfig resource from the
                                                                                              +     * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +     * path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +     *
                                                                                              +     * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +     * if specified, to validate the server certificates presented by the backend.
                                                                                              +     * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The trustConfig to set. + * @return This builder for chaining. + */ + public Builder setTrustConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trustConfig_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A reference to a TrustConfig resource from the
                                                                                              +     * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +     * path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +     *
                                                                                              +     * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +     * if specified, to validate the server certificates presented by the backend.
                                                                                              +     * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTrustConfig() { + trustConfig_ = getDefaultInstance().getTrustConfig(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A reference to a TrustConfig resource from the
                                                                                              +     * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +     * path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +     *
                                                                                              +     * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +     * if specified, to validate the server certificates presented by the backend.
                                                                                              +     * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for trustConfig to set. + * @return This builder for chaining. + */ + public Builder setTrustConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trustConfig_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int wellKnownRoots_ = 0; + + /** + * + * + *
                                                                                              +     * Well known roots to use for server certificate validation.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @return The enum numeric value on the wire for wellKnownRoots. + */ + @java.lang.Override + public int getWellKnownRootsValue() { + return wellKnownRoots_; + } + + /** + * + * + *
                                                                                              +     * Well known roots to use for server certificate validation.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @param value The enum numeric value on the wire for wellKnownRoots to set. + * @return This builder for chaining. + */ + public Builder setWellKnownRootsValue(int value) { + wellKnownRoots_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Well known roots to use for server certificate validation.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @return The wellKnownRoots. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots + getWellKnownRoots() { + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots result = + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots.forNumber( + wellKnownRoots_); + return result == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Well known roots to use for server certificate validation.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @param value The wellKnownRoots to set. + * @return This builder for chaining. + */ + public Builder setWellKnownRoots( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + wellKnownRoots_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Well known roots to use for server certificate validation.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @return This builder for chaining. + */ + public Builder clearWellKnownRoots() { + bitField0_ = (bitField0_ & ~0x00000080); + wellKnownRoots_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. Etag of the resource.
                                                                                              +     * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Etag of the resource.
                                                                                              +     * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Etag of the resource.
                                                                                              +     * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Etag of the resource.
                                                                                              +     * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Etag of the resource.
                                                                                              +     * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.BackendAuthenticationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.BackendAuthenticationConfig) + private static final com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.BackendAuthenticationConfig(); + } + + public static com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackendAuthenticationConfig 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.networksecurity.v1.BackendAuthenticationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigName.java new file mode 100644 index 000000000000..ae3f38b13719 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigName.java @@ -0,0 +1,242 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class BackendAuthenticationConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BACKEND_AUTHENTICATION_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String backendAuthenticationConfig; + + @Deprecated + protected BackendAuthenticationConfigName() { + project = null; + location = null; + backendAuthenticationConfig = null; + } + + private BackendAuthenticationConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + backendAuthenticationConfig = + Preconditions.checkNotNull(builder.getBackendAuthenticationConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackendAuthenticationConfig() { + return backendAuthenticationConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BackendAuthenticationConfigName of( + String project, String location, String backendAuthenticationConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackendAuthenticationConfig(backendAuthenticationConfig) + .build(); + } + + public static String format(String project, String location, String backendAuthenticationConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackendAuthenticationConfig(backendAuthenticationConfig) + .build() + .toString(); + } + + public static BackendAuthenticationConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BACKEND_AUTHENTICATION_CONFIG.validatedMatch( + formattedString, + "BackendAuthenticationConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("backend_authentication_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (BackendAuthenticationConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BACKEND_AUTHENTICATION_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (backendAuthenticationConfig != null) { + fieldMapBuilder.put("backend_authentication_config", backendAuthenticationConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BACKEND_AUTHENTICATION_CONFIG.instantiate( + "project", + project, + "location", + location, + "backend_authentication_config", + backendAuthenticationConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BackendAuthenticationConfigName that = ((BackendAuthenticationConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.backendAuthenticationConfig, that.backendAuthenticationConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(backendAuthenticationConfig); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}. + */ + public static class Builder { + private String project; + private String location; + private String backendAuthenticationConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackendAuthenticationConfig() { + return backendAuthenticationConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBackendAuthenticationConfig(String backendAuthenticationConfig) { + this.backendAuthenticationConfig = backendAuthenticationConfig; + return this; + } + + private Builder(BackendAuthenticationConfigName backendAuthenticationConfigName) { + this.project = backendAuthenticationConfigName.project; + this.location = backendAuthenticationConfigName.location; + this.backendAuthenticationConfig = + backendAuthenticationConfigName.backendAuthenticationConfig; + } + + public BackendAuthenticationConfigName build() { + return new BackendAuthenticationConfigName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigOrBuilder.java new file mode 100644 index 000000000000..8650d08aae19 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigOrBuilder.java @@ -0,0 +1,370 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface BackendAuthenticationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.BackendAuthenticationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +   * pattern
                                                                                              +   * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the BackendAuthenticationConfig resource. It matches the
                                                                                              +   * pattern
                                                                                              +   * `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Set of label tags associated with the resource.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 5; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +   * resource. This is a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +   *
                                                                                              +   * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +   * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +   * scope.
                                                                                              +   * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The clientCertificate. + */ + java.lang.String getClientCertificate(); + + /** + * + * + *
                                                                                              +   * Optional. A reference to a certificatemanager.googleapis.com.Certificate
                                                                                              +   * resource. This is a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/certificates/{certificate}".
                                                                                              +   *
                                                                                              +   * Used by a BackendService to negotiate mTLS when the backend connection uses
                                                                                              +   * TLS and the backend requests a client certificate. Must have a CLIENT_AUTH
                                                                                              +   * scope.
                                                                                              +   * 
                                                                                              + * + * + * string client_certificate = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientCertificate. + */ + com.google.protobuf.ByteString getClientCertificateBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A reference to a TrustConfig resource from the
                                                                                              +   * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +   * path following the form
                                                                                              +   * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +   *
                                                                                              +   * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +   * if specified, to validate the server certificates presented by the backend.
                                                                                              +   * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +   * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The trustConfig. + */ + java.lang.String getTrustConfig(); + + /** + * + * + *
                                                                                              +   * Optional. A reference to a TrustConfig resource from the
                                                                                              +   * certificatemanager.googleapis.com namespace. This is a relative resource
                                                                                              +   * path following the form
                                                                                              +   * "projects/{project}/locations/{location}/trustConfigs/{trust_config}".
                                                                                              +   *
                                                                                              +   * A BackendService uses the chain of trust represented by this TrustConfig,
                                                                                              +   * if specified, to validate the server certificates presented by the backend.
                                                                                              +   * Required unless wellKnownRoots is set to PUBLIC_ROOTS.
                                                                                              +   * 
                                                                                              + * + * + * string trust_config = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trustConfig. + */ + com.google.protobuf.ByteString getTrustConfigBytes(); + + /** + * + * + *
                                                                                              +   * Well known roots to use for server certificate validation.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @return The enum numeric value on the wire for wellKnownRoots. + */ + int getWellKnownRootsValue(); + + /** + * + * + *
                                                                                              +   * Well known roots to use for server certificate validation.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots well_known_roots = 8; + * + * + * @return The wellKnownRoots. + */ + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.WellKnownRoots + getWellKnownRoots(); + + /** + * + * + *
                                                                                              +   * Output only. Etag of the resource.
                                                                                              +   * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                                                                                              +   * Output only. Etag of the resource.
                                                                                              +   * 
                                                                                              + * + * string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigProto.java new file mode 100644 index 000000000000..31835dbdb993 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigProto.java @@ -0,0 +1,247 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class BackendAuthenticationConfigProto extends com.google.protobuf.GeneratedFile { + private BackendAuthenticationConfigProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BackendAuthenticationConfigProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "Cgoogle/cloud/networksecurity/v1/backend_authentication_config.proto\022\037google.cl" + + "oud.networksecurity.v1\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\322\006\n" + + "\033BackendAuthenticationConfig\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022X\n" + + "\006labels\030\005 \003(\0132H.google." + + "cloud.networksecurity.v1.BackendAuthenticationConfig.LabelsEntry\022Q\n" + + "\022client_certificate\030\006 \001(\tB5\340A\001\372A/\n" + + "-certificatemanager.googleapis.com/Certificate\022K\n" + + "\014trust_config\030\007 \001(\tB5\340A\001\372A/\n" + + "-certificatemanager.googleapis.com/TrustConfig\022e\n" + + "\020well_known_roots\030\010 \001(\0162K.google.cloud.networksecurit" + + "y.v1.BackendAuthenticationConfig.WellKnownRoots\022\021\n" + + "\004etag\030\t \001(\tB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"N\n" + + "\016WellKnownRoots\022 \n" + + "\034WELL_KNOWN_ROOTS_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\020\n" + + "\014PUBLIC_ROOTS\020\002:\246\001\352A\242\001\n" + + ":networksecurity.googleapis.com/BackendAuthenticationConfig\022dprojects/{project}" + + "/locations/{location}/backendAuthenticat" + + "ionConfigs/{backend_authentication_config}\"\213\001\n" + + "\'ListBackendAuthenticationConfigsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"\276\001\n" + + "(ListBackendAuthenticationConfigsResponse\022d\n" + + "\036backend_authentication_configs\030\001 \003(\0132<.google.c" + + "loud.networksecurity.v1.BackendAuthenticationConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"y\n" + + "%GetBackendAuthenticationConfigRequest\022P\n" + + "\004name\030\001 \001(\tBB\340A\002\372A<\n" + + ":networksecurity.googleapis.com/BackendAuthenticationConfig\"\227\002\n" + + "(CreateBackendAuthenticationConfigRequest\022R\n" + + "\006parent\030\001 \001(" + + "\tBB\340A\002\372A<\022:networksecurity.googleapis.com/BackendAuthenticationConfig\022-\n" + + " backend_authentication_config_id\030\002 \001(\tB\003\340A\002\022h\n" + + "\035backend_authentication_config\030\003 \001(\0132<.go" + + "ogle.cloud.networksecurity.v1.BackendAuthenticationConfigB\003\340A\002\"\312\001\n" + + "(UpdateBackendAuthenticationConfigRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022h\n" + + "\035backend_authentication_config\030\002 \001(\013" + + "2<.google.cloud.networksecurity.v1.BackendAuthenticationConfigB\003\340A\002\"\217\001\n" + + "(DeleteBackendAuthenticationConfigRequest\022P\n" + + "\004name\030\001 \001(\tBB\340A\002\372A<\n" + + ":networksecurity.googleapis.com/BackendAuthenticationConfig\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001B\356\003\n" + + "#com.google.cloud.networksecurity.v1B BackendAuthenticationConf" + + "igProtoP\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb;networkse" + + "curitypb\252\002\037Google.Cloud.NetworkSecurity." + + "V1\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Google::Cloud::NetworkSecurity::V1\352As\n" + + "-certificatemanager.googleapis.com/Certific" + + "ate\022Bprojects/{project}/locations/{location}/certificates/{certificate}\352At\n" + + "-certificatemanager.googleapis.com/TrustConfi" + + "g\022Cprojects/{project}/locations/{location}/trustConfigs/{trust_config}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_descriptor, + new java.lang.String[] { + "Name", + "Description", + "CreateTime", + "UpdateTime", + "Labels", + "ClientCertificate", + "TrustConfig", + "WellKnownRoots", + "Etag", + }); + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_BackendAuthenticationConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_descriptor, + new java.lang.String[] { + "BackendAuthenticationConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "BackendAuthenticationConfigId", "BackendAuthenticationConfig", + }); + internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "BackendAuthenticationConfig", + }); + internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java index e4ee0c092d15..a0399cd2ea96 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstance.java @@ -82,9 +82,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                              -   * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -   * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -   * Authority Service certificate provider instance.
                                                                                              +   * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +   * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +   * Certificate Authority Service certificate provider instance.
                                                                                                  * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -108,9 +108,9 @@ public java.lang.String getPluginInstance() { * * *
                                                                                              -   * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -   * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -   * Authority Service certificate provider instance.
                                                                                              +   * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +   * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +   * Certificate Authority Service certificate provider instance.
                                                                                                  * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -454,9 +454,9 @@ public Builder mergeFrom( * * *
                                                                                              -     * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -     * Authority Service certificate provider instance.
                                                                                              +     * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +     * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +     * Certificate Authority Service certificate provider instance.
                                                                                                    * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -479,9 +479,9 @@ public java.lang.String getPluginInstance() { * * *
                                                                                              -     * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -     * Authority Service certificate provider instance.
                                                                                              +     * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +     * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +     * Certificate Authority Service certificate provider instance.
                                                                                                    * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -504,9 +504,9 @@ public com.google.protobuf.ByteString getPluginInstanceBytes() { * * *
                                                                                              -     * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -     * Authority Service certificate provider instance.
                                                                                              +     * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +     * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +     * Certificate Authority Service certificate provider instance.
                                                                                                    * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -528,9 +528,9 @@ public Builder setPluginInstance(java.lang.String value) { * * *
                                                                                              -     * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -     * Authority Service certificate provider instance.
                                                                                              +     * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +     * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +     * Certificate Authority Service certificate provider instance.
                                                                                                    * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -548,9 +548,9 @@ public Builder clearPluginInstance() { * * *
                                                                                              -     * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -     * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -     * Authority Service certificate provider instance.
                                                                                              +     * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +     * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +     * Certificate Authority Service certificate provider instance.
                                                                                                    * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java index 15ebe075e89c..682fb42a75df 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CertificateProviderInstanceOrBuilder.java @@ -30,9 +30,9 @@ public interface CertificateProviderInstanceOrBuilder * * *
                                                                                              -   * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -   * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -   * Authority Service certificate provider instance.
                                                                                              +   * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +   * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +   * Certificate Authority Service certificate provider instance.
                                                                                                  * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,9 +45,9 @@ public interface CertificateProviderInstanceOrBuilder * * *
                                                                                              -   * Required. Plugin instance name, used to locate and load CertificateProvider instance
                                                                                              -   * configuration. Set to "google_cloud_private_spiffe" to use Certificate
                                                                                              -   * Authority Service certificate provider instance.
                                                                                              +   * Required. Plugin instance name, used to locate and load CertificateProvider
                                                                                              +   * instance configuration. Set to "google_cloud_private_spiffe" to use
                                                                                              +   * Certificate Authority Service certificate provider instance.
                                                                                                  * 
                                                                                              * * string plugin_instance = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java index 42906da534f4..d4a653324abb 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicy.java @@ -98,7 +98,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
                                                                                                  * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -   * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +   * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                  * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -123,7 +123,7 @@ public java.lang.String getName() { * *
                                                                                                  * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -   * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +   * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                  * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -469,8 +469,9 @@ public com.google.protobuf.ByteString getSniBytes() { * * *
                                                                                              -   * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -   * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +   * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +   * private keys) for peer to peer authentication. The presence of this
                                                                                              +   * dictates mTLS.
                                                                                                  * 
                                                                                              * * @@ -488,8 +489,9 @@ public boolean hasClientCertificate() { * * *
                                                                                              -   * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -   * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +   * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +   * private keys) for peer to peer authentication. The presence of this
                                                                                              +   * dictates mTLS.
                                                                                                  * 
                                                                                              * * @@ -509,8 +511,9 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getClientCertific * * *
                                                                                              -   * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -   * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +   * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +   * private keys) for peer to peer authentication. The presence of this
                                                                                              +   * dictates mTLS.
                                                                                                  * 
                                                                                              * * @@ -534,9 +537,9 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getClientCertific * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -553,9 +556,9 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getClientCertific * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -572,9 +575,9 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getClientCertific * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -590,9 +593,9 @@ public int getServerValidationCaCount() { * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -608,9 +611,9 @@ public com.google.cloud.networksecurity.v1.ValidationCA getServerValidationCa(in * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -1238,7 +1241,7 @@ public Builder mergeFrom( * *
                                                                                                    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -     * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +     * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                    * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1262,7 +1265,7 @@ public java.lang.String getName() { * *
                                                                                                    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -     * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +     * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                    * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1286,7 +1289,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                                                                                                    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -     * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +     * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                    * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1309,7 +1312,7 @@ public Builder setName(java.lang.String value) { * *
                                                                                                    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -     * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +     * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                    * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1328,7 +1331,7 @@ public Builder clearName() { * *
                                                                                                    * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -     * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +     * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                    * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2181,8 +2184,9 @@ public Builder setSniBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2199,8 +2203,9 @@ public boolean hasClientCertificate() { * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2223,8 +2228,9 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getClientCertific * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2250,8 +2256,9 @@ public Builder setClientCertificate( * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2274,8 +2281,9 @@ public Builder setClientCertificate( * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2307,8 +2315,9 @@ public Builder mergeClientCertificate( * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2330,8 +2339,9 @@ public Builder clearClientCertificate() { * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2349,8 +2359,9 @@ public Builder clearClientCertificate() { * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2372,8 +2383,9 @@ public Builder clearClientCertificate() { * * *
                                                                                              -     * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -     * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +     * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +     * private keys) for peer to peer authentication. The presence of this
                                                                                              +     * dictates mTLS.
                                                                                                    * 
                                                                                              * * @@ -2419,9 +2431,9 @@ private void ensureServerValidationCaIsMutable() { * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2441,9 +2453,9 @@ private void ensureServerValidationCaIsMutable() { * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2462,9 +2474,9 @@ public int getServerValidationCaCount() { * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2483,9 +2495,9 @@ public com.google.cloud.networksecurity.v1.ValidationCA getServerValidationCa(in * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2511,9 +2523,9 @@ public Builder setServerValidationCa( * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2536,9 +2548,9 @@ public Builder setServerValidationCa( * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2563,9 +2575,9 @@ public Builder addServerValidationCa(com.google.cloud.networksecurity.v1.Validat * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2591,9 +2603,9 @@ public Builder addServerValidationCa( * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2616,9 +2628,9 @@ public Builder addServerValidationCa( * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2641,9 +2653,9 @@ public Builder addServerValidationCa( * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2666,9 +2678,9 @@ public Builder addAllServerValidationCa( * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2690,9 +2702,9 @@ public Builder clearServerValidationCa() { * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2714,9 +2726,9 @@ public Builder removeServerValidationCa(int index) { * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2732,9 +2744,9 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder getServerValidat * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2754,9 +2766,9 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getServerValida * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2776,9 +2788,9 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getServerValida * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2794,9 +2806,9 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addServerValidat * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * @@ -2813,9 +2825,9 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addServerValidat * * *
                                                                                              -     * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -     * validate the server certificate. If empty, client does not validate the
                                                                                              -     * server certificate.
                                                                                              +     * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +     * certificate to validate the server certificate. If empty, client does not
                                                                                              +     * validate the server certificate.
                                                                                                    * 
                                                                                              * * diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java index 4c8bf6015eeb..a531d7c8ff1a 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyOrBuilder.java @@ -31,7 +31,7 @@ public interface ClientTlsPolicyOrBuilder * *
                                                                                                  * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -   * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +   * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                  * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,7 +45,7 @@ public interface ClientTlsPolicyOrBuilder * *
                                                                                                  * Required. Name of the ClientTlsPolicy resource. It matches the pattern
                                                                                              -   * `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                              +   * `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
                                                                                                  * 
                                                                                              * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -255,8 +255,9 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -   * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +   * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +   * private keys) for peer to peer authentication. The presence of this
                                                                                              +   * dictates mTLS.
                                                                                                  * 
                                                                                              * * @@ -271,8 +272,9 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -   * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +   * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +   * private keys) for peer to peer authentication. The presence of this
                                                                                              +   * dictates mTLS.
                                                                                                  * 
                                                                                              * * @@ -287,8 +289,9 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Defines a mechanism to provision client identity (public and private keys)
                                                                                              -   * for peer to peer authentication. The presence of this dictates mTLS.
                                                                                              +   * Optional. Defines a mechanism to provision client identity (public and
                                                                                              +   * private keys) for peer to peer authentication. The presence of this
                                                                                              +   * dictates mTLS.
                                                                                                  * 
                                                                                              * * @@ -301,9 +304,9 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -316,9 +319,9 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -331,9 +334,9 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -346,9 +349,9 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * @@ -362,9 +365,9 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                              -   * Optional. Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                              -   * validate the server certificate. If empty, client does not validate the
                                                                                              -   * server certificate.
                                                                                              +   * Optional. Defines the mechanism to obtain the Certificate Authority
                                                                                              +   * certificate to validate the server certificate. If empty, client does not
                                                                                              +   * validate the server certificate.
                                                                                                  * 
                                                                                              * * diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthzPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthzPolicyRequest.java new file mode 100644 index 000000000000..37da4b84ac75 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthzPolicyRequest.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for creating an `AuthzPolicy` resource.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateAuthzPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateAuthzPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) + CreateAuthzPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAuthzPolicyRequest"); + } + + // Use CreateAuthzPolicyRequest.newBuilder() to construct. + private CreateAuthzPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAuthzPolicyRequest() { + parent_ = ""; + authzPolicyId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest.class, + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +   * the format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +   * the format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHZ_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object authzPolicyId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authzPolicyId. + */ + @java.lang.Override + public java.lang.String getAuthzPolicyId() { + java.lang.Object ref = authzPolicyId_; + 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(); + authzPolicyId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authzPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthzPolicyIdBytes() { + java.lang.Object ref = authzPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authzPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHZ_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.AuthzPolicy authzPolicy_; + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authzPolicy field is set. + */ + @java.lang.Override + public boolean hasAuthzPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authzPolicy. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicy() { + return authzPolicy_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance() + : authzPolicy_; + } + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPolicyOrBuilder() { + return authzPolicy_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance() + : authzPolicy_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authzPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, authzPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAuthzPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authzPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authzPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthzPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateAuthzPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest other = + (com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAuthzPolicyId().equals(other.getAuthzPolicyId())) return false; + if (hasAuthzPolicy() != other.hasAuthzPolicy()) return false; + if (hasAuthzPolicy()) { + if (!getAuthzPolicy().equals(other.getAuthzPolicy())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + AUTHZ_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthzPolicyId().hashCode(); + if (hasAuthzPolicy()) { + hash = (37 * hash) + AUTHZ_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAuthzPolicy().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest 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.networksecurity.v1.CreateAuthzPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest 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.networksecurity.v1.CreateAuthzPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateAuthzPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for creating an `AuthzPolicy` resource.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateAuthzPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest.class, + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAuthzPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + authzPolicyId_ = ""; + authzPolicy_ = null; + if (authzPolicyBuilder_ != null) { + authzPolicyBuilder_.dispose(); + authzPolicyBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest build() { + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest result = + new com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authzPolicyId_ = authzPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authzPolicy_ = + authzPolicyBuilder_ == null ? authzPolicy_ : authzPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAuthzPolicyId().isEmpty()) { + authzPolicyId_ = other.authzPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAuthzPolicy()) { + mergeAuthzPolicy(other.getAuthzPolicy()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + authzPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAuthzPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +     * the format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +     * the format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +     * the format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +     * the format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +     * the format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object authzPolicyId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authzPolicyId. + */ + public java.lang.String getAuthzPolicyId() { + java.lang.Object ref = authzPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authzPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authzPolicyId. + */ + public com.google.protobuf.ByteString getAuthzPolicyIdBytes() { + java.lang.Object ref = authzPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authzPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The authzPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAuthzPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authzPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthzPolicyId() { + authzPolicyId_ = getDefaultInstance().getAuthzPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for authzPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAuthzPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authzPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy authzPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder> + authzPolicyBuilder_; + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authzPolicy field is set. + */ + public boolean hasAuthzPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authzPolicy. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicy() { + if (authzPolicyBuilder_ == null) { + return authzPolicy_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance() + : authzPolicy_; + } else { + return authzPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthzPolicy(com.google.cloud.networksecurity.v1.AuthzPolicy value) { + if (authzPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authzPolicy_ = value; + } else { + authzPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthzPolicy( + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder builderForValue) { + if (authzPolicyBuilder_ == null) { + authzPolicy_ = builderForValue.build(); + } else { + authzPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthzPolicy(com.google.cloud.networksecurity.v1.AuthzPolicy value) { + if (authzPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && authzPolicy_ != null + && authzPolicy_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance()) { + getAuthzPolicyBuilder().mergeFrom(value); + } else { + authzPolicy_ = value; + } + } else { + authzPolicyBuilder_.mergeFrom(value); + } + if (authzPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthzPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + authzPolicy_ = null; + if (authzPolicyBuilder_ != null) { + authzPolicyBuilder_.dispose(); + authzPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.Builder getAuthzPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAuthzPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPolicyOrBuilder() { + if (authzPolicyBuilder_ != null) { + return authzPolicyBuilder_.getMessageOrBuilder(); + } else { + return authzPolicy_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance() + : authzPolicy_; + } + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder> + internalGetAuthzPolicyFieldBuilder() { + if (authzPolicyBuilder_ == null) { + authzPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder>( + getAuthzPolicy(), getParentForChildren(), isClean()); + authzPolicy_ = null; + } + return authzPolicyBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) + private static final com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAuthzPolicyRequest 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.networksecurity.v1.CreateAuthzPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthzPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthzPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..5cd33aa97d53 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAuthzPolicyRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateAuthzPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateAuthzPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +   * the format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the `AuthzPolicy` resource. Must be in
                                                                                              +   * the format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authzPolicyId. + */ + java.lang.String getAuthzPolicyId(); + + /** + * + * + *
                                                                                              +   * Required. User-provided ID of the `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * string authz_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authzPolicyId. + */ + com.google.protobuf.ByteString getAuthzPolicyIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authzPolicy field is set. + */ + boolean hasAuthzPolicy(); + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authzPolicy. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicy(); + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPolicyOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateBackendAuthenticationConfigRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateBackendAuthenticationConfigRequest.java new file mode 100644 index 000000000000..43c876c46619 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateBackendAuthenticationConfigRequest.java @@ -0,0 +1,1197 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the CreateBackendAuthenticationConfig method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest} + */ +@com.google.protobuf.Generated +public final class CreateBackendAuthenticationConfigRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) + CreateBackendAuthenticationConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateBackendAuthenticationConfigRequest"); + } + + // Use CreateBackendAuthenticationConfigRequest.newBuilder() to construct. + private CreateBackendAuthenticationConfigRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateBackendAuthenticationConfigRequest() { + parent_ = ""; + backendAuthenticationConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest.class, + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +   * in the format `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +   * in the format `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKEND_AUTHENTICATION_CONFIG_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object backendAuthenticationConfigId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +   * created. This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +   * number. E.g. "backend-auth-config".
                                                                                              +   * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfigId. + */ + @java.lang.Override + public java.lang.String getBackendAuthenticationConfigId() { + java.lang.Object ref = backendAuthenticationConfigId_; + 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(); + backendAuthenticationConfigId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +   * created. This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +   * number. E.g. "backend-auth-config".
                                                                                              +   * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for backendAuthenticationConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackendAuthenticationConfigIdBytes() { + java.lang.Object ref = backendAuthenticationConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendAuthenticationConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKEND_AUTHENTICATION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + backendAuthenticationConfig_; + + /** + * + * + *
                                                                                              +   * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendAuthenticationConfig field is set. + */ + @java.lang.Override + public boolean hasBackendAuthenticationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfig. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getBackendAuthenticationConfig() { + return backendAuthenticationConfig_ == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance() + : backendAuthenticationConfig_; + } + + /** + * + * + *
                                                                                              +   * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigOrBuilder() { + return backendAuthenticationConfig_ == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance() + : backendAuthenticationConfig_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backendAuthenticationConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, backendAuthenticationConfigId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBackendAuthenticationConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backendAuthenticationConfigId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, backendAuthenticationConfigId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getBackendAuthenticationConfig()); + } + 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.networksecurity.v1.CreateBackendAuthenticationConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest other = + (com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getBackendAuthenticationConfigId().equals(other.getBackendAuthenticationConfigId())) + return false; + if (hasBackendAuthenticationConfig() != other.hasBackendAuthenticationConfig()) return false; + if (hasBackendAuthenticationConfig()) { + if (!getBackendAuthenticationConfig().equals(other.getBackendAuthenticationConfig())) + 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + BACKEND_AUTHENTICATION_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getBackendAuthenticationConfigId().hashCode(); + if (hasBackendAuthenticationConfig()) { + hash = (37 * hash) + BACKEND_AUTHENTICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBackendAuthenticationConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + 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.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + 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.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateBackendAuthenticationConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the CreateBackendAuthenticationConfig method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest.class, + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackendAuthenticationConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + backendAuthenticationConfigId_ = ""; + backendAuthenticationConfig_ = null; + if (backendAuthenticationConfigBuilder_ != null) { + backendAuthenticationConfigBuilder_.dispose(); + backendAuthenticationConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_CreateBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest build() { + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + buildPartial() { + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest result = + new com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backendAuthenticationConfigId_ = backendAuthenticationConfigId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backendAuthenticationConfig_ = + backendAuthenticationConfigBuilder_ == null + ? backendAuthenticationConfig_ + : backendAuthenticationConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBackendAuthenticationConfigId().isEmpty()) { + backendAuthenticationConfigId_ = other.backendAuthenticationConfigId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBackendAuthenticationConfig()) { + mergeBackendAuthenticationConfig(other.getBackendAuthenticationConfig()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + backendAuthenticationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetBackendAuthenticationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +     * in the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +     * in the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +     * in the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +     * in the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +     * in the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object backendAuthenticationConfigId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +     * created. This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +     * number. E.g. "backend-auth-config".
                                                                                              +     * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfigId. + */ + public java.lang.String getBackendAuthenticationConfigId() { + java.lang.Object ref = backendAuthenticationConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backendAuthenticationConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +     * created. This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +     * number. E.g. "backend-auth-config".
                                                                                              +     * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for backendAuthenticationConfigId. + */ + public com.google.protobuf.ByteString getBackendAuthenticationConfigIdBytes() { + java.lang.Object ref = backendAuthenticationConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendAuthenticationConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +     * created. This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +     * number. E.g. "backend-auth-config".
                                                                                              +     * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The backendAuthenticationConfigId to set. + * @return This builder for chaining. + */ + public Builder setBackendAuthenticationConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backendAuthenticationConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +     * created. This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +     * number. E.g. "backend-auth-config".
                                                                                              +     * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearBackendAuthenticationConfigId() { + backendAuthenticationConfigId_ = getDefaultInstance().getBackendAuthenticationConfigId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +     * created. This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +     * number. E.g. "backend-auth-config".
                                                                                              +     * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for backendAuthenticationConfigId to set. + * @return This builder for chaining. + */ + public Builder setBackendAuthenticationConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backendAuthenticationConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + backendAuthenticationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder> + backendAuthenticationConfigBuilder_; + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendAuthenticationConfig field is set. + */ + public boolean hasBackendAuthenticationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfig. + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getBackendAuthenticationConfig() { + if (backendAuthenticationConfigBuilder_ == null) { + return backendAuthenticationConfig_ == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance() + : backendAuthenticationConfig_; + } else { + return backendAuthenticationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig value) { + if (backendAuthenticationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendAuthenticationConfig_ = value; + } else { + backendAuthenticationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder builderForValue) { + if (backendAuthenticationConfigBuilder_ == null) { + backendAuthenticationConfig_ = builderForValue.build(); + } else { + backendAuthenticationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig value) { + if (backendAuthenticationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && backendAuthenticationConfig_ != null + && backendAuthenticationConfig_ + != com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + .getDefaultInstance()) { + getBackendAuthenticationConfigBuilder().mergeFrom(value); + } else { + backendAuthenticationConfig_ = value; + } + } else { + backendAuthenticationConfigBuilder_.mergeFrom(value); + } + if (backendAuthenticationConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackendAuthenticationConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + backendAuthenticationConfig_ = null; + if (backendAuthenticationConfigBuilder_ != null) { + backendAuthenticationConfigBuilder_.dispose(); + backendAuthenticationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder + getBackendAuthenticationConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBackendAuthenticationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigOrBuilder() { + if (backendAuthenticationConfigBuilder_ != null) { + return backendAuthenticationConfigBuilder_.getMessageOrBuilder(); + } else { + return backendAuthenticationConfig_ == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance() + : backendAuthenticationConfig_; + } + } + + /** + * + * + *
                                                                                              +     * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder> + internalGetBackendAuthenticationConfigFieldBuilder() { + if (backendAuthenticationConfigBuilder_ == null) { + backendAuthenticationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder>( + getBackendAuthenticationConfig(), getParentForChildren(), isClean()); + backendAuthenticationConfig_ = null; + } + return backendAuthenticationConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) + private static final com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackendAuthenticationConfigRequest 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.networksecurity.v1.CreateBackendAuthenticationConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateBackendAuthenticationConfigRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateBackendAuthenticationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..77ba88702883 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateBackendAuthenticationConfigRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateBackendAuthenticationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +   * in the format `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the BackendAuthenticationConfig. Must be
                                                                                              +   * in the format `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +   * created. This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +   * number. E.g. "backend-auth-config".
                                                                                              +   * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfigId. + */ + java.lang.String getBackendAuthenticationConfigId(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the BackendAuthenticationConfig resource to be
                                                                                              +   * created. This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start with a
                                                                                              +   * number. E.g. "backend-auth-config".
                                                                                              +   * 
                                                                                              + * + * string backend_authentication_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for backendAuthenticationConfigId. + */ + com.google.protobuf.ByteString getBackendAuthenticationConfigIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendAuthenticationConfig field is set. + */ + boolean hasBackendAuthenticationConfig(); + + /** + * + * + *
                                                                                              +   * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfig. + */ + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig getBackendAuthenticationConfig(); + + /** + * + * + *
                                                                                              +   * Required. BackendAuthenticationConfig resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java index f2023068eccd..7fe29fec6fc1 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequest.java @@ -140,9 +140,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -   * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -   * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +   * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "client_mtls_policy".
                                                                                                  * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -166,9 +167,10 @@ public java.lang.String getClientTlsPolicyId() { * * *
                                                                                              -   * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -   * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -   * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +   * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "client_mtls_policy".
                                                                                                  * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -764,9 +766,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +     * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "client_mtls_policy".
                                                                                                    * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -789,9 +792,10 @@ public java.lang.String getClientTlsPolicyId() { * * *
                                                                                              -     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +     * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "client_mtls_policy".
                                                                                                    * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -814,9 +818,10 @@ public com.google.protobuf.ByteString getClientTlsPolicyIdBytes() { * * *
                                                                                              -     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +     * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "client_mtls_policy".
                                                                                                    * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -838,9 +843,10 @@ public Builder setClientTlsPolicyId(java.lang.String value) { * * *
                                                                                              -     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +     * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "client_mtls_policy".
                                                                                                    * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -858,9 +864,10 @@ public Builder clearClientTlsPolicyId() { * * *
                                                                                              -     * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +     * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "client_mtls_policy".
                                                                                                    * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java index 17aa60c1b915..d59fd7ba1709 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateClientTlsPolicyRequestOrBuilder.java @@ -62,9 +62,10 @@ public interface CreateClientTlsPolicyRequestOrBuilder * * *
                                                                                              -   * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -   * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -   * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +   * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "client_mtls_policy".
                                                                                                  * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -77,9 +78,10 @@ public interface CreateClientTlsPolicyRequestOrBuilder * * *
                                                                                              -   * Required. Short name of the ClientTlsPolicy resource to be created. This value should
                                                                                              -   * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -   * underscores, and should not start with a number. E.g. "client_mtls_policy".
                                                                                              +   * Required. Short name of the ClientTlsPolicy resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "client_mtls_policy".
                                                                                                  * 
                                                                                              * * string client_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateDnsThreatDetectorRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateDnsThreatDetectorRequest.java new file mode 100644 index 000000000000..555332625b35 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateDnsThreatDetectorRequest.java @@ -0,0 +1,1144 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The message to create a DnsThreatDetector.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest} + */ +@com.google.protobuf.Generated +public final class CreateDnsThreatDetectorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) + CreateDnsThreatDetectorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateDnsThreatDetectorRequest"); + } + + // Use CreateDnsThreatDetectorRequest.newBuilder() to construct. + private CreateDnsThreatDetectorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateDnsThreatDetectorRequest() { + parent_ = ""; + dnsThreatDetectorId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest.class, + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DNS_THREAT_DETECTOR_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dnsThreatDetectorId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +   * If this field is not supplied, the service generates an identifier.
                                                                                              +   * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dnsThreatDetectorId. + */ + @java.lang.Override + public java.lang.String getDnsThreatDetectorId() { + java.lang.Object ref = dnsThreatDetectorId_; + 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(); + dnsThreatDetectorId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +   * If this field is not supplied, the service generates an identifier.
                                                                                              +   * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dnsThreatDetectorId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDnsThreatDetectorIdBytes() { + java.lang.Object ref = dnsThreatDetectorId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dnsThreatDetectorId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DNS_THREAT_DETECTOR_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.DnsThreatDetector dnsThreatDetector_; + + /** + * + * + *
                                                                                              +   * Required. The `DnsThreatDetector` resource to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsThreatDetector field is set. + */ + @java.lang.Override + public boolean hasDnsThreatDetector() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The `DnsThreatDetector` resource to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsThreatDetector. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetector() { + return dnsThreatDetector_ == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance() + : dnsThreatDetector_; + } + + /** + * + * + *
                                                                                              +   * Required. The `DnsThreatDetector` resource to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder + getDnsThreatDetectorOrBuilder() { + return dnsThreatDetector_ == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance() + : dnsThreatDetector_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dnsThreatDetectorId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, dnsThreatDetectorId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDnsThreatDetector()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dnsThreatDetectorId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dnsThreatDetectorId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDnsThreatDetector()); + } + 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.networksecurity.v1.CreateDnsThreatDetectorRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest other = + (com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDnsThreatDetectorId().equals(other.getDnsThreatDetectorId())) return false; + if (hasDnsThreatDetector() != other.hasDnsThreatDetector()) return false; + if (hasDnsThreatDetector()) { + if (!getDnsThreatDetector().equals(other.getDnsThreatDetector())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DNS_THREAT_DETECTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getDnsThreatDetectorId().hashCode(); + if (hasDnsThreatDetector()) { + hash = (37 * hash) + DNS_THREAT_DETECTOR_FIELD_NUMBER; + hash = (53 * hash) + getDnsThreatDetector().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest 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.networksecurity.v1.CreateDnsThreatDetectorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest 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.networksecurity.v1.CreateDnsThreatDetectorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateDnsThreatDetectorRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The message to create a DnsThreatDetector.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest.class, + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDnsThreatDetectorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + dnsThreatDetectorId_ = ""; + dnsThreatDetector_ = null; + if (dnsThreatDetectorBuilder_ != null) { + dnsThreatDetectorBuilder_.dispose(); + dnsThreatDetectorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest build() { + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest result = + new com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dnsThreatDetectorId_ = dnsThreatDetectorId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dnsThreatDetector_ = + dnsThreatDetectorBuilder_ == null + ? dnsThreatDetector_ + : dnsThreatDetectorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDnsThreatDetectorId().isEmpty()) { + dnsThreatDetectorId_ = other.dnsThreatDetectorId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDnsThreatDetector()) { + mergeDnsThreatDetector(other.getDnsThreatDetector()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dnsThreatDetectorId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDnsThreatDetectorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dnsThreatDetectorId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +     * If this field is not supplied, the service generates an identifier.
                                                                                              +     * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dnsThreatDetectorId. + */ + public java.lang.String getDnsThreatDetectorId() { + java.lang.Object ref = dnsThreatDetectorId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dnsThreatDetectorId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +     * If this field is not supplied, the service generates an identifier.
                                                                                              +     * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dnsThreatDetectorId. + */ + public com.google.protobuf.ByteString getDnsThreatDetectorIdBytes() { + java.lang.Object ref = dnsThreatDetectorId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dnsThreatDetectorId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +     * If this field is not supplied, the service generates an identifier.
                                                                                              +     * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dnsThreatDetectorId to set. + * @return This builder for chaining. + */ + public Builder setDnsThreatDetectorId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dnsThreatDetectorId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +     * If this field is not supplied, the service generates an identifier.
                                                                                              +     * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDnsThreatDetectorId() { + dnsThreatDetectorId_ = getDefaultInstance().getDnsThreatDetectorId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +     * If this field is not supplied, the service generates an identifier.
                                                                                              +     * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dnsThreatDetectorId to set. + * @return This builder for chaining. + */ + public Builder setDnsThreatDetectorIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dnsThreatDetectorId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.DnsThreatDetector dnsThreatDetector_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder> + dnsThreatDetectorBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsThreatDetector field is set. + */ + public boolean hasDnsThreatDetector() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsThreatDetector. + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetector() { + if (dnsThreatDetectorBuilder_ == null) { + return dnsThreatDetector_ == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance() + : dnsThreatDetector_; + } else { + return dnsThreatDetectorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDnsThreatDetector( + com.google.cloud.networksecurity.v1.DnsThreatDetector value) { + if (dnsThreatDetectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsThreatDetector_ = value; + } else { + dnsThreatDetectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDnsThreatDetector( + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder builderForValue) { + if (dnsThreatDetectorBuilder_ == null) { + dnsThreatDetector_ = builderForValue.build(); + } else { + dnsThreatDetectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDnsThreatDetector( + com.google.cloud.networksecurity.v1.DnsThreatDetector value) { + if (dnsThreatDetectorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && dnsThreatDetector_ != null + && dnsThreatDetector_ + != com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance()) { + getDnsThreatDetectorBuilder().mergeFrom(value); + } else { + dnsThreatDetector_ = value; + } + } else { + dnsThreatDetectorBuilder_.mergeFrom(value); + } + if (dnsThreatDetector_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDnsThreatDetector() { + bitField0_ = (bitField0_ & ~0x00000004); + dnsThreatDetector_ = null; + if (dnsThreatDetectorBuilder_ != null) { + dnsThreatDetectorBuilder_.dispose(); + dnsThreatDetectorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder + getDnsThreatDetectorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDnsThreatDetectorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder + getDnsThreatDetectorOrBuilder() { + if (dnsThreatDetectorBuilder_ != null) { + return dnsThreatDetectorBuilder_.getMessageOrBuilder(); + } else { + return dnsThreatDetector_ == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance() + : dnsThreatDetector_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The `DnsThreatDetector` resource to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder> + internalGetDnsThreatDetectorFieldBuilder() { + if (dnsThreatDetectorBuilder_ == null) { + dnsThreatDetectorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder>( + getDnsThreatDetector(), getParentForChildren(), isClean()); + dnsThreatDetector_ = null; + } + return dnsThreatDetectorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) + private static final com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDnsThreatDetectorRequest 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.networksecurity.v1.CreateDnsThreatDetectorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateDnsThreatDetectorRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateDnsThreatDetectorRequestOrBuilder.java new file mode 100644 index 000000000000..87fc40bb8a42 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateDnsThreatDetectorRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateDnsThreatDetectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The value for the parent of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +   * If this field is not supplied, the service generates an identifier.
                                                                                              +   * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dnsThreatDetectorId. + */ + java.lang.String getDnsThreatDetectorId(); + + /** + * + * + *
                                                                                              +   * Optional. The ID of the requesting DnsThreatDetector object.
                                                                                              +   * If this field is not supplied, the service generates an identifier.
                                                                                              +   * 
                                                                                              + * + * string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dnsThreatDetectorId. + */ + com.google.protobuf.ByteString getDnsThreatDetectorIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The `DnsThreatDetector` resource to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsThreatDetector field is set. + */ + boolean hasDnsThreatDetector(); + + /** + * + * + *
                                                                                              +   * Required. The `DnsThreatDetector` resource to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsThreatDetector. + */ + com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetector(); + + /** + * + * + *
                                                                                              +   * Required. The `DnsThreatDetector` resource to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder getDnsThreatDetectorOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointAssociationRequest.java new file mode 100644 index 000000000000..58f3abcced72 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointAssociationRequest.java @@ -0,0 +1,1456 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for creating a Association
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest} + */ +@com.google.protobuf.Generated +public final class CreateFirewallEndpointAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) + CreateFirewallEndpointAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateFirewallEndpointAssociationRequest"); + } + + // Use CreateFirewallEndpointAssociationRequest.newBuilder() to construct. + private CreateFirewallEndpointAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateFirewallEndpointAssociationRequest() { + parent_ = ""; + firewallEndpointAssociationId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest.class, + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Value for parent.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Value for parent.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREWALL_ENDPOINT_ASSOCIATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object firewallEndpointAssociationId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Id of the requesting object.
                                                                                              +   * If auto-generating Id server-side, remove this field and
                                                                                              +   * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The firewallEndpointAssociationId. + */ + @java.lang.Override + public java.lang.String getFirewallEndpointAssociationId() { + java.lang.Object ref = firewallEndpointAssociationId_; + 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(); + firewallEndpointAssociationId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Id of the requesting object.
                                                                                              +   * If auto-generating Id server-side, remove this field and
                                                                                              +   * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for firewallEndpointAssociationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirewallEndpointAssociationIdBytes() { + java.lang.Object ref = firewallEndpointAssociationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firewallEndpointAssociationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREWALL_ENDPOINT_ASSOCIATION_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + firewallEndpointAssociation_; + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpointAssociation field is set. + */ + @java.lang.Override + public boolean hasFirewallEndpointAssociation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpointAssociation. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getFirewallEndpointAssociation() { + return firewallEndpointAssociation_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance() + : firewallEndpointAssociation_; + } + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationOrBuilder() { + return firewallEndpointAssociation_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance() + : firewallEndpointAssociation_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firewallEndpointAssociationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, firewallEndpointAssociationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFirewallEndpointAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firewallEndpointAssociationId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, firewallEndpointAssociationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getFirewallEndpointAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateFirewallEndpointAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest other = + (com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFirewallEndpointAssociationId().equals(other.getFirewallEndpointAssociationId())) + return false; + if (hasFirewallEndpointAssociation() != other.hasFirewallEndpointAssociation()) return false; + if (hasFirewallEndpointAssociation()) { + if (!getFirewallEndpointAssociation().equals(other.getFirewallEndpointAssociation())) + return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FIREWALL_ENDPOINT_ASSOCIATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpointAssociationId().hashCode(); + if (hasFirewallEndpointAssociation()) { + hash = (37 * hash) + FIREWALL_ENDPOINT_ASSOCIATION_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpointAssociation().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + 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.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + 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.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateFirewallEndpointAssociationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for creating a Association
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest.class, + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFirewallEndpointAssociationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + firewallEndpointAssociationId_ = ""; + firewallEndpointAssociation_ = null; + if (firewallEndpointAssociationBuilder_ != null) { + firewallEndpointAssociationBuilder_.dispose(); + firewallEndpointAssociationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest build() { + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest result = + new com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firewallEndpointAssociationId_ = firewallEndpointAssociationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.firewallEndpointAssociation_ = + firewallEndpointAssociationBuilder_ == null + ? firewallEndpointAssociation_ + : firewallEndpointAssociationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFirewallEndpointAssociationId().isEmpty()) { + firewallEndpointAssociationId_ = other.firewallEndpointAssociationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFirewallEndpointAssociation()) { + mergeFirewallEndpointAssociation(other.getFirewallEndpointAssociation()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + firewallEndpointAssociationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetFirewallEndpointAssociationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object firewallEndpointAssociationId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The firewallEndpointAssociationId. + */ + public java.lang.String getFirewallEndpointAssociationId() { + java.lang.Object ref = firewallEndpointAssociationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firewallEndpointAssociationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for firewallEndpointAssociationId. + */ + public com.google.protobuf.ByteString getFirewallEndpointAssociationIdBytes() { + java.lang.Object ref = firewallEndpointAssociationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firewallEndpointAssociationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The firewallEndpointAssociationId to set. + * @return This builder for chaining. + */ + public Builder setFirewallEndpointAssociationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firewallEndpointAssociationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFirewallEndpointAssociationId() { + firewallEndpointAssociationId_ = getDefaultInstance().getFirewallEndpointAssociationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for firewallEndpointAssociationId to set. + * @return This builder for chaining. + */ + public Builder setFirewallEndpointAssociationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firewallEndpointAssociationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + firewallEndpointAssociation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder> + firewallEndpointAssociationBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpointAssociation field is set. + */ + public boolean hasFirewallEndpointAssociation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpointAssociation. + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getFirewallEndpointAssociation() { + if (firewallEndpointAssociationBuilder_ == null) { + return firewallEndpointAssociation_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance() + : firewallEndpointAssociation_; + } else { + return firewallEndpointAssociationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation value) { + if (firewallEndpointAssociationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firewallEndpointAssociation_ = value; + } else { + firewallEndpointAssociationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder builderForValue) { + if (firewallEndpointAssociationBuilder_ == null) { + firewallEndpointAssociation_ = builderForValue.build(); + } else { + firewallEndpointAssociationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation value) { + if (firewallEndpointAssociationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && firewallEndpointAssociation_ != null + && firewallEndpointAssociation_ + != com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + .getDefaultInstance()) { + getFirewallEndpointAssociationBuilder().mergeFrom(value); + } else { + firewallEndpointAssociation_ = value; + } + } else { + firewallEndpointAssociationBuilder_.mergeFrom(value); + } + if (firewallEndpointAssociation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFirewallEndpointAssociation() { + bitField0_ = (bitField0_ & ~0x00000004); + firewallEndpointAssociation_ = null; + if (firewallEndpointAssociationBuilder_ != null) { + firewallEndpointAssociationBuilder_.dispose(); + firewallEndpointAssociationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder + getFirewallEndpointAssociationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetFirewallEndpointAssociationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationOrBuilder() { + if (firewallEndpointAssociationBuilder_ != null) { + return firewallEndpointAssociationBuilder_.getMessageOrBuilder(); + } else { + return firewallEndpointAssociation_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance() + : firewallEndpointAssociation_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder> + internalGetFirewallEndpointAssociationFieldBuilder() { + if (firewallEndpointAssociationBuilder_ == null) { + firewallEndpointAssociationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder>( + getFirewallEndpointAssociation(), getParentForChildren(), isClean()); + firewallEndpointAssociation_ = null; + } + return firewallEndpointAssociationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) + private static final com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFirewallEndpointAssociationRequest 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.networksecurity.v1.CreateFirewallEndpointAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..0fdc10cc27d9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointAssociationRequestOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateFirewallEndpointAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Value for parent.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. Value for parent.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Id of the requesting object.
                                                                                              +   * If auto-generating Id server-side, remove this field and
                                                                                              +   * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The firewallEndpointAssociationId. + */ + java.lang.String getFirewallEndpointAssociationId(); + + /** + * + * + *
                                                                                              +   * Optional. Id of the requesting object.
                                                                                              +   * If auto-generating Id server-side, remove this field and
                                                                                              +   * firewall_endpoint_association_id from the method_signature of Create RPC.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for firewallEndpointAssociationId. + */ + com.google.protobuf.ByteString getFirewallEndpointAssociationIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpointAssociation field is set. + */ + boolean hasFirewallEndpointAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpointAssociation. + */ + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation getFirewallEndpointAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointRequest.java new file mode 100644 index 000000000000..f4415b95f767 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointRequest.java @@ -0,0 +1,1419 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for creating a Endpoint
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateFirewallEndpointRequest} + */ +@com.google.protobuf.Generated +public final class CreateFirewallEndpointRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) + CreateFirewallEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateFirewallEndpointRequest"); + } + + // Use CreateFirewallEndpointRequest.newBuilder() to construct. + private CreateFirewallEndpointRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateFirewallEndpointRequest() { + parent_ = ""; + firewallEndpointId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest.class, + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Value for parent.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Value for parent.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREWALL_ENDPOINT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object firewallEndpointId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Id of the requesting object.
                                                                                              +   * If auto-generating Id server-side, remove this field and
                                                                                              +   * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The firewallEndpointId. + */ + @java.lang.Override + public java.lang.String getFirewallEndpointId() { + java.lang.Object ref = firewallEndpointId_; + 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(); + firewallEndpointId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Id of the requesting object.
                                                                                              +   * If auto-generating Id server-side, remove this field and
                                                                                              +   * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for firewallEndpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirewallEndpointIdBytes() { + java.lang.Object ref = firewallEndpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firewallEndpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREWALL_ENDPOINT_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.FirewallEndpoint firewallEndpoint_; + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpoint field is set. + */ + @java.lang.Override + public boolean hasFirewallEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpoint. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoint() { + return firewallEndpoint_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance() + : firewallEndpoint_; + } + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder + getFirewallEndpointOrBuilder() { + return firewallEndpoint_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance() + : firewallEndpoint_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firewallEndpointId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, firewallEndpointId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFirewallEndpoint()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firewallEndpointId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, firewallEndpointId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFirewallEndpoint()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateFirewallEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest other = + (com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFirewallEndpointId().equals(other.getFirewallEndpointId())) return false; + if (hasFirewallEndpoint() != other.hasFirewallEndpoint()) return false; + if (hasFirewallEndpoint()) { + if (!getFirewallEndpoint().equals(other.getFirewallEndpoint())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FIREWALL_ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpointId().hashCode(); + if (hasFirewallEndpoint()) { + hash = (37 * hash) + FIREWALL_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpoint().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest 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.networksecurity.v1.CreateFirewallEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest 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.networksecurity.v1.CreateFirewallEndpointRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateFirewallEndpointRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for creating a Endpoint
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateFirewallEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest.class, + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFirewallEndpointFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + firewallEndpointId_ = ""; + firewallEndpoint_ = null; + if (firewallEndpointBuilder_ != null) { + firewallEndpointBuilder_.dispose(); + firewallEndpointBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest build() { + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest result = + new com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firewallEndpointId_ = firewallEndpointId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.firewallEndpoint_ = + firewallEndpointBuilder_ == null ? firewallEndpoint_ : firewallEndpointBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFirewallEndpointId().isEmpty()) { + firewallEndpointId_ = other.firewallEndpointId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFirewallEndpoint()) { + mergeFirewallEndpoint(other.getFirewallEndpoint()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + firewallEndpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetFirewallEndpointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Value for parent.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object firewallEndpointId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The firewallEndpointId. + */ + public java.lang.String getFirewallEndpointId() { + java.lang.Object ref = firewallEndpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firewallEndpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for firewallEndpointId. + */ + public com.google.protobuf.ByteString getFirewallEndpointIdBytes() { + java.lang.Object ref = firewallEndpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firewallEndpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The firewallEndpointId to set. + * @return This builder for chaining. + */ + public Builder setFirewallEndpointId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firewallEndpointId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFirewallEndpointId() { + firewallEndpointId_ = getDefaultInstance().getFirewallEndpointId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Id of the requesting object.
                                                                                              +     * If auto-generating Id server-side, remove this field and
                                                                                              +     * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for firewallEndpointId to set. + * @return This builder for chaining. + */ + public Builder setFirewallEndpointIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firewallEndpointId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.FirewallEndpoint firewallEndpoint_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder> + firewallEndpointBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpoint field is set. + */ + public boolean hasFirewallEndpoint() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpoint. + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoint() { + if (firewallEndpointBuilder_ == null) { + return firewallEndpoint_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance() + : firewallEndpoint_; + } else { + return firewallEndpointBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirewallEndpoint(com.google.cloud.networksecurity.v1.FirewallEndpoint value) { + if (firewallEndpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firewallEndpoint_ = value; + } else { + firewallEndpointBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirewallEndpoint( + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder builderForValue) { + if (firewallEndpointBuilder_ == null) { + firewallEndpoint_ = builderForValue.build(); + } else { + firewallEndpointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFirewallEndpoint( + com.google.cloud.networksecurity.v1.FirewallEndpoint value) { + if (firewallEndpointBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && firewallEndpoint_ != null + && firewallEndpoint_ + != com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance()) { + getFirewallEndpointBuilder().mergeFrom(value); + } else { + firewallEndpoint_ = value; + } + } else { + firewallEndpointBuilder_.mergeFrom(value); + } + if (firewallEndpoint_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFirewallEndpoint() { + bitField0_ = (bitField0_ & ~0x00000004); + firewallEndpoint_ = null; + if (firewallEndpointBuilder_ != null) { + firewallEndpointBuilder_.dispose(); + firewallEndpointBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder + getFirewallEndpointBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetFirewallEndpointFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder + getFirewallEndpointOrBuilder() { + if (firewallEndpointBuilder_ != null) { + return firewallEndpointBuilder_.getMessageOrBuilder(); + } else { + return firewallEndpoint_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance() + : firewallEndpoint_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The resource being created
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder> + internalGetFirewallEndpointFieldBuilder() { + if (firewallEndpointBuilder_ == null) { + firewallEndpointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder>( + getFirewallEndpoint(), getParentForChildren(), isClean()); + firewallEndpoint_ = null; + } + return firewallEndpointBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) + private static final com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFirewallEndpointRequest 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.networksecurity.v1.CreateFirewallEndpointRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointRequestOrBuilder.java new file mode 100644 index 000000000000..4665cd11de53 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateFirewallEndpointRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateFirewallEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateFirewallEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Value for parent.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. Value for parent.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. Id of the requesting object.
                                                                                              +   * If auto-generating Id server-side, remove this field and
                                                                                              +   * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The firewallEndpointId. + */ + java.lang.String getFirewallEndpointId(); + + /** + * + * + *
                                                                                              +   * Required. Id of the requesting object.
                                                                                              +   * If auto-generating Id server-side, remove this field and
                                                                                              +   * firewall_endpoint_id from the method_signature of Create RPC.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for firewallEndpointId. + */ + com.google.protobuf.ByteString getFirewallEndpointIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpoint field is set. + */ + boolean hasFirewallEndpoint(); + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpoint. + */ + com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoint(); + + /** + * + * + *
                                                                                              +   * Required. The resource being created
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder getFirewallEndpointOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRequest.java new file mode 100644 index 000000000000..4b976cdc5c1d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRequest.java @@ -0,0 +1,1168 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the CreateGatewaySecurityPolicy method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateGatewaySecurityPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) + CreateGatewaySecurityPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateGatewaySecurityPolicyRequest"); + } + + // Use CreateGatewaySecurityPolicyRequest.newBuilder() to construct. + private CreateGatewaySecurityPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateGatewaySecurityPolicyRequest() { + parent_ = ""; + gatewaySecurityPolicyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest.class, + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GATEWAY_SECURITY_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gatewaySecurityPolicyId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "gateway_security_policy1".
                                                                                              +   * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gatewaySecurityPolicyId. + */ + @java.lang.Override + public java.lang.String getGatewaySecurityPolicyId() { + java.lang.Object ref = gatewaySecurityPolicyId_; + 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(); + gatewaySecurityPolicyId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "gateway_security_policy1".
                                                                                              +   * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gatewaySecurityPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGatewaySecurityPolicyIdBytes() { + java.lang.Object ref = gatewaySecurityPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gatewaySecurityPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GATEWAY_SECURITY_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.GatewaySecurityPolicy gatewaySecurityPolicy_; + + /** + * + * + *
                                                                                              +   * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicy field is set. + */ + @java.lang.Override + public boolean hasGatewaySecurityPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicy. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicy() { + return gatewaySecurityPolicy_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance() + : gatewaySecurityPolicy_; + } + + /** + * + * + *
                                                                                              +   * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPolicyOrBuilder() { + return gatewaySecurityPolicy_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance() + : gatewaySecurityPolicy_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gatewaySecurityPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, gatewaySecurityPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getGatewaySecurityPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gatewaySecurityPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, gatewaySecurityPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGatewaySecurityPolicy()); + } + 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.networksecurity.v1.CreateGatewaySecurityPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest other = + (com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getGatewaySecurityPolicyId().equals(other.getGatewaySecurityPolicyId())) return false; + if (hasGatewaySecurityPolicy() != other.hasGatewaySecurityPolicy()) return false; + if (hasGatewaySecurityPolicy()) { + if (!getGatewaySecurityPolicy().equals(other.getGatewaySecurityPolicy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + GATEWAY_SECURITY_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getGatewaySecurityPolicyId().hashCode(); + if (hasGatewaySecurityPolicy()) { + hash = (37 * hash) + GATEWAY_SECURITY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getGatewaySecurityPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest 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.networksecurity.v1.CreateGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest 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.networksecurity.v1.CreateGatewaySecurityPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateGatewaySecurityPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the CreateGatewaySecurityPolicy method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest.class, + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGatewaySecurityPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + gatewaySecurityPolicyId_ = ""; + gatewaySecurityPolicy_ = null; + if (gatewaySecurityPolicyBuilder_ != null) { + gatewaySecurityPolicyBuilder_.dispose(); + gatewaySecurityPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest build() { + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest result = + new com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gatewaySecurityPolicyId_ = gatewaySecurityPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gatewaySecurityPolicy_ = + gatewaySecurityPolicyBuilder_ == null + ? gatewaySecurityPolicy_ + : gatewaySecurityPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGatewaySecurityPolicyId().isEmpty()) { + gatewaySecurityPolicyId_ = other.gatewaySecurityPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasGatewaySecurityPolicy()) { + mergeGatewaySecurityPolicy(other.getGatewaySecurityPolicy()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gatewaySecurityPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetGatewaySecurityPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object gatewaySecurityPolicyId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "gateway_security_policy1".
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gatewaySecurityPolicyId. + */ + public java.lang.String getGatewaySecurityPolicyId() { + java.lang.Object ref = gatewaySecurityPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gatewaySecurityPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "gateway_security_policy1".
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gatewaySecurityPolicyId. + */ + public com.google.protobuf.ByteString getGatewaySecurityPolicyIdBytes() { + java.lang.Object ref = gatewaySecurityPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gatewaySecurityPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "gateway_security_policy1".
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gatewaySecurityPolicyId to set. + * @return This builder for chaining. + */ + public Builder setGatewaySecurityPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gatewaySecurityPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "gateway_security_policy1".
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGatewaySecurityPolicyId() { + gatewaySecurityPolicyId_ = getDefaultInstance().getGatewaySecurityPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "gateway_security_policy1".
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gatewaySecurityPolicyId to set. + * @return This builder for chaining. + */ + public Builder setGatewaySecurityPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewaySecurityPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.GatewaySecurityPolicy gatewaySecurityPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder> + gatewaySecurityPolicyBuilder_; + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicy field is set. + */ + public boolean hasGatewaySecurityPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicy. + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicy() { + if (gatewaySecurityPolicyBuilder_ == null) { + return gatewaySecurityPolicy_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance() + : gatewaySecurityPolicy_; + } else { + return gatewaySecurityPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy value) { + if (gatewaySecurityPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gatewaySecurityPolicy_ = value; + } else { + gatewaySecurityPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder builderForValue) { + if (gatewaySecurityPolicyBuilder_ == null) { + gatewaySecurityPolicy_ = builderForValue.build(); + } else { + gatewaySecurityPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy value) { + if (gatewaySecurityPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && gatewaySecurityPolicy_ != null + && gatewaySecurityPolicy_ + != com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance()) { + getGatewaySecurityPolicyBuilder().mergeFrom(value); + } else { + gatewaySecurityPolicy_ = value; + } + } else { + gatewaySecurityPolicyBuilder_.mergeFrom(value); + } + if (gatewaySecurityPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGatewaySecurityPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + gatewaySecurityPolicy_ = null; + if (gatewaySecurityPolicyBuilder_ != null) { + gatewaySecurityPolicyBuilder_.dispose(); + gatewaySecurityPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder + getGatewaySecurityPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetGatewaySecurityPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPolicyOrBuilder() { + if (gatewaySecurityPolicyBuilder_ != null) { + return gatewaySecurityPolicyBuilder_.getMessageOrBuilder(); + } else { + return gatewaySecurityPolicy_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance() + : gatewaySecurityPolicy_; + } + } + + /** + * + * + *
                                                                                              +     * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder> + internalGetGatewaySecurityPolicyFieldBuilder() { + if (gatewaySecurityPolicyBuilder_ == null) { + gatewaySecurityPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder>( + getGatewaySecurityPolicy(), getParentForChildren(), isClean()); + gatewaySecurityPolicy_ = null; + } + return gatewaySecurityPolicyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) + private static final com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGatewaySecurityPolicyRequest 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.networksecurity.v1.CreateGatewaySecurityPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..dacec8034347 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateGatewaySecurityPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the GatewaySecurityPolicy. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "gateway_security_policy1".
                                                                                              +   * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gatewaySecurityPolicyId. + */ + java.lang.String getGatewaySecurityPolicyId(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the GatewaySecurityPolicy resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "gateway_security_policy1".
                                                                                              +   * 
                                                                                              + * + * string gateway_security_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gatewaySecurityPolicyId. + */ + com.google.protobuf.ByteString getGatewaySecurityPolicyIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicy field is set. + */ + boolean hasGatewaySecurityPolicy(); + + /** + * + * + *
                                                                                              +   * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicy. + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicy(); + + /** + * + * + *
                                                                                              +   * Required. GatewaySecurityPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPolicyOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRuleRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRuleRequest.java new file mode 100644 index 000000000000..92615a0d94c4 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRuleRequest.java @@ -0,0 +1,1198 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Methods for GatewaySecurityPolicy RULES/GatewaySecurityPolicyRules.
                                                                                              + * Request used by the CreateGatewaySecurityPolicyRule method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest} + */ +@com.google.protobuf.Generated +public final class CreateGatewaySecurityPolicyRuleRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) + CreateGatewaySecurityPolicyRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateGatewaySecurityPolicyRuleRequest"); + } + + // Use CreateGatewaySecurityPolicyRuleRequest.newBuilder() to construct. + private CreateGatewaySecurityPolicyRuleRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateGatewaySecurityPolicyRuleRequest() { + parent_ = ""; + gatewaySecurityPolicyRuleId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest.class, + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent where this rule will be created.
                                                                                              +   * Format :
                                                                                              +   * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent where this rule will be created.
                                                                                              +   * Format :
                                                                                              +   * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GATEWAY_SECURITY_POLICY_RULE_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gatewaySecurityPolicyRule_; + + /** + * + * + *
                                                                                              +   * Required. The rule to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicyRule field is set. + */ + @java.lang.Override + public boolean hasGatewaySecurityPolicyRule() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The rule to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicyRule. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getGatewaySecurityPolicyRule() { + return gatewaySecurityPolicyRule_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance() + : gatewaySecurityPolicyRule_; + } + + /** + * + * + *
                                                                                              +   * Required. The rule to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRuleOrBuilder() { + return gatewaySecurityPolicyRule_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance() + : gatewaySecurityPolicyRule_; + } + + public static final int GATEWAY_SECURITY_POLICY_RULE_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gatewaySecurityPolicyRuleId_ = ""; + + /** + * + * + *
                                                                                              +   * The ID to use for the rule, which will become the final component of
                                                                                              +   * the rule's resource name.
                                                                                              +   * This value should be 4-63 characters, and valid characters
                                                                                              +   * are /[a-z][0-9]-/.
                                                                                              +   * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @return The gatewaySecurityPolicyRuleId. + */ + @java.lang.Override + public java.lang.String getGatewaySecurityPolicyRuleId() { + java.lang.Object ref = gatewaySecurityPolicyRuleId_; + 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(); + gatewaySecurityPolicyRuleId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * The ID to use for the rule, which will become the final component of
                                                                                              +   * the rule's resource name.
                                                                                              +   * This value should be 4-63 characters, and valid characters
                                                                                              +   * are /[a-z][0-9]-/.
                                                                                              +   * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @return The bytes for gatewaySecurityPolicyRuleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGatewaySecurityPolicyRuleIdBytes() { + java.lang.Object ref = gatewaySecurityPolicyRuleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gatewaySecurityPolicyRuleId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getGatewaySecurityPolicyRule()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gatewaySecurityPolicyRuleId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, gatewaySecurityPolicyRuleId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getGatewaySecurityPolicyRule()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gatewaySecurityPolicyRuleId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(3, gatewaySecurityPolicyRuleId_); + } + 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.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest other = + (com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasGatewaySecurityPolicyRule() != other.hasGatewaySecurityPolicyRule()) return false; + if (hasGatewaySecurityPolicyRule()) { + if (!getGatewaySecurityPolicyRule().equals(other.getGatewaySecurityPolicyRule())) + return false; + } + if (!getGatewaySecurityPolicyRuleId().equals(other.getGatewaySecurityPolicyRuleId())) + 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasGatewaySecurityPolicyRule()) { + hash = (37 * hash) + GATEWAY_SECURITY_POLICY_RULE_FIELD_NUMBER; + hash = (53 * hash) + getGatewaySecurityPolicyRule().hashCode(); + } + hash = (37 * hash) + GATEWAY_SECURITY_POLICY_RULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getGatewaySecurityPolicyRuleId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + 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.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + 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.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Methods for GatewaySecurityPolicy RULES/GatewaySecurityPolicyRules.
                                                                                              +   * Request used by the CreateGatewaySecurityPolicyRule method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest.class, + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGatewaySecurityPolicyRuleFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + gatewaySecurityPolicyRule_ = null; + if (gatewaySecurityPolicyRuleBuilder_ != null) { + gatewaySecurityPolicyRuleBuilder_.dispose(); + gatewaySecurityPolicyRuleBuilder_ = null; + } + gatewaySecurityPolicyRuleId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest build() { + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + buildPartial() { + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest result = + new com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gatewaySecurityPolicyRule_ = + gatewaySecurityPolicyRuleBuilder_ == null + ? gatewaySecurityPolicyRule_ + : gatewaySecurityPolicyRuleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gatewaySecurityPolicyRuleId_ = gatewaySecurityPolicyRuleId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasGatewaySecurityPolicyRule()) { + mergeGatewaySecurityPolicyRule(other.getGatewaySecurityPolicyRule()); + } + if (!other.getGatewaySecurityPolicyRuleId().isEmpty()) { + gatewaySecurityPolicyRuleId_ = other.gatewaySecurityPolicyRuleId_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetGatewaySecurityPolicyRuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + gatewaySecurityPolicyRuleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent where this rule will be created.
                                                                                              +     * Format :
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent where this rule will be created.
                                                                                              +     * Format :
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent where this rule will be created.
                                                                                              +     * Format :
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent where this rule will be created.
                                                                                              +     * Format :
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent where this rule will be created.
                                                                                              +     * Format :
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + gatewaySecurityPolicyRule_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder> + gatewaySecurityPolicyRuleBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicyRule field is set. + */ + public boolean hasGatewaySecurityPolicyRule() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicyRule. + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getGatewaySecurityPolicyRule() { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + return gatewaySecurityPolicyRule_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance() + : gatewaySecurityPolicyRule_; + } else { + return gatewaySecurityPolicyRuleBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule value) { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gatewaySecurityPolicyRule_ = value; + } else { + gatewaySecurityPolicyRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder builderForValue) { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + gatewaySecurityPolicyRule_ = builderForValue.build(); + } else { + gatewaySecurityPolicyRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule value) { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && gatewaySecurityPolicyRule_ != null + && gatewaySecurityPolicyRule_ + != com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + .getDefaultInstance()) { + getGatewaySecurityPolicyRuleBuilder().mergeFrom(value); + } else { + gatewaySecurityPolicyRule_ = value; + } + } else { + gatewaySecurityPolicyRuleBuilder_.mergeFrom(value); + } + if (gatewaySecurityPolicyRule_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGatewaySecurityPolicyRule() { + bitField0_ = (bitField0_ & ~0x00000002); + gatewaySecurityPolicyRule_ = null; + if (gatewaySecurityPolicyRuleBuilder_ != null) { + gatewaySecurityPolicyRuleBuilder_.dispose(); + gatewaySecurityPolicyRuleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder + getGatewaySecurityPolicyRuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetGatewaySecurityPolicyRuleFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRuleOrBuilder() { + if (gatewaySecurityPolicyRuleBuilder_ != null) { + return gatewaySecurityPolicyRuleBuilder_.getMessageOrBuilder(); + } else { + return gatewaySecurityPolicyRule_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance() + : gatewaySecurityPolicyRule_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The rule to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder> + internalGetGatewaySecurityPolicyRuleFieldBuilder() { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + gatewaySecurityPolicyRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder>( + getGatewaySecurityPolicyRule(), getParentForChildren(), isClean()); + gatewaySecurityPolicyRule_ = null; + } + return gatewaySecurityPolicyRuleBuilder_; + } + + private java.lang.Object gatewaySecurityPolicyRuleId_ = ""; + + /** + * + * + *
                                                                                              +     * The ID to use for the rule, which will become the final component of
                                                                                              +     * the rule's resource name.
                                                                                              +     * This value should be 4-63 characters, and valid characters
                                                                                              +     * are /[a-z][0-9]-/.
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @return The gatewaySecurityPolicyRuleId. + */ + public java.lang.String getGatewaySecurityPolicyRuleId() { + java.lang.Object ref = gatewaySecurityPolicyRuleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gatewaySecurityPolicyRuleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * The ID to use for the rule, which will become the final component of
                                                                                              +     * the rule's resource name.
                                                                                              +     * This value should be 4-63 characters, and valid characters
                                                                                              +     * are /[a-z][0-9]-/.
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @return The bytes for gatewaySecurityPolicyRuleId. + */ + public com.google.protobuf.ByteString getGatewaySecurityPolicyRuleIdBytes() { + java.lang.Object ref = gatewaySecurityPolicyRuleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gatewaySecurityPolicyRuleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * The ID to use for the rule, which will become the final component of
                                                                                              +     * the rule's resource name.
                                                                                              +     * This value should be 4-63 characters, and valid characters
                                                                                              +     * are /[a-z][0-9]-/.
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @param value The gatewaySecurityPolicyRuleId to set. + * @return This builder for chaining. + */ + public Builder setGatewaySecurityPolicyRuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gatewaySecurityPolicyRuleId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The ID to use for the rule, which will become the final component of
                                                                                              +     * the rule's resource name.
                                                                                              +     * This value should be 4-63 characters, and valid characters
                                                                                              +     * are /[a-z][0-9]-/.
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearGatewaySecurityPolicyRuleId() { + gatewaySecurityPolicyRuleId_ = getDefaultInstance().getGatewaySecurityPolicyRuleId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The ID to use for the rule, which will become the final component of
                                                                                              +     * the rule's resource name.
                                                                                              +     * This value should be 4-63 characters, and valid characters
                                                                                              +     * are /[a-z][0-9]-/.
                                                                                              +     * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @param value The bytes for gatewaySecurityPolicyRuleId to set. + * @return This builder for chaining. + */ + public Builder setGatewaySecurityPolicyRuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewaySecurityPolicyRuleId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) + private static final com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGatewaySecurityPolicyRuleRequest 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.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRuleRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRuleRequestOrBuilder.java new file mode 100644 index 000000000000..de2b8850f82d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateGatewaySecurityPolicyRuleRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateGatewaySecurityPolicyRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent where this rule will be created.
                                                                                              +   * Format :
                                                                                              +   * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent where this rule will be created.
                                                                                              +   * Format :
                                                                                              +   * projects/{project}/location/{location}/gatewaySecurityPolicies/*
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. The rule to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicyRule field is set. + */ + boolean hasGatewaySecurityPolicyRule(); + + /** + * + * + *
                                                                                              +   * Required. The rule to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicyRule. + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule getGatewaySecurityPolicyRule(); + + /** + * + * + *
                                                                                              +   * Required. The rule to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRuleOrBuilder(); + + /** + * + * + *
                                                                                              +   * The ID to use for the rule, which will become the final component of
                                                                                              +   * the rule's resource name.
                                                                                              +   * This value should be 4-63 characters, and valid characters
                                                                                              +   * are /[a-z][0-9]-/.
                                                                                              +   * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @return The gatewaySecurityPolicyRuleId. + */ + java.lang.String getGatewaySecurityPolicyRuleId(); + + /** + * + * + *
                                                                                              +   * The ID to use for the rule, which will become the final component of
                                                                                              +   * the rule's resource name.
                                                                                              +   * This value should be 4-63 characters, and valid characters
                                                                                              +   * are /[a-z][0-9]-/.
                                                                                              +   * 
                                                                                              + * + * string gateway_security_policy_rule_id = 3; + * + * @return The bytes for gatewaySecurityPolicyRuleId. + */ + com.google.protobuf.ByteString getGatewaySecurityPolicyRuleIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentGroupRequest.java new file mode 100644 index 000000000000..7c627a6ea7a5 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentGroupRequest.java @@ -0,0 +1,1392 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for CreateInterceptDeploymentGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class CreateInterceptDeploymentGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) + CreateInterceptDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateInterceptDeploymentGroupRequest"); + } + + // Use CreateInterceptDeploymentGroupRequest.newBuilder() to construct. + private CreateInterceptDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateInterceptDeploymentGroupRequest() { + parent_ = ""; + interceptDeploymentGroupId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_DEPLOYMENT_GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object interceptDeploymentGroupId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment group, which will become the
                                                                                              +   * final component of the deployment group's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroupId. + */ + @java.lang.Override + public java.lang.String getInterceptDeploymentGroupId() { + java.lang.Object ref = interceptDeploymentGroupId_; + 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(); + interceptDeploymentGroupId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment group, which will become the
                                                                                              +   * final component of the deployment group's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for interceptDeploymentGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterceptDeploymentGroupIdBytes() { + java.lang.Object ref = interceptDeploymentGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptDeploymentGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_DEPLOYMENT_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.InterceptDeploymentGroup interceptDeploymentGroup_; + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeploymentGroup field is set. + */ + @java.lang.Override + public boolean hasInterceptDeploymentGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + getInterceptDeploymentGroup() { + return interceptDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance() + : interceptDeploymentGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupOrBuilder() { + return interceptDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance() + : interceptDeploymentGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptDeploymentGroupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, interceptDeploymentGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInterceptDeploymentGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptDeploymentGroupId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, interceptDeploymentGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getInterceptDeploymentGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateInterceptDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest other = + (com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getInterceptDeploymentGroupId().equals(other.getInterceptDeploymentGroupId())) + return false; + if (hasInterceptDeploymentGroup() != other.hasInterceptDeploymentGroup()) return false; + if (hasInterceptDeploymentGroup()) { + if (!getInterceptDeploymentGroup().equals(other.getInterceptDeploymentGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeploymentGroupId().hashCode(); + if (hasInterceptDeploymentGroup()) { + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeploymentGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest 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.networksecurity.v1.CreateInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest 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.networksecurity.v1.CreateInterceptDeploymentGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateInterceptDeploymentGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for CreateInterceptDeploymentGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInterceptDeploymentGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + interceptDeploymentGroupId_ = ""; + interceptDeploymentGroup_ = null; + if (interceptDeploymentGroupBuilder_ != null) { + interceptDeploymentGroupBuilder_.dispose(); + interceptDeploymentGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest build() { + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest + buildPartial() { + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest result = + new com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interceptDeploymentGroupId_ = interceptDeploymentGroupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.interceptDeploymentGroup_ = + interceptDeploymentGroupBuilder_ == null + ? interceptDeploymentGroup_ + : interceptDeploymentGroupBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInterceptDeploymentGroupId().isEmpty()) { + interceptDeploymentGroupId_ = other.interceptDeploymentGroupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasInterceptDeploymentGroup()) { + mergeInterceptDeploymentGroup(other.getInterceptDeploymentGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + interceptDeploymentGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInterceptDeploymentGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object interceptDeploymentGroupId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroupId. + */ + public java.lang.String getInterceptDeploymentGroupId() { + java.lang.Object ref = interceptDeploymentGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interceptDeploymentGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for interceptDeploymentGroupId. + */ + public com.google.protobuf.ByteString getInterceptDeploymentGroupIdBytes() { + java.lang.Object ref = interceptDeploymentGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptDeploymentGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The interceptDeploymentGroupId to set. + * @return This builder for chaining. + */ + public Builder setInterceptDeploymentGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interceptDeploymentGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInterceptDeploymentGroupId() { + interceptDeploymentGroupId_ = getDefaultInstance().getInterceptDeploymentGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for interceptDeploymentGroupId to set. + * @return This builder for chaining. + */ + public Builder setInterceptDeploymentGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interceptDeploymentGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.InterceptDeploymentGroup interceptDeploymentGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder> + interceptDeploymentGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeploymentGroup field is set. + */ + public boolean hasInterceptDeploymentGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroup. + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + getInterceptDeploymentGroup() { + if (interceptDeploymentGroupBuilder_ == null) { + return interceptDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance() + : interceptDeploymentGroup_; + } else { + return interceptDeploymentGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup value) { + if (interceptDeploymentGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interceptDeploymentGroup_ = value; + } else { + interceptDeploymentGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder builderForValue) { + if (interceptDeploymentGroupBuilder_ == null) { + interceptDeploymentGroup_ = builderForValue.build(); + } else { + interceptDeploymentGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup value) { + if (interceptDeploymentGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && interceptDeploymentGroup_ != null + && interceptDeploymentGroup_ + != com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .getDefaultInstance()) { + getInterceptDeploymentGroupBuilder().mergeFrom(value); + } else { + interceptDeploymentGroup_ = value; + } + } else { + interceptDeploymentGroupBuilder_.mergeFrom(value); + } + if (interceptDeploymentGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterceptDeploymentGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + interceptDeploymentGroup_ = null; + if (interceptDeploymentGroupBuilder_ != null) { + interceptDeploymentGroupBuilder_.dispose(); + interceptDeploymentGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder + getInterceptDeploymentGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetInterceptDeploymentGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupOrBuilder() { + if (interceptDeploymentGroupBuilder_ != null) { + return interceptDeploymentGroupBuilder_.getMessageOrBuilder(); + } else { + return interceptDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance() + : interceptDeploymentGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder> + internalGetInterceptDeploymentGroupFieldBuilder() { + if (interceptDeploymentGroupBuilder_ == null) { + interceptDeploymentGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder>( + getInterceptDeploymentGroup(), getParentForChildren(), isClean()); + interceptDeploymentGroup_ = null; + } + return interceptDeploymentGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) + private static final com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInterceptDeploymentGroupRequest 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.networksecurity.v1.CreateInterceptDeploymentGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..962ebb298045 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateInterceptDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment group, which will become the
                                                                                              +   * final component of the deployment group's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroupId. + */ + java.lang.String getInterceptDeploymentGroupId(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment group, which will become the
                                                                                              +   * final component of the deployment group's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for interceptDeploymentGroupId. + */ + com.google.protobuf.ByteString getInterceptDeploymentGroupIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeploymentGroup field is set. + */ + boolean hasInterceptDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroup. + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup getInterceptDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentRequest.java new file mode 100644 index 000000000000..950a531c5aae --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentRequest.java @@ -0,0 +1,1369 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for CreateInterceptDeployment.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class CreateInterceptDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) + CreateInterceptDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateInterceptDeploymentRequest"); + } + + // Use CreateInterceptDeploymentRequest.newBuilder() to construct. + private CreateInterceptDeploymentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateInterceptDeploymentRequest() { + parent_ = ""; + interceptDeploymentId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest.class, + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_DEPLOYMENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object interceptDeploymentId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment, which will become the final
                                                                                              +   * component of the deployment's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The interceptDeploymentId. + */ + @java.lang.Override + public java.lang.String getInterceptDeploymentId() { + java.lang.Object ref = interceptDeploymentId_; + 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(); + interceptDeploymentId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment, which will become the final
                                                                                              +   * component of the deployment's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for interceptDeploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterceptDeploymentIdBytes() { + java.lang.Object ref = interceptDeploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptDeploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_DEPLOYMENT_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.InterceptDeployment interceptDeployment_; + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeployment field is set. + */ + @java.lang.Override + public boolean hasInterceptDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeployment. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployment() { + return interceptDeployment_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance() + : interceptDeployment_; + } + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder + getInterceptDeploymentOrBuilder() { + return interceptDeployment_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance() + : interceptDeployment_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptDeploymentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, interceptDeploymentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInterceptDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptDeploymentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, interceptDeploymentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInterceptDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateInterceptDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest other = + (com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getInterceptDeploymentId().equals(other.getInterceptDeploymentId())) return false; + if (hasInterceptDeployment() != other.hasInterceptDeployment()) return false; + if (hasInterceptDeployment()) { + if (!getInterceptDeployment().equals(other.getInterceptDeployment())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeploymentId().hashCode(); + if (hasInterceptDeployment()) { + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeployment().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest 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.networksecurity.v1.CreateInterceptDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest 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.networksecurity.v1.CreateInterceptDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateInterceptDeploymentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for CreateInterceptDeployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest.class, + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInterceptDeploymentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + interceptDeploymentId_ = ""; + interceptDeployment_ = null; + if (interceptDeploymentBuilder_ != null) { + interceptDeploymentBuilder_.dispose(); + interceptDeploymentBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest build() { + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest result = + new com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interceptDeploymentId_ = interceptDeploymentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.interceptDeployment_ = + interceptDeploymentBuilder_ == null + ? interceptDeployment_ + : interceptDeploymentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInterceptDeploymentId().isEmpty()) { + interceptDeploymentId_ = other.interceptDeploymentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasInterceptDeployment()) { + mergeInterceptDeployment(other.getInterceptDeployment()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + interceptDeploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInterceptDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object interceptDeploymentId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The interceptDeploymentId. + */ + public java.lang.String getInterceptDeploymentId() { + java.lang.Object ref = interceptDeploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interceptDeploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for interceptDeploymentId. + */ + public com.google.protobuf.ByteString getInterceptDeploymentIdBytes() { + java.lang.Object ref = interceptDeploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptDeploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The interceptDeploymentId to set. + * @return This builder for chaining. + */ + public Builder setInterceptDeploymentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interceptDeploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInterceptDeploymentId() { + interceptDeploymentId_ = getDefaultInstance().getInterceptDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for interceptDeploymentId to set. + * @return This builder for chaining. + */ + public Builder setInterceptDeploymentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interceptDeploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.InterceptDeployment interceptDeployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder> + interceptDeploymentBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeployment field is set. + */ + public boolean hasInterceptDeployment() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeployment. + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployment() { + if (interceptDeploymentBuilder_ == null) { + return interceptDeployment_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance() + : interceptDeployment_; + } else { + return interceptDeploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptDeployment( + com.google.cloud.networksecurity.v1.InterceptDeployment value) { + if (interceptDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interceptDeployment_ = value; + } else { + interceptDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptDeployment( + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder builderForValue) { + if (interceptDeploymentBuilder_ == null) { + interceptDeployment_ = builderForValue.build(); + } else { + interceptDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterceptDeployment( + com.google.cloud.networksecurity.v1.InterceptDeployment value) { + if (interceptDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && interceptDeployment_ != null + && interceptDeployment_ + != com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance()) { + getInterceptDeploymentBuilder().mergeFrom(value); + } else { + interceptDeployment_ = value; + } + } else { + interceptDeploymentBuilder_.mergeFrom(value); + } + if (interceptDeployment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterceptDeployment() { + bitField0_ = (bitField0_ & ~0x00000004); + interceptDeployment_ = null; + if (interceptDeploymentBuilder_ != null) { + interceptDeploymentBuilder_.dispose(); + interceptDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment.Builder + getInterceptDeploymentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetInterceptDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder + getInterceptDeploymentOrBuilder() { + if (interceptDeploymentBuilder_ != null) { + return interceptDeploymentBuilder_.getMessageOrBuilder(); + } else { + return interceptDeployment_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance() + : interceptDeployment_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder> + internalGetInterceptDeploymentFieldBuilder() { + if (interceptDeploymentBuilder_ == null) { + interceptDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder>( + getInterceptDeployment(), getParentForChildren(), isClean()); + interceptDeployment_ = null; + } + return interceptDeploymentBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) + private static final com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInterceptDeploymentRequest 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.networksecurity.v1.CreateInterceptDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..cf1af4b5841b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptDeploymentRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateInterceptDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment, which will become the final
                                                                                              +   * component of the deployment's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The interceptDeploymentId. + */ + java.lang.String getInterceptDeploymentId(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment, which will become the final
                                                                                              +   * component of the deployment's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for interceptDeploymentId. + */ + com.google.protobuf.ByteString getInterceptDeploymentIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeployment field is set. + */ + boolean hasInterceptDeployment(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeployment. + */ + com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployment(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder + getInterceptDeploymentOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupAssociationRequest.java new file mode 100644 index 000000000000..8fbd9c09156c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupAssociationRequest.java @@ -0,0 +1,1437 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for CreateInterceptEndpointGroupAssociation.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest} + */ +@com.google.protobuf.Generated +public final class CreateInterceptEndpointGroupAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) + CreateInterceptEndpointGroupAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateInterceptEndpointGroupAssociationRequest"); + } + + // Use CreateInterceptEndpointGroupAssociationRequest.newBuilder() to construct. + private CreateInterceptEndpointGroupAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateInterceptEndpointGroupAssociationRequest() { + parent_ = ""; + interceptEndpointGroupAssociationId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + .Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this association will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this association will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_ENDPOINT_GROUP_ASSOCIATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object interceptEndpointGroupAssociationId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. The ID to use for the new association, which will become the
                                                                                              +   * final component of the endpoint group's resource name. If not provided, the
                                                                                              +   * server will generate a unique ID.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interceptEndpointGroupAssociationId. + */ + @java.lang.Override + public java.lang.String getInterceptEndpointGroupAssociationId() { + java.lang.Object ref = interceptEndpointGroupAssociationId_; + 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(); + interceptEndpointGroupAssociationId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. The ID to use for the new association, which will become the
                                                                                              +   * final component of the endpoint group's resource name. If not provided, the
                                                                                              +   * server will generate a unique ID.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for interceptEndpointGroupAssociationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterceptEndpointGroupAssociationIdBytes() { + java.lang.Object ref = interceptEndpointGroupAssociationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptEndpointGroupAssociationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_ENDPOINT_GROUP_ASSOCIATION_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + interceptEndpointGroupAssociation_; + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroupAssociation field is set. + */ + @java.lang.Override + public boolean hasInterceptEndpointGroupAssociation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroupAssociation. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociation() { + return interceptEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.getDefaultInstance() + : interceptEndpointGroupAssociation_; + } + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationOrBuilder() { + return interceptEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.getDefaultInstance() + : interceptEndpointGroupAssociation_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptEndpointGroupAssociationId_)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, interceptEndpointGroupAssociationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInterceptEndpointGroupAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptEndpointGroupAssociationId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 2, interceptEndpointGroupAssociationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getInterceptEndpointGroupAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest other = + (com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getInterceptEndpointGroupAssociationId() + .equals(other.getInterceptEndpointGroupAssociationId())) return false; + if (hasInterceptEndpointGroupAssociation() != other.hasInterceptEndpointGroupAssociation()) + return false; + if (hasInterceptEndpointGroupAssociation()) { + if (!getInterceptEndpointGroupAssociation() + .equals(other.getInterceptEndpointGroupAssociation())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUP_ASSOCIATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroupAssociationId().hashCode(); + if (hasInterceptEndpointGroupAssociation()) { + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUP_ASSOCIATION_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroupAssociation().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + 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.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + 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.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for CreateInterceptEndpointGroupAssociation.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInterceptEndpointGroupAssociationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + interceptEndpointGroupAssociationId_ = ""; + interceptEndpointGroupAssociation_ = null; + if (interceptEndpointGroupAssociationBuilder_ != null) { + interceptEndpointGroupAssociationBuilder_.dispose(); + interceptEndpointGroupAssociationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + build() { + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest result = + new com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interceptEndpointGroupAssociationId_ = interceptEndpointGroupAssociationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.interceptEndpointGroupAssociation_ = + interceptEndpointGroupAssociationBuilder_ == null + ? interceptEndpointGroupAssociation_ + : interceptEndpointGroupAssociationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInterceptEndpointGroupAssociationId().isEmpty()) { + interceptEndpointGroupAssociationId_ = other.interceptEndpointGroupAssociationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasInterceptEndpointGroupAssociation()) { + mergeInterceptEndpointGroupAssociation(other.getInterceptEndpointGroupAssociation()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + interceptEndpointGroupAssociationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInterceptEndpointGroupAssociationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object interceptEndpointGroupAssociationId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interceptEndpointGroupAssociationId. + */ + public java.lang.String getInterceptEndpointGroupAssociationId() { + java.lang.Object ref = interceptEndpointGroupAssociationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interceptEndpointGroupAssociationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for interceptEndpointGroupAssociationId. + */ + public com.google.protobuf.ByteString getInterceptEndpointGroupAssociationIdBytes() { + java.lang.Object ref = interceptEndpointGroupAssociationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptEndpointGroupAssociationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The interceptEndpointGroupAssociationId to set. + * @return This builder for chaining. + */ + public Builder setInterceptEndpointGroupAssociationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interceptEndpointGroupAssociationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearInterceptEndpointGroupAssociationId() { + interceptEndpointGroupAssociationId_ = + getDefaultInstance().getInterceptEndpointGroupAssociationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for interceptEndpointGroupAssociationId to set. + * @return This builder for chaining. + */ + public Builder setInterceptEndpointGroupAssociationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interceptEndpointGroupAssociationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + interceptEndpointGroupAssociation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + interceptEndpointGroupAssociationBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroupAssociation field is set. + */ + public boolean hasInterceptEndpointGroupAssociation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroupAssociation. + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociation() { + if (interceptEndpointGroupAssociationBuilder_ == null) { + return interceptEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance() + : interceptEndpointGroupAssociation_; + } else { + return interceptEndpointGroupAssociationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation value) { + if (interceptEndpointGroupAssociationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interceptEndpointGroupAssociation_ = value; + } else { + interceptEndpointGroupAssociationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + builderForValue) { + if (interceptEndpointGroupAssociationBuilder_ == null) { + interceptEndpointGroupAssociation_ = builderForValue.build(); + } else { + interceptEndpointGroupAssociationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation value) { + if (interceptEndpointGroupAssociationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && interceptEndpointGroupAssociation_ != null + && interceptEndpointGroupAssociation_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance()) { + getInterceptEndpointGroupAssociationBuilder().mergeFrom(value); + } else { + interceptEndpointGroupAssociation_ = value; + } + } else { + interceptEndpointGroupAssociationBuilder_.mergeFrom(value); + } + if (interceptEndpointGroupAssociation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterceptEndpointGroupAssociation() { + bitField0_ = (bitField0_ & ~0x00000004); + interceptEndpointGroupAssociation_ = null; + if (interceptEndpointGroupAssociationBuilder_ != null) { + interceptEndpointGroupAssociationBuilder_.dispose(); + interceptEndpointGroupAssociationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + getInterceptEndpointGroupAssociationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetInterceptEndpointGroupAssociationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationOrBuilder() { + if (interceptEndpointGroupAssociationBuilder_ != null) { + return interceptEndpointGroupAssociationBuilder_.getMessageOrBuilder(); + } else { + return interceptEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance() + : interceptEndpointGroupAssociation_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + internalGetInterceptEndpointGroupAssociationFieldBuilder() { + if (interceptEndpointGroupAssociationBuilder_ == null) { + interceptEndpointGroupAssociationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder>( + getInterceptEndpointGroupAssociation(), getParentForChildren(), isClean()); + interceptEndpointGroupAssociation_ = null; + } + return interceptEndpointGroupAssociationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) + private static final com.google.cloud.networksecurity.v1 + .CreateInterceptEndpointGroupAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInterceptEndpointGroupAssociationRequest 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.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..277654aa3c18 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupAssociationRequestOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateInterceptEndpointGroupAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this association will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this association will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. The ID to use for the new association, which will become the
                                                                                              +   * final component of the endpoint group's resource name. If not provided, the
                                                                                              +   * server will generate a unique ID.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interceptEndpointGroupAssociationId. + */ + java.lang.String getInterceptEndpointGroupAssociationId(); + + /** + * + * + *
                                                                                              +   * Optional. The ID to use for the new association, which will become the
                                                                                              +   * final component of the endpoint group's resource name. If not provided, the
                                                                                              +   * server will generate a unique ID.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for interceptEndpointGroupAssociationId. + */ + com.google.protobuf.ByteString getInterceptEndpointGroupAssociationIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroupAssociation field is set. + */ + boolean hasInterceptEndpointGroupAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroupAssociation. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupRequest.java new file mode 100644 index 000000000000..258602b30fe4 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupRequest.java @@ -0,0 +1,1381 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for CreateInterceptEndpointGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest} + */ +@com.google.protobuf.Generated +public final class CreateInterceptEndpointGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) + CreateInterceptEndpointGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateInterceptEndpointGroupRequest"); + } + + // Use CreateInterceptEndpointGroupRequest.newBuilder() to construct. + private CreateInterceptEndpointGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateInterceptEndpointGroupRequest() { + parent_ = ""; + interceptEndpointGroupId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this endpoint group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this endpoint group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_ENDPOINT_GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object interceptEndpointGroupId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +   * component of the endpoint group's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The interceptEndpointGroupId. + */ + @java.lang.Override + public java.lang.String getInterceptEndpointGroupId() { + java.lang.Object ref = interceptEndpointGroupId_; + 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(); + interceptEndpointGroupId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +   * component of the endpoint group's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for interceptEndpointGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterceptEndpointGroupIdBytes() { + java.lang.Object ref = interceptEndpointGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptEndpointGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_ENDPOINT_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.InterceptEndpointGroup interceptEndpointGroup_; + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroup field is set. + */ + @java.lang.Override + public boolean hasInterceptEndpointGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroup() { + return interceptEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance() + : interceptEndpointGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupOrBuilder() { + return interceptEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance() + : interceptEndpointGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptEndpointGroupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, interceptEndpointGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInterceptEndpointGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptEndpointGroupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, interceptEndpointGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInterceptEndpointGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateInterceptEndpointGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest other = + (com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getInterceptEndpointGroupId().equals(other.getInterceptEndpointGroupId())) return false; + if (hasInterceptEndpointGroup() != other.hasInterceptEndpointGroup()) return false; + if (hasInterceptEndpointGroup()) { + if (!getInterceptEndpointGroup().equals(other.getInterceptEndpointGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroupId().hashCode(); + if (hasInterceptEndpointGroup()) { + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest 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.networksecurity.v1.CreateInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest 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.networksecurity.v1.CreateInterceptEndpointGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateInterceptEndpointGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for CreateInterceptEndpointGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInterceptEndpointGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + interceptEndpointGroupId_ = ""; + interceptEndpointGroup_ = null; + if (interceptEndpointGroupBuilder_ != null) { + interceptEndpointGroupBuilder_.dispose(); + interceptEndpointGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest build() { + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest result = + new com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interceptEndpointGroupId_ = interceptEndpointGroupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.interceptEndpointGroup_ = + interceptEndpointGroupBuilder_ == null + ? interceptEndpointGroup_ + : interceptEndpointGroupBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInterceptEndpointGroupId().isEmpty()) { + interceptEndpointGroupId_ = other.interceptEndpointGroupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasInterceptEndpointGroup()) { + mergeInterceptEndpointGroup(other.getInterceptEndpointGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + interceptEndpointGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInterceptEndpointGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object interceptEndpointGroupId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroupId. + */ + public java.lang.String getInterceptEndpointGroupId() { + java.lang.Object ref = interceptEndpointGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interceptEndpointGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for interceptEndpointGroupId. + */ + public com.google.protobuf.ByteString getInterceptEndpointGroupIdBytes() { + java.lang.Object ref = interceptEndpointGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptEndpointGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The interceptEndpointGroupId to set. + * @return This builder for chaining. + */ + public Builder setInterceptEndpointGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interceptEndpointGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInterceptEndpointGroupId() { + interceptEndpointGroupId_ = getDefaultInstance().getInterceptEndpointGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for interceptEndpointGroupId to set. + * @return This builder for chaining. + */ + public Builder setInterceptEndpointGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interceptEndpointGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.InterceptEndpointGroup interceptEndpointGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder> + interceptEndpointGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroup field is set. + */ + public boolean hasInterceptEndpointGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroup. + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroup() { + if (interceptEndpointGroupBuilder_ == null) { + return interceptEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance() + : interceptEndpointGroup_; + } else { + return interceptEndpointGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup value) { + if (interceptEndpointGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interceptEndpointGroup_ = value; + } else { + interceptEndpointGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder builderForValue) { + if (interceptEndpointGroupBuilder_ == null) { + interceptEndpointGroup_ = builderForValue.build(); + } else { + interceptEndpointGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup value) { + if (interceptEndpointGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && interceptEndpointGroup_ != null + && interceptEndpointGroup_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .getDefaultInstance()) { + getInterceptEndpointGroupBuilder().mergeFrom(value); + } else { + interceptEndpointGroup_ = value; + } + } else { + interceptEndpointGroupBuilder_.mergeFrom(value); + } + if (interceptEndpointGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterceptEndpointGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + interceptEndpointGroup_ = null; + if (interceptEndpointGroupBuilder_ != null) { + interceptEndpointGroupBuilder_.dispose(); + interceptEndpointGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder + getInterceptEndpointGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetInterceptEndpointGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupOrBuilder() { + if (interceptEndpointGroupBuilder_ != null) { + return interceptEndpointGroupBuilder_.getMessageOrBuilder(); + } else { + return interceptEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance() + : interceptEndpointGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder> + internalGetInterceptEndpointGroupFieldBuilder() { + if (interceptEndpointGroupBuilder_ == null) { + interceptEndpointGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder>( + getInterceptEndpointGroup(), getParentForChildren(), isClean()); + interceptEndpointGroup_ = null; + } + return interceptEndpointGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) + private static final com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInterceptEndpointGroupRequest 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.networksecurity.v1.CreateInterceptEndpointGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupRequestOrBuilder.java new file mode 100644 index 000000000000..b317f1d323fe --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateInterceptEndpointGroupRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateInterceptEndpointGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this endpoint group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this endpoint group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +   * component of the endpoint group's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The interceptEndpointGroupId. + */ + java.lang.String getInterceptEndpointGroupId(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +   * component of the endpoint group's resource name.
                                                                                              +   * 
                                                                                              + * + * string intercept_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for interceptEndpointGroupId. + */ + com.google.protobuf.ByteString getInterceptEndpointGroupIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroup field is set. + */ + boolean hasInterceptEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroup. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentGroupRequest.java new file mode 100644 index 000000000000..12e313d28308 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentGroupRequest.java @@ -0,0 +1,1392 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for CreateMirroringDeploymentGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class CreateMirroringDeploymentGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) + CreateMirroringDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMirroringDeploymentGroupRequest"); + } + + // Use CreateMirroringDeploymentGroupRequest.newBuilder() to construct. + private CreateMirroringDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMirroringDeploymentGroupRequest() { + parent_ = ""; + mirroringDeploymentGroupId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_DEPLOYMENT_GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mirroringDeploymentGroupId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment group, which will become the
                                                                                              +   * final component of the deployment group's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroupId. + */ + @java.lang.Override + public java.lang.String getMirroringDeploymentGroupId() { + java.lang.Object ref = mirroringDeploymentGroupId_; + 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(); + mirroringDeploymentGroupId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment group, which will become the
                                                                                              +   * final component of the deployment group's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for mirroringDeploymentGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMirroringDeploymentGroupIdBytes() { + java.lang.Object ref = mirroringDeploymentGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringDeploymentGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_DEPLOYMENT_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroringDeploymentGroup_; + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeploymentGroup field is set. + */ + @java.lang.Override + public boolean hasMirroringDeploymentGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + getMirroringDeploymentGroup() { + return mirroringDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance() + : mirroringDeploymentGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupOrBuilder() { + return mirroringDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance() + : mirroringDeploymentGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringDeploymentGroupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, mirroringDeploymentGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMirroringDeploymentGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringDeploymentGroupId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, mirroringDeploymentGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getMirroringDeploymentGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateMirroringDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest other = + (com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getMirroringDeploymentGroupId().equals(other.getMirroringDeploymentGroupId())) + return false; + if (hasMirroringDeploymentGroup() != other.hasMirroringDeploymentGroup()) return false; + if (hasMirroringDeploymentGroup()) { + if (!getMirroringDeploymentGroup().equals(other.getMirroringDeploymentGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + MIRRORING_DEPLOYMENT_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeploymentGroupId().hashCode(); + if (hasMirroringDeploymentGroup()) { + hash = (37 * hash) + MIRRORING_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeploymentGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest 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.networksecurity.v1.CreateMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest 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.networksecurity.v1.CreateMirroringDeploymentGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateMirroringDeploymentGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for CreateMirroringDeploymentGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMirroringDeploymentGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + mirroringDeploymentGroupId_ = ""; + mirroringDeploymentGroup_ = null; + if (mirroringDeploymentGroupBuilder_ != null) { + mirroringDeploymentGroupBuilder_.dispose(); + mirroringDeploymentGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest build() { + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest + buildPartial() { + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest result = + new com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mirroringDeploymentGroupId_ = mirroringDeploymentGroupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mirroringDeploymentGroup_ = + mirroringDeploymentGroupBuilder_ == null + ? mirroringDeploymentGroup_ + : mirroringDeploymentGroupBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMirroringDeploymentGroupId().isEmpty()) { + mirroringDeploymentGroupId_ = other.mirroringDeploymentGroupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMirroringDeploymentGroup()) { + mergeMirroringDeploymentGroup(other.getMirroringDeploymentGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + mirroringDeploymentGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetMirroringDeploymentGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mirroringDeploymentGroupId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroupId. + */ + public java.lang.String getMirroringDeploymentGroupId() { + java.lang.Object ref = mirroringDeploymentGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mirroringDeploymentGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for mirroringDeploymentGroupId. + */ + public com.google.protobuf.ByteString getMirroringDeploymentGroupIdBytes() { + java.lang.Object ref = mirroringDeploymentGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringDeploymentGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The mirroringDeploymentGroupId to set. + * @return This builder for chaining. + */ + public Builder setMirroringDeploymentGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mirroringDeploymentGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMirroringDeploymentGroupId() { + mirroringDeploymentGroupId_ = getDefaultInstance().getMirroringDeploymentGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment group, which will become the
                                                                                              +     * final component of the deployment group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for mirroringDeploymentGroupId to set. + * @return This builder for chaining. + */ + public Builder setMirroringDeploymentGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mirroringDeploymentGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroringDeploymentGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder> + mirroringDeploymentGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeploymentGroup field is set. + */ + public boolean hasMirroringDeploymentGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroup. + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + getMirroringDeploymentGroup() { + if (mirroringDeploymentGroupBuilder_ == null) { + return mirroringDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance() + : mirroringDeploymentGroup_; + } else { + return mirroringDeploymentGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup value) { + if (mirroringDeploymentGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mirroringDeploymentGroup_ = value; + } else { + mirroringDeploymentGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder builderForValue) { + if (mirroringDeploymentGroupBuilder_ == null) { + mirroringDeploymentGroup_ = builderForValue.build(); + } else { + mirroringDeploymentGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup value) { + if (mirroringDeploymentGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && mirroringDeploymentGroup_ != null + && mirroringDeploymentGroup_ + != com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .getDefaultInstance()) { + getMirroringDeploymentGroupBuilder().mergeFrom(value); + } else { + mirroringDeploymentGroup_ = value; + } + } else { + mirroringDeploymentGroupBuilder_.mergeFrom(value); + } + if (mirroringDeploymentGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMirroringDeploymentGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + mirroringDeploymentGroup_ = null; + if (mirroringDeploymentGroupBuilder_ != null) { + mirroringDeploymentGroupBuilder_.dispose(); + mirroringDeploymentGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder + getMirroringDeploymentGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMirroringDeploymentGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupOrBuilder() { + if (mirroringDeploymentGroupBuilder_ != null) { + return mirroringDeploymentGroupBuilder_.getMessageOrBuilder(); + } else { + return mirroringDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance() + : mirroringDeploymentGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder> + internalGetMirroringDeploymentGroupFieldBuilder() { + if (mirroringDeploymentGroupBuilder_ == null) { + mirroringDeploymentGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder>( + getMirroringDeploymentGroup(), getParentForChildren(), isClean()); + mirroringDeploymentGroup_ = null; + } + return mirroringDeploymentGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) + private static final com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMirroringDeploymentGroupRequest 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.networksecurity.v1.CreateMirroringDeploymentGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..68b8827dd50f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateMirroringDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment group, which will become the
                                                                                              +   * final component of the deployment group's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroupId. + */ + java.lang.String getMirroringDeploymentGroupId(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment group, which will become the
                                                                                              +   * final component of the deployment group's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_deployment_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for mirroringDeploymentGroupId. + */ + com.google.protobuf.ByteString getMirroringDeploymentGroupIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeploymentGroup field is set. + */ + boolean hasMirroringDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroup. + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup getMirroringDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentRequest.java new file mode 100644 index 000000000000..8cb8a91d47dd --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentRequest.java @@ -0,0 +1,1369 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for CreateMirroringDeployment.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class CreateMirroringDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) + CreateMirroringDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMirroringDeploymentRequest"); + } + + // Use CreateMirroringDeploymentRequest.newBuilder() to construct. + private CreateMirroringDeploymentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMirroringDeploymentRequest() { + parent_ = ""; + mirroringDeploymentId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest.class, + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_DEPLOYMENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mirroringDeploymentId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment, which will become the final
                                                                                              +   * component of the deployment's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mirroringDeploymentId. + */ + @java.lang.Override + public java.lang.String getMirroringDeploymentId() { + java.lang.Object ref = mirroringDeploymentId_; + 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(); + mirroringDeploymentId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment, which will become the final
                                                                                              +   * component of the deployment's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mirroringDeploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMirroringDeploymentIdBytes() { + java.lang.Object ref = mirroringDeploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringDeploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_DEPLOYMENT_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.MirroringDeployment mirroringDeployment_; + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeployment field is set. + */ + @java.lang.Override + public boolean hasMirroringDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeployment. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployment() { + return mirroringDeployment_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance() + : mirroringDeployment_; + } + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder + getMirroringDeploymentOrBuilder() { + return mirroringDeployment_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance() + : mirroringDeployment_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringDeploymentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, mirroringDeploymentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMirroringDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringDeploymentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, mirroringDeploymentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMirroringDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateMirroringDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest other = + (com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getMirroringDeploymentId().equals(other.getMirroringDeploymentId())) return false; + if (hasMirroringDeployment() != other.hasMirroringDeployment()) return false; + if (hasMirroringDeployment()) { + if (!getMirroringDeployment().equals(other.getMirroringDeployment())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + MIRRORING_DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeploymentId().hashCode(); + if (hasMirroringDeployment()) { + hash = (37 * hash) + MIRRORING_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeployment().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest 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.networksecurity.v1.CreateMirroringDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest 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.networksecurity.v1.CreateMirroringDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateMirroringDeploymentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for CreateMirroringDeployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest.class, + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMirroringDeploymentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + mirroringDeploymentId_ = ""; + mirroringDeployment_ = null; + if (mirroringDeploymentBuilder_ != null) { + mirroringDeploymentBuilder_.dispose(); + mirroringDeploymentBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest build() { + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest result = + new com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mirroringDeploymentId_ = mirroringDeploymentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mirroringDeployment_ = + mirroringDeploymentBuilder_ == null + ? mirroringDeployment_ + : mirroringDeploymentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMirroringDeploymentId().isEmpty()) { + mirroringDeploymentId_ = other.mirroringDeploymentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMirroringDeployment()) { + mergeMirroringDeployment(other.getMirroringDeployment()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + mirroringDeploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetMirroringDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this deployment will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mirroringDeploymentId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mirroringDeploymentId. + */ + public java.lang.String getMirroringDeploymentId() { + java.lang.Object ref = mirroringDeploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mirroringDeploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mirroringDeploymentId. + */ + public com.google.protobuf.ByteString getMirroringDeploymentIdBytes() { + java.lang.Object ref = mirroringDeploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringDeploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mirroringDeploymentId to set. + * @return This builder for chaining. + */ + public Builder setMirroringDeploymentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mirroringDeploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMirroringDeploymentId() { + mirroringDeploymentId_ = getDefaultInstance().getMirroringDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the new deployment, which will become the final
                                                                                              +     * component of the deployment's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mirroringDeploymentId to set. + * @return This builder for chaining. + */ + public Builder setMirroringDeploymentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mirroringDeploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.MirroringDeployment mirroringDeployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder> + mirroringDeploymentBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeployment field is set. + */ + public boolean hasMirroringDeployment() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeployment. + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployment() { + if (mirroringDeploymentBuilder_ == null) { + return mirroringDeployment_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance() + : mirroringDeployment_; + } else { + return mirroringDeploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringDeployment( + com.google.cloud.networksecurity.v1.MirroringDeployment value) { + if (mirroringDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mirroringDeployment_ = value; + } else { + mirroringDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringDeployment( + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder builderForValue) { + if (mirroringDeploymentBuilder_ == null) { + mirroringDeployment_ = builderForValue.build(); + } else { + mirroringDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMirroringDeployment( + com.google.cloud.networksecurity.v1.MirroringDeployment value) { + if (mirroringDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && mirroringDeployment_ != null + && mirroringDeployment_ + != com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance()) { + getMirroringDeploymentBuilder().mergeFrom(value); + } else { + mirroringDeployment_ = value; + } + } else { + mirroringDeploymentBuilder_.mergeFrom(value); + } + if (mirroringDeployment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMirroringDeployment() { + bitField0_ = (bitField0_ & ~0x00000004); + mirroringDeployment_ = null; + if (mirroringDeploymentBuilder_ != null) { + mirroringDeploymentBuilder_.dispose(); + mirroringDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment.Builder + getMirroringDeploymentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMirroringDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder + getMirroringDeploymentOrBuilder() { + if (mirroringDeploymentBuilder_ != null) { + return mirroringDeploymentBuilder_.getMessageOrBuilder(); + } else { + return mirroringDeployment_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance() + : mirroringDeployment_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder> + internalGetMirroringDeploymentFieldBuilder() { + if (mirroringDeploymentBuilder_ == null) { + mirroringDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder>( + getMirroringDeployment(), getParentForChildren(), isClean()); + mirroringDeployment_ = null; + } + return mirroringDeploymentBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) + private static final com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMirroringDeploymentRequest 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.networksecurity.v1.CreateMirroringDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..842b6d7dd930 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringDeploymentRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateMirroringDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this deployment will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment, which will become the final
                                                                                              +   * component of the deployment's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mirroringDeploymentId. + */ + java.lang.String getMirroringDeploymentId(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the new deployment, which will become the final
                                                                                              +   * component of the deployment's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mirroringDeploymentId. + */ + com.google.protobuf.ByteString getMirroringDeploymentIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeployment field is set. + */ + boolean hasMirroringDeployment(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeployment. + */ + com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployment(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder + getMirroringDeploymentOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupAssociationRequest.java new file mode 100644 index 000000000000..ccc94a10d9e2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupAssociationRequest.java @@ -0,0 +1,1437 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for CreateMirroringEndpointGroupAssociation.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest} + */ +@com.google.protobuf.Generated +public final class CreateMirroringEndpointGroupAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) + CreateMirroringEndpointGroupAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMirroringEndpointGroupAssociationRequest"); + } + + // Use CreateMirroringEndpointGroupAssociationRequest.newBuilder() to construct. + private CreateMirroringEndpointGroupAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMirroringEndpointGroupAssociationRequest() { + parent_ = ""; + mirroringEndpointGroupAssociationId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + .Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this association will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this association will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_ENDPOINT_GROUP_ASSOCIATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mirroringEndpointGroupAssociationId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. The ID to use for the new association, which will become the
                                                                                              +   * final component of the endpoint group's resource name. If not provided, the
                                                                                              +   * server will generate a unique ID.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mirroringEndpointGroupAssociationId. + */ + @java.lang.Override + public java.lang.String getMirroringEndpointGroupAssociationId() { + java.lang.Object ref = mirroringEndpointGroupAssociationId_; + 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(); + mirroringEndpointGroupAssociationId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. The ID to use for the new association, which will become the
                                                                                              +   * final component of the endpoint group's resource name. If not provided, the
                                                                                              +   * server will generate a unique ID.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for mirroringEndpointGroupAssociationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMirroringEndpointGroupAssociationIdBytes() { + java.lang.Object ref = mirroringEndpointGroupAssociationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringEndpointGroupAssociationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_ENDPOINT_GROUP_ASSOCIATION_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + mirroringEndpointGroupAssociation_; + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroupAssociation field is set. + */ + @java.lang.Override + public boolean hasMirroringEndpointGroupAssociation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroupAssociation. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociation() { + return mirroringEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.getDefaultInstance() + : mirroringEndpointGroupAssociation_; + } + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationOrBuilder() { + return mirroringEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.getDefaultInstance() + : mirroringEndpointGroupAssociation_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringEndpointGroupAssociationId_)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, mirroringEndpointGroupAssociationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMirroringEndpointGroupAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringEndpointGroupAssociationId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 2, mirroringEndpointGroupAssociationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getMirroringEndpointGroupAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest other = + (com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getMirroringEndpointGroupAssociationId() + .equals(other.getMirroringEndpointGroupAssociationId())) return false; + if (hasMirroringEndpointGroupAssociation() != other.hasMirroringEndpointGroupAssociation()) + return false; + if (hasMirroringEndpointGroupAssociation()) { + if (!getMirroringEndpointGroupAssociation() + .equals(other.getMirroringEndpointGroupAssociation())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUP_ASSOCIATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroupAssociationId().hashCode(); + if (hasMirroringEndpointGroupAssociation()) { + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUP_ASSOCIATION_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroupAssociation().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + 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.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + 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.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for CreateMirroringEndpointGroupAssociation.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMirroringEndpointGroupAssociationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + mirroringEndpointGroupAssociationId_ = ""; + mirroringEndpointGroupAssociation_ = null; + if (mirroringEndpointGroupAssociationBuilder_ != null) { + mirroringEndpointGroupAssociationBuilder_.dispose(); + mirroringEndpointGroupAssociationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + build() { + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest result = + new com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mirroringEndpointGroupAssociationId_ = mirroringEndpointGroupAssociationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mirroringEndpointGroupAssociation_ = + mirroringEndpointGroupAssociationBuilder_ == null + ? mirroringEndpointGroupAssociation_ + : mirroringEndpointGroupAssociationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMirroringEndpointGroupAssociationId().isEmpty()) { + mirroringEndpointGroupAssociationId_ = other.mirroringEndpointGroupAssociationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMirroringEndpointGroupAssociation()) { + mergeMirroringEndpointGroupAssociation(other.getMirroringEndpointGroupAssociation()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + mirroringEndpointGroupAssociationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetMirroringEndpointGroupAssociationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this association will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mirroringEndpointGroupAssociationId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mirroringEndpointGroupAssociationId. + */ + public java.lang.String getMirroringEndpointGroupAssociationId() { + java.lang.Object ref = mirroringEndpointGroupAssociationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mirroringEndpointGroupAssociationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for mirroringEndpointGroupAssociationId. + */ + public com.google.protobuf.ByteString getMirroringEndpointGroupAssociationIdBytes() { + java.lang.Object ref = mirroringEndpointGroupAssociationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringEndpointGroupAssociationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mirroringEndpointGroupAssociationId to set. + * @return This builder for chaining. + */ + public Builder setMirroringEndpointGroupAssociationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mirroringEndpointGroupAssociationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMirroringEndpointGroupAssociationId() { + mirroringEndpointGroupAssociationId_ = + getDefaultInstance().getMirroringEndpointGroupAssociationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The ID to use for the new association, which will become the
                                                                                              +     * final component of the endpoint group's resource name. If not provided, the
                                                                                              +     * server will generate a unique ID.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for mirroringEndpointGroupAssociationId to set. + * @return This builder for chaining. + */ + public Builder setMirroringEndpointGroupAssociationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mirroringEndpointGroupAssociationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + mirroringEndpointGroupAssociation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + mirroringEndpointGroupAssociationBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroupAssociation field is set. + */ + public boolean hasMirroringEndpointGroupAssociation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroupAssociation. + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociation() { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + return mirroringEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance() + : mirroringEndpointGroupAssociation_; + } else { + return mirroringEndpointGroupAssociationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation value) { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mirroringEndpointGroupAssociation_ = value; + } else { + mirroringEndpointGroupAssociationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + builderForValue) { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + mirroringEndpointGroupAssociation_ = builderForValue.build(); + } else { + mirroringEndpointGroupAssociationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation value) { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && mirroringEndpointGroupAssociation_ != null + && mirroringEndpointGroupAssociation_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance()) { + getMirroringEndpointGroupAssociationBuilder().mergeFrom(value); + } else { + mirroringEndpointGroupAssociation_ = value; + } + } else { + mirroringEndpointGroupAssociationBuilder_.mergeFrom(value); + } + if (mirroringEndpointGroupAssociation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMirroringEndpointGroupAssociation() { + bitField0_ = (bitField0_ & ~0x00000004); + mirroringEndpointGroupAssociation_ = null; + if (mirroringEndpointGroupAssociationBuilder_ != null) { + mirroringEndpointGroupAssociationBuilder_.dispose(); + mirroringEndpointGroupAssociationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + getMirroringEndpointGroupAssociationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMirroringEndpointGroupAssociationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationOrBuilder() { + if (mirroringEndpointGroupAssociationBuilder_ != null) { + return mirroringEndpointGroupAssociationBuilder_.getMessageOrBuilder(); + } else { + return mirroringEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance() + : mirroringEndpointGroupAssociation_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + internalGetMirroringEndpointGroupAssociationFieldBuilder() { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + mirroringEndpointGroupAssociationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder>( + getMirroringEndpointGroupAssociation(), getParentForChildren(), isClean()); + mirroringEndpointGroupAssociation_ = null; + } + return mirroringEndpointGroupAssociationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) + private static final com.google.cloud.networksecurity.v1 + .CreateMirroringEndpointGroupAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMirroringEndpointGroupAssociationRequest 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.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..a3aa1bd90043 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupAssociationRequestOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateMirroringEndpointGroupAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this association will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this association will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. The ID to use for the new association, which will become the
                                                                                              +   * final component of the endpoint group's resource name. If not provided, the
                                                                                              +   * server will generate a unique ID.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mirroringEndpointGroupAssociationId. + */ + java.lang.String getMirroringEndpointGroupAssociationId(); + + /** + * + * + *
                                                                                              +   * Optional. The ID to use for the new association, which will become the
                                                                                              +   * final component of the endpoint group's resource name. If not provided, the
                                                                                              +   * server will generate a unique ID.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group_association_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for mirroringEndpointGroupAssociationId. + */ + com.google.protobuf.ByteString getMirroringEndpointGroupAssociationIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroupAssociation field is set. + */ + boolean hasMirroringEndpointGroupAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroupAssociation. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The association to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupRequest.java new file mode 100644 index 000000000000..af6520d70846 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupRequest.java @@ -0,0 +1,1381 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for CreateMirroringEndpointGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest} + */ +@com.google.protobuf.Generated +public final class CreateMirroringEndpointGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) + CreateMirroringEndpointGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMirroringEndpointGroupRequest"); + } + + // Use CreateMirroringEndpointGroupRequest.newBuilder() to construct. + private CreateMirroringEndpointGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMirroringEndpointGroupRequest() { + parent_ = ""; + mirroringEndpointGroupId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this endpoint group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this endpoint group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_ENDPOINT_GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mirroringEndpointGroupId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +   * component of the endpoint group's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mirroringEndpointGroupId. + */ + @java.lang.Override + public java.lang.String getMirroringEndpointGroupId() { + java.lang.Object ref = mirroringEndpointGroupId_; + 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(); + mirroringEndpointGroupId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +   * component of the endpoint group's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mirroringEndpointGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMirroringEndpointGroupIdBytes() { + java.lang.Object ref = mirroringEndpointGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringEndpointGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_ENDPOINT_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.MirroringEndpointGroup mirroringEndpointGroup_; + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroup field is set. + */ + @java.lang.Override + public boolean hasMirroringEndpointGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroup() { + return mirroringEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance() + : mirroringEndpointGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupOrBuilder() { + return mirroringEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance() + : mirroringEndpointGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringEndpointGroupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, mirroringEndpointGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMirroringEndpointGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringEndpointGroupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, mirroringEndpointGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMirroringEndpointGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + 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.networksecurity.v1.CreateMirroringEndpointGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest other = + (com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getMirroringEndpointGroupId().equals(other.getMirroringEndpointGroupId())) return false; + if (hasMirroringEndpointGroup() != other.hasMirroringEndpointGroup()) return false; + if (hasMirroringEndpointGroup()) { + if (!getMirroringEndpointGroup().equals(other.getMirroringEndpointGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroupId().hashCode(); + if (hasMirroringEndpointGroup()) { + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest 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.networksecurity.v1.CreateMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest 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.networksecurity.v1.CreateMirroringEndpointGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateMirroringEndpointGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for CreateMirroringEndpointGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMirroringEndpointGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + mirroringEndpointGroupId_ = ""; + mirroringEndpointGroup_ = null; + if (mirroringEndpointGroupBuilder_ != null) { + mirroringEndpointGroupBuilder_.dispose(); + mirroringEndpointGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest build() { + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest result = + new com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mirroringEndpointGroupId_ = mirroringEndpointGroupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mirroringEndpointGroup_ = + mirroringEndpointGroupBuilder_ == null + ? mirroringEndpointGroup_ + : mirroringEndpointGroupBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMirroringEndpointGroupId().isEmpty()) { + mirroringEndpointGroupId_ = other.mirroringEndpointGroupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMirroringEndpointGroup()) { + mergeMirroringEndpointGroup(other.getMirroringEndpointGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + mirroringEndpointGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetMirroringEndpointGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource where this endpoint group will be created.
                                                                                              +     * Format: projects/{project}/locations/{location}
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mirroringEndpointGroupId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroupId. + */ + public java.lang.String getMirroringEndpointGroupId() { + java.lang.Object ref = mirroringEndpointGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mirroringEndpointGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for mirroringEndpointGroupId. + */ + public com.google.protobuf.ByteString getMirroringEndpointGroupIdBytes() { + java.lang.Object ref = mirroringEndpointGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringEndpointGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The mirroringEndpointGroupId to set. + * @return This builder for chaining. + */ + public Builder setMirroringEndpointGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mirroringEndpointGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMirroringEndpointGroupId() { + mirroringEndpointGroupId_ = getDefaultInstance().getMirroringEndpointGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +     * component of the endpoint group's resource name.
                                                                                              +     * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for mirroringEndpointGroupId to set. + * @return This builder for chaining. + */ + public Builder setMirroringEndpointGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mirroringEndpointGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.MirroringEndpointGroup mirroringEndpointGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder> + mirroringEndpointGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroup field is set. + */ + public boolean hasMirroringEndpointGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroup. + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroup() { + if (mirroringEndpointGroupBuilder_ == null) { + return mirroringEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance() + : mirroringEndpointGroup_; + } else { + return mirroringEndpointGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup value) { + if (mirroringEndpointGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mirroringEndpointGroup_ = value; + } else { + mirroringEndpointGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder builderForValue) { + if (mirroringEndpointGroupBuilder_ == null) { + mirroringEndpointGroup_ = builderForValue.build(); + } else { + mirroringEndpointGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup value) { + if (mirroringEndpointGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && mirroringEndpointGroup_ != null + && mirroringEndpointGroup_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .getDefaultInstance()) { + getMirroringEndpointGroupBuilder().mergeFrom(value); + } else { + mirroringEndpointGroup_ = value; + } + } else { + mirroringEndpointGroupBuilder_.mergeFrom(value); + } + if (mirroringEndpointGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMirroringEndpointGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + mirroringEndpointGroup_ = null; + if (mirroringEndpointGroupBuilder_ != null) { + mirroringEndpointGroupBuilder_.dispose(); + mirroringEndpointGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder + getMirroringEndpointGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMirroringEndpointGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupOrBuilder() { + if (mirroringEndpointGroupBuilder_ != null) { + return mirroringEndpointGroupBuilder_.getMessageOrBuilder(); + } else { + return mirroringEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance() + : mirroringEndpointGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to create.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder> + internalGetMirroringEndpointGroupFieldBuilder() { + if (mirroringEndpointGroupBuilder_ == null) { + mirroringEndpointGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder>( + getMirroringEndpointGroup(), getParentForChildren(), isClean()); + mirroringEndpointGroup_ = null; + } + return mirroringEndpointGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) + private static final com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMirroringEndpointGroupRequest 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.networksecurity.v1.CreateMirroringEndpointGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupRequestOrBuilder.java new file mode 100644 index 000000000000..27875abd365c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateMirroringEndpointGroupRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateMirroringEndpointGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this endpoint group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource where this endpoint group will be created.
                                                                                              +   * Format: projects/{project}/locations/{location}
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +   * component of the endpoint group's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mirroringEndpointGroupId. + */ + java.lang.String getMirroringEndpointGroupId(); + + /** + * + * + *
                                                                                              +   * Required. The ID to use for the endpoint group, which will become the final
                                                                                              +   * component of the endpoint group's resource name.
                                                                                              +   * 
                                                                                              + * + * string mirroring_endpoint_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mirroringEndpointGroupId. + */ + com.google.protobuf.ByteString getMirroringEndpointGroupIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroup field is set. + */ + boolean hasMirroringEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroup. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to create.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileGroupRequest.java new file mode 100644 index 000000000000..3042e96a659b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileGroupRequest.java @@ -0,0 +1,1167 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the CreateSecurityProfileGroup method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest} + */ +@com.google.protobuf.Generated +public final class CreateSecurityProfileGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) + CreateSecurityProfileGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateSecurityProfileGroupRequest"); + } + + // Use CreateSecurityProfileGroupRequest.newBuilder() to construct. + private CreateSecurityProfileGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateSecurityProfileGroupRequest() { + parent_ = ""; + securityProfileGroupId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +   * format `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +   * format `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECURITY_PROFILE_GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object securityProfileGroupId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "security_profile_group1".
                                                                                              +   * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The securityProfileGroupId. + */ + @java.lang.Override + public java.lang.String getSecurityProfileGroupId() { + java.lang.Object ref = securityProfileGroupId_; + 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(); + securityProfileGroupId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "security_profile_group1".
                                                                                              +   * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for securityProfileGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecurityProfileGroupIdBytes() { + java.lang.Object ref = securityProfileGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityProfileGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECURITY_PROFILE_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.SecurityProfileGroup securityProfileGroup_; + + /** + * + * + *
                                                                                              +   * Required. SecurityProfileGroup resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfileGroup field is set. + */ + @java.lang.Override + public boolean hasSecurityProfileGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. SecurityProfileGroup resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfileGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroup() { + return securityProfileGroup_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance() + : securityProfileGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. SecurityProfileGroup resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupOrBuilder() { + return securityProfileGroup_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance() + : securityProfileGroup_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(securityProfileGroupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, securityProfileGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSecurityProfileGroup()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(securityProfileGroupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, securityProfileGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecurityProfileGroup()); + } + 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.networksecurity.v1.CreateSecurityProfileGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest other = + (com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSecurityProfileGroupId().equals(other.getSecurityProfileGroupId())) return false; + if (hasSecurityProfileGroup() != other.hasSecurityProfileGroup()) return false; + if (hasSecurityProfileGroup()) { + if (!getSecurityProfileGroup().equals(other.getSecurityProfileGroup())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SECURITY_PROFILE_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getSecurityProfileGroupId().hashCode(); + if (hasSecurityProfileGroup()) { + hash = (37 * hash) + SECURITY_PROFILE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSecurityProfileGroup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest 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.networksecurity.v1.CreateSecurityProfileGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest 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.networksecurity.v1.CreateSecurityProfileGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateSecurityProfileGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the CreateSecurityProfileGroup method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSecurityProfileGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + securityProfileGroupId_ = ""; + securityProfileGroup_ = null; + if (securityProfileGroupBuilder_ != null) { + securityProfileGroupBuilder_.dispose(); + securityProfileGroupBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest build() { + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest result = + new com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityProfileGroupId_ = securityProfileGroupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.securityProfileGroup_ = + securityProfileGroupBuilder_ == null + ? securityProfileGroup_ + : securityProfileGroupBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSecurityProfileGroupId().isEmpty()) { + securityProfileGroupId_ = other.securityProfileGroupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSecurityProfileGroup()) { + mergeSecurityProfileGroup(other.getSecurityProfileGroup()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + securityProfileGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetSecurityProfileGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +     * format `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +     * format `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +     * format `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +     * format `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +     * format `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object securityProfileGroupId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "security_profile_group1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The securityProfileGroupId. + */ + public java.lang.String getSecurityProfileGroupId() { + java.lang.Object ref = securityProfileGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityProfileGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "security_profile_group1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for securityProfileGroupId. + */ + public com.google.protobuf.ByteString getSecurityProfileGroupIdBytes() { + java.lang.Object ref = securityProfileGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityProfileGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "security_profile_group1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The securityProfileGroupId to set. + * @return This builder for chaining. + */ + public Builder setSecurityProfileGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + securityProfileGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "security_profile_group1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSecurityProfileGroupId() { + securityProfileGroupId_ = getDefaultInstance().getSecurityProfileGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "security_profile_group1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for securityProfileGroupId to set. + * @return This builder for chaining. + */ + public Builder setSecurityProfileGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + securityProfileGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.SecurityProfileGroup securityProfileGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder> + securityProfileGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfileGroup field is set. + */ + public boolean hasSecurityProfileGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfileGroup. + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroup() { + if (securityProfileGroupBuilder_ == null) { + return securityProfileGroup_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance() + : securityProfileGroup_; + } else { + return securityProfileGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityProfileGroup( + com.google.cloud.networksecurity.v1.SecurityProfileGroup value) { + if (securityProfileGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityProfileGroup_ = value; + } else { + securityProfileGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityProfileGroup( + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder builderForValue) { + if (securityProfileGroupBuilder_ == null) { + securityProfileGroup_ = builderForValue.build(); + } else { + securityProfileGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSecurityProfileGroup( + com.google.cloud.networksecurity.v1.SecurityProfileGroup value) { + if (securityProfileGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && securityProfileGroup_ != null + && securityProfileGroup_ + != com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance()) { + getSecurityProfileGroupBuilder().mergeFrom(value); + } else { + securityProfileGroup_ = value; + } + } else { + securityProfileGroupBuilder_.mergeFrom(value); + } + if (securityProfileGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSecurityProfileGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + securityProfileGroup_ = null; + if (securityProfileGroupBuilder_ != null) { + securityProfileGroupBuilder_.dispose(); + securityProfileGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder + getSecurityProfileGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSecurityProfileGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupOrBuilder() { + if (securityProfileGroupBuilder_ != null) { + return securityProfileGroupBuilder_.getMessageOrBuilder(); + } else { + return securityProfileGroup_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance() + : securityProfileGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfileGroup resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder> + internalGetSecurityProfileGroupFieldBuilder() { + if (securityProfileGroupBuilder_ == null) { + securityProfileGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder>( + getSecurityProfileGroup(), getParentForChildren(), isClean()); + securityProfileGroup_ = null; + } + return securityProfileGroupBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) + private static final com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSecurityProfileGroupRequest 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.networksecurity.v1.CreateSecurityProfileGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileGroupRequestOrBuilder.java new file mode 100644 index 000000000000..71e779ab1dc6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileGroupRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateSecurityProfileGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +   * format `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the SecurityProfileGroup. Must be in the
                                                                                              +   * format `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "security_profile_group1".
                                                                                              +   * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The securityProfileGroupId. + */ + java.lang.String getSecurityProfileGroupId(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the SecurityProfileGroup resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "security_profile_group1".
                                                                                              +   * 
                                                                                              + * + * string security_profile_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for securityProfileGroupId. + */ + com.google.protobuf.ByteString getSecurityProfileGroupIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. SecurityProfileGroup resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfileGroup field is set. + */ + boolean hasSecurityProfileGroup(); + + /** + * + * + *
                                                                                              +   * Required. SecurityProfileGroup resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfileGroup. + */ + com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroup(); + + /** + * + * + *
                                                                                              +   * Required. SecurityProfileGroup resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileRequest.java new file mode 100644 index 000000000000..19c343eadefc --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileRequest.java @@ -0,0 +1,1156 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the CreateSecurityProfile method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateSecurityProfileRequest} + */ +@com.google.protobuf.Generated +public final class CreateSecurityProfileRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateSecurityProfileRequest) + CreateSecurityProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateSecurityProfileRequest"); + } + + // Use CreateSecurityProfileRequest.newBuilder() to construct. + private CreateSecurityProfileRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateSecurityProfileRequest() { + parent_ = ""; + securityProfileId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest.class, + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECURITY_PROFILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object securityProfileId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "security_profile1".
                                                                                              +   * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The securityProfileId. + */ + @java.lang.Override + public java.lang.String getSecurityProfileId() { + java.lang.Object ref = securityProfileId_; + 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(); + securityProfileId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "security_profile1".
                                                                                              +   * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for securityProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecurityProfileIdBytes() { + java.lang.Object ref = securityProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECURITY_PROFILE_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.SecurityProfile securityProfile_; + + /** + * + * + *
                                                                                              +   * Required. SecurityProfile resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfile field is set. + */ + @java.lang.Override + public boolean hasSecurityProfile() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. SecurityProfile resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfile() { + return securityProfile_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance() + : securityProfile_; + } + + /** + * + * + *
                                                                                              +   * Required. SecurityProfile resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder + getSecurityProfileOrBuilder() { + return securityProfile_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance() + : securityProfile_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(securityProfileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, securityProfileId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSecurityProfile()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(securityProfileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, securityProfileId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecurityProfile()); + } + 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.networksecurity.v1.CreateSecurityProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest other = + (com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSecurityProfileId().equals(other.getSecurityProfileId())) return false; + if (hasSecurityProfile() != other.hasSecurityProfile()) return false; + if (hasSecurityProfile()) { + if (!getSecurityProfile().equals(other.getSecurityProfile())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SECURITY_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSecurityProfileId().hashCode(); + if (hasSecurityProfile()) { + hash = (37 * hash) + SECURITY_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getSecurityProfile().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest 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.networksecurity.v1.CreateSecurityProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest 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.networksecurity.v1.CreateSecurityProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateSecurityProfileRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the CreateSecurityProfile method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateSecurityProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateSecurityProfileRequest) + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest.class, + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSecurityProfileFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + securityProfileId_ = ""; + securityProfile_ = null; + if (securityProfileBuilder_ != null) { + securityProfileBuilder_.dispose(); + securityProfileBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest build() { + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest result = + new com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityProfileId_ = securityProfileId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.securityProfile_ = + securityProfileBuilder_ == null ? securityProfile_ : securityProfileBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSecurityProfileId().isEmpty()) { + securityProfileId_ = other.securityProfileId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSecurityProfile()) { + mergeSecurityProfile(other.getSecurityProfile()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + securityProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetSecurityProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object securityProfileId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "security_profile1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The securityProfileId. + */ + public java.lang.String getSecurityProfileId() { + java.lang.Object ref = securityProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "security_profile1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for securityProfileId. + */ + public com.google.protobuf.ByteString getSecurityProfileIdBytes() { + java.lang.Object ref = securityProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "security_profile1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The securityProfileId to set. + * @return This builder for chaining. + */ + public Builder setSecurityProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + securityProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "security_profile1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSecurityProfileId() { + securityProfileId_ = getDefaultInstance().getSecurityProfileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "security_profile1".
                                                                                              +     * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for securityProfileId to set. + * @return This builder for chaining. + */ + public Builder setSecurityProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + securityProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.SecurityProfile securityProfile_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder> + securityProfileBuilder_; + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfile field is set. + */ + public boolean hasSecurityProfile() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfile. + */ + public com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfile() { + if (securityProfileBuilder_ == null) { + return securityProfile_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance() + : securityProfile_; + } else { + return securityProfileBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityProfile(com.google.cloud.networksecurity.v1.SecurityProfile value) { + if (securityProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityProfile_ = value; + } else { + securityProfileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityProfile( + com.google.cloud.networksecurity.v1.SecurityProfile.Builder builderForValue) { + if (securityProfileBuilder_ == null) { + securityProfile_ = builderForValue.build(); + } else { + securityProfileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSecurityProfile(com.google.cloud.networksecurity.v1.SecurityProfile value) { + if (securityProfileBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && securityProfile_ != null + && securityProfile_ + != com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance()) { + getSecurityProfileBuilder().mergeFrom(value); + } else { + securityProfile_ = value; + } + } else { + securityProfileBuilder_.mergeFrom(value); + } + if (securityProfile_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSecurityProfile() { + bitField0_ = (bitField0_ & ~0x00000004); + securityProfile_ = null; + if (securityProfileBuilder_ != null) { + securityProfileBuilder_.dispose(); + securityProfileBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfile.Builder getSecurityProfileBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSecurityProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder + getSecurityProfileOrBuilder() { + if (securityProfileBuilder_ != null) { + return securityProfileBuilder_.getMessageOrBuilder(); + } else { + return securityProfile_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance() + : securityProfile_; + } + } + + /** + * + * + *
                                                                                              +     * Required. SecurityProfile resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder> + internalGetSecurityProfileFieldBuilder() { + if (securityProfileBuilder_ == null) { + securityProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder>( + getSecurityProfile(), getParentForChildren(), isClean()); + securityProfile_ = null; + } + return securityProfileBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateSecurityProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateSecurityProfileRequest) + private static final com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSecurityProfileRequest 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.networksecurity.v1.CreateSecurityProfileRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileRequestOrBuilder.java new file mode 100644 index 000000000000..aa94cfe62774 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateSecurityProfileRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateSecurityProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateSecurityProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the SecurityProfile. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "security_profile1".
                                                                                              +   * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The securityProfileId. + */ + java.lang.String getSecurityProfileId(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the SecurityProfile resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "security_profile1".
                                                                                              +   * 
                                                                                              + * + * string security_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for securityProfileId. + */ + com.google.protobuf.ByteString getSecurityProfileIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. SecurityProfile resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfile field is set. + */ + boolean hasSecurityProfile(); + + /** + * + * + *
                                                                                              +   * Required. SecurityProfile resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfile. + */ + com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfile(); + + /** + * + * + *
                                                                                              +   * Required. SecurityProfile resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder getSecurityProfileOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java index 751839256393..13b2b663fae7 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequest.java @@ -140,9 +140,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -   * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -   * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +   * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "server_mtls_policy".
                                                                                                  * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -166,9 +167,10 @@ public java.lang.String getServerTlsPolicyId() { * * *
                                                                                              -   * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -   * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -   * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +   * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "server_mtls_policy".
                                                                                                  * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -764,9 +766,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +     * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "server_mtls_policy".
                                                                                                    * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -789,9 +792,10 @@ public java.lang.String getServerTlsPolicyId() { * * *
                                                                                              -     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +     * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "server_mtls_policy".
                                                                                                    * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -814,9 +818,10 @@ public com.google.protobuf.ByteString getServerTlsPolicyIdBytes() { * * *
                                                                                              -     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +     * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "server_mtls_policy".
                                                                                                    * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -838,9 +843,10 @@ public Builder setServerTlsPolicyId(java.lang.String value) { * * *
                                                                                              -     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +     * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "server_mtls_policy".
                                                                                                    * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -858,9 +864,10 @@ public Builder clearServerTlsPolicyId() { * * *
                                                                                              -     * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -     * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -     * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +     * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +     * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +     * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +     * "server_mtls_policy".
                                                                                                    * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java index a8f8645aa69b..01519c0a1f3e 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateServerTlsPolicyRequestOrBuilder.java @@ -62,9 +62,10 @@ public interface CreateServerTlsPolicyRequestOrBuilder * * *
                                                                                              -   * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -   * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -   * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +   * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "server_mtls_policy".
                                                                                                  * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -77,9 +78,10 @@ public interface CreateServerTlsPolicyRequestOrBuilder * * *
                                                                                              -   * Required. Short name of the ServerTlsPolicy resource to be created. This value should
                                                                                              -   * be 1-63 characters long, containing only letters, numbers, hyphens, and
                                                                                              -   * underscores, and should not start with a number. E.g. "server_mtls_policy".
                                                                                              +   * Required. Short name of the ServerTlsPolicy resource to be created. This
                                                                                              +   * value should be 1-63 characters long, containing only letters, numbers,
                                                                                              +   * hyphens, and underscores, and should not start with a number. E.g.
                                                                                              +   * "server_mtls_policy".
                                                                                                  * 
                                                                                              * * string server_tls_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateTlsInspectionPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateTlsInspectionPolicyRequest.java new file mode 100644 index 000000000000..11a89a7de03f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateTlsInspectionPolicyRequest.java @@ -0,0 +1,1166 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the CreateTlsInspectionPolicy method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateTlsInspectionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) + CreateTlsInspectionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateTlsInspectionPolicyRequest"); + } + + // Use CreateTlsInspectionPolicyRequest.newBuilder() to construct. + private CreateTlsInspectionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateTlsInspectionPolicyRequest() { + parent_ = ""; + tlsInspectionPolicyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest.class, + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TLS_INSPECTION_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tlsInspectionPolicyId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "tls_inspection_policy1".
                                                                                              +   * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tlsInspectionPolicyId. + */ + @java.lang.Override + public java.lang.String getTlsInspectionPolicyId() { + java.lang.Object ref = tlsInspectionPolicyId_; + 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(); + tlsInspectionPolicyId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "tls_inspection_policy1".
                                                                                              +   * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tlsInspectionPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTlsInspectionPolicyIdBytes() { + java.lang.Object ref = tlsInspectionPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlsInspectionPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TLS_INSPECTION_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.TlsInspectionPolicy tlsInspectionPolicy_; + + /** + * + * + *
                                                                                              +   * Required. TlsInspectionPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tlsInspectionPolicy field is set. + */ + @java.lang.Override + public boolean hasTlsInspectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. TlsInspectionPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tlsInspectionPolicy. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicy() { + return tlsInspectionPolicy_ == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance() + : tlsInspectionPolicy_; + } + + /** + * + * + *
                                                                                              +   * Required. TlsInspectionPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPolicyOrBuilder() { + return tlsInspectionPolicy_ == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance() + : tlsInspectionPolicy_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tlsInspectionPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tlsInspectionPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getTlsInspectionPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tlsInspectionPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tlsInspectionPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTlsInspectionPolicy()); + } + 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.networksecurity.v1.CreateTlsInspectionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest other = + (com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getTlsInspectionPolicyId().equals(other.getTlsInspectionPolicyId())) return false; + if (hasTlsInspectionPolicy() != other.hasTlsInspectionPolicy()) return false; + if (hasTlsInspectionPolicy()) { + if (!getTlsInspectionPolicy().equals(other.getTlsInspectionPolicy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + TLS_INSPECTION_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getTlsInspectionPolicyId().hashCode(); + if (hasTlsInspectionPolicy()) { + hash = (37 * hash) + TLS_INSPECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getTlsInspectionPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest 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.networksecurity.v1.CreateTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest 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.networksecurity.v1.CreateTlsInspectionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateTlsInspectionPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the CreateTlsInspectionPolicy method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest.class, + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTlsInspectionPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + tlsInspectionPolicyId_ = ""; + tlsInspectionPolicy_ = null; + if (tlsInspectionPolicyBuilder_ != null) { + tlsInspectionPolicyBuilder_.dispose(); + tlsInspectionPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest build() { + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest result = + new com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tlsInspectionPolicyId_ = tlsInspectionPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tlsInspectionPolicy_ = + tlsInspectionPolicyBuilder_ == null + ? tlsInspectionPolicy_ + : tlsInspectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTlsInspectionPolicyId().isEmpty()) { + tlsInspectionPolicyId_ = other.tlsInspectionPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTlsInspectionPolicy()) { + mergeTlsInspectionPolicy(other.getTlsInspectionPolicy()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tlsInspectionPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetTlsInspectionPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tlsInspectionPolicyId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "tls_inspection_policy1".
                                                                                              +     * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tlsInspectionPolicyId. + */ + public java.lang.String getTlsInspectionPolicyId() { + java.lang.Object ref = tlsInspectionPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tlsInspectionPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "tls_inspection_policy1".
                                                                                              +     * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tlsInspectionPolicyId. + */ + public com.google.protobuf.ByteString getTlsInspectionPolicyIdBytes() { + java.lang.Object ref = tlsInspectionPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlsInspectionPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "tls_inspection_policy1".
                                                                                              +     * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tlsInspectionPolicyId to set. + * @return This builder for chaining. + */ + public Builder setTlsInspectionPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tlsInspectionPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "tls_inspection_policy1".
                                                                                              +     * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTlsInspectionPolicyId() { + tlsInspectionPolicyId_ = getDefaultInstance().getTlsInspectionPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +     * This value should be 1-63 characters long, containing only
                                                                                              +     * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +     * with a number. E.g. "tls_inspection_policy1".
                                                                                              +     * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tlsInspectionPolicyId to set. + * @return This builder for chaining. + */ + public Builder setTlsInspectionPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tlsInspectionPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.TlsInspectionPolicy tlsInspectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder> + tlsInspectionPolicyBuilder_; + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tlsInspectionPolicy field is set. + */ + public boolean hasTlsInspectionPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tlsInspectionPolicy. + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicy() { + if (tlsInspectionPolicyBuilder_ == null) { + return tlsInspectionPolicy_ == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance() + : tlsInspectionPolicy_; + } else { + return tlsInspectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy value) { + if (tlsInspectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsInspectionPolicy_ = value; + } else { + tlsInspectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder builderForValue) { + if (tlsInspectionPolicyBuilder_ == null) { + tlsInspectionPolicy_ = builderForValue.build(); + } else { + tlsInspectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy value) { + if (tlsInspectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && tlsInspectionPolicy_ != null + && tlsInspectionPolicy_ + != com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance()) { + getTlsInspectionPolicyBuilder().mergeFrom(value); + } else { + tlsInspectionPolicy_ = value; + } + } else { + tlsInspectionPolicyBuilder_.mergeFrom(value); + } + if (tlsInspectionPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTlsInspectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + tlsInspectionPolicy_ = null; + if (tlsInspectionPolicyBuilder_ != null) { + tlsInspectionPolicyBuilder_.dispose(); + tlsInspectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder + getTlsInspectionPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetTlsInspectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPolicyOrBuilder() { + if (tlsInspectionPolicyBuilder_ != null) { + return tlsInspectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return tlsInspectionPolicy_ == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance() + : tlsInspectionPolicy_; + } + } + + /** + * + * + *
                                                                                              +     * Required. TlsInspectionPolicy resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder> + internalGetTlsInspectionPolicyFieldBuilder() { + if (tlsInspectionPolicyBuilder_ == null) { + tlsInspectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder>( + getTlsInspectionPolicy(), getParentForChildren(), isClean()); + tlsInspectionPolicy_ = null; + } + return tlsInspectionPolicyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) + private static final com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTlsInspectionPolicyRequest 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.networksecurity.v1.CreateTlsInspectionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateTlsInspectionPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateTlsInspectionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..005948ec7451 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateTlsInspectionPolicyRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateTlsInspectionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the TlsInspectionPolicy. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "tls_inspection_policy1".
                                                                                              +   * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tlsInspectionPolicyId. + */ + java.lang.String getTlsInspectionPolicyId(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the TlsInspectionPolicy resource to be created.
                                                                                              +   * This value should be 1-63 characters long, containing only
                                                                                              +   * letters, numbers, hyphens, and underscores, and should not start
                                                                                              +   * with a number. E.g. "tls_inspection_policy1".
                                                                                              +   * 
                                                                                              + * + * string tls_inspection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tlsInspectionPolicyId. + */ + com.google.protobuf.ByteString getTlsInspectionPolicyIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. TlsInspectionPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tlsInspectionPolicy field is set. + */ + boolean hasTlsInspectionPolicy(); + + /** + * + * + *
                                                                                              +   * Required. TlsInspectionPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tlsInspectionPolicy. + */ + com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicy(); + + /** + * + * + *
                                                                                              +   * Required. TlsInspectionPolicy resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPolicyOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateUrlListRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateUrlListRequest.java new file mode 100644 index 000000000000..5995a5ed54f1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateUrlListRequest.java @@ -0,0 +1,1136 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the CreateUrlList method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateUrlListRequest} + */ +@com.google.protobuf.Generated +public final class CreateUrlListRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateUrlListRequest) + CreateUrlListRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateUrlListRequest"); + } + + // Use CreateUrlListRequest.newBuilder() to construct. + private CreateUrlListRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateUrlListRequest() { + parent_ = ""; + urlListId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateUrlListRequest.class, + com.google.cloud.networksecurity.v1.CreateUrlListRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the UrlList. Must be in
                                                                                              +   * the format `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the UrlList. Must be in
                                                                                              +   * the format `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_LIST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object urlListId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Short name of the UrlList resource to be created. This value
                                                                                              +   * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +   * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +   * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The urlListId. + */ + @java.lang.Override + public java.lang.String getUrlListId() { + java.lang.Object ref = urlListId_; + 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(); + urlListId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Short name of the UrlList resource to be created. This value
                                                                                              +   * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +   * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +   * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for urlListId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlListIdBytes() { + java.lang.Object ref = urlListId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + urlListId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_LIST_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.UrlList urlList_; + + /** + * + * + *
                                                                                              +   * Required. UrlList resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the urlList field is set. + */ + @java.lang.Override + public boolean hasUrlList() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. UrlList resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The urlList. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlList getUrlList() { + return urlList_ == null + ? com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance() + : urlList_; + } + + /** + * + * + *
                                                                                              +   * Required. UrlList resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListOrBuilder() { + return urlList_ == null + ? com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance() + : urlList_; + } + + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlListId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, urlListId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getUrlList()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlListId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, urlListId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUrlList()); + } + 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.networksecurity.v1.CreateUrlListRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateUrlListRequest other = + (com.google.cloud.networksecurity.v1.CreateUrlListRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getUrlListId().equals(other.getUrlListId())) return false; + if (hasUrlList() != other.hasUrlList()) return false; + if (hasUrlList()) { + if (!getUrlList().equals(other.getUrlList())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + URL_LIST_ID_FIELD_NUMBER; + hash = (53 * hash) + getUrlListId().hashCode(); + if (hasUrlList()) { + hash = (37 * hash) + URL_LIST_FIELD_NUMBER; + hash = (53 * hash) + getUrlList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest 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.networksecurity.v1.CreateUrlListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest 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.networksecurity.v1.CreateUrlListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CreateUrlListRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the CreateUrlList method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateUrlListRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateUrlListRequest) + com.google.cloud.networksecurity.v1.CreateUrlListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateUrlListRequest.class, + com.google.cloud.networksecurity.v1.CreateUrlListRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.CreateUrlListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUrlListFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + urlListId_ = ""; + urlList_ = null; + if (urlListBuilder_ != null) { + urlListBuilder_.dispose(); + urlListBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateUrlListRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateUrlListRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateUrlListRequest build() { + com.google.cloud.networksecurity.v1.CreateUrlListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateUrlListRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateUrlListRequest result = + new com.google.cloud.networksecurity.v1.CreateUrlListRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.CreateUrlListRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.urlListId_ = urlListId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.urlList_ = urlListBuilder_ == null ? urlList_ : urlListBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateUrlListRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.CreateUrlListRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.CreateUrlListRequest other) { + if (other == com.google.cloud.networksecurity.v1.CreateUrlListRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUrlListId().isEmpty()) { + urlListId_ = other.urlListId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUrlList()) { + mergeUrlList(other.getUrlList()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + urlListId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetUrlListFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the UrlList. Must be in
                                                                                              +     * the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the UrlList. Must be in
                                                                                              +     * the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the UrlList. Must be in
                                                                                              +     * the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the UrlList. Must be in
                                                                                              +     * the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent resource of the UrlList. Must be in
                                                                                              +     * the format `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object urlListId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Short name of the UrlList resource to be created. This value
                                                                                              +     * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +     * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +     * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The urlListId. + */ + public java.lang.String getUrlListId() { + java.lang.Object ref = urlListId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlListId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the UrlList resource to be created. This value
                                                                                              +     * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +     * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +     * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for urlListId. + */ + public com.google.protobuf.ByteString getUrlListIdBytes() { + java.lang.Object ref = urlListId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + urlListId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the UrlList resource to be created. This value
                                                                                              +     * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +     * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +     * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The urlListId to set. + * @return This builder for chaining. + */ + public Builder setUrlListId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + urlListId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the UrlList resource to be created. This value
                                                                                              +     * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +     * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +     * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrlListId() { + urlListId_ = getDefaultInstance().getUrlListId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Short name of the UrlList resource to be created. This value
                                                                                              +     * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +     * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +     * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for urlListId to set. + * @return This builder for chaining. + */ + public Builder setUrlListIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + urlListId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.UrlList urlList_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder> + urlListBuilder_; + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the urlList field is set. + */ + public boolean hasUrlList() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The urlList. + */ + public com.google.cloud.networksecurity.v1.UrlList getUrlList() { + if (urlListBuilder_ == null) { + return urlList_ == null + ? com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance() + : urlList_; + } else { + return urlListBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUrlList(com.google.cloud.networksecurity.v1.UrlList value) { + if (urlListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + urlList_ = value; + } else { + urlListBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUrlList(com.google.cloud.networksecurity.v1.UrlList.Builder builderForValue) { + if (urlListBuilder_ == null) { + urlList_ = builderForValue.build(); + } else { + urlListBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUrlList(com.google.cloud.networksecurity.v1.UrlList value) { + if (urlListBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && urlList_ != null + && urlList_ != com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance()) { + getUrlListBuilder().mergeFrom(value); + } else { + urlList_ = value; + } + } else { + urlListBuilder_.mergeFrom(value); + } + if (urlList_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUrlList() { + bitField0_ = (bitField0_ & ~0x00000004); + urlList_ = null; + if (urlListBuilder_ != null) { + urlListBuilder_.dispose(); + urlListBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.UrlList.Builder getUrlListBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUrlListFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListOrBuilder() { + if (urlListBuilder_ != null) { + return urlListBuilder_.getMessageOrBuilder(); + } else { + return urlList_ == null + ? com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance() + : urlList_; + } + } + + /** + * + * + *
                                                                                              +     * Required. UrlList resource to be created.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder> + internalGetUrlListFieldBuilder() { + if (urlListBuilder_ == null) { + urlListBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder>( + getUrlList(), getParentForChildren(), isClean()); + urlList_ = null; + } + return urlListBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateUrlListRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateUrlListRequest) + private static final com.google.cloud.networksecurity.v1.CreateUrlListRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateUrlListRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateUrlListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUrlListRequest 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.networksecurity.v1.CreateUrlListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateUrlListRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateUrlListRequestOrBuilder.java new file mode 100644 index 000000000000..eb88b99f2341 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateUrlListRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CreateUrlListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateUrlListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the UrlList. Must be in
                                                                                              +   * the format `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent resource of the UrlList. Must be in
                                                                                              +   * the format `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the UrlList resource to be created. This value
                                                                                              +   * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +   * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +   * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The urlListId. + */ + java.lang.String getUrlListId(); + + /** + * + * + *
                                                                                              +   * Required. Short name of the UrlList resource to be created. This value
                                                                                              +   * should be 1-63 characters long, containing only letters, numbers, hyphens,
                                                                                              +   * and underscores, and should not start with a number. E.g. "url_list".
                                                                                              +   * 
                                                                                              + * + * string url_list_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for urlListId. + */ + com.google.protobuf.ByteString getUrlListIdBytes(); + + /** + * + * + *
                                                                                              +   * Required. UrlList resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the urlList field is set. + */ + boolean hasUrlList(); + + /** + * + * + *
                                                                                              +   * Required. UrlList resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The urlList. + */ + com.google.cloud.networksecurity.v1.UrlList getUrlList(); + + /** + * + * + *
                                                                                              +   * Required. UrlList resource to be created.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomInterceptProfile.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomInterceptProfile.java new file mode 100644 index 000000000000..f89ca873ae39 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomInterceptProfile.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * CustomInterceptProfile defines in-band integration behavior (intercept).
                                                                                              + * It is used by firewall rules with an APPLY_SECURITY_PROFILE_GROUP action.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CustomInterceptProfile} + */ +@com.google.protobuf.Generated +public final class CustomInterceptProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CustomInterceptProfile) + CustomInterceptProfileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomInterceptProfile"); + } + + // Use CustomInterceptProfile.newBuilder() to construct. + private CustomInterceptProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomInterceptProfile() { + interceptEndpointGroup_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupInterceptProto + .internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupInterceptProto + .internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CustomInterceptProfile.class, + com.google.cloud.networksecurity.v1.CustomInterceptProfile.Builder.class); + } + + public static final int INTERCEPT_ENDPOINT_GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object interceptEndpointGroup_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The target InterceptEndpointGroup.
                                                                                              +   * When a firewall rule with this security profile attached matches a packet,
                                                                                              +   * the packet will be intercepted to the location-local target in this group.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptEndpointGroup. + */ + @java.lang.Override + public java.lang.String getInterceptEndpointGroup() { + java.lang.Object ref = interceptEndpointGroup_; + 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(); + interceptEndpointGroup_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The target InterceptEndpointGroup.
                                                                                              +   * When a firewall rule with this security profile attached matches a packet,
                                                                                              +   * the packet will be intercepted to the location-local target in this group.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptEndpointGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterceptEndpointGroupBytes() { + java.lang.Object ref = interceptEndpointGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptEndpointGroup_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptEndpointGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, interceptEndpointGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptEndpointGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, interceptEndpointGroup_); + } + 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.networksecurity.v1.CustomInterceptProfile)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CustomInterceptProfile other = + (com.google.cloud.networksecurity.v1.CustomInterceptProfile) obj; + + if (!getInterceptEndpointGroup().equals(other.getInterceptEndpointGroup())) 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) + INTERCEPT_ENDPOINT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroup().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile 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.networksecurity.v1.CustomInterceptProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile 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.networksecurity.v1.CustomInterceptProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CustomInterceptProfile 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * CustomInterceptProfile defines in-band integration behavior (intercept).
                                                                                              +   * It is used by firewall rules with an APPLY_SECURITY_PROFILE_GROUP action.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CustomInterceptProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CustomInterceptProfile) + com.google.cloud.networksecurity.v1.CustomInterceptProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupInterceptProto + .internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupInterceptProto + .internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CustomInterceptProfile.class, + com.google.cloud.networksecurity.v1.CustomInterceptProfile.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.CustomInterceptProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + interceptEndpointGroup_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupInterceptProto + .internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomInterceptProfile getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CustomInterceptProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomInterceptProfile build() { + com.google.cloud.networksecurity.v1.CustomInterceptProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomInterceptProfile buildPartial() { + com.google.cloud.networksecurity.v1.CustomInterceptProfile result = + new com.google.cloud.networksecurity.v1.CustomInterceptProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.CustomInterceptProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.interceptEndpointGroup_ = interceptEndpointGroup_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CustomInterceptProfile) { + return mergeFrom((com.google.cloud.networksecurity.v1.CustomInterceptProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.CustomInterceptProfile other) { + if (other == com.google.cloud.networksecurity.v1.CustomInterceptProfile.getDefaultInstance()) + return this; + if (!other.getInterceptEndpointGroup().isEmpty()) { + interceptEndpointGroup_ = other.interceptEndpointGroup_; + bitField0_ |= 0x00000001; + 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: + { + interceptEndpointGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object interceptEndpointGroup_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The target InterceptEndpointGroup.
                                                                                              +     * When a firewall rule with this security profile attached matches a packet,
                                                                                              +     * the packet will be intercepted to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptEndpointGroup. + */ + public java.lang.String getInterceptEndpointGroup() { + java.lang.Object ref = interceptEndpointGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interceptEndpointGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The target InterceptEndpointGroup.
                                                                                              +     * When a firewall rule with this security profile attached matches a packet,
                                                                                              +     * the packet will be intercepted to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptEndpointGroup. + */ + public com.google.protobuf.ByteString getInterceptEndpointGroupBytes() { + java.lang.Object ref = interceptEndpointGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptEndpointGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The target InterceptEndpointGroup.
                                                                                              +     * When a firewall rule with this security profile attached matches a packet,
                                                                                              +     * the packet will be intercepted to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The interceptEndpointGroup to set. + * @return This builder for chaining. + */ + public Builder setInterceptEndpointGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interceptEndpointGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The target InterceptEndpointGroup.
                                                                                              +     * When a firewall rule with this security profile attached matches a packet,
                                                                                              +     * the packet will be intercepted to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInterceptEndpointGroup() { + interceptEndpointGroup_ = getDefaultInstance().getInterceptEndpointGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The target InterceptEndpointGroup.
                                                                                              +     * When a firewall rule with this security profile attached matches a packet,
                                                                                              +     * the packet will be intercepted to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for interceptEndpointGroup to set. + * @return This builder for chaining. + */ + public Builder setInterceptEndpointGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interceptEndpointGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CustomInterceptProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CustomInterceptProfile) + private static final com.google.cloud.networksecurity.v1.CustomInterceptProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CustomInterceptProfile(); + } + + public static com.google.cloud.networksecurity.v1.CustomInterceptProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomInterceptProfile 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.networksecurity.v1.CustomInterceptProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomInterceptProfileOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomInterceptProfileOrBuilder.java new file mode 100644 index 000000000000..786edb3164b0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomInterceptProfileOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CustomInterceptProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CustomInterceptProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The target InterceptEndpointGroup.
                                                                                              +   * When a firewall rule with this security profile attached matches a packet,
                                                                                              +   * the packet will be intercepted to the location-local target in this group.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptEndpointGroup. + */ + java.lang.String getInterceptEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The target InterceptEndpointGroup.
                                                                                              +   * When a firewall rule with this security profile attached matches a packet,
                                                                                              +   * the packet will be intercepted to the location-local target in this group.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptEndpointGroup. + */ + com.google.protobuf.ByteString getInterceptEndpointGroupBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomMirroringProfile.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomMirroringProfile.java new file mode 100644 index 000000000000..6fcc44bc9fe0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomMirroringProfile.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * CustomMirroringProfile defines out-of-band integration behavior (mirroring).
                                                                                              + * It is used by mirroring rules with a MIRROR action.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CustomMirroringProfile} + */ +@com.google.protobuf.Generated +public final class CustomMirroringProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CustomMirroringProfile) + CustomMirroringProfileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomMirroringProfile"); + } + + // Use CustomMirroringProfile.newBuilder() to construct. + private CustomMirroringProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomMirroringProfile() { + mirroringEndpointGroup_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupMirroringProto + .internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupMirroringProto + .internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CustomMirroringProfile.class, + com.google.cloud.networksecurity.v1.CustomMirroringProfile.Builder.class); + } + + public static final int MIRRORING_ENDPOINT_GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mirroringEndpointGroup_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +   * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +   * a replica will be mirrored to the location-local target in this group.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringEndpointGroup. + */ + @java.lang.Override + public java.lang.String getMirroringEndpointGroup() { + java.lang.Object ref = mirroringEndpointGroup_; + 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(); + mirroringEndpointGroup_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +   * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +   * a replica will be mirrored to the location-local target in this group.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringEndpointGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMirroringEndpointGroupBytes() { + java.lang.Object ref = mirroringEndpointGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringEndpointGroup_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringEndpointGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mirroringEndpointGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringEndpointGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mirroringEndpointGroup_); + } + 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.networksecurity.v1.CustomMirroringProfile)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CustomMirroringProfile other = + (com.google.cloud.networksecurity.v1.CustomMirroringProfile) obj; + + if (!getMirroringEndpointGroup().equals(other.getMirroringEndpointGroup())) 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) + MIRRORING_ENDPOINT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroup().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile 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.networksecurity.v1.CustomMirroringProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile 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.networksecurity.v1.CustomMirroringProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.CustomMirroringProfile 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * CustomMirroringProfile defines out-of-band integration behavior (mirroring).
                                                                                              +   * It is used by mirroring rules with a MIRROR action.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.CustomMirroringProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CustomMirroringProfile) + com.google.cloud.networksecurity.v1.CustomMirroringProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupMirroringProto + .internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupMirroringProto + .internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CustomMirroringProfile.class, + com.google.cloud.networksecurity.v1.CustomMirroringProfile.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.CustomMirroringProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mirroringEndpointGroup_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupMirroringProto + .internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomMirroringProfile getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CustomMirroringProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomMirroringProfile build() { + com.google.cloud.networksecurity.v1.CustomMirroringProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomMirroringProfile buildPartial() { + com.google.cloud.networksecurity.v1.CustomMirroringProfile result = + new com.google.cloud.networksecurity.v1.CustomMirroringProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.CustomMirroringProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mirroringEndpointGroup_ = mirroringEndpointGroup_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CustomMirroringProfile) { + return mergeFrom((com.google.cloud.networksecurity.v1.CustomMirroringProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.CustomMirroringProfile other) { + if (other == com.google.cloud.networksecurity.v1.CustomMirroringProfile.getDefaultInstance()) + return this; + if (!other.getMirroringEndpointGroup().isEmpty()) { + mirroringEndpointGroup_ = other.mirroringEndpointGroup_; + bitField0_ |= 0x00000001; + 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: + { + mirroringEndpointGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object mirroringEndpointGroup_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +     * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +     * a replica will be mirrored to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringEndpointGroup. + */ + public java.lang.String getMirroringEndpointGroup() { + java.lang.Object ref = mirroringEndpointGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mirroringEndpointGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +     * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +     * a replica will be mirrored to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringEndpointGroup. + */ + public com.google.protobuf.ByteString getMirroringEndpointGroupBytes() { + java.lang.Object ref = mirroringEndpointGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringEndpointGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +     * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +     * a replica will be mirrored to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The mirroringEndpointGroup to set. + * @return This builder for chaining. + */ + public Builder setMirroringEndpointGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mirroringEndpointGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +     * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +     * a replica will be mirrored to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMirroringEndpointGroup() { + mirroringEndpointGroup_ = getDefaultInstance().getMirroringEndpointGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +     * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +     * a replica will be mirrored to the location-local target in this group.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for mirroringEndpointGroup to set. + * @return This builder for chaining. + */ + public Builder setMirroringEndpointGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mirroringEndpointGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CustomMirroringProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CustomMirroringProfile) + private static final com.google.cloud.networksecurity.v1.CustomMirroringProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CustomMirroringProfile(); + } + + public static com.google.cloud.networksecurity.v1.CustomMirroringProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomMirroringProfile 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.networksecurity.v1.CustomMirroringProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomMirroringProfileOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomMirroringProfileOrBuilder.java new file mode 100644 index 000000000000..10700d278135 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CustomMirroringProfileOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface CustomMirroringProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CustomMirroringProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +   * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +   * a replica will be mirrored to the location-local target in this group.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringEndpointGroup. + */ + java.lang.String getMirroringEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The target MirroringEndpointGroup.
                                                                                              +   * When a mirroring rule with this security profile attached matches a packet,
                                                                                              +   * a replica will be mirrored to the location-local target in this group.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringEndpointGroup. + */ + com.google.protobuf.ByteString getMirroringEndpointGroupBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java index 080bc5e96090..020d0e0ab39b 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequest.java @@ -80,8 +80,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                              -   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +   * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                  * 
                                                                                              * * @@ -107,8 +107,8 @@ public java.lang.String getName() { * * *
                                                                                              -   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +   * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                  * 
                                                                                              * * @@ -455,8 +455,8 @@ public Builder mergeFrom( * * *
                                                                                              -     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +     * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                    * 
                                                                                              * * @@ -481,8 +481,8 @@ public java.lang.String getName() { * * *
                                                                                              -     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +     * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                    * 
                                                                                              * * @@ -507,8 +507,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                                                                              -     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +     * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                    * 
                                                                                              * * @@ -532,8 +532,8 @@ public Builder setName(java.lang.String value) { * * *
                                                                                              -     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +     * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                    * 
                                                                                              * * @@ -553,8 +553,8 @@ public Builder clearName() { * * *
                                                                                              -     * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -     * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +     * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                    * 
                                                                                              * * diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java index 6890f554491a..308c28f63212 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthorizationPolicyRequestOrBuilder.java @@ -30,8 +30,8 @@ public interface DeleteAuthorizationPolicyRequestOrBuilder * * *
                                                                                              -   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +   * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                  * 
                                                                                              * * @@ -46,8 +46,8 @@ public interface DeleteAuthorizationPolicyRequestOrBuilder * * *
                                                                                              -   * Required. A name of the AuthorizationPolicy to delete. Must be in the format
                                                                                              -   * `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                              +   * Required. A name of the AuthorizationPolicy to delete. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}/authorizationPolicies/*`.
                                                                                                  * 
                                                                                              * * diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthzPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthzPolicyRequest.java new file mode 100644 index 000000000000..b9c0edc1e6d3 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthzPolicyRequest.java @@ -0,0 +1,916 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for deleting an `AuthzPolicy` resource.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAuthzPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) + DeleteAuthzPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAuthzPolicyRequest"); + } + + // Use DeleteAuthzPolicyRequest.newBuilder() to construct. + private DeleteAuthzPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAuthzPolicyRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest.class, + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +   * the format
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +   * the format
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteAuthzPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest other = + (com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest 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.networksecurity.v1.DeleteAuthzPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest 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.networksecurity.v1.DeleteAuthzPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteAuthzPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for deleting an `AuthzPolicy` resource.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest.class, + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest build() { + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest result = + new com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) + private static final com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthzPolicyRequest 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.networksecurity.v1.DeleteAuthzPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthzPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthzPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..f6544b0ac0b1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAuthzPolicyRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteAuthzPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +   * the format
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the `AuthzPolicy` resource to delete. Must be in
                                                                                              +   * the format
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteBackendAuthenticationConfigRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteBackendAuthenticationConfigRequest.java new file mode 100644 index 000000000000..9631038c89a6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteBackendAuthenticationConfigRequest.java @@ -0,0 +1,846 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the DeleteBackendAuthenticationConfig method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest} + */ +@com.google.protobuf.Generated +public final class DeleteBackendAuthenticationConfigRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) + DeleteBackendAuthenticationConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteBackendAuthenticationConfigRequest"); + } + + // Use DeleteBackendAuthenticationConfigRequest.newBuilder() to construct. + private DeleteBackendAuthenticationConfigRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteBackendAuthenticationConfigRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest.class, + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +   * the format
                                                                                              +   * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +   * the format
                                                                                              +   * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Etag of the resource.
                                                                                              +   * If this is provided, it must match the server's etag.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Etag of the resource.
                                                                                              +   * If this is provided, it must match the server's etag.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + 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.networksecurity.v1.DeleteBackendAuthenticationConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest other = + (com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + 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.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + 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.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteBackendAuthenticationConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the DeleteBackendAuthenticationConfig method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest.class, + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_DeleteBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest build() { + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + buildPartial() { + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest result = + new com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +     * the format
                                                                                              +     * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Etag of the resource.
                                                                                              +     * If this is provided, it must match the server's etag.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Etag of the resource.
                                                                                              +     * If this is provided, it must match the server's etag.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Etag of the resource.
                                                                                              +     * If this is provided, it must match the server's etag.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Etag of the resource.
                                                                                              +     * If this is provided, it must match the server's etag.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Etag of the resource.
                                                                                              +     * If this is provided, it must match the server's etag.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) + private static final com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackendAuthenticationConfigRequest 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.networksecurity.v1.DeleteBackendAuthenticationConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteBackendAuthenticationConfigRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteBackendAuthenticationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..1fd2b013af00 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteBackendAuthenticationConfigRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteBackendAuthenticationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +   * the format
                                                                                              +   * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the BackendAuthenticationConfig to delete. Must be in
                                                                                              +   * the format
                                                                                              +   * `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Etag of the resource.
                                                                                              +   * If this is provided, it must match the server's etag.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                                                                                              +   * Optional. Etag of the resource.
                                                                                              +   * If this is provided, it must match the server's etag.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteDnsThreatDetectorRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteDnsThreatDetectorRequest.java new file mode 100644 index 000000000000..471d1e907232 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteDnsThreatDetectorRequest.java @@ -0,0 +1,622 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The message for deleting a DnsThreatDetector.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest} + */ +@com.google.protobuf.Generated +public final class DeleteDnsThreatDetectorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) + DeleteDnsThreatDetectorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteDnsThreatDetectorRequest"); + } + + // Use DeleteDnsThreatDetectorRequest.newBuilder() to construct. + private DeleteDnsThreatDetectorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteDnsThreatDetectorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest.class, + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.DeleteDnsThreatDetectorRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest other = + (com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest 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.networksecurity.v1.DeleteDnsThreatDetectorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest 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.networksecurity.v1.DeleteDnsThreatDetectorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteDnsThreatDetectorRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The message for deleting a DnsThreatDetector.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest.class, + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest build() { + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest result = + new com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) + private static final com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDnsThreatDetectorRequest 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.networksecurity.v1.DeleteDnsThreatDetectorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteDnsThreatDetectorRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteDnsThreatDetectorRequestOrBuilder.java new file mode 100644 index 000000000000..75e98f3c44cd --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteDnsThreatDetectorRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteDnsThreatDetectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointAssociationRequest.java new file mode 100644 index 000000000000..792f28459fab --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointAssociationRequest.java @@ -0,0 +1,909 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for deleting a Association
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFirewallEndpointAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) + DeleteFirewallEndpointAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFirewallEndpointAssociationRequest"); + } + + // Use DeleteFirewallEndpointAssociationRequest.newBuilder() to construct. + private DeleteFirewallEndpointAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFirewallEndpointAssociationRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest.class, + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteFirewallEndpointAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest other = + (com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + 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.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + 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.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteFirewallEndpointAssociationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for deleting a Association
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest.class, + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest build() { + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest result = + new com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) + private static final com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFirewallEndpointAssociationRequest 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.networksecurity.v1.DeleteFirewallEndpointAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..202467b81153 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointAssociationRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteFirewallEndpointAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointRequest.java new file mode 100644 index 000000000000..f71f4f9363ee --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointRequest.java @@ -0,0 +1,893 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for deleting a Endpoint
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFirewallEndpointRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) + DeleteFirewallEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFirewallEndpointRequest"); + } + + // Use DeleteFirewallEndpointRequest.newBuilder() to construct. + private DeleteFirewallEndpointRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFirewallEndpointRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest.class, + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteFirewallEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest other = + (com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest 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.networksecurity.v1.DeleteFirewallEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest 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.networksecurity.v1.DeleteFirewallEndpointRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteFirewallEndpointRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for deleting a Endpoint
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest.class, + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest build() { + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest result = + new com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes after the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) + private static final com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFirewallEndpointRequest 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.networksecurity.v1.DeleteFirewallEndpointRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointRequestOrBuilder.java new file mode 100644 index 000000000000..bb093c721dc7 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteFirewallEndpointRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteFirewallEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes after the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRequest.java new file mode 100644 index 000000000000..8432979a6401 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRequest.java @@ -0,0 +1,631 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the DeleteGatewaySecurityPolicy method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteGatewaySecurityPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) + DeleteGatewaySecurityPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteGatewaySecurityPolicyRequest"); + } + + // Use DeleteGatewaySecurityPolicyRequest.newBuilder() to construct. + private DeleteGatewaySecurityPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteGatewaySecurityPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest.class, + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.DeleteGatewaySecurityPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest other = + (com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest 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.networksecurity.v1.DeleteGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest 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.networksecurity.v1.DeleteGatewaySecurityPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteGatewaySecurityPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the DeleteGatewaySecurityPolicy method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest.class, + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest build() { + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest result = + new com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +     * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) + private static final com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGatewaySecurityPolicyRequest 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.networksecurity.v1.DeleteGatewaySecurityPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..8a901f382082 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteGatewaySecurityPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicy to delete. Must be in the
                                                                                              +   * format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRuleRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRuleRequest.java new file mode 100644 index 000000000000..08606ed58f3c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRuleRequest.java @@ -0,0 +1,650 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the DeleteGatewaySecurityPolicyRule method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest} + */ +@com.google.protobuf.Generated +public final class DeleteGatewaySecurityPolicyRuleRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) + DeleteGatewaySecurityPolicyRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteGatewaySecurityPolicyRuleRequest"); + } + + // Use DeleteGatewaySecurityPolicyRuleRequest.newBuilder() to construct. + private DeleteGatewaySecurityPolicyRuleRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteGatewaySecurityPolicyRuleRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest.class, + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest other = + (com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + 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.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + 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.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the DeleteGatewaySecurityPolicyRule method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest.class, + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest build() { + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + buildPartial() { + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest result = + new com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) + private static final com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGatewaySecurityPolicyRuleRequest 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.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRuleRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRuleRequestOrBuilder.java new file mode 100644 index 000000000000..9b9a681e2e08 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteGatewaySecurityPolicyRuleRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteGatewaySecurityPolicyRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentGroupRequest.java new file mode 100644 index 000000000000..985fa59b134f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentGroupRequest.java @@ -0,0 +1,848 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for DeleteInterceptDeploymentGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteInterceptDeploymentGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) + DeleteInterceptDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteInterceptDeploymentGroupRequest"); + } + + // Use DeleteInterceptDeploymentGroupRequest.newBuilder() to construct. + private DeleteInterceptDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteInterceptDeploymentGroupRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The deployment group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteInterceptDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest other = + (com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest 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.networksecurity.v1.DeleteInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest 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.networksecurity.v1.DeleteInterceptDeploymentGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteInterceptDeploymentGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for DeleteInterceptDeploymentGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest build() { + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + buildPartial() { + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest result = + new com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) + private static final com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInterceptDeploymentGroupRequest 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.networksecurity.v1.DeleteInterceptDeploymentGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..28e744fbc85c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteInterceptDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The deployment group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentRequest.java new file mode 100644 index 000000000000..bf8f3cfe55ae --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentRequest.java @@ -0,0 +1,840 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for DeleteInterceptDeployment.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class DeleteInterceptDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) + DeleteInterceptDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteInterceptDeploymentRequest"); + } + + // Use DeleteInterceptDeploymentRequest.newBuilder() to construct. + private DeleteInterceptDeploymentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteInterceptDeploymentRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest.class, + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteInterceptDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest other = + (com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest 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.networksecurity.v1.DeleteInterceptDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest 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.networksecurity.v1.DeleteInterceptDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteInterceptDeploymentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for DeleteInterceptDeployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest.class, + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest build() { + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest result = + new com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) + private static final com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInterceptDeploymentRequest 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.networksecurity.v1.DeleteInterceptDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..eaab9578decb --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptDeploymentRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteInterceptDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupAssociationRequest.java new file mode 100644 index 000000000000..0d4b40f9a9ef --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupAssociationRequest.java @@ -0,0 +1,868 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for DeleteInterceptEndpointGroupAssociation.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest} + */ +@com.google.protobuf.Generated +public final class DeleteInterceptEndpointGroupAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) + DeleteInterceptEndpointGroupAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteInterceptEndpointGroupAssociationRequest"); + } + + // Use DeleteInterceptEndpointGroupAssociationRequest.newBuilder() to construct. + private DeleteInterceptEndpointGroupAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteInterceptEndpointGroupAssociationRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The association to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The association to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest other = + (com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + 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.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + 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.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for DeleteInterceptEndpointGroupAssociation.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + build() { + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest result = + new com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) + private static final com.google.cloud.networksecurity.v1 + .DeleteInterceptEndpointGroupAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInterceptEndpointGroupAssociationRequest 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.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..8a34e8cf9330 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupAssociationRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteInterceptEndpointGroupAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The association to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The association to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupRequest.java new file mode 100644 index 000000000000..8918781da030 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupRequest.java @@ -0,0 +1,844 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for DeleteInterceptEndpointGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteInterceptEndpointGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) + DeleteInterceptEndpointGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteInterceptEndpointGroupRequest"); + } + + // Use DeleteInterceptEndpointGroupRequest.newBuilder() to construct. + private DeleteInterceptEndpointGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteInterceptEndpointGroupRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteInterceptEndpointGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest other = + (com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest 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.networksecurity.v1.DeleteInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest 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.networksecurity.v1.DeleteInterceptEndpointGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteInterceptEndpointGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for DeleteInterceptEndpointGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest build() { + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest result = + new com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) + private static final com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInterceptEndpointGroupRequest 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.networksecurity.v1.DeleteInterceptEndpointGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupRequestOrBuilder.java new file mode 100644 index 000000000000..0928dd5a3f2a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteInterceptEndpointGroupRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteInterceptEndpointGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentGroupRequest.java new file mode 100644 index 000000000000..02b999377069 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentGroupRequest.java @@ -0,0 +1,848 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for DeleteMirroringDeploymentGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMirroringDeploymentGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) + DeleteMirroringDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMirroringDeploymentGroupRequest"); + } + + // Use DeleteMirroringDeploymentGroupRequest.newBuilder() to construct. + private DeleteMirroringDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMirroringDeploymentGroupRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The deployment group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteMirroringDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest other = + (com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest 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.networksecurity.v1.DeleteMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest 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.networksecurity.v1.DeleteMirroringDeploymentGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteMirroringDeploymentGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for DeleteMirroringDeploymentGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest build() { + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + buildPartial() { + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest result = + new com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) + private static final com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMirroringDeploymentGroupRequest 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.networksecurity.v1.DeleteMirroringDeploymentGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..5077e090eb93 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteMirroringDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The deployment group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentRequest.java new file mode 100644 index 000000000000..d709ea542f1a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentRequest.java @@ -0,0 +1,840 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for DeleteMirroringDeployment.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMirroringDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) + DeleteMirroringDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMirroringDeploymentRequest"); + } + + // Use DeleteMirroringDeploymentRequest.newBuilder() to construct. + private DeleteMirroringDeploymentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMirroringDeploymentRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest.class, + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteMirroringDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest other = + (com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest 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.networksecurity.v1.DeleteMirroringDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest 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.networksecurity.v1.DeleteMirroringDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteMirroringDeploymentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for DeleteMirroringDeployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest.class, + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest build() { + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest result = + new com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) + private static final com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMirroringDeploymentRequest 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.networksecurity.v1.DeleteMirroringDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..6fb715a6e77f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringDeploymentRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteMirroringDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupAssociationRequest.java new file mode 100644 index 000000000000..81525c046226 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupAssociationRequest.java @@ -0,0 +1,868 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for DeleteMirroringEndpointGroupAssociation.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMirroringEndpointGroupAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) + DeleteMirroringEndpointGroupAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMirroringEndpointGroupAssociationRequest"); + } + + // Use DeleteMirroringEndpointGroupAssociationRequest.newBuilder() to construct. + private DeleteMirroringEndpointGroupAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMirroringEndpointGroupAssociationRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The association to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The association to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest other = + (com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + 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.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + 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.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for DeleteMirroringEndpointGroupAssociation.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + build() { + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest result = + new com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) + private static final com.google.cloud.networksecurity.v1 + .DeleteMirroringEndpointGroupAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMirroringEndpointGroupAssociationRequest 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.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..7e55ae746722 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupAssociationRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteMirroringEndpointGroupAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The association to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The association to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupRequest.java new file mode 100644 index 000000000000..320d8b6edff9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupRequest.java @@ -0,0 +1,844 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for DeleteMirroringEndpointGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMirroringEndpointGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) + DeleteMirroringEndpointGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMirroringEndpointGroupRequest"); + } + + // Use DeleteMirroringEndpointGroupRequest.newBuilder() to construct. + private DeleteMirroringEndpointGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMirroringEndpointGroupRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.networksecurity.v1.DeleteMirroringEndpointGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest other = + (com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest 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.networksecurity.v1.DeleteMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest 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.networksecurity.v1.DeleteMirroringEndpointGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteMirroringEndpointGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for DeleteMirroringEndpointGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest build() { + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest result = + new com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to delete.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) + private static final com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMirroringEndpointGroupRequest 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.networksecurity.v1.DeleteMirroringEndpointGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupRequestOrBuilder.java new file mode 100644 index 000000000000..8a8762e0737b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteMirroringEndpointGroupRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteMirroringEndpointGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to delete.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileGroupRequest.java new file mode 100644 index 000000000000..e0d6b11d4675 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileGroupRequest.java @@ -0,0 +1,833 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the DeleteSecurityProfileGroup method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteSecurityProfileGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) + DeleteSecurityProfileGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteSecurityProfileGroupRequest"); + } + + // Use DeleteSecurityProfileGroupRequest.newBuilder() to construct. + private DeleteSecurityProfileGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteSecurityProfileGroupRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. If client provided etag is out of date, delete will return
                                                                                              +   * FAILED_PRECONDITION error.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. If client provided etag is out of date, delete will return
                                                                                              +   * FAILED_PRECONDITION error.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + 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.networksecurity.v1.DeleteSecurityProfileGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest other = + (com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest 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.networksecurity.v1.DeleteSecurityProfileGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest 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.networksecurity.v1.DeleteSecurityProfileGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteSecurityProfileGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the DeleteSecurityProfileGroup method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest build() { + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest result = + new com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) + private static final com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSecurityProfileGroupRequest 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.networksecurity.v1.DeleteSecurityProfileGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileGroupRequestOrBuilder.java new file mode 100644 index 000000000000..e50716c47d97 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileGroupRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteSecurityProfileGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfileGroup to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. If client provided etag is out of date, delete will return
                                                                                              +   * FAILED_PRECONDITION error.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                                                                                              +   * Optional. If client provided etag is out of date, delete will return
                                                                                              +   * FAILED_PRECONDITION error.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileRequest.java new file mode 100644 index 000000000000..83dc303dbac2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileRequest.java @@ -0,0 +1,821 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the DeleteSecurityProfile method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteSecurityProfileRequest} + */ +@com.google.protobuf.Generated +public final class DeleteSecurityProfileRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) + DeleteSecurityProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteSecurityProfileRequest"); + } + + // Use DeleteSecurityProfileRequest.newBuilder() to construct. + private DeleteSecurityProfileRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteSecurityProfileRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest.class, + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. If client provided etag is out of date, delete will return
                                                                                              +   * FAILED_PRECONDITION error.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. If client provided etag is out of date, delete will return
                                                                                              +   * FAILED_PRECONDITION error.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + 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.networksecurity.v1.DeleteSecurityProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest other = + (com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest 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.networksecurity.v1.DeleteSecurityProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest 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.networksecurity.v1.DeleteSecurityProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteSecurityProfileRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the DeleteSecurityProfile method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteSecurityProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest.class, + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest build() { + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest result = + new com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. If client provided etag is out of date, delete will return
                                                                                              +     * FAILED_PRECONDITION error.
                                                                                              +     * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) + private static final com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSecurityProfileRequest 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.networksecurity.v1.DeleteSecurityProfileRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileRequestOrBuilder.java new file mode 100644 index 000000000000..a5b4b3a17603 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteSecurityProfileRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteSecurityProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteSecurityProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfile to delete. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. If client provided etag is out of date, delete will return
                                                                                              +   * FAILED_PRECONDITION error.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                                                                                              +   * Optional. If client provided etag is out of date, delete will return
                                                                                              +   * FAILED_PRECONDITION error.
                                                                                              +   * 
                                                                                              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteTlsInspectionPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteTlsInspectionPolicyRequest.java new file mode 100644 index 000000000000..2185f967c10a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteTlsInspectionPolicyRequest.java @@ -0,0 +1,742 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the DeleteTlsInspectionPolicy method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteTlsInspectionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) + DeleteTlsInspectionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteTlsInspectionPolicyRequest"); + } + + // Use DeleteTlsInspectionPolicyRequest.newBuilder() to construct. + private DeleteTlsInspectionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteTlsInspectionPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest.class, + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
                                                                                              +   * If set to true, any rules for this TlsInspectionPolicy will also be
                                                                                              +   * deleted. (Otherwise, the request will only work if the TlsInspectionPolicy
                                                                                              +   * has no rules.)
                                                                                              +   * 
                                                                                              + * + * bool force = 2; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + 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.networksecurity.v1.DeleteTlsInspectionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest other = + (com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest 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.networksecurity.v1.DeleteTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest 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.networksecurity.v1.DeleteTlsInspectionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteTlsInspectionPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the DeleteTlsInspectionPolicy method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest.class, + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest build() { + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest result = + new com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
                                                                                              +     * If set to true, any rules for this TlsInspectionPolicy will also be
                                                                                              +     * deleted. (Otherwise, the request will only work if the TlsInspectionPolicy
                                                                                              +     * has no rules.)
                                                                                              +     * 
                                                                                              + * + * bool force = 2; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
                                                                                              +     * If set to true, any rules for this TlsInspectionPolicy will also be
                                                                                              +     * deleted. (Otherwise, the request will only work if the TlsInspectionPolicy
                                                                                              +     * has no rules.)
                                                                                              +     * 
                                                                                              + * + * bool force = 2; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If set to true, any rules for this TlsInspectionPolicy will also be
                                                                                              +     * deleted. (Otherwise, the request will only work if the TlsInspectionPolicy
                                                                                              +     * has no rules.)
                                                                                              +     * 
                                                                                              + * + * bool force = 2; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) + private static final com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTlsInspectionPolicyRequest 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.networksecurity.v1.DeleteTlsInspectionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteTlsInspectionPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteTlsInspectionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..0f62ddea7ce2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteTlsInspectionPolicyRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteTlsInspectionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the TlsInspectionPolicy to delete. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * If set to true, any rules for this TlsInspectionPolicy will also be
                                                                                              +   * deleted. (Otherwise, the request will only work if the TlsInspectionPolicy
                                                                                              +   * has no rules.)
                                                                                              +   * 
                                                                                              + * + * bool force = 2; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteUrlListRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteUrlListRequest.java new file mode 100644 index 000000000000..7dab3f3db810 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteUrlListRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the DeleteUrlList method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteUrlListRequest} + */ +@com.google.protobuf.Generated +public final class DeleteUrlListRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteUrlListRequest) + DeleteUrlListRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteUrlListRequest"); + } + + // Use DeleteUrlListRequest.newBuilder() to construct. + private DeleteUrlListRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteUrlListRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteUrlListRequest.class, + com.google.cloud.networksecurity.v1.DeleteUrlListRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the UrlList to delete. Must be in
                                                                                              +   * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the UrlList to delete. Must be in
                                                                                              +   * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.DeleteUrlListRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteUrlListRequest other = + (com.google.cloud.networksecurity.v1.DeleteUrlListRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest 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.networksecurity.v1.DeleteUrlListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest 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.networksecurity.v1.DeleteUrlListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DeleteUrlListRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the DeleteUrlList method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteUrlListRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteUrlListRequest) + com.google.cloud.networksecurity.v1.DeleteUrlListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteUrlListRequest.class, + com.google.cloud.networksecurity.v1.DeleteUrlListRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.DeleteUrlListRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteUrlListRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteUrlListRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteUrlListRequest build() { + com.google.cloud.networksecurity.v1.DeleteUrlListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteUrlListRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteUrlListRequest result = + new com.google.cloud.networksecurity.v1.DeleteUrlListRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.DeleteUrlListRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DeleteUrlListRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.DeleteUrlListRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.DeleteUrlListRequest other) { + if (other == com.google.cloud.networksecurity.v1.DeleteUrlListRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to delete. Must be in
                                                                                              +     * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to delete. Must be in
                                                                                              +     * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to delete. Must be in
                                                                                              +     * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to delete. Must be in
                                                                                              +     * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to delete. Must be in
                                                                                              +     * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteUrlListRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteUrlListRequest) + private static final com.google.cloud.networksecurity.v1.DeleteUrlListRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteUrlListRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteUrlListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUrlListRequest 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.networksecurity.v1.DeleteUrlListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteUrlListRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteUrlListRequestOrBuilder.java new file mode 100644 index 000000000000..beb80698f95c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteUrlListRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DeleteUrlListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteUrlListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the UrlList to delete. Must be in
                                                                                              +   * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the UrlList to delete. Must be in
                                                                                              +   * the format `projects/*/locations/{location}/urlLists/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetector.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetector.java new file mode 100644 index 000000000000..75401e851090 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetector.java @@ -0,0 +1,2278 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * A DNS threat detector sends DNS query logs to a _provider_ that then
                                                                                              + * analyzes the logs to identify threat events in the DNS queries.
                                                                                              + * By default, all VPC networks in your projects are included. You can exclude
                                                                                              + * specific networks by supplying `excluded_networks`.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DnsThreatDetector} + */ +@com.google.protobuf.Generated +public final class DnsThreatDetector extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DnsThreatDetector) + DnsThreatDetectorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DnsThreatDetector"); + } + + // Use DnsThreatDetector.newBuilder() to construct. + private DnsThreatDetector(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DnsThreatDetector() { + name_ = ""; + excludedNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + provider_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DnsThreatDetector.class, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder.class); + } + + /** + * + * + *
                                                                                              +   * Name of the provider used for DNS threat analysis.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.DnsThreatDetector.Provider} + */ + public enum Provider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * An unspecified provider.
                                                                                              +     * 
                                                                                              + * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The Infoblox DNS threat detector provider.
                                                                                              +     * 
                                                                                              + * + * INFOBLOX = 1; + */ + INFOBLOX(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Provider"); + } + + /** + * + * + *
                                                                                              +     * An unspecified provider.
                                                                                              +     * 
                                                                                              + * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The Infoblox DNS threat detector provider.
                                                                                              +     * 
                                                                                              + * + * INFOBLOX = 1; + */ + public static final int INFOBLOX_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Provider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Provider forNumber(int value) { + switch (value) { + case 0: + return PROVIDER_UNSPECIFIED; + case 1: + return INFOBLOX; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetector.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.DnsThreatDetector.Provider) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int EXCLUDED_NETWORKS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedNetworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Optional. A list of network resource names which aren't monitored by this
                                                                                              +   * DnsThreatDetector.
                                                                                              +   *
                                                                                              +   * Example:
                                                                                              +   * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +   * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedNetworks. + */ + public com.google.protobuf.ProtocolStringList getExcludedNetworksList() { + return excludedNetworks_; + } + + /** + * + * + *
                                                                                              +   * Optional. A list of network resource names which aren't monitored by this
                                                                                              +   * DnsThreatDetector.
                                                                                              +   *
                                                                                              +   * Example:
                                                                                              +   * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +   * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedNetworks. + */ + public int getExcludedNetworksCount() { + return excludedNetworks_.size(); + } + + /** + * + * + *
                                                                                              +   * Optional. A list of network resource names which aren't monitored by this
                                                                                              +   * DnsThreatDetector.
                                                                                              +   *
                                                                                              +   * Example:
                                                                                              +   * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +   * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedNetworks at the given index. + */ + public java.lang.String getExcludedNetworks(int index) { + return excludedNetworks_.get(index); + } + + /** + * + * + *
                                                                                              +   * Optional. A list of network resource names which aren't monitored by this
                                                                                              +   * DnsThreatDetector.
                                                                                              +   *
                                                                                              +   * Example:
                                                                                              +   * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +   * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedNetworks at the given index. + */ + public com.google.protobuf.ByteString getExcludedNetworksBytes(int index) { + return excludedNetworks_.getByteString(index); + } + + public static final int PROVIDER_FIELD_NUMBER = 6; + private int provider_ = 0; + + /** + * + * + *
                                                                                              +   * Required. The provider used for DNS threat analysis.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for provider. + */ + @java.lang.Override + public int getProviderValue() { + return provider_; + } + + /** + * + * + *
                                                                                              +   * Required. The provider used for DNS threat analysis.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The provider. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider getProvider() { + com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider result = + com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider.forNumber(provider_); + return result == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + for (int i = 0; i < excludedNetworks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, excludedNetworks_.getRaw(i)); + } + if (provider_ + != com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider.PROVIDER_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, provider_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + { + int dataSize = 0; + for (int i = 0; i < excludedNetworks_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedNetworks_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedNetworksList().size(); + } + if (provider_ + != com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider.PROVIDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, provider_); + } + 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.networksecurity.v1.DnsThreatDetector)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DnsThreatDetector other = + (com.google.cloud.networksecurity.v1.DnsThreatDetector) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getExcludedNetworksList().equals(other.getExcludedNetworksList())) return false; + if (provider_ != other.provider_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (getExcludedNetworksCount() > 0) { + hash = (37 * hash) + EXCLUDED_NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedNetworksList().hashCode(); + } + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + provider_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector 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.networksecurity.v1.DnsThreatDetector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector 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.networksecurity.v1.DnsThreatDetector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.DnsThreatDetector 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * A DNS threat detector sends DNS query logs to a _provider_ that then
                                                                                              +   * analyzes the logs to identify threat events in the DNS queries.
                                                                                              +   * By default, all VPC networks in your projects are included. You can exclude
                                                                                              +   * specific networks by supplying `excluded_networks`.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.DnsThreatDetector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DnsThreatDetector) + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DnsThreatDetector.class, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.DnsThreatDetector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + excludedNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + provider_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetector build() { + com.google.cloud.networksecurity.v1.DnsThreatDetector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetector buildPartial() { + com.google.cloud.networksecurity.v1.DnsThreatDetector result = + new com.google.cloud.networksecurity.v1.DnsThreatDetector(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.DnsThreatDetector result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + excludedNetworks_.makeImmutable(); + result.excludedNetworks_ = excludedNetworks_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.provider_ = provider_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.DnsThreatDetector) { + return mergeFrom((com.google.cloud.networksecurity.v1.DnsThreatDetector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.DnsThreatDetector other) { + if (other == com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.excludedNetworks_.isEmpty()) { + if (excludedNetworks_.isEmpty()) { + excludedNetworks_ = other.excludedNetworks_; + bitField0_ |= 0x00000010; + } else { + ensureExcludedNetworksIsMutable(); + excludedNetworks_.addAll(other.excludedNetworks_); + } + onChanged(); + } + if (other.provider_ != 0) { + setProviderValue(other.getProviderValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedNetworksIsMutable(); + excludedNetworks_.add(s); + break; + } // case 42 + case 48: + { + provider_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +     * value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +     * value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +     * value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +     * value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +     * value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +     * value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +     * value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedNetworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedNetworksIsMutable() { + if (!excludedNetworks_.isModifiable()) { + excludedNetworks_ = new com.google.protobuf.LazyStringArrayList(excludedNetworks_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedNetworks. + */ + public com.google.protobuf.ProtocolStringList getExcludedNetworksList() { + excludedNetworks_.makeImmutable(); + return excludedNetworks_; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedNetworks. + */ + public int getExcludedNetworksCount() { + return excludedNetworks_.size(); + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedNetworks at the given index. + */ + public java.lang.String getExcludedNetworks(int index) { + return excludedNetworks_.get(index); + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedNetworks at the given index. + */ + public com.google.protobuf.ByteString getExcludedNetworksBytes(int index) { + return excludedNetworks_.getByteString(index); + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedNetworks to set. + * @return This builder for chaining. + */ + public Builder setExcludedNetworks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedNetworksIsMutable(); + excludedNetworks_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedNetworks to add. + * @return This builder for chaining. + */ + public Builder addExcludedNetworks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedNetworksIsMutable(); + excludedNetworks_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedNetworks to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedNetworks(java.lang.Iterable values) { + ensureExcludedNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedNetworks_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedNetworks() { + excludedNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A list of network resource names which aren't monitored by this
                                                                                              +     * DnsThreatDetector.
                                                                                              +     *
                                                                                              +     * Example:
                                                                                              +     * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +     * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedNetworks to add. + * @return This builder for chaining. + */ + public Builder addExcludedNetworksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedNetworksIsMutable(); + excludedNetworks_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int provider_ = 0; + + /** + * + * + *
                                                                                              +     * Required. The provider used for DNS threat analysis.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for provider. + */ + @java.lang.Override + public int getProviderValue() { + return provider_; + } + + /** + * + * + *
                                                                                              +     * Required. The provider used for DNS threat analysis.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderValue(int value) { + provider_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The provider used for DNS threat analysis.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The provider. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider getProvider() { + com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider result = + com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider.forNumber(provider_); + return result == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Required. The provider used for DNS threat analysis.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider( + com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + provider_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The provider used for DNS threat analysis.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvider() { + bitField0_ = (bitField0_ & ~0x00000020); + provider_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DnsThreatDetector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DnsThreatDetector) + private static final com.google.cloud.networksecurity.v1.DnsThreatDetector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DnsThreatDetector(); + } + + public static com.google.cloud.networksecurity.v1.DnsThreatDetector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsThreatDetector 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.networksecurity.v1.DnsThreatDetector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorName.java new file mode 100644 index 000000000000..30ff882dd7a6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorName.java @@ -0,0 +1,231 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DnsThreatDetectorName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DNS_THREAT_DETECTOR = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dnsThreatDetectors/{dns_threat_detector}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dnsThreatDetector; + + @Deprecated + protected DnsThreatDetectorName() { + project = null; + location = null; + dnsThreatDetector = null; + } + + private DnsThreatDetectorName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dnsThreatDetector = Preconditions.checkNotNull(builder.getDnsThreatDetector()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDnsThreatDetector() { + return dnsThreatDetector; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DnsThreatDetectorName of( + String project, String location, String dnsThreatDetector) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDnsThreatDetector(dnsThreatDetector) + .build(); + } + + public static String format(String project, String location, String dnsThreatDetector) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDnsThreatDetector(dnsThreatDetector) + .build() + .toString(); + } + + public static DnsThreatDetectorName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DNS_THREAT_DETECTOR.validatedMatch( + formattedString, "DnsThreatDetectorName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("dns_threat_detector")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DnsThreatDetectorName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DNS_THREAT_DETECTOR.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dnsThreatDetector != null) { + fieldMapBuilder.put("dns_threat_detector", dnsThreatDetector); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DNS_THREAT_DETECTOR.instantiate( + "project", project, "location", location, "dns_threat_detector", dnsThreatDetector); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DnsThreatDetectorName that = ((DnsThreatDetectorName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dnsThreatDetector, that.dnsThreatDetector); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dnsThreatDetector); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/dnsThreatDetectors/{dns_threat_detector}. + */ + public static class Builder { + private String project; + private String location; + private String dnsThreatDetector; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDnsThreatDetector() { + return dnsThreatDetector; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDnsThreatDetector(String dnsThreatDetector) { + this.dnsThreatDetector = dnsThreatDetector; + return this; + } + + private Builder(DnsThreatDetectorName dnsThreatDetectorName) { + this.project = dnsThreatDetectorName.project; + this.location = dnsThreatDetectorName.location; + this.dnsThreatDetector = dnsThreatDetectorName.dnsThreatDetector; + } + + public DnsThreatDetectorName build() { + return new DnsThreatDetectorName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorOrBuilder.java new file mode 100644 index 000000000000..7d723120e3e9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorOrBuilder.java @@ -0,0 +1,314 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface DnsThreatDetectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DnsThreatDetector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Any labels associated with the DnsThreatDetector, listed as key
                                                                                              +   * value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Optional. A list of network resource names which aren't monitored by this
                                                                                              +   * DnsThreatDetector.
                                                                                              +   *
                                                                                              +   * Example:
                                                                                              +   * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +   * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedNetworks. + */ + java.util.List getExcludedNetworksList(); + + /** + * + * + *
                                                                                              +   * Optional. A list of network resource names which aren't monitored by this
                                                                                              +   * DnsThreatDetector.
                                                                                              +   *
                                                                                              +   * Example:
                                                                                              +   * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +   * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedNetworks. + */ + int getExcludedNetworksCount(); + + /** + * + * + *
                                                                                              +   * Optional. A list of network resource names which aren't monitored by this
                                                                                              +   * DnsThreatDetector.
                                                                                              +   *
                                                                                              +   * Example:
                                                                                              +   * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +   * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedNetworks at the given index. + */ + java.lang.String getExcludedNetworks(int index); + + /** + * + * + *
                                                                                              +   * Optional. A list of network resource names which aren't monitored by this
                                                                                              +   * DnsThreatDetector.
                                                                                              +   *
                                                                                              +   * Example:
                                                                                              +   * `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
                                                                                              +   * 
                                                                                              + * + * + * repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedNetworks at the given index. + */ + com.google.protobuf.ByteString getExcludedNetworksBytes(int index); + + /** + * + * + *
                                                                                              +   * Required. The provider used for DNS threat analysis.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for provider. + */ + int getProviderValue(); + + /** + * + * + *
                                                                                              +   * Required. The provider used for DNS threat analysis.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The provider. + */ + com.google.cloud.networksecurity.v1.DnsThreatDetector.Provider getProvider(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorProto.java new file mode 100644 index 000000000000..f3257ba57056 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorProto.java @@ -0,0 +1,274 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class DnsThreatDetectorProto extends com.google.protobuf.GeneratedFile { + private DnsThreatDetectorProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DnsThreatDetectorProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/networksecurity/v1/dns_th" + + "reat_detector.proto\022\037google.cloud.networ" + + "ksecurity.v1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032\033google/protobuf/empty.proto\032 go" + + "ogle/protobuf/field_mask.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\226\005\n\021DnsThreatDet" + + "ector\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n\013create_ti" + + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022S\n\006labels\030\004 \003(\0132>.google" + + ".cloud.networksecurity.v1.DnsThreatDetec" + + "tor.LabelsEntryB\003\340A\001\022A\n\021excluded_network" + + "s\030\005 \003(\tB&\340A\001\372A \n\036compute.googleapis.com/" + + "Network\022R\n\010provider\030\006 \001(\0162;.google.cloud" + + ".networksecurity.v1.DnsThreatDetector.Pr" + + "oviderB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"2\n\010Provider\022\030\n\024PROVID" + + "ER_UNSPECIFIED\020\000\022\014\n\010INFOBLOX\020\001:\257\001\352A\253\001\n0n" + + "etworksecurity.googleapis.com/DnsThreatD" + + "etector\022Pprojects/{project}/locations/{l" + + "ocation}/dnsThreatDetectors/{dns_threat_" + + "detector}*\022dnsThreatDetectors2\021dnsThreat" + + "Detector\"\232\001\n\035ListDnsThreatDetectorsReque" + + "st\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\0220networksecur" + + "ity.googleapis.com/DnsThreatDetector\022\026\n\t" + + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t" + + "B\003\340A\001\"\245\001\n\036ListDnsThreatDetectorsResponse" + + "\022P\n\024dns_threat_detectors\030\001 \003(\01322.google." + + "cloud.networksecurity.v1.DnsThreatDetect" + + "or\022\027\n\017next_page_token\030\002 \001(\t\022\030\n\013unreachab" + + "le\030\003 \003(\tB\003\340A\006\"e\n\033GetDnsThreatDetectorReq" + + "uest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0networksecur" + + "ity.googleapis.com/DnsThreatDetector\"\345\001\n" + + "\036CreateDnsThreatDetectorRequest\022H\n\006paren" + + "t\030\001 \001(\tB8\340A\002\372A2\0220networksecurity.googlea" + + "pis.com/DnsThreatDetector\022#\n\026dns_threat_" + + "detector_id\030\002 \001(\tB\003\340A\001\022T\n\023dns_threat_det" + + "ector\030\003 \001(\01322.google.cloud.networksecuri" + + "ty.v1.DnsThreatDetectorB\003\340A\002\"\254\001\n\036UpdateD" + + "nsThreatDetectorRequest\0224\n\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022T\n" + + "\023dns_threat_detector\030\002 \001(\01322.google.clou" + + "d.networksecurity.v1.DnsThreatDetectorB\003" + + "\340A\002\"h\n\036DeleteDnsThreatDetectorRequest\022F\n" + + "\004name\030\001 \001(\tB8\340A\002\372A2\n0networksecurity.goo" + + "gleapis.com/DnsThreatDetector2\231\n\n\030DnsThr" + + "eatDetectorService\022\342\001\n\026ListDnsThreatDete" + + "ctors\022>.google.cloud.networksecurity.v1." + + "ListDnsThreatDetectorsRequest\032?.google.c" + + "loud.networksecurity.v1.ListDnsThreatDet" + + "ectorsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{pa" + + "rent=projects/*/locations/*}/dnsThreatDe" + + "tectors\022\317\001\n\024GetDnsThreatDetector\022<.googl" + + "e.cloud.networksecurity.v1.GetDnsThreatD" + + "etectorRequest\0322.google.cloud.networksec" + + "urity.v1.DnsThreatDetector\"E\332A\004name\202\323\344\223\002" + + "8\0226/v1/{name=projects/*/locations/*/dnsT" + + "hreatDetectors/*}\022\230\002\n\027CreateDnsThreatDet" + + "ector\022?.google.cloud.networksecurity.v1." + + "CreateDnsThreatDetectorRequest\0322.google." + + "cloud.networksecurity.v1.DnsThreatDetect" + + "or\"\207\001\332A1parent,dns_threat_detector,dns_t" + + "hreat_detector_id\202\323\344\223\002M\"6/v1/{parent=pro" + + "jects/*/locations/*}/dnsThreatDetectors:" + + "\023dns_threat_detector\022\232\002\n\027UpdateDnsThreat" + + "Detector\022?.google.cloud.networksecurity." + + "v1.UpdateDnsThreatDetectorRequest\0322.goog" + + "le.cloud.networksecurity.v1.DnsThreatDet" + + "ector\"\211\001\332A\037dns_threat_detector,update_ma" + + "sk\202\323\344\223\002a2J/v1/{dns_threat_detector.name=" + + "projects/*/locations/*/dnsThreatDetector" + + "s/*}:\023dns_threat_detector\022\271\001\n\027DeleteDnsT" + + "hreatDetector\022?.google.cloud.networksecu" + + "rity.v1.DeleteDnsThreatDetectorRequest\032\026" + + ".google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6/" + + "v1/{name=projects/*/locations/*/dnsThrea" + + "tDetectors/*}\032R\312A\036networksecurity.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformB\310\002\n#com.google.cloud.n" + + "etworksecurity.v1B\026DnsThreatDetectorProt" + + "oP\001ZMcloud.google.com/go/networksecurity" + + "/apiv1/networksecuritypb;networksecurity" + + "pb\252\002\037Google.Cloud.NetworkSecurity.V1\312\002\037G" + + "oogle\\Cloud\\NetworkSecurity\\V1\352\002\"Google:" + + ":Cloud::NetworkSecurity::V1\352AN\n\036compute." + + "googleapis.com/Network\022,projects/{projec" + + "t}/global/networks/{network}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "Labels", "ExcludedNetworks", "Provider", + }); + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_descriptor.getNestedType( + 0); + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DnsThreatDetector_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_descriptor, + new java.lang.String[] { + "DnsThreatDetectors", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateDnsThreatDetectorRequest_descriptor, + new java.lang.String[] { + "Parent", "DnsThreatDetectorId", "DnsThreatDetector", + }); + internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "DnsThreatDetector", + }); + internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteDnsThreatDetectorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationProto.java new file mode 100644 index 000000000000..179225fd42d8 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationProto.java @@ -0,0 +1,536 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class FirewallActivationProto extends com.google.protobuf.GeneratedFile { + private FirewallActivationProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FirewallActivationProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "9google/cloud/networksecurity/v1/firewall_activation.proto\022\037google.cloud.networ" + + "ksecurity.v1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032,google/cloud/networksecurity/v1/common.proto\032#google/longrunning/operat" + + "ions.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\303\n\n" + + "\020FirewallEndpoint\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\005\340A\010\022\030\n" + + "\013description\030\t \001(\tB\003\340A\001\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022R\n" + + "\006labels\030\004 \003(\0132=.google.cloud.netwo" + + "rksecurity.v1.FirewallEndpoint.LabelsEntryB\003\340A\001\022K\n" + + "\005state\030\005 \001(\01627.google.cloud.ne" + + "tworksecurity.v1.FirewallEndpoint.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\006 \001(\010B\003\340A\003\022\"\n" + + "\023associated_networks\030\007 \003(\tB\005\030\001\340A\003\022a\n" + + "\014associations\030\r" + + " \003(\0132F.google.cloud.networksecurity." + + "v1.FirewallEndpoint.AssociationReferenceB\003\340A\003\022\037\n\r" + + "satisfies_pzs\030\016 \001(\010B\003\340A\003H\000\210\001\001\022\037\n\r" + + "satisfies_pzi\030\017 \001(\010B\003\340A\003H\001\210\001\001\022\037\n" + + "\022billing_project_id\030\010 \001(\tB\003\340A\001\022b\n" + + "\021endpoint_settings\030\023 \001(\0132B.google.cloud.networksecuri" + + "ty.v1.FirewallEndpoint.EndpointSettingsB\003\340A\001\032\241\001\n" + + "\024AssociationReference\022P\n" + + "\004name\030\001 \001(\tBB\340A\003\372A<\n" + + ":networksecurity.googleapis.com/FirewallEndpointAssociation\0227\n" + + "\007network\030\002 \001(\tB&\340A\003\372A \n" + + "\036compute.googleapis.com/Network\0328\n" + + "\020EndpointSettings\022$\n" + + "\024jumbo_frames_enabled\030\001 \001(\010B\006\340A\001\340A\005\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"T\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010INACTIVE\020\004:\202\002\352A\376\001\n" + + "/networksecurity.googleapis.com/FirewallEndpoint\022Worganizations/{organiza" + + "tion}/locations/{location}/firewallEndpoints/{firewall_endpoint}\022Mprojects/{proj" + + "ect}/locations/{location}/firewallEndpoi" + + "nts/{firewall_endpoint}*\021firewallEndpoints2\020firewallEndpointB\020\n" + + "\016_satisfies_pzsB\020\n" + + "\016_satisfies_pzi\"\272\001\n" + + "\034ListFirewallEndpointsRequest\022G\n" + + "\006parent\030\001 \001(\tB7\340A\002\372A1\022/netwo" + + "rksecurity.googleapis.com/FirewallEndpoint\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\022\n\n" + + "page_token\030\003 \001(\t\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\020\n" + + "\010order_by\030\005 \001(\t\"\234\001\n" + + "\035ListFirewallEndpointsResponse\022M\n" + + "\022firewall_endpoints\030\001 \003(\01321.google.clo" + + "ud.networksecurity.v1.FirewallEndpoint\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"c\n" + + "\032GetFirewallEndpointRequest\022E\n" + + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + + "/networksecurity.googleapis.com/FirewallEndpoint\"\367\001\n" + + "\035CreateFirewallEndpointRequest\022G\n" + + "\006parent\030\001 \001(\tB7\340A\002" + + "\372A1\022/networksecurity.googleapis.com/FirewallEndpoint\022!\n" + + "\024firewall_endpoint_id\030\002 \001(\tB\003\340A\002\022Q\n" + + "\021firewall_endpoint\030\003 \001(\01321.goo" + + "gle.cloud.networksecurity.v1.FirewallEndpointB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"\301\001\n" + + "\035UpdateFirewallEndpointRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022Q\n" + + "\021firewall_endpoint\030\002 \001(\01321.google." + + "cloud.networksecurity.v1.FirewallEndpointB\003\340A\002\022\027\n\n" + + "request_id\030\003 \001(\tB\003\340A\001\"\177\n" + + "\035DeleteFirewallEndpointRequest\022E\n" + + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + + "/networksecurity.googleapis.com/FirewallEndpoint\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\322\006\n" + + "\033FirewallEndpointAssociation\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\005\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022]\n" + + "\006labels\030\004 \003(\0132H.google.cloud.networ" + + "ksecurity.v1.FirewallEndpointAssociation.LabelsEntryB\003\340A\001\022V\n" + + "\005state\030\005 \001(\0162B.googl" + + "e.cloud.networksecurity.v1.FirewallEndpointAssociation.StateB\003\340A\003\022\024\n" + + "\007network\030\006 \001(\tB\003\340A\002\022\036\n" + + "\021firewall_endpoint\030\007 \001(\tB\003\340A\002\022Y\n" + + "\025tls_inspection_policy\030\010 \001(\tB:\340A\001\372A4\n" + + "2networksecurity.googleapis.com/TlsInspectionPolicy\022\030\n" + + "\013reconciling\030\t \001(\010B\003\340A\003\022\025\n" + + "\010disabled\030\n" + + " \001(\010B\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"`\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010INACTIVE\020\004\022\n\n" + + "\006ORPHAN\020\005:\246\001\352A\242\001\n" + + ":networksecurity.googleapis.com/FirewallEndpointAssociation\022dproject" + + "s/{project}/locations/{location}/firewal" + + "lEndpointAssociations/{firewall_endpoint_association}\"\320\001\n" + + "\'ListFirewallEndpointAssociationsRequest\022R\n" + + "\006parent\030\001 \001(\tBB\340A\002\372A" + + "<\022:networksecurity.googleapis.com/FirewallEndpointAssociation\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\022\n\n" + + "page_token\030\003 \001(\t\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\020\n" + + "\010order_by\030\005 \001(\t\"\276\001\n" + + "(ListFirewallEndpointAssociationsResponse\022d\n" + + "\036firewall_endpoint_associations\030\001 \003(\0132<.google.c" + + "loud.networksecurity.v1.FirewallEndpointAssociation\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"y\n" + + "%GetFirewallEndpointAssociationRequest\022P\n" + + "\004name\030\001 \001(\tBB\340A\002\372A<\n" + + ":networksecurity.googleapis.com/FirewallEndpointAssociation\"\260\002\n" + + "(CreateFirewallEndpointAssociationRequest\022R\n" + + "\006parent\030\001 \001(" + + "\tBB\340A\002\372A<\022:networksecurity.googleapis.com/FirewallEndpointAssociation\022-\n" + + " firewall_endpoint_association_id\030\002 \001(\tB\003\340A\001\022h\n" + + "\035firewall_endpoint_association\030\003 \001(\0132<.go" + + "ogle.cloud.networksecurity.v1.FirewallEndpointAssociationB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"\225\001\n" + + "(DeleteFirewallEndpointAssociationRequest\022P\n" + + "\004name\030\001 \001(\tBB\340A\002\372A<\n" + + ":networksecurity.googleapis.com/FirewallEndpointAssociation\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\343\001\n" + + "(UpdateFirewallEndpointAssociationRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022h\n" + + "\035firewall_endpoint_association\030\002 \001(\0132<.google.cloud.network" + + "security.v1.FirewallEndpointAssociationB\003\340A\002\022\027\n\n" + + "request_id\030\003 \001(\tB\003\340A\0012\254\030\n" + + "\022FirewallActivation\022\343\001\n" + + "\025ListFirewallEndpoints\022=.google.cloud.networksecurity.v1.ListFir" + + "ewallEndpointsRequest\032>.google.cloud.networksecurity.v1.ListFirewallEndpointsRes" + + "ponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=orga" + + "nizations/*/locations/*}/firewallEndpoints\022\320\001\n" + + "\023GetFirewallEndpoint\022;.google.cloud.networksecurity.v1.GetFirewallEndpoint" + + "Request\0321.google.cloud.networksecurity.v" + + "1.FirewallEndpoint\"I\332A\004name\202\323\344\223\002<\022:/v1/{" + + "name=organizations/*/locations/*/firewallEndpoints/*}\022\307\002\n" + + "\026CreateFirewallEndpoint\022>.google.cloud.networksecurity.v1.Creat" + + "eFirewallEndpointRequest\032\035.google.longrunning.Operation\"\315\001\312AE\n" + + "\020FirewallEndpoint\0221google.cloud.networksecurity.v1.Operati" + + "onMetadata\332A-parent,firewall_endpoint,fi" + + "rewall_endpoint_id\202\323\344\223\002O\":/v1/{parent=or" + + "ganizations/*/locations/*}/firewallEndpoints:\021firewall_endpoint\022\220\002\n" + + "\026DeleteFirewallEndpoint\022>.google.cloud.networksecurit" + + "y.v1.DeleteFirewallEndpointRequest\032\035.google.longrunning.Operation\"\226\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.networksecu" + + "rity.v1.OperationMetadata\332A\004name\202\323\344\223\002<*:" + + "/v1/{name=organizations/*/locations/*/firewallEndpoints/*}\022\311\002\n" + + "\026UpdateFirewallEndpoint\022>.google.cloud.networksecurity.v1." + + "UpdateFirewallEndpointRequest\032\035.google.longrunning.Operation\"\317\001\312AE\n" + + "\020FirewallEndpoint\0221google.cloud.networksecurity.v1.Op" + + "erationMetadata\332A\035firewall_endpoint,upda" + + "te_mask\202\323\344\223\002a2L/v1/{firewall_endpoint.na" + + "me=organizations/*/locations/*/firewallEndpoints/*}:\021firewall_endpoint\022\212\002\n" + + " ListFirewallEndpointAssociations\022H.google.clo" + + "ud.networksecurity.v1.ListFirewallEndpointAssociationsRequest\032I.google.cloud.net" + + "worksecurity.v1.ListFirewallEndpointAsso" + + "ciationsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1/{" + + "parent=projects/*/locations/*}/firewallEndpointAssociations\022\367\001\n" + + "\036GetFirewallEndpointAssociation\022F.google.cloud.networksec" + + "urity.v1.GetFirewallEndpointAssociationRequest\032<.google.cloud.networksecurity.v1" + + ".FirewallEndpointAssociation\"O\332A\004name\202\323\344" + + "\223\002B\022@/v1/{name=projects/*/locations/*/firewallEndpointAssociations/*}\022\222\003\n" + + "!CreateFirewallEndpointAssociation\022I.google.clo" + + "ud.networksecurity.v1.CreateFirewallEndp" + + "ointAssociationRequest\032\035.google.longrunning.Operation\"\202\002\312AP\n" + + "\033FirewallEndpointAssociation\0221google.cloud.networksecurity.v" + + "1.OperationMetadata\332AEparent,firewall_endpoint_association,firewall_endpoint_ass" + + "ociation_id\202\323\344\223\002a\"@/v1/{parent=projects/" + + "*/locations/*}/firewallEndpointAssociations:\035firewall_endpoint_association\022\254\002\n" + + "!DeleteFirewallEndpointAssociation\022I.google.cloud.networksecurity.v1.DeleteFirewal" + + "lEndpointAssociationRequest\032\035.google.longrunning.Operation\"\234\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.networksecurity.v1" + + ".OperationMetadata\332A\004name\202\323\344\223\002B*@/v1/{na" + + "me=projects/*/locations/*/firewallEndpointAssociations/*}\022\224\003\n" + + "!UpdateFirewallEndpointAssociation\022I.google.cloud.networkse" + + "curity.v1.UpdateFirewallEndpointAssociat" + + "ionRequest\032\035.google.longrunning.Operation\"\204\002\312AP\n" + + "\033FirewallEndpointAssociation\0221google.cloud.networksecurity.v1.OperationM" + + "etadata\332A)firewall_endpoint_association," + + "update_mask\202\323\344\223\002\1772^/v1/{firewall_endpoin" + + "t_association.name=projects/*/locations/*/firewallEndpointAssociations/*}:\035firew" + + "all_endpoint_association\032R\312A\036networksecu" + + "rity.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\343\002\n" + + "#com.google.cloud.networksecurity.v1B\027FirewallAc" + + "tivationProtoP\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb;net" + + "worksecuritypb\252\002\037Google.Cloud.NetworkSec" + + "urity.V1\312\002\037Google\\Cloud\\NetworkSecurity\\" + + "V1\352\002\"Google::Cloud::NetworkSecurity::V1\352Ah\n" + + "3networksecurity.googleapis.com/OrganizationLocation\0221organizations/{organiza" + + "tion}/locations/{location}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor, + new java.lang.String[] { + "Name", + "Description", + "CreateTime", + "UpdateTime", + "Labels", + "State", + "Reconciling", + "AssociatedNetworks", + "Associations", + "SatisfiesPzs", + "SatisfiesPzi", + "BillingProjectId", + "EndpointSettings", + }); + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_descriptor = + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor.getNestedType( + 0); + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_descriptor, + new java.lang.String[] { + "Name", "Network", + }); + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_descriptor = + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor.getNestedType( + 1); + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_descriptor, + new java.lang.String[] { + "JumboFramesEnabled", + }); + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor.getNestedType( + 2); + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_descriptor, + new java.lang.String[] { + "FirewallEndpoints", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointRequest_descriptor, + new java.lang.String[] { + "Parent", "FirewallEndpointId", "FirewallEndpoint", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "FirewallEndpoint", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "State", + "Network", + "FirewallEndpoint", + "TlsInspectionPolicy", + "Reconciling", + "Disabled", + }); + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_descriptor, + new java.lang.String[] { + "FirewallEndpointAssociations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateFirewallEndpointAssociationRequest_descriptor, + new java.lang.String[] { + "Parent", "FirewallEndpointAssociationId", "FirewallEndpointAssociation", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteFirewallEndpointAssociationRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "FirewallEndpointAssociation", "RequestId", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpoint.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpoint.java new file mode 100644 index 000000000000..bcd96cd568b8 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpoint.java @@ -0,0 +1,5546 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message describing Endpoint object.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.FirewallEndpoint} + */ +@com.google.protobuf.Generated +public final class FirewallEndpoint extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.FirewallEndpoint) + FirewallEndpointOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FirewallEndpoint"); + } + + // Use FirewallEndpoint.newBuilder() to construct. + private FirewallEndpoint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FirewallEndpoint() { + name_ = ""; + description_ = ""; + state_ = 0; + associatedNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + associations_ = java.util.Collections.emptyList(); + billingProjectId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.FirewallEndpoint.class, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder.class); + } + + /** + * + * + *
                                                                                              +   * Endpoint state.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.FirewallEndpoint.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * Being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
                                                                                              +     * Processing configuration updates.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
                                                                                              +     * Being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
                                                                                              +     * Down or in an error state.
                                                                                              +     * 
                                                                                              + * + * INACTIVE = 4; + */ + INACTIVE(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * Being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
                                                                                              +     * Processing configuration updates.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
                                                                                              +     * Being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * Down or in an error state.
                                                                                              +     * 
                                                                                              + * + * INACTIVE = 4; + */ + public static final int INACTIVE_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return INACTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallEndpoint.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.FirewallEndpoint.State) + } + + public interface AssociationReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +     * Output only. The VPC network associated. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                                                                              +     * Output only. The VPC network associated. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + } + + /** + * + * + *
                                                                                              +   * This is a subset of the FirewallEndpointAssociation message, containing
                                                                                              +   * fields to be used by the consumer.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference} + */ + public static final class AssociationReference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference) + AssociationReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssociationReference"); + } + + // Use AssociationReference.newBuilder() to construct. + private AssociationReference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssociationReference() { + name_ = ""; + network_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.class, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The VPC network associated. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The VPC network associated. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, network_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, network_); + } + 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.networksecurity.v1.FirewallEndpoint.AssociationReference)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference other = + (com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNetwork().equals(other.getNetwork())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + 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.networksecurity.v1.FirewallEndpoint.AssociationReference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + 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.networksecurity.v1.FirewallEndpoint.AssociationReference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.FirewallEndpoint.AssociationReference 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * This is a subset of the FirewallEndpointAssociation message, containing
                                                                                              +     * fields to be used by the consumer.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference) + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.class, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + network_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_AssociationReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference build() { + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + buildPartial() { + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference result = + new com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.network_ = network_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference other) { + if (other + == com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + network_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +       * Format:
                                                                                              +       * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +       * Format:
                                                                                              +       * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +       * Format:
                                                                                              +       * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +       * Format:
                                                                                              +       * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The resource name of the FirewallEndpointAssociation.
                                                                                              +       * Format:
                                                                                              +       * projects/{project}/locations/{location}/firewallEndpointAssociations/{id}
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The VPC network associated. Format:
                                                                                              +       * projects/{project}/global/networks/{name}.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The VPC network associated. Format:
                                                                                              +       * projects/{project}/global/networks/{name}.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The VPC network associated. Format:
                                                                                              +       * projects/{project}/global/networks/{name}.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The VPC network associated. Format:
                                                                                              +       * projects/{project}/global/networks/{name}.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The VPC network associated. Format:
                                                                                              +       * projects/{project}/global/networks/{name}.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference) + private static final com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference(); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssociationReference 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.networksecurity.v1.FirewallEndpoint.AssociationReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EndpointSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Optional. Immutable. Indicates whether Jumbo Frames are enabled.
                                                                                              +     * Default value is false.
                                                                                              +     * 
                                                                                              + * + * + * bool jumbo_frames_enabled = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The jumboFramesEnabled. + */ + boolean getJumboFramesEnabled(); + } + + /** + * + * + *
                                                                                              +   * Settings for the endpoint.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings} + */ + public static final class EndpointSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings) + EndpointSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndpointSettings"); + } + + // Use EndpointSettings.newBuilder() to construct. + private EndpointSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndpointSettings() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.class, + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.Builder.class); + } + + public static final int JUMBO_FRAMES_ENABLED_FIELD_NUMBER = 1; + private boolean jumboFramesEnabled_ = false; + + /** + * + * + *
                                                                                              +     * Optional. Immutable. Indicates whether Jumbo Frames are enabled.
                                                                                              +     * Default value is false.
                                                                                              +     * 
                                                                                              + * + * + * bool jumbo_frames_enabled = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The jumboFramesEnabled. + */ + @java.lang.Override + public boolean getJumboFramesEnabled() { + return jumboFramesEnabled_; + } + + 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 (jumboFramesEnabled_ != false) { + output.writeBool(1, jumboFramesEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (jumboFramesEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, jumboFramesEnabled_); + } + 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.networksecurity.v1.FirewallEndpoint.EndpointSettings)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings other = + (com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings) obj; + + if (getJumboFramesEnabled() != other.getJumboFramesEnabled()) 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) + JUMBO_FRAMES_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getJumboFramesEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings 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.networksecurity.v1.FirewallEndpoint.EndpointSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings 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.networksecurity.v1.FirewallEndpoint.EndpointSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.FirewallEndpoint.EndpointSettings 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings) + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.class, + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + jumboFramesEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_EndpointSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings build() { + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings buildPartial() { + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings result = + new com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.jumboFramesEnabled_ = jumboFramesEnabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings other) { + if (other + == com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + .getDefaultInstance()) return this; + if (other.getJumboFramesEnabled() != false) { + setJumboFramesEnabled(other.getJumboFramesEnabled()); + } + 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 8: + { + jumboFramesEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 boolean jumboFramesEnabled_; + + /** + * + * + *
                                                                                              +       * Optional. Immutable. Indicates whether Jumbo Frames are enabled.
                                                                                              +       * Default value is false.
                                                                                              +       * 
                                                                                              + * + * + * bool jumbo_frames_enabled = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The jumboFramesEnabled. + */ + @java.lang.Override + public boolean getJumboFramesEnabled() { + return jumboFramesEnabled_; + } + + /** + * + * + *
                                                                                              +       * Optional. Immutable. Indicates whether Jumbo Frames are enabled.
                                                                                              +       * Default value is false.
                                                                                              +       * 
                                                                                              + * + * + * bool jumbo_frames_enabled = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The jumboFramesEnabled to set. + * @return This builder for chaining. + */ + public Builder setJumboFramesEnabled(boolean value) { + + jumboFramesEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Immutable. Indicates whether Jumbo Frames are enabled.
                                                                                              +       * Default value is false.
                                                                                              +       * 
                                                                                              + * + * + * bool jumbo_frames_enabled = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearJumboFramesEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + jumboFramesEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings) + private static final com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings(); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointSettings 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.networksecurity.v1.FirewallEndpoint.EndpointSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.State getState() { + com.google.cloud.networksecurity.v1.FirewallEndpoint.State result = + com.google.cloud.networksecurity.v1.FirewallEndpoint.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 6; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. Whether reconciling is in progress, recommended per
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int ASSOCIATED_NETWORKS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList associatedNetworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Output only. List of networks that are associated with this endpoint in the
                                                                                              +   * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +   * pointing at this endpoint. A network will only appear in this list after
                                                                                              +   * traffic routing is fully configured. Format:
                                                                                              +   * projects/{project}/global/networks/{name}.
                                                                                              +   * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is deprecated. + * See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @return A list containing the associatedNetworks. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getAssociatedNetworksList() { + return associatedNetworks_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of networks that are associated with this endpoint in the
                                                                                              +   * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +   * pointing at this endpoint. A network will only appear in this list after
                                                                                              +   * traffic routing is fully configured. Format:
                                                                                              +   * projects/{project}/global/networks/{name}.
                                                                                              +   * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is deprecated. + * See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @return The count of associatedNetworks. + */ + @java.lang.Deprecated + public int getAssociatedNetworksCount() { + return associatedNetworks_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. List of networks that are associated with this endpoint in the
                                                                                              +   * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +   * pointing at this endpoint. A network will only appear in this list after
                                                                                              +   * traffic routing is fully configured. Format:
                                                                                              +   * projects/{project}/global/networks/{name}.
                                                                                              +   * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is deprecated. + * See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param index The index of the element to return. + * @return The associatedNetworks at the given index. + */ + @java.lang.Deprecated + public java.lang.String getAssociatedNetworks(int index) { + return associatedNetworks_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. List of networks that are associated with this endpoint in the
                                                                                              +   * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +   * pointing at this endpoint. A network will only appear in this list after
                                                                                              +   * traffic routing is fully configured. Format:
                                                                                              +   * projects/{project}/global/networks/{name}.
                                                                                              +   * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is deprecated. + * See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param index The index of the value to return. + * @return The bytes of the associatedNetworks at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getAssociatedNetworksBytes(int index) { + return associatedNetworks_.getByteString(index); + } + + public static final int ASSOCIATIONS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List + associations_; + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAssociationsList() { + return associations_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder> + getAssociationsOrBuilderList() { + return associations_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAssociationsCount() { + return associations_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference getAssociations( + int index) { + return associations_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder + getAssociationsOrBuilder(int index) { + return associations_.get(index); + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 14; + private boolean satisfiesPzs_ = false; + + /** + * + * + *
                                                                                              +   * Output only. [Output Only] Reserved for future use.
                                                                                              +   * 
                                                                                              + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. [Output Only] Reserved for future use.
                                                                                              +   * 
                                                                                              + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 15; + private boolean satisfiesPzi_ = false; + + /** + * + * + *
                                                                                              +   * Output only. [Output Only] Reserved for future use.
                                                                                              +   * 
                                                                                              + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. [Output Only] Reserved for future use.
                                                                                              +   * 
                                                                                              + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + public static final int BILLING_PROJECT_ID_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object billingProjectId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +   * This field must be specified when creating the endpoint in the organization
                                                                                              +   * scope, and should be omitted otherwise.
                                                                                              +   * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The billingProjectId. + */ + @java.lang.Override + public java.lang.String getBillingProjectId() { + java.lang.Object ref = billingProjectId_; + 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(); + billingProjectId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +   * This field must be specified when creating the endpoint in the organization
                                                                                              +   * scope, and should be omitted otherwise.
                                                                                              +   * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for billingProjectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBillingProjectIdBytes() { + java.lang.Object ref = billingProjectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingProjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_SETTINGS_FIELD_NUMBER = 19; + private com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpointSettings_; + + /** + * + * + *
                                                                                              +   * Optional. Settings for the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointSettings field is set. + */ + @java.lang.Override + public boolean hasEndpointSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. Settings for the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointSettings. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + getEndpointSettings() { + return endpointSettings_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.getDefaultInstance() + : endpointSettings_; + } + + /** + * + * + *
                                                                                              +   * Optional. Settings for the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettingsOrBuilder + getEndpointSettingsOrBuilder() { + return endpointSettings_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.getDefaultInstance() + : endpointSettings_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (state_ + != com.google.cloud.networksecurity.v1.FirewallEndpoint.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, state_); + } + if (reconciling_ != false) { + output.writeBool(6, reconciling_); + } + for (int i = 0; i < associatedNetworks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, associatedNetworks_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingProjectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, billingProjectId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, description_); + } + for (int i = 0; i < associations_.size(); i++) { + output.writeMessage(13, associations_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(14, satisfiesPzs_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(15, satisfiesPzi_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(19, getEndpointSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (state_ + != com.google.cloud.networksecurity.v1.FirewallEndpoint.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, reconciling_); + } + { + int dataSize = 0; + for (int i = 0; i < associatedNetworks_.size(); i++) { + dataSize += computeStringSizeNoTag(associatedNetworks_.getRaw(i)); + } + size += dataSize; + size += 1 * getAssociatedNetworksList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingProjectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, billingProjectId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, description_); + } + for (int i = 0; i < associations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, associations_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, satisfiesPzs_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, satisfiesPzi_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEndpointSettings()); + } + 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.networksecurity.v1.FirewallEndpoint)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.FirewallEndpoint other = + (com.google.cloud.networksecurity.v1.FirewallEndpoint) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getAssociatedNetworksList().equals(other.getAssociatedNetworksList())) return false; + if (!getAssociationsList().equals(other.getAssociationsList())) return false; + if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; + if (hasSatisfiesPzs()) { + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + } + if (hasSatisfiesPzi() != other.hasSatisfiesPzi()) return false; + if (hasSatisfiesPzi()) { + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; + } + if (!getBillingProjectId().equals(other.getBillingProjectId())) return false; + if (hasEndpointSettings() != other.hasEndpointSettings()) return false; + if (hasEndpointSettings()) { + if (!getEndpointSettings().equals(other.getEndpointSettings())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + if (getAssociatedNetworksCount() > 0) { + hash = (37 * hash) + ASSOCIATED_NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getAssociatedNetworksList().hashCode(); + } + if (getAssociationsCount() > 0) { + hash = (37 * hash) + ASSOCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAssociationsList().hashCode(); + } + if (hasSatisfiesPzs()) { + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + } + if (hasSatisfiesPzi()) { + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); + } + hash = (37 * hash) + BILLING_PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getBillingProjectId().hashCode(); + if (hasEndpointSettings()) { + hash = (37 * hash) + ENDPOINT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEndpointSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint 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.networksecurity.v1.FirewallEndpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint 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.networksecurity.v1.FirewallEndpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.FirewallEndpoint 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message describing Endpoint object.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.FirewallEndpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.FirewallEndpoint) + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.FirewallEndpoint.class, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.FirewallEndpoint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetAssociationsFieldBuilder(); + internalGetEndpointSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + reconciling_ = false; + associatedNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (associationsBuilder_ == null) { + associations_ = java.util.Collections.emptyList(); + } else { + associations_ = null; + associationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + satisfiesPzs_ = false; + satisfiesPzi_ = false; + billingProjectId_ = ""; + endpointSettings_ = null; + if (endpointSettingsBuilder_ != null) { + endpointSettingsBuilder_.dispose(); + endpointSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint build() { + com.google.cloud.networksecurity.v1.FirewallEndpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint buildPartial() { + com.google.cloud.networksecurity.v1.FirewallEndpoint result = + new com.google.cloud.networksecurity.v1.FirewallEndpoint(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.FirewallEndpoint result) { + if (associationsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + associations_ = java.util.Collections.unmodifiableList(associations_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.associations_ = associations_; + } else { + result.associations_ = associationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.FirewallEndpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + associatedNetworks_.makeImmutable(); + result.associatedNetworks_ = associatedNetworks_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.billingProjectId_ = billingProjectId_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.endpointSettings_ = + endpointSettingsBuilder_ == null ? endpointSettings_ : endpointSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.FirewallEndpoint) { + return mergeFrom((com.google.cloud.networksecurity.v1.FirewallEndpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.FirewallEndpoint other) { + if (other == com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (!other.associatedNetworks_.isEmpty()) { + if (associatedNetworks_.isEmpty()) { + associatedNetworks_ = other.associatedNetworks_; + bitField0_ |= 0x00000080; + } else { + ensureAssociatedNetworksIsMutable(); + associatedNetworks_.addAll(other.associatedNetworks_); + } + onChanged(); + } + if (associationsBuilder_ == null) { + if (!other.associations_.isEmpty()) { + if (associations_.isEmpty()) { + associations_ = other.associations_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureAssociationsIsMutable(); + associations_.addAll(other.associations_); + } + onChanged(); + } + } else { + if (!other.associations_.isEmpty()) { + if (associationsBuilder_.isEmpty()) { + associationsBuilder_.dispose(); + associationsBuilder_ = null; + associations_ = other.associations_; + bitField0_ = (bitField0_ & ~0x00000100); + associationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssociationsFieldBuilder() + : null; + } else { + associationsBuilder_.addAllMessages(other.associations_); + } + } + } + if (other.hasSatisfiesPzs()) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.hasSatisfiesPzi()) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } + if (!other.getBillingProjectId().isEmpty()) { + billingProjectId_ = other.billingProjectId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasEndpointSettings()) { + mergeEndpointSettings(other.getEndpointSettings()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 48: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssociatedNetworksIsMutable(); + associatedNetworks_.add(s); + break; + } // case 58 + case 66: + { + billingProjectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 66 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 74 + case 106: + { + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference m = + input.readMessage( + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + .parser(), + extensionRegistry); + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(m); + } else { + associationsBuilder_.addMessage(m); + } + break; + } // case 106 + case 112: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 112 + case 120: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 120 + case 154: + { + input.readMessage( + internalGetEndpointSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 154 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint.State getState() { + com.google.cloud.networksecurity.v1.FirewallEndpoint.State result = + com.google.cloud.networksecurity.v1.FirewallEndpoint.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networksecurity.v1.FirewallEndpoint.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. Whether reconciling is in progress, recommended per
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. Whether reconciling is in progress, recommended per
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Whether reconciling is in progress, recommended per
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000040); + reconciling_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList associatedNetworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAssociatedNetworksIsMutable() { + if (!associatedNetworks_.isModifiable()) { + associatedNetworks_ = new com.google.protobuf.LazyStringArrayList(associatedNetworks_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @return A list containing the associatedNetworks. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getAssociatedNetworksList() { + associatedNetworks_.makeImmutable(); + return associatedNetworks_; + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @return The count of associatedNetworks. + */ + @java.lang.Deprecated + public int getAssociatedNetworksCount() { + return associatedNetworks_.size(); + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param index The index of the element to return. + * @return The associatedNetworks at the given index. + */ + @java.lang.Deprecated + public java.lang.String getAssociatedNetworks(int index) { + return associatedNetworks_.get(index); + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param index The index of the value to return. + * @return The bytes of the associatedNetworks at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getAssociatedNetworksBytes(int index) { + return associatedNetworks_.getByteString(index); + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param index The index to set the value at. + * @param value The associatedNetworks to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setAssociatedNetworks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociatedNetworksIsMutable(); + associatedNetworks_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param value The associatedNetworks to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAssociatedNetworks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociatedNetworksIsMutable(); + associatedNetworks_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param values The associatedNetworks to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllAssociatedNetworks(java.lang.Iterable values) { + ensureAssociatedNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, associatedNetworks_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearAssociatedNetworks() { + associatedNetworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of networks that are associated with this endpoint in the
                                                                                              +     * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +     * pointing at this endpoint. A network will only appear in this list after
                                                                                              +     * traffic routing is fully configured. Format:
                                                                                              +     * projects/{project}/global/networks/{name}.
                                                                                              +     * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is + * deprecated. See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param value The bytes of the associatedNetworks to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAssociatedNetworksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAssociatedNetworksIsMutable(); + associatedNetworks_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference> + associations_ = java.util.Collections.emptyList(); + + private void ensureAssociationsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + associations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference>( + associations_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder> + associationsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAssociationsList() { + if (associationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(associations_); + } else { + return associationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAssociationsCount() { + if (associationsBuilder_ == null) { + return associations_.size(); + } else { + return associationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + getAssociations(int index) { + if (associationsBuilder_ == null) { + return associations_.get(index); + } else { + return associationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssociations( + int index, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.set(index, value); + onChanged(); + } else { + associationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssociations( + int index, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.set(index, builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.add(value); + onChanged(); + } else { + associationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + int index, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.add(index, value); + onChanged(); + } else { + associationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + int index, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(index, builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAssociations( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference> + values) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, associations_); + onChanged(); + } else { + associationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAssociations() { + if (associationsBuilder_ == null) { + associations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + associationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAssociations(int index) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.remove(index); + onChanged(); + } else { + associationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder + getAssociationsBuilder(int index) { + return internalGetAssociationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder + getAssociationsOrBuilder(int index) { + if (associationsBuilder_ == null) { + return associations_.get(index); + } else { + return associationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder> + getAssociationsOrBuilderList() { + if (associationsBuilder_ != null) { + return associationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(associations_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder + addAssociationsBuilder() { + return internalGetAssociationsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder + addAssociationsBuilder(int index) { + return internalGetAssociationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +     * this endpoint. An association will only appear in this list after traffic
                                                                                              +     * routing is fully configured.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder> + getAssociationsBuilderList() { + return internalGetAssociationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder> + internalGetAssociationsFieldBuilder() { + if (associationsBuilder_ == null) { + associationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder>( + associations_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + associations_ = null; + } + return associationsBuilder_; + } + + private boolean satisfiesPzs_; + + /** + * + * + *
                                                                                              +     * Output only. [Output Only] Reserved for future use.
                                                                                              +     * 
                                                                                              + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. [Output Only] Reserved for future use.
                                                                                              +     * 
                                                                                              + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + /** + * + * + *
                                                                                              +     * Output only. [Output Only] Reserved for future use.
                                                                                              +     * 
                                                                                              + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. [Output Only] Reserved for future use.
                                                                                              +     * 
                                                                                              + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00000200); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + + /** + * + * + *
                                                                                              +     * Output only. [Output Only] Reserved for future use.
                                                                                              +     * 
                                                                                              + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. [Output Only] Reserved for future use.
                                                                                              +     * 
                                                                                              + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + /** + * + * + *
                                                                                              +     * Output only. [Output Only] Reserved for future use.
                                                                                              +     * 
                                                                                              + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. [Output Only] Reserved for future use.
                                                                                              +     * 
                                                                                              + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00000400); + satisfiesPzi_ = false; + onChanged(); + return this; + } + + private java.lang.Object billingProjectId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +     * This field must be specified when creating the endpoint in the organization
                                                                                              +     * scope, and should be omitted otherwise.
                                                                                              +     * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The billingProjectId. + */ + public java.lang.String getBillingProjectId() { + java.lang.Object ref = billingProjectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingProjectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +     * This field must be specified when creating the endpoint in the organization
                                                                                              +     * scope, and should be omitted otherwise.
                                                                                              +     * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for billingProjectId. + */ + public com.google.protobuf.ByteString getBillingProjectIdBytes() { + java.lang.Object ref = billingProjectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingProjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +     * This field must be specified when creating the endpoint in the organization
                                                                                              +     * scope, and should be omitted otherwise.
                                                                                              +     * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The billingProjectId to set. + * @return This builder for chaining. + */ + public Builder setBillingProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + billingProjectId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +     * This field must be specified when creating the endpoint in the organization
                                                                                              +     * scope, and should be omitted otherwise.
                                                                                              +     * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBillingProjectId() { + billingProjectId_ = getDefaultInstance().getBillingProjectId(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +     * This field must be specified when creating the endpoint in the organization
                                                                                              +     * scope, and should be omitted otherwise.
                                                                                              +     * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for billingProjectId to set. + * @return This builder for chaining. + */ + public Builder setBillingProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingProjectId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpointSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings, + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettingsOrBuilder> + endpointSettingsBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointSettings field is set. + */ + public boolean hasEndpointSettings() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointSettings. + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + getEndpointSettings() { + if (endpointSettingsBuilder_ == null) { + return endpointSettings_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + .getDefaultInstance() + : endpointSettings_; + } else { + return endpointSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndpointSettings( + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings value) { + if (endpointSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointSettings_ = value; + } else { + endpointSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndpointSettings( + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.Builder + builderForValue) { + if (endpointSettingsBuilder_ == null) { + endpointSettings_ = builderForValue.build(); + } else { + endpointSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndpointSettings( + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings value) { + if (endpointSettingsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && endpointSettings_ != null + && endpointSettings_ + != com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + .getDefaultInstance()) { + getEndpointSettingsBuilder().mergeFrom(value); + } else { + endpointSettings_ = value; + } + } else { + endpointSettingsBuilder_.mergeFrom(value); + } + if (endpointSettings_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndpointSettings() { + bitField0_ = (bitField0_ & ~0x00001000); + endpointSettings_ = null; + if (endpointSettingsBuilder_ != null) { + endpointSettingsBuilder_.dispose(); + endpointSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.Builder + getEndpointSettingsBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetEndpointSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettingsOrBuilder + getEndpointSettingsOrBuilder() { + if (endpointSettingsBuilder_ != null) { + return endpointSettingsBuilder_.getMessageOrBuilder(); + } else { + return endpointSettings_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings + .getDefaultInstance() + : endpointSettings_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Settings for the endpoint.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings, + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettingsOrBuilder> + internalGetEndpointSettingsFieldBuilder() { + if (endpointSettingsBuilder_ == null) { + endpointSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings, + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettingsOrBuilder>( + getEndpointSettings(), getParentForChildren(), isClean()); + endpointSettings_ = null; + } + return endpointSettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.FirewallEndpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.FirewallEndpoint) + private static final com.google.cloud.networksecurity.v1.FirewallEndpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.FirewallEndpoint(); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallEndpoint 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.networksecurity.v1.FirewallEndpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociation.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociation.java new file mode 100644 index 000000000000..10c440840de0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociation.java @@ -0,0 +1,2775 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message describing Association object
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.FirewallEndpointAssociation} + */ +@com.google.protobuf.Generated +public final class FirewallEndpointAssociation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.FirewallEndpointAssociation) + FirewallEndpointAssociationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FirewallEndpointAssociation"); + } + + // Use FirewallEndpointAssociation.newBuilder() to construct. + private FirewallEndpointAssociation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FirewallEndpointAssociation() { + name_ = ""; + state_ = 0; + network_ = ""; + firewallEndpoint_ = ""; + tlsInspectionPolicy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.class, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder.class); + } + + /** + * + * + *
                                                                                              +   * Association state.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.FirewallEndpointAssociation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * Being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
                                                                                              +     * Active and ready for traffic.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
                                                                                              +     * Being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
                                                                                              +     * Down or in an error state.
                                                                                              +     * 
                                                                                              + * + * INACTIVE = 4; + */ + INACTIVE(4), + /** + * + * + *
                                                                                              +     * The project that housed the association has been deleted.
                                                                                              +     * 
                                                                                              + * + * ORPHAN = 5; + */ + ORPHAN(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * Being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
                                                                                              +     * Active and ready for traffic.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
                                                                                              +     * Being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * Down or in an error state.
                                                                                              +     * 
                                                                                              + * + * INACTIVE = 4; + */ + public static final int INACTIVE_VALUE = 4; + + /** + * + * + *
                                                                                              +     * The project that housed the association has been deleted.
                                                                                              +     * 
                                                                                              + * + * ORPHAN = 5; + */ + public static final int ORPHAN_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return INACTIVE; + case 5: + return ORPHAN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.FirewallEndpointAssociation.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. name of resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. name of resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. Current state of the association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. Current state of the association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State getState() { + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State result = + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State.UNRECOGNIZED + : result; + } + + public static final int NETWORK_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The URL of the network that is being associated.
                                                                                              +   * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The URL of the network that is being associated.
                                                                                              +   * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREWALL_ENDPOINT_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object firewallEndpoint_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The firewallEndpoint. + */ + @java.lang.Override + public java.lang.String getFirewallEndpoint() { + java.lang.Object ref = firewallEndpoint_; + 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(); + firewallEndpoint_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for firewallEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirewallEndpointBytes() { + java.lang.Object ref = firewallEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firewallEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TLS_INSPECTION_POLICY_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object tlsInspectionPolicy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +   * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tlsInspectionPolicy. + */ + @java.lang.Override + public java.lang.String getTlsInspectionPolicy() { + java.lang.Object ref = tlsInspectionPolicy_; + 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(); + tlsInspectionPolicy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +   * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tlsInspectionPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTlsInspectionPolicyBytes() { + java.lang.Object ref = tlsInspectionPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlsInspectionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECONCILING_FIELD_NUMBER = 9; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. Whether reconciling is in progress, recommended per
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int DISABLED_FIELD_NUMBER = 10; + private boolean disabled_ = false; + + /** + * + * + *
                                                                                              +   * Optional. Whether the association is disabled.
                                                                                              +   * True indicates that traffic won't be intercepted
                                                                                              +   * 
                                                                                              + * + * bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (state_ + != com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, network_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firewallEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, firewallEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tlsInspectionPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, tlsInspectionPolicy_); + } + if (reconciling_ != false) { + output.writeBool(9, reconciling_); + } + if (disabled_ != false) { + output.writeBool(10, disabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (state_ + != com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, network_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firewallEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, firewallEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tlsInspectionPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, tlsInspectionPolicy_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, reconciling_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, disabled_); + } + 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.networksecurity.v1.FirewallEndpointAssociation)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation other = + (com.google.cloud.networksecurity.v1.FirewallEndpointAssociation) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getFirewallEndpoint().equals(other.getFirewallEndpoint())) return false; + if (!getTlsInspectionPolicy().equals(other.getTlsInspectionPolicy())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (getDisabled() != other.getDisabled()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + FIREWALL_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpoint().hashCode(); + hash = (37 * hash) + TLS_INSPECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getTlsInspectionPolicy().hashCode(); + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation 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.networksecurity.v1.FirewallEndpointAssociation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation 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.networksecurity.v1.FirewallEndpointAssociation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.FirewallEndpointAssociation 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message describing Association object
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.FirewallEndpointAssociation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.FirewallEndpointAssociation) + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.class, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + network_ = ""; + firewallEndpoint_ = ""; + tlsInspectionPolicy_ = ""; + reconciling_ = false; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_FirewallEndpointAssociation_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation build() { + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation buildPartial() { + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation result = + new com.google.cloud.networksecurity.v1.FirewallEndpointAssociation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.firewallEndpoint_ = firewallEndpoint_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.tlsInspectionPolicy_ = tlsInspectionPolicy_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.disabled_ = disabled_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.FirewallEndpointAssociation) { + return mergeFrom((com.google.cloud.networksecurity.v1.FirewallEndpointAssociation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation other) { + if (other + == com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getFirewallEndpoint().isEmpty()) { + firewallEndpoint_ = other.firewallEndpoint_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getTlsInspectionPolicy().isEmpty()) { + tlsInspectionPolicy_ = other.tlsInspectionPolicy_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + firewallEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + tlsInspectionPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. name of resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. name of resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. name of resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. name of resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. name of resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Create time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Update time stamp
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Current state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State getState() { + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State result = + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The URL of the network that is being associated.
                                                                                              +     * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The URL of the network that is being associated.
                                                                                              +     * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The URL of the network that is being associated.
                                                                                              +     * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The URL of the network that is being associated.
                                                                                              +     * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The URL of the network that is being associated.
                                                                                              +     * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object firewallEndpoint_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The firewallEndpoint. + */ + public java.lang.String getFirewallEndpoint() { + java.lang.Object ref = firewallEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firewallEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for firewallEndpoint. + */ + public com.google.protobuf.ByteString getFirewallEndpointBytes() { + java.lang.Object ref = firewallEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firewallEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The firewallEndpoint to set. + * @return This builder for chaining. + */ + public Builder setFirewallEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firewallEndpoint_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFirewallEndpoint() { + firewallEndpoint_ = getDefaultInstance().getFirewallEndpoint(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +     * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for firewallEndpoint to set. + * @return This builder for chaining. + */ + public Builder setFirewallEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firewallEndpoint_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object tlsInspectionPolicy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tlsInspectionPolicy. + */ + public java.lang.String getTlsInspectionPolicy() { + java.lang.Object ref = tlsInspectionPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tlsInspectionPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tlsInspectionPolicy. + */ + public com.google.protobuf.ByteString getTlsInspectionPolicyBytes() { + java.lang.Object ref = tlsInspectionPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlsInspectionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tlsInspectionPolicy to set. + * @return This builder for chaining. + */ + public Builder setTlsInspectionPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tlsInspectionPolicy_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTlsInspectionPolicy() { + tlsInspectionPolicy_ = getDefaultInstance().getTlsInspectionPolicy(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tlsInspectionPolicy to set. + * @return This builder for chaining. + */ + public Builder setTlsInspectionPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tlsInspectionPolicy_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. Whether reconciling is in progress, recommended per
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. Whether reconciling is in progress, recommended per
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Whether reconciling is in progress, recommended per
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000100); + reconciling_ = false; + onChanged(); + return this; + } + + private boolean disabled_; + + /** + * + * + *
                                                                                              +     * Optional. Whether the association is disabled.
                                                                                              +     * True indicates that traffic won't be intercepted
                                                                                              +     * 
                                                                                              + * + * bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + /** + * + * + *
                                                                                              +     * Optional. Whether the association is disabled.
                                                                                              +     * True indicates that traffic won't be intercepted
                                                                                              +     * 
                                                                                              + * + * bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Whether the association is disabled.
                                                                                              +     * True indicates that traffic won't be intercepted
                                                                                              +     * 
                                                                                              + * + * bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000200); + disabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.FirewallEndpointAssociation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.FirewallEndpointAssociation) + private static final com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.FirewallEndpointAssociation(); + } + + public static com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallEndpointAssociation 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.networksecurity.v1.FirewallEndpointAssociation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationName.java new file mode 100644 index 000000000000..2c49a0ff268b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationName.java @@ -0,0 +1,242 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FirewallEndpointAssociationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FIREWALL_ENDPOINT_ASSOCIATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/firewallEndpointAssociations/{firewall_endpoint_association}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String firewallEndpointAssociation; + + @Deprecated + protected FirewallEndpointAssociationName() { + project = null; + location = null; + firewallEndpointAssociation = null; + } + + private FirewallEndpointAssociationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + firewallEndpointAssociation = + Preconditions.checkNotNull(builder.getFirewallEndpointAssociation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFirewallEndpointAssociation() { + return firewallEndpointAssociation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FirewallEndpointAssociationName of( + String project, String location, String firewallEndpointAssociation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFirewallEndpointAssociation(firewallEndpointAssociation) + .build(); + } + + public static String format(String project, String location, String firewallEndpointAssociation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFirewallEndpointAssociation(firewallEndpointAssociation) + .build() + .toString(); + } + + public static FirewallEndpointAssociationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FIREWALL_ENDPOINT_ASSOCIATION.validatedMatch( + formattedString, + "FirewallEndpointAssociationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("firewall_endpoint_association")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FirewallEndpointAssociationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FIREWALL_ENDPOINT_ASSOCIATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (firewallEndpointAssociation != null) { + fieldMapBuilder.put("firewall_endpoint_association", firewallEndpointAssociation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FIREWALL_ENDPOINT_ASSOCIATION.instantiate( + "project", + project, + "location", + location, + "firewall_endpoint_association", + firewallEndpointAssociation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FirewallEndpointAssociationName that = ((FirewallEndpointAssociationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.firewallEndpointAssociation, that.firewallEndpointAssociation); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(firewallEndpointAssociation); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/firewallEndpointAssociations/{firewall_endpoint_association}. + */ + public static class Builder { + private String project; + private String location; + private String firewallEndpointAssociation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFirewallEndpointAssociation() { + return firewallEndpointAssociation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFirewallEndpointAssociation(String firewallEndpointAssociation) { + this.firewallEndpointAssociation = firewallEndpointAssociation; + return this; + } + + private Builder(FirewallEndpointAssociationName firewallEndpointAssociationName) { + this.project = firewallEndpointAssociationName.project; + this.location = firewallEndpointAssociationName.location; + this.firewallEndpointAssociation = + firewallEndpointAssociationName.firewallEndpointAssociation; + } + + public FirewallEndpointAssociationName build() { + return new FirewallEndpointAssociationName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationOrBuilder.java new file mode 100644 index 000000000000..7965819f59cf --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationOrBuilder.java @@ -0,0 +1,341 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface FirewallEndpointAssociationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.FirewallEndpointAssociation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. name of resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. name of resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Output only. Current state of the association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. Current state of the association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.State getState(); + + /** + * + * + *
                                                                                              +   * Required. The URL of the network that is being associated.
                                                                                              +   * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                                                                              +   * Required. The URL of the network that is being associated.
                                                                                              +   * 
                                                                                              + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                                                                              +   * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The firewallEndpoint. + */ + java.lang.String getFirewallEndpoint(); + + /** + * + * + *
                                                                                              +   * Required. The URL of the FirewallEndpoint that is being associated.
                                                                                              +   * 
                                                                                              + * + * string firewall_endpoint = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for firewallEndpoint. + */ + com.google.protobuf.ByteString getFirewallEndpointBytes(); + + /** + * + * + *
                                                                                              +   * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +   * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tlsInspectionPolicy. + */ + java.lang.String getTlsInspectionPolicy(); + + /** + * + * + *
                                                                                              +   * Optional. The URL of the TlsInspectionPolicy that is being associated.
                                                                                              +   * 
                                                                                              + * + * + * string tls_inspection_policy = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tlsInspectionPolicy. + */ + com.google.protobuf.ByteString getTlsInspectionPolicyBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Whether reconciling is in progress, recommended per
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Optional. Whether the association is disabled.
                                                                                              +   * True indicates that traffic won't be intercepted
                                                                                              +   * 
                                                                                              + * + * bool disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointName.java new file mode 100644 index 000000000000..84c35e0b2f05 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointName.java @@ -0,0 +1,361 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FirewallEndpointName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_FIREWALL_ENDPOINT = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/firewallEndpoints/{firewall_endpoint}"); + private static final PathTemplate PROJECT_LOCATION_FIREWALL_ENDPOINT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/firewallEndpoints/{firewall_endpoint}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String firewallEndpoint; + private final String project; + + @Deprecated + protected FirewallEndpointName() { + organization = null; + location = null; + firewallEndpoint = null; + project = null; + } + + private FirewallEndpointName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + firewallEndpoint = Preconditions.checkNotNull(builder.getFirewallEndpoint()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_FIREWALL_ENDPOINT; + } + + private FirewallEndpointName(ProjectLocationFirewallEndpointBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + firewallEndpoint = Preconditions.checkNotNull(builder.getFirewallEndpoint()); + organization = null; + pathTemplate = PROJECT_LOCATION_FIREWALL_ENDPOINT; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFirewallEndpoint() { + return firewallEndpoint; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationFirewallEndpointBuilder() { + return new Builder(); + } + + public static ProjectLocationFirewallEndpointBuilder newProjectLocationFirewallEndpointBuilder() { + return new ProjectLocationFirewallEndpointBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FirewallEndpointName of( + String organization, String location, String firewallEndpoint) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFirewallEndpoint(firewallEndpoint) + .build(); + } + + public static FirewallEndpointName ofOrganizationLocationFirewallEndpointName( + String organization, String location, String firewallEndpoint) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFirewallEndpoint(firewallEndpoint) + .build(); + } + + public static FirewallEndpointName ofProjectLocationFirewallEndpointName( + String project, String location, String firewallEndpoint) { + return newProjectLocationFirewallEndpointBuilder() + .setProject(project) + .setLocation(location) + .setFirewallEndpoint(firewallEndpoint) + .build(); + } + + public static String format(String organization, String location, String firewallEndpoint) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFirewallEndpoint(firewallEndpoint) + .build() + .toString(); + } + + public static String formatOrganizationLocationFirewallEndpointName( + String organization, String location, String firewallEndpoint) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFirewallEndpoint(firewallEndpoint) + .build() + .toString(); + } + + public static String formatProjectLocationFirewallEndpointName( + String project, String location, String firewallEndpoint) { + return newProjectLocationFirewallEndpointBuilder() + .setProject(project) + .setLocation(location) + .setFirewallEndpoint(firewallEndpoint) + .build() + .toString(); + } + + public static FirewallEndpointName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_FIREWALL_ENDPOINT.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_FIREWALL_ENDPOINT.match(formattedString); + return ofOrganizationLocationFirewallEndpointName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("firewall_endpoint")); + } else if (PROJECT_LOCATION_FIREWALL_ENDPOINT.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_FIREWALL_ENDPOINT.match(formattedString); + return ofProjectLocationFirewallEndpointName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("firewall_endpoint")); + } + throw new ValidationException( + "FirewallEndpointName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FirewallEndpointName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_FIREWALL_ENDPOINT.matches(formattedString) + || PROJECT_LOCATION_FIREWALL_ENDPOINT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (firewallEndpoint != null) { + fieldMapBuilder.put("firewall_endpoint", firewallEndpoint); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FirewallEndpointName that = ((FirewallEndpointName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.firewallEndpoint, that.firewallEndpoint) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(firewallEndpoint); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/firewallEndpoints/{firewall_endpoint}. + */ + public static class Builder { + private String organization; + private String location; + private String firewallEndpoint; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFirewallEndpoint() { + return firewallEndpoint; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFirewallEndpoint(String firewallEndpoint) { + this.firewallEndpoint = firewallEndpoint; + return this; + } + + private Builder(FirewallEndpointName firewallEndpointName) { + Preconditions.checkArgument( + Objects.equals( + firewallEndpointName.pathTemplate, ORGANIZATION_LOCATION_FIREWALL_ENDPOINT), + "toBuilder is only supported when FirewallEndpointName has the pattern of" + + " organizations/{organization}/locations/{location}/firewallEndpoints/{firewall_endpoint}"); + this.organization = firewallEndpointName.organization; + this.location = firewallEndpointName.location; + this.firewallEndpoint = firewallEndpointName.firewallEndpoint; + } + + public FirewallEndpointName build() { + return new FirewallEndpointName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/firewallEndpoints/{firewall_endpoint}. */ + public static class ProjectLocationFirewallEndpointBuilder { + private String project; + private String location; + private String firewallEndpoint; + + protected ProjectLocationFirewallEndpointBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFirewallEndpoint() { + return firewallEndpoint; + } + + public ProjectLocationFirewallEndpointBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationFirewallEndpointBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationFirewallEndpointBuilder setFirewallEndpoint(String firewallEndpoint) { + this.firewallEndpoint = firewallEndpoint; + return this; + } + + public FirewallEndpointName build() { + return new FirewallEndpointName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointOrBuilder.java new file mode 100644 index 000000000000..36f8f73ab21f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointOrBuilder.java @@ -0,0 +1,570 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface FirewallEndpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.FirewallEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. Description of the firewall endpoint. Max length 2048
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Create time stamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Update time stamp
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.FirewallEndpoint.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. Whether reconciling is in progress, recommended per
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Output only. List of networks that are associated with this endpoint in the
                                                                                              +   * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +   * pointing at this endpoint. A network will only appear in this list after
                                                                                              +   * traffic routing is fully configured. Format:
                                                                                              +   * projects/{project}/global/networks/{name}.
                                                                                              +   * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is deprecated. + * See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @return A list containing the associatedNetworks. + */ + @java.lang.Deprecated + java.util.List getAssociatedNetworksList(); + + /** + * + * + *
                                                                                              +   * Output only. List of networks that are associated with this endpoint in the
                                                                                              +   * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +   * pointing at this endpoint. A network will only appear in this list after
                                                                                              +   * traffic routing is fully configured. Format:
                                                                                              +   * projects/{project}/global/networks/{name}.
                                                                                              +   * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is deprecated. + * See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @return The count of associatedNetworks. + */ + @java.lang.Deprecated + int getAssociatedNetworksCount(); + + /** + * + * + *
                                                                                              +   * Output only. List of networks that are associated with this endpoint in the
                                                                                              +   * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +   * pointing at this endpoint. A network will only appear in this list after
                                                                                              +   * traffic routing is fully configured. Format:
                                                                                              +   * projects/{project}/global/networks/{name}.
                                                                                              +   * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is deprecated. + * See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param index The index of the element to return. + * @return The associatedNetworks at the given index. + */ + @java.lang.Deprecated + java.lang.String getAssociatedNetworks(int index); + + /** + * + * + *
                                                                                              +   * Output only. List of networks that are associated with this endpoint in the
                                                                                              +   * local zone. This is a projection of the FirewallEndpointAssociations
                                                                                              +   * pointing at this endpoint. A network will only appear in this list after
                                                                                              +   * traffic routing is fully configured. Format:
                                                                                              +   * projects/{project}/global/networks/{name}.
                                                                                              +   * 
                                                                                              + * + * + * repeated string associated_networks = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.networksecurity.v1.FirewallEndpoint.associated_networks is deprecated. + * See google/cloud/networksecurity/v1/firewall_activation.proto;l=265 + * @param index The index of the value to return. + * @return The bytes of the associatedNetworks at the given index. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getAssociatedNetworksBytes(int index); + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAssociationsList(); + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference getAssociations( + int index); + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAssociationsCount(); + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder> + getAssociationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. List of FirewallEndpointAssociations that are associated to
                                                                                              +   * this endpoint. An association will only appear in this list after traffic
                                                                                              +   * routing is fully configured.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReference associations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpoint.AssociationReferenceOrBuilder + getAssociationsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. [Output Only] Reserved for future use.
                                                                                              +   * 
                                                                                              + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + boolean hasSatisfiesPzs(); + + /** + * + * + *
                                                                                              +   * Output only. [Output Only] Reserved for future use.
                                                                                              +   * 
                                                                                              + * + * optional bool satisfies_pzs = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
                                                                                              +   * Output only. [Output Only] Reserved for future use.
                                                                                              +   * 
                                                                                              + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + boolean hasSatisfiesPzi(); + + /** + * + * + *
                                                                                              +   * Output only. [Output Only] Reserved for future use.
                                                                                              +   * 
                                                                                              + * + * optional bool satisfies_pzi = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + + /** + * + * + *
                                                                                              +   * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +   * This field must be specified when creating the endpoint in the organization
                                                                                              +   * scope, and should be omitted otherwise.
                                                                                              +   * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The billingProjectId. + */ + java.lang.String getBillingProjectId(); + + /** + * + * + *
                                                                                              +   * Optional. Project to charge for the deployed firewall endpoint.
                                                                                              +   * This field must be specified when creating the endpoint in the organization
                                                                                              +   * scope, and should be omitted otherwise.
                                                                                              +   * 
                                                                                              + * + * string billing_project_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for billingProjectId. + */ + com.google.protobuf.ByteString getBillingProjectIdBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Settings for the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointSettings field is set. + */ + boolean hasEndpointSettings(); + + /** + * + * + *
                                                                                              +   * Optional. Settings for the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointSettings. + */ + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings getEndpointSettings(); + + /** + * + * + *
                                                                                              +   * Optional. Settings for the endpoint.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettings endpoint_settings = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpoint.EndpointSettingsOrBuilder + getEndpointSettingsOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicy.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicy.java new file mode 100644 index 000000000000..47fcdd11a305 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicy.java @@ -0,0 +1,1626 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The GatewaySecurityPolicy resource contains a collection of
                                                                                              + * GatewaySecurityPolicyRules and associated metadata.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GatewaySecurityPolicy} + */ +@com.google.protobuf.Generated +public final class GatewaySecurityPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GatewaySecurityPolicy) + GatewaySecurityPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GatewaySecurityPolicy"); + } + + // Use GatewaySecurityPolicy.newBuilder() to construct. + private GatewaySecurityPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GatewaySecurityPolicy() { + name_ = ""; + description_ = ""; + tlsInspectionPolicy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.class, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource. Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +   * gateway_security_policy should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource. Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +   * gateway_security_policy should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TLS_INSPECTION_POLICY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object tlsInspectionPolicy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +   * inspection will be performed for any rule(s) which enables it.
                                                                                              +   * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tlsInspectionPolicy. + */ + @java.lang.Override + public java.lang.String getTlsInspectionPolicy() { + java.lang.Object ref = tlsInspectionPolicy_; + 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(); + tlsInspectionPolicy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +   * inspection will be performed for any rule(s) which enables it.
                                                                                              +   * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tlsInspectionPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTlsInspectionPolicyBytes() { + java.lang.Object ref = tlsInspectionPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlsInspectionPolicy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tlsInspectionPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, tlsInspectionPolicy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tlsInspectionPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, tlsInspectionPolicy_); + } + 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.networksecurity.v1.GatewaySecurityPolicy)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy other = + (com.google.cloud.networksecurity.v1.GatewaySecurityPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getTlsInspectionPolicy().equals(other.getTlsInspectionPolicy())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + TLS_INSPECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getTlsInspectionPolicy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy 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.networksecurity.v1.GatewaySecurityPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy 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.networksecurity.v1.GatewaySecurityPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GatewaySecurityPolicy 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The GatewaySecurityPolicy resource contains a collection of
                                                                                              +   * GatewaySecurityPolicyRules and associated metadata.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GatewaySecurityPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GatewaySecurityPolicy) + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.class, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + description_ = ""; + tlsInspectionPolicy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy build() { + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy buildPartial() { + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy result = + new com.google.cloud.networksecurity.v1.GatewaySecurityPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.GatewaySecurityPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tlsInspectionPolicy_ = tlsInspectionPolicy_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GatewaySecurityPolicy) { + return mergeFrom((com.google.cloud.networksecurity.v1.GatewaySecurityPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.GatewaySecurityPolicy other) { + if (other == com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTlsInspectionPolicy().isEmpty()) { + tlsInspectionPolicy_ = other.tlsInspectionPolicy_; + bitField0_ |= 0x00000010; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + tlsInspectionPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +     * gateway_security_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +     * gateway_security_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +     * gateway_security_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +     * gateway_security_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +     * gateway_security_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tlsInspectionPolicy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +     * inspection will be performed for any rule(s) which enables it.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tlsInspectionPolicy. + */ + public java.lang.String getTlsInspectionPolicy() { + java.lang.Object ref = tlsInspectionPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tlsInspectionPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +     * inspection will be performed for any rule(s) which enables it.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tlsInspectionPolicy. + */ + public com.google.protobuf.ByteString getTlsInspectionPolicyBytes() { + java.lang.Object ref = tlsInspectionPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlsInspectionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +     * inspection will be performed for any rule(s) which enables it.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tlsInspectionPolicy to set. + * @return This builder for chaining. + */ + public Builder setTlsInspectionPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tlsInspectionPolicy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +     * inspection will be performed for any rule(s) which enables it.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTlsInspectionPolicy() { + tlsInspectionPolicy_ = getDefaultInstance().getTlsInspectionPolicy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +     * inspection will be performed for any rule(s) which enables it.
                                                                                              +     * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tlsInspectionPolicy to set. + * @return This builder for chaining. + */ + public Builder setTlsInspectionPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tlsInspectionPolicy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GatewaySecurityPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GatewaySecurityPolicy) + private static final com.google.cloud.networksecurity.v1.GatewaySecurityPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GatewaySecurityPolicy(); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewaySecurityPolicy 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.networksecurity.v1.GatewaySecurityPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyName.java new file mode 100644 index 000000000000..e89eb6133a1b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyName.java @@ -0,0 +1,233 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class GatewaySecurityPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_GATEWAY_SECURITY_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String gatewaySecurityPolicy; + + @Deprecated + protected GatewaySecurityPolicyName() { + project = null; + location = null; + gatewaySecurityPolicy = null; + } + + private GatewaySecurityPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + gatewaySecurityPolicy = Preconditions.checkNotNull(builder.getGatewaySecurityPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGatewaySecurityPolicy() { + return gatewaySecurityPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static GatewaySecurityPolicyName of( + String project, String location, String gatewaySecurityPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGatewaySecurityPolicy(gatewaySecurityPolicy) + .build(); + } + + public static String format(String project, String location, String gatewaySecurityPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGatewaySecurityPolicy(gatewaySecurityPolicy) + .build() + .toString(); + } + + public static GatewaySecurityPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_GATEWAY_SECURITY_POLICY.validatedMatch( + formattedString, + "GatewaySecurityPolicyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("gateway_security_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (GatewaySecurityPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_GATEWAY_SECURITY_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (gatewaySecurityPolicy != null) { + fieldMapBuilder.put("gateway_security_policy", gatewaySecurityPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_GATEWAY_SECURITY_POLICY.instantiate( + "project", project, "location", location, "gateway_security_policy", gatewaySecurityPolicy); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + GatewaySecurityPolicyName that = ((GatewaySecurityPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.gatewaySecurityPolicy, that.gatewaySecurityPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(gatewaySecurityPolicy); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}. + */ + public static class Builder { + private String project; + private String location; + private String gatewaySecurityPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGatewaySecurityPolicy() { + return gatewaySecurityPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setGatewaySecurityPolicy(String gatewaySecurityPolicy) { + this.gatewaySecurityPolicy = gatewaySecurityPolicy; + return this; + } + + private Builder(GatewaySecurityPolicyName gatewaySecurityPolicyName) { + this.project = gatewaySecurityPolicyName.project; + this.location = gatewaySecurityPolicyName.location; + this.gatewaySecurityPolicy = gatewaySecurityPolicyName.gatewaySecurityPolicy; + } + + public GatewaySecurityPolicyName build() { + return new GatewaySecurityPolicyName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyOrBuilder.java new file mode 100644 index 000000000000..0177843fda8d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GatewaySecurityPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GatewaySecurityPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource. Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +   * gateway_security_policy should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource. Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
                                                                                              +   * gateway_security_policy should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +   * inspection will be performed for any rule(s) which enables it.
                                                                                              +   * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tlsInspectionPolicy. + */ + java.lang.String getTlsInspectionPolicy(); + + /** + * + * + *
                                                                                              +   * Optional. Name of a TLS Inspection Policy resource that defines how TLS
                                                                                              +   * inspection will be performed for any rule(s) which enables it.
                                                                                              +   * 
                                                                                              + * + * + * string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tlsInspectionPolicy. + */ + com.google.protobuf.ByteString getTlsInspectionPolicyBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyProto.java new file mode 100644 index 000000000000..f83bf1cf9534 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyProto.java @@ -0,0 +1,209 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class GatewaySecurityPolicyProto extends com.google.protobuf.GeneratedFile { + private GatewaySecurityPolicyProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GatewaySecurityPolicyProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/networksecurity/v1/gatewa" + + "y_security_policy.proto\022\037google.cloud.ne" + + "tworksecurity.v1\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032 go" + + "ogle/protobuf/field_mask.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\243\003\n\025GatewaySecur" + + "ityPolicy\022\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013create_t" + + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\003 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022\030\n\013description\030\004 \001(\tB\003\340" + + "A\001\022Y\n\025tls_inspection_policy\030\005 \001(\tB:\340A\001\372A" + + "4\n2networksecurity.googleapis.com/TlsIns" + + "pectionPolicy:\225\001\352A\221\001\n4networksecurity.go" + + "ogleapis.com/GatewaySecurityPolicy\022Yproj" + + "ects/{project}/locations/{location}/gate" + + "waySecurityPolicies/{gateway_security_po" + + "licy}\"\371\001\n\"CreateGatewaySecurityPolicyReq" + + "uest\022L\n\006parent\030\001 \001(\tB<\340A\002\372A6\0224networksec" + + "urity.googleapis.com/GatewaySecurityPoli" + + "cy\022\'\n\032gateway_security_policy_id\030\002 \001(\tB\003" + + "\340A\002\022\\\n\027gateway_security_policy\030\003 \001(\01326.g" + + "oogle.cloud.networksecurity.v1.GatewaySe" + + "curityPolicyB\003\340A\002\"\206\001\n\"ListGatewaySecurit" + + "yPoliciesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\256\001\n#L" + + "istGatewaySecurityPoliciesResponse\022Y\n\031ga" + + "teway_security_policies\030\001 \003(\01326.google.c" + + "loud.networksecurity.v1.GatewaySecurityP" + + "olicy\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"m\n\037GetGatewaySecurityPolicyR" + + "equest\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4networksec" + + "urity.googleapis.com/GatewaySecurityPoli" + + "cy\"p\n\"DeleteGatewaySecurityPolicyRequest" + + "\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4networksecurity." + + "googleapis.com/GatewaySecurityPolicy\"\270\001\n" + + "\"UpdateGatewaySecurityPolicyRequest\0224\n\013u" + + "pdate_mask\030\001 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\001\022\\\n\027gateway_security_policy\030\002 \001" + + "(\01326.google.cloud.networksecurity.v1.Gat" + + "ewaySecurityPolicyB\003\340A\002B\373\001\n#com.google.c" + + "loud.networksecurity.v1B\032GatewaySecurity" + + "PolicyProtoP\001ZMcloud.google.com/go/netwo" + + "rksecurity/apiv1/networksecuritypb;netwo" + + "rksecuritypb\252\002\037Google.Cloud.NetworkSecur" + + "ity.V1\312\002\037Google\\Cloud\\NetworkSecurity\\V1" + + "\352\002\"Google::Cloud::NetworkSecurity::V1b\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicy_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "Description", "TlsInspectionPolicy", + }); + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "GatewaySecurityPolicyId", "GatewaySecurityPolicy", + }); + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_descriptor, + new java.lang.String[] { + "GatewaySecurityPolicies", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "GatewaySecurityPolicy", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRule.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..118711e2f91a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRule.java @@ -0,0 +1,2601 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The GatewaySecurityPolicyRule resource is in a nested collection within a
                                                                                              + * GatewaySecurityPolicy and represents a traffic matching condition and
                                                                                              + * associated action to perform.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GatewaySecurityPolicyRule} + */ +@com.google.protobuf.Generated +public final class GatewaySecurityPolicyRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GatewaySecurityPolicyRule) + GatewaySecurityPolicyRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GatewaySecurityPolicyRule"); + } + + // Use GatewaySecurityPolicyRule.newBuilder() to construct. + private GatewaySecurityPolicyRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GatewaySecurityPolicyRule() { + name_ = ""; + description_ = ""; + sessionMatcher_ = ""; + applicationMatcher_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.class, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder.class); + } + + /** + * + * + *
                                                                                              +   * enum to define the primitive action.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile} + */ + public enum BasicProfile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * If there is not a mentioned action for the target.
                                                                                              +     * 
                                                                                              + * + * BASIC_PROFILE_UNSPECIFIED = 0; + */ + BASIC_PROFILE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * Allow the matched traffic.
                                                                                              +     * 
                                                                                              + * + * ALLOW = 1; + */ + ALLOW(1), + /** + * + * + *
                                                                                              +     * Deny the matched traffic.
                                                                                              +     * 
                                                                                              + * + * DENY = 2; + */ + DENY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BasicProfile"); + } + + /** + * + * + *
                                                                                              +     * If there is not a mentioned action for the target.
                                                                                              +     * 
                                                                                              + * + * BASIC_PROFILE_UNSPECIFIED = 0; + */ + public static final int BASIC_PROFILE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * Allow the matched traffic.
                                                                                              +     * 
                                                                                              + * + * ALLOW = 1; + */ + public static final int ALLOW_VALUE = 1; + + /** + * + * + *
                                                                                              +     * Deny the matched traffic.
                                                                                              +     * 
                                                                                              + * + * DENY = 2; + */ + public static final int DENY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BasicProfile valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BasicProfile forNumber(int value) { + switch (value) { + case 0: + return BASIC_PROFILE_UNSPECIFIED; + case 1: + return ALLOW; + case 2: + return DENY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BasicProfile findValueByNumber(int number) { + return BasicProfile.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BasicProfile[] VALUES = values(); + + public static BasicProfile valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BasicProfile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile) + } + + private int bitField0_; + private int profileCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object profile_; + + public enum ProfileCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BASIC_PROFILE(9), + PROFILE_NOT_SET(0); + private final int value; + + private ProfileCase(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 ProfileCase valueOf(int value) { + return forNumber(value); + } + + public static ProfileCase forNumber(int value) { + switch (value) { + case 9: + return BASIC_PROFILE; + case 0: + return PROFILE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ProfileCase getProfileCase() { + return ProfileCase.forNumber(profileCase_); + } + + public static final int BASIC_PROFILE_FIELD_NUMBER = 9; + + /** + * + * + *
                                                                                              +   * Required. Profile which tells what the primitive action should be.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the basicProfile field is set. + */ + public boolean hasBasicProfile() { + return profileCase_ == 9; + } + + /** + * + * + *
                                                                                              +   * Required. Profile which tells what the primitive action should be.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for basicProfile. + */ + public int getBasicProfileValue() { + if (profileCase_ == 9) { + return (java.lang.Integer) profile_; + } + return 0; + } + + /** + * + * + *
                                                                                              +   * Required. Profile which tells what the primitive action should be.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The basicProfile. + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile + getBasicProfile() { + if (profileCase_ == 9) { + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile result = + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile.forNumber( + (java.lang.Integer) profile_); + return result == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile.UNRECOGNIZED + : result; + } + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile + .BASIC_PROFILE_UNSPECIFIED; + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +   * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +   * rule should match the
                                                                                              +   * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +   * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +   * rule should match the
                                                                                              +   * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ENABLED_FIELD_NUMBER = 4; + private boolean enabled_ = false; + + /** + * + * + *
                                                                                              +   * Required. Whether the rule is enforced.
                                                                                              +   * 
                                                                                              + * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int PRIORITY_FIELD_NUMBER = 5; + private int priority_ = 0; + + /** + * + * + *
                                                                                              +   * Required. Priority of the rule.
                                                                                              +   * Lower number corresponds to higher precedence.
                                                                                              +   * 
                                                                                              + * + * int32 priority = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SESSION_MATCHER_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object sessionMatcher_ = ""; + + /** + * + * + *
                                                                                              +   * Required. CEL expression for matching on session criteria.
                                                                                              +   * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sessionMatcher. + */ + @java.lang.Override + public java.lang.String getSessionMatcher() { + java.lang.Object ref = sessionMatcher_; + 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(); + sessionMatcher_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. CEL expression for matching on session criteria.
                                                                                              +   * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sessionMatcher. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionMatcherBytes() { + java.lang.Object ref = sessionMatcher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionMatcher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICATION_MATCHER_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object applicationMatcher_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +   * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The applicationMatcher. + */ + @java.lang.Override + public java.lang.String getApplicationMatcher() { + java.lang.Object ref = applicationMatcher_; + 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(); + applicationMatcher_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +   * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for applicationMatcher. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationMatcherBytes() { + java.lang.Object ref = applicationMatcher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationMatcher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TLS_INSPECTION_ENABLED_FIELD_NUMBER = 10; + private boolean tlsInspectionEnabled_ = false; + + /** + * + * + *
                                                                                              +   * Optional. Flag to enable TLS inspection of traffic matching on
                                                                                              +   * <session_matcher>, can only be true if the parent GatewaySecurityPolicy
                                                                                              +   * references a TLSInspectionConfig.
                                                                                              +   * 
                                                                                              + * + * bool tls_inspection_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tlsInspectionEnabled. + */ + @java.lang.Override + public boolean getTlsInspectionEnabled() { + return tlsInspectionEnabled_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (enabled_ != false) { + output.writeBool(4, enabled_); + } + if (priority_ != 0) { + output.writeInt32(5, priority_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionMatcher_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, sessionMatcher_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationMatcher_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, applicationMatcher_); + } + if (profileCase_ == 9) { + output.writeEnum(9, ((java.lang.Integer) profile_)); + } + if (tlsInspectionEnabled_ != false) { + output.writeBool(10, tlsInspectionEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enabled_); + } + if (priority_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, priority_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionMatcher_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, sessionMatcher_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(applicationMatcher_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, applicationMatcher_); + } + if (profileCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(9, ((java.lang.Integer) profile_)); + } + if (tlsInspectionEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, tlsInspectionEnabled_); + } + 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.networksecurity.v1.GatewaySecurityPolicyRule)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule other = + (com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getEnabled() != other.getEnabled()) return false; + if (getPriority() != other.getPriority()) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSessionMatcher().equals(other.getSessionMatcher())) return false; + if (!getApplicationMatcher().equals(other.getApplicationMatcher())) return false; + if (getTlsInspectionEnabled() != other.getTlsInspectionEnabled()) return false; + if (!getProfileCase().equals(other.getProfileCase())) return false; + switch (profileCase_) { + case 9: + if (getBasicProfileValue() != other.getBasicProfileValue()) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPriority(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SESSION_MATCHER_FIELD_NUMBER; + hash = (53 * hash) + getSessionMatcher().hashCode(); + hash = (37 * hash) + APPLICATION_MATCHER_FIELD_NUMBER; + hash = (53 * hash) + getApplicationMatcher().hashCode(); + hash = (37 * hash) + TLS_INSPECTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTlsInspectionEnabled()); + switch (profileCase_) { + case 9: + hash = (37 * hash) + BASIC_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getBasicProfileValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule 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.networksecurity.v1.GatewaySecurityPolicyRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule 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.networksecurity.v1.GatewaySecurityPolicyRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GatewaySecurityPolicyRule 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The GatewaySecurityPolicyRule resource is in a nested collection within a
                                                                                              +   * GatewaySecurityPolicy and represents a traffic matching condition and
                                                                                              +   * associated action to perform.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GatewaySecurityPolicyRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GatewaySecurityPolicyRule) + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.class, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + enabled_ = false; + priority_ = 0; + description_ = ""; + sessionMatcher_ = ""; + applicationMatcher_ = ""; + tlsInspectionEnabled_ = false; + profileCase_ = 0; + profile_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule build() { + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule buildPartial() { + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule result = + new com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.priority_ = priority_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.sessionMatcher_ = sessionMatcher_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.applicationMatcher_ = applicationMatcher_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.tlsInspectionEnabled_ = tlsInspectionEnabled_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule result) { + result.profileCase_ = profileCase_; + result.profile_ = this.profile_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule) { + return mergeFrom((com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule other) { + if (other + == com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getPriority() != 0) { + setPriority(other.getPriority()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getSessionMatcher().isEmpty()) { + sessionMatcher_ = other.sessionMatcher_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getApplicationMatcher().isEmpty()) { + applicationMatcher_ = other.applicationMatcher_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.getTlsInspectionEnabled() != false) { + setTlsInspectionEnabled(other.getTlsInspectionEnabled()); + } + switch (other.getProfileCase()) { + case BASIC_PROFILE: + { + setBasicProfileValue(other.getBasicProfileValue()); + break; + } + case PROFILE_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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 32: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + priority_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + sessionMatcher_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + applicationMatcher_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 72: + { + int rawValue = input.readEnum(); + profileCase_ = 9; + profile_ = rawValue; + break; + } // case 72 + case 80: + { + tlsInspectionEnabled_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + 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 profileCase_ = 0; + private java.lang.Object profile_; + + public ProfileCase getProfileCase() { + return ProfileCase.forNumber(profileCase_); + } + + public Builder clearProfile() { + profileCase_ = 0; + profile_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                                                                              +     * Required. Profile which tells what the primitive action should be.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the basicProfile field is set. + */ + @java.lang.Override + public boolean hasBasicProfile() { + return profileCase_ == 9; + } + + /** + * + * + *
                                                                                              +     * Required. Profile which tells what the primitive action should be.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for basicProfile. + */ + @java.lang.Override + public int getBasicProfileValue() { + if (profileCase_ == 9) { + return ((java.lang.Integer) profile_).intValue(); + } + return 0; + } + + /** + * + * + *
                                                                                              +     * Required. Profile which tells what the primitive action should be.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for basicProfile to set. + * @return This builder for chaining. + */ + public Builder setBasicProfileValue(int value) { + profileCase_ = 9; + profile_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Profile which tells what the primitive action should be.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The basicProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile + getBasicProfile() { + if (profileCase_ == 9) { + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile result = + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile.forNumber( + (java.lang.Integer) profile_); + return result == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile + .UNRECOGNIZED + : result; + } + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile + .BASIC_PROFILE_UNSPECIFIED; + } + + /** + * + * + *
                                                                                              +     * Required. Profile which tells what the primitive action should be.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The basicProfile to set. + * @return This builder for chaining. + */ + public Builder setBasicProfile( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile value) { + if (value == null) { + throw new NullPointerException(); + } + profileCase_ = 9; + profile_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Profile which tells what the primitive action should be.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearBasicProfile() { + if (profileCase_ == 9) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +     * rule should match the
                                                                                              +     * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +     * rule should match the
                                                                                              +     * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +     * rule should match the
                                                                                              +     * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +     * rule should match the
                                                                                              +     * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +     * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +     * rule should match the
                                                                                              +     * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the rule was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private boolean enabled_; + + /** + * + * + *
                                                                                              +     * Required. Whether the rule is enforced.
                                                                                              +     * 
                                                                                              + * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
                                                                                              +     * Required. Whether the rule is enforced.
                                                                                              +     * 
                                                                                              + * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Whether the rule is enforced.
                                                                                              +     * 
                                                                                              + * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + enabled_ = false; + onChanged(); + return this; + } + + private int priority_; + + /** + * + * + *
                                                                                              +     * Required. Priority of the rule.
                                                                                              +     * Lower number corresponds to higher precedence.
                                                                                              +     * 
                                                                                              + * + * int32 priority = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + /** + * + * + *
                                                                                              +     * Required. Priority of the rule.
                                                                                              +     * Lower number corresponds to higher precedence.
                                                                                              +     * 
                                                                                              + * + * int32 priority = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(int value) { + + priority_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Priority of the rule.
                                                                                              +     * Lower number corresponds to higher precedence.
                                                                                              +     * 
                                                                                              + * + * int32 priority = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00000020); + priority_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object sessionMatcher_ = ""; + + /** + * + * + *
                                                                                              +     * Required. CEL expression for matching on session criteria.
                                                                                              +     * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sessionMatcher. + */ + public java.lang.String getSessionMatcher() { + java.lang.Object ref = sessionMatcher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionMatcher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. CEL expression for matching on session criteria.
                                                                                              +     * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sessionMatcher. + */ + public com.google.protobuf.ByteString getSessionMatcherBytes() { + java.lang.Object ref = sessionMatcher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionMatcher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. CEL expression for matching on session criteria.
                                                                                              +     * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sessionMatcher to set. + * @return This builder for chaining. + */ + public Builder setSessionMatcher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sessionMatcher_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. CEL expression for matching on session criteria.
                                                                                              +     * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSessionMatcher() { + sessionMatcher_ = getDefaultInstance().getSessionMatcher(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. CEL expression for matching on session criteria.
                                                                                              +     * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sessionMatcher to set. + * @return This builder for chaining. + */ + public Builder setSessionMatcherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sessionMatcher_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object applicationMatcher_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +     * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The applicationMatcher. + */ + public java.lang.String getApplicationMatcher() { + java.lang.Object ref = applicationMatcher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applicationMatcher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +     * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for applicationMatcher. + */ + public com.google.protobuf.ByteString getApplicationMatcherBytes() { + java.lang.Object ref = applicationMatcher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applicationMatcher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +     * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The applicationMatcher to set. + * @return This builder for chaining. + */ + public Builder setApplicationMatcher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applicationMatcher_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +     * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearApplicationMatcher() { + applicationMatcher_ = getDefaultInstance().getApplicationMatcher(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +     * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for applicationMatcher to set. + * @return This builder for chaining. + */ + public Builder setApplicationMatcherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applicationMatcher_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private boolean tlsInspectionEnabled_; + + /** + * + * + *
                                                                                              +     * Optional. Flag to enable TLS inspection of traffic matching on
                                                                                              +     * <session_matcher>, can only be true if the parent GatewaySecurityPolicy
                                                                                              +     * references a TLSInspectionConfig.
                                                                                              +     * 
                                                                                              + * + * bool tls_inspection_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tlsInspectionEnabled. + */ + @java.lang.Override + public boolean getTlsInspectionEnabled() { + return tlsInspectionEnabled_; + } + + /** + * + * + *
                                                                                              +     * Optional. Flag to enable TLS inspection of traffic matching on
                                                                                              +     * <session_matcher>, can only be true if the parent GatewaySecurityPolicy
                                                                                              +     * references a TLSInspectionConfig.
                                                                                              +     * 
                                                                                              + * + * bool tls_inspection_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tlsInspectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setTlsInspectionEnabled(boolean value) { + + tlsInspectionEnabled_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Flag to enable TLS inspection of traffic matching on
                                                                                              +     * <session_matcher>, can only be true if the parent GatewaySecurityPolicy
                                                                                              +     * references a TLSInspectionConfig.
                                                                                              +     * 
                                                                                              + * + * bool tls_inspection_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTlsInspectionEnabled() { + bitField0_ = (bitField0_ & ~0x00000200); + tlsInspectionEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GatewaySecurityPolicyRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GatewaySecurityPolicyRule) + private static final com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule(); + } + + public static com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewaySecurityPolicyRule 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.networksecurity.v1.GatewaySecurityPolicyRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleName.java new file mode 100644 index 000000000000..6e5d0e7d1dba --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleName.java @@ -0,0 +1,270 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class GatewaySecurityPolicyRuleName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_GATEWAY_SECURITY_POLICY_RULE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String gatewaySecurityPolicy; + private final String rule; + + @Deprecated + protected GatewaySecurityPolicyRuleName() { + project = null; + location = null; + gatewaySecurityPolicy = null; + rule = null; + } + + private GatewaySecurityPolicyRuleName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + gatewaySecurityPolicy = Preconditions.checkNotNull(builder.getGatewaySecurityPolicy()); + rule = Preconditions.checkNotNull(builder.getRule()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGatewaySecurityPolicy() { + return gatewaySecurityPolicy; + } + + public String getRule() { + return rule; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static GatewaySecurityPolicyRuleName of( + String project, String location, String gatewaySecurityPolicy, String rule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGatewaySecurityPolicy(gatewaySecurityPolicy) + .setRule(rule) + .build(); + } + + public static String format( + String project, String location, String gatewaySecurityPolicy, String rule) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setGatewaySecurityPolicy(gatewaySecurityPolicy) + .setRule(rule) + .build() + .toString(); + } + + public static GatewaySecurityPolicyRuleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_GATEWAY_SECURITY_POLICY_RULE.validatedMatch( + formattedString, + "GatewaySecurityPolicyRuleName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("gateway_security_policy"), + matchMap.get("rule")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (GatewaySecurityPolicyRuleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_GATEWAY_SECURITY_POLICY_RULE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (gatewaySecurityPolicy != null) { + fieldMapBuilder.put("gateway_security_policy", gatewaySecurityPolicy); + } + if (rule != null) { + fieldMapBuilder.put("rule", rule); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_GATEWAY_SECURITY_POLICY_RULE.instantiate( + "project", + project, + "location", + location, + "gateway_security_policy", + gatewaySecurityPolicy, + "rule", + rule); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + GatewaySecurityPolicyRuleName that = ((GatewaySecurityPolicyRuleName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.gatewaySecurityPolicy, that.gatewaySecurityPolicy) + && Objects.equals(this.rule, that.rule); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(gatewaySecurityPolicy); + h *= 1000003; + h ^= Objects.hashCode(rule); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}. + */ + public static class Builder { + private String project; + private String location; + private String gatewaySecurityPolicy; + private String rule; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getGatewaySecurityPolicy() { + return gatewaySecurityPolicy; + } + + public String getRule() { + return rule; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setGatewaySecurityPolicy(String gatewaySecurityPolicy) { + this.gatewaySecurityPolicy = gatewaySecurityPolicy; + return this; + } + + public Builder setRule(String rule) { + this.rule = rule; + return this; + } + + private Builder(GatewaySecurityPolicyRuleName gatewaySecurityPolicyRuleName) { + this.project = gatewaySecurityPolicyRuleName.project; + this.location = gatewaySecurityPolicyRuleName.location; + this.gatewaySecurityPolicy = gatewaySecurityPolicyRuleName.gatewaySecurityPolicy; + this.rule = gatewaySecurityPolicyRuleName.rule; + } + + public GatewaySecurityPolicyRuleName build() { + return new GatewaySecurityPolicyRuleName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleOrBuilder.java new file mode 100644 index 000000000000..7130de504e6d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleOrBuilder.java @@ -0,0 +1,311 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GatewaySecurityPolicyRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GatewaySecurityPolicyRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Profile which tells what the primitive action should be.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the basicProfile field is set. + */ + boolean hasBasicProfile(); + + /** + * + * + *
                                                                                              +   * Required. Profile which tells what the primitive action should be.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for basicProfile. + */ + int getBasicProfileValue(); + + /** + * + * + *
                                                                                              +   * Required. Profile which tells what the primitive action should be.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile basic_profile = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The basicProfile. + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.BasicProfile getBasicProfile(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +   * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +   * rule should match the
                                                                                              +   * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. Name of the resource. ame is the full resource name so
                                                                                              +   * projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
                                                                                              +   * rule should match the
                                                                                              +   * pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the rule was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. Whether the rule is enforced.
                                                                                              +   * 
                                                                                              + * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
                                                                                              +   * Required. Priority of the rule.
                                                                                              +   * Lower number corresponds to higher precedence.
                                                                                              +   * 
                                                                                              + * + * int32 priority = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The priority. + */ + int getPriority(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Required. CEL expression for matching on session criteria.
                                                                                              +   * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sessionMatcher. + */ + java.lang.String getSessionMatcher(); + + /** + * + * + *
                                                                                              +   * Required. CEL expression for matching on session criteria.
                                                                                              +   * 
                                                                                              + * + * string session_matcher = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sessionMatcher. + */ + com.google.protobuf.ByteString getSessionMatcherBytes(); + + /** + * + * + *
                                                                                              +   * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +   * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The applicationMatcher. + */ + java.lang.String getApplicationMatcher(); + + /** + * + * + *
                                                                                              +   * Optional. CEL expression for matching on L7/application level criteria.
                                                                                              +   * 
                                                                                              + * + * string application_matcher = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for applicationMatcher. + */ + com.google.protobuf.ByteString getApplicationMatcherBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Flag to enable TLS inspection of traffic matching on
                                                                                              +   * <session_matcher>, can only be true if the parent GatewaySecurityPolicy
                                                                                              +   * references a TLSInspectionConfig.
                                                                                              +   * 
                                                                                              + * + * bool tls_inspection_enabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tlsInspectionEnabled. + */ + boolean getTlsInspectionEnabled(); + + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.ProfileCase getProfileCase(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleProto.java new file mode 100644 index 000000000000..b2e4c51f506d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleProto.java @@ -0,0 +1,229 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class GatewaySecurityPolicyRuleProto extends com.google.protobuf.GeneratedFile { + private GatewaySecurityPolicyRuleProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GatewaySecurityPolicyRuleProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "Bgoogle/cloud/networksecurity/v1/gateway_security_policy_rule.proto\022\037google.clo" + + "ud.networksecurity.v1\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\250\005\n" + + "\031GatewaySecurityPolicyRule\022e\n\r" + + "basic_profile\030\t \001(\0162G.google.cloud.networksecurity.v1.Gate" + + "waySecurityPolicyRule.BasicProfileB\003\340A\002H\000\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\002\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n" + + "\007enabled\030\004 \001(\010B\003\340A\002\022\025\n" + + "\010priority\030\005 \001(\005B\003\340A\002\022\030\n" + + "\013description\030\006 \001(\tB\003\340A\001\022\034\n" + + "\017session_matcher\030\007 \001(\tB\003\340A\002\022 \n" + + "\023application_matcher\030\010 \001(\tB\003\340A\001\022#\n" + + "\026tls_inspection_enabled\030\n" + + " \001(\010B\003\340A\001\"B\n" + + "\014BasicProfile\022\035\n" + + "\031BASIC_PROFILE_UNSPECIFIED\020\000\022\t\n" + + "\005ALLOW\020\001\022\010\n" + + "\004DENY\020\002:\246\001\352A\242\001\n" + + "8networksecurity.googleapis.com/GatewaySecurityPolicyRule\022fpr" + + "ojects/{project}/locations/{location}/ga" + + "tewaySecurityPolicies/{gateway_security_policy}/rules/{rule}B\t\n" + + "\007profile\"\212\002\n" + + "&CreateGatewaySecurityPolicyRuleRequest\022P\n" + + "\006parent\030\001 \001(" + + "\tB@\340A\002\372A:\0228networksecurity.googleapis.com/GatewaySecurityPolicyRule\022e\n" + + "\034gateway_security_policy_rule\030\002 \001(\0132:.goo" + + "gle.cloud.networksecurity.v1.GatewaySecurityPolicyRuleB\003\340A\002\022\'\n" + + "\037gateway_security_policy_rule_id\030\003 \001(\t\"u\n" + + "#GetGatewaySecurityPolicyRuleRequest\022N\n" + + "\004name\030\001 \001(\tB@\340A\002\372A:\n" + + "8networksecurity.googleapis.com/GatewaySecurityPolicyRule\"\305\001\n" + + "&UpdateGatewaySecurityPolicyRuleRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022e\n" + + "\034gateway_security_policy_rule\030\002 \001(\0132:.goo" + + "gle.cloud.networksecurity.v1.GatewaySecurityPolicyRuleB\003\340A\002\"\234\001\n" + + "%ListGatewaySecurityPolicyRulesRequest\022L\n" + + "\006parent\030\001 \001(\tB<\340A\002\372A6\n" + + "4networksecurity.googleapis.com/GatewaySecurityPolicy\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"\271\001\n" + + "&ListGatewaySecurityPolicyRulesResponse\022a\n" + + "\035gateway_security_policy_rules\030\001 \003(\0132:.google.cloud.netw" + + "orksecurity.v1.GatewaySecurityPolicyRule\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"x\n" + + "&DeleteGatewaySecurityPolicyRuleRequest\022N\n" + + "\004name\030\001 \001(\tB@\340A\002\372A:\n" + + "8networksecurity.googleapis.com/GatewaySecurityPolicyRuleB\377\001\n" + + "#com.google.cloud.networksecurity.v1B\036GatewaySecurityPolicyRuleProto" + + "P\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecurityp" + + "b\252\002\037Google.Cloud.NetworkSecurity.V1\312\002\037Go" + + "ogle\\Cloud\\NetworkSecurity\\V1\352\002\"Google::" + + "Cloud::NetworkSecurity::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GatewaySecurityPolicyRule_descriptor, + new java.lang.String[] { + "BasicProfile", + "Name", + "CreateTime", + "UpdateTime", + "Enabled", + "Priority", + "Description", + "SessionMatcher", + "ApplicationMatcher", + "TlsInspectionEnabled", + "Profile", + }); + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateGatewaySecurityPolicyRuleRequest_descriptor, + new java.lang.String[] { + "Parent", "GatewaySecurityPolicyRule", "GatewaySecurityPolicyRuleId", + }); + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "GatewaySecurityPolicyRule", + }); + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_descriptor, + new java.lang.String[] { + "GatewaySecurityPolicyRules", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteGatewaySecurityPolicyRuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthzPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthzPolicyRequest.java new file mode 100644 index 000000000000..da402a2a2c6d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthzPolicyRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for getting a `AuthzPolicy` resource.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetAuthzPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetAuthzPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetAuthzPolicyRequest) + GetAuthzPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAuthzPolicyRequest"); + } + + // Use GetAuthzPolicyRequest.newBuilder() to construct. + private GetAuthzPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAuthzPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest.class, + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetAuthzPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest other = + (com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest 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.networksecurity.v1.GetAuthzPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest 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.networksecurity.v1.GetAuthzPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetAuthzPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for getting a `AuthzPolicy` resource.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetAuthzPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetAuthzPolicyRequest) + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest.class, + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest build() { + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest result = + new com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest other) { + if (other == com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +     * format
                                                                                              +     * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetAuthzPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetAuthzPolicyRequest) + private static final com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthzPolicyRequest 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.networksecurity.v1.GetAuthzPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthzPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthzPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..9727a23a1b42 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAuthzPolicyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetAuthzPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetAuthzPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the `AuthzPolicy` resource to get. Must be in the
                                                                                              +   * format
                                                                                              +   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetBackendAuthenticationConfigRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetBackendAuthenticationConfigRequest.java new file mode 100644 index 000000000000..ed78fa1567a8 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetBackendAuthenticationConfigRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the GetBackendAuthenticationConfig method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetBackendAuthenticationConfigRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) + GetBackendAuthenticationConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetBackendAuthenticationConfigRequest"); + } + + // Use GetBackendAuthenticationConfigRequest.newBuilder() to construct. + private GetBackendAuthenticationConfigRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetBackendAuthenticationConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest.class, + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +   * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +   * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetBackendAuthenticationConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest other = + (com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest 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.networksecurity.v1.GetBackendAuthenticationConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest 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.networksecurity.v1.GetBackendAuthenticationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetBackendAuthenticationConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the GetBackendAuthenticationConfig method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest.class, + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_GetBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest build() { + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest + buildPartial() { + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest result = + new com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +     * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +     * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +     * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +     * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +     * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) + private static final com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackendAuthenticationConfigRequest 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.networksecurity.v1.GetBackendAuthenticationConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetBackendAuthenticationConfigRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetBackendAuthenticationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..0f7233c14112 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetBackendAuthenticationConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetBackendAuthenticationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +   * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the BackendAuthenticationConfig to get. Must be in the
                                                                                              +   * format `projects/*/locations/{location}/backendAuthenticationConfigs/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetDnsThreatDetectorRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetDnsThreatDetectorRequest.java new file mode 100644 index 000000000000..d6e46435eb04 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetDnsThreatDetectorRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The message sent to get a DnsThreatDetector.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest} + */ +@com.google.protobuf.Generated +public final class GetDnsThreatDetectorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) + GetDnsThreatDetectorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetDnsThreatDetectorRequest"); + } + + // Use GetDnsThreatDetectorRequest.newBuilder() to construct. + private GetDnsThreatDetectorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetDnsThreatDetectorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest.class, + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetDnsThreatDetectorRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest other = + (com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest 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.networksecurity.v1.GetDnsThreatDetectorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest 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.networksecurity.v1.GetDnsThreatDetectorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetDnsThreatDetectorRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The message sent to get a DnsThreatDetector.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest.class, + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_GetDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest build() { + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest result = + new com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the DnsThreatDetector resource.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) + private static final com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDnsThreatDetectorRequest 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.networksecurity.v1.GetDnsThreatDetectorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetDnsThreatDetectorRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetDnsThreatDetectorRequestOrBuilder.java new file mode 100644 index 000000000000..4bd15870a5d2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetDnsThreatDetectorRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetDnsThreatDetectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the DnsThreatDetector resource.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointAssociationRequest.java new file mode 100644 index 000000000000..6fb1e18c8ee5 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointAssociationRequest.java @@ -0,0 +1,631 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for getting a Association
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest} + */ +@com.google.protobuf.Generated +public final class GetFirewallEndpointAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) + GetFirewallEndpointAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFirewallEndpointAssociationRequest"); + } + + // Use GetFirewallEndpointAssociationRequest.newBuilder() to construct. + private GetFirewallEndpointAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFirewallEndpointAssociationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest.class, + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetFirewallEndpointAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest other = + (com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest 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.networksecurity.v1.GetFirewallEndpointAssociationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest 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.networksecurity.v1.GetFirewallEndpointAssociationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetFirewallEndpointAssociationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for getting a Association
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest.class, + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest build() { + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest result = + new com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) + private static final com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFirewallEndpointAssociationRequest 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.networksecurity.v1.GetFirewallEndpointAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..46451bb0b623 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointAssociationRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetFirewallEndpointAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointRequest.java new file mode 100644 index 000000000000..df676310dbc0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for getting a Endpoint
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetFirewallEndpointRequest} + */ +@com.google.protobuf.Generated +public final class GetFirewallEndpointRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetFirewallEndpointRequest) + GetFirewallEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFirewallEndpointRequest"); + } + + // Use GetFirewallEndpointRequest.newBuilder() to construct. + private GetFirewallEndpointRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFirewallEndpointRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest.class, + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetFirewallEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest other = + (com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest 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.networksecurity.v1.GetFirewallEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest 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.networksecurity.v1.GetFirewallEndpointRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetFirewallEndpointRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for getting a Endpoint
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetFirewallEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetFirewallEndpointRequest) + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest.class, + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_GetFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest build() { + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest result = + new com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetFirewallEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetFirewallEndpointRequest) + private static final com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFirewallEndpointRequest 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.networksecurity.v1.GetFirewallEndpointRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointRequestOrBuilder.java new file mode 100644 index 000000000000..d102542a47c2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetFirewallEndpointRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetFirewallEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetFirewallEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRequest.java new file mode 100644 index 000000000000..cb475dd2938b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the GetGatewaySecurityPolicy method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetGatewaySecurityPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) + GetGatewaySecurityPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetGatewaySecurityPolicyRequest"); + } + + // Use GetGatewaySecurityPolicyRequest.newBuilder() to construct. + private GetGatewaySecurityPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetGatewaySecurityPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest.class, + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetGatewaySecurityPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest other = + (com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest 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.networksecurity.v1.GetGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest 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.networksecurity.v1.GetGatewaySecurityPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetGatewaySecurityPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the GetGatewaySecurityPolicy method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest.class, + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest build() { + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest result = + new com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) + private static final com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGatewaySecurityPolicyRequest 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.networksecurity.v1.GetGatewaySecurityPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..d0db71a72ff6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetGatewaySecurityPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the GatewaySecurityPolicy to get. Must be in the format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRuleRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRuleRequest.java new file mode 100644 index 000000000000..99671ee55368 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRuleRequest.java @@ -0,0 +1,641 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the GetGatewaySecurityPolicyRule method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest} + */ +@com.google.protobuf.Generated +public final class GetGatewaySecurityPolicyRuleRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) + GetGatewaySecurityPolicyRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetGatewaySecurityPolicyRuleRequest"); + } + + // Use GetGatewaySecurityPolicyRuleRequest.newBuilder() to construct. + private GetGatewaySecurityPolicyRuleRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetGatewaySecurityPolicyRuleRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest.class, + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest other = + (com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest 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.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest 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.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the GetGatewaySecurityPolicyRule method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest.class, + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_GetGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest build() { + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest result = + new com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) + private static final com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGatewaySecurityPolicyRuleRequest 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.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRuleRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRuleRequestOrBuilder.java new file mode 100644 index 000000000000..164ee49600fc --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetGatewaySecurityPolicyRuleRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetGatewaySecurityPolicyRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the GatewaySecurityPolicyRule to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentGroupRequest.java new file mode 100644 index 000000000000..b9582c96932d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentGroupRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for GetInterceptDeploymentGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetInterceptDeploymentGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) + GetInterceptDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetInterceptDeploymentGroupRequest"); + } + + // Use GetInterceptDeploymentGroupRequest.newBuilder() to construct. + private GetInterceptDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetInterceptDeploymentGroupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetInterceptDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest other = + (com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest 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.networksecurity.v1.GetInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest 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.networksecurity.v1.GetInterceptDeploymentGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetInterceptDeploymentGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for GetInterceptDeploymentGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest build() { + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest result = + new com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) + private static final com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInterceptDeploymentGroupRequest 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.networksecurity.v1.GetInterceptDeploymentGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..9c6eecabf4d7 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetInterceptDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentRequest.java new file mode 100644 index 000000000000..74d92583f6fc --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentRequest.java @@ -0,0 +1,634 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for GetInterceptDeployment.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetInterceptDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class GetInterceptDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) + GetInterceptDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetInterceptDeploymentRequest"); + } + + // Use GetInterceptDeploymentRequest.newBuilder() to construct. + private GetInterceptDeploymentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetInterceptDeploymentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest.class, + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetInterceptDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest other = + (com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest 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.networksecurity.v1.GetInterceptDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest 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.networksecurity.v1.GetInterceptDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetInterceptDeploymentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for GetInterceptDeployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetInterceptDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest.class, + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest build() { + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest result = + new com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) + private static final com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInterceptDeploymentRequest 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.networksecurity.v1.GetInterceptDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..5f482e70bda1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptDeploymentRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetInterceptDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetInterceptDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupAssociationRequest.java new file mode 100644 index 000000000000..7e10d1261ab4 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupAssociationRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for GetInterceptEndpointGroupAssociation.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest} + */ +@com.google.protobuf.Generated +public final class GetInterceptEndpointGroupAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) + GetInterceptEndpointGroupAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetInterceptEndpointGroupAssociationRequest"); + } + + // Use GetInterceptEndpointGroupAssociationRequest.newBuilder() to construct. + private GetInterceptEndpointGroupAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetInterceptEndpointGroupAssociationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest.class, + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the association to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the association to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest other = + (com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + 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.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + 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.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for GetInterceptEndpointGroupAssociation.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest.class, + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest build() { + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest result = + new com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) + private static final com.google.cloud.networksecurity.v1 + .GetInterceptEndpointGroupAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInterceptEndpointGroupAssociationRequest 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.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..4659bffdc242 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupAssociationRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetInterceptEndpointGroupAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the association to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the association to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupRequest.java new file mode 100644 index 000000000000..f5fc1f0e6594 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupRequest.java @@ -0,0 +1,637 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for GetInterceptEndpointGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetInterceptEndpointGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) + GetInterceptEndpointGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetInterceptEndpointGroupRequest"); + } + + // Use GetInterceptEndpointGroupRequest.newBuilder() to construct. + private GetInterceptEndpointGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetInterceptEndpointGroupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the endpoint group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the endpoint group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetInterceptEndpointGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest other = + (com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest 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.networksecurity.v1.GetInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest 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.networksecurity.v1.GetInterceptEndpointGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetInterceptEndpointGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for GetInterceptEndpointGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest build() { + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest result = + new com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) + private static final com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInterceptEndpointGroupRequest 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.networksecurity.v1.GetInterceptEndpointGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupRequestOrBuilder.java new file mode 100644 index 000000000000..9efb06e5f518 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetInterceptEndpointGroupRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetInterceptEndpointGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the endpoint group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the endpoint group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentGroupRequest.java new file mode 100644 index 000000000000..d4e75bdafdf7 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentGroupRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for GetMirroringDeploymentGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetMirroringDeploymentGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) + GetMirroringDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMirroringDeploymentGroupRequest"); + } + + // Use GetMirroringDeploymentGroupRequest.newBuilder() to construct. + private GetMirroringDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMirroringDeploymentGroupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetMirroringDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest other = + (com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest 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.networksecurity.v1.GetMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest 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.networksecurity.v1.GetMirroringDeploymentGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetMirroringDeploymentGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for GetMirroringDeploymentGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest build() { + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest result = + new com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) + private static final com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMirroringDeploymentGroupRequest 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.networksecurity.v1.GetMirroringDeploymentGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..a8705ddf7f7f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetMirroringDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentRequest.java new file mode 100644 index 000000000000..dfd9fd00d849 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentRequest.java @@ -0,0 +1,634 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for GetMirroringDeployment.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetMirroringDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class GetMirroringDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) + GetMirroringDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMirroringDeploymentRequest"); + } + + // Use GetMirroringDeploymentRequest.newBuilder() to construct. + private GetMirroringDeploymentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMirroringDeploymentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest.class, + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetMirroringDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest other = + (com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest 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.networksecurity.v1.GetMirroringDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest 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.networksecurity.v1.GetMirroringDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetMirroringDeploymentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for GetMirroringDeployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetMirroringDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest.class, + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest build() { + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest result = + new com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the deployment to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) + private static final com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMirroringDeploymentRequest 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.networksecurity.v1.GetMirroringDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..ef326b7155ae --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringDeploymentRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetMirroringDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetMirroringDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the deployment to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupAssociationRequest.java new file mode 100644 index 000000000000..5f32050bf595 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupAssociationRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for GetMirroringEndpointGroupAssociation.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest} + */ +@com.google.protobuf.Generated +public final class GetMirroringEndpointGroupAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) + GetMirroringEndpointGroupAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMirroringEndpointGroupAssociationRequest"); + } + + // Use GetMirroringEndpointGroupAssociationRequest.newBuilder() to construct. + private GetMirroringEndpointGroupAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMirroringEndpointGroupAssociationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest.class, + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the association to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the association to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest other = + (com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + 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.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + 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.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for GetMirroringEndpointGroupAssociation.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest.class, + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest build() { + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest result = + new com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the association to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) + private static final com.google.cloud.networksecurity.v1 + .GetMirroringEndpointGroupAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMirroringEndpointGroupAssociationRequest 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.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..b34456e9606a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupAssociationRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetMirroringEndpointGroupAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the association to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the association to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupRequest.java new file mode 100644 index 000000000000..43e546901ea9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupRequest.java @@ -0,0 +1,637 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for GetMirroringEndpointGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetMirroringEndpointGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) + GetMirroringEndpointGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMirroringEndpointGroupRequest"); + } + + // Use GetMirroringEndpointGroupRequest.newBuilder() to construct. + private GetMirroringEndpointGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMirroringEndpointGroupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The name of the endpoint group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The name of the endpoint group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetMirroringEndpointGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest other = + (com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest 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.networksecurity.v1.GetMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest 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.networksecurity.v1.GetMirroringEndpointGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetMirroringEndpointGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for GetMirroringEndpointGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest build() { + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest result = + new com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The name of the endpoint group to retrieve.
                                                                                              +     * Format:
                                                                                              +     * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) + private static final com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMirroringEndpointGroupRequest 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.networksecurity.v1.GetMirroringEndpointGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupRequestOrBuilder.java new file mode 100644 index 000000000000..65fb7c56e31a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetMirroringEndpointGroupRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetMirroringEndpointGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The name of the endpoint group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. The name of the endpoint group to retrieve.
                                                                                              +   * Format:
                                                                                              +   * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileGroupRequest.java new file mode 100644 index 000000000000..31a216a81251 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileGroupRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the GetSecurityProfileGroup method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetSecurityProfileGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) + GetSecurityProfileGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetSecurityProfileGroupRequest"); + } + + // Use GetSecurityProfileGroupRequest.newBuilder() to construct. + private GetSecurityProfileGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSecurityProfileGroupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest.class, + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetSecurityProfileGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest other = + (com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest 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.networksecurity.v1.GetSecurityProfileGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest 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.networksecurity.v1.GetSecurityProfileGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetSecurityProfileGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the GetSecurityProfileGroup method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest.class, + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest build() { + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest result = + new com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) + private static final com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecurityProfileGroupRequest 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.networksecurity.v1.GetSecurityProfileGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileGroupRequestOrBuilder.java new file mode 100644 index 000000000000..f4ad54724190 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileGroupRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetSecurityProfileGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfileGroup to get. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileRequest.java new file mode 100644 index 000000000000..d88a6cf2a72b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileRequest.java @@ -0,0 +1,622 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the GetSecurityProfile method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetSecurityProfileRequest} + */ +@com.google.protobuf.Generated +public final class GetSecurityProfileRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetSecurityProfileRequest) + GetSecurityProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetSecurityProfileRequest"); + } + + // Use GetSecurityProfileRequest.newBuilder() to construct. + private GetSecurityProfileRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSecurityProfileRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest.class, + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetSecurityProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest other = + (com.google.cloud.networksecurity.v1.GetSecurityProfileRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest 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.networksecurity.v1.GetSecurityProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest 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.networksecurity.v1.GetSecurityProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetSecurityProfileRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the GetSecurityProfile method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetSecurityProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetSecurityProfileRequest) + com.google.cloud.networksecurity.v1.GetSecurityProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest.class, + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.GetSecurityProfileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_GetSecurityProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetSecurityProfileRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetSecurityProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetSecurityProfileRequest build() { + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetSecurityProfileRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest result = + new com.google.cloud.networksecurity.v1.GetSecurityProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetSecurityProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetSecurityProfileRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetSecurityProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.GetSecurityProfileRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetSecurityProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetSecurityProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetSecurityProfileRequest) + private static final com.google.cloud.networksecurity.v1.GetSecurityProfileRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetSecurityProfileRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetSecurityProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecurityProfileRequest 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.networksecurity.v1.GetSecurityProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileRequestOrBuilder.java new file mode 100644 index 000000000000..ff820afb65e8 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetSecurityProfileRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetSecurityProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetSecurityProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the SecurityProfile to get. Must be in the format
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetTlsInspectionPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetTlsInspectionPolicyRequest.java new file mode 100644 index 000000000000..daaaed2b8796 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetTlsInspectionPolicyRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the GetTlsInspectionPolicy method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetTlsInspectionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) + GetTlsInspectionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetTlsInspectionPolicyRequest"); + } + + // Use GetTlsInspectionPolicyRequest.newBuilder() to construct. + private GetTlsInspectionPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetTlsInspectionPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest.class, + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +   * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +   * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetTlsInspectionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest other = + (com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest 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.networksecurity.v1.GetTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest 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.networksecurity.v1.GetTlsInspectionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetTlsInspectionPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the GetTlsInspectionPolicy method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest.class, + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest build() { + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest result = + new com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +     * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) + private static final com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTlsInspectionPolicyRequest 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.networksecurity.v1.GetTlsInspectionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetTlsInspectionPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetTlsInspectionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..df0a037713fd --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetTlsInspectionPolicyRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetTlsInspectionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +   * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the TlsInspectionPolicy to get. Must be in the format
                                                                                              +   * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetUrlListRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetUrlListRequest.java new file mode 100644 index 000000000000..613a78dafead --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetUrlListRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the GetUrlList method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetUrlListRequest} + */ +@com.google.protobuf.Generated +public final class GetUrlListRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetUrlListRequest) + GetUrlListRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetUrlListRequest"); + } + + // Use GetUrlListRequest.newBuilder() to construct. + private GetUrlListRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetUrlListRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetUrlListRequest.class, + com.google.cloud.networksecurity.v1.GetUrlListRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A name of the UrlList to get. Must be in the format
                                                                                              +   * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A name of the UrlList to get. Must be in the format
                                                                                              +   * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.GetUrlListRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetUrlListRequest other = + (com.google.cloud.networksecurity.v1.GetUrlListRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest 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.networksecurity.v1.GetUrlListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest 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.networksecurity.v1.GetUrlListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.GetUrlListRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the GetUrlList method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetUrlListRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetUrlListRequest) + com.google.cloud.networksecurity.v1.GetUrlListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetUrlListRequest.class, + com.google.cloud.networksecurity.v1.GetUrlListRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.GetUrlListRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetUrlListRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetUrlListRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetUrlListRequest build() { + com.google.cloud.networksecurity.v1.GetUrlListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetUrlListRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetUrlListRequest result = + new com.google.cloud.networksecurity.v1.GetUrlListRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.GetUrlListRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetUrlListRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetUrlListRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.GetUrlListRequest other) { + if (other == com.google.cloud.networksecurity.v1.GetUrlListRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to get. Must be in the format
                                                                                              +     * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to get. Must be in the format
                                                                                              +     * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to get. Must be in the format
                                                                                              +     * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to get. Must be in the format
                                                                                              +     * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A name of the UrlList to get. Must be in the format
                                                                                              +     * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetUrlListRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetUrlListRequest) + private static final com.google.cloud.networksecurity.v1.GetUrlListRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetUrlListRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetUrlListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUrlListRequest 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.networksecurity.v1.GetUrlListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetUrlListRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetUrlListRequestOrBuilder.java new file mode 100644 index 000000000000..88fbf27e5143 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetUrlListRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface GetUrlListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetUrlListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. A name of the UrlList to get. Must be in the format
                                                                                              +   * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. A name of the UrlList to get. Must be in the format
                                                                                              +   * `projects/*/locations/{location}/urlLists/*`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java index 016d4362d110..f50bf9555a21 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpoint.java @@ -79,8 +79,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                              -   * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -   * should start with "unix:".
                                                                                              +   * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +   * and should start with "unix:".
                                                                                                  * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -104,8 +104,8 @@ public java.lang.String getTargetUri() { * * *
                                                                                              -   * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -   * should start with "unix:".
                                                                                              +   * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +   * and should start with "unix:".
                                                                                                  * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -441,8 +441,8 @@ public Builder mergeFrom( * * *
                                                                                              -     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -     * should start with "unix:".
                                                                                              +     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +     * and should start with "unix:".
                                                                                                    * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -465,8 +465,8 @@ public java.lang.String getTargetUri() { * * *
                                                                                              -     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -     * should start with "unix:".
                                                                                              +     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +     * and should start with "unix:".
                                                                                                    * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -489,8 +489,8 @@ public com.google.protobuf.ByteString getTargetUriBytes() { * * *
                                                                                              -     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -     * should start with "unix:".
                                                                                              +     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +     * and should start with "unix:".
                                                                                                    * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -512,8 +512,8 @@ public Builder setTargetUri(java.lang.String value) { * * *
                                                                                              -     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -     * should start with "unix:".
                                                                                              +     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +     * and should start with "unix:".
                                                                                                    * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -531,8 +531,8 @@ public Builder clearTargetUri() { * * *
                                                                                              -     * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -     * should start with "unix:".
                                                                                              +     * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +     * and should start with "unix:".
                                                                                                    * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java index b4a5a8476b1c..b77d84d4f1c2 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GrpcEndpointOrBuilder.java @@ -30,8 +30,8 @@ public interface GrpcEndpointOrBuilder * * *
                                                                                              -   * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -   * should start with "unix:".
                                                                                              +   * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +   * and should start with "unix:".
                                                                                                  * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -44,8 +44,8 @@ public interface GrpcEndpointOrBuilder * * *
                                                                                              -   * Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
                                                                                              -   * should start with "unix:".
                                                                                              +   * Required. The target URI of the gRPC endpoint. Only UDS path is supported,
                                                                                              +   * and should start with "unix:".
                                                                                                  * 
                                                                                              * * string target_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeployment.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeployment.java new file mode 100644 index 000000000000..a56c04a935b9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeployment.java @@ -0,0 +1,2809 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * A deployment represents a zonal intercept backend ready to accept
                                                                                              + * GENEVE-encapsulated traffic, e.g. a zonal instance group fronted by an
                                                                                              + * internal passthrough load balancer. Deployments are always part of a
                                                                                              + * global deployment group which represents a global intercept service.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptDeployment} + */ +@com.google.protobuf.Generated +public final class InterceptDeployment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptDeployment) + InterceptDeploymentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterceptDeployment"); + } + + // Use InterceptDeployment.newBuilder() to construct. + private InterceptDeployment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InterceptDeployment() { + name_ = ""; + forwardingRule_ = ""; + interceptDeploymentGroup_ = ""; + state_ = 0; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeployment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptDeployment.class, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The current state of the deployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.InterceptDeployment.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The deployment is ready and in sync with the parent group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The deployment is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
                                                                                              +     * The deployment is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
                                                                                              +     * The deployment is out of sync with the parent group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. a delayed data-path config) and the system is expected to recover
                                                                                              +     * automatically. See the parent deployment group's state for more details.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 4; + */ + OUT_OF_SYNC(4), + /** + * + * + *
                                                                                              +     * An attempt to delete the deployment has failed. This is a terminal state
                                                                                              +     * and the deployment is not expected to recover. The only permitted
                                                                                              +     * operation is to retry deleting the deployment.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 5; + */ + DELETE_FAILED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The deployment is ready and in sync with the parent group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The deployment is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + + /** + * + * + *
                                                                                              +     * The deployment is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * The deployment is out of sync with the parent group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. a delayed data-path config) and the system is expected to recover
                                                                                              +     * automatically. See the parent deployment group's state for more details.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 4; + */ + public static final int OUT_OF_SYNC_VALUE = 4; + + /** + * + * + *
                                                                                              +     * An attempt to delete the deployment has failed. This is a terminal state
                                                                                              +     * and the deployment is not expected to recover. The only permitted
                                                                                              +     * operation is to retry deleting the deployment.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 5; + */ + public static final int DELETE_FAILED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return DELETING; + case 4: + return OUT_OF_SYNC; + case 5: + return DELETE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptDeployment.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.InterceptDeployment.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +   * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +   * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeployment_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int FORWARDING_RULE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object forwardingRule_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +   * interceptors, for example:
                                                                                              +   * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + @java.lang.Override + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + 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(); + forwardingRule_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +   * interceptors, for example:
                                                                                              +   * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERCEPT_DEPLOYMENT_GROUP_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object interceptDeploymentGroup_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +   * of, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptDeploymentGroup. + */ + @java.lang.Override + public java.lang.String getInterceptDeploymentGroup() { + java.lang.Object ref = interceptDeploymentGroup_; + 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(); + interceptDeploymentGroup_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +   * of, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptDeploymentGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterceptDeploymentGroupBytes() { + java.lang.Object ref = interceptDeploymentGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptDeploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment.State getState() { + com.google.cloud.networksecurity.v1.InterceptDeployment.State result = + com.google.cloud.networksecurity.v1.InterceptDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 8; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This part of
                                                                                              +   * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +   * See https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment.
                                                                                              +   * Used as additional context for the deployment.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment.
                                                                                              +   * Used as additional context for the deployment.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(forwardingRule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, forwardingRule_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptDeploymentGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, interceptDeploymentGroup_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + if (reconciling_ != false) { + output.writeBool(8, reconciling_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(forwardingRule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, forwardingRule_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptDeploymentGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, interceptDeploymentGroup_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, reconciling_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, description_); + } + 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.networksecurity.v1.InterceptDeployment)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptDeployment other = + (com.google.cloud.networksecurity.v1.InterceptDeployment) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getForwardingRule().equals(other.getForwardingRule())) return false; + if (!getInterceptDeploymentGroup().equals(other.getInterceptDeploymentGroup())) return false; + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getDescription().equals(other.getDescription())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER; + hash = (53 * hash) + getForwardingRule().hashCode(); + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeploymentGroup().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment 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.networksecurity.v1.InterceptDeployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment 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.networksecurity.v1.InterceptDeployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptDeployment 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * A deployment represents a zonal intercept backend ready to accept
                                                                                              +   * GENEVE-encapsulated traffic, e.g. a zonal instance group fronted by an
                                                                                              +   * internal passthrough load balancer. Deployments are always part of a
                                                                                              +   * global deployment group which represents a global intercept service.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptDeployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptDeployment) + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeployment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptDeployment.class, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.InterceptDeployment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + forwardingRule_ = ""; + interceptDeploymentGroup_ = ""; + state_ = 0; + reconciling_ = false; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment build() { + com.google.cloud.networksecurity.v1.InterceptDeployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment buildPartial() { + com.google.cloud.networksecurity.v1.InterceptDeployment result = + new com.google.cloud.networksecurity.v1.InterceptDeployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.InterceptDeployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.forwardingRule_ = forwardingRule_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.interceptDeploymentGroup_ = interceptDeploymentGroup_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.InterceptDeployment) { + return mergeFrom((com.google.cloud.networksecurity.v1.InterceptDeployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.InterceptDeployment other) { + if (other == com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getForwardingRule().isEmpty()) { + forwardingRule_ = other.forwardingRule_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getInterceptDeploymentGroup().isEmpty()) { + interceptDeploymentGroup_ = other.interceptDeploymentGroup_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000100; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + forwardingRule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + interceptDeploymentGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object forwardingRule_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +     * interceptors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forwardingRule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +     * interceptors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +     * interceptors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + forwardingRule_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +     * interceptors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearForwardingRule() { + forwardingRule_ = getDefaultInstance().getForwardingRule(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +     * interceptors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + forwardingRule_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object interceptDeploymentGroup_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptDeploymentGroup. + */ + public java.lang.String getInterceptDeploymentGroup() { + java.lang.Object ref = interceptDeploymentGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interceptDeploymentGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptDeploymentGroup. + */ + public com.google.protobuf.ByteString getInterceptDeploymentGroupBytes() { + java.lang.Object ref = interceptDeploymentGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptDeploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The interceptDeploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setInterceptDeploymentGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interceptDeploymentGroup_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInterceptDeploymentGroup() { + interceptDeploymentGroup_ = getDefaultInstance().getInterceptDeploymentGroup(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for interceptDeploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setInterceptDeploymentGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interceptDeploymentGroup_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment.State getState() { + com.google.cloud.networksecurity.v1.InterceptDeployment.State result = + com.google.cloud.networksecurity.v1.InterceptDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networksecurity.v1.InterceptDeployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +     * See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +     * See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +     * See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000080); + reconciling_ = false; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptDeployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptDeployment) + private static final com.google.cloud.networksecurity.v1.InterceptDeployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.InterceptDeployment(); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterceptDeployment 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.networksecurity.v1.InterceptDeployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroup.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroup.java new file mode 100644 index 000000000000..93358d01fe8a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroup.java @@ -0,0 +1,5927 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * A deployment group aggregates many zonal intercept backends (deployments)
                                                                                              + * into a single global intercept service. Consumers can connect this service
                                                                                              + * using an endpoint group.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptDeploymentGroup} + */ +@com.google.protobuf.Generated +public final class InterceptDeploymentGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptDeploymentGroup) + InterceptDeploymentGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterceptDeploymentGroup"); + } + + // Use InterceptDeploymentGroup.newBuilder() to construct. + private InterceptDeploymentGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InterceptDeploymentGroup() { + name_ = ""; + network_ = ""; + connectedEndpointGroups_ = java.util.Collections.emptyList(); + nestedDeployments_ = java.util.Collections.emptyList(); + state_ = 0; + description_ = ""; + locations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.class, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The current state of the deployment group.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.InterceptDeploymentGroup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The deployment group is ready.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The deployment group is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
                                                                                              +     * The deployment group is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The deployment group is ready.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The deployment group is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + + /** + * + * + *
                                                                                              +     * The deployment group is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.InterceptDeploymentGroup.State) + } + + public interface ConnectedEndpointGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The connected endpoint group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The connected endpoint group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * + * + *
                                                                                              +   * An endpoint group connected to this deployment group.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup} + */ + public static final class ConnectedEndpointGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup) + ConnectedEndpointGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectedEndpointGroup"); + } + + // Use ConnectedEndpointGroup.newBuilder() to construct. + private ConnectedEndpointGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectedEndpointGroup() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .class, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The connected endpoint group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The connected endpoint group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup other = + (com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + 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.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + 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.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * An endpoint group connected to this deployment group.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup) + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .class, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + build() { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + buildPartial() { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup result = + new com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + other) { + if (other + == com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup) + private static final com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup(); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedEndpointGroup 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.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +     * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +     * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the deployment.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the deployment.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.InterceptDeployment.State getState(); + } + + /** + * + * + *
                                                                                              +   * A deployment belonging to this deployment group.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment} + */ + public static final class Deployment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment) + DeploymentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Deployment"); + } + + // Use Deployment.newBuilder() to construct. + private Deployment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Deployment() { + name_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.class, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +     * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +     * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the deployment.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the deployment.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment.State getState() { + com.google.cloud.networksecurity.v1.InterceptDeployment.State result = + com.google.cloud.networksecurity.v1.InterceptDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.State.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.networksecurity.v1.InterceptDeploymentGroup.Deployment)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment other = + (com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment 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.networksecurity.v1.InterceptDeploymentGroup.Deployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment 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.networksecurity.v1.InterceptDeploymentGroup.Deployment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptDeploymentGroup.Deployment 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * A deployment belonging to this deployment group.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment) + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.class, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment build() { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + buildPartial() { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment result = + new com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment other) { + if (other + == com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The name of the Intercept Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment.State getState() { + com.google.cloud.networksecurity.v1.InterceptDeployment.State result = + com.google.cloud.networksecurity.v1.InterceptDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networksecurity.v1.InterceptDeployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment) + private static final com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment(); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Deployment 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.networksecurity.v1.InterceptDeploymentGroup.Deployment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NETWORK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The network that will be used for all child
                                                                                              +   * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The network that will be used for all child
                                                                                              +   * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTED_ENDPOINT_GROUPS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup> + connectedEndpointGroups_; + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup> + getConnectedEndpointGroupsList() { + return connectedEndpointGroups_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + getConnectedEndpointGroupsOrBuilderList() { + return connectedEndpointGroups_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConnectedEndpointGroupsCount() { + return connectedEndpointGroups_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + getConnectedEndpointGroups(int index) { + return connectedEndpointGroups_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder + getConnectedEndpointGroupsOrBuilder(int index) { + return connectedEndpointGroups_.get(index); + } + + public static final int NESTED_DEPLOYMENTS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + nestedDeployments_; + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getNestedDeploymentsList() { + return nestedDeployments_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder> + getNestedDeploymentsOrBuilderList() { + return nestedDeployments_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getNestedDeploymentsCount() { + return nestedDeployments_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + getNestedDeployments(int index) { + return nestedDeployments_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder + getNestedDeploymentsOrBuilder(int index) { + return nestedDeployments_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State getState() { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State result = + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 8; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This is part
                                                                                              +   * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment group.
                                                                                              +   * Used as additional context for the deployment group.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment group.
                                                                                              +   * Used as additional context for the deployment group.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List locations_; + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getLocationsList() { + return locations_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder( + int index) { + return locations_.get(index); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, network_); + } + for (int i = 0; i < connectedEndpointGroups_.size(); i++) { + output.writeMessage(6, connectedEndpointGroups_.get(i)); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + if (reconciling_ != false) { + output.writeBool(8, reconciling_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, description_); + } + for (int i = 0; i < nestedDeployments_.size(); i++) { + output.writeMessage(10, nestedDeployments_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(11, locations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, network_); + } + for (int i = 0; i < connectedEndpointGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, connectedEndpointGroups_.get(i)); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, reconciling_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, description_); + } + for (int i = 0; i < nestedDeployments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, nestedDeployments_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, locations_.get(i)); + } + 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.networksecurity.v1.InterceptDeploymentGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup other = + (com.google.cloud.networksecurity.v1.InterceptDeploymentGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getConnectedEndpointGroupsList().equals(other.getConnectedEndpointGroupsList())) + return false; + if (!getNestedDeploymentsList().equals(other.getNestedDeploymentsList())) return false; + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getLocationsList().equals(other.getLocationsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + if (getConnectedEndpointGroupsCount() > 0) { + hash = (37 * hash) + CONNECTED_ENDPOINT_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getConnectedEndpointGroupsList().hashCode(); + } + if (getNestedDeploymentsCount() > 0) { + hash = (37 * hash) + NESTED_DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getNestedDeploymentsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup 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.networksecurity.v1.InterceptDeploymentGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup 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.networksecurity.v1.InterceptDeploymentGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptDeploymentGroup 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * A deployment group aggregates many zonal intercept backends (deployments)
                                                                                              +   * into a single global intercept service. Consumers can connect this service
                                                                                              +   * using an endpoint group.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptDeploymentGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptDeploymentGroup) + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.class, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetConnectedEndpointGroupsFieldBuilder(); + internalGetNestedDeploymentsFieldBuilder(); + internalGetLocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + network_ = ""; + if (connectedEndpointGroupsBuilder_ == null) { + connectedEndpointGroups_ = java.util.Collections.emptyList(); + } else { + connectedEndpointGroups_ = null; + connectedEndpointGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (nestedDeploymentsBuilder_ == null) { + nestedDeployments_ = java.util.Collections.emptyList(); + } else { + nestedDeployments_ = null; + nestedDeploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + reconciling_ = false; + description_ = ""; + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + } else { + locations_ = null; + locationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup build() { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup buildPartial() { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup result = + new com.google.cloud.networksecurity.v1.InterceptDeploymentGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup result) { + if (connectedEndpointGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + connectedEndpointGroups_ = + java.util.Collections.unmodifiableList(connectedEndpointGroups_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.connectedEndpointGroups_ = connectedEndpointGroups_; + } else { + result.connectedEndpointGroups_ = connectedEndpointGroupsBuilder_.build(); + } + if (nestedDeploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + nestedDeployments_ = java.util.Collections.unmodifiableList(nestedDeployments_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.nestedDeployments_ = nestedDeployments_; + } else { + result.nestedDeployments_ = nestedDeploymentsBuilder_.build(); + } + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.InterceptDeploymentGroup) { + return mergeFrom((com.google.cloud.networksecurity.v1.InterceptDeploymentGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.InterceptDeploymentGroup other) { + if (other + == com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (connectedEndpointGroupsBuilder_ == null) { + if (!other.connectedEndpointGroups_.isEmpty()) { + if (connectedEndpointGroups_.isEmpty()) { + connectedEndpointGroups_ = other.connectedEndpointGroups_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.addAll(other.connectedEndpointGroups_); + } + onChanged(); + } + } else { + if (!other.connectedEndpointGroups_.isEmpty()) { + if (connectedEndpointGroupsBuilder_.isEmpty()) { + connectedEndpointGroupsBuilder_.dispose(); + connectedEndpointGroupsBuilder_ = null; + connectedEndpointGroups_ = other.connectedEndpointGroups_; + bitField0_ = (bitField0_ & ~0x00000020); + connectedEndpointGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectedEndpointGroupsFieldBuilder() + : null; + } else { + connectedEndpointGroupsBuilder_.addAllMessages(other.connectedEndpointGroups_); + } + } + } + if (nestedDeploymentsBuilder_ == null) { + if (!other.nestedDeployments_.isEmpty()) { + if (nestedDeployments_.isEmpty()) { + nestedDeployments_ = other.nestedDeployments_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.addAll(other.nestedDeployments_); + } + onChanged(); + } + } else { + if (!other.nestedDeployments_.isEmpty()) { + if (nestedDeploymentsBuilder_.isEmpty()) { + nestedDeploymentsBuilder_.dispose(); + nestedDeploymentsBuilder_ = null; + nestedDeployments_ = other.nestedDeployments_; + bitField0_ = (bitField0_ & ~0x00000040); + nestedDeploymentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetNestedDeploymentsFieldBuilder() + : null; + } else { + nestedDeploymentsBuilder_.addAllMessages(other.nestedDeployments_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000400); + locationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup.parser(), + extensionRegistry); + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(m); + } else { + connectedEndpointGroupsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 64: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 64 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + .parser(), + extensionRegistry); + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(m); + } else { + nestedDeploymentsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.networksecurity.v1.InterceptLocation m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptLocation.parser(), + extensionRegistry); + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(m); + } else { + locationsBuilder_.addMessage(m); + } + break; + } // case 90 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup> + connectedEndpointGroups_ = java.util.Collections.emptyList(); + + private void ensureConnectedEndpointGroupsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + connectedEndpointGroups_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup>(connectedEndpointGroups_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + connectedEndpointGroupsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup> + getConnectedEndpointGroupsList() { + if (connectedEndpointGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectedEndpointGroups_); + } else { + return connectedEndpointGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConnectedEndpointGroupsCount() { + if (connectedEndpointGroupsBuilder_ == null) { + return connectedEndpointGroups_.size(); + } else { + return connectedEndpointGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + getConnectedEndpointGroups(int index) { + if (connectedEndpointGroupsBuilder_ == null) { + return connectedEndpointGroups_.get(index); + } else { + return connectedEndpointGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectedEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup value) { + if (connectedEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.set(index, value); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectedEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup.Builder + builderForValue) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedEndpointGroups( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup value) { + if (connectedEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(value); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup value) { + if (connectedEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(index, value); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedEndpointGroups( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup.Builder + builderForValue) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(builderForValue.build()); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup.Builder + builderForValue) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConnectedEndpointGroups( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroup> + values) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectedEndpointGroups_); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectedEndpointGroups() { + if (connectedEndpointGroupsBuilder_ == null) { + connectedEndpointGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnectedEndpointGroups(int index) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.remove(index); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder + getConnectedEndpointGroupsBuilder(int index) { + return internalGetConnectedEndpointGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder + getConnectedEndpointGroupsOrBuilder(int index) { + if (connectedEndpointGroupsBuilder_ == null) { + return connectedEndpointGroups_.get(index); + } else { + return connectedEndpointGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + getConnectedEndpointGroupsOrBuilderList() { + if (connectedEndpointGroupsBuilder_ != null) { + return connectedEndpointGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectedEndpointGroups_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder + addConnectedEndpointGroupsBuilder() { + return internalGetConnectedEndpointGroupsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder + addConnectedEndpointGroupsBuilder(int index) { + return internalGetConnectedEndpointGroupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder> + getConnectedEndpointGroupsBuilderList() { + return internalGetConnectedEndpointGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + internalGetConnectedEndpointGroupsFieldBuilder() { + if (connectedEndpointGroupsBuilder_ == null) { + connectedEndpointGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + .Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder>( + connectedEndpointGroups_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + connectedEndpointGroups_ = null; + } + return connectedEndpointGroupsBuilder_; + } + + private java.util.List + nestedDeployments_ = java.util.Collections.emptyList(); + + private void ensureNestedDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + nestedDeployments_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment>( + nestedDeployments_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder> + nestedDeploymentsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List + getNestedDeploymentsList() { + if (nestedDeploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nestedDeployments_); + } else { + return nestedDeploymentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public int getNestedDeploymentsCount() { + if (nestedDeploymentsBuilder_ == null) { + return nestedDeployments_.size(); + } else { + return nestedDeploymentsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + getNestedDeployments(int index) { + if (nestedDeploymentsBuilder_ == null) { + return nestedDeployments_.get(index); + } else { + return nestedDeploymentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setNestedDeployments( + int index, com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment value) { + if (nestedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.set(index, value); + onChanged(); + } else { + nestedDeploymentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setNestedDeployments( + int index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder + builderForValue) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.set(index, builderForValue.build()); + onChanged(); + } else { + nestedDeploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addNestedDeployments( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment value) { + if (nestedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(value); + onChanged(); + } else { + nestedDeploymentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addNestedDeployments( + int index, com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment value) { + if (nestedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(index, value); + onChanged(); + } else { + nestedDeploymentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addNestedDeployments( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder + builderForValue) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(builderForValue.build()); + onChanged(); + } else { + nestedDeploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addNestedDeployments( + int index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder + builderForValue) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(index, builderForValue.build()); + onChanged(); + } else { + nestedDeploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addAllNestedDeployments( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment> + values) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nestedDeployments_); + onChanged(); + } else { + nestedDeploymentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder clearNestedDeployments() { + if (nestedDeploymentsBuilder_ == null) { + nestedDeployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + nestedDeploymentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder removeNestedDeployments(int index) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.remove(index); + onChanged(); + } else { + nestedDeploymentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder + getNestedDeploymentsBuilder(int index) { + return internalGetNestedDeploymentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder + getNestedDeploymentsOrBuilder(int index) { + if (nestedDeploymentsBuilder_ == null) { + return nestedDeployments_.get(index); + } else { + return nestedDeploymentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder> + getNestedDeploymentsOrBuilderList() { + if (nestedDeploymentsBuilder_ != null) { + return nestedDeploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nestedDeployments_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder + addNestedDeploymentsBuilder() { + return internalGetNestedDeploymentsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder + addNestedDeploymentsBuilder(int index) { + return internalGetNestedDeploymentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder> + getNestedDeploymentsBuilderList() { + return internalGetNestedDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder> + internalGetNestedDeploymentsFieldBuilder() { + if (nestedDeploymentsBuilder_ == null) { + nestedDeploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder>( + nestedDeployments_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + nestedDeployments_ = null; + } + return nestedDeploymentsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State getState() { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State result = + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000100); + reconciling_ = false; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + locations_ = + new java.util.ArrayList( + locations_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations(com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLocations( + java.lang.Iterable + values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder getLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder( + int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder addLocationsBuilder() { + return internalGetLocationsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.InterceptLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder addLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.InterceptLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsBuilderList() { + return internalGetLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder> + internalGetLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder>( + locations_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptDeploymentGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptDeploymentGroup) + private static final com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.InterceptDeploymentGroup(); + } + + public static com.google.cloud.networksecurity.v1.InterceptDeploymentGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterceptDeploymentGroup 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.networksecurity.v1.InterceptDeploymentGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupName.java new file mode 100644 index 000000000000..540ee612d69d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class InterceptDeploymentGroupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INTERCEPT_DEPLOYMENT_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String interceptDeploymentGroup; + + @Deprecated + protected InterceptDeploymentGroupName() { + project = null; + location = null; + interceptDeploymentGroup = null; + } + + private InterceptDeploymentGroupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + interceptDeploymentGroup = Preconditions.checkNotNull(builder.getInterceptDeploymentGroup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInterceptDeploymentGroup() { + return interceptDeploymentGroup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static InterceptDeploymentGroupName of( + String project, String location, String interceptDeploymentGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInterceptDeploymentGroup(interceptDeploymentGroup) + .build(); + } + + public static String format(String project, String location, String interceptDeploymentGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInterceptDeploymentGroup(interceptDeploymentGroup) + .build() + .toString(); + } + + public static InterceptDeploymentGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INTERCEPT_DEPLOYMENT_GROUP.validatedMatch( + formattedString, + "InterceptDeploymentGroupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("intercept_deployment_group")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (InterceptDeploymentGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INTERCEPT_DEPLOYMENT_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (interceptDeploymentGroup != null) { + fieldMapBuilder.put("intercept_deployment_group", interceptDeploymentGroup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INTERCEPT_DEPLOYMENT_GROUP.instantiate( + "project", + project, + "location", + location, + "intercept_deployment_group", + interceptDeploymentGroup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + InterceptDeploymentGroupName that = ((InterceptDeploymentGroupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.interceptDeploymentGroup, that.interceptDeploymentGroup); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(interceptDeploymentGroup); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}. + */ + public static class Builder { + private String project; + private String location; + private String interceptDeploymentGroup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInterceptDeploymentGroup() { + return interceptDeploymentGroup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInterceptDeploymentGroup(String interceptDeploymentGroup) { + this.interceptDeploymentGroup = interceptDeploymentGroup; + return this; + } + + private Builder(InterceptDeploymentGroupName interceptDeploymentGroupName) { + this.project = interceptDeploymentGroupName.project; + this.location = interceptDeploymentGroupName.location; + this.interceptDeploymentGroup = interceptDeploymentGroupName.interceptDeploymentGroup; + } + + public InterceptDeploymentGroupName build() { + return new InterceptDeploymentGroupName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupOrBuilder.java new file mode 100644 index 000000000000..769e5af4bab1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupOrBuilder.java @@ -0,0 +1,548 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface InterceptDeploymentGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptDeploymentGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The network that will be used for all child
                                                                                              +   * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The network that will be used for all child
                                                                                              +   * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup> + getConnectedEndpointGroupsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup + getConnectedEndpointGroups(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectedEndpointGroupsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + getConnectedEndpointGroupsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.ConnectedEndpointGroupOrBuilder + getConnectedEndpointGroupsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List + getNestedDeploymentsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment getNestedDeployments( + int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + int getNestedDeploymentsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder> + getNestedDeploymentsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of Intercept Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.DeploymentOrBuilder + getNestedDeploymentsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This is part
                                                                                              +   * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment group.
                                                                                              +   * Used as additional context for the deployment group.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment group.
                                                                                              +   * Used as additional context for the deployment group.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getLocationsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLocationsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLocationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder(int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentName.java new file mode 100644 index 000000000000..c8796a4a3045 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class InterceptDeploymentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INTERCEPT_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String interceptDeployment; + + @Deprecated + protected InterceptDeploymentName() { + project = null; + location = null; + interceptDeployment = null; + } + + private InterceptDeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + interceptDeployment = Preconditions.checkNotNull(builder.getInterceptDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInterceptDeployment() { + return interceptDeployment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static InterceptDeploymentName of( + String project, String location, String interceptDeployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInterceptDeployment(interceptDeployment) + .build(); + } + + public static String format(String project, String location, String interceptDeployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInterceptDeployment(interceptDeployment) + .build() + .toString(); + } + + public static InterceptDeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INTERCEPT_DEPLOYMENT.validatedMatch( + formattedString, "InterceptDeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("intercept_deployment")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (InterceptDeploymentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INTERCEPT_DEPLOYMENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (interceptDeployment != null) { + fieldMapBuilder.put("intercept_deployment", interceptDeployment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INTERCEPT_DEPLOYMENT.instantiate( + "project", project, "location", location, "intercept_deployment", interceptDeployment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + InterceptDeploymentName that = ((InterceptDeploymentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.interceptDeployment, that.interceptDeployment); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(interceptDeployment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}. + */ + public static class Builder { + private String project; + private String location; + private String interceptDeployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInterceptDeployment() { + return interceptDeployment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInterceptDeployment(String interceptDeployment) { + this.interceptDeployment = interceptDeployment; + return this; + } + + private Builder(InterceptDeploymentName interceptDeploymentName) { + this.project = interceptDeploymentName.project; + this.location = interceptDeploymentName.location; + this.interceptDeployment = interceptDeploymentName.interceptDeployment; + } + + public InterceptDeploymentName build() { + return new InterceptDeploymentName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentOrBuilder.java new file mode 100644 index 000000000000..44e435e49017 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentOrBuilder.java @@ -0,0 +1,364 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface InterceptDeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptDeployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +   * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +   * `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +   * interceptors, for example:
                                                                                              +   * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + java.lang.String getForwardingRule(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The regional forwarding rule that fronts the
                                                                                              +   * interceptors, for example:
                                                                                              +   * `projects/123456789/regions/us-central1/forwardingRules/my-rule`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + com.google.protobuf.ByteString getForwardingRuleBytes(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +   * of, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptDeploymentGroup. + */ + java.lang.String getInterceptDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +   * of, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptDeploymentGroup. + */ + com.google.protobuf.ByteString getInterceptDeploymentGroupBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.InterceptDeployment.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This part of
                                                                                              +   * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +   * See https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment.
                                                                                              +   * Used as additional context for the deployment.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment.
                                                                                              +   * Used as additional context for the deployment.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroup.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroup.java new file mode 100644 index 000000000000..68ccbe1e913c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroup.java @@ -0,0 +1,6058 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * An endpoint group is a consumer frontend for a deployment group (backend).
                                                                                              + * In order to configure intercept for a network, consumers must create:
                                                                                              + * - An association between their network and the endpoint group.
                                                                                              + * - A security profile that points to the endpoint group.
                                                                                              + * - A firewall rule that references the security profile (group).
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptEndpointGroup} + */ +@com.google.protobuf.Generated +public final class InterceptEndpointGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptEndpointGroup) + InterceptEndpointGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterceptEndpointGroup"); + } + + // Use InterceptEndpointGroup.newBuilder() to construct. + private InterceptEndpointGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InterceptEndpointGroup() { + name_ = ""; + interceptDeploymentGroup_ = ""; + state_ = 0; + associations_ = java.util.Collections.emptyList(); + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder.class); + } + + /** + * + * + *
                                                                                              +   * Endpoint group state.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.InterceptEndpointGroup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The endpoint group is ready and in sync with the target deployment group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The deployment group backing this endpoint group has been force-deleted.
                                                                                              +     * This endpoint group cannot be used and interception is effectively
                                                                                              +     * disabled.
                                                                                              +     * 
                                                                                              + * + * CLOSED = 2; + */ + CLOSED(2), + /** + * + * + *
                                                                                              +     * The endpoint group is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 3; + */ + CREATING(3), + /** + * + * + *
                                                                                              +     * The endpoint group is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
                                                                                              +     * The endpoint group is out of sync with the backing deployment group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically. See the associations field for details per network and
                                                                                              +     * location.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 5; + */ + OUT_OF_SYNC(5), + /** + * + * + *
                                                                                              +     * An attempt to delete the endpoint group has failed. This is a terminal
                                                                                              +     * state and the endpoint group is not expected to recover.
                                                                                              +     * The only permitted operation is to retry deleting the endpoint group.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 6; + */ + DELETE_FAILED(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The endpoint group is ready and in sync with the target deployment group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The deployment group backing this endpoint group has been force-deleted.
                                                                                              +     * This endpoint group cannot be used and interception is effectively
                                                                                              +     * disabled.
                                                                                              +     * 
                                                                                              + * + * CLOSED = 2; + */ + public static final int CLOSED_VALUE = 2; + + /** + * + * + *
                                                                                              +     * The endpoint group is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 3; + */ + public static final int CREATING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * The endpoint group is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + /** + * + * + *
                                                                                              +     * The endpoint group is out of sync with the backing deployment group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically. See the associations field for details per network and
                                                                                              +     * location.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 5; + */ + public static final int OUT_OF_SYNC_VALUE = 5; + + /** + * + * + *
                                                                                              +     * An attempt to delete the endpoint group has failed. This is a terminal
                                                                                              +     * state and the endpoint group is not expected to recover.
                                                                                              +     * The only permitted operation is to retry deleting the endpoint group.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 6; + */ + public static final int DELETE_FAILED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CLOSED; + case 3: + return CREATING; + case 4: + return DELETING; + case 5: + return OUT_OF_SYNC; + case 6: + return DELETE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.InterceptEndpointGroup.State) + } + + public interface ConnectedDeploymentGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The connected deployment group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The connected deployment group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getLocationsList(); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLocationsCount(); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLocationsOrBuilderList(); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder(int index); + } + + /** + * + * + *
                                                                                              +   * The endpoint group's view of a connected deployment group.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup} + */ + public static final class ConnectedDeploymentGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup) + ConnectedDeploymentGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectedDeploymentGroup"); + } + + // Use ConnectedDeploymentGroup.newBuilder() to construct. + private ConnectedDeploymentGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectedDeploymentGroup() { + name_ = ""; + locations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The connected deployment group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The connected deployment group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List locations_; + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLocationsList() { + return locations_; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder( + int index) { + return locations_.get(index); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(2, locations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, locations_.get(i)); + } + 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.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup other = + (com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (!getLocationsList().equals(other.getLocationsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + 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.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + 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.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * The endpoint group's view of a connected deployment group.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup) + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + } else { + locations_ = null; + locationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + build() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + buildPartial() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup result = + new com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + result) { + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + other) { + if (other + == com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + locationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.networksecurity.v1.InterceptLocation m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptLocation.parser(), + extensionRegistry); + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(m); + } else { + locationsBuilder_.addMessage(m); + } + 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + locations_ = + new java.util.ArrayList( + locations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations(com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLocations( + java.lang.Iterable + values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder getLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder( + int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder> + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder addLocationsBuilder() { + return internalGetLocationsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.InterceptLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder addLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.InterceptLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsBuilderList() { + return internalGetLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder> + internalGetLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder>( + locations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup) + private static final com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup(); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedDeploymentGroup 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.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AssociationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The connected association's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The connected association's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +     * Output only. The associated network, for example:
                                                                                              +     * projects/123456789/global/networks/my-network.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                                                                              +     * Output only. The associated network, for example:
                                                                                              +     * projects/123456789/global/networks/my-network.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State getState(); + } + + /** + * + * + *
                                                                                              +   * The endpoint group's view of a connected association.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails} + */ + public static final class AssociationDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails) + AssociationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssociationDetails"); + } + + // Use AssociationDetails.newBuilder() to construct. + private AssociationDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssociationDetails() { + name_ = ""; + network_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The connected association's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The connected association's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The associated network, for example:
                                                                                              +     * projects/123456789/global/networks/my-network.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The associated network, for example:
                                                                                              +     * projects/123456789/global/networks/my-network.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State getState() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State result = + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State.forNumber( + state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, network_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, network_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + 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.networksecurity.v1.InterceptEndpointGroup.AssociationDetails)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails other = + (com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (state_ != other.state_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + 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.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + 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.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptEndpointGroup.AssociationDetails 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * The endpoint group's view of a connected association.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails) + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + network_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails build() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + buildPartial() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails result = + new com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails other) { + if (other + == com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + 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 name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State + getState() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State result = + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State.forNumber( + state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails) + private static final com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .AssociationDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails(); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssociationDetails 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.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INTERCEPT_DEPLOYMENT_GROUP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object interceptDeploymentGroup_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +   * connected to, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptDeploymentGroup. + */ + @java.lang.Override + public java.lang.String getInterceptDeploymentGroup() { + java.lang.Object ref = interceptDeploymentGroup_; + 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(); + interceptDeploymentGroup_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +   * connected to, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptDeploymentGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterceptDeploymentGroupBytes() { + java.lang.Object ref = interceptDeploymentGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptDeploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTED_DEPLOYMENT_GROUP_FIELD_NUMBER = 11; + private com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + connectedDeploymentGroup_; + + /** + * + * + *
                                                                                              +   * Output only. Details about the connected deployment group to this endpoint
                                                                                              +   * group.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectedDeploymentGroup field is set. + */ + @java.lang.Override + public boolean hasConnectedDeploymentGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Details about the connected deployment group to this endpoint
                                                                                              +   * group.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectedDeploymentGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + getConnectedDeploymentGroup() { + return connectedDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance() + : connectedDeploymentGroup_; + } + + /** + * + * + *
                                                                                              +   * Output only. Details about the connected deployment group to this endpoint
                                                                                              +   * group.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroupOrBuilder + getConnectedDeploymentGroupOrBuilder() { + return connectedDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance() + : connectedDeploymentGroup_; + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the endpoint group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. The current state of the endpoint group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State getState() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State result = + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 8; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This is part
                                                                                              +   * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int ASSOCIATIONS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails> + associations_; + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails> + getAssociationsList() { + return associations_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .AssociationDetailsOrBuilder> + getAssociationsOrBuilderList() { + return associations_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAssociationsCount() { + return associations_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + getAssociations(int index) { + return associations_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetailsOrBuilder + getAssociationsOrBuilder(int index) { + return associations_.get(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the endpoint group.
                                                                                              +   * Used as additional context for the endpoint group.
                                                                                              +   * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the endpoint group.
                                                                                              +   * Used as additional context for the endpoint group.
                                                                                              +   * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptDeploymentGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, interceptDeploymentGroup_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + if (reconciling_ != false) { + output.writeBool(8, reconciling_); + } + for (int i = 0; i < associations_.size(); i++) { + output.writeMessage(9, associations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, description_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getConnectedDeploymentGroup()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptDeploymentGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, interceptDeploymentGroup_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, reconciling_); + } + for (int i = 0; i < associations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, associations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, description_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getConnectedDeploymentGroup()); + } + 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.networksecurity.v1.InterceptEndpointGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptEndpointGroup other = + (com.google.cloud.networksecurity.v1.InterceptEndpointGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getInterceptDeploymentGroup().equals(other.getInterceptDeploymentGroup())) return false; + if (hasConnectedDeploymentGroup() != other.hasConnectedDeploymentGroup()) return false; + if (hasConnectedDeploymentGroup()) { + if (!getConnectedDeploymentGroup().equals(other.getConnectedDeploymentGroup())) return false; + } + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getAssociationsList().equals(other.getAssociationsList())) return false; + if (!getDescription().equals(other.getDescription())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeploymentGroup().hashCode(); + if (hasConnectedDeploymentGroup()) { + hash = (37 * hash) + CONNECTED_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getConnectedDeploymentGroup().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + if (getAssociationsCount() > 0) { + hash = (37 * hash) + ASSOCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAssociationsList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup 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.networksecurity.v1.InterceptEndpointGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup 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.networksecurity.v1.InterceptEndpointGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptEndpointGroup 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * An endpoint group is a consumer frontend for a deployment group (backend).
                                                                                              +   * In order to configure intercept for a network, consumers must create:
                                                                                              +   * - An association between their network and the endpoint group.
                                                                                              +   * - A security profile that points to the endpoint group.
                                                                                              +   * - A firewall rule that references the security profile (group).
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptEndpointGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptEndpointGroup) + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.InterceptEndpointGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetConnectedDeploymentGroupFieldBuilder(); + internalGetAssociationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + interceptDeploymentGroup_ = ""; + connectedDeploymentGroup_ = null; + if (connectedDeploymentGroupBuilder_ != null) { + connectedDeploymentGroupBuilder_.dispose(); + connectedDeploymentGroupBuilder_ = null; + } + state_ = 0; + reconciling_ = false; + if (associationsBuilder_ == null) { + associations_ = java.util.Collections.emptyList(); + } else { + associations_ = null; + associationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup build() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup buildPartial() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup result = + new com.google.cloud.networksecurity.v1.InterceptEndpointGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup result) { + if (associationsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + associations_ = java.util.Collections.unmodifiableList(associations_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.associations_ = associations_; + } else { + result.associations_ = associationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.InterceptEndpointGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.interceptDeploymentGroup_ = interceptDeploymentGroup_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.connectedDeploymentGroup_ = + connectedDeploymentGroupBuilder_ == null + ? connectedDeploymentGroup_ + : connectedDeploymentGroupBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.InterceptEndpointGroup) { + return mergeFrom((com.google.cloud.networksecurity.v1.InterceptEndpointGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.InterceptEndpointGroup other) { + if (other == com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getInterceptDeploymentGroup().isEmpty()) { + interceptDeploymentGroup_ = other.interceptDeploymentGroup_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasConnectedDeploymentGroup()) { + mergeConnectedDeploymentGroup(other.getConnectedDeploymentGroup()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (associationsBuilder_ == null) { + if (!other.associations_.isEmpty()) { + if (associations_.isEmpty()) { + associations_ = other.associations_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureAssociationsIsMutable(); + associations_.addAll(other.associations_); + } + onChanged(); + } + } else { + if (!other.associations_.isEmpty()) { + if (associationsBuilder_.isEmpty()) { + associationsBuilder_.dispose(); + associationsBuilder_ = null; + associations_ = other.associations_; + bitField0_ = (bitField0_ & ~0x00000100); + associationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssociationsFieldBuilder() + : null; + } else { + associationsBuilder_.addAllMessages(other.associations_); + } + } + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000200; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + interceptDeploymentGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .AssociationDetails.parser(), + extensionRegistry); + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(m); + } else { + associationsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetConnectedDeploymentGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 90 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object interceptDeploymentGroup_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptDeploymentGroup. + */ + public java.lang.String getInterceptDeploymentGroup() { + java.lang.Object ref = interceptDeploymentGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interceptDeploymentGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptDeploymentGroup. + */ + public com.google.protobuf.ByteString getInterceptDeploymentGroupBytes() { + java.lang.Object ref = interceptDeploymentGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptDeploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The interceptDeploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setInterceptDeploymentGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interceptDeploymentGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInterceptDeploymentGroup() { + interceptDeploymentGroup_ = getDefaultInstance().getInterceptDeploymentGroup(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for interceptDeploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setInterceptDeploymentGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interceptDeploymentGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + connectedDeploymentGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroupOrBuilder> + connectedDeploymentGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectedDeploymentGroup field is set. + */ + public boolean hasConnectedDeploymentGroup() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectedDeploymentGroup. + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + getConnectedDeploymentGroup() { + if (connectedDeploymentGroupBuilder_ == null) { + return connectedDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance() + : connectedDeploymentGroup_; + } else { + return connectedDeploymentGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectedDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup value) { + if (connectedDeploymentGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectedDeploymentGroup_ = value; + } else { + connectedDeploymentGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectedDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup.Builder + builderForValue) { + if (connectedDeploymentGroupBuilder_ == null) { + connectedDeploymentGroup_ = builderForValue.build(); + } else { + connectedDeploymentGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeConnectedDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup value) { + if (connectedDeploymentGroupBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && connectedDeploymentGroup_ != null + && connectedDeploymentGroup_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroup.getDefaultInstance()) { + getConnectedDeploymentGroupBuilder().mergeFrom(value); + } else { + connectedDeploymentGroup_ = value; + } + } else { + connectedDeploymentGroupBuilder_.mergeFrom(value); + } + if (connectedDeploymentGroup_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectedDeploymentGroup() { + bitField0_ = (bitField0_ & ~0x00000020); + connectedDeploymentGroup_ = null; + if (connectedDeploymentGroupBuilder_ != null) { + connectedDeploymentGroupBuilder_.dispose(); + connectedDeploymentGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .Builder + getConnectedDeploymentGroupBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetConnectedDeploymentGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroupOrBuilder + getConnectedDeploymentGroupOrBuilder() { + if (connectedDeploymentGroupBuilder_ != null) { + return connectedDeploymentGroupBuilder_.getMessageOrBuilder(); + } else { + return connectedDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance() + : connectedDeploymentGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Details about the connected deployment group to this endpoint
                                                                                              +     * group.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroupOrBuilder> + internalGetConnectedDeploymentGroupFieldBuilder() { + if (connectedDeploymentGroupBuilder_ == null) { + connectedDeploymentGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + .Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .ConnectedDeploymentGroupOrBuilder>( + getConnectedDeploymentGroup(), getParentForChildren(), isClean()); + connectedDeploymentGroup_ = null; + } + return connectedDeploymentGroupBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State getState() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State result = + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000080); + reconciling_ = false; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails> + associations_ = java.util.Collections.emptyList(); + + private void ensureAssociationsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + associations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails>( + associations_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetailsOrBuilder> + associationsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails> + getAssociationsList() { + if (associationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(associations_); + } else { + return associationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAssociationsCount() { + if (associationsBuilder_ == null) { + return associations_.size(); + } else { + return associationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + getAssociations(int index) { + if (associationsBuilder_ == null) { + return associations_.get(index); + } else { + return associationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssociations( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.set(index, value); + onChanged(); + } else { + associationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssociations( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.set(index, builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.add(value); + onChanged(); + } else { + associationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.add(index, value); + onChanged(); + } else { + associationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(index, builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAssociations( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails> + values) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, associations_); + onChanged(); + } else { + associationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAssociations() { + if (associationsBuilder_ == null) { + associations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + associationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAssociations(int index) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.remove(index); + onChanged(); + } else { + associationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder + getAssociationsBuilder(int index) { + return internalGetAssociationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetailsOrBuilder + getAssociationsOrBuilder(int index) { + if (associationsBuilder_ == null) { + return associations_.get(index); + } else { + return associationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .AssociationDetailsOrBuilder> + getAssociationsOrBuilderList() { + if (associationsBuilder_ != null) { + return associationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(associations_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder + addAssociationsBuilder() { + return internalGetAssociationsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder + addAssociationsBuilder(int index) { + return internalGetAssociationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder> + getAssociationsBuilderList() { + return internalGetAssociationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetailsOrBuilder> + internalGetAssociationsFieldBuilder() { + if (associationsBuilder_ == null) { + associationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails + .Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .AssociationDetailsOrBuilder>( + associations_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + associations_ = null; + } + return associationsBuilder_; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptEndpointGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptEndpointGroup) + private static final com.google.cloud.networksecurity.v1.InterceptEndpointGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.InterceptEndpointGroup(); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterceptEndpointGroup 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.networksecurity.v1.InterceptEndpointGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociation.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..933a2b682bfd --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociation.java @@ -0,0 +1,5119 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * An endpoint group association represents a link between a network and an
                                                                                              + * endpoint group in the organization.
                                                                                              + *
                                                                                              + * Creating an association creates the networking infrastructure linking the
                                                                                              + * network to the endpoint group, but does not enable intercept by itself.
                                                                                              + * To enable intercept, the user must also create a network firewall policy
                                                                                              + * containing intercept rules and associate it with the network.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation} + */ +@com.google.protobuf.Generated +public final class InterceptEndpointGroupAssociation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation) + InterceptEndpointGroupAssociationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterceptEndpointGroupAssociation"); + } + + // Use InterceptEndpointGroupAssociation.newBuilder() to construct. + private InterceptEndpointGroupAssociation( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InterceptEndpointGroupAssociation() { + name_ = ""; + interceptEndpointGroup_ = ""; + network_ = ""; + locationsDetails_ = java.util.Collections.emptyList(); + state_ = 0; + locations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The state of the association.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The association is ready and in sync with the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The association is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
                                                                                              +     * The association is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
                                                                                              +     * The association is disabled due to a breaking change in another resource.
                                                                                              +     * 
                                                                                              + * + * CLOSED = 4; + */ + CLOSED(4), + /** + * + * + *
                                                                                              +     * The association is out of sync with the linked endpoint group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically. Check the `locations_details` field for more details.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 5; + */ + OUT_OF_SYNC(5), + /** + * + * + *
                                                                                              +     * An attempt to delete the association has failed. This is a terminal state
                                                                                              +     * and the association is not expected to be usable as some of its resources
                                                                                              +     * have been deleted.
                                                                                              +     * The only permitted operation is to retry deleting the association.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 6; + */ + DELETE_FAILED(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The association is ready and in sync with the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The association is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + + /** + * + * + *
                                                                                              +     * The association is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * The association is disabled due to a breaking change in another resource.
                                                                                              +     * 
                                                                                              + * + * CLOSED = 4; + */ + public static final int CLOSED_VALUE = 4; + + /** + * + * + *
                                                                                              +     * The association is out of sync with the linked endpoint group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically. Check the `locations_details` field for more details.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 5; + */ + public static final int OUT_OF_SYNC_VALUE = 5; + + /** + * + * + *
                                                                                              +     * An attempt to delete the association has failed. This is a terminal state
                                                                                              +     * and the association is not expected to be usable as some of its resources
                                                                                              +     * have been deleted.
                                                                                              +     * The only permitted operation is to retry deleting the association.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 6; + */ + public static final int DELETE_FAILED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return DELETING; + case 4: + return CLOSED; + case 5: + return OUT_OF_SYNC; + case 6: + return DELETE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State) + } + + public interface LocationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State + getState(); + } + + /** + * + * + *
                                                                                              +   * Contains details about the state of an association in a specific cloud
                                                                                              +   * location.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails} + */ + public static final class LocationDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails) + LocationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LocationDetails"); + } + + // Use LocationDetails.newBuilder() to construct. + private LocationDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LocationDetails() { + location_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder.class); + } + + /** + * + * + *
                                                                                              +     * The state of association.
                                                                                              +     * 
                                                                                              + * + * Protobuf enum {@code + * google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +       * Not set.
                                                                                              +       * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +       * The association is ready and in sync with the linked endpoint group.
                                                                                              +       * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +       * The association is out of sync with the linked endpoint group.
                                                                                              +       * In most cases, this is a result of a transient issue within the system
                                                                                              +       * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +       * automatically.
                                                                                              +       * 
                                                                                              + * + * OUT_OF_SYNC = 2; + */ + OUT_OF_SYNC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +       * Not set.
                                                                                              +       * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +       * The association is ready and in sync with the linked endpoint group.
                                                                                              +       * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +       * The association is out of sync with the linked endpoint group.
                                                                                              +       * In most cases, this is a result of a transient issue within the system
                                                                                              +       * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +       * automatically.
                                                                                              +       * 
                                                                                              + * + * OUT_OF_SYNC = 2; + */ + public static final int OUT_OF_SYNC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return OUT_OF_SYNC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State) + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .State + getState() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State + result = + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .State.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails other = + (com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails) + obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (state_ != other.state_) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + 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.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + 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.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * Contains details about the state of an association in a specific cloud
                                                                                              +     * location.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails) + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails.class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + build() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + buildPartial() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + result = + new com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + other) { + if (other + == com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 location_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .State + getState() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State + result = + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .State + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails) + private static final com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails(); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationDetails 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.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +   * association, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +   * association, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INTERCEPT_ENDPOINT_GROUP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object interceptEndpointGroup_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The endpoint group that this association is connected
                                                                                              +   * to, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptEndpointGroup. + */ + @java.lang.Override + public java.lang.String getInterceptEndpointGroup() { + java.lang.Object ref = interceptEndpointGroup_; + 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(); + interceptEndpointGroup_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The endpoint group that this association is connected
                                                                                              +   * to, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptEndpointGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterceptEndpointGroupBytes() { + java.lang.Object ref = interceptEndpointGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptEndpointGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +   * `projects/123456789/global/networks/my-network`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +   * `projects/123456789/global/networks/my-network`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_DETAILS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails> + locationsDetails_; + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails> + getLocationsDetailsList() { + return locationsDetails_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder> + getLocationsDetailsOrBuilderList() { + return locationsDetails_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getLocationsDetailsCount() { + return locationsDetails_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + getLocationsDetails(int index) { + return locationsDetails_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder + getLocationsDetailsOrBuilder(int index) { + return locationsDetails_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint group association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint group association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State getState() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State result = + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State.forNumber( + state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 9; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This part of
                                                                                              +   * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +   * group). See https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int LOCATIONS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List locations_; + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getLocationsList() { + return locations_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder( + int index) { + return locations_.get(index); + } + + public static final int NETWORK_COOKIE_FIELD_NUMBER = 12; + private int networkCookie_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. Identifier used by the data-path.
                                                                                              +   * See the NSI GENEVE format for more details:
                                                                                              +   * https://docs.cloud.google.com/network-security-integration/docs/understand-geneve#network_id
                                                                                              +   * 
                                                                                              + * + * uint32 network_cookie = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The networkCookie. + */ + @java.lang.Override + public int getNetworkCookie() { + return networkCookie_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptEndpointGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, interceptEndpointGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, network_); + } + for (int i = 0; i < locationsDetails_.size(); i++) { + output.writeMessage(7, locationsDetails_.get(i)); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, state_); + } + if (reconciling_ != false) { + output.writeBool(9, reconciling_); + } + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(10, locations_.get(i)); + } + if (networkCookie_ != 0) { + output.writeUInt32(12, networkCookie_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interceptEndpointGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, interceptEndpointGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, network_); + } + for (int i = 0; i < locationsDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, locationsDetails_.get(i)); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, reconciling_); + } + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, locations_.get(i)); + } + if (networkCookie_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(12, networkCookie_); + } + 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.networksecurity.v1.InterceptEndpointGroupAssociation)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation other = + (com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getInterceptEndpointGroup().equals(other.getInterceptEndpointGroup())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getLocationsDetailsList().equals(other.getLocationsDetailsList())) return false; + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (getNetworkCookie() != other.getNetworkCookie()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroup().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + if (getLocationsDetailsCount() > 0) { + hash = (37 * hash) + LOCATIONS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsDetailsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (37 * hash) + NETWORK_COOKIE_FIELD_NUMBER; + hash = (53 * hash) + getNetworkCookie(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation 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.networksecurity.v1.InterceptEndpointGroupAssociation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation 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.networksecurity.v1.InterceptEndpointGroupAssociation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptEndpointGroupAssociation 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * An endpoint group association represents a link between a network and an
                                                                                              +   * endpoint group in the organization.
                                                                                              +   *
                                                                                              +   * Creating an association creates the networking infrastructure linking the
                                                                                              +   * network to the endpoint group, but does not enable intercept by itself.
                                                                                              +   * To enable intercept, the user must also create a network firewall policy
                                                                                              +   * containing intercept rules and associate it with the network.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation) + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.class, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetLocationsDetailsFieldBuilder(); + internalGetLocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + interceptEndpointGroup_ = ""; + network_ = ""; + if (locationsDetailsBuilder_ == null) { + locationsDetails_ = java.util.Collections.emptyList(); + } else { + locationsDetails_ = null; + locationsDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + reconciling_ = false; + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + } else { + locations_ = null; + locationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + networkCookie_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation build() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation buildPartial() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation result = + new com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation result) { + if (locationsDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + locationsDetails_ = java.util.Collections.unmodifiableList(locationsDetails_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.locationsDetails_ = locationsDetails_; + } else { + result.locationsDetails_ = locationsDetailsBuilder_.build(); + } + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.interceptEndpointGroup_ = interceptEndpointGroup_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.networkCookie_ = networkCookie_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation other) { + if (other + == com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getInterceptEndpointGroup().isEmpty()) { + interceptEndpointGroup_ = other.interceptEndpointGroup_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (locationsDetailsBuilder_ == null) { + if (!other.locationsDetails_.isEmpty()) { + if (locationsDetails_.isEmpty()) { + locationsDetails_ = other.locationsDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureLocationsDetailsIsMutable(); + locationsDetails_.addAll(other.locationsDetails_); + } + onChanged(); + } + } else { + if (!other.locationsDetails_.isEmpty()) { + if (locationsDetailsBuilder_.isEmpty()) { + locationsDetailsBuilder_.dispose(); + locationsDetailsBuilder_ = null; + locationsDetails_ = other.locationsDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + locationsDetailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLocationsDetailsFieldBuilder() + : null; + } else { + locationsDetailsBuilder_.addAllMessages(other.locationsDetails_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000200); + locationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + if (other.getNetworkCookie() != 0) { + setNetworkCookie(other.getNetworkCookie()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + interceptEndpointGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails + m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails.parser(), + extensionRegistry); + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(m); + } else { + locationsDetailsBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + com.google.cloud.networksecurity.v1.InterceptLocation m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptLocation.parser(), + extensionRegistry); + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(m); + } else { + locationsBuilder_.addMessage(m); + } + break; + } // case 82 + case 96: + { + networkCookie_ = input.readUInt32(); + bitField0_ |= 0x00000400; + break; + } // case 96 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object interceptEndpointGroup_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The endpoint group that this association is connected
                                                                                              +     * to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptEndpointGroup. + */ + public java.lang.String getInterceptEndpointGroup() { + java.lang.Object ref = interceptEndpointGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + interceptEndpointGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The endpoint group that this association is connected
                                                                                              +     * to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptEndpointGroup. + */ + public com.google.protobuf.ByteString getInterceptEndpointGroupBytes() { + java.lang.Object ref = interceptEndpointGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + interceptEndpointGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The endpoint group that this association is connected
                                                                                              +     * to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The interceptEndpointGroup to set. + * @return This builder for chaining. + */ + public Builder setInterceptEndpointGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + interceptEndpointGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The endpoint group that this association is connected
                                                                                              +     * to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInterceptEndpointGroup() { + interceptEndpointGroup_ = getDefaultInstance().getInterceptEndpointGroup(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The endpoint group that this association is connected
                                                                                              +     * to, for example:
                                                                                              +     * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for interceptEndpointGroup to set. + * @return This builder for chaining. + */ + public Builder setInterceptEndpointGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interceptEndpointGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails> + locationsDetails_ = java.util.Collections.emptyList(); + + private void ensureLocationsDetailsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + locationsDetails_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails>(locationsDetails_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder> + locationsDetailsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails> + getLocationsDetailsList() { + if (locationsDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationsDetails_); + } else { + return locationsDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public int getLocationsDetailsCount() { + if (locationsDetailsBuilder_ == null) { + return locationsDetails_.size(); + } else { + return locationsDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + getLocationsDetails(int index) { + if (locationsDetailsBuilder_ == null) { + return locationsDetails_.get(index); + } else { + return locationsDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setLocationsDetails( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + value) { + if (locationsDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsDetailsIsMutable(); + locationsDetails_.set(index, value); + onChanged(); + } else { + locationsDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setLocationsDetails( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder + builderForValue) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addLocationsDetails( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + value) { + if (locationsDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(value); + onChanged(); + } else { + locationsDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addLocationsDetails( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + value) { + if (locationsDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(index, value); + onChanged(); + } else { + locationsDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addLocationsDetails( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder + builderForValue) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(builderForValue.build()); + onChanged(); + } else { + locationsDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addLocationsDetails( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder + builderForValue) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addAllLocationsDetails( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails> + values) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationsDetails_); + onChanged(); + } else { + locationsDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder clearLocationsDetails() { + if (locationsDetailsBuilder_ == null) { + locationsDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + locationsDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder removeLocationsDetails(int index) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.remove(index); + onChanged(); + } else { + locationsDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder + getLocationsDetailsBuilder(int index) { + return internalGetLocationsDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder + getLocationsDetailsOrBuilder(int index) { + if (locationsDetailsBuilder_ == null) { + return locationsDetails_.get(index); + } else { + return locationsDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder> + getLocationsDetailsOrBuilderList() { + if (locationsDetailsBuilder_ != null) { + return locationsDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationsDetails_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder + addLocationsDetailsBuilder() { + return internalGetLocationsDetailsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder + addLocationsDetailsBuilder(int index) { + return internalGetLocationsDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder> + getLocationsDetailsBuilderList() { + return internalGetLocationsDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + .Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder> + internalGetLocationsDetailsFieldBuilder() { + if (locationsDetailsBuilder_ == null) { + locationsDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetails.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder>( + locationsDetails_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + locationsDetails_ = null; + } + return locationsDetailsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State getState() { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State result = + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State.forNumber( + state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +     * group). See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +     * group). See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +     * group). See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000100); + reconciling_ = false; + onChanged(); + return this; + } + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + locations_ = + new java.util.ArrayList( + locations_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations(com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.InterceptLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLocations( + java.lang.Iterable + values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder getLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder( + int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder addLocationsBuilder() { + return internalGetLocationsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.InterceptLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptLocation.Builder addLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.InterceptLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsBuilderList() { + return internalGetLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder> + internalGetLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptLocation, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder, + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder>( + locations_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + private int networkCookie_; + + /** + * + * + *
                                                                                              +     * Output only. Identifier used by the data-path.
                                                                                              +     * See the NSI GENEVE format for more details:
                                                                                              +     * https://docs.cloud.google.com/network-security-integration/docs/understand-geneve#network_id
                                                                                              +     * 
                                                                                              + * + * uint32 network_cookie = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The networkCookie. + */ + @java.lang.Override + public int getNetworkCookie() { + return networkCookie_; + } + + /** + * + * + *
                                                                                              +     * Output only. Identifier used by the data-path.
                                                                                              +     * See the NSI GENEVE format for more details:
                                                                                              +     * https://docs.cloud.google.com/network-security-integration/docs/understand-geneve#network_id
                                                                                              +     * 
                                                                                              + * + * uint32 network_cookie = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The networkCookie to set. + * @return This builder for chaining. + */ + public Builder setNetworkCookie(int value) { + + networkCookie_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Identifier used by the data-path.
                                                                                              +     * See the NSI GENEVE format for more details:
                                                                                              +     * https://docs.cloud.google.com/network-security-integration/docs/understand-geneve#network_id
                                                                                              +     * 
                                                                                              + * + * uint32 network_cookie = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkCookie() { + bitField0_ = (bitField0_ & ~0x00000400); + networkCookie_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation) + private static final com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation(); + } + + public static com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterceptEndpointGroupAssociation 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.networksecurity.v1.InterceptEndpointGroupAssociation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationName.java new file mode 100644 index 000000000000..29a2bfd98cac --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationName.java @@ -0,0 +1,246 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class InterceptEndpointGroupAssociationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String interceptEndpointGroupAssociation; + + @Deprecated + protected InterceptEndpointGroupAssociationName() { + project = null; + location = null; + interceptEndpointGroupAssociation = null; + } + + private InterceptEndpointGroupAssociationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + interceptEndpointGroupAssociation = + Preconditions.checkNotNull(builder.getInterceptEndpointGroupAssociation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInterceptEndpointGroupAssociation() { + return interceptEndpointGroupAssociation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static InterceptEndpointGroupAssociationName of( + String project, String location, String interceptEndpointGroupAssociation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInterceptEndpointGroupAssociation(interceptEndpointGroupAssociation) + .build(); + } + + public static String format( + String project, String location, String interceptEndpointGroupAssociation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInterceptEndpointGroupAssociation(interceptEndpointGroupAssociation) + .build() + .toString(); + } + + public static InterceptEndpointGroupAssociationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION.validatedMatch( + formattedString, + "InterceptEndpointGroupAssociationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("intercept_endpoint_group_association")); + } + + public static List parseList( + List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (InterceptEndpointGroupAssociationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (interceptEndpointGroupAssociation != null) { + fieldMapBuilder.put( + "intercept_endpoint_group_association", interceptEndpointGroupAssociation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INTERCEPT_ENDPOINT_GROUP_ASSOCIATION.instantiate( + "project", + project, + "location", + location, + "intercept_endpoint_group_association", + interceptEndpointGroupAssociation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + InterceptEndpointGroupAssociationName that = ((InterceptEndpointGroupAssociationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals( + this.interceptEndpointGroupAssociation, that.interceptEndpointGroupAssociation); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(interceptEndpointGroupAssociation); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}. + */ + public static class Builder { + private String project; + private String location; + private String interceptEndpointGroupAssociation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInterceptEndpointGroupAssociation() { + return interceptEndpointGroupAssociation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInterceptEndpointGroupAssociation(String interceptEndpointGroupAssociation) { + this.interceptEndpointGroupAssociation = interceptEndpointGroupAssociation; + return this; + } + + private Builder(InterceptEndpointGroupAssociationName interceptEndpointGroupAssociationName) { + this.project = interceptEndpointGroupAssociationName.project; + this.location = interceptEndpointGroupAssociationName.location; + this.interceptEndpointGroupAssociation = + interceptEndpointGroupAssociationName.interceptEndpointGroupAssociation; + } + + public InterceptEndpointGroupAssociationName build() { + return new InterceptEndpointGroupAssociationName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationOrBuilder.java new file mode 100644 index 000000000000..f3e4199566be --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationOrBuilder.java @@ -0,0 +1,508 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface InterceptEndpointGroupAssociationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +   * association, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +   * association, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The endpoint group that this association is connected
                                                                                              +   * to, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptEndpointGroup. + */ + java.lang.String getInterceptEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The endpoint group that this association is connected
                                                                                              +   * to, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_endpoint_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptEndpointGroup. + */ + com.google.protobuf.ByteString getInterceptEndpointGroupBytes(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +   * `projects/123456789/global/networks/my-network`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The VPC network that is associated. for example:
                                                                                              +   * `projects/123456789/global/networks/my-network`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails> + getLocationsDetailsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails + getLocationsDetails(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + int getLocationsDetailsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .LocationDetailsOrBuilder> + getLocationsDetailsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.LocationDetailsOrBuilder + getLocationsDetailsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint group association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint group association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This part of
                                                                                              +   * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +   * group). See https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getLocationsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptLocation getLocations(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLocationsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLocationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder getLocationsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. Identifier used by the data-path.
                                                                                              +   * See the NSI GENEVE format for more details:
                                                                                              +   * https://docs.cloud.google.com/network-security-integration/docs/understand-geneve#network_id
                                                                                              +   * 
                                                                                              + * + * uint32 network_cookie = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The networkCookie. + */ + int getNetworkCookie(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupName.java new file mode 100644 index 000000000000..46cecb0d3eed --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class InterceptEndpointGroupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INTERCEPT_ENDPOINT_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String interceptEndpointGroup; + + @Deprecated + protected InterceptEndpointGroupName() { + project = null; + location = null; + interceptEndpointGroup = null; + } + + private InterceptEndpointGroupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + interceptEndpointGroup = Preconditions.checkNotNull(builder.getInterceptEndpointGroup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInterceptEndpointGroup() { + return interceptEndpointGroup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static InterceptEndpointGroupName of( + String project, String location, String interceptEndpointGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInterceptEndpointGroup(interceptEndpointGroup) + .build(); + } + + public static String format(String project, String location, String interceptEndpointGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInterceptEndpointGroup(interceptEndpointGroup) + .build() + .toString(); + } + + public static InterceptEndpointGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INTERCEPT_ENDPOINT_GROUP.validatedMatch( + formattedString, + "InterceptEndpointGroupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("intercept_endpoint_group")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (InterceptEndpointGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INTERCEPT_ENDPOINT_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (interceptEndpointGroup != null) { + fieldMapBuilder.put("intercept_endpoint_group", interceptEndpointGroup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INTERCEPT_ENDPOINT_GROUP.instantiate( + "project", + project, + "location", + location, + "intercept_endpoint_group", + interceptEndpointGroup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + InterceptEndpointGroupName that = ((InterceptEndpointGroupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.interceptEndpointGroup, that.interceptEndpointGroup); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(interceptEndpointGroup); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}. + */ + public static class Builder { + private String project; + private String location; + private String interceptEndpointGroup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInterceptEndpointGroup() { + return interceptEndpointGroup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInterceptEndpointGroup(String interceptEndpointGroup) { + this.interceptEndpointGroup = interceptEndpointGroup; + return this; + } + + private Builder(InterceptEndpointGroupName interceptEndpointGroupName) { + this.project = interceptEndpointGroupName.project; + this.location = interceptEndpointGroupName.location; + this.interceptEndpointGroup = interceptEndpointGroupName.interceptEndpointGroup; + } + + public InterceptEndpointGroupName build() { + return new InterceptEndpointGroupName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupOrBuilder.java new file mode 100644 index 000000000000..07e3f1c8ed61 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupOrBuilder.java @@ -0,0 +1,450 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface InterceptEndpointGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptEndpointGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +   * connected to, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The interceptDeploymentGroup. + */ + java.lang.String getInterceptDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this endpoint group is
                                                                                              +   * connected to, for example:
                                                                                              +   * `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string intercept_deployment_group = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for interceptDeploymentGroup. + */ + com.google.protobuf.ByteString getInterceptDeploymentGroupBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Details about the connected deployment group to this endpoint
                                                                                              +   * group.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectedDeploymentGroup field is set. + */ + boolean hasConnectedDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Output only. Details about the connected deployment group to this endpoint
                                                                                              +   * group.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectedDeploymentGroup. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup + getConnectedDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Output only. Details about the connected deployment group to this endpoint
                                                                                              +   * group.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroup connected_deployment_group = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.ConnectedDeploymentGroupOrBuilder + getConnectedDeploymentGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the endpoint group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the endpoint group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This is part
                                                                                              +   * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAssociationsList(); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails getAssociations( + int index); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAssociationsCount(); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .AssociationDetailsOrBuilder> + getAssociationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetailsOrBuilder + getAssociationsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the endpoint group.
                                                                                              +   * Used as additional context for the endpoint group.
                                                                                              +   * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the endpoint group.
                                                                                              +   * Used as additional context for the endpoint group.
                                                                                              +   * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptLocation.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptLocation.java new file mode 100644 index 000000000000..65e7d8d68cf9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptLocation.java @@ -0,0 +1,951 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Details about intercept in a specific cloud location.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptLocation} + */ +@com.google.protobuf.Generated +public final class InterceptLocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.InterceptLocation) + InterceptLocationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterceptLocation"); + } + + // Use InterceptLocation.newBuilder() to construct. + private InterceptLocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InterceptLocation() { + location_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptLocation.class, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The current state of a resource in the location.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.InterceptLocation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The resource is ready and in sync in the location.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The resource is out of sync in the location.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 2; + */ + OUT_OF_SYNC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The resource is ready and in sync in the location.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The resource is out of sync in the location.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 2; + */ + public static final int OUT_OF_SYNC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return OUT_OF_SYNC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptLocation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.InterceptLocation.State) + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
                                                                                              +   * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +   * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +   * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the association in this location.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. The current state of the association in this location.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocation.State getState() { + com.google.cloud.networksecurity.v1.InterceptLocation.State result = + com.google.cloud.networksecurity.v1.InterceptLocation.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptLocation.State.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptLocation.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (state_ + != com.google.cloud.networksecurity.v1.InterceptLocation.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.networksecurity.v1.InterceptLocation)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.InterceptLocation other = + (com.google.cloud.networksecurity.v1.InterceptLocation) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (state_ != other.state_) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation 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.networksecurity.v1.InterceptLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation 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.networksecurity.v1.InterceptLocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.InterceptLocation 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Details about intercept in a specific cloud location.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.InterceptLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.InterceptLocation) + com.google.cloud.networksecurity.v1.InterceptLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.InterceptLocation.class, + com.google.cloud.networksecurity.v1.InterceptLocation.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.InterceptLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_InterceptLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocation getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.InterceptLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocation build() { + com.google.cloud.networksecurity.v1.InterceptLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocation buildPartial() { + com.google.cloud.networksecurity.v1.InterceptLocation result = + new com.google.cloud.networksecurity.v1.InterceptLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.InterceptLocation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.InterceptLocation) { + return mergeFrom((com.google.cloud.networksecurity.v1.InterceptLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.InterceptLocation other) { + if (other == com.google.cloud.networksecurity.v1.InterceptLocation.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 location_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptLocation.State getState() { + com.google.cloud.networksecurity.v1.InterceptLocation.State result = + com.google.cloud.networksecurity.v1.InterceptLocation.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.InterceptLocation.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networksecurity.v1.InterceptLocation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.InterceptLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.InterceptLocation) + private static final com.google.cloud.networksecurity.v1.InterceptLocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.InterceptLocation(); + } + + public static com.google.cloud.networksecurity.v1.InterceptLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterceptLocation 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.networksecurity.v1.InterceptLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptLocationOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptLocationOrBuilder.java new file mode 100644 index 000000000000..761d45648971 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptLocationOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface InterceptLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.InterceptLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +   * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
                                                                                              +   * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +   * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the association in this location.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the association in this location.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.InterceptLocation.State getState(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptProto.java new file mode 100644 index 000000000000..225c45e48200 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptProto.java @@ -0,0 +1,1018 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class InterceptProto extends com.google.protobuf.GeneratedFile { + private InterceptProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterceptProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_InterceptLocation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_InterceptLocation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "/google/cloud/networksecurity/v1/intercept.proto\022\037google.cloud.networksecurity." + + "v1\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\033google/api/field_info.proto\032" + + "\031google/api/resource.proto\032,google/cloud" + + "/networksecurity/v1/common.proto\032#google" + + "/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\365\013\n" + + "\026InterceptEndpointGroup\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022X\n" + + "\006labels\030\004 \003(\0132C.google.cloud.networ" + + "ksecurity.v1.InterceptEndpointGroup.LabelsEntryB\003\340A\001\022f\n" + + "\032intercept_deployment_group\030\005 \001(\tBB\340A\002\340A\005\372A9\n" + + "7networksecurity.googleapis.com/InterceptDeploymentGroup\022y\n" + + "\032connected_deployment_group\030\013 \001(\0132P.googl" + + "e.cloud.networksecurity.v1.InterceptEndp" + + "ointGroup.ConnectedDeploymentGroupB\003\340A\003\022Q\n" + + "\005state\030\007 \001(\0162=.google.cloud.networksec" + + "urity.v1.InterceptEndpointGroup.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\010 \001(\010B\003\340A\003\022e\n" + + "\014associations\030\t \003(\0132J.google.cloud.networksecurit" + + "y.v1.InterceptEndpointGroup.AssociationDetailsB\003\340A\003\022\030\n" + + "\013description\030\n" + + " \001(\tB\003\340A\001\032\265\001\n" + + "\030ConnectedDeploymentGroup\022M\n" + + "\004name\030\001 \001(\tB?\340A\003\372A9\n" + + "7networksecurity.googleapis.com/InterceptDeploymentGroup\022J\n" + + "\tlocations\030\002" + + " \003(\01322.google.cloud.networksecurity.v1.InterceptLocationB\003\340A\003\032\203\002\n" + + "\022AssociationDetails\022V\n" + + "\004name\030\001 \001(\tBH\340A\003\372AB\n" + + "@networksecurity.googleapis.com/InterceptEndpointGroupAssociation\0227\n" + + "\007network\030\002 \001(\tB&\340A\003\372A \n" + + "\036compute.googleapis.com/Network\022\\\n" + + "\005state\030\003 \001(\0162H.google.cloud.networksecurity.v1.I" + + "nterceptEndpointGroupAssociation.StateB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"v\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\n\n" + + "\006CLOSED\020\002\022\014\n" + + "\010CREATING\020\003\022\014\n" + + "\010DELETING\020\004\022\017\n" + + "\013OUT_OF_SYNC\020\005\022\021\n\r" + + "DELETE_FAILED\020\006:\310\001\352A\304\001\n" + + "5networksecurity.googleapis.com/InterceptEndpointGroup\022Zprojec" + + "ts/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_gr" + + "oup}*\027interceptEndpointGroups2\026interceptEndpointGroup\"\320\001\n" + + "\"ListInterceptEndpointGroupsRequest\022M\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225ne" + + "tworksecurity.googleapis.com/InterceptEndpointGroup\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\232\001\n" + + "#ListInterceptEndpointGroupsResponse\022Z\n" + + "\031intercept_endpoint_groups\030\001" + + " \003(\01327.google.cloud.networksecurity.v1.InterceptEndpointGroup\022\027\n" + + "\017next_page_token\030\002 \001(\t\"o\n" + + " GetInterceptEndpointGroupRequest\022K\n" + + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + + "5networksecurity.googleapis.com/InterceptEndpointGroup\"\237\002\n" + + "#CreateInterceptEndpointGroupRequest\022M\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225" + + "networksecurity.googleapis.com/InterceptEndpointGroup\022(\n" + + "\033intercept_endpoint_group_id\030\002 \001(\tB\003\340A\002\022^\n" + + "\030intercept_endpoint_group\030\003" + + " \001(\01327.google.cloud.networksecurity.v1.InterceptEndpointGroupB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\334\001\n" + + "#UpdateInterceptEndpointGroupRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022^\n" + + "\030intercept_endpoint_group\030\002 \001(\01327.googl" + + "e.cloud.networksecurity.v1.InterceptEndpointGroupB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\223\001\n" + + "#DeleteInterceptEndpointGroupRequest\022K\n" + + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + + "5networksecurity.googleapis.com/InterceptEndpointGroup\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\201\013\n" + + "!InterceptEndpointGroupAssociation\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022c\n" + + "\006labels\030\004 \003(\0132N.google.cloud.net" + + "worksecurity.v1.InterceptEndpointGroupAssociation.LabelsEntryB\003\340A\001\022b\n" + + "\030intercept_endpoint_group\030\005 \001(\tB@\340A\002\340A\005\372A7\n" + + "5networksecurity.googleapis.com/InterceptEndpointGroup\022:\n" + + "\007network\030\006 \001(\tB)\340A\002\340A\005\372A \n" + + "\036compute.googleapis.com/Network\022t\n" + + "\021locations_details\030\007 \003(\0132R.google.cloud.networksecu" + + "rity.v1.InterceptEndpointGroupAssociation.LocationDetailsB\005\030\001\340A\003\022\\\n" + + "\005state\030\010 \001(\0162H.google.cloud.networksecurity.v1.Interc" + + "eptEndpointGroupAssociation.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\t \001(\010B\003\340A\003\022J\n" + + "\tlocations\030\n" + + " \003(\01322.google.cloud.networksecurity.v1.InterceptLocationB\003\340A\003\022\033\n" + + "\016network_cookie\030\014 \001(\r" + + "B\003\340A\003\032\323\001\n" + + "\017LocationDetails\022\025\n" + + "\010location\030\001 \001(\tB\003\340A\003\022l\n" + + "\005state\030\002 \001(\0162X.google.cloud.networksecurity.v1.InterceptEndpointG" + + "roupAssociation.LocationDetails.StateB\003\340A\003\";\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\017\n" + + "\013OUT_OF_SYNC\020\002\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"v\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\002\022\014\n" + + "\010DELETING\020\003\022\n\n" + + "\006CLOSED\020\004\022\017\n" + + "\013OUT_OF_SYNC\020\005\022\021\n\r" + + "DELETE_FAILED\020\006:\200\002\352A\374\001\n" + + "@networksecurity.googleapis.com/InterceptEndpointGroupAssociation\022qprojects/{proje" + + "ct}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_" + + "group_association}*\"interceptEndpointGro" + + "upAssociations2!interceptEndpointGroupAssociation\"\346\001\n" + + "-ListInterceptEndpointGroupAssociationsRequest\022X\n" + + "\006parent\030\001 \001(\tBH\340A\002" + + "\372AB\022@networksecurity.googleapis.com/InterceptEndpointGroupAssociation\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\274\001\n" + + ".ListInterceptEndpointGroupAssociationsResponse\022q\n" + + "%intercept_endpoint_group_associations\030\001 \003(\0132B.google.cloud.netw" + + "orksecurity.v1.InterceptEndpointGroupAssociation\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\205\001\n" + + "+GetInterceptEndpointGroupAssociationRequest\022V\n" + + "\004name\030\001 \001(\tBH\340A\002\372AB\n" + + "@networksecurity.googleapis.com/InterceptEndpointGroupAssociation\"\330\002\n" + + ".CreateInterceptEndpointGroupAssociationRequest\022X\n" + + "\006parent\030\001 \001(\tBH\340A" + + "\002\372AB\022@networksecurity.googleapis.com/InterceptEndpointGroupAssociation\0224\n" + + "\'intercept_endpoint_group_association_id\030\002 \001(\tB\003\340A\001\022u\n" + + "$intercept_endpoint_group_association\030\003 \001(\0132B.google.cloud.networksecurit" + + "y.v1.InterceptEndpointGroupAssociationB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\376\001\n" + + ".UpdateInterceptEndpointGroupAssociationRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022u\n" + + "$intercept_endpoint_group_association\030\002 \001(\0132B.google.clo" + + "ud.networksecurity.v1.InterceptEndpointGroupAssociationB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\251\001\n" + + ".DeleteInterceptEndpointGroupAssociationRequest\022V\n" + + "\004name\030\001 \001(\tBH\340A\002\372AB\n" + + "@networksecurity.googleapis.com/InterceptEndpointGroupAssociation\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\310\n\n" + + "\030InterceptDeploymentGroup\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Z\n" + + "\006labels\030\004 \003(\013" + + "2E.google.cloud.networksecurity.v1.InterceptDeploymentGroup.LabelsEntryB\003\340A\001\022:\n" + + "\007network\030\005 \001(\tB)\340A\002\340A\005\372A \n" + + "\036compute.googleapis.com/Network\022x\n" + + "\031connected_endpoint_groups\030\006 \003(\0132P.google.cloud.networksecuri" + + "ty.v1.InterceptDeploymentGroup.ConnectedEndpointGroupB\003\340A\003\022g\n" + + "\022nested_deployments\030\n" + + " \003(\0132D.google.cloud.networksecurity.v1" + + ".InterceptDeploymentGroup.DeploymentB\005\030\001\340A\003\022S\n" + + "\005state\030\007 \001(\0162?.google.cloud.networ" + + "ksecurity.v1.InterceptDeploymentGroup.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\010 \001(\010B\003\340A\003\022\030\n" + + "\013description\030\t \001(\tB\003\340A\001\022J\n" + + "\tlocations\030\013 \003(\0132" + + "2.google.cloud.networksecurity.v1.InterceptLocationB\003\340A\003\032e\n" + + "\026ConnectedEndpointGroup\022K\n" + + "\004name\030\001 \001(\tB=\340A\003\372A7\n" + + "5networksecurity.googleapis.com/InterceptEndpointGroup\032\246\001\n\n" + + "Deployment\022H\n" + + "\004name\030\001 \001(\tB:\340A\003\372A4\n" + + "2networksecurity.googleapis.com/InterceptDeployment\022N\n" + + "\005state\030\002 \001(\0162:.google.cloud.n" + + "etworksecurity.v1.InterceptDeployment.StateB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"F\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\002\022\014\n" + + "\010DELETING\020\003:\322\001\352A\316\001\n" + + "7networksecurity.googleapis.com/InterceptDeploymentGroup\022^project" + + "s/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment" + + "_group}*\031interceptDeploymentGroups2\030interceptDeploymentGroup\"\324\001\n" + + "$ListInterceptDeploymentGroupsRequest\022O\n" + + "\006parent\030\001 \001(\tB?\340" + + "A\002\372A9\0227networksecurity.googleapis.com/InterceptDeploymentGroup\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\240\001\n" + + "%ListInterceptDeploymentGroupsResponse\022^\n" + + "\033intercept_deployment_groups\030\001 \003(\01329.goo" + + "gle.cloud.networksecurity.v1.InterceptDeploymentGroup\022\027\n" + + "\017next_page_token\030\002 \001(\t\"s\n" + + "\"GetInterceptDeploymentGroupRequest\022M\n" + + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + + "7networksecurity.googleapis.com/InterceptDeploymentGroup\"\251\002\n" + + "%CreateInterceptDeploymentGroupRequest\022O\n" + + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227networksecurity.g" + + "oogleapis.com/InterceptDeploymentGroup\022*\n" + + "\035intercept_deployment_group_id\030\002 \001(\tB\003\340A\002\022b\n" + + "\032intercept_deployment_group\030\003 \001(\01329" + + ".google.cloud.networksecurity.v1.InterceptDeploymentGroupB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\342\001\n" + + "%UpdateInterceptDeploymentGroupRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022b\n" + + "\032intercept_deployment_group\030\002 \001(\01329.google.clo" + + "ud.networksecurity.v1.InterceptDeploymentGroupB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\227\001\n" + + "%DeleteInterceptDeploymentGroupRequest\022M\n" + + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + + "7networksecurity.googleapis.com/InterceptDeploymentGroup\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\373\006\n" + + "\023InterceptDeployment\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" + + "\006labels\030\004 \003(\0132@.google.cloud.networksecurity." + + "v1.InterceptDeployment.LabelsEntryB\003\340A\001\022I\n" + + "\017forwarding_rule\030\005 \001(\tB0\340A\002\340A\005\372A\'\n" + + "%compute.googleapis.com/ForwardingRule\022f\n" + + "\032intercept_deployment_group\030\006 \001(\tBB\340A\002\340A\005\372A9\n" + + "7networksecurity.googleapis.com/InterceptDeploymentGroup\022N\n" + + "\005state\030\007 \001(\0162:.goog" + + "le.cloud.networksecurity.v1.InterceptDeployment.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\010 \001(\010B\003\340A\003\022\030\n" + + "\013description\030\t \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\"j\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\002\022\014\n" + + "\010DELETING\020\003\022\017\n" + + "\013OUT_OF_SYNC\020\004\022\021\n\r" + + "DELETE_FAILED\020\005:\270\001\352A\264\001\n" + + "2networksecurity.googleapis.com/InterceptDeploy" + + "ment\022Sprojects/{project}/locations/{location}/interceptDeployments/{intercept_de" + + "ployment}*\024interceptDeployments2\023interceptDeployment\"\312\001\n" + + "\037ListInterceptDeploymentsRequest\022J\n" + + "\006parent\030\001 \001(\tB:\340A\002\372A4\0222networ" + + "ksecurity.googleapis.com/InterceptDeployment\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\245\001\n" + + " ListInterceptDeploymentsResponse\022S\n" + + "\025intercept_deployments\030\001" + + " \003(\01324.google.cloud.networksecurity.v1.InterceptDeployment\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"i\n" + + "\035GetInterceptDeploymentRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + + "2networksecurity.googleapis.com/InterceptDeployment\"\216\002\n" + + " CreateInterceptDeploymentRequest\022J\n" + + "\006parent\030\001 \001(\tB:\340A\002\372A4\0222netwo" + + "rksecurity.googleapis.com/InterceptDeployment\022$\n" + + "\027intercept_deployment_id\030\002 \001(\tB\003\340A\002\022W\n" + + "\024intercept_deployment\030\003 \001(\01324.goog" + + "le.cloud.networksecurity.v1.InterceptDeploymentB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\322\001\n" + + " UpdateInterceptDeploymentRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022W\n" + + "\024intercept_deployment\030\002" + + " \001(\01324.google.cloud.networksecurity.v1.InterceptDeploymentB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\215\001\n" + + " DeleteInterceptDeploymentRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + + "2networksecurity.googleapis.com/InterceptDeployment\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\265\001\n" + + "\021InterceptLocation\022\025\n" + + "\010location\030\001 \001(\tB\003\340A\003\022L\n" + + "\005state\030\002 \001(\01628.google.cloud.ne" + + "tworksecurity.v1.InterceptLocation.StateB\003\340A\003\";\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\017\n" + + "\013OUT_OF_SYNC\020\0022\3561\n" + + "\tIntercept\022\366\001\n" + + "\033ListInterceptEndpointGroups\022C.google.cloud.networksecurity.v1.ListIntercept" + + "EndpointGroupsRequest\032D.google.cloud.networksecurity.v1.ListInterceptEndpointGro" + + "upsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{paren" + + "t=projects/*/locations/*}/interceptEndpointGroups\022\343\001\n" + + "\031GetInterceptEndpointGroup\022A.google.cloud.networksecurity.v1.GetInt" + + "erceptEndpointGroupRequest\0327.google.cloud.networksecurity.v1.InterceptEndpointGr" + + "oup\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/*" + + "/locations/*/interceptEndpointGroups/*}\022\357\002\n" + + "\034CreateInterceptEndpointGroup\022D.google.cloud.networksecurity.v1.CreateInterce" + + "ptEndpointGroupRequest\032\035.google.longrunning.Operation\"\351\001\312AK\n" + + "\026InterceptEndpointGroup\0221google.cloud.networksecurity.v1.Ope" + + "rationMetadata\332A;parent,intercept_endpoi" + + "nt_group,intercept_endpoint_group_id\202\323\344\223" + + "\002W\";/v1/{parent=projects/*/locations/*}/" + + "interceptEndpointGroups:\030intercept_endpoint_group\022\361\002\n" + + "\034UpdateInterceptEndpointGroup\022D.google.cloud.networksecurity.v1.Upd" + + "ateInterceptEndpointGroupRequest\032\035.google.longrunning.Operation\"\353\001\312AK\n" + + "\026InterceptEndpointGroup\0221google.cloud.networksecur" + + "ity.v1.OperationMetadata\332A$intercept_end" + + "point_group,update_mask\202\323\344\223\002p2T/v1/{inte" + + "rcept_endpoint_group.name=projects/*/loc" + + "ations/*/interceptEndpointGroups/*}:\030intercept_endpoint_group\022\235\002\n" + + "\034DeleteInterceptEndpointGroup\022D.google.cloud.networksec" + + "urity.v1.DeleteInterceptEndpointGroupReq" + + "uest\032\035.google.longrunning.Operation\"\227\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.n" + + "etworksecurity.v1.OperationMetadata\332A\004na" + + "me\202\323\344\223\002=*;/v1/{name=projects/*/locations/*/interceptEndpointGroups/*}\022\242\002\n" + + "&ListInterceptEndpointGroupAssociations\022N.googl" + + "e.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest\032O.googl" + + "e.cloud.networksecurity.v1.ListIntercept" + + "EndpointGroupAssociationsResponse\"W\332A\006pa" + + "rent\202\323\344\223\002H\022F/v1/{parent=projects/*/locat" + + "ions/*}/interceptEndpointGroupAssociations\022\217\002\n" + + "$GetInterceptEndpointGroupAssociation\022L.google.cloud.networksecurity.v1.Ge" + + "tInterceptEndpointGroupAssociationRequest\032B.google.cloud.networksecurity.v1.Inte" + + "rceptEndpointGroupAssociation\"U\332A\004name\202\323" + + "\344\223\002H\022F/v1/{name=projects/*/locations/*/interceptEndpointGroupAssociations/*}\022\277\003\n" + + "\'CreateInterceptEndpointGroupAssociation\022O.google.cloud.networksecurity.v1.Creat" + + "eInterceptEndpointGroupAssociationRequest\032\035.google.longrunning.Operation\"\243\002\312AV\n" + + "!InterceptEndpointGroupAssociation\0221google.cloud.networksecurity.v1.OperationMeta" + + "data\332ASparent,intercept_endpoint_group_association,intercept_endpoint_group_asso" + + "ciation_id\202\323\344\223\002n\"F/v1/{parent=projects/*" + + "/locations/*}/interceptEndpointGroupAsso" + + "ciations:$intercept_endpoint_group_association\022\302\003\n" + + "\'UpdateInterceptEndpointGroupAssociation\022O.google.cloud.networksecurit" + + "y.v1.UpdateInterceptEndpointGroupAssocia" + + "tionRequest\032\035.google.longrunning.Operation\"\246\002\312AV\n" + + "!InterceptEndpointGroupAssociation\0221google.cloud.networksecurity.v1.Ope" + + "rationMetadata\332A0intercept_endpoint_grou" + + "p_association,update_mask\202\323\344\223\002\223\0012k/v1/{i" + + "ntercept_endpoint_group_association.name=projects/*/locations/*/interceptEndpoin" + + "tGroupAssociations/*}:$intercept_endpoint_group_association\022\276\002\n" + + "\'DeleteInterceptEndpointGroupAssociation\022O.google.cloud.n" + + "etworksecurity.v1.DeleteInterceptEndpoin" + + "tGroupAssociationRequest\032\035.google.longrunning.Operation\"\242\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.networksecurity.v1.Op" + + "erationMetadata\332A\004name\202\323\344\223\002H*F/v1/{name=" + + "projects/*/locations/*/interceptEndpointGroupAssociations/*}\022\376\001\n" + + "\035ListInterceptDeploymentGroups\022E.google.cloud.networksec" + + "urity.v1.ListInterceptDeploymentGroupsRequest\032F.google.cloud.networksecurity.v1." + + "ListInterceptDeploymentGroupsResponse\"N\332" + + "A\006parent\202\323\344\223\002?\022=/v1/{parent=projects/*/l" + + "ocations/*}/interceptDeploymentGroups\022\353\001\n" + + "\033GetInterceptDeploymentGroup\022C.google.cloud.networksecurity.v1.GetInterceptDepl" + + "oymentGroupRequest\0329.google.cloud.networ" + + "ksecurity.v1.InterceptDeploymentGroup\"L\332" + + "A\004name\202\323\344\223\002?\022=/v1/{name=projects/*/locations/*/interceptDeploymentGroups/*}\022\375\002\n" + + "\036CreateInterceptDeploymentGroup\022F.google." + + "cloud.networksecurity.v1.CreateIntercept" + + "DeploymentGroupRequest\032\035.google.longrunning.Operation\"\363\001\312AM\n" + + "\030InterceptDeploymentGroup\0221google.cloud.networksecurity.v1.O" + + "perationMetadata\332A?parent,intercept_deployment_group,intercept_deployment_group_" + + "id\202\323\344\223\002[\"=/v1/{parent=projects/*/locatio" + + "ns/*}/interceptDeploymentGroups:\032intercept_deployment_group\022\377\002\n" + + "\036UpdateInterceptDeploymentGroup\022F.google.cloud.networksec" + + "urity.v1.UpdateInterceptDeploymentGroupR" + + "equest\032\035.google.longrunning.Operation\"\365\001\312AM\n" + + "\030InterceptDeploymentGroup\0221google.cloud.networksecurity.v1.OperationMetadata" + + "\332A&intercept_deployment_group,update_mas" + + "k\202\323\344\223\002v2X/v1/{intercept_deployment_group" + + ".name=projects/*/locations/*/interceptDe" + + "ploymentGroups/*}:\032intercept_deployment_group\022\243\002\n" + + "\036DeleteInterceptDeploymentGroup\022F.google.cloud.networksecurity.v1.Delet" + + "eInterceptDeploymentGroupRequest\032\035.google.longrunning.Operation\"\231\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.networksecuri" + + "ty.v1.OperationMetadata\332A\004name\202\323\344\223\002?*=/v" + + "1/{name=projects/*/locations/*/interceptDeploymentGroups/*}\022\352\001\n" + + "\030ListInterceptDeployments\022@.google.cloud.networksecurity." + + "v1.ListInterceptDeploymentsRequest\032A.google.cloud.networksecurity.v1.ListInterce" + + "ptDeploymentsResponse\"I\332A\006parent\202\323\344\223\002:\0228" + + "/v1/{parent=projects/*/locations/*}/interceptDeployments\022\327\001\n" + + "\026GetInterceptDeployment\022>.google.cloud.networksecurity.v1.Ge" + + "tInterceptDeploymentRequest\0324.google.cloud.networksecurity.v1.InterceptDeploymen" + + "t\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/interceptDeployments/*}\022\327\002\n" + + "\031CreateInterceptDeployment\022A.google.cloud." + + "networksecurity.v1.CreateInterceptDeploy" + + "mentRequest\032\035.google.longrunning.Operati", + "on\"\327\001\312AH\n\023InterceptDeployment\0221google.cl" + + "oud.networksecurity.v1.OperationMetadata" + + "\332A3parent,intercept_deployment,intercept" + + "_deployment_id\202\323\344\223\002P\"8/v1/{parent=projec" + + "ts/*/locations/*}/interceptDeployments:\024" + + "intercept_deployment\022\331\002\n\031UpdateIntercept" + + "Deployment\022A.google.cloud.networksecurit" + + "y.v1.UpdateInterceptDeploymentRequest\032\035." + + "google.longrunning.Operation\"\331\001\312AH\n\023Inte" + + "rceptDeployment\0221google.cloud.networksec" + + "urity.v1.OperationMetadata\332A intercept_d" + + "eployment,update_mask\202\323\344\223\002e2M/v1/{interc" + + "ept_deployment.name=projects/*/locations" + + "/*/interceptDeployments/*}:\024intercept_de" + + "ployment\022\224\002\n\031DeleteInterceptDeployment\022A" + + ".google.cloud.networksecurity.v1.DeleteI" + + "nterceptDeploymentRequest\032\035.google.longr" + + "unning.Operation\"\224\001\312AJ\n\025google.protobuf." + + "Empty\0221google.cloud.networksecurity.v1.O" + + "perationMetadata\332A\004name\202\323\344\223\002:*8/v1/{name" + + "=projects/*/locations/*/interceptDeploym" + + "ents/*}\032R\312A\036networksecurity.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\357\001\n#com.google.cloud.network" + + "security.v1B\016InterceptProtoP\001ZMcloud.goo" + + "gle.com/go/networksecurity/apiv1/network" + + "securitypb;networksecuritypb\252\002\037Google.Cl" + + "oud.NetworkSecurity.V1\312\002\037Google\\Cloud\\Ne" + + "tworkSecurity\\V1\352\002\"Google::Cloud::Networ" + + "kSecurity::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "InterceptDeploymentGroup", + "ConnectedDeploymentGroup", + "State", + "Reconciling", + "Associations", + "Description", + }); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_ConnectedDeploymentGroup_descriptor, + new java.lang.String[] { + "Name", "Locations", + }); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_AssociationDetails_descriptor, + new java.lang.String[] { + "Name", "Network", "State", + }); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_descriptor + .getNestedType(2); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_descriptor, + new java.lang.String[] { + "InterceptEndpointGroups", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "InterceptEndpointGroupId", "InterceptEndpointGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "InterceptEndpointGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "InterceptEndpointGroup", + "Network", + "LocationsDetails", + "State", + "Reconciling", + "Locations", + "NetworkCookie", + }); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LocationDetails_descriptor, + new java.lang.String[] { + "Location", "State", + }); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptEndpointGroupAssociation_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_descriptor, + new java.lang.String[] { + "InterceptEndpointGroupAssociations", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetInterceptEndpointGroupAssociationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateInterceptEndpointGroupAssociationRequest_descriptor, + new java.lang.String[] { + "Parent", + "InterceptEndpointGroupAssociationId", + "InterceptEndpointGroupAssociation", + "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "InterceptEndpointGroupAssociation", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteInterceptEndpointGroupAssociationRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Network", + "ConnectedEndpointGroups", + "NestedDeployments", + "State", + "Reconciling", + "Description", + "Locations", + }); + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_ConnectedEndpointGroup_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_Deployment_descriptor, + new java.lang.String[] { + "Name", "State", + }); + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_descriptor + .getNestedType(2); + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptDeploymentGroup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_descriptor, + new java.lang.String[] { + "InterceptDeploymentGroups", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "InterceptDeploymentGroupId", "InterceptDeploymentGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "InterceptDeploymentGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "ForwardingRule", + "InterceptDeploymentGroup", + "State", + "Reconciling", + "Description", + }); + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptDeployment_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_descriptor, + new java.lang.String[] { + "InterceptDeployments", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetInterceptDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateInterceptDeploymentRequest_descriptor, + new java.lang.String[] { + "Parent", "InterceptDeploymentId", "InterceptDeployment", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "InterceptDeployment", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteInterceptDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_InterceptLocation_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_networksecurity_v1_InterceptLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_InterceptLocation_descriptor, + new java.lang.String[] { + "Location", "State", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesRequest.java new file mode 100644 index 000000000000..aff82372d3e0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesRequest.java @@ -0,0 +1,1297 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for requesting list of `AuthzPolicy` resources.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAuthzPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAuthzPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) + ListAuthzPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthzPoliciesRequest"); + } + + // Use ListAuthzPoliciesRequest.newBuilder() to construct. + private ListAuthzPoliciesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthzPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest.class, + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +   * are listed, specified in the following format:
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +   * are listed, specified in the following format:
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. The server might return fewer items than
                                                                                              +   * requested. If unspecified, the server picks an appropriate default.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A token identifying a page of results that the server returns.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A token identifying a page of results that the server returns.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filtering results.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filtering results.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Hint for how to order the results.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Hint for how to order the results.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListAuthzPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest other = + (com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest 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.networksecurity.v1.ListAuthzPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest 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.networksecurity.v1.ListAuthzPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListAuthzPoliciesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for requesting list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAuthzPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest.class, + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest build() { + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest result = + new com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +     * are listed, specified in the following format:
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +     * are listed, specified in the following format:
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +     * are listed, specified in the following format:
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +     * are listed, specified in the following format:
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +     * are listed, specified in the following format:
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. The server might return fewer items than
                                                                                              +     * requested. If unspecified, the server picks an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. The server might return fewer items than
                                                                                              +     * requested. If unspecified, the server picks an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. The server might return fewer items than
                                                                                              +     * requested. If unspecified, the server picks an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filtering results.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) + private static final com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthzPoliciesRequest 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.networksecurity.v1.ListAuthzPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..375377706ba0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesRequestOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListAuthzPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAuthzPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +   * are listed, specified in the following format:
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the `AuthzPolicy` resources
                                                                                              +   * are listed, specified in the following format:
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. The server might return fewer items than
                                                                                              +   * requested. If unspecified, the server picks an appropriate default.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A token identifying a page of results that the server returns.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A token identifying a page of results that the server returns.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filtering results.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filtering results.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Hint for how to order the results.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Hint for how to order the results.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesResponse.java new file mode 100644 index 000000000000..b77fb8389128 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesResponse.java @@ -0,0 +1,1419 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for response to listing `AuthzPolicy` resources.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAuthzPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAuthzPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAuthzPoliciesResponse) + ListAuthzPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthzPoliciesResponse"); + } + + // Use ListAuthzPoliciesResponse.newBuilder() to construct. + private ListAuthzPoliciesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthzPoliciesResponse() { + authzPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse.class, + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse.Builder.class); + } + + public static final int AUTHZ_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List authzPolicies_; + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + @java.lang.Override + public java.util.List getAuthzPoliciesList() { + return authzPolicies_; + } + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + @java.lang.Override + public java.util.List + getAuthzPoliciesOrBuilderList() { + return authzPolicies_; + } + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + @java.lang.Override + public int getAuthzPoliciesCount() { + return authzPolicies_.size(); + } + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicies(int index) { + return authzPolicies_.get(index); + } + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPoliciesOrBuilder( + int index) { + return authzPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token identifying a page of results that the server returns.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token identifying a page of results that the server returns.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < authzPolicies_.size(); i++) { + output.writeMessage(1, authzPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authzPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, authzPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse other = + (com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse) obj; + + if (!getAuthzPoliciesList().equals(other.getAuthzPoliciesList())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthzPoliciesCount() > 0) { + hash = (37 * hash) + AUTHZ_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAuthzPoliciesList().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; + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse 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.networksecurity.v1.ListAuthzPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse 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.networksecurity.v1.ListAuthzPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListAuthzPoliciesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for response to listing `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAuthzPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAuthzPoliciesResponse) + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse.class, + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authzPoliciesBuilder_ == null) { + authzPolicies_ = java.util.Collections.emptyList(); + } else { + authzPolicies_ = null; + authzPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListAuthzPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse build() { + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse result = + new com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse result) { + if (authzPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authzPolicies_ = java.util.Collections.unmodifiableList(authzPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authzPolicies_ = authzPolicies_; + } else { + result.authzPolicies_ = authzPoliciesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse.getDefaultInstance()) + return this; + if (authzPoliciesBuilder_ == null) { + if (!other.authzPolicies_.isEmpty()) { + if (authzPolicies_.isEmpty()) { + authzPolicies_ = other.authzPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthzPoliciesIsMutable(); + authzPolicies_.addAll(other.authzPolicies_); + } + onChanged(); + } + } else { + if (!other.authzPolicies_.isEmpty()) { + if (authzPoliciesBuilder_.isEmpty()) { + authzPoliciesBuilder_.dispose(); + authzPoliciesBuilder_ = null; + authzPolicies_ = other.authzPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + authzPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAuthzPoliciesFieldBuilder() + : null; + } else { + authzPoliciesBuilder_.addAllMessages(other.authzPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.AuthzPolicy m = + input.readMessage( + com.google.cloud.networksecurity.v1.AuthzPolicy.parser(), + extensionRegistry); + if (authzPoliciesBuilder_ == null) { + ensureAuthzPoliciesIsMutable(); + authzPolicies_.add(m); + } else { + authzPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List authzPolicies_ = + java.util.Collections.emptyList(); + + private void ensureAuthzPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authzPolicies_ = + new java.util.ArrayList( + authzPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder> + authzPoliciesBuilder_; + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public java.util.List getAuthzPoliciesList() { + if (authzPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(authzPolicies_); + } else { + return authzPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public int getAuthzPoliciesCount() { + if (authzPoliciesBuilder_ == null) { + return authzPolicies_.size(); + } else { + return authzPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicies(int index) { + if (authzPoliciesBuilder_ == null) { + return authzPolicies_.get(index); + } else { + return authzPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder setAuthzPolicies( + int index, com.google.cloud.networksecurity.v1.AuthzPolicy value) { + if (authzPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthzPoliciesIsMutable(); + authzPolicies_.set(index, value); + onChanged(); + } else { + authzPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder setAuthzPolicies( + int index, com.google.cloud.networksecurity.v1.AuthzPolicy.Builder builderForValue) { + if (authzPoliciesBuilder_ == null) { + ensureAuthzPoliciesIsMutable(); + authzPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + authzPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder addAuthzPolicies(com.google.cloud.networksecurity.v1.AuthzPolicy value) { + if (authzPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthzPoliciesIsMutable(); + authzPolicies_.add(value); + onChanged(); + } else { + authzPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder addAuthzPolicies( + int index, com.google.cloud.networksecurity.v1.AuthzPolicy value) { + if (authzPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthzPoliciesIsMutable(); + authzPolicies_.add(index, value); + onChanged(); + } else { + authzPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder addAuthzPolicies( + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder builderForValue) { + if (authzPoliciesBuilder_ == null) { + ensureAuthzPoliciesIsMutable(); + authzPolicies_.add(builderForValue.build()); + onChanged(); + } else { + authzPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder addAuthzPolicies( + int index, com.google.cloud.networksecurity.v1.AuthzPolicy.Builder builderForValue) { + if (authzPoliciesBuilder_ == null) { + ensureAuthzPoliciesIsMutable(); + authzPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + authzPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder addAllAuthzPolicies( + java.lang.Iterable values) { + if (authzPoliciesBuilder_ == null) { + ensureAuthzPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authzPolicies_); + onChanged(); + } else { + authzPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder clearAuthzPolicies() { + if (authzPoliciesBuilder_ == null) { + authzPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authzPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public Builder removeAuthzPolicies(int index) { + if (authzPoliciesBuilder_ == null) { + ensureAuthzPoliciesIsMutable(); + authzPolicies_.remove(index); + onChanged(); + } else { + authzPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.Builder getAuthzPoliciesBuilder( + int index) { + return internalGetAuthzPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPoliciesOrBuilder( + int index) { + if (authzPoliciesBuilder_ == null) { + return authzPolicies_.get(index); + } else { + return authzPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public java.util.List + getAuthzPoliciesOrBuilderList() { + if (authzPoliciesBuilder_ != null) { + return authzPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authzPolicies_); + } + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.Builder addAuthzPoliciesBuilder() { + return internalGetAuthzPoliciesFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.Builder addAuthzPoliciesBuilder( + int index) { + return internalGetAuthzPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The list of `AuthzPolicy` resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + public java.util.List + getAuthzPoliciesBuilderList() { + return internalGetAuthzPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder> + internalGetAuthzPoliciesFieldBuilder() { + if (authzPoliciesBuilder_ == null) { + authzPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder>( + authzPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + authzPolicies_ = null; + } + return authzPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results that the server returns.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListAuthzPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAuthzPoliciesResponse) + private static final com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthzPoliciesResponse 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.networksecurity.v1.ListAuthzPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..dfded16010e6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAuthzPoliciesResponseOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListAuthzPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAuthzPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + java.util.List getAuthzPoliciesList(); + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicies(int index); + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + int getAuthzPoliciesCount(); + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + java.util.List + getAuthzPoliciesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The list of `AuthzPolicy` resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.AuthzPolicy authz_policies = 1; + */ + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPoliciesOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results that the server returns.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results that the server returns.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsRequest.java new file mode 100644 index 000000000000..f9130e398125 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsRequest.java @@ -0,0 +1,957 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the ListBackendAuthenticationConfigs method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListBackendAuthenticationConfigsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) + ListBackendAuthenticationConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBackendAuthenticationConfigsRequest"); + } + + // Use ListBackendAuthenticationConfigsRequest.newBuilder() to construct. + private ListBackendAuthenticationConfigsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBackendAuthenticationConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest.class, + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the
                                                                                              +   * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +   * `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the
                                                                                              +   * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +   * `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Maximum number of BackendAuthenticationConfigs to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +   * Indicates that this is a continuation of a prior
                                                                                              +   * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +   * should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +   * Indicates that this is a continuation of a prior
                                                                                              +   * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +   * should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.networksecurity.v1.ListBackendAuthenticationConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest other = + (com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + 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.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + 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.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListBackendAuthenticationConfigsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the ListBackendAuthenticationConfigs method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest.class, + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest build() { + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + buildPartial() { + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest result = + new com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the
                                                                                              +     * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +     * `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the
                                                                                              +     * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +     * `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the
                                                                                              +     * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +     * `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the
                                                                                              +     * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +     * `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the
                                                                                              +     * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +     * `projects/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Maximum number of BackendAuthenticationConfigs to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Maximum number of BackendAuthenticationConfigs to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Maximum number of BackendAuthenticationConfigs to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) + private static final com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackendAuthenticationConfigsRequest 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.networksecurity.v1.ListBackendAuthenticationConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..748327073dfa --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListBackendAuthenticationConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the
                                                                                              +   * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +   * `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the
                                                                                              +   * BackendAuthenticationConfigs should be listed, specified in the format
                                                                                              +   * `projects/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Maximum number of BackendAuthenticationConfigs to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +   * Indicates that this is a continuation of a prior
                                                                                              +   * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +   * should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * The value returned by the last `ListBackendAuthenticationConfigsResponse`
                                                                                              +   * Indicates that this is a continuation of a prior
                                                                                              +   * `ListBackendAuthenticationConfigs` call, and that the system
                                                                                              +   * should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsResponse.java new file mode 100644 index 000000000000..dc6e806902d5 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsResponse.java @@ -0,0 +1,1523 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response returned by the ListBackendAuthenticationConfigs method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListBackendAuthenticationConfigsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse) + ListBackendAuthenticationConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBackendAuthenticationConfigsResponse"); + } + + // Use ListBackendAuthenticationConfigsResponse.newBuilder() to construct. + private ListBackendAuthenticationConfigsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBackendAuthenticationConfigsResponse() { + backendAuthenticationConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse.class, + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse.Builder + .class); + } + + public static final int BACKEND_AUTHENTICATION_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + backendAuthenticationConfigs_; + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getBackendAuthenticationConfigsList() { + return backendAuthenticationConfigs_; + } + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder> + getBackendAuthenticationConfigsOrBuilderList() { + return backendAuthenticationConfigs_; + } + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + @java.lang.Override + public int getBackendAuthenticationConfigsCount() { + return backendAuthenticationConfigs_.size(); + } + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getBackendAuthenticationConfigs(int index) { + return backendAuthenticationConfigs_.get(index); + } + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigsOrBuilder(int index) { + return backendAuthenticationConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < backendAuthenticationConfigs_.size(); i++) { + output.writeMessage(1, backendAuthenticationConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < backendAuthenticationConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, backendAuthenticationConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse other = + (com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse) obj; + + if (!getBackendAuthenticationConfigsList().equals(other.getBackendAuthenticationConfigsList())) + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBackendAuthenticationConfigsCount() > 0) { + hash = (37 * hash) + BACKEND_AUTHENTICATION_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getBackendAuthenticationConfigsList().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; + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + 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.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + 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.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListBackendAuthenticationConfigsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response returned by the ListBackendAuthenticationConfigs method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse) + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse.class, + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backendAuthenticationConfigsBuilder_ == null) { + backendAuthenticationConfigs_ = java.util.Collections.emptyList(); + } else { + backendAuthenticationConfigs_ = null; + backendAuthenticationConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_ListBackendAuthenticationConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse build() { + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + buildPartial() { + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse result = + new com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse result) { + if (backendAuthenticationConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backendAuthenticationConfigs_ = + java.util.Collections.unmodifiableList(backendAuthenticationConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backendAuthenticationConfigs_ = backendAuthenticationConfigs_; + } else { + result.backendAuthenticationConfigs_ = backendAuthenticationConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + .getDefaultInstance()) return this; + if (backendAuthenticationConfigsBuilder_ == null) { + if (!other.backendAuthenticationConfigs_.isEmpty()) { + if (backendAuthenticationConfigs_.isEmpty()) { + backendAuthenticationConfigs_ = other.backendAuthenticationConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.addAll(other.backendAuthenticationConfigs_); + } + onChanged(); + } + } else { + if (!other.backendAuthenticationConfigs_.isEmpty()) { + if (backendAuthenticationConfigsBuilder_.isEmpty()) { + backendAuthenticationConfigsBuilder_.dispose(); + backendAuthenticationConfigsBuilder_ = null; + backendAuthenticationConfigs_ = other.backendAuthenticationConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + backendAuthenticationConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBackendAuthenticationConfigsFieldBuilder() + : null; + } else { + backendAuthenticationConfigsBuilder_.addAllMessages( + other.backendAuthenticationConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig m = + input.readMessage( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.parser(), + extensionRegistry); + if (backendAuthenticationConfigsBuilder_ == null) { + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.add(m); + } else { + backendAuthenticationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + backendAuthenticationConfigs_ = java.util.Collections.emptyList(); + + private void ensureBackendAuthenticationConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backendAuthenticationConfigs_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig>( + backendAuthenticationConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder> + backendAuthenticationConfigsBuilder_; + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public java.util.List + getBackendAuthenticationConfigsList() { + if (backendAuthenticationConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backendAuthenticationConfigs_); + } else { + return backendAuthenticationConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public int getBackendAuthenticationConfigsCount() { + if (backendAuthenticationConfigsBuilder_ == null) { + return backendAuthenticationConfigs_.size(); + } else { + return backendAuthenticationConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getBackendAuthenticationConfigs(int index) { + if (backendAuthenticationConfigsBuilder_ == null) { + return backendAuthenticationConfigs_.get(index); + } else { + return backendAuthenticationConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder setBackendAuthenticationConfigs( + int index, com.google.cloud.networksecurity.v1.BackendAuthenticationConfig value) { + if (backendAuthenticationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.set(index, value); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder setBackendAuthenticationConfigs( + int index, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder builderForValue) { + if (backendAuthenticationConfigsBuilder_ == null) { + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder addBackendAuthenticationConfigs( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig value) { + if (backendAuthenticationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.add(value); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder addBackendAuthenticationConfigs( + int index, com.google.cloud.networksecurity.v1.BackendAuthenticationConfig value) { + if (backendAuthenticationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.add(index, value); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder addBackendAuthenticationConfigs( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder builderForValue) { + if (backendAuthenticationConfigsBuilder_ == null) { + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.add(builderForValue.build()); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder addBackendAuthenticationConfigs( + int index, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder builderForValue) { + if (backendAuthenticationConfigsBuilder_ == null) { + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder addAllBackendAuthenticationConfigs( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.BackendAuthenticationConfig> + values) { + if (backendAuthenticationConfigsBuilder_ == null) { + ensureBackendAuthenticationConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, backendAuthenticationConfigs_); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder clearBackendAuthenticationConfigs() { + if (backendAuthenticationConfigsBuilder_ == null) { + backendAuthenticationConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public Builder removeBackendAuthenticationConfigs(int index) { + if (backendAuthenticationConfigsBuilder_ == null) { + ensureBackendAuthenticationConfigsIsMutable(); + backendAuthenticationConfigs_.remove(index); + onChanged(); + } else { + backendAuthenticationConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder + getBackendAuthenticationConfigsBuilder(int index) { + return internalGetBackendAuthenticationConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigsOrBuilder(int index) { + if (backendAuthenticationConfigsBuilder_ == null) { + return backendAuthenticationConfigs_.get(index); + } else { + return backendAuthenticationConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder> + getBackendAuthenticationConfigsOrBuilderList() { + if (backendAuthenticationConfigsBuilder_ != null) { + return backendAuthenticationConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backendAuthenticationConfigs_); + } + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder + addBackendAuthenticationConfigsBuilder() { + return internalGetBackendAuthenticationConfigsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder + addBackendAuthenticationConfigsBuilder(int index) { + return internalGetBackendAuthenticationConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of BackendAuthenticationConfig resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + public java.util.List + getBackendAuthenticationConfigsBuilderList() { + return internalGetBackendAuthenticationConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder> + internalGetBackendAuthenticationConfigsFieldBuilder() { + if (backendAuthenticationConfigsBuilder_ == null) { + backendAuthenticationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder>( + backendAuthenticationConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + backendAuthenticationConfigs_ = null; + } + return backendAuthenticationConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse) + private static final com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackendAuthenticationConfigsResponse 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.networksecurity.v1.ListBackendAuthenticationConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..c90bd9fc2afe --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListBackendAuthenticationConfigsResponseOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListBackendAuthenticationConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + java.util.List + getBackendAuthenticationConfigsList(); + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig getBackendAuthenticationConfigs( + int index); + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + int getBackendAuthenticationConfigsCount(); + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + java.util.List + getBackendAuthenticationConfigsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * List of BackendAuthenticationConfig resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_configs = 1; + * + */ + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsRequest.java new file mode 100644 index 000000000000..cc244e3dd8d9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsRequest.java @@ -0,0 +1,924 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The message for requesting a list of DnsThreatDetectors in the project.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest} + */ +@com.google.protobuf.Generated +public final class ListDnsThreatDetectorsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) + ListDnsThreatDetectorsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDnsThreatDetectorsRequest"); + } + + // Use ListDnsThreatDetectorsRequest.newBuilder() to construct. + private ListDnsThreatDetectorsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDnsThreatDetectorsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest.class, + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. The requested page size. The server may return fewer items than
                                                                                              +   * requested. If unspecified, the server picks an appropriate default.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token received from a previous
                                                                                              +   * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +   * subsequent page.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token received from a previous
                                                                                              +   * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +   * subsequent page.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.networksecurity.v1.ListDnsThreatDetectorsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest other = + (com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest 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.networksecurity.v1.ListDnsThreatDetectorsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest 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.networksecurity.v1.ListDnsThreatDetectorsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListDnsThreatDetectorsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The message for requesting a list of DnsThreatDetectors in the project.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest.class, + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest build() { + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest result = + new com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. The requested page size. The server may return fewer items than
                                                                                              +     * requested. If unspecified, the server picks an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. The requested page size. The server may return fewer items than
                                                                                              +     * requested. If unspecified, the server picks an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The requested page size. The server may return fewer items than
                                                                                              +     * requested. If unspecified, the server picks an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token received from a previous
                                                                                              +     * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +     * subsequent page.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token received from a previous
                                                                                              +     * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +     * subsequent page.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token received from a previous
                                                                                              +     * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +     * subsequent page.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token received from a previous
                                                                                              +     * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +     * subsequent page.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token received from a previous
                                                                                              +     * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +     * subsequent page.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) + private static final com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDnsThreatDetectorsRequest 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.networksecurity.v1.ListDnsThreatDetectorsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsRequestOrBuilder.java new file mode 100644 index 000000000000..8b5eb2533866 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListDnsThreatDetectorsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent value for `ListDnsThreatDetectorsRequest`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. The requested page size. The server may return fewer items than
                                                                                              +   * requested. If unspecified, the server picks an appropriate default.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token received from a previous
                                                                                              +   * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +   * subsequent page.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token received from a previous
                                                                                              +   * `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
                                                                                              +   * subsequent page.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsResponse.java new file mode 100644 index 000000000000..12cdd2731c9a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsResponse.java @@ -0,0 +1,1456 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The response message to requesting a list of DnsThreatDetectors.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse} + */ +@com.google.protobuf.Generated +public final class ListDnsThreatDetectorsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse) + ListDnsThreatDetectorsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDnsThreatDetectorsResponse"); + } + + // Use ListDnsThreatDetectorsResponse.newBuilder() to construct. + private ListDnsThreatDetectorsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDnsThreatDetectorsResponse() { + dnsThreatDetectors_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse.class, + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse.Builder.class); + } + + public static final int DNS_THREAT_DETECTORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dnsThreatDetectors_; + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + @java.lang.Override + public java.util.List + getDnsThreatDetectorsList() { + return dnsThreatDetectors_; + } + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + @java.lang.Override + public java.util.List + getDnsThreatDetectorsOrBuilderList() { + return dnsThreatDetectors_; + } + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + @java.lang.Override + public int getDnsThreatDetectorsCount() { + return dnsThreatDetectors_.size(); + } + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetectors(int index) { + return dnsThreatDetectors_.get(index); + } + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder + getDnsThreatDetectorsOrBuilder(int index) { + return dnsThreatDetectors_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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 + 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 < dnsThreatDetectors_.size(); i++) { + output.writeMessage(1, dnsThreatDetectors_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dnsThreatDetectors_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, dnsThreatDetectors_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse other = + (com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse) obj; + + if (!getDnsThreatDetectorsList().equals(other.getDnsThreatDetectorsList())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDnsThreatDetectorsCount() > 0) { + hash = (37 * hash) + DNS_THREAT_DETECTORS_FIELD_NUMBER; + hash = (53 * hash) + getDnsThreatDetectorsList().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; + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse 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.networksecurity.v1.ListDnsThreatDetectorsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse 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.networksecurity.v1.ListDnsThreatDetectorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListDnsThreatDetectorsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The response message to requesting a list of DnsThreatDetectors.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse) + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse.class, + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dnsThreatDetectorsBuilder_ == null) { + dnsThreatDetectors_ = java.util.Collections.emptyList(); + } else { + dnsThreatDetectors_ = null; + dnsThreatDetectorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_ListDnsThreatDetectorsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse build() { + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse result = + new com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse result) { + if (dnsThreatDetectorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dnsThreatDetectors_ = java.util.Collections.unmodifiableList(dnsThreatDetectors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dnsThreatDetectors_ = dnsThreatDetectors_; + } else { + result.dnsThreatDetectors_ = dnsThreatDetectorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + .getDefaultInstance()) return this; + if (dnsThreatDetectorsBuilder_ == null) { + if (!other.dnsThreatDetectors_.isEmpty()) { + if (dnsThreatDetectors_.isEmpty()) { + dnsThreatDetectors_ = other.dnsThreatDetectors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.addAll(other.dnsThreatDetectors_); + } + onChanged(); + } + } else { + if (!other.dnsThreatDetectors_.isEmpty()) { + if (dnsThreatDetectorsBuilder_.isEmpty()) { + dnsThreatDetectorsBuilder_.dispose(); + dnsThreatDetectorsBuilder_ = null; + dnsThreatDetectors_ = other.dnsThreatDetectors_; + bitField0_ = (bitField0_ & ~0x00000001); + dnsThreatDetectorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDnsThreatDetectorsFieldBuilder() + : null; + } else { + dnsThreatDetectorsBuilder_.addAllMessages(other.dnsThreatDetectors_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.DnsThreatDetector m = + input.readMessage( + com.google.cloud.networksecurity.v1.DnsThreatDetector.parser(), + extensionRegistry); + if (dnsThreatDetectorsBuilder_ == null) { + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.add(m); + } else { + dnsThreatDetectorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + dnsThreatDetectors_ = java.util.Collections.emptyList(); + + private void ensureDnsThreatDetectorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dnsThreatDetectors_ = + new java.util.ArrayList( + dnsThreatDetectors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder> + dnsThreatDetectorsBuilder_; + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public java.util.List + getDnsThreatDetectorsList() { + if (dnsThreatDetectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dnsThreatDetectors_); + } else { + return dnsThreatDetectorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public int getDnsThreatDetectorsCount() { + if (dnsThreatDetectorsBuilder_ == null) { + return dnsThreatDetectors_.size(); + } else { + return dnsThreatDetectorsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetectors(int index) { + if (dnsThreatDetectorsBuilder_ == null) { + return dnsThreatDetectors_.get(index); + } else { + return dnsThreatDetectorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder setDnsThreatDetectors( + int index, com.google.cloud.networksecurity.v1.DnsThreatDetector value) { + if (dnsThreatDetectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.set(index, value); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder setDnsThreatDetectors( + int index, com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder builderForValue) { + if (dnsThreatDetectorsBuilder_ == null) { + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.set(index, builderForValue.build()); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder addDnsThreatDetectors( + com.google.cloud.networksecurity.v1.DnsThreatDetector value) { + if (dnsThreatDetectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.add(value); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder addDnsThreatDetectors( + int index, com.google.cloud.networksecurity.v1.DnsThreatDetector value) { + if (dnsThreatDetectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.add(index, value); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder addDnsThreatDetectors( + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder builderForValue) { + if (dnsThreatDetectorsBuilder_ == null) { + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.add(builderForValue.build()); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder addDnsThreatDetectors( + int index, com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder builderForValue) { + if (dnsThreatDetectorsBuilder_ == null) { + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.add(index, builderForValue.build()); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder addAllDnsThreatDetectors( + java.lang.Iterable + values) { + if (dnsThreatDetectorsBuilder_ == null) { + ensureDnsThreatDetectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dnsThreatDetectors_); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder clearDnsThreatDetectors() { + if (dnsThreatDetectorsBuilder_ == null) { + dnsThreatDetectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public Builder removeDnsThreatDetectors(int index) { + if (dnsThreatDetectorsBuilder_ == null) { + ensureDnsThreatDetectorsIsMutable(); + dnsThreatDetectors_.remove(index); + onChanged(); + } else { + dnsThreatDetectorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder + getDnsThreatDetectorsBuilder(int index) { + return internalGetDnsThreatDetectorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder + getDnsThreatDetectorsOrBuilder(int index) { + if (dnsThreatDetectorsBuilder_ == null) { + return dnsThreatDetectors_.get(index); + } else { + return dnsThreatDetectorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public java.util.List + getDnsThreatDetectorsOrBuilderList() { + if (dnsThreatDetectorsBuilder_ != null) { + return dnsThreatDetectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dnsThreatDetectors_); + } + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder + addDnsThreatDetectorsBuilder() { + return internalGetDnsThreatDetectorsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder + addDnsThreatDetectorsBuilder(int index) { + return internalGetDnsThreatDetectorsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The list of DnsThreatDetector resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + public java.util.List + getDnsThreatDetectorsBuilderList() { + return internalGetDnsThreatDetectorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder> + internalGetDnsThreatDetectorsFieldBuilder() { + if (dnsThreatDetectorsBuilder_ == null) { + dnsThreatDetectorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder>( + dnsThreatDetectors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dnsThreatDetectors_ = null; + } + return dnsThreatDetectorsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse) + private static final com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDnsThreatDetectorsResponse 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.networksecurity.v1.ListDnsThreatDetectorsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsResponseOrBuilder.java new file mode 100644 index 000000000000..8144e3895a22 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListDnsThreatDetectorsResponseOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListDnsThreatDetectorsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + java.util.List getDnsThreatDetectorsList(); + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetectors(int index); + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + int getDnsThreatDetectorsCount(); + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + java.util.List + getDnsThreatDetectorsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The list of DnsThreatDetector resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detectors = 1; + * + */ + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder getDnsThreatDetectorsOrBuilder( + int index); + + /** + * + * + *
                                                                                              +   * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token, which can be sent as `page_token`, to retrieve the next page.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Unordered list. Unreachable `DnsThreatDetector` resources.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsRequest.java new file mode 100644 index 000000000000..954281683429 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsRequest.java @@ -0,0 +1,1304 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for requesting list of Associations
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest} + */ +@com.google.protobuf.Generated +public final class ListFirewallEndpointAssociationsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) + ListFirewallEndpointAssociationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFirewallEndpointAssociationsRequest"); + } + + // Use ListFirewallEndpointAssociationsRequest.newBuilder() to construct. + private ListFirewallEndpointAssociationsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFirewallEndpointAssociationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest.class, + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Parent value for ListAssociationsRequest
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Parent value for ListAssociationsRequest
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filtering results
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filtering results
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Hint for how to order the results
                                                                                              +   * 
                                                                                              + * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Hint for how to order the results
                                                                                              +   * 
                                                                                              + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListFirewallEndpointAssociationsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest other = + (com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + 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.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + 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.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListFirewallEndpointAssociationsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for requesting list of Associations
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest.class, + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest build() { + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + buildPartial() { + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest result = + new com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListAssociationsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListAssociationsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListAssociationsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListAssociationsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListAssociationsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) + private static final com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirewallEndpointAssociationsRequest 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.networksecurity.v1.ListFirewallEndpointAssociationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsRequestOrBuilder.java new file mode 100644 index 000000000000..e746afd16538 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListFirewallEndpointAssociationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Parent value for ListAssociationsRequest
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. Parent value for ListAssociationsRequest
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filtering results
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filtering results
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Hint for how to order the results
                                                                                              +   * 
                                                                                              + * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Hint for how to order the results
                                                                                              +   * 
                                                                                              + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsResponse.java new file mode 100644 index 000000000000..e509dbb13106 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsResponse.java @@ -0,0 +1,1509 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for response to listing Associations
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse} + */ +@com.google.protobuf.Generated +public final class ListFirewallEndpointAssociationsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse) + ListFirewallEndpointAssociationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFirewallEndpointAssociationsResponse"); + } + + // Use ListFirewallEndpointAssociationsResponse.newBuilder() to construct. + private ListFirewallEndpointAssociationsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFirewallEndpointAssociationsResponse() { + firewallEndpointAssociations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse.class, + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse.Builder + .class); + } + + public static final int FIREWALL_ENDPOINT_ASSOCIATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + firewallEndpointAssociations_; + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + @java.lang.Override + public java.util.List + getFirewallEndpointAssociationsList() { + return firewallEndpointAssociations_; + } + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder> + getFirewallEndpointAssociationsOrBuilderList() { + return firewallEndpointAssociations_; + } + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + @java.lang.Override + public int getFirewallEndpointAssociationsCount() { + return firewallEndpointAssociations_.size(); + } + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getFirewallEndpointAssociations(int index) { + return firewallEndpointAssociations_.get(index); + } + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationsOrBuilder(int index) { + return firewallEndpointAssociations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < firewallEndpointAssociations_.size(); i++) { + output.writeMessage(1, firewallEndpointAssociations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < firewallEndpointAssociations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, firewallEndpointAssociations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse other = + (com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse) obj; + + if (!getFirewallEndpointAssociationsList().equals(other.getFirewallEndpointAssociationsList())) + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFirewallEndpointAssociationsCount() > 0) { + hash = (37 * hash) + FIREWALL_ENDPOINT_ASSOCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpointAssociationsList().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; + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + 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.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + 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.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListFirewallEndpointAssociationsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for response to listing Associations
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse) + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse.class, + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (firewallEndpointAssociationsBuilder_ == null) { + firewallEndpointAssociations_ = java.util.Collections.emptyList(); + } else { + firewallEndpointAssociations_ = null; + firewallEndpointAssociationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointAssociationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse build() { + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + buildPartial() { + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse result = + new com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse result) { + if (firewallEndpointAssociationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + firewallEndpointAssociations_ = + java.util.Collections.unmodifiableList(firewallEndpointAssociations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.firewallEndpointAssociations_ = firewallEndpointAssociations_; + } else { + result.firewallEndpointAssociations_ = firewallEndpointAssociationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + .getDefaultInstance()) return this; + if (firewallEndpointAssociationsBuilder_ == null) { + if (!other.firewallEndpointAssociations_.isEmpty()) { + if (firewallEndpointAssociations_.isEmpty()) { + firewallEndpointAssociations_ = other.firewallEndpointAssociations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.addAll(other.firewallEndpointAssociations_); + } + onChanged(); + } + } else { + if (!other.firewallEndpointAssociations_.isEmpty()) { + if (firewallEndpointAssociationsBuilder_.isEmpty()) { + firewallEndpointAssociationsBuilder_.dispose(); + firewallEndpointAssociationsBuilder_ = null; + firewallEndpointAssociations_ = other.firewallEndpointAssociations_; + bitField0_ = (bitField0_ & ~0x00000001); + firewallEndpointAssociationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFirewallEndpointAssociationsFieldBuilder() + : null; + } else { + firewallEndpointAssociationsBuilder_.addAllMessages( + other.firewallEndpointAssociations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation m = + input.readMessage( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.parser(), + extensionRegistry); + if (firewallEndpointAssociationsBuilder_ == null) { + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.add(m); + } else { + firewallEndpointAssociationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + firewallEndpointAssociations_ = java.util.Collections.emptyList(); + + private void ensureFirewallEndpointAssociationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + firewallEndpointAssociations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation>( + firewallEndpointAssociations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder> + firewallEndpointAssociationsBuilder_; + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public java.util.List + getFirewallEndpointAssociationsList() { + if (firewallEndpointAssociationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(firewallEndpointAssociations_); + } else { + return firewallEndpointAssociationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public int getFirewallEndpointAssociationsCount() { + if (firewallEndpointAssociationsBuilder_ == null) { + return firewallEndpointAssociations_.size(); + } else { + return firewallEndpointAssociationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getFirewallEndpointAssociations(int index) { + if (firewallEndpointAssociationsBuilder_ == null) { + return firewallEndpointAssociations_.get(index); + } else { + return firewallEndpointAssociationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder setFirewallEndpointAssociations( + int index, com.google.cloud.networksecurity.v1.FirewallEndpointAssociation value) { + if (firewallEndpointAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.set(index, value); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder setFirewallEndpointAssociations( + int index, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder builderForValue) { + if (firewallEndpointAssociationsBuilder_ == null) { + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.set(index, builderForValue.build()); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder addFirewallEndpointAssociations( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation value) { + if (firewallEndpointAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.add(value); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder addFirewallEndpointAssociations( + int index, com.google.cloud.networksecurity.v1.FirewallEndpointAssociation value) { + if (firewallEndpointAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.add(index, value); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder addFirewallEndpointAssociations( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder builderForValue) { + if (firewallEndpointAssociationsBuilder_ == null) { + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.add(builderForValue.build()); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder addFirewallEndpointAssociations( + int index, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder builderForValue) { + if (firewallEndpointAssociationsBuilder_ == null) { + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.add(index, builderForValue.build()); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder addAllFirewallEndpointAssociations( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.FirewallEndpointAssociation> + values) { + if (firewallEndpointAssociationsBuilder_ == null) { + ensureFirewallEndpointAssociationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, firewallEndpointAssociations_); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder clearFirewallEndpointAssociations() { + if (firewallEndpointAssociationsBuilder_ == null) { + firewallEndpointAssociations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public Builder removeFirewallEndpointAssociations(int index) { + if (firewallEndpointAssociationsBuilder_ == null) { + ensureFirewallEndpointAssociationsIsMutable(); + firewallEndpointAssociations_.remove(index); + onChanged(); + } else { + firewallEndpointAssociationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder + getFirewallEndpointAssociationsBuilder(int index) { + return internalGetFirewallEndpointAssociationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationsOrBuilder(int index) { + if (firewallEndpointAssociationsBuilder_ == null) { + return firewallEndpointAssociations_.get(index); + } else { + return firewallEndpointAssociationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder> + getFirewallEndpointAssociationsOrBuilderList() { + if (firewallEndpointAssociationsBuilder_ != null) { + return firewallEndpointAssociationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(firewallEndpointAssociations_); + } + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder + addFirewallEndpointAssociationsBuilder() { + return internalGetFirewallEndpointAssociationsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder + addFirewallEndpointAssociationsBuilder(int index) { + return internalGetFirewallEndpointAssociationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The list of Association
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + public java.util.List + getFirewallEndpointAssociationsBuilderList() { + return internalGetFirewallEndpointAssociationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder> + internalGetFirewallEndpointAssociationsFieldBuilder() { + if (firewallEndpointAssociationsBuilder_ == null) { + firewallEndpointAssociationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder>( + firewallEndpointAssociations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + firewallEndpointAssociations_ = null; + } + return firewallEndpointAssociationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse) + private static final com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirewallEndpointAssociationsResponse 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.networksecurity.v1.ListFirewallEndpointAssociationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsResponseOrBuilder.java new file mode 100644 index 000000000000..34d0a5fd47f4 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointAssociationsResponseOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListFirewallEndpointAssociationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + java.util.List + getFirewallEndpointAssociationsList(); + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation getFirewallEndpointAssociations( + int index); + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + int getFirewallEndpointAssociationsCount(); + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + java.util.List + getFirewallEndpointAssociationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The list of Association
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_associations = 1; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsRequest.java new file mode 100644 index 000000000000..a8a9c747bd54 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for requesting list of Endpoints
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListFirewallEndpointsRequest} + */ +@com.google.protobuf.Generated +public final class ListFirewallEndpointsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) + ListFirewallEndpointsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFirewallEndpointsRequest"); + } + + // Use ListFirewallEndpointsRequest.newBuilder() to construct. + private ListFirewallEndpointsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFirewallEndpointsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest.class, + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Parent value for ListEndpointsRequest
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Parent value for ListEndpointsRequest
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filtering results
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filtering results
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Hint for how to order the results
                                                                                              +   * 
                                                                                              + * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Hint for how to order the results
                                                                                              +   * 
                                                                                              + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListFirewallEndpointsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest other = + (com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest 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.networksecurity.v1.ListFirewallEndpointsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest 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.networksecurity.v1.ListFirewallEndpointsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListFirewallEndpointsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for requesting list of Endpoints
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListFirewallEndpointsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest.class, + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest build() { + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest result = + new com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListEndpointsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListEndpointsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListEndpointsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListEndpointsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Parent value for ListEndpointsRequest
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filtering results
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Hint for how to order the results
                                                                                              +     * 
                                                                                              + * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) + private static final com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirewallEndpointsRequest 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.networksecurity.v1.ListFirewallEndpointsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsRequestOrBuilder.java new file mode 100644 index 000000000000..cec177cd659a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListFirewallEndpointsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListFirewallEndpointsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Parent value for ListEndpointsRequest
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. Parent value for ListEndpointsRequest
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filtering results
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filtering results
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Hint for how to order the results
                                                                                              +   * 
                                                                                              + * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Hint for how to order the results
                                                                                              +   * 
                                                                                              + * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsResponse.java new file mode 100644 index 000000000000..b181291c9ba1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsResponse.java @@ -0,0 +1,1448 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for response to listing Endpoints
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListFirewallEndpointsResponse} + */ +@com.google.protobuf.Generated +public final class ListFirewallEndpointsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListFirewallEndpointsResponse) + ListFirewallEndpointsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFirewallEndpointsResponse"); + } + + // Use ListFirewallEndpointsResponse.newBuilder() to construct. + private ListFirewallEndpointsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFirewallEndpointsResponse() { + firewallEndpoints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse.class, + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse.Builder.class); + } + + public static final int FIREWALL_ENDPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List firewallEndpoints_; + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + @java.lang.Override + public java.util.List + getFirewallEndpointsList() { + return firewallEndpoints_; + } + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + @java.lang.Override + public java.util.List + getFirewallEndpointsOrBuilderList() { + return firewallEndpoints_; + } + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + @java.lang.Override + public int getFirewallEndpointsCount() { + return firewallEndpoints_.size(); + } + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoints(int index) { + return firewallEndpoints_.get(index); + } + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder + getFirewallEndpointsOrBuilder(int index) { + return firewallEndpoints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < firewallEndpoints_.size(); i++) { + output.writeMessage(1, firewallEndpoints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < firewallEndpoints_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, firewallEndpoints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse other = + (com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse) obj; + + if (!getFirewallEndpointsList().equals(other.getFirewallEndpointsList())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFirewallEndpointsCount() > 0) { + hash = (37 * hash) + FIREWALL_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpointsList().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; + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse 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.networksecurity.v1.ListFirewallEndpointsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse 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.networksecurity.v1.ListFirewallEndpointsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListFirewallEndpointsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for response to listing Endpoints
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListFirewallEndpointsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListFirewallEndpointsResponse) + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse.class, + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (firewallEndpointsBuilder_ == null) { + firewallEndpoints_ = java.util.Collections.emptyList(); + } else { + firewallEndpoints_ = null; + firewallEndpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_ListFirewallEndpointsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse build() { + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse result = + new com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse result) { + if (firewallEndpointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + firewallEndpoints_ = java.util.Collections.unmodifiableList(firewallEndpoints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.firewallEndpoints_ = firewallEndpoints_; + } else { + result.firewallEndpoints_ = firewallEndpointsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse.getDefaultInstance()) + return this; + if (firewallEndpointsBuilder_ == null) { + if (!other.firewallEndpoints_.isEmpty()) { + if (firewallEndpoints_.isEmpty()) { + firewallEndpoints_ = other.firewallEndpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.addAll(other.firewallEndpoints_); + } + onChanged(); + } + } else { + if (!other.firewallEndpoints_.isEmpty()) { + if (firewallEndpointsBuilder_.isEmpty()) { + firewallEndpointsBuilder_.dispose(); + firewallEndpointsBuilder_ = null; + firewallEndpoints_ = other.firewallEndpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + firewallEndpointsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFirewallEndpointsFieldBuilder() + : null; + } else { + firewallEndpointsBuilder_.addAllMessages(other.firewallEndpoints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.FirewallEndpoint m = + input.readMessage( + com.google.cloud.networksecurity.v1.FirewallEndpoint.parser(), + extensionRegistry); + if (firewallEndpointsBuilder_ == null) { + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.add(m); + } else { + firewallEndpointsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + firewallEndpoints_ = java.util.Collections.emptyList(); + + private void ensureFirewallEndpointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + firewallEndpoints_ = + new java.util.ArrayList( + firewallEndpoints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder> + firewallEndpointsBuilder_; + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public java.util.List + getFirewallEndpointsList() { + if (firewallEndpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(firewallEndpoints_); + } else { + return firewallEndpointsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public int getFirewallEndpointsCount() { + if (firewallEndpointsBuilder_ == null) { + return firewallEndpoints_.size(); + } else { + return firewallEndpointsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoints(int index) { + if (firewallEndpointsBuilder_ == null) { + return firewallEndpoints_.get(index); + } else { + return firewallEndpointsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder setFirewallEndpoints( + int index, com.google.cloud.networksecurity.v1.FirewallEndpoint value) { + if (firewallEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.set(index, value); + onChanged(); + } else { + firewallEndpointsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder setFirewallEndpoints( + int index, com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder builderForValue) { + if (firewallEndpointsBuilder_ == null) { + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + firewallEndpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder addFirewallEndpoints( + com.google.cloud.networksecurity.v1.FirewallEndpoint value) { + if (firewallEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.add(value); + onChanged(); + } else { + firewallEndpointsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder addFirewallEndpoints( + int index, com.google.cloud.networksecurity.v1.FirewallEndpoint value) { + if (firewallEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.add(index, value); + onChanged(); + } else { + firewallEndpointsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder addFirewallEndpoints( + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder builderForValue) { + if (firewallEndpointsBuilder_ == null) { + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.add(builderForValue.build()); + onChanged(); + } else { + firewallEndpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder addFirewallEndpoints( + int index, com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder builderForValue) { + if (firewallEndpointsBuilder_ == null) { + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + firewallEndpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder addAllFirewallEndpoints( + java.lang.Iterable values) { + if (firewallEndpointsBuilder_ == null) { + ensureFirewallEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, firewallEndpoints_); + onChanged(); + } else { + firewallEndpointsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder clearFirewallEndpoints() { + if (firewallEndpointsBuilder_ == null) { + firewallEndpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + firewallEndpointsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public Builder removeFirewallEndpoints(int index) { + if (firewallEndpointsBuilder_ == null) { + ensureFirewallEndpointsIsMutable(); + firewallEndpoints_.remove(index); + onChanged(); + } else { + firewallEndpointsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder getFirewallEndpointsBuilder( + int index) { + return internalGetFirewallEndpointsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder + getFirewallEndpointsOrBuilder(int index) { + if (firewallEndpointsBuilder_ == null) { + return firewallEndpoints_.get(index); + } else { + return firewallEndpointsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public java.util.List + getFirewallEndpointsOrBuilderList() { + if (firewallEndpointsBuilder_ != null) { + return firewallEndpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(firewallEndpoints_); + } + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder + addFirewallEndpointsBuilder() { + return internalGetFirewallEndpointsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder addFirewallEndpointsBuilder( + int index) { + return internalGetFirewallEndpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The list of Endpoint
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + * + */ + public java.util.List + getFirewallEndpointsBuilderList() { + return internalGetFirewallEndpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder> + internalGetFirewallEndpointsFieldBuilder() { + if (firewallEndpointsBuilder_ == null) { + firewallEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder>( + firewallEndpoints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + firewallEndpoints_ = null; + } + return firewallEndpointsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListFirewallEndpointsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListFirewallEndpointsResponse) + private static final com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirewallEndpointsResponse 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.networksecurity.v1.ListFirewallEndpointsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsResponseOrBuilder.java new file mode 100644 index 000000000000..98476ae8a59d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListFirewallEndpointsResponseOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListFirewallEndpointsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListFirewallEndpointsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + java.util.List getFirewallEndpointsList(); + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoints(int index); + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + int getFirewallEndpointsCount(); + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + java.util.List + getFirewallEndpointsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The list of Endpoint
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoints = 1; + */ + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder getFirewallEndpointsOrBuilder( + int index); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesRequest.java new file mode 100644 index 000000000000..786477e07379 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesRequest.java @@ -0,0 +1,945 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used with the ListGatewaySecurityPolicies method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListGatewaySecurityPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) + ListGatewaySecurityPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListGatewaySecurityPoliciesRequest"); + } + + // Use ListGatewaySecurityPoliciesRequest.newBuilder() to construct. + private ListGatewaySecurityPoliciesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListGatewaySecurityPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest.class, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +   * should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +   * should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Maximum number of GatewaySecurityPolicies to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.networksecurity.v1.ListGatewaySecurityPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest other = + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest 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.networksecurity.v1.ListGatewaySecurityPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest 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.networksecurity.v1.ListGatewaySecurityPoliciesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListGatewaySecurityPoliciesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used with the ListGatewaySecurityPolicies method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest.class, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest build() { + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest result = + new com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Maximum number of GatewaySecurityPolicies to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Maximum number of GatewaySecurityPolicies to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Maximum number of GatewaySecurityPolicies to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) + private static final com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewaySecurityPoliciesRequest 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.networksecurity.v1.ListGatewaySecurityPoliciesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..d8ce6ba6171e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListGatewaySecurityPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +   * should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the GatewaySecurityPolicies
                                                                                              +   * should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Maximum number of GatewaySecurityPolicies to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListGatewaySecurityPoliciesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListGatewaySecurityPolicies' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesResponse.java new file mode 100644 index 000000000000..a4b753cd366a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesResponse.java @@ -0,0 +1,1510 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response returned by the ListGatewaySecurityPolicies method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListGatewaySecurityPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse) + ListGatewaySecurityPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListGatewaySecurityPoliciesResponse"); + } + + // Use ListGatewaySecurityPoliciesResponse.newBuilder() to construct. + private ListGatewaySecurityPoliciesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListGatewaySecurityPoliciesResponse() { + gatewaySecurityPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse.class, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse.Builder.class); + } + + public static final int GATEWAY_SECURITY_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + gatewaySecurityPolicies_; + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + @java.lang.Override + public java.util.List + getGatewaySecurityPoliciesList() { + return gatewaySecurityPolicies_; + } + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder> + getGatewaySecurityPoliciesOrBuilderList() { + return gatewaySecurityPolicies_; + } + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + @java.lang.Override + public int getGatewaySecurityPoliciesCount() { + return gatewaySecurityPolicies_.size(); + } + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicies( + int index) { + return gatewaySecurityPolicies_.get(index); + } + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPoliciesOrBuilder(int index) { + return gatewaySecurityPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < gatewaySecurityPolicies_.size(); i++) { + output.writeMessage(1, gatewaySecurityPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < gatewaySecurityPolicies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, gatewaySecurityPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse other = + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse) obj; + + if (!getGatewaySecurityPoliciesList().equals(other.getGatewaySecurityPoliciesList())) + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGatewaySecurityPoliciesCount() > 0) { + hash = (37 * hash) + GATEWAY_SECURITY_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getGatewaySecurityPoliciesList().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; + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse 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.networksecurity.v1.ListGatewaySecurityPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse 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.networksecurity.v1.ListGatewaySecurityPoliciesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListGatewaySecurityPoliciesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response returned by the ListGatewaySecurityPolicies method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse) + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse.class, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gatewaySecurityPoliciesBuilder_ == null) { + gatewaySecurityPolicies_ = java.util.Collections.emptyList(); + } else { + gatewaySecurityPolicies_ = null; + gatewaySecurityPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse build() { + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse result = + new com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse result) { + if (gatewaySecurityPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + gatewaySecurityPolicies_ = + java.util.Collections.unmodifiableList(gatewaySecurityPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.gatewaySecurityPolicies_ = gatewaySecurityPolicies_; + } else { + result.gatewaySecurityPolicies_ = gatewaySecurityPoliciesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + .getDefaultInstance()) return this; + if (gatewaySecurityPoliciesBuilder_ == null) { + if (!other.gatewaySecurityPolicies_.isEmpty()) { + if (gatewaySecurityPolicies_.isEmpty()) { + gatewaySecurityPolicies_ = other.gatewaySecurityPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.addAll(other.gatewaySecurityPolicies_); + } + onChanged(); + } + } else { + if (!other.gatewaySecurityPolicies_.isEmpty()) { + if (gatewaySecurityPoliciesBuilder_.isEmpty()) { + gatewaySecurityPoliciesBuilder_.dispose(); + gatewaySecurityPoliciesBuilder_ = null; + gatewaySecurityPolicies_ = other.gatewaySecurityPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + gatewaySecurityPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGatewaySecurityPoliciesFieldBuilder() + : null; + } else { + gatewaySecurityPoliciesBuilder_.addAllMessages(other.gatewaySecurityPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy m = + input.readMessage( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.parser(), + extensionRegistry); + if (gatewaySecurityPoliciesBuilder_ == null) { + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.add(m); + } else { + gatewaySecurityPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + gatewaySecurityPolicies_ = java.util.Collections.emptyList(); + + private void ensureGatewaySecurityPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gatewaySecurityPolicies_ = + new java.util.ArrayList( + gatewaySecurityPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder> + gatewaySecurityPoliciesBuilder_; + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public java.util.List + getGatewaySecurityPoliciesList() { + if (gatewaySecurityPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(gatewaySecurityPolicies_); + } else { + return gatewaySecurityPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public int getGatewaySecurityPoliciesCount() { + if (gatewaySecurityPoliciesBuilder_ == null) { + return gatewaySecurityPolicies_.size(); + } else { + return gatewaySecurityPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicies( + int index) { + if (gatewaySecurityPoliciesBuilder_ == null) { + return gatewaySecurityPolicies_.get(index); + } else { + return gatewaySecurityPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder setGatewaySecurityPolicies( + int index, com.google.cloud.networksecurity.v1.GatewaySecurityPolicy value) { + if (gatewaySecurityPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.set(index, value); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder setGatewaySecurityPolicies( + int index, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder builderForValue) { + if (gatewaySecurityPoliciesBuilder_ == null) { + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder addGatewaySecurityPolicies( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy value) { + if (gatewaySecurityPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.add(value); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder addGatewaySecurityPolicies( + int index, com.google.cloud.networksecurity.v1.GatewaySecurityPolicy value) { + if (gatewaySecurityPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.add(index, value); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder addGatewaySecurityPolicies( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder builderForValue) { + if (gatewaySecurityPoliciesBuilder_ == null) { + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.add(builderForValue.build()); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder addGatewaySecurityPolicies( + int index, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder builderForValue) { + if (gatewaySecurityPoliciesBuilder_ == null) { + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder addAllGatewaySecurityPolicies( + java.lang.Iterable + values) { + if (gatewaySecurityPoliciesBuilder_ == null) { + ensureGatewaySecurityPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gatewaySecurityPolicies_); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder clearGatewaySecurityPolicies() { + if (gatewaySecurityPoliciesBuilder_ == null) { + gatewaySecurityPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public Builder removeGatewaySecurityPolicies(int index) { + if (gatewaySecurityPoliciesBuilder_ == null) { + ensureGatewaySecurityPoliciesIsMutable(); + gatewaySecurityPolicies_.remove(index); + onChanged(); + } else { + gatewaySecurityPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder + getGatewaySecurityPoliciesBuilder(int index) { + return internalGetGatewaySecurityPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPoliciesOrBuilder(int index) { + if (gatewaySecurityPoliciesBuilder_ == null) { + return gatewaySecurityPolicies_.get(index); + } else { + return gatewaySecurityPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder> + getGatewaySecurityPoliciesOrBuilderList() { + if (gatewaySecurityPoliciesBuilder_ != null) { + return gatewaySecurityPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gatewaySecurityPolicies_); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder + addGatewaySecurityPoliciesBuilder() { + return internalGetGatewaySecurityPoliciesFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder + addGatewaySecurityPoliciesBuilder(int index) { + return internalGetGatewaySecurityPoliciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + public java.util.List + getGatewaySecurityPoliciesBuilderList() { + return internalGetGatewaySecurityPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder> + internalGetGatewaySecurityPoliciesFieldBuilder() { + if (gatewaySecurityPoliciesBuilder_ == null) { + gatewaySecurityPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder>( + gatewaySecurityPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + gatewaySecurityPolicies_ = null; + } + return gatewaySecurityPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse) + private static final com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewaySecurityPoliciesResponse 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.networksecurity.v1.ListGatewaySecurityPoliciesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..9633ab023218 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPoliciesResponseOrBuilder.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListGatewaySecurityPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + java.util.List + getGatewaySecurityPoliciesList(); + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicies(int index); + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + int getGatewaySecurityPoliciesCount(); + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + java.util.List + getGatewaySecurityPoliciesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policies = 1; + * + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPoliciesOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesRequest.java new file mode 100644 index 000000000000..a49e92d89c19 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesRequest.java @@ -0,0 +1,952 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used with the ListGatewaySecurityPolicyRules method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest} + */ +@com.google.protobuf.Generated +public final class ListGatewaySecurityPolicyRulesRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) + ListGatewaySecurityPolicyRulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListGatewaySecurityPolicyRulesRequest"); + } + + // Use ListGatewaySecurityPolicyRulesRequest.newBuilder() to construct. + private ListGatewaySecurityPolicyRulesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListGatewaySecurityPolicyRulesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest.class, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +   * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +   * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Maximum number of GatewaySecurityPolicyRules to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest other = + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest 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.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest 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.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used with the ListGatewaySecurityPolicyRules method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest.class, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest build() { + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + buildPartial() { + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest result = + new com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +     * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +     * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +     * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +     * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +     * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Maximum number of GatewaySecurityPolicyRules to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Maximum number of GatewaySecurityPolicyRules to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Maximum number of GatewaySecurityPolicyRules to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) + private static final com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewaySecurityPolicyRulesRequest 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.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesRequestOrBuilder.java new file mode 100644 index 000000000000..7e8b23e00114 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListGatewaySecurityPolicyRulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +   * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The project, location and GatewaySecurityPolicy from which the
                                                                                              +   * GatewaySecurityPolicyRules should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Maximum number of GatewaySecurityPolicyRules to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesResponse.java new file mode 100644 index 000000000000..f9a2323c8d5a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesResponse.java @@ -0,0 +1,1519 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response returned by the ListGatewaySecurityPolicyRules method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse} + */ +@com.google.protobuf.Generated +public final class ListGatewaySecurityPolicyRulesResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse) + ListGatewaySecurityPolicyRulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListGatewaySecurityPolicyRulesResponse"); + } + + // Use ListGatewaySecurityPolicyRulesResponse.newBuilder() to construct. + private ListGatewaySecurityPolicyRulesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListGatewaySecurityPolicyRulesResponse() { + gatewaySecurityPolicyRules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse.class, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse.Builder + .class); + } + + public static final int GATEWAY_SECURITY_POLICY_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + gatewaySecurityPolicyRules_; + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + @java.lang.Override + public java.util.List + getGatewaySecurityPolicyRulesList() { + return gatewaySecurityPolicyRules_; + } + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder> + getGatewaySecurityPolicyRulesOrBuilderList() { + return gatewaySecurityPolicyRules_; + } + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + @java.lang.Override + public int getGatewaySecurityPolicyRulesCount() { + return gatewaySecurityPolicyRules_.size(); + } + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getGatewaySecurityPolicyRules(int index) { + return gatewaySecurityPolicyRules_.get(index); + } + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRulesOrBuilder(int index) { + return gatewaySecurityPolicyRules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < gatewaySecurityPolicyRules_.size(); i++) { + output.writeMessage(1, gatewaySecurityPolicyRules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < gatewaySecurityPolicyRules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, gatewaySecurityPolicyRules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse other = + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse) obj; + + if (!getGatewaySecurityPolicyRulesList().equals(other.getGatewaySecurityPolicyRulesList())) + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGatewaySecurityPolicyRulesCount() > 0) { + hash = (37 * hash) + GATEWAY_SECURITY_POLICY_RULES_FIELD_NUMBER; + hash = (53 * hash) + getGatewaySecurityPolicyRulesList().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; + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + 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.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + 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.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response returned by the ListGatewaySecurityPolicyRules method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse) + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse.class, + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gatewaySecurityPolicyRulesBuilder_ == null) { + gatewaySecurityPolicyRules_ = java.util.Collections.emptyList(); + } else { + gatewaySecurityPolicyRules_ = null; + gatewaySecurityPolicyRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_ListGatewaySecurityPolicyRulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse build() { + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + buildPartial() { + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse result = + new com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse result) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + gatewaySecurityPolicyRules_ = + java.util.Collections.unmodifiableList(gatewaySecurityPolicyRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.gatewaySecurityPolicyRules_ = gatewaySecurityPolicyRules_; + } else { + result.gatewaySecurityPolicyRules_ = gatewaySecurityPolicyRulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + .getDefaultInstance()) return this; + if (gatewaySecurityPolicyRulesBuilder_ == null) { + if (!other.gatewaySecurityPolicyRules_.isEmpty()) { + if (gatewaySecurityPolicyRules_.isEmpty()) { + gatewaySecurityPolicyRules_ = other.gatewaySecurityPolicyRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.addAll(other.gatewaySecurityPolicyRules_); + } + onChanged(); + } + } else { + if (!other.gatewaySecurityPolicyRules_.isEmpty()) { + if (gatewaySecurityPolicyRulesBuilder_.isEmpty()) { + gatewaySecurityPolicyRulesBuilder_.dispose(); + gatewaySecurityPolicyRulesBuilder_ = null; + gatewaySecurityPolicyRules_ = other.gatewaySecurityPolicyRules_; + bitField0_ = (bitField0_ & ~0x00000001); + gatewaySecurityPolicyRulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGatewaySecurityPolicyRulesFieldBuilder() + : null; + } else { + gatewaySecurityPolicyRulesBuilder_.addAllMessages(other.gatewaySecurityPolicyRules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule m = + input.readMessage( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.parser(), + extensionRegistry); + if (gatewaySecurityPolicyRulesBuilder_ == null) { + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.add(m); + } else { + gatewaySecurityPolicyRulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + gatewaySecurityPolicyRules_ = java.util.Collections.emptyList(); + + private void ensureGatewaySecurityPolicyRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gatewaySecurityPolicyRules_ = + new java.util.ArrayList( + gatewaySecurityPolicyRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder> + gatewaySecurityPolicyRulesBuilder_; + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public java.util.List + getGatewaySecurityPolicyRulesList() { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(gatewaySecurityPolicyRules_); + } else { + return gatewaySecurityPolicyRulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public int getGatewaySecurityPolicyRulesCount() { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + return gatewaySecurityPolicyRules_.size(); + } else { + return gatewaySecurityPolicyRulesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getGatewaySecurityPolicyRules(int index) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + return gatewaySecurityPolicyRules_.get(index); + } else { + return gatewaySecurityPolicyRulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder setGatewaySecurityPolicyRules( + int index, com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule value) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.set(index, value); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder setGatewaySecurityPolicyRules( + int index, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder builderForValue) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.set(index, builderForValue.build()); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder addGatewaySecurityPolicyRules( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule value) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.add(value); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder addGatewaySecurityPolicyRules( + int index, com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule value) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.add(index, value); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder addGatewaySecurityPolicyRules( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder builderForValue) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.add(builderForValue.build()); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder addGatewaySecurityPolicyRules( + int index, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder builderForValue) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.add(index, builderForValue.build()); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder addAllGatewaySecurityPolicyRules( + java.lang.Iterable + values) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + ensureGatewaySecurityPolicyRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gatewaySecurityPolicyRules_); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder clearGatewaySecurityPolicyRules() { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + gatewaySecurityPolicyRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public Builder removeGatewaySecurityPolicyRules(int index) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + ensureGatewaySecurityPolicyRulesIsMutable(); + gatewaySecurityPolicyRules_.remove(index); + onChanged(); + } else { + gatewaySecurityPolicyRulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder + getGatewaySecurityPolicyRulesBuilder(int index) { + return internalGetGatewaySecurityPolicyRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRulesOrBuilder(int index) { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + return gatewaySecurityPolicyRules_.get(index); + } else { + return gatewaySecurityPolicyRulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder> + getGatewaySecurityPolicyRulesOrBuilderList() { + if (gatewaySecurityPolicyRulesBuilder_ != null) { + return gatewaySecurityPolicyRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gatewaySecurityPolicyRules_); + } + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder + addGatewaySecurityPolicyRulesBuilder() { + return internalGetGatewaySecurityPolicyRulesFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder + addGatewaySecurityPolicyRulesBuilder(int index) { + return internalGetGatewaySecurityPolicyRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of GatewaySecurityPolicyRule resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + public java.util.List + getGatewaySecurityPolicyRulesBuilderList() { + return internalGetGatewaySecurityPolicyRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder> + internalGetGatewaySecurityPolicyRulesFieldBuilder() { + if (gatewaySecurityPolicyRulesBuilder_ == null) { + gatewaySecurityPolicyRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder>( + gatewaySecurityPolicyRules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + gatewaySecurityPolicyRules_ = null; + } + return gatewaySecurityPolicyRulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse) + private static final com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewaySecurityPolicyRulesResponse 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.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesResponseOrBuilder.java new file mode 100644 index 000000000000..10699df616f6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListGatewaySecurityPolicyRulesResponseOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListGatewaySecurityPolicyRulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + java.util.List + getGatewaySecurityPolicyRulesList(); + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule getGatewaySecurityPolicyRules( + int index); + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + int getGatewaySecurityPolicyRulesCount(); + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + java.util.List + getGatewaySecurityPolicyRulesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * List of GatewaySecurityPolicyRule resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + * + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRulesOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsRequest.java new file mode 100644 index 000000000000..1e2e80b7b09a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsRequest.java @@ -0,0 +1,1356 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for ListInterceptDeploymentGroups.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest} + */ +@com.google.protobuf.Generated +public final class ListInterceptDeploymentGroupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) + ListInterceptDeploymentGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInterceptDeploymentGroupsRequest"); + } + + // Use ListInterceptDeploymentGroupsRequest.newBuilder() to construct. + private ListInterceptDeploymentGroupsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInterceptDeploymentGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployment groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployment groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +   * subsequent page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +   * subsequent page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListInterceptDeploymentGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest other = + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest 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.networksecurity.v1.ListInterceptDeploymentGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest 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.networksecurity.v1.ListInterceptDeploymentGroupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListInterceptDeploymentGroupsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for ListInterceptDeploymentGroups.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest build() { + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest result = + new com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) + private static final com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInterceptDeploymentGroupsRequest 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.networksecurity.v1.ListInterceptDeploymentGroupsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..d3d92721cd3a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsRequestOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListInterceptDeploymentGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployment groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployment groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +   * subsequent page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptDeploymentGroups` call. Provide this to retrieve the
                                                                                              +   * subsequent page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptDeploymentGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsResponse.java new file mode 100644 index 000000000000..4026be1a2699 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsResponse.java @@ -0,0 +1,1224 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response message for ListInterceptDeploymentGroups.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse} + */ +@com.google.protobuf.Generated +public final class ListInterceptDeploymentGroupsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse) + ListInterceptDeploymentGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInterceptDeploymentGroupsResponse"); + } + + // Use ListInterceptDeploymentGroupsResponse.newBuilder() to construct. + private ListInterceptDeploymentGroupsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInterceptDeploymentGroupsResponse() { + interceptDeploymentGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse.Builder + .class); + } + + public static final int INTERCEPT_DEPLOYMENT_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + interceptDeploymentGroups_; + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getInterceptDeploymentGroupsList() { + return interceptDeploymentGroups_; + } + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder> + getInterceptDeploymentGroupsOrBuilderList() { + return interceptDeploymentGroups_; + } + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + @java.lang.Override + public int getInterceptDeploymentGroupsCount() { + return interceptDeploymentGroups_.size(); + } + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup getInterceptDeploymentGroups( + int index) { + return interceptDeploymentGroups_.get(index); + } + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupsOrBuilder(int index) { + return interceptDeploymentGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < interceptDeploymentGroups_.size(); i++) { + output.writeMessage(1, interceptDeploymentGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < interceptDeploymentGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, interceptDeploymentGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.networksecurity.v1.ListInterceptDeploymentGroupsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse other = + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse) obj; + + if (!getInterceptDeploymentGroupsList().equals(other.getInterceptDeploymentGroupsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getInterceptDeploymentGroupsCount() > 0) { + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeploymentGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse 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.networksecurity.v1.ListInterceptDeploymentGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse 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.networksecurity.v1.ListInterceptDeploymentGroupsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListInterceptDeploymentGroupsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response message for ListInterceptDeploymentGroups.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse) + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (interceptDeploymentGroupsBuilder_ == null) { + interceptDeploymentGroups_ = java.util.Collections.emptyList(); + } else { + interceptDeploymentGroups_ = null; + interceptDeploymentGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse build() { + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + buildPartial() { + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse result = + new com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse result) { + if (interceptDeploymentGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + interceptDeploymentGroups_ = + java.util.Collections.unmodifiableList(interceptDeploymentGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.interceptDeploymentGroups_ = interceptDeploymentGroups_; + } else { + result.interceptDeploymentGroups_ = interceptDeploymentGroupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + .getDefaultInstance()) return this; + if (interceptDeploymentGroupsBuilder_ == null) { + if (!other.interceptDeploymentGroups_.isEmpty()) { + if (interceptDeploymentGroups_.isEmpty()) { + interceptDeploymentGroups_ = other.interceptDeploymentGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.addAll(other.interceptDeploymentGroups_); + } + onChanged(); + } + } else { + if (!other.interceptDeploymentGroups_.isEmpty()) { + if (interceptDeploymentGroupsBuilder_.isEmpty()) { + interceptDeploymentGroupsBuilder_.dispose(); + interceptDeploymentGroupsBuilder_ = null; + interceptDeploymentGroups_ = other.interceptDeploymentGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + interceptDeploymentGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInterceptDeploymentGroupsFieldBuilder() + : null; + } else { + interceptDeploymentGroupsBuilder_.addAllMessages(other.interceptDeploymentGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.parser(), + extensionRegistry); + if (interceptDeploymentGroupsBuilder_ == null) { + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.add(m); + } else { + interceptDeploymentGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List + interceptDeploymentGroups_ = java.util.Collections.emptyList(); + + private void ensureInterceptDeploymentGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + interceptDeploymentGroups_ = + new java.util.ArrayList( + interceptDeploymentGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder> + interceptDeploymentGroupsBuilder_; + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public java.util.List + getInterceptDeploymentGroupsList() { + if (interceptDeploymentGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(interceptDeploymentGroups_); + } else { + return interceptDeploymentGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public int getInterceptDeploymentGroupsCount() { + if (interceptDeploymentGroupsBuilder_ == null) { + return interceptDeploymentGroups_.size(); + } else { + return interceptDeploymentGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + getInterceptDeploymentGroups(int index) { + if (interceptDeploymentGroupsBuilder_ == null) { + return interceptDeploymentGroups_.get(index); + } else { + return interceptDeploymentGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder setInterceptDeploymentGroups( + int index, com.google.cloud.networksecurity.v1.InterceptDeploymentGroup value) { + if (interceptDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.set(index, value); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder setInterceptDeploymentGroups( + int index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder builderForValue) { + if (interceptDeploymentGroupsBuilder_ == null) { + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder addInterceptDeploymentGroups( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup value) { + if (interceptDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.add(value); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder addInterceptDeploymentGroups( + int index, com.google.cloud.networksecurity.v1.InterceptDeploymentGroup value) { + if (interceptDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.add(index, value); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder addInterceptDeploymentGroups( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder builderForValue) { + if (interceptDeploymentGroupsBuilder_ == null) { + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.add(builderForValue.build()); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder addInterceptDeploymentGroups( + int index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder builderForValue) { + if (interceptDeploymentGroupsBuilder_ == null) { + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder addAllInterceptDeploymentGroups( + java.lang.Iterable + values) { + if (interceptDeploymentGroupsBuilder_ == null) { + ensureInterceptDeploymentGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interceptDeploymentGroups_); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder clearInterceptDeploymentGroups() { + if (interceptDeploymentGroupsBuilder_ == null) { + interceptDeploymentGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public Builder removeInterceptDeploymentGroups(int index) { + if (interceptDeploymentGroupsBuilder_ == null) { + ensureInterceptDeploymentGroupsIsMutable(); + interceptDeploymentGroups_.remove(index); + onChanged(); + } else { + interceptDeploymentGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder + getInterceptDeploymentGroupsBuilder(int index) { + return internalGetInterceptDeploymentGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupsOrBuilder(int index) { + if (interceptDeploymentGroupsBuilder_ == null) { + return interceptDeploymentGroups_.get(index); + } else { + return interceptDeploymentGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder> + getInterceptDeploymentGroupsOrBuilderList() { + if (interceptDeploymentGroupsBuilder_ != null) { + return interceptDeploymentGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(interceptDeploymentGroups_); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder + addInterceptDeploymentGroupsBuilder() { + return internalGetInterceptDeploymentGroupsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder + addInterceptDeploymentGroupsBuilder(int index) { + return internalGetInterceptDeploymentGroupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + public java.util.List + getInterceptDeploymentGroupsBuilderList() { + return internalGetInterceptDeploymentGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder> + internalGetInterceptDeploymentGroupsFieldBuilder() { + if (interceptDeploymentGroupsBuilder_ == null) { + interceptDeploymentGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder>( + interceptDeploymentGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + interceptDeploymentGroups_ = null; + } + return interceptDeploymentGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse) + private static final com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInterceptDeploymentGroupsResponse 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.networksecurity.v1.ListInterceptDeploymentGroupsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..6975cb42062f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentGroupsResponseOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListInterceptDeploymentGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + java.util.List + getInterceptDeploymentGroupsList(); + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup getInterceptDeploymentGroups( + int index); + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + int getInterceptDeploymentGroupsCount(); + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + java.util.List + getInterceptDeploymentGroupsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsRequest.java new file mode 100644 index 000000000000..fa74933517ee --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsRequest.java @@ -0,0 +1,1350 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for ListInterceptDeployments.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest} + */ +@com.google.protobuf.Generated +public final class ListInterceptDeploymentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) + ListInterceptDeploymentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInterceptDeploymentsRequest"); + } + + // Use ListInterceptDeploymentsRequest.newBuilder() to construct. + private ListInterceptDeploymentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInterceptDeploymentsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest.class, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployments.
                                                                                              +   * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployments.
                                                                                              +   * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +   * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +   * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +   * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +   * details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +   * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +   * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +   * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +   * details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListInterceptDeploymentsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest other = + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest 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.networksecurity.v1.ListInterceptDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest 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.networksecurity.v1.ListInterceptDeploymentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListInterceptDeploymentsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for ListInterceptDeployments.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest.class, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest build() { + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest result = + new com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) + private static final com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInterceptDeploymentsRequest 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.networksecurity.v1.ListInterceptDeploymentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000000..5210b46540fc --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsRequestOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListInterceptDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployments.
                                                                                              +   * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployments.
                                                                                              +   * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +   * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +   * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +   * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +   * details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous `ListInterceptDeployments`
                                                                                              +   * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +   * other parameters provided to `ListInterceptDeployments` must match the call
                                                                                              +   * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +   * details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsResponse.java new file mode 100644 index 000000000000..cda348e06b8b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsResponse.java @@ -0,0 +1,1495 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response message for ListInterceptDeployments.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse} + */ +@com.google.protobuf.Generated +public final class ListInterceptDeploymentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse) + ListInterceptDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInterceptDeploymentsResponse"); + } + + // Use ListInterceptDeploymentsResponse.newBuilder() to construct. + private ListInterceptDeploymentsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInterceptDeploymentsResponse() { + interceptDeployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse.class, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse.Builder.class); + } + + public static final int INTERCEPT_DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + interceptDeployments_; + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + @java.lang.Override + public java.util.List + getInterceptDeploymentsList() { + return interceptDeployments_; + } + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + @java.lang.Override + public java.util.List + getInterceptDeploymentsOrBuilderList() { + return interceptDeployments_; + } + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + @java.lang.Override + public int getInterceptDeploymentsCount() { + return interceptDeployments_.size(); + } + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployments( + int index) { + return interceptDeployments_.get(index); + } + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder + getInterceptDeploymentsOrBuilder(int index) { + return interceptDeployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < interceptDeployments_.size(); i++) { + output.writeMessage(1, interceptDeployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < interceptDeployments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, interceptDeployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse other = + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse) obj; + + if (!getInterceptDeploymentsList().equals(other.getInterceptDeploymentsList())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInterceptDeploymentsCount() > 0) { + hash = (37 * hash) + INTERCEPT_DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeploymentsList().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; + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse 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.networksecurity.v1.ListInterceptDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse 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.networksecurity.v1.ListInterceptDeploymentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListInterceptDeploymentsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response message for ListInterceptDeployments.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse) + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse.class, + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (interceptDeploymentsBuilder_ == null) { + interceptDeployments_ = java.util.Collections.emptyList(); + } else { + interceptDeployments_ = null; + interceptDeploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse build() { + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse result = + new com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse result) { + if (interceptDeploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + interceptDeployments_ = java.util.Collections.unmodifiableList(interceptDeployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.interceptDeployments_ = interceptDeployments_; + } else { + result.interceptDeployments_ = interceptDeploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + .getDefaultInstance()) return this; + if (interceptDeploymentsBuilder_ == null) { + if (!other.interceptDeployments_.isEmpty()) { + if (interceptDeployments_.isEmpty()) { + interceptDeployments_ = other.interceptDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.addAll(other.interceptDeployments_); + } + onChanged(); + } + } else { + if (!other.interceptDeployments_.isEmpty()) { + if (interceptDeploymentsBuilder_.isEmpty()) { + interceptDeploymentsBuilder_.dispose(); + interceptDeploymentsBuilder_ = null; + interceptDeployments_ = other.interceptDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + interceptDeploymentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInterceptDeploymentsFieldBuilder() + : null; + } else { + interceptDeploymentsBuilder_.addAllMessages(other.interceptDeployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.InterceptDeployment m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptDeployment.parser(), + extensionRegistry); + if (interceptDeploymentsBuilder_ == null) { + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.add(m); + } else { + interceptDeploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + interceptDeployments_ = java.util.Collections.emptyList(); + + private void ensureInterceptDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + interceptDeployments_ = + new java.util.ArrayList( + interceptDeployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder> + interceptDeploymentsBuilder_; + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public java.util.List + getInterceptDeploymentsList() { + if (interceptDeploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(interceptDeployments_); + } else { + return interceptDeploymentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public int getInterceptDeploymentsCount() { + if (interceptDeploymentsBuilder_ == null) { + return interceptDeployments_.size(); + } else { + return interceptDeploymentsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployments( + int index) { + if (interceptDeploymentsBuilder_ == null) { + return interceptDeployments_.get(index); + } else { + return interceptDeploymentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder setInterceptDeployments( + int index, com.google.cloud.networksecurity.v1.InterceptDeployment value) { + if (interceptDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.set(index, value); + onChanged(); + } else { + interceptDeploymentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder setInterceptDeployments( + int index, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder builderForValue) { + if (interceptDeploymentsBuilder_ == null) { + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.set(index, builderForValue.build()); + onChanged(); + } else { + interceptDeploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder addInterceptDeployments( + com.google.cloud.networksecurity.v1.InterceptDeployment value) { + if (interceptDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.add(value); + onChanged(); + } else { + interceptDeploymentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder addInterceptDeployments( + int index, com.google.cloud.networksecurity.v1.InterceptDeployment value) { + if (interceptDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.add(index, value); + onChanged(); + } else { + interceptDeploymentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder addInterceptDeployments( + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder builderForValue) { + if (interceptDeploymentsBuilder_ == null) { + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.add(builderForValue.build()); + onChanged(); + } else { + interceptDeploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder addInterceptDeployments( + int index, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder builderForValue) { + if (interceptDeploymentsBuilder_ == null) { + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.add(index, builderForValue.build()); + onChanged(); + } else { + interceptDeploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder addAllInterceptDeployments( + java.lang.Iterable + values) { + if (interceptDeploymentsBuilder_ == null) { + ensureInterceptDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interceptDeployments_); + onChanged(); + } else { + interceptDeploymentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder clearInterceptDeployments() { + if (interceptDeploymentsBuilder_ == null) { + interceptDeployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + interceptDeploymentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public Builder removeInterceptDeployments(int index) { + if (interceptDeploymentsBuilder_ == null) { + ensureInterceptDeploymentsIsMutable(); + interceptDeployments_.remove(index); + onChanged(); + } else { + interceptDeploymentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment.Builder + getInterceptDeploymentsBuilder(int index) { + return internalGetInterceptDeploymentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder + getInterceptDeploymentsOrBuilder(int index) { + if (interceptDeploymentsBuilder_ == null) { + return interceptDeployments_.get(index); + } else { + return interceptDeploymentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder> + getInterceptDeploymentsOrBuilderList() { + if (interceptDeploymentsBuilder_ != null) { + return interceptDeploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(interceptDeployments_); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment.Builder + addInterceptDeploymentsBuilder() { + return internalGetInterceptDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment.Builder + addInterceptDeploymentsBuilder(int index) { + return internalGetInterceptDeploymentsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + public java.util.List + getInterceptDeploymentsBuilderList() { + return internalGetInterceptDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder> + internalGetInterceptDeploymentsFieldBuilder() { + if (interceptDeploymentsBuilder_ == null) { + interceptDeploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder>( + interceptDeployments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + interceptDeployments_ = null; + } + return interceptDeploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse) + private static final com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInterceptDeploymentsResponse 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.networksecurity.v1.ListInterceptDeploymentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000000..9732d1611798 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptDeploymentsResponseOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListInterceptDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + java.util.List + getInterceptDeploymentsList(); + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployments(int index); + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + int getInterceptDeploymentsCount(); + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + java.util.List + getInterceptDeploymentsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployments = 1; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder getInterceptDeploymentsOrBuilder( + int index); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsRequest.java new file mode 100644 index 000000000000..2b7cfdaca237 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsRequest.java @@ -0,0 +1,1376 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for ListInterceptEndpointGroupAssociations.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest} + */ +@com.google.protobuf.Generated +public final class ListInterceptEndpointGroupAssociationsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) + ListInterceptEndpointGroupAssociationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInterceptEndpointGroupAssociationsRequest"); + } + + // Use ListInterceptEndpointGroupAssociationsRequest.newBuilder() to construct. + private ListInterceptEndpointGroupAssociationsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInterceptEndpointGroupAssociationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest.class, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of associations.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of associations.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest other = + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + 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.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + 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.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for ListInterceptEndpointGroupAssociations.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + .class, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + build() { + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + buildPartial() { + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest result = + new com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) + private static final com.google.cloud.networksecurity.v1 + .ListInterceptEndpointGroupAssociationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInterceptEndpointGroupAssociationsRequest 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.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsRequestOrBuilder.java new file mode 100644 index 000000000000..e8663185e655 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsRequestOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListInterceptEndpointGroupAssociationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of associations.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of associations.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsResponse.java new file mode 100644 index 000000000000..7b645783ea86 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsResponse.java @@ -0,0 +1,1257 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response message for ListInterceptEndpointGroupAssociations.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse} + */ +@com.google.protobuf.Generated +public final class ListInterceptEndpointGroupAssociationsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse) + ListInterceptEndpointGroupAssociationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInterceptEndpointGroupAssociationsResponse"); + } + + // Use ListInterceptEndpointGroupAssociationsResponse.newBuilder() to construct. + private ListInterceptEndpointGroupAssociationsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInterceptEndpointGroupAssociationsResponse() { + interceptEndpointGroupAssociations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + .class, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + .Builder.class); + } + + public static final int INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + interceptEndpointGroupAssociations_; + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public java.util.List + getInterceptEndpointGroupAssociationsList() { + return interceptEndpointGroupAssociations_; + } + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + getInterceptEndpointGroupAssociationsOrBuilderList() { + return interceptEndpointGroupAssociations_; + } + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public int getInterceptEndpointGroupAssociationsCount() { + return interceptEndpointGroupAssociations_.size(); + } + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociations(int index) { + return interceptEndpointGroupAssociations_.get(index); + } + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationsOrBuilder(int index) { + return interceptEndpointGroupAssociations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < interceptEndpointGroupAssociations_.size(); i++) { + output.writeMessage(1, interceptEndpointGroupAssociations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < interceptEndpointGroupAssociations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, interceptEndpointGroupAssociations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse other = + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse) obj; + + if (!getInterceptEndpointGroupAssociationsList() + .equals(other.getInterceptEndpointGroupAssociationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getInterceptEndpointGroupAssociationsCount() > 0) { + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUP_ASSOCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroupAssociationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + 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.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + 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.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response message for ListInterceptEndpointGroupAssociations.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse) + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + .class, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (interceptEndpointGroupAssociationsBuilder_ == null) { + interceptEndpointGroupAssociations_ = java.util.Collections.emptyList(); + } else { + interceptEndpointGroupAssociations_ = null; + interceptEndpointGroupAssociationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupAssociationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + build() { + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + buildPartial() { + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse result = + new com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse result) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + interceptEndpointGroupAssociations_ = + java.util.Collections.unmodifiableList(interceptEndpointGroupAssociations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.interceptEndpointGroupAssociations_ = interceptEndpointGroupAssociations_; + } else { + result.interceptEndpointGroupAssociations_ = + interceptEndpointGroupAssociationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + .getDefaultInstance()) return this; + if (interceptEndpointGroupAssociationsBuilder_ == null) { + if (!other.interceptEndpointGroupAssociations_.isEmpty()) { + if (interceptEndpointGroupAssociations_.isEmpty()) { + interceptEndpointGroupAssociations_ = other.interceptEndpointGroupAssociations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.addAll(other.interceptEndpointGroupAssociations_); + } + onChanged(); + } + } else { + if (!other.interceptEndpointGroupAssociations_.isEmpty()) { + if (interceptEndpointGroupAssociationsBuilder_.isEmpty()) { + interceptEndpointGroupAssociationsBuilder_.dispose(); + interceptEndpointGroupAssociationsBuilder_ = null; + interceptEndpointGroupAssociations_ = other.interceptEndpointGroupAssociations_; + bitField0_ = (bitField0_ & ~0x00000001); + interceptEndpointGroupAssociationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInterceptEndpointGroupAssociationsFieldBuilder() + : null; + } else { + interceptEndpointGroupAssociationsBuilder_.addAllMessages( + other.interceptEndpointGroupAssociations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .parser(), + extensionRegistry); + if (interceptEndpointGroupAssociationsBuilder_ == null) { + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.add(m); + } else { + interceptEndpointGroupAssociationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List + interceptEndpointGroupAssociations_ = java.util.Collections.emptyList(); + + private void ensureInterceptEndpointGroupAssociationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + interceptEndpointGroupAssociations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation>( + interceptEndpointGroupAssociations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + interceptEndpointGroupAssociationsBuilder_; + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public java.util.List + getInterceptEndpointGroupAssociationsList() { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(interceptEndpointGroupAssociations_); + } else { + return interceptEndpointGroupAssociationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public int getInterceptEndpointGroupAssociationsCount() { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + return interceptEndpointGroupAssociations_.size(); + } else { + return interceptEndpointGroupAssociationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociations(int index) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + return interceptEndpointGroupAssociations_.get(index); + } else { + return interceptEndpointGroupAssociationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder setInterceptEndpointGroupAssociations( + int index, com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation value) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.set(index, value); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder setInterceptEndpointGroupAssociations( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + builderForValue) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.set(index, builderForValue.build()); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder addInterceptEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation value) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.add(value); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder addInterceptEndpointGroupAssociations( + int index, com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation value) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.add(index, value); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder addInterceptEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + builderForValue) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.add(builderForValue.build()); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder addInterceptEndpointGroupAssociations( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + builderForValue) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.add(index, builderForValue.build()); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder addAllInterceptEndpointGroupAssociations( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation> + values) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + ensureInterceptEndpointGroupAssociationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, interceptEndpointGroupAssociations_); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder clearInterceptEndpointGroupAssociations() { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + interceptEndpointGroupAssociations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public Builder removeInterceptEndpointGroupAssociations(int index) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + ensureInterceptEndpointGroupAssociationsIsMutable(); + interceptEndpointGroupAssociations_.remove(index); + onChanged(); + } else { + interceptEndpointGroupAssociationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + getInterceptEndpointGroupAssociationsBuilder(int index) { + return internalGetInterceptEndpointGroupAssociationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationsOrBuilder(int index) { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + return interceptEndpointGroupAssociations_.get(index); + } else { + return interceptEndpointGroupAssociationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + getInterceptEndpointGroupAssociationsOrBuilderList() { + if (interceptEndpointGroupAssociationsBuilder_ != null) { + return interceptEndpointGroupAssociationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(interceptEndpointGroupAssociations_); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + addInterceptEndpointGroupAssociationsBuilder() { + return internalGetInterceptEndpointGroupAssociationsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + addInterceptEndpointGroupAssociationsBuilder(int index) { + return internalGetInterceptEndpointGroupAssociationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder> + getInterceptEndpointGroupAssociationsBuilderList() { + return internalGetInterceptEndpointGroupAssociationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + internalGetInterceptEndpointGroupAssociationsFieldBuilder() { + if (interceptEndpointGroupAssociationsBuilder_ == null) { + interceptEndpointGroupAssociationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder>( + interceptEndpointGroupAssociations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + interceptEndpointGroupAssociations_ = null; + } + return interceptEndpointGroupAssociationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse) + private static final com.google.cloud.networksecurity.v1 + .ListInterceptEndpointGroupAssociationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInterceptEndpointGroupAssociationsResponse 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.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsResponseOrBuilder.java new file mode 100644 index 000000000000..3a4c7cd48bbb --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupAssociationsResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListInterceptEndpointGroupAssociationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + java.util.List + getInterceptEndpointGroupAssociationsList(); + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociations(int index); + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + int getInterceptEndpointGroupAssociationsCount(); + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + java.util.List< + ? extends com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + getInterceptEndpointGroupAssociationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_associations = 1; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsRequest.java new file mode 100644 index 000000000000..1c46fa217605 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsRequest.java @@ -0,0 +1,1359 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for ListInterceptEndpointGroups.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest} + */ +@com.google.protobuf.Generated +public final class ListInterceptEndpointGroupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) + ListInterceptEndpointGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInterceptEndpointGroupsRequest"); + } + + // Use ListInterceptEndpointGroupsRequest.newBuilder() to construct. + private ListInterceptEndpointGroupsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInterceptEndpointGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +   * token.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +   * token.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListInterceptEndpointGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest other = + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest 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.networksecurity.v1.ListInterceptEndpointGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest 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.networksecurity.v1.ListInterceptEndpointGroupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListInterceptEndpointGroupsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for ListInterceptEndpointGroups.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest build() { + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest result = + new com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) + private static final com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInterceptEndpointGroupsRequest 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.networksecurity.v1.ListInterceptEndpointGroupsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..8f6f5afc52b1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsRequestOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListInterceptEndpointGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +   * token.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListInterceptEndpointGroups` must match the call that provided the page
                                                                                              +   * token.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsResponse.java new file mode 100644 index 000000000000..01aff216b7e7 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsResponse.java @@ -0,0 +1,1220 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response message for ListInterceptEndpointGroups.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse} + */ +@com.google.protobuf.Generated +public final class ListInterceptEndpointGroupsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse) + ListInterceptEndpointGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInterceptEndpointGroupsResponse"); + } + + // Use ListInterceptEndpointGroupsResponse.newBuilder() to construct. + private ListInterceptEndpointGroupsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInterceptEndpointGroupsResponse() { + interceptEndpointGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse.Builder.class); + } + + public static final int INTERCEPT_ENDPOINT_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + interceptEndpointGroups_; + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getInterceptEndpointGroupsList() { + return interceptEndpointGroups_; + } + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder> + getInterceptEndpointGroupsOrBuilderList() { + return interceptEndpointGroups_; + } + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + @java.lang.Override + public int getInterceptEndpointGroupsCount() { + return interceptEndpointGroups_.size(); + } + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroups( + int index) { + return interceptEndpointGroups_.get(index); + } + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupsOrBuilder(int index) { + return interceptEndpointGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < interceptEndpointGroups_.size(); i++) { + output.writeMessage(1, interceptEndpointGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < interceptEndpointGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, interceptEndpointGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.networksecurity.v1.ListInterceptEndpointGroupsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse other = + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse) obj; + + if (!getInterceptEndpointGroupsList().equals(other.getInterceptEndpointGroupsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getInterceptEndpointGroupsCount() > 0) { + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse 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.networksecurity.v1.ListInterceptEndpointGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse 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.networksecurity.v1.ListInterceptEndpointGroupsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListInterceptEndpointGroupsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response message for ListInterceptEndpointGroups.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse) + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (interceptEndpointGroupsBuilder_ == null) { + interceptEndpointGroups_ = java.util.Collections.emptyList(); + } else { + interceptEndpointGroups_ = null; + interceptEndpointGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_ListInterceptEndpointGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse build() { + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse result = + new com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse result) { + if (interceptEndpointGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + interceptEndpointGroups_ = + java.util.Collections.unmodifiableList(interceptEndpointGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.interceptEndpointGroups_ = interceptEndpointGroups_; + } else { + result.interceptEndpointGroups_ = interceptEndpointGroupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + .getDefaultInstance()) return this; + if (interceptEndpointGroupsBuilder_ == null) { + if (!other.interceptEndpointGroups_.isEmpty()) { + if (interceptEndpointGroups_.isEmpty()) { + interceptEndpointGroups_ = other.interceptEndpointGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.addAll(other.interceptEndpointGroups_); + } + onChanged(); + } + } else { + if (!other.interceptEndpointGroups_.isEmpty()) { + if (interceptEndpointGroupsBuilder_.isEmpty()) { + interceptEndpointGroupsBuilder_.dispose(); + interceptEndpointGroupsBuilder_ = null; + interceptEndpointGroups_ = other.interceptEndpointGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + interceptEndpointGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInterceptEndpointGroupsFieldBuilder() + : null; + } else { + interceptEndpointGroupsBuilder_.addAllMessages(other.interceptEndpointGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.networksecurity.v1.InterceptEndpointGroup m = + input.readMessage( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.parser(), + extensionRegistry); + if (interceptEndpointGroupsBuilder_ == null) { + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.add(m); + } else { + interceptEndpointGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List + interceptEndpointGroups_ = java.util.Collections.emptyList(); + + private void ensureInterceptEndpointGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + interceptEndpointGroups_ = + new java.util.ArrayList( + interceptEndpointGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder> + interceptEndpointGroupsBuilder_; + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public java.util.List + getInterceptEndpointGroupsList() { + if (interceptEndpointGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(interceptEndpointGroups_); + } else { + return interceptEndpointGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public int getInterceptEndpointGroupsCount() { + if (interceptEndpointGroupsBuilder_ == null) { + return interceptEndpointGroups_.size(); + } else { + return interceptEndpointGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroups( + int index) { + if (interceptEndpointGroupsBuilder_ == null) { + return interceptEndpointGroups_.get(index); + } else { + return interceptEndpointGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder setInterceptEndpointGroups( + int index, com.google.cloud.networksecurity.v1.InterceptEndpointGroup value) { + if (interceptEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.set(index, value); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder setInterceptEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder builderForValue) { + if (interceptEndpointGroupsBuilder_ == null) { + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder addInterceptEndpointGroups( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup value) { + if (interceptEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.add(value); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder addInterceptEndpointGroups( + int index, com.google.cloud.networksecurity.v1.InterceptEndpointGroup value) { + if (interceptEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.add(index, value); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder addInterceptEndpointGroups( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder builderForValue) { + if (interceptEndpointGroupsBuilder_ == null) { + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.add(builderForValue.build()); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder addInterceptEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder builderForValue) { + if (interceptEndpointGroupsBuilder_ == null) { + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder addAllInterceptEndpointGroups( + java.lang.Iterable + values) { + if (interceptEndpointGroupsBuilder_ == null) { + ensureInterceptEndpointGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interceptEndpointGroups_); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder clearInterceptEndpointGroups() { + if (interceptEndpointGroupsBuilder_ == null) { + interceptEndpointGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public Builder removeInterceptEndpointGroups(int index) { + if (interceptEndpointGroupsBuilder_ == null) { + ensureInterceptEndpointGroupsIsMutable(); + interceptEndpointGroups_.remove(index); + onChanged(); + } else { + interceptEndpointGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder + getInterceptEndpointGroupsBuilder(int index) { + return internalGetInterceptEndpointGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupsOrBuilder(int index) { + if (interceptEndpointGroupsBuilder_ == null) { + return interceptEndpointGroups_.get(index); + } else { + return interceptEndpointGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder> + getInterceptEndpointGroupsOrBuilderList() { + if (interceptEndpointGroupsBuilder_ != null) { + return interceptEndpointGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(interceptEndpointGroups_); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder + addInterceptEndpointGroupsBuilder() { + return internalGetInterceptEndpointGroupsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder + addInterceptEndpointGroupsBuilder(int index) { + return internalGetInterceptEndpointGroupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + public java.util.List + getInterceptEndpointGroupsBuilderList() { + return internalGetInterceptEndpointGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder> + internalGetInterceptEndpointGroupsFieldBuilder() { + if (interceptEndpointGroupsBuilder_ == null) { + interceptEndpointGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder>( + interceptEndpointGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + interceptEndpointGroups_ = null; + } + return interceptEndpointGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse) + private static final com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInterceptEndpointGroupsResponse 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.networksecurity.v1.ListInterceptEndpointGroupsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..1d5a666b6642 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListInterceptEndpointGroupsResponseOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListInterceptEndpointGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + java.util.List + getInterceptEndpointGroupsList(); + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroups(int index); + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + int getInterceptEndpointGroupsCount(); + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + java.util.List + getInterceptEndpointGroupsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsRequest.java new file mode 100644 index 000000000000..2dba4f3c035a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsRequest.java @@ -0,0 +1,1356 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for ListMirroringDeploymentGroups.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest} + */ +@com.google.protobuf.Generated +public final class ListMirroringDeploymentGroupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) + ListMirroringDeploymentGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMirroringDeploymentGroupsRequest"); + } + + // Use ListMirroringDeploymentGroupsRequest.newBuilder() to construct. + private ListMirroringDeploymentGroupsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMirroringDeploymentGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployment groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployment groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +   * subsequent page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +   * subsequent page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListMirroringDeploymentGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest other = + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest 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.networksecurity.v1.ListMirroringDeploymentGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest 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.networksecurity.v1.ListMirroringDeploymentGroupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListMirroringDeploymentGroupsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for ListMirroringDeploymentGroups.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest build() { + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest result = + new com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployment groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +     * subsequent page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) + private static final com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMirroringDeploymentGroupsRequest 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.networksecurity.v1.ListMirroringDeploymentGroupsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..54b3f038eb2b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsRequestOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListMirroringDeploymentGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployment groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployment groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +   * subsequent page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringDeploymentGroups` call. Provide this to retrieve the
                                                                                              +   * subsequent page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringDeploymentGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsResponse.java new file mode 100644 index 000000000000..f0ec4acfcb93 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsResponse.java @@ -0,0 +1,1224 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response message for ListMirroringDeploymentGroups.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse} + */ +@com.google.protobuf.Generated +public final class ListMirroringDeploymentGroupsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse) + ListMirroringDeploymentGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMirroringDeploymentGroupsResponse"); + } + + // Use ListMirroringDeploymentGroupsResponse.newBuilder() to construct. + private ListMirroringDeploymentGroupsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMirroringDeploymentGroupsResponse() { + mirroringDeploymentGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse.Builder + .class); + } + + public static final int MIRRORING_DEPLOYMENT_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + mirroringDeploymentGroups_; + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getMirroringDeploymentGroupsList() { + return mirroringDeploymentGroups_; + } + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder> + getMirroringDeploymentGroupsOrBuilderList() { + return mirroringDeploymentGroups_; + } + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + @java.lang.Override + public int getMirroringDeploymentGroupsCount() { + return mirroringDeploymentGroups_.size(); + } + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup getMirroringDeploymentGroups( + int index) { + return mirroringDeploymentGroups_.get(index); + } + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupsOrBuilder(int index) { + return mirroringDeploymentGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < mirroringDeploymentGroups_.size(); i++) { + output.writeMessage(1, mirroringDeploymentGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mirroringDeploymentGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, mirroringDeploymentGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.networksecurity.v1.ListMirroringDeploymentGroupsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse other = + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse) obj; + + if (!getMirroringDeploymentGroupsList().equals(other.getMirroringDeploymentGroupsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getMirroringDeploymentGroupsCount() > 0) { + hash = (37 * hash) + MIRRORING_DEPLOYMENT_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeploymentGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse 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.networksecurity.v1.ListMirroringDeploymentGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse 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.networksecurity.v1.ListMirroringDeploymentGroupsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListMirroringDeploymentGroupsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response message for ListMirroringDeploymentGroups.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse) + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mirroringDeploymentGroupsBuilder_ == null) { + mirroringDeploymentGroups_ = java.util.Collections.emptyList(); + } else { + mirroringDeploymentGroups_ = null; + mirroringDeploymentGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse build() { + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + buildPartial() { + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse result = + new com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse result) { + if (mirroringDeploymentGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mirroringDeploymentGroups_ = + java.util.Collections.unmodifiableList(mirroringDeploymentGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mirroringDeploymentGroups_ = mirroringDeploymentGroups_; + } else { + result.mirroringDeploymentGroups_ = mirroringDeploymentGroupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + .getDefaultInstance()) return this; + if (mirroringDeploymentGroupsBuilder_ == null) { + if (!other.mirroringDeploymentGroups_.isEmpty()) { + if (mirroringDeploymentGroups_.isEmpty()) { + mirroringDeploymentGroups_ = other.mirroringDeploymentGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.addAll(other.mirroringDeploymentGroups_); + } + onChanged(); + } + } else { + if (!other.mirroringDeploymentGroups_.isEmpty()) { + if (mirroringDeploymentGroupsBuilder_.isEmpty()) { + mirroringDeploymentGroupsBuilder_.dispose(); + mirroringDeploymentGroupsBuilder_ = null; + mirroringDeploymentGroups_ = other.mirroringDeploymentGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + mirroringDeploymentGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMirroringDeploymentGroupsFieldBuilder() + : null; + } else { + mirroringDeploymentGroupsBuilder_.addAllMessages(other.mirroringDeploymentGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.parser(), + extensionRegistry); + if (mirroringDeploymentGroupsBuilder_ == null) { + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.add(m); + } else { + mirroringDeploymentGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List + mirroringDeploymentGroups_ = java.util.Collections.emptyList(); + + private void ensureMirroringDeploymentGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mirroringDeploymentGroups_ = + new java.util.ArrayList( + mirroringDeploymentGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder> + mirroringDeploymentGroupsBuilder_; + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public java.util.List + getMirroringDeploymentGroupsList() { + if (mirroringDeploymentGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mirroringDeploymentGroups_); + } else { + return mirroringDeploymentGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public int getMirroringDeploymentGroupsCount() { + if (mirroringDeploymentGroupsBuilder_ == null) { + return mirroringDeploymentGroups_.size(); + } else { + return mirroringDeploymentGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + getMirroringDeploymentGroups(int index) { + if (mirroringDeploymentGroupsBuilder_ == null) { + return mirroringDeploymentGroups_.get(index); + } else { + return mirroringDeploymentGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder setMirroringDeploymentGroups( + int index, com.google.cloud.networksecurity.v1.MirroringDeploymentGroup value) { + if (mirroringDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.set(index, value); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder setMirroringDeploymentGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder builderForValue) { + if (mirroringDeploymentGroupsBuilder_ == null) { + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder addMirroringDeploymentGroups( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup value) { + if (mirroringDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.add(value); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder addMirroringDeploymentGroups( + int index, com.google.cloud.networksecurity.v1.MirroringDeploymentGroup value) { + if (mirroringDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.add(index, value); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder addMirroringDeploymentGroups( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder builderForValue) { + if (mirroringDeploymentGroupsBuilder_ == null) { + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.add(builderForValue.build()); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder addMirroringDeploymentGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder builderForValue) { + if (mirroringDeploymentGroupsBuilder_ == null) { + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder addAllMirroringDeploymentGroups( + java.lang.Iterable + values) { + if (mirroringDeploymentGroupsBuilder_ == null) { + ensureMirroringDeploymentGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mirroringDeploymentGroups_); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder clearMirroringDeploymentGroups() { + if (mirroringDeploymentGroupsBuilder_ == null) { + mirroringDeploymentGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public Builder removeMirroringDeploymentGroups(int index) { + if (mirroringDeploymentGroupsBuilder_ == null) { + ensureMirroringDeploymentGroupsIsMutable(); + mirroringDeploymentGroups_.remove(index); + onChanged(); + } else { + mirroringDeploymentGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder + getMirroringDeploymentGroupsBuilder(int index) { + return internalGetMirroringDeploymentGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupsOrBuilder(int index) { + if (mirroringDeploymentGroupsBuilder_ == null) { + return mirroringDeploymentGroups_.get(index); + } else { + return mirroringDeploymentGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder> + getMirroringDeploymentGroupsOrBuilderList() { + if (mirroringDeploymentGroupsBuilder_ != null) { + return mirroringDeploymentGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mirroringDeploymentGroups_); + } + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder + addMirroringDeploymentGroupsBuilder() { + return internalGetMirroringDeploymentGroupsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder + addMirroringDeploymentGroupsBuilder(int index) { + return internalGetMirroringDeploymentGroupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The deployment groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + public java.util.List + getMirroringDeploymentGroupsBuilderList() { + return internalGetMirroringDeploymentGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder> + internalGetMirroringDeploymentGroupsFieldBuilder() { + if (mirroringDeploymentGroupsBuilder_ == null) { + mirroringDeploymentGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder>( + mirroringDeploymentGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mirroringDeploymentGroups_ = null; + } + return mirroringDeploymentGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse) + private static final com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMirroringDeploymentGroupsResponse 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.networksecurity.v1.ListMirroringDeploymentGroupsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..3cb8c656f2ef --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentGroupsResponseOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListMirroringDeploymentGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + java.util.List + getMirroringDeploymentGroupsList(); + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup getMirroringDeploymentGroups( + int index); + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + int getMirroringDeploymentGroupsCount(); + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + java.util.List + getMirroringDeploymentGroupsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The deployment groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsRequest.java new file mode 100644 index 000000000000..1f9395815612 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsRequest.java @@ -0,0 +1,1350 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for ListMirroringDeployments.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest} + */ +@com.google.protobuf.Generated +public final class ListMirroringDeploymentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) + ListMirroringDeploymentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMirroringDeploymentsRequest"); + } + + // Use ListMirroringDeploymentsRequest.newBuilder() to construct. + private ListMirroringDeploymentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMirroringDeploymentsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest.class, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployments.
                                                                                              +   * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployments.
                                                                                              +   * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +   * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +   * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +   * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +   * details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +   * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +   * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +   * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +   * details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListMirroringDeploymentsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest other = + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest 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.networksecurity.v1.ListMirroringDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest 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.networksecurity.v1.ListMirroringDeploymentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListMirroringDeploymentsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for ListMirroringDeployments.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest.class, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest build() { + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest result = + new com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of deployments.
                                                                                              +     * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +     * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +     * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +     * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +     * details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) + private static final com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMirroringDeploymentsRequest 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.networksecurity.v1.ListMirroringDeploymentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000000..c646ca47fbe1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsRequestOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListMirroringDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployments.
                                                                                              +   * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of deployments.
                                                                                              +   * Example: `projects/123456789/locations/us-central1-a`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +   * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +   * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +   * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +   * details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous `ListMirroringDeployments`
                                                                                              +   * call. Provide this to retrieve the subsequent page. When paginating, all
                                                                                              +   * other parameters provided to `ListMirroringDeployments` must match the call
                                                                                              +   * that provided the page token. See https://google.aip.dev/158 for more
                                                                                              +   * details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsResponse.java new file mode 100644 index 000000000000..17c3c67fce8d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsResponse.java @@ -0,0 +1,1495 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response message for ListMirroringDeployments.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse} + */ +@com.google.protobuf.Generated +public final class ListMirroringDeploymentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse) + ListMirroringDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMirroringDeploymentsResponse"); + } + + // Use ListMirroringDeploymentsResponse.newBuilder() to construct. + private ListMirroringDeploymentsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMirroringDeploymentsResponse() { + mirroringDeployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse.class, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse.Builder.class); + } + + public static final int MIRRORING_DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + mirroringDeployments_; + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + @java.lang.Override + public java.util.List + getMirroringDeploymentsList() { + return mirroringDeployments_; + } + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + @java.lang.Override + public java.util.List + getMirroringDeploymentsOrBuilderList() { + return mirroringDeployments_; + } + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + @java.lang.Override + public int getMirroringDeploymentsCount() { + return mirroringDeployments_.size(); + } + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployments( + int index) { + return mirroringDeployments_.get(index); + } + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder + getMirroringDeploymentsOrBuilder(int index) { + return mirroringDeployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < mirroringDeployments_.size(); i++) { + output.writeMessage(1, mirroringDeployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mirroringDeployments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, mirroringDeployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse other = + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse) obj; + + if (!getMirroringDeploymentsList().equals(other.getMirroringDeploymentsList())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMirroringDeploymentsCount() > 0) { + hash = (37 * hash) + MIRRORING_DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeploymentsList().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; + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse 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.networksecurity.v1.ListMirroringDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse 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.networksecurity.v1.ListMirroringDeploymentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListMirroringDeploymentsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response message for ListMirroringDeployments.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse) + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse.class, + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mirroringDeploymentsBuilder_ == null) { + mirroringDeployments_ = java.util.Collections.emptyList(); + } else { + mirroringDeployments_ = null; + mirroringDeploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse build() { + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse result = + new com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse result) { + if (mirroringDeploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mirroringDeployments_ = java.util.Collections.unmodifiableList(mirroringDeployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mirroringDeployments_ = mirroringDeployments_; + } else { + result.mirroringDeployments_ = mirroringDeploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + .getDefaultInstance()) return this; + if (mirroringDeploymentsBuilder_ == null) { + if (!other.mirroringDeployments_.isEmpty()) { + if (mirroringDeployments_.isEmpty()) { + mirroringDeployments_ = other.mirroringDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.addAll(other.mirroringDeployments_); + } + onChanged(); + } + } else { + if (!other.mirroringDeployments_.isEmpty()) { + if (mirroringDeploymentsBuilder_.isEmpty()) { + mirroringDeploymentsBuilder_.dispose(); + mirroringDeploymentsBuilder_ = null; + mirroringDeployments_ = other.mirroringDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + mirroringDeploymentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMirroringDeploymentsFieldBuilder() + : null; + } else { + mirroringDeploymentsBuilder_.addAllMessages(other.mirroringDeployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.MirroringDeployment m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringDeployment.parser(), + extensionRegistry); + if (mirroringDeploymentsBuilder_ == null) { + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.add(m); + } else { + mirroringDeploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + mirroringDeployments_ = java.util.Collections.emptyList(); + + private void ensureMirroringDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mirroringDeployments_ = + new java.util.ArrayList( + mirroringDeployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder> + mirroringDeploymentsBuilder_; + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public java.util.List + getMirroringDeploymentsList() { + if (mirroringDeploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mirroringDeployments_); + } else { + return mirroringDeploymentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public int getMirroringDeploymentsCount() { + if (mirroringDeploymentsBuilder_ == null) { + return mirroringDeployments_.size(); + } else { + return mirroringDeploymentsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployments( + int index) { + if (mirroringDeploymentsBuilder_ == null) { + return mirroringDeployments_.get(index); + } else { + return mirroringDeploymentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder setMirroringDeployments( + int index, com.google.cloud.networksecurity.v1.MirroringDeployment value) { + if (mirroringDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.set(index, value); + onChanged(); + } else { + mirroringDeploymentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder setMirroringDeployments( + int index, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder builderForValue) { + if (mirroringDeploymentsBuilder_ == null) { + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.set(index, builderForValue.build()); + onChanged(); + } else { + mirroringDeploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder addMirroringDeployments( + com.google.cloud.networksecurity.v1.MirroringDeployment value) { + if (mirroringDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.add(value); + onChanged(); + } else { + mirroringDeploymentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder addMirroringDeployments( + int index, com.google.cloud.networksecurity.v1.MirroringDeployment value) { + if (mirroringDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.add(index, value); + onChanged(); + } else { + mirroringDeploymentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder addMirroringDeployments( + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder builderForValue) { + if (mirroringDeploymentsBuilder_ == null) { + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.add(builderForValue.build()); + onChanged(); + } else { + mirroringDeploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder addMirroringDeployments( + int index, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder builderForValue) { + if (mirroringDeploymentsBuilder_ == null) { + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.add(index, builderForValue.build()); + onChanged(); + } else { + mirroringDeploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder addAllMirroringDeployments( + java.lang.Iterable + values) { + if (mirroringDeploymentsBuilder_ == null) { + ensureMirroringDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mirroringDeployments_); + onChanged(); + } else { + mirroringDeploymentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder clearMirroringDeployments() { + if (mirroringDeploymentsBuilder_ == null) { + mirroringDeployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mirroringDeploymentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public Builder removeMirroringDeployments(int index) { + if (mirroringDeploymentsBuilder_ == null) { + ensureMirroringDeploymentsIsMutable(); + mirroringDeployments_.remove(index); + onChanged(); + } else { + mirroringDeploymentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment.Builder + getMirroringDeploymentsBuilder(int index) { + return internalGetMirroringDeploymentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder + getMirroringDeploymentsOrBuilder(int index) { + if (mirroringDeploymentsBuilder_ == null) { + return mirroringDeployments_.get(index); + } else { + return mirroringDeploymentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder> + getMirroringDeploymentsOrBuilderList() { + if (mirroringDeploymentsBuilder_ != null) { + return mirroringDeploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mirroringDeployments_); + } + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment.Builder + addMirroringDeploymentsBuilder() { + return internalGetMirroringDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment.Builder + addMirroringDeploymentsBuilder(int index) { + return internalGetMirroringDeploymentsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The deployments from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + public java.util.List + getMirroringDeploymentsBuilderList() { + return internalGetMirroringDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder> + internalGetMirroringDeploymentsFieldBuilder() { + if (mirroringDeploymentsBuilder_ == null) { + mirroringDeploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder>( + mirroringDeployments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mirroringDeployments_ = null; + } + return mirroringDeploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse) + private static final com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMirroringDeploymentsResponse 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.networksecurity.v1.ListMirroringDeploymentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000000..a18ecd7db764 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringDeploymentsResponseOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListMirroringDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + java.util.List + getMirroringDeploymentsList(); + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployments(int index); + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + int getMirroringDeploymentsCount(); + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + java.util.List + getMirroringDeploymentsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The deployments from the specified parent.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployments = 1; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder getMirroringDeploymentsOrBuilder( + int index); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsRequest.java new file mode 100644 index 000000000000..df051d25a29b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsRequest.java @@ -0,0 +1,1376 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for ListMirroringEndpointGroupAssociations.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest} + */ +@com.google.protobuf.Generated +public final class ListMirroringEndpointGroupAssociationsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) + ListMirroringEndpointGroupAssociationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMirroringEndpointGroupAssociationsRequest"); + } + + // Use ListMirroringEndpointGroupAssociationsRequest.newBuilder() to construct. + private ListMirroringEndpointGroupAssociationsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMirroringEndpointGroupAssociationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest.class, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of associations.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of associations.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest other = + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + 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.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + 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.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for ListMirroringEndpointGroupAssociations.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + .class, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + build() { + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + buildPartial() { + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest result = + new com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of associations.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token. See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) + private static final com.google.cloud.networksecurity.v1 + .ListMirroringEndpointGroupAssociationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMirroringEndpointGroupAssociationsRequest 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.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsRequestOrBuilder.java new file mode 100644 index 000000000000..f74e32118a8a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsRequestOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListMirroringEndpointGroupAssociationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of associations.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of associations.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +   * token. See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsResponse.java new file mode 100644 index 000000000000..820bcf18a33c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsResponse.java @@ -0,0 +1,1257 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response message for ListMirroringEndpointGroupAssociations.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse} + */ +@com.google.protobuf.Generated +public final class ListMirroringEndpointGroupAssociationsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse) + ListMirroringEndpointGroupAssociationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMirroringEndpointGroupAssociationsResponse"); + } + + // Use ListMirroringEndpointGroupAssociationsResponse.newBuilder() to construct. + private ListMirroringEndpointGroupAssociationsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMirroringEndpointGroupAssociationsResponse() { + mirroringEndpointGroupAssociations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + .class, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + .Builder.class); + } + + public static final int MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + mirroringEndpointGroupAssociations_; + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public java.util.List + getMirroringEndpointGroupAssociationsList() { + return mirroringEndpointGroupAssociations_; + } + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + getMirroringEndpointGroupAssociationsOrBuilderList() { + return mirroringEndpointGroupAssociations_; + } + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public int getMirroringEndpointGroupAssociationsCount() { + return mirroringEndpointGroupAssociations_.size(); + } + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociations(int index) { + return mirroringEndpointGroupAssociations_.get(index); + } + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationsOrBuilder(int index) { + return mirroringEndpointGroupAssociations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < mirroringEndpointGroupAssociations_.size(); i++) { + output.writeMessage(1, mirroringEndpointGroupAssociations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mirroringEndpointGroupAssociations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, mirroringEndpointGroupAssociations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse other = + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse) obj; + + if (!getMirroringEndpointGroupAssociationsList() + .equals(other.getMirroringEndpointGroupAssociationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getMirroringEndpointGroupAssociationsCount() > 0) { + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUP_ASSOCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroupAssociationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + 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.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + 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.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response message for ListMirroringEndpointGroupAssociations.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse) + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + .class, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + mirroringEndpointGroupAssociations_ = java.util.Collections.emptyList(); + } else { + mirroringEndpointGroupAssociations_ = null; + mirroringEndpointGroupAssociationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + build() { + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + buildPartial() { + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse result = + new com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse result) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mirroringEndpointGroupAssociations_ = + java.util.Collections.unmodifiableList(mirroringEndpointGroupAssociations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mirroringEndpointGroupAssociations_ = mirroringEndpointGroupAssociations_; + } else { + result.mirroringEndpointGroupAssociations_ = + mirroringEndpointGroupAssociationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + .getDefaultInstance()) return this; + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + if (!other.mirroringEndpointGroupAssociations_.isEmpty()) { + if (mirroringEndpointGroupAssociations_.isEmpty()) { + mirroringEndpointGroupAssociations_ = other.mirroringEndpointGroupAssociations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.addAll(other.mirroringEndpointGroupAssociations_); + } + onChanged(); + } + } else { + if (!other.mirroringEndpointGroupAssociations_.isEmpty()) { + if (mirroringEndpointGroupAssociationsBuilder_.isEmpty()) { + mirroringEndpointGroupAssociationsBuilder_.dispose(); + mirroringEndpointGroupAssociationsBuilder_ = null; + mirroringEndpointGroupAssociations_ = other.mirroringEndpointGroupAssociations_; + bitField0_ = (bitField0_ & ~0x00000001); + mirroringEndpointGroupAssociationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMirroringEndpointGroupAssociationsFieldBuilder() + : null; + } else { + mirroringEndpointGroupAssociationsBuilder_.addAllMessages( + other.mirroringEndpointGroupAssociations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .parser(), + extensionRegistry); + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.add(m); + } else { + mirroringEndpointGroupAssociationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List + mirroringEndpointGroupAssociations_ = java.util.Collections.emptyList(); + + private void ensureMirroringEndpointGroupAssociationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mirroringEndpointGroupAssociations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation>( + mirroringEndpointGroupAssociations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + mirroringEndpointGroupAssociationsBuilder_; + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public java.util.List + getMirroringEndpointGroupAssociationsList() { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mirroringEndpointGroupAssociations_); + } else { + return mirroringEndpointGroupAssociationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public int getMirroringEndpointGroupAssociationsCount() { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + return mirroringEndpointGroupAssociations_.size(); + } else { + return mirroringEndpointGroupAssociationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociations(int index) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + return mirroringEndpointGroupAssociations_.get(index); + } else { + return mirroringEndpointGroupAssociationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder setMirroringEndpointGroupAssociations( + int index, com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation value) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.set(index, value); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder setMirroringEndpointGroupAssociations( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + builderForValue) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.set(index, builderForValue.build()); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder addMirroringEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation value) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.add(value); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder addMirroringEndpointGroupAssociations( + int index, com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation value) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.add(index, value); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder addMirroringEndpointGroupAssociations( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + builderForValue) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.add(builderForValue.build()); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder addMirroringEndpointGroupAssociations( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + builderForValue) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.add(index, builderForValue.build()); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder addAllMirroringEndpointGroupAssociations( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation> + values) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + ensureMirroringEndpointGroupAssociationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mirroringEndpointGroupAssociations_); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder clearMirroringEndpointGroupAssociations() { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + mirroringEndpointGroupAssociations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public Builder removeMirroringEndpointGroupAssociations(int index) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + ensureMirroringEndpointGroupAssociationsIsMutable(); + mirroringEndpointGroupAssociations_.remove(index); + onChanged(); + } else { + mirroringEndpointGroupAssociationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + getMirroringEndpointGroupAssociationsBuilder(int index) { + return internalGetMirroringEndpointGroupAssociationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationsOrBuilder(int index) { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + return mirroringEndpointGroupAssociations_.get(index); + } else { + return mirroringEndpointGroupAssociationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + getMirroringEndpointGroupAssociationsOrBuilderList() { + if (mirroringEndpointGroupAssociationsBuilder_ != null) { + return mirroringEndpointGroupAssociationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mirroringEndpointGroupAssociations_); + } + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + addMirroringEndpointGroupAssociationsBuilder() { + return internalGetMirroringEndpointGroupAssociationsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + addMirroringEndpointGroupAssociationsBuilder(int index) { + return internalGetMirroringEndpointGroupAssociationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The associations from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder> + getMirroringEndpointGroupAssociationsBuilderList() { + return internalGetMirroringEndpointGroupAssociationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + internalGetMirroringEndpointGroupAssociationsFieldBuilder() { + if (mirroringEndpointGroupAssociationsBuilder_ == null) { + mirroringEndpointGroupAssociationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder>( + mirroringEndpointGroupAssociations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mirroringEndpointGroupAssociations_ = null; + } + return mirroringEndpointGroupAssociationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse) + private static final com.google.cloud.networksecurity.v1 + .ListMirroringEndpointGroupAssociationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMirroringEndpointGroupAssociationsResponse 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.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsResponseOrBuilder.java new file mode 100644 index 000000000000..925221d62682 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupAssociationsResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListMirroringEndpointGroupAssociationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + java.util.List + getMirroringEndpointGroupAssociationsList(); + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociations(int index); + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + int getMirroringEndpointGroupAssociationsCount(); + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + java.util.List< + ? extends com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + getMirroringEndpointGroupAssociationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The associations from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_associations = 1; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsRequest.java new file mode 100644 index 000000000000..46a336b612e6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsRequest.java @@ -0,0 +1,1359 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for ListMirroringEndpointGroups.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest} + */ +@com.google.protobuf.Generated +public final class ListMirroringEndpointGroupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) + ListMirroringEndpointGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMirroringEndpointGroupsRequest"); + } + + // Use ListMirroringEndpointGroupsRequest.newBuilder() to construct. + private ListMirroringEndpointGroupsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMirroringEndpointGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +   * token.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +   * token.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.networksecurity.v1.ListMirroringEndpointGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest other = + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest 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.networksecurity.v1.ListMirroringEndpointGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest 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.networksecurity.v1.ListMirroringEndpointGroupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListMirroringEndpointGroupsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for ListMirroringEndpointGroups.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest build() { + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest result = + new com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +     * Example: `projects/123456789/locations/global`.
                                                                                              +     * See https://google.aip.dev/132 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +     * https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A page token, received from a previous
                                                                                              +     * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +     * page. When paginating, all other parameters provided to
                                                                                              +     * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +     * token.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Filter expression.
                                                                                              +     * See https://google.aip.dev/160#filtering for more details.
                                                                                              +     * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Sort expression.
                                                                                              +     * See https://google.aip.dev/132#ordering for more details.
                                                                                              +     * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) + private static final com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMirroringEndpointGroupsRequest 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.networksecurity.v1.ListMirroringEndpointGroupsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..57cc80969c2f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsRequestOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListMirroringEndpointGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The parent, which owns this collection of endpoint groups.
                                                                                              +   * Example: `projects/123456789/locations/global`.
                                                                                              +   * See https://google.aip.dev/132 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default. See
                                                                                              +   * https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +   * token.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. A page token, received from a previous
                                                                                              +   * `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent
                                                                                              +   * page. When paginating, all other parameters provided to
                                                                                              +   * `ListMirroringEndpointGroups` must match the call that provided the page
                                                                                              +   * token.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                                                                                              +   * Optional. Filter expression.
                                                                                              +   * See https://google.aip.dev/160#filtering for more details.
                                                                                              +   * 
                                                                                              + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
                                                                                              +   * Optional. Sort expression.
                                                                                              +   * See https://google.aip.dev/132#ordering for more details.
                                                                                              +   * 
                                                                                              + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsResponse.java new file mode 100644 index 000000000000..c808b8b2e5b8 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsResponse.java @@ -0,0 +1,1220 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response message for ListMirroringEndpointGroups.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse} + */ +@com.google.protobuf.Generated +public final class ListMirroringEndpointGroupsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse) + ListMirroringEndpointGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMirroringEndpointGroupsResponse"); + } + + // Use ListMirroringEndpointGroupsResponse.newBuilder() to construct. + private ListMirroringEndpointGroupsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMirroringEndpointGroupsResponse() { + mirroringEndpointGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse.Builder.class); + } + + public static final int MIRRORING_ENDPOINT_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + mirroringEndpointGroups_; + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getMirroringEndpointGroupsList() { + return mirroringEndpointGroups_; + } + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder> + getMirroringEndpointGroupsOrBuilderList() { + return mirroringEndpointGroups_; + } + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + @java.lang.Override + public int getMirroringEndpointGroupsCount() { + return mirroringEndpointGroups_.size(); + } + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroups( + int index) { + return mirroringEndpointGroups_.get(index); + } + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupsOrBuilder(int index) { + return mirroringEndpointGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < mirroringEndpointGroups_.size(); i++) { + output.writeMessage(1, mirroringEndpointGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mirroringEndpointGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, mirroringEndpointGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.networksecurity.v1.ListMirroringEndpointGroupsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse other = + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse) obj; + + if (!getMirroringEndpointGroupsList().equals(other.getMirroringEndpointGroupsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getMirroringEndpointGroupsCount() > 0) { + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse 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.networksecurity.v1.ListMirroringEndpointGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse 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.networksecurity.v1.ListMirroringEndpointGroupsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListMirroringEndpointGroupsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response message for ListMirroringEndpointGroups.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse) + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mirroringEndpointGroupsBuilder_ == null) { + mirroringEndpointGroups_ = java.util.Collections.emptyList(); + } else { + mirroringEndpointGroups_ = null; + mirroringEndpointGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse build() { + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse result = + new com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse result) { + if (mirroringEndpointGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mirroringEndpointGroups_ = + java.util.Collections.unmodifiableList(mirroringEndpointGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mirroringEndpointGroups_ = mirroringEndpointGroups_; + } else { + result.mirroringEndpointGroups_ = mirroringEndpointGroupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + .getDefaultInstance()) return this; + if (mirroringEndpointGroupsBuilder_ == null) { + if (!other.mirroringEndpointGroups_.isEmpty()) { + if (mirroringEndpointGroups_.isEmpty()) { + mirroringEndpointGroups_ = other.mirroringEndpointGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.addAll(other.mirroringEndpointGroups_); + } + onChanged(); + } + } else { + if (!other.mirroringEndpointGroups_.isEmpty()) { + if (mirroringEndpointGroupsBuilder_.isEmpty()) { + mirroringEndpointGroupsBuilder_.dispose(); + mirroringEndpointGroupsBuilder_ = null; + mirroringEndpointGroups_ = other.mirroringEndpointGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + mirroringEndpointGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMirroringEndpointGroupsFieldBuilder() + : null; + } else { + mirroringEndpointGroupsBuilder_.addAllMessages(other.mirroringEndpointGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.parser(), + extensionRegistry); + if (mirroringEndpointGroupsBuilder_ == null) { + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.add(m); + } else { + mirroringEndpointGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List + mirroringEndpointGroups_ = java.util.Collections.emptyList(); + + private void ensureMirroringEndpointGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mirroringEndpointGroups_ = + new java.util.ArrayList( + mirroringEndpointGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder> + mirroringEndpointGroupsBuilder_; + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public java.util.List + getMirroringEndpointGroupsList() { + if (mirroringEndpointGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mirroringEndpointGroups_); + } else { + return mirroringEndpointGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public int getMirroringEndpointGroupsCount() { + if (mirroringEndpointGroupsBuilder_ == null) { + return mirroringEndpointGroups_.size(); + } else { + return mirroringEndpointGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroups( + int index) { + if (mirroringEndpointGroupsBuilder_ == null) { + return mirroringEndpointGroups_.get(index); + } else { + return mirroringEndpointGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder setMirroringEndpointGroups( + int index, com.google.cloud.networksecurity.v1.MirroringEndpointGroup value) { + if (mirroringEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.set(index, value); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder setMirroringEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder builderForValue) { + if (mirroringEndpointGroupsBuilder_ == null) { + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder addMirroringEndpointGroups( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup value) { + if (mirroringEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.add(value); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder addMirroringEndpointGroups( + int index, com.google.cloud.networksecurity.v1.MirroringEndpointGroup value) { + if (mirroringEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.add(index, value); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder addMirroringEndpointGroups( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder builderForValue) { + if (mirroringEndpointGroupsBuilder_ == null) { + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.add(builderForValue.build()); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder addMirroringEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder builderForValue) { + if (mirroringEndpointGroupsBuilder_ == null) { + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder addAllMirroringEndpointGroups( + java.lang.Iterable + values) { + if (mirroringEndpointGroupsBuilder_ == null) { + ensureMirroringEndpointGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mirroringEndpointGroups_); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder clearMirroringEndpointGroups() { + if (mirroringEndpointGroupsBuilder_ == null) { + mirroringEndpointGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public Builder removeMirroringEndpointGroups(int index) { + if (mirroringEndpointGroupsBuilder_ == null) { + ensureMirroringEndpointGroupsIsMutable(); + mirroringEndpointGroups_.remove(index); + onChanged(); + } else { + mirroringEndpointGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder + getMirroringEndpointGroupsBuilder(int index) { + return internalGetMirroringEndpointGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupsOrBuilder(int index) { + if (mirroringEndpointGroupsBuilder_ == null) { + return mirroringEndpointGroups_.get(index); + } else { + return mirroringEndpointGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder> + getMirroringEndpointGroupsOrBuilderList() { + if (mirroringEndpointGroupsBuilder_ != null) { + return mirroringEndpointGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mirroringEndpointGroups_); + } + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder + addMirroringEndpointGroupsBuilder() { + return internalGetMirroringEndpointGroupsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder + addMirroringEndpointGroupsBuilder(int index) { + return internalGetMirroringEndpointGroupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * The endpoint groups from the specified parent.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + public java.util.List + getMirroringEndpointGroupsBuilderList() { + return internalGetMirroringEndpointGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder> + internalGetMirroringEndpointGroupsFieldBuilder() { + if (mirroringEndpointGroupsBuilder_ == null) { + mirroringEndpointGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder>( + mirroringEndpointGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mirroringEndpointGroups_ = null; + } + return mirroringEndpointGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +     * If this field is omitted, there are no subsequent pages.
                                                                                              +     * See https://google.aip.dev/158 for more details.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse) + private static final com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMirroringEndpointGroupsResponse 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.networksecurity.v1.ListMirroringEndpointGroupsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..e5ba8053b024 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListMirroringEndpointGroupsResponseOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListMirroringEndpointGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + java.util.List + getMirroringEndpointGroupsList(); + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroups(int index); + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + int getMirroringEndpointGroupsCount(); + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + java.util.List + getMirroringEndpointGroupsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * The endpoint groups from the specified parent.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * A token that can be sent as `page_token` to retrieve the next page.
                                                                                              +   * If this field is omitted, there are no subsequent pages.
                                                                                              +   * See https://google.aip.dev/158 for more details.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsRequest.java new file mode 100644 index 000000000000..722ea5cdb387 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsRequest.java @@ -0,0 +1,944 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used with the ListSecurityProfileGroups method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest} + */ +@com.google.protobuf.Generated +public final class ListSecurityProfileGroupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) + ListSecurityProfileGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSecurityProfileGroupsRequest"); + } + + // Use ListSecurityProfileGroupsRequest.newBuilder() to construct. + private ListSecurityProfileGroupsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSecurityProfileGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The project or organization and location from which the
                                                                                              +   * SecurityProfileGroups should be listed, specified in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The project or organization and location from which the
                                                                                              +   * SecurityProfileGroups should be listed, specified in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Maximum number of SecurityProfileGroups to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. The value returned by the last
                                                                                              +   * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +   * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. The value returned by the last
                                                                                              +   * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +   * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.networksecurity.v1.ListSecurityProfileGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest other = + (com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest 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.networksecurity.v1.ListSecurityProfileGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest 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.networksecurity.v1.ListSecurityProfileGroupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListSecurityProfileGroupsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used with the ListSecurityProfileGroups method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest build() { + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest result = + new com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfileGroups should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfileGroups should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfileGroups should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfileGroups should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfileGroups should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Maximum number of SecurityProfileGroups to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Maximum number of SecurityProfileGroups to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Maximum number of SecurityProfileGroups to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +     * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +     * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +     * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +     * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +     * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) + private static final com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecurityProfileGroupsRequest 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.networksecurity.v1.ListSecurityProfileGroupsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..cd172b46016f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListSecurityProfileGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The project or organization and location from which the
                                                                                              +   * SecurityProfileGroups should be listed, specified in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The project or organization and location from which the
                                                                                              +   * SecurityProfileGroups should be listed, specified in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Maximum number of SecurityProfileGroups to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. The value returned by the last
                                                                                              +   * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +   * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. The value returned by the last
                                                                                              +   * `ListSecurityProfileGroupsResponse` Indicates that this is a
                                                                                              +   * continuation of a prior `ListSecurityProfileGroups` call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsResponse.java new file mode 100644 index 000000000000..470b885a643f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsResponse.java @@ -0,0 +1,1212 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response returned by the ListSecurityProfileGroups method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse} + */ +@com.google.protobuf.Generated +public final class ListSecurityProfileGroupsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse) + ListSecurityProfileGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSecurityProfileGroupsResponse"); + } + + // Use ListSecurityProfileGroupsResponse.newBuilder() to construct. + private ListSecurityProfileGroupsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSecurityProfileGroupsResponse() { + securityProfileGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse.Builder.class); + } + + public static final int SECURITY_PROFILE_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + securityProfileGroups_; + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getSecurityProfileGroupsList() { + return securityProfileGroups_; + } + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getSecurityProfileGroupsOrBuilderList() { + return securityProfileGroups_; + } + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + @java.lang.Override + public int getSecurityProfileGroupsCount() { + return securityProfileGroups_.size(); + } + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroups( + int index) { + return securityProfileGroups_.get(index); + } + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupsOrBuilder(int index) { + return securityProfileGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < securityProfileGroups_.size(); i++) { + output.writeMessage(1, securityProfileGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < securityProfileGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, securityProfileGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.networksecurity.v1.ListSecurityProfileGroupsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse other = + (com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse) obj; + + if (!getSecurityProfileGroupsList().equals(other.getSecurityProfileGroupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getSecurityProfileGroupsCount() > 0) { + hash = (37 * hash) + SECURITY_PROFILE_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getSecurityProfileGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse 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.networksecurity.v1.ListSecurityProfileGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse 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.networksecurity.v1.ListSecurityProfileGroupsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListSecurityProfileGroupsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response returned by the ListSecurityProfileGroups method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse) + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (securityProfileGroupsBuilder_ == null) { + securityProfileGroups_ = java.util.Collections.emptyList(); + } else { + securityProfileGroups_ = null; + securityProfileGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse build() { + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse result = + new com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse result) { + if (securityProfileGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + securityProfileGroups_ = java.util.Collections.unmodifiableList(securityProfileGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityProfileGroups_ = securityProfileGroups_; + } else { + result.securityProfileGroups_ = securityProfileGroupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + .getDefaultInstance()) return this; + if (securityProfileGroupsBuilder_ == null) { + if (!other.securityProfileGroups_.isEmpty()) { + if (securityProfileGroups_.isEmpty()) { + securityProfileGroups_ = other.securityProfileGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.addAll(other.securityProfileGroups_); + } + onChanged(); + } + } else { + if (!other.securityProfileGroups_.isEmpty()) { + if (securityProfileGroupsBuilder_.isEmpty()) { + securityProfileGroupsBuilder_.dispose(); + securityProfileGroupsBuilder_ = null; + securityProfileGroups_ = other.securityProfileGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + securityProfileGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSecurityProfileGroupsFieldBuilder() + : null; + } else { + securityProfileGroupsBuilder_.addAllMessages(other.securityProfileGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.networksecurity.v1.SecurityProfileGroup m = + input.readMessage( + com.google.cloud.networksecurity.v1.SecurityProfileGroup.parser(), + extensionRegistry); + if (securityProfileGroupsBuilder_ == null) { + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.add(m); + } else { + securityProfileGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List + securityProfileGroups_ = java.util.Collections.emptyList(); + + private void ensureSecurityProfileGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityProfileGroups_ = + new java.util.ArrayList( + securityProfileGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder> + securityProfileGroupsBuilder_; + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public java.util.List + getSecurityProfileGroupsList() { + if (securityProfileGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityProfileGroups_); + } else { + return securityProfileGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public int getSecurityProfileGroupsCount() { + if (securityProfileGroupsBuilder_ == null) { + return securityProfileGroups_.size(); + } else { + return securityProfileGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroups( + int index) { + if (securityProfileGroupsBuilder_ == null) { + return securityProfileGroups_.get(index); + } else { + return securityProfileGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder setSecurityProfileGroups( + int index, com.google.cloud.networksecurity.v1.SecurityProfileGroup value) { + if (securityProfileGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.set(index, value); + onChanged(); + } else { + securityProfileGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder setSecurityProfileGroups( + int index, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder builderForValue) { + if (securityProfileGroupsBuilder_ == null) { + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + securityProfileGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder addSecurityProfileGroups( + com.google.cloud.networksecurity.v1.SecurityProfileGroup value) { + if (securityProfileGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.add(value); + onChanged(); + } else { + securityProfileGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder addSecurityProfileGroups( + int index, com.google.cloud.networksecurity.v1.SecurityProfileGroup value) { + if (securityProfileGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.add(index, value); + onChanged(); + } else { + securityProfileGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder addSecurityProfileGroups( + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder builderForValue) { + if (securityProfileGroupsBuilder_ == null) { + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.add(builderForValue.build()); + onChanged(); + } else { + securityProfileGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder addSecurityProfileGroups( + int index, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder builderForValue) { + if (securityProfileGroupsBuilder_ == null) { + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + securityProfileGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder addAllSecurityProfileGroups( + java.lang.Iterable + values) { + if (securityProfileGroupsBuilder_ == null) { + ensureSecurityProfileGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, securityProfileGroups_); + onChanged(); + } else { + securityProfileGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder clearSecurityProfileGroups() { + if (securityProfileGroupsBuilder_ == null) { + securityProfileGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + securityProfileGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public Builder removeSecurityProfileGroups(int index) { + if (securityProfileGroupsBuilder_ == null) { + ensureSecurityProfileGroupsIsMutable(); + securityProfileGroups_.remove(index); + onChanged(); + } else { + securityProfileGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder + getSecurityProfileGroupsBuilder(int index) { + return internalGetSecurityProfileGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupsOrBuilder(int index) { + if (securityProfileGroupsBuilder_ == null) { + return securityProfileGroups_.get(index); + } else { + return securityProfileGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder> + getSecurityProfileGroupsOrBuilderList() { + if (securityProfileGroupsBuilder_ != null) { + return securityProfileGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityProfileGroups_); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder + addSecurityProfileGroupsBuilder() { + return internalGetSecurityProfileGroupsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder + addSecurityProfileGroupsBuilder(int index) { + return internalGetSecurityProfileGroupsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfileGroups resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + public java.util.List + getSecurityProfileGroupsBuilderList() { + return internalGetSecurityProfileGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder> + internalGetSecurityProfileGroupsFieldBuilder() { + if (securityProfileGroupsBuilder_ == null) { + securityProfileGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder>( + securityProfileGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + securityProfileGroups_ = null; + } + return securityProfileGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse) + private static final com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecurityProfileGroupsResponse 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.networksecurity.v1.ListSecurityProfileGroupsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..7cf18f4d645a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfileGroupsResponseOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListSecurityProfileGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + java.util.List + getSecurityProfileGroupsList(); + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroups(int index); + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + int getSecurityProfileGroupsCount(); + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + java.util.List + getSecurityProfileGroupsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * List of SecurityProfileGroups resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_groups = 1; + * + */ + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesRequest.java new file mode 100644 index 000000000000..6233aeb32cda --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesRequest.java @@ -0,0 +1,939 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used with the ListSecurityProfiles method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListSecurityProfilesRequest} + */ +@com.google.protobuf.Generated +public final class ListSecurityProfilesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListSecurityProfilesRequest) + ListSecurityProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSecurityProfilesRequest"); + } + + // Use ListSecurityProfilesRequest.newBuilder() to construct. + private ListSecurityProfilesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSecurityProfilesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest.class, + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The project or organization and location from which the
                                                                                              +   * SecurityProfiles should be listed, specified in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The project or organization and location from which the
                                                                                              +   * SecurityProfiles should be listed, specified in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Maximum number of SecurityProfiles to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. The value returned by the last
                                                                                              +   * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +   * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +   * next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. The value returned by the last
                                                                                              +   * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +   * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +   * next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.networksecurity.v1.ListSecurityProfilesRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest other = + (com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest 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.networksecurity.v1.ListSecurityProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest 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.networksecurity.v1.ListSecurityProfilesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListSecurityProfilesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used with the ListSecurityProfiles method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListSecurityProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListSecurityProfilesRequest) + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest.class, + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest build() { + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest result = + new com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfiles should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfiles should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfiles should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfiles should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project or organization and location from which the
                                                                                              +     * SecurityProfiles should be listed, specified in the format
                                                                                              +     * `projects|organizations/*/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Optional. Maximum number of SecurityProfiles to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Optional. Maximum number of SecurityProfiles to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Maximum number of SecurityProfiles to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +     * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +     * next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +     * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +     * next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +     * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +     * next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +     * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +     * next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The value returned by the last
                                                                                              +     * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +     * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +     * next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListSecurityProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListSecurityProfilesRequest) + private static final com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecurityProfilesRequest 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.networksecurity.v1.ListSecurityProfilesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..fcb54e0969c2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListSecurityProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListSecurityProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The project or organization and location from which the
                                                                                              +   * SecurityProfiles should be listed, specified in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The project or organization and location from which the
                                                                                              +   * SecurityProfiles should be listed, specified in the format
                                                                                              +   * `projects|organizations/*/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Maximum number of SecurityProfiles to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * Optional. The value returned by the last
                                                                                              +   * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +   * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +   * next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * Optional. The value returned by the last
                                                                                              +   * `ListSecurityProfilesResponse` Indicates that this is a continuation of a
                                                                                              +   * prior `ListSecurityProfiles` call, and that the system should return the
                                                                                              +   * next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesResponse.java new file mode 100644 index 000000000000..9aa135cb9d0c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesResponse.java @@ -0,0 +1,1150 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response returned by the ListSecurityProfiles method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListSecurityProfilesResponse} + */ +@com.google.protobuf.Generated +public final class ListSecurityProfilesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListSecurityProfilesResponse) + ListSecurityProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSecurityProfilesResponse"); + } + + // Use ListSecurityProfilesResponse.newBuilder() to construct. + private ListSecurityProfilesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListSecurityProfilesResponse() { + securityProfiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse.class, + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse.Builder.class); + } + + public static final int SECURITY_PROFILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List securityProfiles_; + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + @java.lang.Override + public java.util.List + getSecurityProfilesList() { + return securityProfiles_; + } + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + @java.lang.Override + public java.util.List + getSecurityProfilesOrBuilderList() { + return securityProfiles_; + } + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + @java.lang.Override + public int getSecurityProfilesCount() { + return securityProfiles_.size(); + } + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfiles(int index) { + return securityProfiles_.get(index); + } + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder getSecurityProfilesOrBuilder( + int index) { + return securityProfiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 < securityProfiles_.size(); i++) { + output.writeMessage(1, securityProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < securityProfiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, securityProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.networksecurity.v1.ListSecurityProfilesResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse other = + (com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse) obj; + + if (!getSecurityProfilesList().equals(other.getSecurityProfilesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getSecurityProfilesCount() > 0) { + hash = (37 * hash) + SECURITY_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getSecurityProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse 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.networksecurity.v1.ListSecurityProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse 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.networksecurity.v1.ListSecurityProfilesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListSecurityProfilesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response returned by the ListSecurityProfiles method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListSecurityProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListSecurityProfilesResponse) + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse.class, + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (securityProfilesBuilder_ == null) { + securityProfiles_ = java.util.Collections.emptyList(); + } else { + securityProfiles_ = null; + securityProfilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse build() { + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse result = + new com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse result) { + if (securityProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + securityProfiles_ = java.util.Collections.unmodifiableList(securityProfiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityProfiles_ = securityProfiles_; + } else { + result.securityProfiles_ = securityProfilesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse.getDefaultInstance()) + return this; + if (securityProfilesBuilder_ == null) { + if (!other.securityProfiles_.isEmpty()) { + if (securityProfiles_.isEmpty()) { + securityProfiles_ = other.securityProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityProfilesIsMutable(); + securityProfiles_.addAll(other.securityProfiles_); + } + onChanged(); + } + } else { + if (!other.securityProfiles_.isEmpty()) { + if (securityProfilesBuilder_.isEmpty()) { + securityProfilesBuilder_.dispose(); + securityProfilesBuilder_ = null; + securityProfiles_ = other.securityProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + securityProfilesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSecurityProfilesFieldBuilder() + : null; + } else { + securityProfilesBuilder_.addAllMessages(other.securityProfiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.networksecurity.v1.SecurityProfile m = + input.readMessage( + com.google.cloud.networksecurity.v1.SecurityProfile.parser(), + extensionRegistry); + if (securityProfilesBuilder_ == null) { + ensureSecurityProfilesIsMutable(); + securityProfiles_.add(m); + } else { + securityProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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 java.util.List securityProfiles_ = + java.util.Collections.emptyList(); + + private void ensureSecurityProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityProfiles_ = + new java.util.ArrayList( + securityProfiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder> + securityProfilesBuilder_; + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public java.util.List + getSecurityProfilesList() { + if (securityProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityProfiles_); + } else { + return securityProfilesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public int getSecurityProfilesCount() { + if (securityProfilesBuilder_ == null) { + return securityProfiles_.size(); + } else { + return securityProfilesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfiles(int index) { + if (securityProfilesBuilder_ == null) { + return securityProfiles_.get(index); + } else { + return securityProfilesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder setSecurityProfiles( + int index, com.google.cloud.networksecurity.v1.SecurityProfile value) { + if (securityProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityProfilesIsMutable(); + securityProfiles_.set(index, value); + onChanged(); + } else { + securityProfilesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder setSecurityProfiles( + int index, com.google.cloud.networksecurity.v1.SecurityProfile.Builder builderForValue) { + if (securityProfilesBuilder_ == null) { + ensureSecurityProfilesIsMutable(); + securityProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + securityProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder addSecurityProfiles(com.google.cloud.networksecurity.v1.SecurityProfile value) { + if (securityProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityProfilesIsMutable(); + securityProfiles_.add(value); + onChanged(); + } else { + securityProfilesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder addSecurityProfiles( + int index, com.google.cloud.networksecurity.v1.SecurityProfile value) { + if (securityProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityProfilesIsMutable(); + securityProfiles_.add(index, value); + onChanged(); + } else { + securityProfilesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder addSecurityProfiles( + com.google.cloud.networksecurity.v1.SecurityProfile.Builder builderForValue) { + if (securityProfilesBuilder_ == null) { + ensureSecurityProfilesIsMutable(); + securityProfiles_.add(builderForValue.build()); + onChanged(); + } else { + securityProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder addSecurityProfiles( + int index, com.google.cloud.networksecurity.v1.SecurityProfile.Builder builderForValue) { + if (securityProfilesBuilder_ == null) { + ensureSecurityProfilesIsMutable(); + securityProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + securityProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder addAllSecurityProfiles( + java.lang.Iterable values) { + if (securityProfilesBuilder_ == null) { + ensureSecurityProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, securityProfiles_); + onChanged(); + } else { + securityProfilesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder clearSecurityProfiles() { + if (securityProfilesBuilder_ == null) { + securityProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + securityProfilesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public Builder removeSecurityProfiles(int index) { + if (securityProfilesBuilder_ == null) { + ensureSecurityProfilesIsMutable(); + securityProfiles_.remove(index); + onChanged(); + } else { + securityProfilesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public com.google.cloud.networksecurity.v1.SecurityProfile.Builder getSecurityProfilesBuilder( + int index) { + return internalGetSecurityProfilesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder + getSecurityProfilesOrBuilder(int index) { + if (securityProfilesBuilder_ == null) { + return securityProfiles_.get(index); + } else { + return securityProfilesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public java.util.List + getSecurityProfilesOrBuilderList() { + if (securityProfilesBuilder_ != null) { + return securityProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityProfiles_); + } + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public com.google.cloud.networksecurity.v1.SecurityProfile.Builder + addSecurityProfilesBuilder() { + return internalGetSecurityProfilesFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public com.google.cloud.networksecurity.v1.SecurityProfile.Builder addSecurityProfilesBuilder( + int index) { + return internalGetSecurityProfilesFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of SecurityProfile resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + public java.util.List + getSecurityProfilesBuilderList() { + return internalGetSecurityProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder> + internalGetSecurityProfilesFieldBuilder() { + if (securityProfilesBuilder_ == null) { + securityProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder>( + securityProfiles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + securityProfiles_ = null; + } + return securityProfilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListSecurityProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListSecurityProfilesResponse) + private static final com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecurityProfilesResponse 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.networksecurity.v1.ListSecurityProfilesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..420346e30999 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListSecurityProfilesResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListSecurityProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListSecurityProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + java.util.List getSecurityProfilesList(); + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfiles(int index); + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + int getSecurityProfilesCount(); + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + java.util.List + getSecurityProfilesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * List of SecurityProfile resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.SecurityProfile security_profiles = 1; + */ + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder getSecurityProfilesOrBuilder( + int index); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java index 5051db5fd500..44b2fe297a35 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequest.java @@ -208,6 +208,29 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 4; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
                                                                                              +   * Optional. Setting this field to `true` will opt the request into returning
                                                                                              +   * the resources that are reachable, and into including the names of those
                                                                                              +   * that were unreachable in the [ListServerTlsPoliciesResponse.unreachable]
                                                                                              +   * field. This can only be `true` when reading across collections e.g. when
                                                                                              +   * `parent` is set to `"projects/example/locations/-"`.
                                                                                              +   * 
                                                                                              + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -231,6 +254,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); } + if (returnPartialSuccess_ != false) { + output.writeBool(4, returnPartialSuccess_); + } getUnknownFields().writeTo(output); } @@ -249,6 +275,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnPartialSuccess_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -268,6 +297,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,6 +315,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -429,6 +461,7 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + returnPartialSuccess_ = false; return this; } @@ -476,6 +509,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } } @java.lang.Override @@ -506,6 +542,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -550,6 +589,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -877,6 +922,74 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private boolean returnPartialSuccess_; + + /** + * + * + *
                                                                                              +     * Optional. Setting this field to `true` will opt the request into returning
                                                                                              +     * the resources that are reachable, and into including the names of those
                                                                                              +     * that were unreachable in the [ListServerTlsPoliciesResponse.unreachable]
                                                                                              +     * field. This can only be `true` when reading across collections e.g. when
                                                                                              +     * `parent` is set to `"projects/example/locations/-"`.
                                                                                              +     * 
                                                                                              + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
                                                                                              +     * Optional. Setting this field to `true` will opt the request into returning
                                                                                              +     * the resources that are reachable, and into including the names of those
                                                                                              +     * that were unreachable in the [ListServerTlsPoliciesResponse.unreachable]
                                                                                              +     * field. This can only be `true` when reading across collections e.g. when
                                                                                              +     * `parent` is set to `"projects/example/locations/-"`.
                                                                                              +     * 
                                                                                              + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Setting this field to `true` will opt the request into returning
                                                                                              +     * the resources that are reachable, and into including the names of those
                                                                                              +     * that were unreachable in the [ListServerTlsPoliciesResponse.unreachable]
                                                                                              +     * field. This can only be `true` when reading across collections e.g. when
                                                                                              +     * `parent` is set to `"projects/example/locations/-"`.
                                                                                              +     * 
                                                                                              + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000008); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListServerTlsPoliciesRequest) } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java index b330014312a2..430e5c20c90c 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesRequestOrBuilder.java @@ -102,4 +102,21 @@ public interface ListServerTlsPoliciesRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Setting this field to `true` will opt the request into returning
                                                                                              +   * the resources that are reachable, and into including the names of those
                                                                                              +   * that were unreachable in the [ListServerTlsPoliciesResponse.unreachable]
                                                                                              +   * field. This can only be `true` when reading across collections e.g. when
                                                                                              +   * `parent` is set to `"projects/example/locations/-"`.
                                                                                              +   * 
                                                                                              + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java index a19e29dcc456..d94ae4706e37 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponse.java @@ -54,6 +54,7 @@ private ListServerTlsPoliciesResponse(com.google.protobuf.GeneratedMessage.Build private ListServerTlsPoliciesResponse() { serverTlsPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -206,6 +207,82 @@ 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(); + + /** + * + * + *
                                                                                              +   * Unreachable resources. Populated when the request opts into
                                                                                              +   * `return_partial_success` and reading across collections e.g. when
                                                                                              +   * attempting to list all resources across all supported locations.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Unreachable resources. Populated when the request opts into
                                                                                              +   * `return_partial_success` and reading across collections e.g. when
                                                                                              +   * attempting to list all resources across all supported locations.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Unreachable resources. Populated when the request opts into
                                                                                              +   * `return_partial_success` and reading across collections e.g. when
                                                                                              +   * attempting to list all resources across all supported locations.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Unreachable resources. Populated when the request opts into
                                                                                              +   * `return_partial_success` and reading across collections e.g. when
                                                                                              +   * attempting to list all resources across all supported locations.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 @@ -226,6 +303,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -242,6 +322,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessage.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; @@ -260,6 +348,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServerTlsPoliciesList().equals(other.getServerTlsPoliciesList())) 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; } @@ -277,6 +366,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; @@ -428,6 +521,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -483,6 +577,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } } @java.lang.Override @@ -532,6 +630,16 @@ public Builder mergeFrom( 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; @@ -578,6 +686,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)) { @@ -1116,6 +1231,207 @@ 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; + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Unreachable resources. Populated when the request opts into
                                                                                              +     * `return_partial_success` and reading across collections e.g. when
                                                                                              +     * attempting to list all resources across all supported locations.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse) } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java index 41fb62a69fe0..102e759731bd 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListServerTlsPoliciesResponseOrBuilder.java @@ -112,4 +112,66 @@ com.google.cloud.networksecurity.v1.ServerTlsPolicyOrBuilder getServerTlsPolicie * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Unreachable resources. Populated when the request opts into
                                                                                              +   * `return_partial_success` and reading across collections e.g. when
                                                                                              +   * attempting to list all resources across all supported locations.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Unreachable resources. Populated when the request opts into
                                                                                              +   * `return_partial_success` and reading across collections e.g. when
                                                                                              +   * attempting to list all resources across all supported locations.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Unreachable resources. Populated when the request opts into
                                                                                              +   * `return_partial_success` and reading across collections e.g. when
                                                                                              +   * attempting to list all resources across all supported locations.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Unreachable resources. Populated when the request opts into
                                                                                              +   * `return_partial_success` and reading across collections e.g. when
                                                                                              +   * attempting to list all resources across all supported locations.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesRequest.java new file mode 100644 index 000000000000..d77c0cd65c50 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesRequest.java @@ -0,0 +1,944 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used with the ListTlsInspectionPolicies method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListTlsInspectionPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) + ListTlsInspectionPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListTlsInspectionPoliciesRequest"); + } + + // Use ListTlsInspectionPoliciesRequest.newBuilder() to construct. + private ListTlsInspectionPoliciesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListTlsInspectionPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest.class, + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +   * should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +   * should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Maximum number of TlsInspectionPolicies to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.networksecurity.v1.ListTlsInspectionPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest other = + (com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest 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.networksecurity.v1.ListTlsInspectionPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest 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.networksecurity.v1.ListTlsInspectionPoliciesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListTlsInspectionPoliciesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used with the ListTlsInspectionPolicies method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest.class, + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest build() { + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest result = + new com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +     * should be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Maximum number of TlsInspectionPolicies to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Maximum number of TlsInspectionPolicies to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Maximum number of TlsInspectionPolicies to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last
                                                                                              +     * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +     * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +     * that the system should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) + private static final com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTlsInspectionPoliciesRequest 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.networksecurity.v1.ListTlsInspectionPoliciesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..5a907da825ad --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListTlsInspectionPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +   * should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the TlsInspectionPolicies
                                                                                              +   * should be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Maximum number of TlsInspectionPolicies to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * The value returned by the last
                                                                                              +   * 'ListTlsInspectionPoliciesResponse' Indicates that this is a
                                                                                              +   * continuation of a prior 'ListTlsInspectionPolicies' call, and
                                                                                              +   * that the system should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesResponse.java new file mode 100644 index 000000000000..acd8a0864277 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesResponse.java @@ -0,0 +1,1501 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response returned by the ListTlsInspectionPolicies method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListTlsInspectionPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse) + ListTlsInspectionPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListTlsInspectionPoliciesResponse"); + } + + // Use ListTlsInspectionPoliciesResponse.newBuilder() to construct. + private ListTlsInspectionPoliciesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListTlsInspectionPoliciesResponse() { + tlsInspectionPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse.class, + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse.Builder.class); + } + + public static final int TLS_INSPECTION_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + tlsInspectionPolicies_; + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + @java.lang.Override + public java.util.List + getTlsInspectionPoliciesList() { + return tlsInspectionPolicies_; + } + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + @java.lang.Override + public java.util.List + getTlsInspectionPoliciesOrBuilderList() { + return tlsInspectionPolicies_; + } + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + @java.lang.Override + public int getTlsInspectionPoliciesCount() { + return tlsInspectionPolicies_.size(); + } + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicies( + int index) { + return tlsInspectionPolicies_.get(index); + } + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPoliciesOrBuilder(int index) { + return tlsInspectionPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < tlsInspectionPolicies_.size(); i++) { + output.writeMessage(1, tlsInspectionPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tlsInspectionPolicies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, tlsInspectionPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse other = + (com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse) obj; + + if (!getTlsInspectionPoliciesList().equals(other.getTlsInspectionPoliciesList())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTlsInspectionPoliciesCount() > 0) { + hash = (37 * hash) + TLS_INSPECTION_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getTlsInspectionPoliciesList().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; + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse 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.networksecurity.v1.ListTlsInspectionPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse 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.networksecurity.v1.ListTlsInspectionPoliciesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListTlsInspectionPoliciesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response returned by the ListTlsInspectionPolicies method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse) + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse.class, + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tlsInspectionPoliciesBuilder_ == null) { + tlsInspectionPolicies_ = java.util.Collections.emptyList(); + } else { + tlsInspectionPolicies_ = null; + tlsInspectionPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse build() { + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse result = + new com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse result) { + if (tlsInspectionPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tlsInspectionPolicies_ = java.util.Collections.unmodifiableList(tlsInspectionPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tlsInspectionPolicies_ = tlsInspectionPolicies_; + } else { + result.tlsInspectionPolicies_ = tlsInspectionPoliciesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + .getDefaultInstance()) return this; + if (tlsInspectionPoliciesBuilder_ == null) { + if (!other.tlsInspectionPolicies_.isEmpty()) { + if (tlsInspectionPolicies_.isEmpty()) { + tlsInspectionPolicies_ = other.tlsInspectionPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.addAll(other.tlsInspectionPolicies_); + } + onChanged(); + } + } else { + if (!other.tlsInspectionPolicies_.isEmpty()) { + if (tlsInspectionPoliciesBuilder_.isEmpty()) { + tlsInspectionPoliciesBuilder_.dispose(); + tlsInspectionPoliciesBuilder_ = null; + tlsInspectionPolicies_ = other.tlsInspectionPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + tlsInspectionPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTlsInspectionPoliciesFieldBuilder() + : null; + } else { + tlsInspectionPoliciesBuilder_.addAllMessages(other.tlsInspectionPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.TlsInspectionPolicy m = + input.readMessage( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.parser(), + extensionRegistry); + if (tlsInspectionPoliciesBuilder_ == null) { + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.add(m); + } else { + tlsInspectionPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List + tlsInspectionPolicies_ = java.util.Collections.emptyList(); + + private void ensureTlsInspectionPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tlsInspectionPolicies_ = + new java.util.ArrayList( + tlsInspectionPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder> + tlsInspectionPoliciesBuilder_; + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public java.util.List + getTlsInspectionPoliciesList() { + if (tlsInspectionPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tlsInspectionPolicies_); + } else { + return tlsInspectionPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public int getTlsInspectionPoliciesCount() { + if (tlsInspectionPoliciesBuilder_ == null) { + return tlsInspectionPolicies_.size(); + } else { + return tlsInspectionPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicies( + int index) { + if (tlsInspectionPoliciesBuilder_ == null) { + return tlsInspectionPolicies_.get(index); + } else { + return tlsInspectionPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder setTlsInspectionPolicies( + int index, com.google.cloud.networksecurity.v1.TlsInspectionPolicy value) { + if (tlsInspectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.set(index, value); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder setTlsInspectionPolicies( + int index, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder builderForValue) { + if (tlsInspectionPoliciesBuilder_ == null) { + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder addTlsInspectionPolicies( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy value) { + if (tlsInspectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.add(value); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder addTlsInspectionPolicies( + int index, com.google.cloud.networksecurity.v1.TlsInspectionPolicy value) { + if (tlsInspectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.add(index, value); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder addTlsInspectionPolicies( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder builderForValue) { + if (tlsInspectionPoliciesBuilder_ == null) { + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.add(builderForValue.build()); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder addTlsInspectionPolicies( + int index, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder builderForValue) { + if (tlsInspectionPoliciesBuilder_ == null) { + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder addAllTlsInspectionPolicies( + java.lang.Iterable + values) { + if (tlsInspectionPoliciesBuilder_ == null) { + ensureTlsInspectionPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tlsInspectionPolicies_); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder clearTlsInspectionPolicies() { + if (tlsInspectionPoliciesBuilder_ == null) { + tlsInspectionPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public Builder removeTlsInspectionPolicies(int index) { + if (tlsInspectionPoliciesBuilder_ == null) { + ensureTlsInspectionPoliciesIsMutable(); + tlsInspectionPolicies_.remove(index); + onChanged(); + } else { + tlsInspectionPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder + getTlsInspectionPoliciesBuilder(int index) { + return internalGetTlsInspectionPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPoliciesOrBuilder(int index) { + if (tlsInspectionPoliciesBuilder_ == null) { + return tlsInspectionPolicies_.get(index); + } else { + return tlsInspectionPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder> + getTlsInspectionPoliciesOrBuilderList() { + if (tlsInspectionPoliciesBuilder_ != null) { + return tlsInspectionPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tlsInspectionPolicies_); + } + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder + addTlsInspectionPoliciesBuilder() { + return internalGetTlsInspectionPoliciesFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder + addTlsInspectionPoliciesBuilder(int index) { + return internalGetTlsInspectionPoliciesFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of TlsInspectionPolicies resources.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + public java.util.List + getTlsInspectionPoliciesBuilderList() { + return internalGetTlsInspectionPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder> + internalGetTlsInspectionPoliciesFieldBuilder() { + if (tlsInspectionPoliciesBuilder_ == null) { + tlsInspectionPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder>( + tlsInspectionPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tlsInspectionPolicies_ = null; + } + return tlsInspectionPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +     * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse) + private static final com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTlsInspectionPoliciesResponse 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.networksecurity.v1.ListTlsInspectionPoliciesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..fa39f8376c3d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListTlsInspectionPoliciesResponseOrBuilder.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListTlsInspectionPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + java.util.List + getTlsInspectionPoliciesList(); + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicies(int index); + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + int getTlsInspectionPoliciesCount(); + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + java.util.List + getTlsInspectionPoliciesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * List of TlsInspectionPolicies resources.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policies = 1; + * + */ + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPoliciesOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * 'next_page_token' is included. To get the next set of results, call this
                                                                                              +   * method again using the value of 'next_page_token' as 'page_token'.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsRequest.java new file mode 100644 index 000000000000..79d5ce474e3c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsRequest.java @@ -0,0 +1,932 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the ListUrlList method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListUrlListsRequest} + */ +@com.google.protobuf.Generated +public final class ListUrlListsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListUrlListsRequest) + ListUrlListsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListUrlListsRequest"); + } + + // Use ListUrlListsRequest.newBuilder() to construct. + private ListUrlListsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListUrlListsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListUrlListsRequest.class, + com.google.cloud.networksecurity.v1.ListUrlListsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the UrlLists should
                                                                                              +   * be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the UrlLists should
                                                                                              +   * be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
                                                                                              +   * Maximum number of UrlLists to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +   * The value returned by the last `ListUrlListsResponse`
                                                                                              +   * Indicates that this is a continuation of a prior
                                                                                              +   * `ListUrlLists` call, and that the system
                                                                                              +   * should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * The value returned by the last `ListUrlListsResponse`
                                                                                              +   * Indicates that this is a continuation of a prior
                                                                                              +   * `ListUrlLists` call, and that the system
                                                                                              +   * should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.networksecurity.v1.ListUrlListsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListUrlListsRequest other = + (com.google.cloud.networksecurity.v1.ListUrlListsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest 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.networksecurity.v1.ListUrlListsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest 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.networksecurity.v1.ListUrlListsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListUrlListsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the ListUrlList method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListUrlListsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListUrlListsRequest) + com.google.cloud.networksecurity.v1.ListUrlListsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListUrlListsRequest.class, + com.google.cloud.networksecurity.v1.ListUrlListsRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListUrlListsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListUrlListsRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListUrlListsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListUrlListsRequest build() { + com.google.cloud.networksecurity.v1.ListUrlListsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListUrlListsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListUrlListsRequest result = + new com.google.cloud.networksecurity.v1.ListUrlListsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.ListUrlListsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListUrlListsRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListUrlListsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListUrlListsRequest other) { + if (other == com.google.cloud.networksecurity.v1.ListUrlListsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 parent_ = ""; + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the UrlLists should
                                                                                              +     * be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the UrlLists should
                                                                                              +     * be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the UrlLists should
                                                                                              +     * be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the UrlLists should
                                                                                              +     * be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The project and location from which the UrlLists should
                                                                                              +     * be listed, specified in the format
                                                                                              +     * `projects/{project}/locations/{location}`.
                                                                                              +     * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
                                                                                              +     * Maximum number of UrlLists to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
                                                                                              +     * Maximum number of UrlLists to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Maximum number of UrlLists to return per call.
                                                                                              +     * 
                                                                                              + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListUrlListsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListUrlLists` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListUrlListsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListUrlLists` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListUrlListsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListUrlLists` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListUrlListsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListUrlLists` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * The value returned by the last `ListUrlListsResponse`
                                                                                              +     * Indicates that this is a continuation of a prior
                                                                                              +     * `ListUrlLists` call, and that the system
                                                                                              +     * should return the next page of data.
                                                                                              +     * 
                                                                                              + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListUrlListsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListUrlListsRequest) + private static final com.google.cloud.networksecurity.v1.ListUrlListsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListUrlListsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUrlListsRequest 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.networksecurity.v1.ListUrlListsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsRequestOrBuilder.java new file mode 100644 index 000000000000..9506a98d67d5 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListUrlListsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListUrlListsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the UrlLists should
                                                                                              +   * be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
                                                                                              +   * Required. The project and location from which the UrlLists should
                                                                                              +   * be listed, specified in the format
                                                                                              +   * `projects/{project}/locations/{location}`.
                                                                                              +   * 
                                                                                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                              +   * Maximum number of UrlLists to return per call.
                                                                                              +   * 
                                                                                              + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                              +   * The value returned by the last `ListUrlListsResponse`
                                                                                              +   * Indicates that this is a continuation of a prior
                                                                                              +   * `ListUrlLists` call, and that the system
                                                                                              +   * should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
                                                                                              +   * The value returned by the last `ListUrlListsResponse`
                                                                                              +   * Indicates that this is a continuation of a prior
                                                                                              +   * `ListUrlLists` call, and that the system
                                                                                              +   * should return the next page of data.
                                                                                              +   * 
                                                                                              + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsResponse.java new file mode 100644 index 000000000000..10dd510dfd71 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsResponse.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Response returned by the ListUrlLists method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListUrlListsResponse} + */ +@com.google.protobuf.Generated +public final class ListUrlListsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListUrlListsResponse) + ListUrlListsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListUrlListsResponse"); + } + + // Use ListUrlListsResponse.newBuilder() to construct. + private ListUrlListsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListUrlListsResponse() { + urlLists_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListUrlListsResponse.class, + com.google.cloud.networksecurity.v1.ListUrlListsResponse.Builder.class); + } + + public static final int URL_LISTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List urlLists_; + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + @java.lang.Override + public java.util.List getUrlListsList() { + return urlLists_; + } + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + @java.lang.Override + public java.util.List + getUrlListsOrBuilderList() { + return urlLists_; + } + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + @java.lang.Override + public int getUrlListsCount() { + return urlLists_.size(); + } + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlList getUrlLists(int index) { + return urlLists_.get(index); + } + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListsOrBuilder(int index) { + return urlLists_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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 + 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 < urlLists_.size(); i++) { + output.writeMessage(1, urlLists_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < urlLists_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, urlLists_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListUrlListsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListUrlListsResponse other = + (com.google.cloud.networksecurity.v1.ListUrlListsResponse) obj; + + if (!getUrlListsList().equals(other.getUrlListsList())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUrlListsCount() > 0) { + hash = (37 * hash) + URL_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getUrlListsList().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; + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse 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.networksecurity.v1.ListUrlListsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse 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.networksecurity.v1.ListUrlListsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ListUrlListsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Response returned by the ListUrlLists method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListUrlListsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListUrlListsResponse) + com.google.cloud.networksecurity.v1.ListUrlListsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListUrlListsResponse.class, + com.google.cloud.networksecurity.v1.ListUrlListsResponse.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListUrlListsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (urlListsBuilder_ == null) { + urlLists_ = java.util.Collections.emptyList(); + } else { + urlLists_ = null; + urlListsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListUrlListsResponse getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListUrlListsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListUrlListsResponse build() { + com.google.cloud.networksecurity.v1.ListUrlListsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListUrlListsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListUrlListsResponse result = + new com.google.cloud.networksecurity.v1.ListUrlListsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListUrlListsResponse result) { + if (urlListsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + urlLists_ = java.util.Collections.unmodifiableList(urlLists_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.urlLists_ = urlLists_; + } else { + result.urlLists_ = urlListsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.ListUrlListsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListUrlListsResponse) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListUrlListsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListUrlListsResponse other) { + if (other == com.google.cloud.networksecurity.v1.ListUrlListsResponse.getDefaultInstance()) + return this; + if (urlListsBuilder_ == null) { + if (!other.urlLists_.isEmpty()) { + if (urlLists_.isEmpty()) { + urlLists_ = other.urlLists_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUrlListsIsMutable(); + urlLists_.addAll(other.urlLists_); + } + onChanged(); + } + } else { + if (!other.urlLists_.isEmpty()) { + if (urlListsBuilder_.isEmpty()) { + urlListsBuilder_.dispose(); + urlListsBuilder_ = null; + urlLists_ = other.urlLists_; + bitField0_ = (bitField0_ & ~0x00000001); + urlListsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetUrlListsFieldBuilder() + : null; + } else { + urlListsBuilder_.addAllMessages(other.urlLists_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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; + } + + @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: + { + com.google.cloud.networksecurity.v1.UrlList m = + input.readMessage( + com.google.cloud.networksecurity.v1.UrlList.parser(), extensionRegistry); + if (urlListsBuilder_ == null) { + ensureUrlListsIsMutable(); + urlLists_.add(m); + } else { + urlListsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + 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)) { + 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.util.List urlLists_ = + java.util.Collections.emptyList(); + + private void ensureUrlListsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + urlLists_ = new java.util.ArrayList(urlLists_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder> + urlListsBuilder_; + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public java.util.List getUrlListsList() { + if (urlListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(urlLists_); + } else { + return urlListsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public int getUrlListsCount() { + if (urlListsBuilder_ == null) { + return urlLists_.size(); + } else { + return urlListsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public com.google.cloud.networksecurity.v1.UrlList getUrlLists(int index) { + if (urlListsBuilder_ == null) { + return urlLists_.get(index); + } else { + return urlListsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder setUrlLists(int index, com.google.cloud.networksecurity.v1.UrlList value) { + if (urlListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlListsIsMutable(); + urlLists_.set(index, value); + onChanged(); + } else { + urlListsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder setUrlLists( + int index, com.google.cloud.networksecurity.v1.UrlList.Builder builderForValue) { + if (urlListsBuilder_ == null) { + ensureUrlListsIsMutable(); + urlLists_.set(index, builderForValue.build()); + onChanged(); + } else { + urlListsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder addUrlLists(com.google.cloud.networksecurity.v1.UrlList value) { + if (urlListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlListsIsMutable(); + urlLists_.add(value); + onChanged(); + } else { + urlListsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder addUrlLists(int index, com.google.cloud.networksecurity.v1.UrlList value) { + if (urlListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlListsIsMutable(); + urlLists_.add(index, value); + onChanged(); + } else { + urlListsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder addUrlLists( + com.google.cloud.networksecurity.v1.UrlList.Builder builderForValue) { + if (urlListsBuilder_ == null) { + ensureUrlListsIsMutable(); + urlLists_.add(builderForValue.build()); + onChanged(); + } else { + urlListsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder addUrlLists( + int index, com.google.cloud.networksecurity.v1.UrlList.Builder builderForValue) { + if (urlListsBuilder_ == null) { + ensureUrlListsIsMutable(); + urlLists_.add(index, builderForValue.build()); + onChanged(); + } else { + urlListsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder addAllUrlLists( + java.lang.Iterable values) { + if (urlListsBuilder_ == null) { + ensureUrlListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, urlLists_); + onChanged(); + } else { + urlListsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder clearUrlLists() { + if (urlListsBuilder_ == null) { + urlLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + urlListsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public Builder removeUrlLists(int index) { + if (urlListsBuilder_ == null) { + ensureUrlListsIsMutable(); + urlLists_.remove(index); + onChanged(); + } else { + urlListsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public com.google.cloud.networksecurity.v1.UrlList.Builder getUrlListsBuilder(int index) { + return internalGetUrlListsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListsOrBuilder(int index) { + if (urlListsBuilder_ == null) { + return urlLists_.get(index); + } else { + return urlListsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public java.util.List + getUrlListsOrBuilderList() { + if (urlListsBuilder_ != null) { + return urlListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(urlLists_); + } + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public com.google.cloud.networksecurity.v1.UrlList.Builder addUrlListsBuilder() { + return internalGetUrlListsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public com.google.cloud.networksecurity.v1.UrlList.Builder addUrlListsBuilder(int index) { + return internalGetUrlListsFieldBuilder() + .addBuilder(index, com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * List of UrlList resources.
                                                                                              +     * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + public java.util.List + getUrlListsBuilderList() { + return internalGetUrlListsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder> + internalGetUrlListsFieldBuilder() { + if (urlListsBuilder_ == null) { + urlListsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder>( + urlLists_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + urlLists_ = null; + } + return urlListsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * If there might be more results than those appearing in this response, then
                                                                                              +     * `next_page_token` is included. To get the next set of results, call this
                                                                                              +     * method again using the value of `next_page_token` as `page_token`.
                                                                                              +     * 
                                                                                              + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + 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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Locations that could not be reached.
                                                                                              +     * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListUrlListsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListUrlListsResponse) + private static final com.google.cloud.networksecurity.v1.ListUrlListsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListUrlListsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListUrlListsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUrlListsResponse 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.networksecurity.v1.ListUrlListsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsResponseOrBuilder.java new file mode 100644 index 000000000000..07aa46d9400e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListUrlListsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ListUrlListsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListUrlListsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + java.util.List getUrlListsList(); + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + com.google.cloud.networksecurity.v1.UrlList getUrlLists(int index); + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + int getUrlListsCount(); + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + java.util.List + getUrlListsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * List of UrlList resources.
                                                                                              +   * 
                                                                                              + * + * repeated .google.cloud.networksecurity.v1.UrlList url_lists = 1; + */ + com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
                                                                                              +   * If there might be more results than those appearing in this response, then
                                                                                              +   * `next_page_token` is included. To get the next set of results, call this
                                                                                              +   * method again using the value of `next_page_token` as `page_token`.
                                                                                              +   * 
                                                                                              + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
                                                                                              +   * Locations that could not be reached.
                                                                                              +   * 
                                                                                              + * + * repeated string unreachable = 3; + * + * @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-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeployment.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeployment.java new file mode 100644 index 000000000000..92440c75a39c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeployment.java @@ -0,0 +1,2809 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * A deployment represents a zonal mirroring backend ready to accept
                                                                                              + * GENEVE-encapsulated replica traffic, e.g. a zonal instance group fronted by
                                                                                              + * an internal passthrough load balancer. Deployments are always part of a
                                                                                              + * global deployment group which represents a global mirroring service.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringDeployment} + */ +@com.google.protobuf.Generated +public final class MirroringDeployment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringDeployment) + MirroringDeploymentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MirroringDeployment"); + } + + // Use MirroringDeployment.newBuilder() to construct. + private MirroringDeployment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MirroringDeployment() { + name_ = ""; + forwardingRule_ = ""; + mirroringDeploymentGroup_ = ""; + state_ = 0; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeployment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringDeployment.class, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The current state of the deployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.MirroringDeployment.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The deployment is ready and in sync with the parent group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The deployment is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
                                                                                              +     * The deployment is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
                                                                                              +     * The deployment is out of sync with the parent group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. a delayed data-path config) and the system is expected to recover
                                                                                              +     * automatically. See the parent deployment group's state for more details.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 4; + */ + OUT_OF_SYNC(4), + /** + * + * + *
                                                                                              +     * An attempt to delete the deployment has failed. This is a terminal state
                                                                                              +     * and the deployment is not expected to recover. The only permitted
                                                                                              +     * operation is to retry deleting the deployment.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 5; + */ + DELETE_FAILED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The deployment is ready and in sync with the parent group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The deployment is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + + /** + * + * + *
                                                                                              +     * The deployment is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * The deployment is out of sync with the parent group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. a delayed data-path config) and the system is expected to recover
                                                                                              +     * automatically. See the parent deployment group's state for more details.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 4; + */ + public static final int OUT_OF_SYNC_VALUE = 4; + + /** + * + * + *
                                                                                              +     * An attempt to delete the deployment has failed. This is a terminal state
                                                                                              +     * and the deployment is not expected to recover. The only permitted
                                                                                              +     * operation is to retry deleting the deployment.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 5; + */ + public static final int DELETE_FAILED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return DELETING; + case 4: + return OUT_OF_SYNC; + case 5: + return DELETE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringDeployment.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.MirroringDeployment.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +   * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +   * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeployment_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int FORWARDING_RULE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object forwardingRule_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +   * collectors, for example:
                                                                                              +   * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +   * https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + @java.lang.Override + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + 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(); + forwardingRule_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +   * collectors, for example:
                                                                                              +   * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +   * https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIRRORING_DEPLOYMENT_GROUP_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object mirroringDeploymentGroup_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +   * of, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringDeploymentGroup. + */ + @java.lang.Override + public java.lang.String getMirroringDeploymentGroup() { + java.lang.Object ref = mirroringDeploymentGroup_; + 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(); + mirroringDeploymentGroup_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +   * of, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringDeploymentGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMirroringDeploymentGroupBytes() { + java.lang.Object ref = mirroringDeploymentGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringDeploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment.State getState() { + com.google.cloud.networksecurity.v1.MirroringDeployment.State result = + com.google.cloud.networksecurity.v1.MirroringDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 8; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This part of
                                                                                              +   * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +   * See https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment.
                                                                                              +   * Used as additional context for the deployment.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment.
                                                                                              +   * Used as additional context for the deployment.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(forwardingRule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, forwardingRule_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringDeploymentGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, mirroringDeploymentGroup_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + if (reconciling_ != false) { + output.writeBool(8, reconciling_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(forwardingRule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, forwardingRule_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringDeploymentGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, mirroringDeploymentGroup_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, reconciling_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, description_); + } + 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.networksecurity.v1.MirroringDeployment)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringDeployment other = + (com.google.cloud.networksecurity.v1.MirroringDeployment) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getForwardingRule().equals(other.getForwardingRule())) return false; + if (!getMirroringDeploymentGroup().equals(other.getMirroringDeploymentGroup())) return false; + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getDescription().equals(other.getDescription())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER; + hash = (53 * hash) + getForwardingRule().hashCode(); + hash = (37 * hash) + MIRRORING_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeploymentGroup().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment 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.networksecurity.v1.MirroringDeployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment 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.networksecurity.v1.MirroringDeployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringDeployment 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * A deployment represents a zonal mirroring backend ready to accept
                                                                                              +   * GENEVE-encapsulated replica traffic, e.g. a zonal instance group fronted by
                                                                                              +   * an internal passthrough load balancer. Deployments are always part of a
                                                                                              +   * global deployment group which represents a global mirroring service.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringDeployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringDeployment) + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeployment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringDeployment.class, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.MirroringDeployment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + forwardingRule_ = ""; + mirroringDeploymentGroup_ = ""; + state_ = 0; + reconciling_ = false; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment build() { + com.google.cloud.networksecurity.v1.MirroringDeployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment buildPartial() { + com.google.cloud.networksecurity.v1.MirroringDeployment result = + new com.google.cloud.networksecurity.v1.MirroringDeployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.MirroringDeployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.forwardingRule_ = forwardingRule_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.mirroringDeploymentGroup_ = mirroringDeploymentGroup_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.MirroringDeployment) { + return mergeFrom((com.google.cloud.networksecurity.v1.MirroringDeployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.MirroringDeployment other) { + if (other == com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getForwardingRule().isEmpty()) { + forwardingRule_ = other.forwardingRule_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getMirroringDeploymentGroup().isEmpty()) { + mirroringDeploymentGroup_ = other.mirroringDeploymentGroup_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000100; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + forwardingRule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + mirroringDeploymentGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +     * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object forwardingRule_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +     * collectors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +     * https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forwardingRule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +     * collectors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +     * https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +     * collectors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +     * https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + forwardingRule_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +     * collectors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +     * https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearForwardingRule() { + forwardingRule_ = getDefaultInstance().getForwardingRule(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +     * collectors, for example:
                                                                                              +     * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +     * https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + forwardingRule_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object mirroringDeploymentGroup_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringDeploymentGroup. + */ + public java.lang.String getMirroringDeploymentGroup() { + java.lang.Object ref = mirroringDeploymentGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mirroringDeploymentGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringDeploymentGroup. + */ + public com.google.protobuf.ByteString getMirroringDeploymentGroupBytes() { + java.lang.Object ref = mirroringDeploymentGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringDeploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The mirroringDeploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setMirroringDeploymentGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mirroringDeploymentGroup_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMirroringDeploymentGroup() { + mirroringDeploymentGroup_ = getDefaultInstance().getMirroringDeploymentGroup(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +     * of, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for mirroringDeploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setMirroringDeploymentGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mirroringDeploymentGroup_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment.State getState() { + com.google.cloud.networksecurity.v1.MirroringDeployment.State result = + com.google.cloud.networksecurity.v1.MirroringDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networksecurity.v1.MirroringDeployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +     * See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +     * See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +     * See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000080); + reconciling_ = false; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment.
                                                                                              +     * Used as additional context for the deployment.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringDeployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringDeployment) + private static final com.google.cloud.networksecurity.v1.MirroringDeployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.MirroringDeployment(); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MirroringDeployment 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.networksecurity.v1.MirroringDeployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroup.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroup.java new file mode 100644 index 000000000000..fe3dc3d10eb2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroup.java @@ -0,0 +1,5950 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * A deployment group aggregates many zonal mirroring backends (deployments)
                                                                                              + * into a single global mirroring service. Consumers can connect this service
                                                                                              + * using an endpoint group.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringDeploymentGroup} + */ +@com.google.protobuf.Generated +public final class MirroringDeploymentGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringDeploymentGroup) + MirroringDeploymentGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MirroringDeploymentGroup"); + } + + // Use MirroringDeploymentGroup.newBuilder() to construct. + private MirroringDeploymentGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MirroringDeploymentGroup() { + name_ = ""; + network_ = ""; + connectedEndpointGroups_ = java.util.Collections.emptyList(); + nestedDeployments_ = java.util.Collections.emptyList(); + state_ = 0; + description_ = ""; + locations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.class, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The current state of the deployment group.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.MirroringDeploymentGroup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The deployment group is ready.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The deployment group is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
                                                                                              +     * The deployment group is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
                                                                                              +     * The deployment group is being wiped out (project deleted).
                                                                                              +     * 
                                                                                              + * + * CLOSED = 4; + */ + CLOSED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The deployment group is ready.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The deployment group is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + + /** + * + * + *
                                                                                              +     * The deployment group is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * The deployment group is being wiped out (project deleted).
                                                                                              +     * 
                                                                                              + * + * CLOSED = 4; + */ + public static final int CLOSED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return DELETING; + case 4: + return CLOSED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.MirroringDeploymentGroup.State) + } + + public interface ConnectedEndpointGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The connected endpoint group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The connected endpoint group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * + * + *
                                                                                              +   * An endpoint group connected to this deployment group.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup} + */ + public static final class ConnectedEndpointGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup) + ConnectedEndpointGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectedEndpointGroup"); + } + + // Use ConnectedEndpointGroup.newBuilder() to construct. + private ConnectedEndpointGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectedEndpointGroup() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .class, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The connected endpoint group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The connected endpoint group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup other = + (com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + 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.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + 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.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * An endpoint group connected to this deployment group.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup) + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .class, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + build() { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + buildPartial() { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup result = + new com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + other) { + if (other + == com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected endpoint group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup) + private static final com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup(); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedEndpointGroup 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.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +     * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +     * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the deployment.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the deployment.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.MirroringDeployment.State getState(); + } + + /** + * + * + *
                                                                                              +   * A deployment belonging to this deployment group.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment} + */ + public static final class Deployment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment) + DeploymentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Deployment"); + } + + // Use Deployment.newBuilder() to construct. + private Deployment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Deployment() { + name_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.class, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +     * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +     * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the deployment.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the deployment.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment.State getState() { + com.google.cloud.networksecurity.v1.MirroringDeployment.State result = + com.google.cloud.networksecurity.v1.MirroringDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.State.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.networksecurity.v1.MirroringDeploymentGroup.Deployment)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment other = + (com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment 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.networksecurity.v1.MirroringDeploymentGroup.Deployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment 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.networksecurity.v1.MirroringDeploymentGroup.Deployment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringDeploymentGroup.Deployment 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * A deployment belonging to this deployment group.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment) + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.class, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment build() { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + buildPartial() { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment result = + new com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment other) { + if (other + == com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The name of the Mirroring Deployment, in the format:
                                                                                              +       * `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment.State getState() { + com.google.cloud.networksecurity.v1.MirroringDeployment.State result = + com.google.cloud.networksecurity.v1.MirroringDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networksecurity.v1.MirroringDeployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the deployment.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment) + private static final com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment(); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Deployment 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.networksecurity.v1.MirroringDeploymentGroup.Deployment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NETWORK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Immutable. The network that will be used for all child
                                                                                              +   * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Immutable. The network that will be used for all child
                                                                                              +   * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTED_ENDPOINT_GROUPS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup> + connectedEndpointGroups_; + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup> + getConnectedEndpointGroupsList() { + return connectedEndpointGroups_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + getConnectedEndpointGroupsOrBuilderList() { + return connectedEndpointGroups_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConnectedEndpointGroupsCount() { + return connectedEndpointGroups_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + getConnectedEndpointGroups(int index) { + return connectedEndpointGroups_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder + getConnectedEndpointGroupsOrBuilder(int index) { + return connectedEndpointGroups_.get(index); + } + + public static final int NESTED_DEPLOYMENTS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + nestedDeployments_; + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getNestedDeploymentsList() { + return nestedDeployments_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder> + getNestedDeploymentsOrBuilderList() { + return nestedDeployments_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getNestedDeploymentsCount() { + return nestedDeployments_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + getNestedDeployments(int index) { + return nestedDeployments_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder + getNestedDeploymentsOrBuilder(int index) { + return nestedDeployments_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State getState() { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State result = + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 8; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This is part
                                                                                              +   * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment group.
                                                                                              +   * Used as additional context for the deployment group.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment group.
                                                                                              +   * Used as additional context for the deployment group.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List locations_; + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getLocationsList() { + return locations_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder( + int index) { + return locations_.get(index); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, network_); + } + for (int i = 0; i < connectedEndpointGroups_.size(); i++) { + output.writeMessage(6, connectedEndpointGroups_.get(i)); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + if (reconciling_ != false) { + output.writeBool(8, reconciling_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, description_); + } + for (int i = 0; i < nestedDeployments_.size(); i++) { + output.writeMessage(10, nestedDeployments_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(11, locations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, network_); + } + for (int i = 0; i < connectedEndpointGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, connectedEndpointGroups_.get(i)); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, reconciling_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, description_); + } + for (int i = 0; i < nestedDeployments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, nestedDeployments_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, locations_.get(i)); + } + 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.networksecurity.v1.MirroringDeploymentGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup other = + (com.google.cloud.networksecurity.v1.MirroringDeploymentGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getConnectedEndpointGroupsList().equals(other.getConnectedEndpointGroupsList())) + return false; + if (!getNestedDeploymentsList().equals(other.getNestedDeploymentsList())) return false; + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getLocationsList().equals(other.getLocationsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + if (getConnectedEndpointGroupsCount() > 0) { + hash = (37 * hash) + CONNECTED_ENDPOINT_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getConnectedEndpointGroupsList().hashCode(); + } + if (getNestedDeploymentsCount() > 0) { + hash = (37 * hash) + NESTED_DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getNestedDeploymentsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup 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.networksecurity.v1.MirroringDeploymentGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup 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.networksecurity.v1.MirroringDeploymentGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringDeploymentGroup 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * A deployment group aggregates many zonal mirroring backends (deployments)
                                                                                              +   * into a single global mirroring service. Consumers can connect this service
                                                                                              +   * using an endpoint group.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringDeploymentGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringDeploymentGroup) + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.class, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetConnectedEndpointGroupsFieldBuilder(); + internalGetNestedDeploymentsFieldBuilder(); + internalGetLocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + network_ = ""; + if (connectedEndpointGroupsBuilder_ == null) { + connectedEndpointGroups_ = java.util.Collections.emptyList(); + } else { + connectedEndpointGroups_ = null; + connectedEndpointGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (nestedDeploymentsBuilder_ == null) { + nestedDeployments_ = java.util.Collections.emptyList(); + } else { + nestedDeployments_ = null; + nestedDeploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + reconciling_ = false; + description_ = ""; + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + } else { + locations_ = null; + locationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup build() { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup buildPartial() { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup result = + new com.google.cloud.networksecurity.v1.MirroringDeploymentGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup result) { + if (connectedEndpointGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + connectedEndpointGroups_ = + java.util.Collections.unmodifiableList(connectedEndpointGroups_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.connectedEndpointGroups_ = connectedEndpointGroups_; + } else { + result.connectedEndpointGroups_ = connectedEndpointGroupsBuilder_.build(); + } + if (nestedDeploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + nestedDeployments_ = java.util.Collections.unmodifiableList(nestedDeployments_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.nestedDeployments_ = nestedDeployments_; + } else { + result.nestedDeployments_ = nestedDeploymentsBuilder_.build(); + } + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.MirroringDeploymentGroup) { + return mergeFrom((com.google.cloud.networksecurity.v1.MirroringDeploymentGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.MirroringDeploymentGroup other) { + if (other + == com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (connectedEndpointGroupsBuilder_ == null) { + if (!other.connectedEndpointGroups_.isEmpty()) { + if (connectedEndpointGroups_.isEmpty()) { + connectedEndpointGroups_ = other.connectedEndpointGroups_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.addAll(other.connectedEndpointGroups_); + } + onChanged(); + } + } else { + if (!other.connectedEndpointGroups_.isEmpty()) { + if (connectedEndpointGroupsBuilder_.isEmpty()) { + connectedEndpointGroupsBuilder_.dispose(); + connectedEndpointGroupsBuilder_ = null; + connectedEndpointGroups_ = other.connectedEndpointGroups_; + bitField0_ = (bitField0_ & ~0x00000020); + connectedEndpointGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectedEndpointGroupsFieldBuilder() + : null; + } else { + connectedEndpointGroupsBuilder_.addAllMessages(other.connectedEndpointGroups_); + } + } + } + if (nestedDeploymentsBuilder_ == null) { + if (!other.nestedDeployments_.isEmpty()) { + if (nestedDeployments_.isEmpty()) { + nestedDeployments_ = other.nestedDeployments_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.addAll(other.nestedDeployments_); + } + onChanged(); + } + } else { + if (!other.nestedDeployments_.isEmpty()) { + if (nestedDeploymentsBuilder_.isEmpty()) { + nestedDeploymentsBuilder_.dispose(); + nestedDeploymentsBuilder_ = null; + nestedDeployments_ = other.nestedDeployments_; + bitField0_ = (bitField0_ & ~0x00000040); + nestedDeploymentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetNestedDeploymentsFieldBuilder() + : null; + } else { + nestedDeploymentsBuilder_.addAllMessages(other.nestedDeployments_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000400); + locationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup.parser(), + extensionRegistry); + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(m); + } else { + connectedEndpointGroupsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 64: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 64 + case 74: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + .parser(), + extensionRegistry); + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(m); + } else { + nestedDeploymentsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.networksecurity.v1.MirroringLocation m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringLocation.parser(), + extensionRegistry); + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(m); + } else { + locationsBuilder_.addMessage(m); + } + break; + } // case 90 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Immutable. The network that will be used for all child
                                                                                              +     * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup> + connectedEndpointGroups_ = java.util.Collections.emptyList(); + + private void ensureConnectedEndpointGroupsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + connectedEndpointGroups_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup>(connectedEndpointGroups_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + connectedEndpointGroupsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup> + getConnectedEndpointGroupsList() { + if (connectedEndpointGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectedEndpointGroups_); + } else { + return connectedEndpointGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConnectedEndpointGroupsCount() { + if (connectedEndpointGroupsBuilder_ == null) { + return connectedEndpointGroups_.size(); + } else { + return connectedEndpointGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + getConnectedEndpointGroups(int index) { + if (connectedEndpointGroupsBuilder_ == null) { + return connectedEndpointGroups_.get(index); + } else { + return connectedEndpointGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectedEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup value) { + if (connectedEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.set(index, value); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectedEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup.Builder + builderForValue) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedEndpointGroups( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup value) { + if (connectedEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(value); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup value) { + if (connectedEndpointGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(index, value); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedEndpointGroups( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup.Builder + builderForValue) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(builderForValue.build()); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedEndpointGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup.Builder + builderForValue) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConnectedEndpointGroups( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroup> + values) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectedEndpointGroups_); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectedEndpointGroups() { + if (connectedEndpointGroupsBuilder_ == null) { + connectedEndpointGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnectedEndpointGroups(int index) { + if (connectedEndpointGroupsBuilder_ == null) { + ensureConnectedEndpointGroupsIsMutable(); + connectedEndpointGroups_.remove(index); + onChanged(); + } else { + connectedEndpointGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder + getConnectedEndpointGroupsBuilder(int index) { + return internalGetConnectedEndpointGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder + getConnectedEndpointGroupsOrBuilder(int index) { + if (connectedEndpointGroupsBuilder_ == null) { + return connectedEndpointGroups_.get(index); + } else { + return connectedEndpointGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + getConnectedEndpointGroupsOrBuilderList() { + if (connectedEndpointGroupsBuilder_ != null) { + return connectedEndpointGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectedEndpointGroups_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder + addConnectedEndpointGroupsBuilder() { + return internalGetConnectedEndpointGroupsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder + addConnectedEndpointGroupsBuilder(int index) { + return internalGetConnectedEndpointGroupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of endpoint groups that are connected to this
                                                                                              +     * resource.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder> + getConnectedEndpointGroupsBuilderList() { + return internalGetConnectedEndpointGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + internalGetConnectedEndpointGroupsFieldBuilder() { + if (connectedEndpointGroupsBuilder_ == null) { + connectedEndpointGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + .Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder>( + connectedEndpointGroups_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + connectedEndpointGroups_ = null; + } + return connectedEndpointGroupsBuilder_; + } + + private java.util.List + nestedDeployments_ = java.util.Collections.emptyList(); + + private void ensureNestedDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + nestedDeployments_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment>( + nestedDeployments_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder> + nestedDeploymentsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List + getNestedDeploymentsList() { + if (nestedDeploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nestedDeployments_); + } else { + return nestedDeploymentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public int getNestedDeploymentsCount() { + if (nestedDeploymentsBuilder_ == null) { + return nestedDeployments_.size(); + } else { + return nestedDeploymentsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + getNestedDeployments(int index) { + if (nestedDeploymentsBuilder_ == null) { + return nestedDeployments_.get(index); + } else { + return nestedDeploymentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setNestedDeployments( + int index, com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment value) { + if (nestedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.set(index, value); + onChanged(); + } else { + nestedDeploymentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setNestedDeployments( + int index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder + builderForValue) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.set(index, builderForValue.build()); + onChanged(); + } else { + nestedDeploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addNestedDeployments( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment value) { + if (nestedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(value); + onChanged(); + } else { + nestedDeploymentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addNestedDeployments( + int index, com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment value) { + if (nestedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(index, value); + onChanged(); + } else { + nestedDeploymentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addNestedDeployments( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder + builderForValue) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(builderForValue.build()); + onChanged(); + } else { + nestedDeploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addNestedDeployments( + int index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder + builderForValue) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.add(index, builderForValue.build()); + onChanged(); + } else { + nestedDeploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addAllNestedDeployments( + java.lang.Iterable< + ? extends com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment> + values) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nestedDeployments_); + onChanged(); + } else { + nestedDeploymentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder clearNestedDeployments() { + if (nestedDeploymentsBuilder_ == null) { + nestedDeployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + nestedDeploymentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder removeNestedDeployments(int index) { + if (nestedDeploymentsBuilder_ == null) { + ensureNestedDeploymentsIsMutable(); + nestedDeployments_.remove(index); + onChanged(); + } else { + nestedDeploymentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder + getNestedDeploymentsBuilder(int index) { + return internalGetNestedDeploymentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder + getNestedDeploymentsOrBuilder(int index) { + if (nestedDeploymentsBuilder_ == null) { + return nestedDeployments_.get(index); + } else { + return nestedDeploymentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder> + getNestedDeploymentsOrBuilderList() { + if (nestedDeploymentsBuilder_ != null) { + return nestedDeploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nestedDeployments_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder + addNestedDeploymentsBuilder() { + return internalGetNestedDeploymentsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder + addNestedDeploymentsBuilder(int index) { + return internalGetNestedDeploymentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder> + getNestedDeploymentsBuilderList() { + return internalGetNestedDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder> + internalGetNestedDeploymentsFieldBuilder() { + if (nestedDeploymentsBuilder_ == null) { + nestedDeploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder>( + nestedDeployments_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + nestedDeployments_ = null; + } + return nestedDeploymentsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State getState() { + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State result = + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the deployment group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000100); + reconciling_ = false; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the deployment group.
                                                                                              +     * Used as additional context for the deployment group.
                                                                                              +     * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + locations_ = + new java.util.ArrayList( + locations_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations(com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLocations( + java.lang.Iterable + values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder getLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder( + int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder addLocationsBuilder() { + return internalGetLocationsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.MirroringLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder addLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.MirroringLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsBuilderList() { + return internalGetLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder> + internalGetLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder>( + locations_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringDeploymentGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringDeploymentGroup) + private static final com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.MirroringDeploymentGroup(); + } + + public static com.google.cloud.networksecurity.v1.MirroringDeploymentGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MirroringDeploymentGroup 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.networksecurity.v1.MirroringDeploymentGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupName.java new file mode 100644 index 000000000000..39dd86780ae2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MirroringDeploymentGroupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MIRRORING_DEPLOYMENT_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String mirroringDeploymentGroup; + + @Deprecated + protected MirroringDeploymentGroupName() { + project = null; + location = null; + mirroringDeploymentGroup = null; + } + + private MirroringDeploymentGroupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + mirroringDeploymentGroup = Preconditions.checkNotNull(builder.getMirroringDeploymentGroup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMirroringDeploymentGroup() { + return mirroringDeploymentGroup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MirroringDeploymentGroupName of( + String project, String location, String mirroringDeploymentGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMirroringDeploymentGroup(mirroringDeploymentGroup) + .build(); + } + + public static String format(String project, String location, String mirroringDeploymentGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMirroringDeploymentGroup(mirroringDeploymentGroup) + .build() + .toString(); + } + + public static MirroringDeploymentGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MIRRORING_DEPLOYMENT_GROUP.validatedMatch( + formattedString, + "MirroringDeploymentGroupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("mirroring_deployment_group")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MirroringDeploymentGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MIRRORING_DEPLOYMENT_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (mirroringDeploymentGroup != null) { + fieldMapBuilder.put("mirroring_deployment_group", mirroringDeploymentGroup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MIRRORING_DEPLOYMENT_GROUP.instantiate( + "project", + project, + "location", + location, + "mirroring_deployment_group", + mirroringDeploymentGroup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MirroringDeploymentGroupName that = ((MirroringDeploymentGroupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.mirroringDeploymentGroup, that.mirroringDeploymentGroup); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(mirroringDeploymentGroup); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}. + */ + public static class Builder { + private String project; + private String location; + private String mirroringDeploymentGroup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMirroringDeploymentGroup() { + return mirroringDeploymentGroup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMirroringDeploymentGroup(String mirroringDeploymentGroup) { + this.mirroringDeploymentGroup = mirroringDeploymentGroup; + return this; + } + + private Builder(MirroringDeploymentGroupName mirroringDeploymentGroupName) { + this.project = mirroringDeploymentGroupName.project; + this.location = mirroringDeploymentGroupName.location; + this.mirroringDeploymentGroup = mirroringDeploymentGroupName.mirroringDeploymentGroup; + } + + public MirroringDeploymentGroupName build() { + return new MirroringDeploymentGroupName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupOrBuilder.java new file mode 100644 index 000000000000..097adb526c0c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupOrBuilder.java @@ -0,0 +1,548 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface MirroringDeploymentGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringDeploymentGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The network that will be used for all child
                                                                                              +   * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The network that will be used for all child
                                                                                              +   * deployments, for example: `projects/{project}/global/networks/{network}`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup> + getConnectedEndpointGroupsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup + getConnectedEndpointGroups(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectedEndpointGroupsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .ConnectedEndpointGroupOrBuilder> + getConnectedEndpointGroupsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of endpoint groups that are connected to this
                                                                                              +   * resource.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroup connected_endpoint_groups = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.ConnectedEndpointGroupOrBuilder + getConnectedEndpointGroupsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List + getNestedDeploymentsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment getNestedDeployments( + int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + int getNestedDeploymentsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder> + getNestedDeploymentsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of Mirroring Deployments that belong to this group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringDeploymentGroup.Deployment nested_deployments = 10 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.DeploymentOrBuilder + getNestedDeploymentsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This is part
                                                                                              +   * of the normal operation (e.g. adding a new deployment to the group) See
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment group.
                                                                                              +   * Used as additional context for the deployment group.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment group.
                                                                                              +   * Used as additional context for the deployment group.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getLocationsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLocationsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLocationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the deployment group is present.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder(int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentName.java new file mode 100644 index 000000000000..07c4ae4cb252 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MirroringDeploymentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MIRRORING_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String mirroringDeployment; + + @Deprecated + protected MirroringDeploymentName() { + project = null; + location = null; + mirroringDeployment = null; + } + + private MirroringDeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + mirroringDeployment = Preconditions.checkNotNull(builder.getMirroringDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMirroringDeployment() { + return mirroringDeployment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MirroringDeploymentName of( + String project, String location, String mirroringDeployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMirroringDeployment(mirroringDeployment) + .build(); + } + + public static String format(String project, String location, String mirroringDeployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMirroringDeployment(mirroringDeployment) + .build() + .toString(); + } + + public static MirroringDeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MIRRORING_DEPLOYMENT.validatedMatch( + formattedString, "MirroringDeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("mirroring_deployment")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MirroringDeploymentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MIRRORING_DEPLOYMENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (mirroringDeployment != null) { + fieldMapBuilder.put("mirroring_deployment", mirroringDeployment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MIRRORING_DEPLOYMENT.instantiate( + "project", project, "location", location, "mirroring_deployment", mirroringDeployment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MirroringDeploymentName that = ((MirroringDeploymentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.mirroringDeployment, that.mirroringDeployment); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(mirroringDeployment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}. + */ + public static class Builder { + private String project; + private String location; + private String mirroringDeployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMirroringDeployment() { + return mirroringDeployment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMirroringDeployment(String mirroringDeployment) { + this.mirroringDeployment = mirroringDeployment; + return this; + } + + private Builder(MirroringDeploymentName mirroringDeploymentName) { + this.project = mirroringDeploymentName.project; + this.location = mirroringDeploymentName.location; + this.mirroringDeployment = mirroringDeploymentName.mirroringDeployment; + } + + public MirroringDeploymentName build() { + return new MirroringDeploymentName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentOrBuilder.java new file mode 100644 index 000000000000..cc12bbf58551 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentOrBuilder.java @@ -0,0 +1,364 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface MirroringDeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringDeployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +   * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this deployment, for example:
                                                                                              +   * `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +   * collectors, for example:
                                                                                              +   * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +   * https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + java.lang.String getForwardingRule(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The regional forwarding rule that fronts the mirroring
                                                                                              +   * collectors, for example:
                                                                                              +   * `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See
                                                                                              +   * https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string forwarding_rule = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + com.google.protobuf.ByteString getForwardingRuleBytes(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +   * of, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringDeploymentGroup. + */ + java.lang.String getMirroringDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. Immutable. The deployment group that this deployment is a part
                                                                                              +   * of, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_deployment_group = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringDeploymentGroup. + */ + com.google.protobuf.ByteString getMirroringDeploymentGroupBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the deployment.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.MirroringDeployment.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This part of
                                                                                              +   * the normal operation (e.g. linking a new association to the parent group).
                                                                                              +   * See https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment.
                                                                                              +   * Used as additional context for the deployment.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the deployment.
                                                                                              +   * Used as additional context for the deployment.
                                                                                              +   * 
                                                                                              + * + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroup.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroup.java new file mode 100644 index 000000000000..c2b63f691a5b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroup.java @@ -0,0 +1,6685 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * An endpoint group is a consumer frontend for a deployment group (backend).
                                                                                              + * In order to configure mirroring for a network, consumers must create:
                                                                                              + * - An association between their network and the endpoint group.
                                                                                              + * - A security profile that points to the endpoint group.
                                                                                              + * - A mirroring rule that references the security profile (group).
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringEndpointGroup} + */ +@com.google.protobuf.Generated +public final class MirroringEndpointGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringEndpointGroup) + MirroringEndpointGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MirroringEndpointGroup"); + } + + // Use MirroringEndpointGroup.newBuilder() to construct. + private MirroringEndpointGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MirroringEndpointGroup() { + name_ = ""; + mirroringDeploymentGroup_ = ""; + connectedDeploymentGroups_ = java.util.Collections.emptyList(); + state_ = 0; + type_ = 0; + associations_ = java.util.Collections.emptyList(); + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The current state of the endpoint group.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.MirroringEndpointGroup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The endpoint group is ready and in sync with the target deployment group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The deployment group backing this endpoint group has been force-deleted.
                                                                                              +     * This endpoint group cannot be used and mirroring is effectively disabled.
                                                                                              +     * 
                                                                                              + * + * CLOSED = 2; + */ + CLOSED(2), + /** + * + * + *
                                                                                              +     * The endpoint group is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 3; + */ + CREATING(3), + /** + * + * + *
                                                                                              +     * The endpoint group is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
                                                                                              +     * The endpoint group is out of sync with the backing deployment group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically. See the associations field for details per network and
                                                                                              +     * location.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 5; + */ + OUT_OF_SYNC(5), + /** + * + * + *
                                                                                              +     * An attempt to delete the endpoint group has failed. This is a terminal
                                                                                              +     * state and the endpoint group is not expected to recover.
                                                                                              +     * The only permitted operation is to retry deleting the endpoint group.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 6; + */ + DELETE_FAILED(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The endpoint group is ready and in sync with the target deployment group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The deployment group backing this endpoint group has been force-deleted.
                                                                                              +     * This endpoint group cannot be used and mirroring is effectively disabled.
                                                                                              +     * 
                                                                                              + * + * CLOSED = 2; + */ + public static final int CLOSED_VALUE = 2; + + /** + * + * + *
                                                                                              +     * The endpoint group is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 3; + */ + public static final int CREATING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * The endpoint group is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + /** + * + * + *
                                                                                              +     * The endpoint group is out of sync with the backing deployment group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically. See the associations field for details per network and
                                                                                              +     * location.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 5; + */ + public static final int OUT_OF_SYNC_VALUE = 5; + + /** + * + * + *
                                                                                              +     * An attempt to delete the endpoint group has failed. This is a terminal
                                                                                              +     * state and the endpoint group is not expected to recover.
                                                                                              +     * The only permitted operation is to retry deleting the endpoint group.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 6; + */ + public static final int DELETE_FAILED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CLOSED; + case 3: + return CREATING; + case 4: + return DELETING; + case 5: + return OUT_OF_SYNC; + case 6: + return DELETE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.MirroringEndpointGroup.State) + } + + /** + * + * + *
                                                                                              +   * The type of the endpoint group.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.MirroringEndpointGroup.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * An endpoint group that sends packets to a single deployment group.
                                                                                              +     * 
                                                                                              + * + * DIRECT = 1; + */ + DIRECT(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * An endpoint group that sends packets to a single deployment group.
                                                                                              +     * 
                                                                                              + * + * DIRECT = 1; + */ + public static final int DIRECT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return DIRECT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.MirroringEndpointGroup.Type) + } + + public interface ConnectedDeploymentGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The connected deployment group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The connected deployment group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getLocationsList(); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLocationsCount(); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLocationsOrBuilderList(); + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder(int index); + } + + /** + * + * + *
                                                                                              +   * The endpoint group's view of a connected deployment group.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup} + */ + public static final class ConnectedDeploymentGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup) + ConnectedDeploymentGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectedDeploymentGroup"); + } + + // Use ConnectedDeploymentGroup.newBuilder() to construct. + private ConnectedDeploymentGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectedDeploymentGroup() { + name_ = ""; + locations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The connected deployment group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The connected deployment group's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List locations_; + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLocationsList() { + return locations_; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the deployment group is present.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder( + int index) { + return locations_.get(index); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(2, locations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, locations_.get(i)); + } + 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.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup other = + (com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (!getLocationsList().equals(other.getLocationsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + 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.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + 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.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * The endpoint group's view of a connected deployment group.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup) + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + } else { + locations_ = null; + locationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + build() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + buildPartial() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup result = + new com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + result) { + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + other) { + if (other + == com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + locationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.networksecurity.v1.MirroringLocation m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringLocation.parser(), + extensionRegistry); + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(m); + } else { + locationsBuilder_.addMessage(m); + } + 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 java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected deployment group's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + locations_ = + new java.util.ArrayList( + locations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations(com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLocations( + java.lang.Iterable + values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder getLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder( + int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder> + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder addLocationsBuilder() { + return internalGetLocationsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.MirroringLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder addLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.MirroringLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +       * Output only. The list of locations where the deployment group is present.
                                                                                              +       * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsBuilderList() { + return internalGetLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder> + internalGetLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder>( + locations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup) + private static final com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup(); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedDeploymentGroup 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.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AssociationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The connected association's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +     * Output only. The connected association's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +     * Output only. The associated network, for example:
                                                                                              +     * projects/123456789/global/networks/my-network.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                                                                              +     * Output only. The associated network, for example:
                                                                                              +     * projects/123456789/global/networks/my-network.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State getState(); + } + + /** + * + * + *
                                                                                              +   * The endpoint group's view of a connected association.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails} + */ + public static final class AssociationDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails) + AssociationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssociationDetails"); + } + + // Use AssociationDetails.newBuilder() to construct. + private AssociationDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssociationDetails() { + name_ = ""; + network_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The connected association's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The connected association's resource name, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The associated network, for example:
                                                                                              +     * projects/123456789/global/networks/my-network.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The associated network, for example:
                                                                                              +     * projects/123456789/global/networks/my-network.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. Most recent known state of the association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State getState() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State.forNumber( + state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, network_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, network_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + 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.networksecurity.v1.MirroringEndpointGroup.AssociationDetails)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails other = + (com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (state_ != other.state_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + 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.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + 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.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringEndpointGroup.AssociationDetails 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * The endpoint group's view of a connected association.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails) + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + network_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails build() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + buildPartial() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails result = + new com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails other) { + if (other + == com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + 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 name_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The connected association's resource name, for example:
                                                                                              +       * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The associated network, for example:
                                                                                              +       * projects/123456789/global/networks/my-network.
                                                                                              +       * See https://google.aip.dev/124.
                                                                                              +       * 
                                                                                              + * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State + getState() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State.forNumber( + state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. Most recent known state of the association.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails) + private static final com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .AssociationDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails(); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssociationDetails 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.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MIRRORING_DEPLOYMENT_GROUP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object mirroringDeploymentGroup_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +   * connected to, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringDeploymentGroup. + */ + @java.lang.Override + public java.lang.String getMirroringDeploymentGroup() { + java.lang.Object ref = mirroringDeploymentGroup_; + 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(); + mirroringDeploymentGroup_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +   * connected to, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringDeploymentGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMirroringDeploymentGroupBytes() { + java.lang.Object ref = mirroringDeploymentGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringDeploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTED_DEPLOYMENT_GROUPS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup> + connectedDeploymentGroups_; + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup> + getConnectedDeploymentGroupsList() { + return connectedDeploymentGroups_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder> + getConnectedDeploymentGroupsOrBuilderList() { + return connectedDeploymentGroups_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConnectedDeploymentGroupsCount() { + return connectedDeploymentGroups_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + getConnectedDeploymentGroups(int index) { + return connectedDeploymentGroups_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder + getConnectedDeploymentGroupsOrBuilder(int index) { + return connectedDeploymentGroups_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the endpoint group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. The current state of the endpoint group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State getState() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 8; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This is part
                                                                                              +   * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int TYPE_FIELD_NUMBER = 11; + private int type_ = 0; + + /** + * + * + *
                                                                                              +   * Immutable. The type of the endpoint group.
                                                                                              +   * If left unspecified, defaults to DIRECT.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                                                                              +   * Immutable. The type of the endpoint group.
                                                                                              +   * If left unspecified, defaults to DIRECT.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type getType() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type.forNumber(type_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type.UNRECOGNIZED + : result; + } + + public static final int ASSOCIATIONS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails> + associations_; + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails> + getAssociationsList() { + return associations_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .AssociationDetailsOrBuilder> + getAssociationsOrBuilderList() { + return associations_; + } + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAssociationsCount() { + return associations_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + getAssociations(int index) { + return associations_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetailsOrBuilder + getAssociationsOrBuilder(int index) { + return associations_.get(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the endpoint group.
                                                                                              +   * Used as additional context for the endpoint group.
                                                                                              +   * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the endpoint group.
                                                                                              +   * Used as additional context for the endpoint group.
                                                                                              +   * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringDeploymentGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, mirroringDeploymentGroup_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + if (reconciling_ != false) { + output.writeBool(8, reconciling_); + } + for (int i = 0; i < associations_.size(); i++) { + output.writeMessage(9, associations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, description_); + } + if (type_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, type_); + } + for (int i = 0; i < connectedDeploymentGroups_.size(); i++) { + output.writeMessage(13, connectedDeploymentGroups_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringDeploymentGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, mirroringDeploymentGroup_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, reconciling_); + } + for (int i = 0; i < associations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, associations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, description_); + } + if (type_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, type_); + } + for (int i = 0; i < connectedDeploymentGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, connectedDeploymentGroups_.get(i)); + } + 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.networksecurity.v1.MirroringEndpointGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringEndpointGroup other = + (com.google.cloud.networksecurity.v1.MirroringEndpointGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getMirroringDeploymentGroup().equals(other.getMirroringDeploymentGroup())) return false; + if (!getConnectedDeploymentGroupsList().equals(other.getConnectedDeploymentGroupsList())) + return false; + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (type_ != other.type_) return false; + if (!getAssociationsList().equals(other.getAssociationsList())) return false; + if (!getDescription().equals(other.getDescription())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + MIRRORING_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeploymentGroup().hashCode(); + if (getConnectedDeploymentGroupsCount() > 0) { + hash = (37 * hash) + CONNECTED_DEPLOYMENT_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getConnectedDeploymentGroupsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getAssociationsCount() > 0) { + hash = (37 * hash) + ASSOCIATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAssociationsList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup 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.networksecurity.v1.MirroringEndpointGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup 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.networksecurity.v1.MirroringEndpointGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringEndpointGroup 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * An endpoint group is a consumer frontend for a deployment group (backend).
                                                                                              +   * In order to configure mirroring for a network, consumers must create:
                                                                                              +   * - An association between their network and the endpoint group.
                                                                                              +   * - A security profile that points to the endpoint group.
                                                                                              +   * - A mirroring rule that references the security profile (group).
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringEndpointGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringEndpointGroup) + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.MirroringEndpointGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetConnectedDeploymentGroupsFieldBuilder(); + internalGetAssociationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + mirroringDeploymentGroup_ = ""; + if (connectedDeploymentGroupsBuilder_ == null) { + connectedDeploymentGroups_ = java.util.Collections.emptyList(); + } else { + connectedDeploymentGroups_ = null; + connectedDeploymentGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + reconciling_ = false; + type_ = 0; + if (associationsBuilder_ == null) { + associations_ = java.util.Collections.emptyList(); + } else { + associations_ = null; + associationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup build() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup buildPartial() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup result = + new com.google.cloud.networksecurity.v1.MirroringEndpointGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup result) { + if (connectedDeploymentGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + connectedDeploymentGroups_ = + java.util.Collections.unmodifiableList(connectedDeploymentGroups_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.connectedDeploymentGroups_ = connectedDeploymentGroups_; + } else { + result.connectedDeploymentGroups_ = connectedDeploymentGroupsBuilder_.build(); + } + if (associationsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + associations_ = java.util.Collections.unmodifiableList(associations_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.associations_ = associations_; + } else { + result.associations_ = associationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.MirroringEndpointGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mirroringDeploymentGroup_ = mirroringDeploymentGroup_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.MirroringEndpointGroup) { + return mergeFrom((com.google.cloud.networksecurity.v1.MirroringEndpointGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.MirroringEndpointGroup other) { + if (other == com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getMirroringDeploymentGroup().isEmpty()) { + mirroringDeploymentGroup_ = other.mirroringDeploymentGroup_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (connectedDeploymentGroupsBuilder_ == null) { + if (!other.connectedDeploymentGroups_.isEmpty()) { + if (connectedDeploymentGroups_.isEmpty()) { + connectedDeploymentGroups_ = other.connectedDeploymentGroups_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.addAll(other.connectedDeploymentGroups_); + } + onChanged(); + } + } else { + if (!other.connectedDeploymentGroups_.isEmpty()) { + if (connectedDeploymentGroupsBuilder_.isEmpty()) { + connectedDeploymentGroupsBuilder_.dispose(); + connectedDeploymentGroupsBuilder_ = null; + connectedDeploymentGroups_ = other.connectedDeploymentGroups_; + bitField0_ = (bitField0_ & ~0x00000020); + connectedDeploymentGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectedDeploymentGroupsFieldBuilder() + : null; + } else { + connectedDeploymentGroupsBuilder_.addAllMessages(other.connectedDeploymentGroups_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (associationsBuilder_ == null) { + if (!other.associations_.isEmpty()) { + if (associations_.isEmpty()) { + associations_ = other.associations_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureAssociationsIsMutable(); + associations_.addAll(other.associations_); + } + onChanged(); + } + } else { + if (!other.associations_.isEmpty()) { + if (associationsBuilder_.isEmpty()) { + associationsBuilder_.dispose(); + associationsBuilder_ = null; + associations_ = other.associations_; + bitField0_ = (bitField0_ & ~0x00000200); + associationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssociationsFieldBuilder() + : null; + } else { + associationsBuilder_.addAllMessages(other.associations_); + } + } + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000400; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + mirroringDeploymentGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .AssociationDetails.parser(), + extensionRegistry); + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(m); + } else { + associationsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 88: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 88 + case 106: + { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup.parser(), + extensionRegistry); + if (connectedDeploymentGroupsBuilder_ == null) { + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.add(m); + } else { + connectedDeploymentGroupsBuilder_.addMessage(m); + } + break; + } // case 106 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object mirroringDeploymentGroup_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringDeploymentGroup. + */ + public java.lang.String getMirroringDeploymentGroup() { + java.lang.Object ref = mirroringDeploymentGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mirroringDeploymentGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringDeploymentGroup. + */ + public com.google.protobuf.ByteString getMirroringDeploymentGroupBytes() { + java.lang.Object ref = mirroringDeploymentGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringDeploymentGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The mirroringDeploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setMirroringDeploymentGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mirroringDeploymentGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMirroringDeploymentGroup() { + mirroringDeploymentGroup_ = getDefaultInstance().getMirroringDeploymentGroup(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +     * connected to, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for mirroringDeploymentGroup to set. + * @return This builder for chaining. + */ + public Builder setMirroringDeploymentGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mirroringDeploymentGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup> + connectedDeploymentGroups_ = java.util.Collections.emptyList(); + + private void ensureConnectedDeploymentGroupsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + connectedDeploymentGroups_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup>(connectedDeploymentGroups_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder> + connectedDeploymentGroupsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup> + getConnectedDeploymentGroupsList() { + if (connectedDeploymentGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectedDeploymentGroups_); + } else { + return connectedDeploymentGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConnectedDeploymentGroupsCount() { + if (connectedDeploymentGroupsBuilder_ == null) { + return connectedDeploymentGroups_.size(); + } else { + return connectedDeploymentGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + getConnectedDeploymentGroups(int index) { + if (connectedDeploymentGroupsBuilder_ == null) { + return connectedDeploymentGroups_.get(index); + } else { + return connectedDeploymentGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectedDeploymentGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup value) { + if (connectedDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.set(index, value); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectedDeploymentGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup.Builder + builderForValue) { + if (connectedDeploymentGroupsBuilder_ == null) { + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedDeploymentGroups( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup value) { + if (connectedDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.add(value); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedDeploymentGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup value) { + if (connectedDeploymentGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.add(index, value); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedDeploymentGroups( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup.Builder + builderForValue) { + if (connectedDeploymentGroupsBuilder_ == null) { + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.add(builderForValue.build()); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConnectedDeploymentGroups( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup.Builder + builderForValue) { + if (connectedDeploymentGroupsBuilder_ == null) { + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConnectedDeploymentGroups( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroup> + values) { + if (connectedDeploymentGroupsBuilder_ == null) { + ensureConnectedDeploymentGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectedDeploymentGroups_); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectedDeploymentGroups() { + if (connectedDeploymentGroupsBuilder_ == null) { + connectedDeploymentGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnectedDeploymentGroups(int index) { + if (connectedDeploymentGroupsBuilder_ == null) { + ensureConnectedDeploymentGroupsIsMutable(); + connectedDeploymentGroups_.remove(index); + onChanged(); + } else { + connectedDeploymentGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder + getConnectedDeploymentGroupsBuilder(int index) { + return internalGetConnectedDeploymentGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder + getConnectedDeploymentGroupsOrBuilder(int index) { + if (connectedDeploymentGroupsBuilder_ == null) { + return connectedDeploymentGroups_.get(index); + } else { + return connectedDeploymentGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder> + getConnectedDeploymentGroupsOrBuilderList() { + if (connectedDeploymentGroupsBuilder_ != null) { + return connectedDeploymentGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectedDeploymentGroups_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder + addConnectedDeploymentGroupsBuilder() { + return internalGetConnectedDeploymentGroupsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder + addConnectedDeploymentGroupsBuilder(int index) { + return internalGetConnectedDeploymentGroupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. List of details about the connected deployment groups to this
                                                                                              +     * endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder> + getConnectedDeploymentGroupsBuilderList() { + return internalGetConnectedDeploymentGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder> + internalGetConnectedDeploymentGroupsFieldBuilder() { + if (connectedDeploymentGroupsBuilder_ == null) { + connectedDeploymentGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + .Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder>( + connectedDeploymentGroups_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + connectedDeploymentGroups_ = null; + } + return connectedDeploymentGroupsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State getState() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the endpoint group.
                                                                                              +     * See https://google.aip.dev/216.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This is part
                                                                                              +     * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +     * https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000080); + reconciling_ = false; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
                                                                                              +     * Immutable. The type of the endpoint group.
                                                                                              +     * If left unspecified, defaults to DIRECT.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                                                                              +     * Immutable. The type of the endpoint group.
                                                                                              +     * If left unspecified, defaults to DIRECT.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The type of the endpoint group.
                                                                                              +     * If left unspecified, defaults to DIRECT.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type getType() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type.forNumber(type_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Immutable. The type of the endpoint group.
                                                                                              +     * If left unspecified, defaults to DIRECT.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The type of the endpoint group.
                                                                                              +     * If left unspecified, defaults to DIRECT.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000100); + type_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails> + associations_ = java.util.Collections.emptyList(); + + private void ensureAssociationsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + associations_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails>( + associations_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetailsOrBuilder> + associationsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails> + getAssociationsList() { + if (associationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(associations_); + } else { + return associationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAssociationsCount() { + if (associationsBuilder_ == null) { + return associations_.size(); + } else { + return associationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + getAssociations(int index) { + if (associationsBuilder_ == null) { + return associations_.get(index); + } else { + return associationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssociations( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.set(index, value); + onChanged(); + } else { + associationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssociations( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.set(index, builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.add(value); + onChanged(); + } else { + associationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails value) { + if (associationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssociationsIsMutable(); + associations_.add(index, value); + onChanged(); + } else { + associationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAssociations( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder + builderForValue) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.add(index, builderForValue.build()); + onChanged(); + } else { + associationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAssociations( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails> + values) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, associations_); + onChanged(); + } else { + associationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAssociations() { + if (associationsBuilder_ == null) { + associations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + associationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAssociations(int index) { + if (associationsBuilder_ == null) { + ensureAssociationsIsMutable(); + associations_.remove(index); + onChanged(); + } else { + associationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder + getAssociationsBuilder(int index) { + return internalGetAssociationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetailsOrBuilder + getAssociationsOrBuilder(int index) { + if (associationsBuilder_ == null) { + return associations_.get(index); + } else { + return associationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .AssociationDetailsOrBuilder> + getAssociationsOrBuilderList() { + if (associationsBuilder_ != null) { + return associationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(associations_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder + addAssociationsBuilder() { + return internalGetAssociationsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder + addAssociationsBuilder(int index) { + return internalGetAssociationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. List of associations to this endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder> + getAssociationsBuilderList() { + return internalGetAssociationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetailsOrBuilder> + internalGetAssociationsFieldBuilder() { + if (associationsBuilder_ == null) { + associationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails + .Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .AssociationDetailsOrBuilder>( + associations_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + associations_ = null; + } + return associationsBuilder_; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. User-provided description of the endpoint group.
                                                                                              +     * Used as additional context for the endpoint group.
                                                                                              +     * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringEndpointGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringEndpointGroup) + private static final com.google.cloud.networksecurity.v1.MirroringEndpointGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.MirroringEndpointGroup(); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MirroringEndpointGroup 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.networksecurity.v1.MirroringEndpointGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociation.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..e6e306d9d8fa --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociation.java @@ -0,0 +1,5014 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * An endpoint group association represents a link between a network and an
                                                                                              + * endpoint group in the organization.
                                                                                              + *
                                                                                              + * Creating an association creates the networking infrastructure linking the
                                                                                              + * network to the endpoint group, but does not enable mirroring by itself.
                                                                                              + * To enable mirroring, the user must also create a network firewall policy
                                                                                              + * containing mirroring rules and associate it with the network.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation} + */ +@com.google.protobuf.Generated +public final class MirroringEndpointGroupAssociation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation) + MirroringEndpointGroupAssociationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MirroringEndpointGroupAssociation"); + } + + // Use MirroringEndpointGroupAssociation.newBuilder() to construct. + private MirroringEndpointGroupAssociation( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MirroringEndpointGroupAssociation() { + name_ = ""; + mirroringEndpointGroup_ = ""; + network_ = ""; + locationsDetails_ = java.util.Collections.emptyList(); + state_ = 0; + locations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The state of the association.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The association is ready and in sync with the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The association is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 3; + */ + CREATING(3), + /** + * + * + *
                                                                                              +     * The association is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
                                                                                              +     * The association is disabled due to a breaking change in another resource.
                                                                                              +     * 
                                                                                              + * + * CLOSED = 5; + */ + CLOSED(5), + /** + * + * + *
                                                                                              +     * The association is out of sync with the linked endpoint group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically. Check the `locations_details` field for more details.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 6; + */ + OUT_OF_SYNC(6), + /** + * + * + *
                                                                                              +     * An attempt to delete the association has failed. This is a terminal state
                                                                                              +     * and the association is not expected to be usable as some of its resources
                                                                                              +     * have been deleted.
                                                                                              +     * The only permitted operation is to retry deleting the association.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 7; + */ + DELETE_FAILED(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * Not set.
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The association is ready and in sync with the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The association is being created.
                                                                                              +     * 
                                                                                              + * + * CREATING = 3; + */ + public static final int CREATING_VALUE = 3; + + /** + * + * + *
                                                                                              +     * The association is being deleted.
                                                                                              +     * 
                                                                                              + * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + /** + * + * + *
                                                                                              +     * The association is disabled due to a breaking change in another resource.
                                                                                              +     * 
                                                                                              + * + * CLOSED = 5; + */ + public static final int CLOSED_VALUE = 5; + + /** + * + * + *
                                                                                              +     * The association is out of sync with the linked endpoint group.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically. Check the `locations_details` field for more details.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 6; + */ + public static final int OUT_OF_SYNC_VALUE = 6; + + /** + * + * + *
                                                                                              +     * An attempt to delete the association has failed. This is a terminal state
                                                                                              +     * and the association is not expected to be usable as some of its resources
                                                                                              +     * have been deleted.
                                                                                              +     * The only permitted operation is to retry deleting the association.
                                                                                              +     * 
                                                                                              + * + * DELETE_FAILED = 7; + */ + public static final int DELETE_FAILED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 3: + return CREATING; + case 4: + return DELETING; + case 5: + return CLOSED; + case 6: + return OUT_OF_SYNC; + case 7: + return DELETE_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State) + } + + public interface LocationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State + getState(); + } + + /** + * + * + *
                                                                                              +   * Contains details about the state of an association in a specific cloud
                                                                                              +   * location.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails} + */ + public static final class LocationDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails) + LocationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LocationDetails"); + } + + // Use LocationDetails.newBuilder() to construct. + private LocationDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LocationDetails() { + location_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder.class); + } + + /** + * + * + *
                                                                                              +     * The state of association.
                                                                                              +     * 
                                                                                              + * + * Protobuf enum {@code + * google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +       * Not set.
                                                                                              +       * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +       * The association is ready and in sync with the linked endpoint group.
                                                                                              +       * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +       * The association is out of sync with the linked endpoint group.
                                                                                              +       * In most cases, this is a result of a transient issue within the system
                                                                                              +       * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +       * automatically.
                                                                                              +       * 
                                                                                              + * + * OUT_OF_SYNC = 2; + */ + OUT_OF_SYNC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +       * Not set.
                                                                                              +       * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +       * The association is ready and in sync with the linked endpoint group.
                                                                                              +       * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +       * The association is out of sync with the linked endpoint group.
                                                                                              +       * In most cases, this is a result of a transient issue within the system
                                                                                              +       * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +       * automatically.
                                                                                              +       * 
                                                                                              + * + * OUT_OF_SYNC = 2; + */ + public static final int OUT_OF_SYNC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return OUT_OF_SYNC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State) + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .State + getState() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State + result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .State.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails other = + (com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails) + obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (state_ != other.state_) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + 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.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + 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.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +     * Contains details about the state of an association in a specific cloud
                                                                                              +     * location.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails) + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails.class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + build() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + buildPartial() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + result = + new com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + other) { + if (other + == com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 location_ = ""; + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +       * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .State + getState() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State + result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .State + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Output only. The current state of the association in this location.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails) + private static final com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails(); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationDetails 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.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +   * association, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +   * association, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MIRRORING_ENDPOINT_GROUP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object mirroringEndpointGroup_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. The endpoint group that this association is connected to, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringEndpointGroup. + */ + @java.lang.Override + public java.lang.String getMirroringEndpointGroup() { + java.lang.Object ref = mirroringEndpointGroup_; + 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(); + mirroringEndpointGroup_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. The endpoint group that this association is connected to, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringEndpointGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMirroringEndpointGroupBytes() { + java.lang.Object ref = mirroringEndpointGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringEndpointGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. The VPC network that is associated. for example:
                                                                                              +   * `projects/123456789/global/networks/my-network`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. The VPC network that is associated. for example:
                                                                                              +   * `projects/123456789/global/networks/my-network`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_DETAILS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails> + locationsDetails_; + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails> + getLocationsDetailsList() { + return locationsDetails_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder> + getLocationsDetailsOrBuilderList() { + return locationsDetails_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getLocationsDetailsCount() { + return locationsDetails_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + getLocationsDetails(int index) { + return locationsDetails_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder + getLocationsDetailsOrBuilder(int index) { + return locationsDetails_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint group association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint group association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State getState() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State.forNumber( + state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State.UNRECOGNIZED + : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 9; + private boolean reconciling_ = false; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This part of
                                                                                              +   * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +   * group). See https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int LOCATIONS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List locations_; + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getLocationsList() { + return locations_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder( + int index) { + return locations_.get(index); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringEndpointGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, mirroringEndpointGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, network_); + } + for (int i = 0; i < locationsDetails_.size(); i++) { + output.writeMessage(7, locationsDetails_.get(i)); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, state_); + } + if (reconciling_ != false) { + output.writeBool(9, reconciling_); + } + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(10, locations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mirroringEndpointGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, mirroringEndpointGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, network_); + } + for (int i = 0; i < locationsDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, locationsDetails_.get(i)); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, reconciling_); + } + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, locations_.get(i)); + } + 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.networksecurity.v1.MirroringEndpointGroupAssociation)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation other = + (com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getMirroringEndpointGroup().equals(other.getMirroringEndpointGroup())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getLocationsDetailsList().equals(other.getLocationsDetailsList())) return false; + if (state_ != other.state_) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getLocationsList().equals(other.getLocationsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroup().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + if (getLocationsDetailsCount() > 0) { + hash = (37 * hash) + LOCATIONS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsDetailsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation 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.networksecurity.v1.MirroringEndpointGroupAssociation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation 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.networksecurity.v1.MirroringEndpointGroupAssociation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringEndpointGroupAssociation 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * An endpoint group association represents a link between a network and an
                                                                                              +   * endpoint group in the organization.
                                                                                              +   *
                                                                                              +   * Creating an association creates the networking infrastructure linking the
                                                                                              +   * network to the endpoint group, but does not enable mirroring by itself.
                                                                                              +   * To enable mirroring, the user must also create a network firewall policy
                                                                                              +   * containing mirroring rules and associate it with the network.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation) + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.class, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetLocationsDetailsFieldBuilder(); + internalGetLocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + mirroringEndpointGroup_ = ""; + network_ = ""; + if (locationsDetailsBuilder_ == null) { + locationsDetails_ = java.util.Collections.emptyList(); + } else { + locationsDetails_ = null; + locationsDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + reconciling_ = false; + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + } else { + locations_ = null; + locationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation build() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation buildPartial() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation result = + new com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation result) { + if (locationsDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + locationsDetails_ = java.util.Collections.unmodifiableList(locationsDetails_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.locationsDetails_ = locationsDetails_; + } else { + result.locationsDetails_ = locationsDetailsBuilder_.build(); + } + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mirroringEndpointGroup_ = mirroringEndpointGroup_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.reconciling_ = reconciling_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation other) { + if (other + == com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getMirroringEndpointGroup().isEmpty()) { + mirroringEndpointGroup_ = other.mirroringEndpointGroup_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (locationsDetailsBuilder_ == null) { + if (!other.locationsDetails_.isEmpty()) { + if (locationsDetails_.isEmpty()) { + locationsDetails_ = other.locationsDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureLocationsDetailsIsMutable(); + locationsDetails_.addAll(other.locationsDetails_); + } + onChanged(); + } + } else { + if (!other.locationsDetails_.isEmpty()) { + if (locationsDetailsBuilder_.isEmpty()) { + locationsDetailsBuilder_.dispose(); + locationsDetailsBuilder_ = null; + locationsDetails_ = other.locationsDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + locationsDetailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLocationsDetailsFieldBuilder() + : null; + } else { + locationsDetailsBuilder_.addAllMessages(other.locationsDetails_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000200); + locationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + mirroringEndpointGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails + m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails.parser(), + extensionRegistry); + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(m); + } else { + locationsDetailsBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + com.google.cloud.networksecurity.v1.MirroringLocation m = + input.readMessage( + com.google.cloud.networksecurity.v1.MirroringLocation.parser(), + extensionRegistry); + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(m); + } else { + locationsBuilder_.addMessage(m); + } + break; + } // case 82 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +     * association, for example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +     * See https://google.aip.dev/122 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was most recently updated.
                                                                                              +     * See https://google.aip.dev/148#timestamps.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +     * resources.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object mirroringEndpointGroup_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. The endpoint group that this association is connected to, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringEndpointGroup. + */ + public java.lang.String getMirroringEndpointGroup() { + java.lang.Object ref = mirroringEndpointGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mirroringEndpointGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. The endpoint group that this association is connected to, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringEndpointGroup. + */ + public com.google.protobuf.ByteString getMirroringEndpointGroupBytes() { + java.lang.Object ref = mirroringEndpointGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mirroringEndpointGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. The endpoint group that this association is connected to, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The mirroringEndpointGroup to set. + * @return This builder for chaining. + */ + public Builder setMirroringEndpointGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mirroringEndpointGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The endpoint group that this association is connected to, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMirroringEndpointGroup() { + mirroringEndpointGroup_ = getDefaultInstance().getMirroringEndpointGroup(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The endpoint group that this association is connected to, for
                                                                                              +     * example:
                                                                                              +     * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for mirroringEndpointGroup to set. + * @return This builder for chaining. + */ + public Builder setMirroringEndpointGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mirroringEndpointGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The VPC network that is associated. for example:
                                                                                              +     * `projects/123456789/global/networks/my-network`.
                                                                                              +     * See https://google.aip.dev/124.
                                                                                              +     * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails> + locationsDetails_ = java.util.Collections.emptyList(); + + private void ensureLocationsDetailsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + locationsDetails_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails>(locationsDetails_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder> + locationsDetailsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails> + getLocationsDetailsList() { + if (locationsDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locationsDetails_); + } else { + return locationsDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public int getLocationsDetailsCount() { + if (locationsDetailsBuilder_ == null) { + return locationsDetails_.size(); + } else { + return locationsDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + getLocationsDetails(int index) { + if (locationsDetailsBuilder_ == null) { + return locationsDetails_.get(index); + } else { + return locationsDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setLocationsDetails( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + value) { + if (locationsDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsDetailsIsMutable(); + locationsDetails_.set(index, value); + onChanged(); + } else { + locationsDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setLocationsDetails( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder + builderForValue) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addLocationsDetails( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + value) { + if (locationsDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(value); + onChanged(); + } else { + locationsDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addLocationsDetails( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + value) { + if (locationsDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(index, value); + onChanged(); + } else { + locationsDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addLocationsDetails( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder + builderForValue) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(builderForValue.build()); + onChanged(); + } else { + locationsDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addLocationsDetails( + int index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder + builderForValue) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder addAllLocationsDetails( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails> + values) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationsDetails_); + onChanged(); + } else { + locationsDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder clearLocationsDetails() { + if (locationsDetailsBuilder_ == null) { + locationsDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + locationsDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder removeLocationsDetails(int index) { + if (locationsDetailsBuilder_ == null) { + ensureLocationsDetailsIsMutable(); + locationsDetails_.remove(index); + onChanged(); + } else { + locationsDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder + getLocationsDetailsBuilder(int index) { + return internalGetLocationsDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder + getLocationsDetailsOrBuilder(int index) { + if (locationsDetailsBuilder_ == null) { + return locationsDetails_.get(index); + } else { + return locationsDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder> + getLocationsDetailsOrBuilderList() { + if (locationsDetailsBuilder_ != null) { + return locationsDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locationsDetails_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder + addLocationsDetailsBuilder() { + return internalGetLocationsDetailsFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder + addLocationsDetailsBuilder(int index) { + return internalGetLocationsDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is present. This
                                                                                              +     * information is retrieved from the linked endpoint group, and not configured
                                                                                              +     * as part of the association itself.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder> + getLocationsDetailsBuilderList() { + return internalGetLocationsDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + .Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder> + internalGetLocationsDetailsFieldBuilder() { + if (locationsDetailsBuilder_ == null) { + locationsDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetails.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder>( + locationsDetails_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + locationsDetails_ = null; + } + return locationsDetailsBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State getState() { + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State result = + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State.forNumber( + state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Current state of the endpoint group association.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +     * group). See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +     * group). See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the resource does not match the user's
                                                                                              +     * intended state, and the system is working to reconcile them. This part of
                                                                                              +     * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +     * group). See https://google.aip.dev/128.
                                                                                              +     * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000100); + reconciling_ = false; + onChanged(); + return this; + } + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + locations_ = + new java.util.ArrayList( + locations_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations(com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addLocations( + int index, com.google.cloud.networksecurity.v1.MirroringLocation.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllLocations( + java.lang.Iterable + values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder getLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder( + int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder addLocationsBuilder() { + return internalGetLocationsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.MirroringLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringLocation.Builder addLocationsBuilder( + int index) { + return internalGetLocationsFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.MirroringLocation.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Output only. The list of locations where the association is configured.
                                                                                              +     * This information is retrieved from the linked endpoint group.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getLocationsBuilderList() { + return internalGetLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder> + internalGetLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringLocation, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder, + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder>( + locations_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation) + private static final com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation(); + } + + public static com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MirroringEndpointGroupAssociation 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.networksecurity.v1.MirroringEndpointGroupAssociation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationName.java new file mode 100644 index 000000000000..26fbee18b856 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationName.java @@ -0,0 +1,246 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MirroringEndpointGroupAssociationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MIRRORING_ENDPOINT_GROUP_ASSOCIATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String mirroringEndpointGroupAssociation; + + @Deprecated + protected MirroringEndpointGroupAssociationName() { + project = null; + location = null; + mirroringEndpointGroupAssociation = null; + } + + private MirroringEndpointGroupAssociationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + mirroringEndpointGroupAssociation = + Preconditions.checkNotNull(builder.getMirroringEndpointGroupAssociation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMirroringEndpointGroupAssociation() { + return mirroringEndpointGroupAssociation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MirroringEndpointGroupAssociationName of( + String project, String location, String mirroringEndpointGroupAssociation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMirroringEndpointGroupAssociation(mirroringEndpointGroupAssociation) + .build(); + } + + public static String format( + String project, String location, String mirroringEndpointGroupAssociation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMirroringEndpointGroupAssociation(mirroringEndpointGroupAssociation) + .build() + .toString(); + } + + public static MirroringEndpointGroupAssociationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MIRRORING_ENDPOINT_GROUP_ASSOCIATION.validatedMatch( + formattedString, + "MirroringEndpointGroupAssociationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("mirroring_endpoint_group_association")); + } + + public static List parseList( + List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MirroringEndpointGroupAssociationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MIRRORING_ENDPOINT_GROUP_ASSOCIATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (mirroringEndpointGroupAssociation != null) { + fieldMapBuilder.put( + "mirroring_endpoint_group_association", mirroringEndpointGroupAssociation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MIRRORING_ENDPOINT_GROUP_ASSOCIATION.instantiate( + "project", + project, + "location", + location, + "mirroring_endpoint_group_association", + mirroringEndpointGroupAssociation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MirroringEndpointGroupAssociationName that = ((MirroringEndpointGroupAssociationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals( + this.mirroringEndpointGroupAssociation, that.mirroringEndpointGroupAssociation); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(mirroringEndpointGroupAssociation); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}. + */ + public static class Builder { + private String project; + private String location; + private String mirroringEndpointGroupAssociation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMirroringEndpointGroupAssociation() { + return mirroringEndpointGroupAssociation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMirroringEndpointGroupAssociation(String mirroringEndpointGroupAssociation) { + this.mirroringEndpointGroupAssociation = mirroringEndpointGroupAssociation; + return this; + } + + private Builder(MirroringEndpointGroupAssociationName mirroringEndpointGroupAssociationName) { + this.project = mirroringEndpointGroupAssociationName.project; + this.location = mirroringEndpointGroupAssociationName.location; + this.mirroringEndpointGroupAssociation = + mirroringEndpointGroupAssociationName.mirroringEndpointGroupAssociation; + } + + public MirroringEndpointGroupAssociationName build() { + return new MirroringEndpointGroupAssociationName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationOrBuilder.java new file mode 100644 index 000000000000..df54146d4971 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationOrBuilder.java @@ -0,0 +1,493 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface MirroringEndpointGroupAssociationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +   * association, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group
                                                                                              +   * association, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Immutable. The endpoint group that this association is connected to, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringEndpointGroup. + */ + java.lang.String getMirroringEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Immutable. The endpoint group that this association is connected to, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_endpoint_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringEndpointGroup. + */ + com.google.protobuf.ByteString getMirroringEndpointGroupBytes(); + + /** + * + * + *
                                                                                              +   * Immutable. The VPC network that is associated. for example:
                                                                                              +   * `projects/123456789/global/networks/my-network`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
                                                                                              +   * Immutable. The VPC network that is associated. for example:
                                                                                              +   * `projects/123456789/global/networks/my-network`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string network = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails> + getLocationsDetailsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails + getLocationsDetails(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + int getLocationsDetailsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .LocationDetailsOrBuilder> + getLocationsDetailsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is present. This
                                                                                              +   * information is retrieved from the linked endpoint group, and not configured
                                                                                              +   * as part of the association itself.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetails locations_details = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.LocationDetailsOrBuilder + getLocationsDetailsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint group association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. Current state of the endpoint group association.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This part of
                                                                                              +   * the normal operation (e.g. adding a new location to the target deployment
                                                                                              +   * group). See https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getLocationsList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringLocation getLocations(int index); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getLocationsCount(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getLocationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. The list of locations where the association is configured.
                                                                                              +   * This information is retrieved from the linked endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringLocation locations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder getLocationsOrBuilder(int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupName.java new file mode 100644 index 000000000000..1cb0d83e1d38 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MirroringEndpointGroupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MIRRORING_ENDPOINT_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String mirroringEndpointGroup; + + @Deprecated + protected MirroringEndpointGroupName() { + project = null; + location = null; + mirroringEndpointGroup = null; + } + + private MirroringEndpointGroupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + mirroringEndpointGroup = Preconditions.checkNotNull(builder.getMirroringEndpointGroup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMirroringEndpointGroup() { + return mirroringEndpointGroup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MirroringEndpointGroupName of( + String project, String location, String mirroringEndpointGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMirroringEndpointGroup(mirroringEndpointGroup) + .build(); + } + + public static String format(String project, String location, String mirroringEndpointGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMirroringEndpointGroup(mirroringEndpointGroup) + .build() + .toString(); + } + + public static MirroringEndpointGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MIRRORING_ENDPOINT_GROUP.validatedMatch( + formattedString, + "MirroringEndpointGroupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("mirroring_endpoint_group")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MirroringEndpointGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MIRRORING_ENDPOINT_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (mirroringEndpointGroup != null) { + fieldMapBuilder.put("mirroring_endpoint_group", mirroringEndpointGroup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MIRRORING_ENDPOINT_GROUP.instantiate( + "project", + project, + "location", + location, + "mirroring_endpoint_group", + mirroringEndpointGroup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MirroringEndpointGroupName that = ((MirroringEndpointGroupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.mirroringEndpointGroup, that.mirroringEndpointGroup); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(mirroringEndpointGroup); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}. + */ + public static class Builder { + private String project; + private String location; + private String mirroringEndpointGroup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMirroringEndpointGroup() { + return mirroringEndpointGroup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMirroringEndpointGroup(String mirroringEndpointGroup) { + this.mirroringEndpointGroup = mirroringEndpointGroup; + return this; + } + + private Builder(MirroringEndpointGroupName mirroringEndpointGroupName) { + this.project = mirroringEndpointGroupName.project; + this.location = mirroringEndpointGroupName.location; + this.mirroringEndpointGroup = mirroringEndpointGroupName.mirroringEndpointGroup; + } + + public MirroringEndpointGroupName build() { + return new MirroringEndpointGroupName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupOrBuilder.java new file mode 100644 index 000000000000..17cc3f151033 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupOrBuilder.java @@ -0,0 +1,512 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface MirroringEndpointGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringEndpointGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. The resource name of this endpoint group, for
                                                                                              +   * example:
                                                                                              +   * `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`.
                                                                                              +   * See https://google.aip.dev/122 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was most recently updated.
                                                                                              +   * See https://google.aip.dev/148#timestamps.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels are key/value pairs that help to organize and filter
                                                                                              +   * resources.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +   * connected to, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The mirroringDeploymentGroup. + */ + java.lang.String getMirroringDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Immutable. The deployment group that this DIRECT endpoint group is
                                                                                              +   * connected to, for example:
                                                                                              +   * `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.
                                                                                              +   * See https://google.aip.dev/124.
                                                                                              +   * 
                                                                                              + * + * + * string mirroring_deployment_group = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mirroringDeploymentGroup. + */ + com.google.protobuf.ByteString getMirroringDeploymentGroupBytes(); + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup> + getConnectedDeploymentGroupsList(); + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup + getConnectedDeploymentGroups(int index); + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectedDeploymentGroupsCount(); + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .ConnectedDeploymentGroupOrBuilder> + getConnectedDeploymentGroupsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. List of details about the connected deployment groups to this
                                                                                              +   * endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup connected_deployment_groups = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroupOrBuilder + getConnectedDeploymentGroupsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the endpoint group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the endpoint group.
                                                                                              +   * See https://google.aip.dev/216.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.State getState(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the resource does not match the user's
                                                                                              +   * intended state, and the system is working to reconcile them. This is part
                                                                                              +   * of the normal operation (e.g. adding a new association to the group). See
                                                                                              +   * https://google.aip.dev/128.
                                                                                              +   * 
                                                                                              + * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
                                                                                              +   * Immutable. The type of the endpoint group.
                                                                                              +   * If left unspecified, defaults to DIRECT.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
                                                                                              +   * Immutable. The type of the endpoint group.
                                                                                              +   * If left unspecified, defaults to DIRECT.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Type getType(); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAssociationsList(); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails getAssociations( + int index); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAssociationsCount(); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .AssociationDetailsOrBuilder> + getAssociationsOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Output only. List of associations to this endpoint group.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetails associations = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.AssociationDetailsOrBuilder + getAssociationsOrBuilder(int index); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the endpoint group.
                                                                                              +   * Used as additional context for the endpoint group.
                                                                                              +   * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. User-provided description of the endpoint group.
                                                                                              +   * Used as additional context for the endpoint group.
                                                                                              +   * 
                                                                                              + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringLocation.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringLocation.java new file mode 100644 index 000000000000..ff38f863eb5d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringLocation.java @@ -0,0 +1,951 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Details about mirroring in a specific cloud location.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringLocation} + */ +@com.google.protobuf.Generated +public final class MirroringLocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.MirroringLocation) + MirroringLocationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MirroringLocation"); + } + + // Use MirroringLocation.newBuilder() to construct. + private MirroringLocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MirroringLocation() { + location_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringLocation.class, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The current state of a resource in the location.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.MirroringLocation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The resource is ready and in sync in the location.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
                                                                                              +     * The resource is out of sync in the location.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 2; + */ + OUT_OF_SYNC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
                                                                                              +     * State not set (this is not a valid state).
                                                                                              +     * 
                                                                                              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The resource is ready and in sync in the location.
                                                                                              +     * 
                                                                                              + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The resource is out of sync in the location.
                                                                                              +     * In most cases, this is a result of a transient issue within the system
                                                                                              +     * (e.g. an inaccessible location) and the system is expected to recover
                                                                                              +     * automatically.
                                                                                              +     * 
                                                                                              + * + * OUT_OF_SYNC = 2; + */ + public static final int OUT_OF_SYNC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return OUT_OF_SYNC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringLocation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.MirroringLocation.State) + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
                                                                                              +   * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +   * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +   * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. The current state of the association in this location.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +   * Output only. The current state of the association in this location.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocation.State getState() { + com.google.cloud.networksecurity.v1.MirroringLocation.State result = + com.google.cloud.networksecurity.v1.MirroringLocation.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringLocation.State.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringLocation.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (state_ + != com.google.cloud.networksecurity.v1.MirroringLocation.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.networksecurity.v1.MirroringLocation)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.MirroringLocation other = + (com.google.cloud.networksecurity.v1.MirroringLocation) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (state_ != other.state_) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation 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.networksecurity.v1.MirroringLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation 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.networksecurity.v1.MirroringLocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.MirroringLocation 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Details about mirroring in a specific cloud location.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.MirroringLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.MirroringLocation) + com.google.cloud.networksecurity.v1.MirroringLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.MirroringLocation.class, + com.google.cloud.networksecurity.v1.MirroringLocation.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.MirroringLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_MirroringLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocation getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.MirroringLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocation build() { + com.google.cloud.networksecurity.v1.MirroringLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocation buildPartial() { + com.google.cloud.networksecurity.v1.MirroringLocation result = + new com.google.cloud.networksecurity.v1.MirroringLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.MirroringLocation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.MirroringLocation) { + return mergeFrom((com.google.cloud.networksecurity.v1.MirroringLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.MirroringLocation other) { + if (other == com.google.cloud.networksecurity.v1.MirroringLocation.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 location_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +     * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringLocation.State getState() { + com.google.cloud.networksecurity.v1.MirroringLocation.State result = + com.google.cloud.networksecurity.v1.MirroringLocation.State.forNumber(state_); + return result == null + ? com.google.cloud.networksecurity.v1.MirroringLocation.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networksecurity.v1.MirroringLocation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The current state of the association in this location.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.MirroringLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.MirroringLocation) + private static final com.google.cloud.networksecurity.v1.MirroringLocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.MirroringLocation(); + } + + public static com.google.cloud.networksecurity.v1.MirroringLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MirroringLocation 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.networksecurity.v1.MirroringLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringLocationOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringLocationOrBuilder.java new file mode 100644 index 000000000000..4db28d932c2b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringLocationOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface MirroringLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.MirroringLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +   * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
                                                                                              +   * Output only. The cloud location, e.g. "us-central1-a" or "asia-south1".
                                                                                              +   * 
                                                                                              + * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the association in this location.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
                                                                                              +   * Output only. The current state of the association in this location.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringLocation.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networksecurity.v1.MirroringLocation.State getState(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringProto.java new file mode 100644 index 000000000000..8eb5d04570f2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringProto.java @@ -0,0 +1,1027 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class MirroringProto extends com.google.protobuf.GeneratedFile { + private MirroringProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MirroringProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_MirroringLocation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_MirroringLocation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "/google/cloud/networksecurity/v1/mirroring.proto\022\037google.cloud.networksecurity." + + "v1\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\033google/api/field_info.proto\032" + + "\031google/api/resource.proto\032,google/cloud" + + "/networksecurity/v1/common.proto\032#google" + + "/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\356\014\n" + + "\026MirroringEndpointGroup\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022X\n" + + "\006labels\030\004 \003(\0132C.google.cloud.networ" + + "ksecurity.v1.MirroringEndpointGroup.LabelsEntryB\003\340A\001\022c\n" + + "\032mirroring_deployment_group\030\005 \001(\tB?\340A\005\372A9\n" + + "7networksecurity.googleapis.com/MirroringDeploymentGroup\022z\n" + + "\033connected_deployment_groups\030\r" + + " \003(\0132P.google." + + "cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroupB\003\340A\003\022Q\n" + + "\005state\030\007 \001(\0162=.google.cloud.networksecur" + + "ity.v1.MirroringEndpointGroup.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\010 \001(\010B\003\340A\003\022O\n" + + "\004type\030\013 \001(\016" + + "2<.google.cloud.networksecurity.v1.MirroringEndpointGroup.TypeB\003\340A\005\022e\n" + + "\014associations\030\t \003(\0132J.google.cloud.networksecurity" + + ".v1.MirroringEndpointGroup.AssociationDetailsB\003\340A\003\022\030\n" + + "\013description\030\n" + + " \001(\tB\003\340A\001\032\265\001\n" + + "\030ConnectedDeploymentGroup\022M\n" + + "\004name\030\001 \001(\tB?\340A\003\372A9\n" + + "7networksecurity.googleapis.com/MirroringDeploymentGroup\022J\n" + + "\tlocations\030\002 " + + "\003(\01322.google.cloud.networksecurity.v1.MirroringLocationB\003\340A\003\032\203\002\n" + + "\022AssociationDetails\022V\n" + + "\004name\030\001 \001(\tBH\340A\003\372AB\n" + + "@networksecurity.googleapis.com/MirroringEndpointGroupAssociation\0227\n" + + "\007network\030\002 \001(\tB&\340A\003\372A \n" + + "\036compute.googleapis.com/Network\022\\\n" + + "\005state\030\003 \001(\0162H.google.cloud.networksecurity.v1.Mi" + + "rroringEndpointGroupAssociation.StateB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"v\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\n\n" + + "\006CLOSED\020\002\022\014\n" + + "\010CREATING\020\003\022\014\n" + + "\010DELETING\020\004\022\017\n" + + "\013OUT_OF_SYNC\020\005\022\021\n\r" + + "DELETE_FAILED\020\006\"(\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006DIRECT\020\001:\310\001\352A\304\001\n" + + "5networksecurity.googleapis.com/MirroringEndpointGroup\022Zproje" + + "cts/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_g" + + "roup}*\027mirroringEndpointGroups2\026mirroringEndpointGroup\"\320\001\n" + + "\"ListMirroringEndpointGroupsRequest\022M\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225n" + + "etworksecurity.googleapis.com/MirroringEndpointGroup\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\232\001\n" + + "#ListMirroringEndpointGroupsResponse\022Z\n" + + "\031mirroring_endpoint_groups\030\001" + + " \003(\01327.google.cloud.networksecurity.v1.MirroringEndpointGroup\022\027\n" + + "\017next_page_token\030\002 \001(\t\"o\n" + + " GetMirroringEndpointGroupRequest\022K\n" + + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + + "5networksecurity.googleapis.com/MirroringEndpointGroup\"\237\002\n" + + "#CreateMirroringEndpointGroupRequest\022M\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\022" + + "5networksecurity.googleapis.com/MirroringEndpointGroup\022(\n" + + "\033mirroring_endpoint_group_id\030\002 \001(\tB\003\340A\002\022^\n" + + "\030mirroring_endpoint_group\030\003" + + " \001(\01327.google.cloud.networksecurity.v1.MirroringEndpointGroupB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\334\001\n" + + "#UpdateMirroringEndpointGroupRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022^\n" + + "\030mirroring_endpoint_group\030\002 \001(\01327.goog" + + "le.cloud.networksecurity.v1.MirroringEndpointGroupB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\223\001\n" + + "#DeleteMirroringEndpointGroupRequest\022K\n" + + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + + "5networksecurity.googleapis.com/MirroringEndpointGroup\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\336\n\n" + + "!MirroringEndpointGroupAssociation\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022c\n" + + "\006labels\030\004 \003(\0132N.google.cloud.ne" + + "tworksecurity.v1.MirroringEndpointGroupAssociation.LabelsEntryB\003\340A\001\022_\n" + + "\030mirroring_endpoint_group\030\005 \001(\tB=\340A\005\372A7\n" + + "5networksecurity.googleapis.com/MirroringEndpointGroup\0227\n" + + "\007network\030\006 \001(\tB&\340A\005\372A \n" + + "\036compute.googleapis.com/Network\022t\n" + + "\021locations_details\030\007 \003(\0132R.google.cloud.networksecurity." + + "v1.MirroringEndpointGroupAssociation.LocationDetailsB\005\030\001\340A\003\022\\\n" + + "\005state\030\010 \001(\0162H.goo" + + "gle.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\t \001(\010B\003\340A\003\022J\n" + + "\tlocations\030\n" + + " \003(\01322" + + ".google.cloud.networksecurity.v1.MirroringLocationB\003\340A\003\032\323\001\n" + + "\017LocationDetails\022\025\n" + + "\010location\030\001 \001(\tB\003\340A\003\022l\n" + + "\005state\030\002 \001(\0162X.google.cloud.networksecurity.v1.MirroringEnd" + + "pointGroupAssociation.LocationDetails.StateB\003\340A\003\";\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\017\n" + + "\013OUT_OF_SYNC\020\002\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"v\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\003\022\014\n" + + "\010DELETING\020\004\022\n\n" + + "\006CLOSED\020\005\022\017\n" + + "\013OUT_OF_SYNC\020\006\022\021\n\r" + + "DELETE_FAILED\020\007:\200\002\352A\374\001\n" + + "@networksecurity.googleapis.com/MirroringEndpointGroupAssociation\022qprojects/" + + "{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_end" + + "point_group_association}*\"mirroringEndpo" + + "intGroupAssociations2!mirroringEndpointGroupAssociation\"\346\001\n" + + "-ListMirroringEndpointGroupAssociationsRequest\022X\n" + + "\006parent\030\001 \001(" + + "\tBH\340A\002\372AB\022@networksecurity.googleapis.com/MirroringEndpointGroupAssociation\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\274\001\n" + + ".ListMirroringEndpointGroupAssociationsResponse\022q\n" + + "%mirroring_endpoint_group_associations\030\001 \003(\0132B.google.clou" + + "d.networksecurity.v1.MirroringEndpointGroupAssociation\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\205\001\n" + + "+GetMirroringEndpointGroupAssociationRequest\022V\n" + + "\004name\030\001 \001(\tBH\340A\002\372AB\n" + + "@networksecurity.googleapis.com/MirroringEndpointGroupAssociation\"\330\002\n" + + ".CreateMirroringEndpointGroupAssociationRequest\022X\n" + + "\006parent\030\001 \001(" + + "\tBH\340A\002\372AB\022@networksecurity.googleapis.com/MirroringEndpointGroupAssociation\0224\n" + + "\'mirroring_endpoint_group_association_id\030\002 \001(\tB\003\340A\001\022u\n" + + "$mirroring_endpoint_group_association\030\003 \001(\0132B.google.cloud.networks" + + "ecurity.v1.MirroringEndpointGroupAssociationB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\376\001\n" + + ".UpdateMirroringEndpointGroupAssociationRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022u\n" + + "$mirroring_endpoint_group_association\030\002 \001(\0132B.goog" + + "le.cloud.networksecurity.v1.MirroringEndpointGroupAssociationB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\251\001\n" + + ".DeleteMirroringEndpointGroupAssociationRequest\022V\n" + + "\004name\030\001 \001(\tBH\340A\002\372AB\n" + + "@networksecurity.googleapis.com/MirroringEndpointGroupAssociation\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\324\n\n" + + "\030MirroringDeploymentGroup\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Z\n" + + "\006labels\030\004 \003(\0132E.google.cloud.networksecurity.v1" + + ".MirroringDeploymentGroup.LabelsEntryB\003\340A\001\022:\n" + + "\007network\030\005 \001(\tB)\340A\002\340A\005\372A \n" + + "\036compute.googleapis.com/Network\022x\n" + + "\031connected_endpoint_groups\030\006 \003(\0132P.google.cloud.network" + + "security.v1.MirroringDeploymentGroup.ConnectedEndpointGroupB\003\340A\003\022g\n" + + "\022nested_deployments\030\n" + + " \003(\0132D.google.cloud.networksecur" + + "ity.v1.MirroringDeploymentGroup.DeploymentB\005\030\001\340A\003\022S\n" + + "\005state\030\007 \001(\0162?.google.cloud." + + "networksecurity.v1.MirroringDeploymentGroup.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\010 \001(\010B\003\340A\003\022\030\n" + + "\013description\030\t \001(\tB\003\340A\001\022J\n" + + "\tlocations\030\013" + + " \003(\01322.google.cloud.networksecurity.v1.MirroringLocationB\003\340A\003\032e\n" + + "\026ConnectedEndpointGroup\022K\n" + + "\004name\030\001 \001(\tB=\340A\003\372A7\n" + + "5networksecurity.googleapis.com/MirroringEndpointGroup\032\246\001\n\n" + + "Deployment\022H\n" + + "\004name\030\001 \001(\tB:\340A\003\372A4\n" + + "2networksecurity.googleapis.com/MirroringDeployment\022N\n" + + "\005state\030\002 \001(\0162:.google.c" + + "loud.networksecurity.v1.MirroringDeployment.StateB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"R\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\002\022\014\n" + + "\010DELETING\020\003\022\n\n" + + "\006CLOSED\020\004:\322\001\352A\316\001\n" + + "7networksecurity.googleapis.com/MirroringDeploy" + + "mentGroup\022^projects/{project}/locations/{location}/mirroringDeploymentGroups/{mi" + + "rroring_deployment_group}*\031mirroringDepl" + + "oymentGroups2\030mirroringDeploymentGroup\"\324\001\n" + + "$ListMirroringDeploymentGroupsRequest\022O\n" + + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227networksecurity" + + ".googleapis.com/MirroringDeploymentGroup\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\240\001\n" + + "%ListMirroringDeploymentGroupsResponse\022^\n" + + "\033mirroring_deployment_groups\030\001" + + " \003(\01329.google.cloud.networksecurity.v1.MirroringDeploymentGroup\022\027\n" + + "\017next_page_token\030\002 \001(\t\"s\n" + + "\"GetMirroringDeploymentGroupRequest\022M\n" + + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + + "7networksecurity.googleapis.com/MirroringDeploymentGroup\"\251\002\n" + + "%CreateMirroringDeploymentGroupRequest\022O\n" + + "\006parent\030\001 \001(\tB?\340A\002\372A9\022" + + "7networksecurity.googleapis.com/MirroringDeploymentGroup\022*\n" + + "\035mirroring_deployment_group_id\030\002 \001(\tB\003\340A\002\022b\n" + + "\032mirroring_deployment_group\030\003 \001(\01329.google.cloud.networks" + + "ecurity.v1.MirroringDeploymentGroupB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\342\001\n" + + "%UpdateMirroringDeploymentGroupRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022b\n" + + "\032mirroring_deployment_group\030\002" + + " \001(\01329.google.cloud.networksecurity.v1.MirroringDeploymentGroupB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\227\001\n" + + "%DeleteMirroringDeploymentGroupRequest\022M\n" + + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + + "7networksecurity.googleapis.com/MirroringDeploymentGroup\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\373\006\n" + + "\023MirroringDeployment\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\005\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" + + "\006labels\030\004 \003(\0132@.google.clou" + + "d.networksecurity.v1.MirroringDeployment.LabelsEntryB\003\340A\001\022I\n" + + "\017forwarding_rule\030\005 \001(\tB0\340A\002\340A\005\372A\'\n" + + "%compute.googleapis.com/ForwardingRule\022f\n" + + "\032mirroring_deployment_group\030\006 \001(\tBB\340A\002\340A\005\372A9\n" + + "7networksecurity.googleapis.com/MirroringDeploymentGroup\022N\n" + + "\005state\030\007" + + " \001(\0162:.google.cloud.networksecurity.v1.MirroringDeployment.StateB\003\340A\003\022\030\n" + + "\013reconciling\030\010 \001(\010B\003\340A\003\022\030\n" + + "\013description\030\t \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\"j\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\014\n" + + "\010CREATING\020\002\022\014\n" + + "\010DELETING\020\003\022\017\n" + + "\013OUT_OF_SYNC\020\004\022\021\n\r" + + "DELETE_FAILED\020\005:\270\001\352A\264\001\n" + + "2networksecurity.googleapis.com/MirroringDeployment\022Sprojects/{projec" + + "t}/locations/{location}/mirroringDeploym" + + "ents/{mirroring_deployment}*\024mirroringDeployments2\023mirroringDeployment\"\312\001\n" + + "\037ListMirroringDeploymentsRequest\022J\n" + + "\006parent\030\001 \001(" + + "\tB:\340A\002\372A4\0222networksecurity.googleapis.com/MirroringDeployment\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\245\001\n" + + " ListMirroringDeploymentsResponse\022S\n" + + "\025mirroring_deployments\030\001" + + " \003(\01324.google.cloud.networksecurity.v1.MirroringDeployment\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"i\n" + + "\035GetMirroringDeploymentRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + + "2networksecurity.googleapis.com/MirroringDeployment\"\216\002\n" + + " CreateMirroringDeploymentRequest\022J\n" + + "\006parent\030\001 \001(" + + "\tB:\340A\002\372A4\0222networksecurity.googleapis.com/MirroringDeployment\022$\n" + + "\027mirroring_deployment_id\030\002 \001(\tB\003\340A\002\022W\n" + + "\024mirroring_deployment\030\003" + + " \001(\01324.google.cloud.networksecurity.v1.MirroringDeploymentB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\322\001\n" + + " UpdateMirroringDeploymentRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022W\n" + + "\024mirroring_deployment\030\002 \001(\01324.google.cloud." + + "networksecurity.v1.MirroringDeploymentB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\215\001\n" + + " DeleteMirroringDeploymentRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + + "2networksecurity.googleapis.com/MirroringDeployment\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\265\001\n" + + "\021MirroringLocation\022\025\n" + + "\010location\030\001 \001(\tB\003\340A\003\022L\n" + + "\005state\030\002 \001(\016" + + "28.google.cloud.networksecurity.v1.MirroringLocation.StateB\003\340A\003\";\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\017\n" + + "\013OUT_OF_SYNC\020\0022\3561\n" + + "\tMirroring\022\366\001\n" + + "\033ListMirroringEndpointGroups\022C.google.cloud.networksecurit" + + "y.v1.ListMirroringEndpointGroupsRequest\032D.google.cloud.networksecurity.v1.ListMi" + + "rroringEndpointGroupsResponse\"L\332A\006parent" + + "\202\323\344\223\002=\022;/v1/{parent=projects/*/locations/*}/mirroringEndpointGroups\022\343\001\n" + + "\031GetMirroringEndpointGroup\022A.google.cloud.network" + + "security.v1.GetMirroringEndpointGroupRequest\0327.google.cloud.networksecurity.v1.M" + + "irroringEndpointGroup\"J\332A\004name\202\323\344\223\002=\022;/v" + + "1/{name=projects/*/locations/*/mirroringEndpointGroups/*}\022\357\002\n" + + "\034CreateMirroringEndpointGroup\022D.google.cloud.networksecurit" + + "y.v1.CreateMirroringEndpointGroupRequest\032\035.google.longrunning.Operation\"\351\001\312AK\n" + + "\026MirroringEndpointGroup\0221google.cloud.netw" + + "orksecurity.v1.OperationMetadata\332A;parent,mirroring_endpoint_group,mirroring_end" + + "point_group_id\202\323\344\223\002W\";/v1/{parent=projec" + + "ts/*/locations/*}/mirroringEndpointGroups:\030mirroring_endpoint_group\022\361\002\n" + + "\034UpdateMirroringEndpointGroup\022D.google.cloud.netw" + + "orksecurity.v1.UpdateMirroringEndpointGr" + + "oupRequest\032\035.google.longrunning.Operation\"\353\001\312AK\n" + + "\026MirroringEndpointGroup\0221google.cloud.networksecurity.v1.OperationMetada" + + "ta\332A$mirroring_endpoint_group,update_mas" + + "k\202\323\344\223\002p2T/v1/{mirroring_endpoint_group.n" + + "ame=projects/*/locations/*/mirroringEndp" + + "ointGroups/*}:\030mirroring_endpoint_group\022\235\002\n" + + "\034DeleteMirroringEndpointGroup\022D.google.cloud.networksecurity.v1.DeleteMirrori" + + "ngEndpointGroupRequest\032\035.google.longrunning.Operation\"\227\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.networksecurity.v1.Oper" + + "ationMetadata\332A\004name\202\323\344\223\002=*;/v1/{name=pr" + + "ojects/*/locations/*/mirroringEndpointGroups/*}\022\242\002\n" + + "&ListMirroringEndpointGroupAssociations\022N.google.cloud.networksecurit" + + "y.v1.ListMirroringEndpointGroupAssociationsRequest\032O.google.cloud.networksecurit" + + "y.v1.ListMirroringEndpointGroupAssociati" + + "onsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{paren" + + "t=projects/*/locations/*}/mirroringEndpointGroupAssociations\022\217\002\n" + + "$GetMirroringEndpointGroupAssociation\022L.google.cloud.net" + + "worksecurity.v1.GetMirroringEndpointGroupAssociationRequest\032B.google.cloud.netwo" + + "rksecurity.v1.MirroringEndpointGroupAsso" + + "ciation\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=projec" + + "ts/*/locations/*/mirroringEndpointGroupAssociations/*}\022\277\003\n" + + "\'CreateMirroringEndpointGroupAssociation\022O.google.cloud.networ" + + "ksecurity.v1.CreateMirroringEndpointGrou" + + "pAssociationRequest\032\035.google.longrunning.Operation\"\243\002\312AV\n" + + "!MirroringEndpointGroupAssociation\0221google.cloud.networksecurit" + + "y.v1.OperationMetadata\332ASparent,mirroring_endpoint_group_association,mirroring_e" + + "ndpoint_group_association_id\202\323\344\223\002n\"F/v1/" + + "{parent=projects/*/locations/*}/mirrorin" + + "gEndpointGroupAssociations:$mirroring_endpoint_group_association\022\302\003\n" + + "\'UpdateMirroringEndpointGroupAssociation\022O.google.cl" + + "oud.networksecurity.v1.UpdateMirroringEn" + + "dpointGroupAssociationRequest\032\035.google.longrunning.Operation\"\246\002\312AV\n" + + "!MirroringEndpointGroupAssociation\0221google.cloud.netw" + + "orksecurity.v1.OperationMetadata\332A0mirroring_endpoint_group_association,update_m" + + "ask\202\323\344\223\002\223\0012k/v1/{mirroring_endpoint_grou" + + "p_association.name=projects/*/locations/*/mirroringEndpointGroupAssociations/*}:" + + "$mirroring_endpoint_group_association\022\276\002\n" + + "\'DeleteMirroringEndpointGroupAssociation\022O.google.cloud.networksecurity.v1.Dele" + + "teMirroringEndpointGroupAssociationRequest\032\035.google.longrunning.Operation\"\242\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.net" + + "worksecurity.v1.OperationMetadata\332A\004name" + + "\202\323\344\223\002H*F/v1/{name=projects/*/locations/*" + + "/mirroringEndpointGroupAssociations/*}\022\376\001\n" + + "\035ListMirroringDeploymentGroups\022E.google.cloud.networksecurity.v1.ListMirroring" + + "DeploymentGroupsRequest\032F.google.cloud.networksecurity.v1.ListMirroringDeploymen" + + "tGroupsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{p" + + "arent=projects/*/locations/*}/mirroringDeploymentGroups\022\353\001\n" + + "\033GetMirroringDeploymentGroup\022C.google.cloud.networksecurity.v" + + "1.GetMirroringDeploymentGroupRequest\0329.google.cloud.networksecurity.v1.Mirroring" + + "DeploymentGroup\"L\332A\004name\202\323\344\223\002?\022=/v1/{nam" + + "e=projects/*/locations/*/mirroringDeploymentGroups/*}\022\375\002\n" + + "\036CreateMirroringDeploymentGroup\022F.google.cloud.networksecurity." + + "v1.CreateMirroringDeploymentGroupRequest\032\035.google.longrunning.Operation\"\363\001\312AM\n" + + "\030MirroringDeploymentGroup\0221google.cloud.ne" + + "tworksecurity.v1.OperationMetadata\332A?parent,mirroring_deployment_group,mirroring" + + "_deployment_group_id\202\323\344\223\002[\"=/v1/{parent=" + + "projects/*/locations/*}/mirroringDeploym" + + "entGroups:\032mirroring_deployment_group\022\377\002\n" + + "\036UpdateMirroringDeploymentGroup\022F.google.cloud.networksecurity.v1.UpdateMirrori" + + "ngDeploymentGroupRequest\032\035.google.longrunning.Operation\"\365\001\312AM\n" + + "\030MirroringDeploymentGroup\0221google.cloud.networksecurity.v1" + + ".OperationMetadata\332A&mirroring_deploymen" + + "t_group,update_mask\202\323\344\223\002v2X/v1/{mirrorin" + + "g_deployment_group.name=projects/*/locat" + + "ions/*/mirroringDeploymentGroups/*}:\032mirroring_deployment_group\022\243\002\n" + + "\036DeleteMirroringDeploymentGroup\022F.google.cloud.networ" + + "ksecurity.v1.DeleteMirroringDeploymentGr" + + "oupRequest\032\035.google.longrunning.Operation\"\231\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.networksecurity.v1.OperationMetadat" + + "a\332A\004name\202\323\344\223\002?*=/v1/{name=projects/*/loc" + + "ations/*/mirroringDeploymentGroups/*}\022\352\001\n" + + "\030ListMirroringDeployments\022@.google.cloud.networksecurity.v1.ListMirroringDeploy" + + "mentsRequest\032A.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse\"" + + "I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=projects/*/locations/*}/mirroringDeployments\022\327\001\n" + + "\026GetMirroringDeployment\022>.google.cloud.net" + + "worksecurity.v1.GetMirroringDeploymentRequest\0324.google.cloud.networksecurity.v1." + + "MirroringDeployment\"G\332A\004name\202\323\344\223\002:\0228/v1/" + + "{name=projects/*/locations/*/mirroringDeployments/*}\022\327\002\n" + + "\031CreateMirroringDeployme", + "nt\022A.google.cloud.networksecurity.v1.Cre" + + "ateMirroringDeploymentRequest\032\035.google.l" + + "ongrunning.Operation\"\327\001\312AH\n\023MirroringDep" + + "loyment\0221google.cloud.networksecurity.v1" + + ".OperationMetadata\332A3parent,mirroring_de" + + "ployment,mirroring_deployment_id\202\323\344\223\002P\"8" + + "/v1/{parent=projects/*/locations/*}/mirr" + + "oringDeployments:\024mirroring_deployment\022\331" + + "\002\n\031UpdateMirroringDeployment\022A.google.cl" + + "oud.networksecurity.v1.UpdateMirroringDe" + + "ploymentRequest\032\035.google.longrunning.Ope" + + "ration\"\331\001\312AH\n\023MirroringDeployment\0221googl" + + "e.cloud.networksecurity.v1.OperationMeta" + + "data\332A mirroring_deployment,update_mask\202" + + "\323\344\223\002e2M/v1/{mirroring_deployment.name=pr" + + "ojects/*/locations/*/mirroringDeployment" + + "s/*}:\024mirroring_deployment\022\224\002\n\031DeleteMir" + + "roringDeployment\022A.google.cloud.networks" + + "ecurity.v1.DeleteMirroringDeploymentRequ" + + "est\032\035.google.longrunning.Operation\"\224\001\312AJ" + + "\n\025google.protobuf.Empty\0221google.cloud.ne" + + "tworksecurity.v1.OperationMetadata\332A\004nam" + + "e\202\323\344\223\002:*8/v1/{name=projects/*/locations/" + + "*/mirroringDeployments/*}\032R\312A\036networksec" + + "urity.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\326\002\n#com.go" + + "ogle.cloud.networksecurity.v1B\016Mirroring" + + "ProtoP\001ZMcloud.google.com/go/networksecu" + + "rity/apiv1/networksecuritypb;networksecu" + + "ritypb\252\002\037Google.Cloud.NetworkSecurity.V1" + + "\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Goo" + + "gle::Cloud::NetworkSecurity::V1\352Ad\n%comp" + + "ute.googleapis.com/ForwardingRule\022;proje" + + "cts/{project}/global/forwardingRules/{fo" + + "rwarding_rule}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "MirroringDeploymentGroup", + "ConnectedDeploymentGroups", + "State", + "Reconciling", + "Type", + "Associations", + "Description", + }); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_ConnectedDeploymentGroup_descriptor, + new java.lang.String[] { + "Name", "Locations", + }); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_AssociationDetails_descriptor, + new java.lang.String[] { + "Name", "Network", "State", + }); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_descriptor + .getNestedType(2); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupsResponse_descriptor, + new java.lang.String[] { + "MirroringEndpointGroups", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "MirroringEndpointGroupId", "MirroringEndpointGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "MirroringEndpointGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "MirroringEndpointGroup", + "Network", + "LocationsDetails", + "State", + "Reconciling", + "Locations", + }); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LocationDetails_descriptor, + new java.lang.String[] { + "Location", "State", + }); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringEndpointGroupAssociation_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListMirroringEndpointGroupAssociationsResponse_descriptor, + new java.lang.String[] { + "MirroringEndpointGroupAssociations", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetMirroringEndpointGroupAssociationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateMirroringEndpointGroupAssociationRequest_descriptor, + new java.lang.String[] { + "Parent", + "MirroringEndpointGroupAssociationId", + "MirroringEndpointGroupAssociation", + "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "MirroringEndpointGroupAssociation", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteMirroringEndpointGroupAssociationRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Network", + "ConnectedEndpointGroups", + "NestedDeployments", + "State", + "Reconciling", + "Description", + "Locations", + }); + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_ConnectedEndpointGroup_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor + .getNestedType(1); + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_Deployment_descriptor, + new java.lang.String[] { + "Name", "State", + }); + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_descriptor + .getNestedType(2); + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringDeploymentGroup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentGroupsResponse_descriptor, + new java.lang.String[] { + "MirroringDeploymentGroups", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "MirroringDeploymentGroupId", "MirroringDeploymentGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "MirroringDeploymentGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentGroupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "ForwardingRule", + "MirroringDeploymentGroup", + "State", + "Reconciling", + "Description", + }); + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_descriptor + .getNestedType(0); + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringDeployment_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListMirroringDeploymentsResponse_descriptor, + new java.lang.String[] { + "MirroringDeployments", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetMirroringDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateMirroringDeploymentRequest_descriptor, + new java.lang.String[] { + "Parent", "MirroringDeploymentId", "MirroringDeployment", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "MirroringDeployment", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteMirroringDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_MirroringLocation_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_networksecurity_v1_MirroringLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_MirroringLocation_descriptor, + new java.lang.String[] { + "Location", "State", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java index 959665d8afba..a5cf25fec190 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityOuterClass.java @@ -53,122 +53,346 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "curity.v1\032\034google/api/annotations.proto\032" + "\027google/api/client.proto\032:google/cloud/n" + "etworksecurity/v1/authorization_policy.p" - + "roto\0327google/cloud/networksecurity/v1/cl" - + "ient_tls_policy.proto\0327google/cloud/netw" - + "orksecurity/v1/server_tls_policy.proto\032#" - + "google/longrunning/operations.proto2\375 \n\017" - + "NetworkSecurity\022\356\001\n\031ListAuthorizationPol" - + "icies\022A.google.cloud.networksecurity.v1." - + "ListAuthorizationPoliciesRequest\032B.googl" - + "e.cloud.networksecurity.v1.ListAuthoriza" - + "tionPoliciesResponse\"J\332A\006parent\202\323\344\223\002;\0229/" - + "v1/{parent=projects/*/locations/*}/autho" - + "rizationPolicies\022\330\001\n\026GetAuthorizationPol" - + "icy\022>.google.cloud.networksecurity.v1.Ge" - + "tAuthorizationPolicyRequest\0324.google.clo" - + "ud.networksecurity.v1.AuthorizationPolic" - + "y\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects/*/l" - + "ocations/*/authorizationPolicies/*}\022\330\002\n\031" - + "CreateAuthorizationPolicy\022A.google.cloud" - + ".networksecurity.v1.CreateAuthorizationP" - + "olicyRequest\032\035.google.longrunning.Operat" - + "ion\"\330\001\312AH\n\023AuthorizationPolicy\0221google.c" - + "loud.networksecurity.v1.OperationMetadat" - + "a\332A3parent,authorization_policy,authoriz" - + "ation_policy_id\202\323\344\223\002Q\"9/v1/{parent=proje" - + "cts/*/locations/*}/authorizationPolicies" - + ":\024authorization_policy\022\332\002\n\031UpdateAuthori" - + "zationPolicy\022A.google.cloud.networksecur" - + "ity.v1.UpdateAuthorizationPolicyRequest\032" - + "\035.google.longrunning.Operation\"\332\001\312AH\n\023Au" - + "thorizationPolicy\0221google.cloud.networks" - + "ecurity.v1.OperationMetadata\332A authoriza" - + "tion_policy,update_mask\202\323\344\223\002f2N/v1/{auth" - + "orization_policy.name=projects/*/locatio" - + "ns/*/authorizationPolicies/*}:\024authoriza" - + "tion_policy\022\225\002\n\031DeleteAuthorizationPolic" - + "y\022A.google.cloud.networksecurity.v1.Dele" - + "teAuthorizationPolicyRequest\032\035.google.lo" - + "ngrunning.Operation\"\225\001\312AJ\n\025google.protob" - + "uf.Empty\0221google.cloud.networksecurity.v" - + "1.OperationMetadata\332A\004name\202\323\344\223\002;*9/v1/{n" - + "ame=projects/*/locations/*/authorization" - + "Policies/*}\022\336\001\n\025ListServerTlsPolicies\022=." - + "google.cloud.networksecurity.v1.ListServ" - + "erTlsPoliciesRequest\032>.google.cloud.netw" - + "orksecurity.v1.ListServerTlsPoliciesResp" - + "onse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=proje" - + "cts/*/locations/*}/serverTlsPolicies\022\310\001\n" - + "\022GetServerTlsPolicy\022:.google.cloud.netwo" - + "rksecurity.v1.GetServerTlsPolicyRequest\032" - + "0.google.cloud.networksecurity.v1.Server" - + "TlsPolicy\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=proj" - + "ects/*/locations/*/serverTlsPolicies/*}\022" - + "\277\002\n\025CreateServerTlsPolicy\022=.google.cloud" - + ".networksecurity.v1.CreateServerTlsPolic" + + "roto\0322google/cloud/networksecurity/v1/au" + + "thz_policy.proto\032Cgoogle/cloud/networkse" + + "curity/v1/backend_authentication_config." + + "proto\0327google/cloud/networksecurity/v1/c" + + "lient_tls_policy.proto\032,google/cloud/net" + + "worksecurity/v1/common.proto\032=google/clo" + + "ud/networksecurity/v1/gateway_security_p" + + "olicy.proto\032Bgoogle/cloud/networksecurit" + + "y/v1/gateway_security_policy_rule.proto\032" + + "7google/cloud/networksecurity/v1/server_" + + "tls_policy.proto\032;google/cloud/networkse" + + "curity/v1/tls_inspection_policy.proto\032.g" + + "oogle/cloud/networksecurity/v1/url_list." + + "proto\032#google/longrunning/operations.pro" + + "to\032\033google/protobuf/empty.proto2\341c\n\017Netw" + + "orkSecurity\022\356\001\n\031ListAuthorizationPolicie" + + "s\022A.google.cloud.networksecurity.v1.List" + + "AuthorizationPoliciesRequest\032B.google.cl" + + "oud.networksecurity.v1.ListAuthorization" + + "PoliciesResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{" + + "parent=projects/*/locations/*}/authoriza" + + "tionPolicies\022\330\001\n\026GetAuthorizationPolicy\022" + + ">.google.cloud.networksecurity.v1.GetAut" + + "horizationPolicyRequest\0324.google.cloud.n" + + "etworksecurity.v1.AuthorizationPolicy\"H\332" + + "A\004name\202\323\344\223\002;\0229/v1/{name=projects/*/locat" + + "ions/*/authorizationPolicies/*}\022\330\002\n\031Crea" + + "teAuthorizationPolicy\022A.google.cloud.net" + + "worksecurity.v1.CreateAuthorizationPolic" + "yRequest\032\035.google.longrunning.Operation\"" - + "\307\001\312AD\n\017ServerTlsPolicy\0221google.cloud.net" - + "worksecurity.v1.OperationMetadata\332A-pare" - + "nt,server_tls_policy,server_tls_policy_i" - + "d\202\323\344\223\002J\"5/v1/{parent=projects/*/location" - + "s/*}/serverTlsPolicies:\021server_tls_polic" - + "y\022\301\002\n\025UpdateServerTlsPolicy\022=.google.clo" - + "ud.networksecurity.v1.UpdateServerTlsPol" - + "icyRequest\032\035.google.longrunning.Operatio" - + "n\"\311\001\312AD\n\017ServerTlsPolicy\0221google.cloud.n" - + "etworksecurity.v1.OperationMetadata\332A\035se" - + "rver_tls_policy,update_mask\202\323\344\223\002\\2G/v1/{" - + "server_tls_policy.name=projects/*/locati" - + "ons/*/serverTlsPolicies/*}:\021server_tls_p" - + "olicy\022\211\002\n\025DeleteServerTlsPolicy\022=.google" - + ".cloud.networksecurity.v1.DeleteServerTl" - + "sPolicyRequest\032\035.google.longrunning.Oper" - + "ation\"\221\001\312AJ\n\025google.protobuf.Empty\0221goog" + + "\330\001\312AH\n\023AuthorizationPolicy\0221google.cloud" + + ".networksecurity.v1.OperationMetadata\332A3" + + "parent,authorization_policy,authorizatio" + + "n_policy_id\202\323\344\223\002Q\"9/v1/{parent=projects/" + + "*/locations/*}/authorizationPolicies:\024au" + + "thorization_policy\022\332\002\n\031UpdateAuthorizati" + + "onPolicy\022A.google.cloud.networksecurity." + + "v1.UpdateAuthorizationPolicyRequest\032\035.go" + + "ogle.longrunning.Operation\"\332\001\312AH\n\023Author" + + "izationPolicy\0221google.cloud.networksecur" + + "ity.v1.OperationMetadata\332A authorization" + + "_policy,update_mask\202\323\344\223\002f2N/v1/{authoriz" + + "ation_policy.name=projects/*/locations/*" + + "/authorizationPolicies/*}:\024authorization" + + "_policy\022\225\002\n\031DeleteAuthorizationPolicy\022A." + + "google.cloud.networksecurity.v1.DeleteAu" + + "thorizationPolicyRequest\032\035.google.longru" + + "nning.Operation\"\225\001\312AJ\n\025google.protobuf.E" + + "mpty\0221google.cloud.networksecurity.v1.Op" + + "erationMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=" + + "projects/*/locations/*/authorizationPoli" + + "cies/*}\022\212\002\n ListBackendAuthenticationCon" + + "figs\022H.google.cloud.networksecurity.v1.L" + + "istBackendAuthenticationConfigsRequest\032I" + + ".google.cloud.networksecurity.v1.ListBac" + + "kendAuthenticationConfigsResponse\"Q\332A\006pa" + + "rent\202\323\344\223\002B\022@/v1/{parent=projects/*/locat" + + "ions/*}/backendAuthenticationConfigs\022\367\001\n" + + "\036GetBackendAuthenticationConfig\022F.google" + + ".cloud.networksecurity.v1.GetBackendAuth" + + "enticationConfigRequest\032<.google.cloud.n" + + "etworksecurity.v1.BackendAuthenticationC" + + "onfig\"O\332A\004name\202\323\344\223\002B\022@/v1/{name=projects" + + "/*/locations/*/backendAuthenticationConf" + + "igs/*}\022\222\003\n!CreateBackendAuthenticationCo" + + "nfig\022I.google.cloud.networksecurity.v1.C" + + "reateBackendAuthenticationConfigRequest\032" + + "\035.google.longrunning.Operation\"\202\002\312AP\n\033Ba" + + "ckendAuthenticationConfig\0221google.cloud." + + "networksecurity.v1.OperationMetadata\332AEp" + + "arent,backend_authentication_config,back" + + "end_authentication_config_id\202\323\344\223\002a\"@/v1/" + + "{parent=projects/*/locations/*}/backendA" + + "uthenticationConfigs:\035backend_authentica" + + "tion_config\022\224\003\n!UpdateBackendAuthenticat" + + "ionConfig\022I.google.cloud.networksecurity" + + ".v1.UpdateBackendAuthenticationConfigReq" + + "uest\032\035.google.longrunning.Operation\"\204\002\312A" + + "P\n\033BackendAuthenticationConfig\0221google.c" + + "loud.networksecurity.v1.OperationMetadat" + + "a\332A)backend_authentication_config,update" + + "_mask\202\323\344\223\002\1772^/v1/{backend_authentication" + + "_config.name=projects/*/locations/*/back" + + "endAuthenticationConfigs/*}:\035backend_aut" + + "hentication_config\022\254\002\n!DeleteBackendAuth" + + "enticationConfig\022I.google.cloud.networks" + + "ecurity.v1.DeleteBackendAuthenticationCo" + + "nfigRequest\032\035.google.longrunning.Operati" + + "on\"\234\001\312AJ\n\025google.protobuf.Empty\0221google." + + "cloud.networksecurity.v1.OperationMetada" + + "ta\332A\004name\202\323\344\223\002B*@/v1/{name=projects/*/lo" + + "cations/*/backendAuthenticationConfigs/*" + + "}\022\336\001\n\025ListServerTlsPolicies\022=.google.clo" + + "ud.networksecurity.v1.ListServerTlsPolic" + + "iesRequest\032>.google.cloud.networksecurit" + + "y.v1.ListServerTlsPoliciesResponse\"F\332A\006p" + + "arent\202\323\344\223\0027\0225/v1/{parent=projects/*/loca" + + "tions/*}/serverTlsPolicies\022\310\001\n\022GetServer" + + "TlsPolicy\022:.google.cloud.networksecurity" + + ".v1.GetServerTlsPolicyRequest\0320.google.c" + + "loud.networksecurity.v1.ServerTlsPolicy\"" + + "D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/loc" + + "ations/*/serverTlsPolicies/*}\022\277\002\n\025Create" + + "ServerTlsPolicy\022=.google.cloud.networkse" + + "curity.v1.CreateServerTlsPolicyRequest\032\035" + + ".google.longrunning.Operation\"\307\001\312AD\n\017Ser" + + "verTlsPolicy\0221google.cloud.networksecuri" + + "ty.v1.OperationMetadata\332A-parent,server_" + + "tls_policy,server_tls_policy_id\202\323\344\223\002J\"5/" + + "v1/{parent=projects/*/locations/*}/serve" + + "rTlsPolicies:\021server_tls_policy\022\301\002\n\025Upda" + + "teServerTlsPolicy\022=.google.cloud.network" + + "security.v1.UpdateServerTlsPolicyRequest" + + "\032\035.google.longrunning.Operation\"\311\001\312AD\n\017S" + + "erverTlsPolicy\0221google.cloud.networksecu" + + "rity.v1.OperationMetadata\332A\035server_tls_p" + + "olicy,update_mask\202\323\344\223\002\\2G/v1/{server_tls" + + "_policy.name=projects/*/locations/*/serv" + + "erTlsPolicies/*}:\021server_tls_policy\022\211\002\n\025" + + "DeleteServerTlsPolicy\022=.google.cloud.net" + + "worksecurity.v1.DeleteServerTlsPolicyReq" + + "uest\032\035.google.longrunning.Operation\"\221\001\312A" + + "J\n\025google.protobuf.Empty\0221google.cloud.n" + + "etworksecurity.v1.OperationMetadata\332A\004na" + + "me\202\323\344\223\0027*5/v1/{name=projects/*/locations" + + "/*/serverTlsPolicies/*}\022\336\001\n\025ListClientTl" + + "sPolicies\022=.google.cloud.networksecurity" + + ".v1.ListClientTlsPoliciesRequest\032>.googl" + + "e.cloud.networksecurity.v1.ListClientTls" + + "PoliciesResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{" + + "parent=projects/*/locations/*}/clientTls" + + "Policies\022\310\001\n\022GetClientTlsPolicy\022:.google" + + ".cloud.networksecurity.v1.GetClientTlsPo" + + "licyRequest\0320.google.cloud.networksecuri" + + "ty.v1.ClientTlsPolicy\"D\332A\004name\202\323\344\223\0027\0225/v" + + "1/{name=projects/*/locations/*/clientTls" + + "Policies/*}\022\277\002\n\025CreateClientTlsPolicy\022=." + + "google.cloud.networksecurity.v1.CreateCl" + + "ientTlsPolicyRequest\032\035.google.longrunnin" + + "g.Operation\"\307\001\312AD\n\017ClientTlsPolicy\0221goog" + "le.cloud.networksecurity.v1.OperationMet" - + "adata\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*" - + "/locations/*/serverTlsPolicies/*}\022\336\001\n\025Li" - + "stClientTlsPolicies\022=.google.cloud.netwo" - + "rksecurity.v1.ListClientTlsPoliciesReque" - + "st\032>.google.cloud.networksecurity.v1.Lis" - + "tClientTlsPoliciesResponse\"F\332A\006parent\202\323\344" - + "\223\0027\0225/v1/{parent=projects/*/locations/*}" - + "/clientTlsPolicies\022\310\001\n\022GetClientTlsPolic" - + "y\022:.google.cloud.networksecurity.v1.GetC" - + "lientTlsPolicyRequest\0320.google.cloud.net" - + "worksecurity.v1.ClientTlsPolicy\"D\332A\004name" - + "\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*" - + "/clientTlsPolicies/*}\022\277\002\n\025CreateClientTl" - + "sPolicy\022=.google.cloud.networksecurity.v" - + "1.CreateClientTlsPolicyRequest\032\035.google." - + "longrunning.Operation\"\307\001\312AD\n\017ClientTlsPo" - + "licy\0221google.cloud.networksecurity.v1.Op" - + "erationMetadata\332A-parent,client_tls_poli" - + "cy,client_tls_policy_id\202\323\344\223\002J\"5/v1/{pare" - + "nt=projects/*/locations/*}/clientTlsPoli" - + "cies:\021client_tls_policy\022\301\002\n\025UpdateClient" - + "TlsPolicy\022=.google.cloud.networksecurity" - + ".v1.UpdateClientTlsPolicyRequest\032\035.googl" - + "e.longrunning.Operation\"\311\001\312AD\n\017ClientTls" + + "adata\332A-parent,client_tls_policy,client_" + + "tls_policy_id\202\323\344\223\002J\"5/v1/{parent=project" + + "s/*/locations/*}/clientTlsPolicies:\021clie" + + "nt_tls_policy\022\301\002\n\025UpdateClientTlsPolicy\022" + + "=.google.cloud.networksecurity.v1.Update" + + "ClientTlsPolicyRequest\032\035.google.longrunn" + + "ing.Operation\"\311\001\312AD\n\017ClientTlsPolicy\0221go" + + "ogle.cloud.networksecurity.v1.OperationM" + + "etadata\332A\035client_tls_policy,update_mask\202" + + "\323\344\223\002\\2G/v1/{client_tls_policy.name=proje" + + "cts/*/locations/*/clientTlsPolicies/*}:\021" + + "client_tls_policy\022\211\002\n\025DeleteClientTlsPol" + + "icy\022=.google.cloud.networksecurity.v1.De" + + "leteClientTlsPolicyRequest\032\035.google.long" + + "running.Operation\"\221\001\312AJ\n\025google.protobuf" + + ".Empty\0221google.cloud.networksecurity.v1." + + "OperationMetadata\332A\004name\202\323\344\223\0027*5/v1/{nam" + + "e=projects/*/locations/*/clientTlsPolici" + + "es/*}\022\366\001\n\033ListGatewaySecurityPolicies\022C." + + "google.cloud.networksecurity.v1.ListGate" + + "waySecurityPoliciesRequest\032D.google.clou" + + "d.networksecurity.v1.ListGatewaySecurity" + + "PoliciesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{" + + "parent=projects/*/locations/*}/gatewaySe" + + "curityPolicies\022\340\001\n\030GetGatewaySecurityPol" + + "icy\022@.google.cloud.networksecurity.v1.Ge" + + "tGatewaySecurityPolicyRequest\0326.google.c" + + "loud.networksecurity.v1.GatewaySecurityP" + + "olicy\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects" + + "/*/locations/*/gatewaySecurityPolicies/*" + + "}\022\351\002\n\033CreateGatewaySecurityPolicy\022C.goog" + + "le.cloud.networksecurity.v1.CreateGatewa" + + "ySecurityPolicyRequest\032\035.google.longrunn" + + "ing.Operation\"\345\001\312AJ\n\025GatewaySecurityPoli" + + "cy\0221google.cloud.networksecurity.v1.Oper" + + "ationMetadata\332A9parent,gateway_security_" + + "policy,gateway_security_policy_id\202\323\344\223\002V\"" + + ";/v1/{parent=projects/*/locations/*}/gat" + + "ewaySecurityPolicies:\027gateway_security_p" + + "olicy\022\353\002\n\033UpdateGatewaySecurityPolicy\022C." + + "google.cloud.networksecurity.v1.UpdateGa" + + "tewaySecurityPolicyRequest\032\035.google.long" + + "running.Operation\"\347\001\312AJ\n\025GatewaySecurity" + + "Policy\0221google.cloud.networksecurity.v1." + + "OperationMetadata\332A#gateway_security_pol" + + "icy,update_mask\202\323\344\223\002n2S/v1/{gateway_secu" + + "rity_policy.name=projects/*/locations/*/" + + "gatewaySecurityPolicies/*}:\027gateway_secu" + + "rity_policy\022\233\002\n\033DeleteGatewaySecurityPol" + + "icy\022C.google.cloud.networksecurity.v1.De" + + "leteGatewaySecurityPolicyRequest\032\035.googl" + + "e.longrunning.Operation\"\227\001\312AJ\n\025google.pr" + + "otobuf.Empty\0221google.cloud.networksecuri" + + "ty.v1.OperationMetadata\332A\004name\202\323\344\223\002=*;/v" + + "1/{name=projects/*/locations/*/gatewaySe" + + "curityPolicies/*}\022\207\002\n\036ListGatewaySecurit" + + "yPolicyRules\022F.google.cloud.networksecur" + + "ity.v1.ListGatewaySecurityPolicyRulesReq" + + "uest\032G.google.cloud.networksecurity.v1.L" + + "istGatewaySecurityPolicyRulesResponse\"T\332" + + "A\006parent\202\323\344\223\002E\022C/v1/{parent=projects/*/l" + + "ocations/*/gatewaySecurityPolicies/*}/ru" + + "les\022\364\001\n\034GetGatewaySecurityPolicyRule\022D.g" + + "oogle.cloud.networksecurity.v1.GetGatewa" + + "ySecurityPolicyRuleRequest\032:.google.clou" + + "d.networksecurity.v1.GatewaySecurityPoli" + + "cyRule\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=project" + + "s/*/locations/*/gatewaySecurityPolicies/" + + "*/rules/*}\022\214\003\n\037CreateGatewaySecurityPoli" + + "cyRule\022G.google.cloud.networksecurity.v1" + + ".CreateGatewaySecurityPolicyRuleRequest\032" + + "\035.google.longrunning.Operation\"\200\002\312AN\n\031Ga" + + "tewaySecurityPolicyRule\0221google.cloud.ne" + + "tworksecurity.v1.OperationMetadata\332ACpar" + + "ent,gateway_security_policy_rule,gateway" + + "_security_policy_rule_id\202\323\344\223\002c\"C/v1/{par" + + "ent=projects/*/locations/*/gatewaySecuri" + + "tyPolicies/*}/rules:\034gateway_security_po" + + "licy_rule\022\217\003\n\037UpdateGatewaySecurityPolic" + + "yRule\022G.google.cloud.networksecurity.v1." + + "UpdateGatewaySecurityPolicyRuleRequest\032\035" + + ".google.longrunning.Operation\"\203\002\312AN\n\031Gat" + + "ewaySecurityPolicyRule\0221google.cloud.net" + + "worksecurity.v1.OperationMetadata\332A(gate" + + "way_security_policy_rule,update_mask\202\323\344\223" + + "\002\200\0012`/v1/{gateway_security_policy_rule.n" + + "ame=projects/*/locations/*/gatewaySecuri" + + "tyPolicies/*/rules/*}:\034gateway_security_" + + "policy_rule\022\253\002\n\037DeleteGatewaySecurityPol" + + "icyRule\022G.google.cloud.networksecurity.v" + + "1.DeleteGatewaySecurityPolicyRuleRequest" + + "\032\035.google.longrunning.Operation\"\237\001\312AJ\n\025g" + + "oogle.protobuf.Empty\0221google.cloud.netwo" + + "rksecurity.v1.OperationMetadata\332A\004name\202\323" + + "\344\223\002E*C/v1/{name=projects/*/locations/*/g" + + "atewaySecurityPolicies/*/rules/*}\022\272\001\n\014Li" + + "stUrlLists\0224.google.cloud.networksecurit" + + "y.v1.ListUrlListsRequest\0325.google.cloud." + + "networksecurity.v1.ListUrlListsResponse\"" + + "=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*" + + "/locations/*}/urlLists\022\247\001\n\nGetUrlList\0222." + + "google.cloud.networksecurity.v1.GetUrlLi" + + "stRequest\032(.google.cloud.networksecurity" + + ".v1.UrlList\";\332A\004name\202\323\344\223\002.\022,/v1/{name=pr" + + "ojects/*/locations/*/urlLists/*}\022\203\002\n\rCre" + + "ateUrlList\0225.google.cloud.networksecurit" + + "y.v1.CreateUrlListRequest\032\035.google.longr" + + "unning.Operation\"\233\001\312A<\n\007UrlList\0221google." + + "cloud.networksecurity.v1.OperationMetada" + + "ta\332A\033parent,url_list,url_list_id\202\323\344\223\0028\"," + + "/v1/{parent=projects/*/locations/*}/urlL" + + "ists:\010url_list\022\205\002\n\rUpdateUrlList\0225.googl" + + "e.cloud.networksecurity.v1.UpdateUrlList" + + "Request\032\035.google.longrunning.Operation\"\235" + + "\001\312A<\n\007UrlList\0221google.cloud.networksecur" + + "ity.v1.OperationMetadata\332A\024url_list,upda" + + "te_mask\202\323\344\223\002A25/v1/{url_list.name=projec" + + "ts/*/locations/*/urlLists/*}:\010url_list\022\360" + + "\001\n\rDeleteUrlList\0225.google.cloud.networks" + + "ecurity.v1.DeleteUrlListRequest\032\035.google" + + ".longrunning.Operation\"\210\001\312AJ\n\025google.pro" + + "tobuf.Empty\0221google.cloud.networksecurit" + + "y.v1.OperationMetadata\332A\004name\202\323\344\223\002.*,/v1" + + "/{name=projects/*/locations/*/urlLists/*" + + "}\022\356\001\n\031ListTlsInspectionPolicies\022A.google" + + ".cloud.networksecurity.v1.ListTlsInspect" + + "ionPoliciesRequest\032B.google.cloud.networ" + + "ksecurity.v1.ListTlsInspectionPoliciesRe" + + "sponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=pro" + + "jects/*/locations/*}/tlsInspectionPolici" + + "es\022\330\001\n\026GetTlsInspectionPolicy\022>.google.c" + + "loud.networksecurity.v1.GetTlsInspection" + + "PolicyRequest\0324.google.cloud.networksecu" + + "rity.v1.TlsInspectionPolicy\"H\332A\004name\202\323\344\223" + + "\002;\0229/v1/{name=projects/*/locations/*/tls" + + "InspectionPolicies/*}\022\333\002\n\031CreateTlsInspe" + + "ctionPolicy\022A.google.cloud.networksecuri" + + "ty.v1.CreateTlsInspectionPolicyRequest\032\035" + + ".google.longrunning.Operation\"\333\001\312AH\n\023Tls" + + "InspectionPolicy\0221google.cloud.networkse" + + "curity.v1.OperationMetadata\332A5parent,tls" + + "_inspection_policy,tls_inspection_policy" + + "_id\202\323\344\223\002R\"9/v1/{parent=projects/*/locati" + + "ons/*}/tlsInspectionPolicies:\025tls_inspec" + + "tion_policy\022\335\002\n\031UpdateTlsInspectionPolic" + + "y\022A.google.cloud.networksecurity.v1.Upda" + + "teTlsInspectionPolicyRequest\032\035.google.lo" + + "ngrunning.Operation\"\335\001\312AH\n\023TlsInspection" + "Policy\0221google.cloud.networksecurity.v1." - + "OperationMetadata\332A\035client_tls_policy,up" - + "date_mask\202\323\344\223\002\\2G/v1/{client_tls_policy." - + "name=projects/*/locations/*/clientTlsPol" - + "icies/*}:\021client_tls_policy\022\211\002\n\025DeleteCl" - + "ientTlsPolicy\022=.google.cloud.networksecu" - + "rity.v1.DeleteClientTlsPolicyRequest\032\035.g" - + "oogle.longrunning.Operation\"\221\001\312AJ\n\025googl" - + "e.protobuf.Empty\0221google.cloud.networkse" - + "curity.v1.OperationMetadata\332A\004name\202\323\344\223\0027" - + "*5/v1/{name=projects/*/locations/*/clien" - + "tTlsPolicies/*}\032R\312A\036networksecurity.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\337\001\n#com.google.cloud" - + ".networksecurity.v1P\001ZMcloud.google.com/" - + "go/networksecurity/apiv1/networksecurity" - + "pb;networksecuritypb\252\002\037Google.Cloud.Netw" - + "orkSecurity.V1\312\002\037Google\\Cloud\\NetworkSec" - + "urity\\V1\352\002\"Google::Cloud::NetworkSecurit" - + "y::V1b\006proto3" + + "OperationMetadata\332A!tls_inspection_polic" + + "y,update_mask\202\323\344\223\002h2O/v1/{tls_inspection" + + "_policy.name=projects/*/locations/*/tlsI" + + "nspectionPolicies/*}:\025tls_inspection_pol" + + "icy\022\225\002\n\031DeleteTlsInspectionPolicy\022A.goog" + + "le.cloud.networksecurity.v1.DeleteTlsIns" + + "pectionPolicyRequest\032\035.google.longrunnin" + + "g.Operation\"\225\001\312AJ\n\025google.protobuf.Empty" + + "\0221google.cloud.networksecurity.v1.Operat" + + "ionMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=proj" + + "ects/*/locations/*/tlsInspectionPolicies" + + "/*}\022\316\001\n\021ListAuthzPolicies\0229.google.cloud" + + ".networksecurity.v1.ListAuthzPoliciesReq" + + "uest\032:.google.cloud.networksecurity.v1.L" + + "istAuthzPoliciesResponse\"B\332A\006parent\202\323\344\223\002" + + "3\0221/v1/{parent=projects/*/locations/*}/a" + + "uthzPolicies\022\270\001\n\016GetAuthzPolicy\0226.google" + + ".cloud.networksecurity.v1.GetAuthzPolicy" + + "Request\032,.google.cloud.networksecurity.v" + + "1.AuthzPolicy\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=" + + "projects/*/locations/*/authzPolicies/*}\022" + + "\240\002\n\021CreateAuthzPolicy\0229.google.cloud.net" + + "worksecurity.v1.CreateAuthzPolicyRequest" + + "\032\035.google.longrunning.Operation\"\260\001\312A@\n\013A" + + "uthzPolicy\0221google.cloud.networksecurity" + + ".v1.OperationMetadata\332A#parent,authz_pol" + + "icy,authz_policy_id\202\323\344\223\002A\"1/v1/{parent=p" + + "rojects/*/locations/*}/authzPolicies:\014au" + + "thz_policy\022\242\002\n\021UpdateAuthzPolicy\0229.googl" + + "e.cloud.networksecurity.v1.UpdateAuthzPo" + + "licyRequest\032\035.google.longrunning.Operati" + + "on\"\262\001\312A@\n\013AuthzPolicy\0221google.cloud.netw" + + "orksecurity.v1.OperationMetadata\332A\030authz" + + "_policy,update_mask\202\323\344\223\002N2>/v1/{authz_po" + + "licy.name=projects/*/locations/*/authzPo" + + "licies/*}:\014authz_policy\022\375\001\n\021DeleteAuthzP" + + "olicy\0229.google.cloud.networksecurity.v1." + + "DeleteAuthzPolicyRequest\032\035.google.longru" + + "nning.Operation\"\215\001\312AJ\n\025google.protobuf.E" + + "mpty\0221google.cloud.networksecurity.v1.Op" + + "erationMetadata\332A\004name\202\323\344\223\0023*1/v1/{name=" + + "projects/*/locations/*/authzPolicies/*}\032" + + "R\312A\036networksecurity.googleapis.com\322A.htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "ormB\337\001\n#com.google.cloud.networksecurity" + + ".v1P\001ZMcloud.google.com/go/networksecuri" + + "ty/apiv1/networksecuritypb;networksecuri" + + "typb\252\002\037Google.Cloud.NetworkSecurity.V1\312\002" + + "\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Googl" + + "e::Cloud::NetworkSecurity::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -177,17 +401,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1.AuthzPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto.getDescriptor(), com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(), + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto.getDescriptor(), com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto.getDescriptor(), + com.google.cloud.networksecurity.v1.UrlListProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.cloud.networksecurity.v1.AuthorizationPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1.AuthzPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto.getDescriptor(); com.google.cloud.networksecurity.v1.ClientTlsPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(); + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto.getDescriptor(); com.google.cloud.networksecurity.v1.ServerTlsPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto.getDescriptor(); + com.google.cloud.networksecurity.v1.UrlListProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java index a44fd6621a47..6c390302cda2 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadata.java @@ -346,8 +346,9 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
                                                                                                  * Output only. Identifies whether the user has requested cancellation
                                                                                                  * of the operation. Operations that have successfully been cancelled
                                                                                              -   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
                                                                                              -   * corresponding to `Code.CANCELLED`.
                                                                                              +   * have [Operation.error][] value with a
                                                                                              +   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                                                                              +   * `Code.CANCELLED`.
                                                                                                  * 
                                                                                              * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1646,8 +1647,9 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
                                                                                                    * Output only. Identifies whether the user has requested cancellation
                                                                                                    * of the operation. Operations that have successfully been cancelled
                                                                                              -     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
                                                                                              -     * corresponding to `Code.CANCELLED`.
                                                                                              +     * have [Operation.error][] value with a
                                                                                              +     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                                                                              +     * `Code.CANCELLED`.
                                                                                                    * 
                                                                                              * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1665,8 +1667,9 @@ public boolean getRequestedCancellation() { *
                                                                                                    * Output only. Identifies whether the user has requested cancellation
                                                                                                    * of the operation. Operations that have successfully been cancelled
                                                                                              -     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
                                                                                              -     * corresponding to `Code.CANCELLED`.
                                                                                              +     * have [Operation.error][] value with a
                                                                                              +     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                                                                              +     * `Code.CANCELLED`.
                                                                                                    * 
                                                                                              * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1688,8 +1691,9 @@ public Builder setRequestedCancellation(boolean value) { *
                                                                                                    * Output only. Identifies whether the user has requested cancellation
                                                                                                    * of the operation. Operations that have successfully been cancelled
                                                                                              -     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
                                                                                              -     * corresponding to `Code.CANCELLED`.
                                                                                              +     * have [Operation.error][] value with a
                                                                                              +     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                                                                              +     * `Code.CANCELLED`.
                                                                                                    * 
                                                                                              * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java index 2ec5e99165cc..0d15d27379e6 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OperationMetadataOrBuilder.java @@ -190,8 +190,9 @@ public interface OperationMetadataOrBuilder *
                                                                                                  * Output only. Identifies whether the user has requested cancellation
                                                                                                  * of the operation. Operations that have successfully been cancelled
                                                                                              -   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
                                                                                              -   * corresponding to `Code.CANCELLED`.
                                                                                              +   * have [Operation.error][] value with a
                                                                                              +   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
                                                                                              +   * `Code.CANCELLED`.
                                                                                                  * 
                                                                                              * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/Protocol.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/Protocol.java new file mode 100644 index 000000000000..62e8b2ca5b4d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/Protocol.java @@ -0,0 +1,309 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Antivirus protocol.
                                                                                              + * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.Protocol} + */ +@com.google.protobuf.Generated +public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +   * Protocol not specified.
                                                                                              +   * 
                                                                                              + * + * PROTOCOL_UNSPECIFIED = 0; + */ + PROTOCOL_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +   * SMTP protocol
                                                                                              +   * 
                                                                                              + * + * SMTP = 1; + */ + SMTP(1), + /** + * + * + *
                                                                                              +   * SMB protocol
                                                                                              +   * 
                                                                                              + * + * SMB = 2; + */ + SMB(2), + /** + * + * + *
                                                                                              +   * POP3 protocol
                                                                                              +   * 
                                                                                              + * + * POP3 = 3; + */ + POP3(3), + /** + * + * + *
                                                                                              +   * IMAP protocol
                                                                                              +   * 
                                                                                              + * + * IMAP = 4; + */ + IMAP(4), + /** + * + * + *
                                                                                              +   * HTTP2 protocol
                                                                                              +   * 
                                                                                              + * + * HTTP2 = 5; + */ + HTTP2(5), + /** + * + * + *
                                                                                              +   * HTTP protocol
                                                                                              +   * 
                                                                                              + * + * HTTP = 6; + */ + HTTP(6), + /** + * + * + *
                                                                                              +   * FTP protocol
                                                                                              +   * 
                                                                                              + * + * FTP = 7; + */ + FTP(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Protocol"); + } + + /** + * + * + *
                                                                                              +   * Protocol not specified.
                                                                                              +   * 
                                                                                              + * + * PROTOCOL_UNSPECIFIED = 0; + */ + public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +   * SMTP protocol
                                                                                              +   * 
                                                                                              + * + * SMTP = 1; + */ + public static final int SMTP_VALUE = 1; + + /** + * + * + *
                                                                                              +   * SMB protocol
                                                                                              +   * 
                                                                                              + * + * SMB = 2; + */ + public static final int SMB_VALUE = 2; + + /** + * + * + *
                                                                                              +   * POP3 protocol
                                                                                              +   * 
                                                                                              + * + * POP3 = 3; + */ + public static final int POP3_VALUE = 3; + + /** + * + * + *
                                                                                              +   * IMAP protocol
                                                                                              +   * 
                                                                                              + * + * IMAP = 4; + */ + public static final int IMAP_VALUE = 4; + + /** + * + * + *
                                                                                              +   * HTTP2 protocol
                                                                                              +   * 
                                                                                              + * + * HTTP2 = 5; + */ + public static final int HTTP2_VALUE = 5; + + /** + * + * + *
                                                                                              +   * HTTP protocol
                                                                                              +   * 
                                                                                              + * + * HTTP = 6; + */ + public static final int HTTP_VALUE = 6; + + /** + * + * + *
                                                                                              +   * FTP protocol
                                                                                              +   * 
                                                                                              + * + * FTP = 7; + */ + public static final int FTP_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Protocol valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Protocol forNumber(int value) { + switch (value) { + case 0: + return PROTOCOL_UNSPECIFIED; + case 1: + return SMTP; + case 2: + return SMB; + case 3: + return POP3; + case 4: + return IMAP; + case 5: + return HTTP2; + case 6: + return HTTP; + case 7: + return FTP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Protocol findValueByNumber(int number) { + return Protocol.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final Protocol[] VALUES = values(); + + public static Protocol valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Protocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.Protocol) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfile.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfile.java new file mode 100644 index 000000000000..ac9c603e53cb --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfile.java @@ -0,0 +1,3767 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * SecurityProfile is a resource that defines the behavior for one of many
                                                                                              + * ProfileTypes.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.SecurityProfile} + */ +@com.google.protobuf.Generated +public final class SecurityProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.SecurityProfile) + SecurityProfileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityProfile"); + } + + // Use SecurityProfile.newBuilder() to construct. + private SecurityProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SecurityProfile() { + name_ = ""; + description_ = ""; + etag_ = ""; + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.SecurityProfile.class, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The possible types that the SecurityProfile resource can configure.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.SecurityProfile.ProfileType} + */ + public enum ProfileType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Profile type not specified.
                                                                                              +     * 
                                                                                              + * + * PROFILE_TYPE_UNSPECIFIED = 0; + */ + PROFILE_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * Profile type for threat prevention.
                                                                                              +     * 
                                                                                              + * + * THREAT_PREVENTION = 1; + */ + THREAT_PREVENTION(1), + /** + * + * + *
                                                                                              +     * Profile type for packet mirroring v2
                                                                                              +     * 
                                                                                              + * + * CUSTOM_MIRRORING = 2; + */ + CUSTOM_MIRRORING(2), + /** + * + * + *
                                                                                              +     * Profile type for TPPI.
                                                                                              +     * 
                                                                                              + * + * CUSTOM_INTERCEPT = 3; + */ + CUSTOM_INTERCEPT(3), + /** + * + * + *
                                                                                              +     * Profile type for URL filtering.
                                                                                              +     * 
                                                                                              + * + * URL_FILTERING = 5; + */ + URL_FILTERING(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProfileType"); + } + + /** + * + * + *
                                                                                              +     * Profile type not specified.
                                                                                              +     * 
                                                                                              + * + * PROFILE_TYPE_UNSPECIFIED = 0; + */ + public static final int PROFILE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * Profile type for threat prevention.
                                                                                              +     * 
                                                                                              + * + * THREAT_PREVENTION = 1; + */ + public static final int THREAT_PREVENTION_VALUE = 1; + + /** + * + * + *
                                                                                              +     * Profile type for packet mirroring v2
                                                                                              +     * 
                                                                                              + * + * CUSTOM_MIRRORING = 2; + */ + public static final int CUSTOM_MIRRORING_VALUE = 2; + + /** + * + * + *
                                                                                              +     * Profile type for TPPI.
                                                                                              +     * 
                                                                                              + * + * CUSTOM_INTERCEPT = 3; + */ + public static final int CUSTOM_INTERCEPT_VALUE = 3; + + /** + * + * + *
                                                                                              +     * Profile type for URL filtering.
                                                                                              +     * 
                                                                                              + * + * URL_FILTERING = 5; + */ + public static final int URL_FILTERING_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProfileType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ProfileType forNumber(int value) { + switch (value) { + case 0: + return PROFILE_TYPE_UNSPECIFIED; + case 1: + return THREAT_PREVENTION; + case 2: + return CUSTOM_MIRRORING; + case 3: + return CUSTOM_INTERCEPT; + case 5: + return URL_FILTERING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProfileType findValueByNumber(int number) { + return ProfileType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfile.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProfileType[] VALUES = values(); + + public static ProfileType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProfileType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.SecurityProfile.ProfileType) + } + + private int bitField0_; + private int profileCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object profile_; + + public enum ProfileCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + THREAT_PREVENTION_PROFILE(7), + CUSTOM_MIRRORING_PROFILE(9), + CUSTOM_INTERCEPT_PROFILE(10), + URL_FILTERING_PROFILE(12), + PROFILE_NOT_SET(0); + private final int value; + + private ProfileCase(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 ProfileCase valueOf(int value) { + return forNumber(value); + } + + public static ProfileCase forNumber(int value) { + switch (value) { + case 7: + return THREAT_PREVENTION_PROFILE; + case 9: + return CUSTOM_MIRRORING_PROFILE; + case 10: + return CUSTOM_INTERCEPT_PROFILE; + case 12: + return URL_FILTERING_PROFILE; + case 0: + return PROFILE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ProfileCase getProfileCase() { + return ProfileCase.forNumber(profileCase_); + } + + public static final int THREAT_PREVENTION_PROFILE_FIELD_NUMBER = 7; + + /** + * + * + *
                                                                                              +   * The threat prevention configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + * + * @return Whether the threatPreventionProfile field is set. + */ + @java.lang.Override + public boolean hasThreatPreventionProfile() { + return profileCase_ == 7; + } + + /** + * + * + *
                                                                                              +   * The threat prevention configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + * + * @return The threatPreventionProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatPreventionProfile getThreatPreventionProfile() { + if (profileCase_ == 7) { + return (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) profile_; + } + return com.google.cloud.networksecurity.v1.ThreatPreventionProfile.getDefaultInstance(); + } + + /** + * + * + *
                                                                                              +   * The threat prevention configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatPreventionProfileOrBuilder + getThreatPreventionProfileOrBuilder() { + if (profileCase_ == 7) { + return (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) profile_; + } + return com.google.cloud.networksecurity.v1.ThreatPreventionProfile.getDefaultInstance(); + } + + public static final int CUSTOM_MIRRORING_PROFILE_FIELD_NUMBER = 9; + + /** + * + * + *
                                                                                              +   * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + * + * @return Whether the customMirroringProfile field is set. + */ + @java.lang.Override + public boolean hasCustomMirroringProfile() { + return profileCase_ == 9; + } + + /** + * + * + *
                                                                                              +   * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + * + * @return The customMirroringProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomMirroringProfile getCustomMirroringProfile() { + if (profileCase_ == 9) { + return (com.google.cloud.networksecurity.v1.CustomMirroringProfile) profile_; + } + return com.google.cloud.networksecurity.v1.CustomMirroringProfile.getDefaultInstance(); + } + + /** + * + * + *
                                                                                              +   * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomMirroringProfileOrBuilder + getCustomMirroringProfileOrBuilder() { + if (profileCase_ == 9) { + return (com.google.cloud.networksecurity.v1.CustomMirroringProfile) profile_; + } + return com.google.cloud.networksecurity.v1.CustomMirroringProfile.getDefaultInstance(); + } + + public static final int CUSTOM_INTERCEPT_PROFILE_FIELD_NUMBER = 10; + + /** + * + * + *
                                                                                              +   * The custom TPPI configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + * + * @return Whether the customInterceptProfile field is set. + */ + @java.lang.Override + public boolean hasCustomInterceptProfile() { + return profileCase_ == 10; + } + + /** + * + * + *
                                                                                              +   * The custom TPPI configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + * + * @return The customInterceptProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomInterceptProfile getCustomInterceptProfile() { + if (profileCase_ == 10) { + return (com.google.cloud.networksecurity.v1.CustomInterceptProfile) profile_; + } + return com.google.cloud.networksecurity.v1.CustomInterceptProfile.getDefaultInstance(); + } + + /** + * + * + *
                                                                                              +   * The custom TPPI configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomInterceptProfileOrBuilder + getCustomInterceptProfileOrBuilder() { + if (profileCase_ == 10) { + return (com.google.cloud.networksecurity.v1.CustomInterceptProfile) profile_; + } + return com.google.cloud.networksecurity.v1.CustomInterceptProfile.getDefaultInstance(); + } + + public static final int URL_FILTERING_PROFILE_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                              +   * The URL filtering configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + * + * @return Whether the urlFilteringProfile field is set. + */ + @java.lang.Override + public boolean hasUrlFilteringProfile() { + return profileCase_ == 12; + } + + /** + * + * + *
                                                                                              +   * The URL filtering configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + * + * @return The urlFilteringProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilteringProfile getUrlFilteringProfile() { + if (profileCase_ == 12) { + return (com.google.cloud.networksecurity.v1.UrlFilteringProfile) profile_; + } + return com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance(); + } + + /** + * + * + *
                                                                                              +   * The URL filtering configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilteringProfileOrBuilder + getUrlFilteringProfileOrBuilder() { + if (profileCase_ == 12) { + return (com.google.cloud.networksecurity.v1.UrlFilteringProfile) profile_; + } + return com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +   * pattern
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +   * pattern
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional description of the profile. Max length 512
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional description of the profile. Max length 512
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +   * Output only. This checksum is computed by the server based on the value of
                                                                                              +   * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +   * client has an up-to-date value before proceeding.
                                                                                              +   * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Output only. This checksum is computed by the server based on the value of
                                                                                              +   * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +   * client has an up-to-date value before proceeding.
                                                                                              +   * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 8; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfile_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_ = 0; + + /** + * + * + *
                                                                                              +   * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +   * configures.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                                                                              +   * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +   * configures.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType getType() { + com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType result = + com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType.forNumber(type_); + return result == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType.UNRECOGNIZED + : result; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + if (type_ + != com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType.PROFILE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, type_); + } + if (profileCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) profile_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + if (profileCase_ == 9) { + output.writeMessage(9, (com.google.cloud.networksecurity.v1.CustomMirroringProfile) profile_); + } + if (profileCase_ == 10) { + output.writeMessage( + 10, (com.google.cloud.networksecurity.v1.CustomInterceptProfile) profile_); + } + if (profileCase_ == 12) { + output.writeMessage(12, (com.google.cloud.networksecurity.v1.UrlFilteringProfile) profile_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + if (type_ + != com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType.PROFILE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, type_); + } + if (profileCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) profile_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + } + if (profileCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.networksecurity.v1.CustomMirroringProfile) profile_); + } + if (profileCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.networksecurity.v1.CustomInterceptProfile) profile_); + } + if (profileCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.networksecurity.v1.UrlFilteringProfile) profile_); + } + 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.networksecurity.v1.SecurityProfile)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.SecurityProfile other = + (com.google.cloud.networksecurity.v1.SecurityProfile) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (type_ != other.type_) return false; + if (!getProfileCase().equals(other.getProfileCase())) return false; + switch (profileCase_) { + case 7: + if (!getThreatPreventionProfile().equals(other.getThreatPreventionProfile())) return false; + break; + case 9: + if (!getCustomMirroringProfile().equals(other.getCustomMirroringProfile())) return false; + break; + case 10: + if (!getCustomInterceptProfile().equals(other.getCustomInterceptProfile())) return false; + break; + case 12: + if (!getUrlFilteringProfile().equals(other.getUrlFilteringProfile())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + switch (profileCase_) { + case 7: + hash = (37 * hash) + THREAT_PREVENTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getThreatPreventionProfile().hashCode(); + break; + case 9: + hash = (37 * hash) + CUSTOM_MIRRORING_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getCustomMirroringProfile().hashCode(); + break; + case 10: + hash = (37 * hash) + CUSTOM_INTERCEPT_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getCustomInterceptProfile().hashCode(); + break; + case 12: + hash = (37 * hash) + URL_FILTERING_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getUrlFilteringProfile().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile 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.networksecurity.v1.SecurityProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile 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.networksecurity.v1.SecurityProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.SecurityProfile 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * SecurityProfile is a resource that defines the behavior for one of many
                                                                                              +   * ProfileTypes.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.SecurityProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.SecurityProfile) + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.SecurityProfile.class, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.SecurityProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (threatPreventionProfileBuilder_ != null) { + threatPreventionProfileBuilder_.clear(); + } + if (customMirroringProfileBuilder_ != null) { + customMirroringProfileBuilder_.clear(); + } + if (customInterceptProfileBuilder_ != null) { + customInterceptProfileBuilder_.clear(); + } + if (urlFilteringProfileBuilder_ != null) { + urlFilteringProfileBuilder_.clear(); + } + name_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + internalGetMutableLabels().clear(); + type_ = 0; + profileCase_ = 0; + profile_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfile getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfile build() { + com.google.cloud.networksecurity.v1.SecurityProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfile buildPartial() { + com.google.cloud.networksecurity.v1.SecurityProfile result = + new com.google.cloud.networksecurity.v1.SecurityProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.SecurityProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.type_ = type_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.networksecurity.v1.SecurityProfile result) { + result.profileCase_ = profileCase_; + result.profile_ = this.profile_; + if (profileCase_ == 7 && threatPreventionProfileBuilder_ != null) { + result.profile_ = threatPreventionProfileBuilder_.build(); + } + if (profileCase_ == 9 && customMirroringProfileBuilder_ != null) { + result.profile_ = customMirroringProfileBuilder_.build(); + } + if (profileCase_ == 10 && customInterceptProfileBuilder_ != null) { + result.profile_ = customInterceptProfileBuilder_.build(); + } + if (profileCase_ == 12 && urlFilteringProfileBuilder_ != null) { + result.profile_ = urlFilteringProfileBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.SecurityProfile) { + return mergeFrom((com.google.cloud.networksecurity.v1.SecurityProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.SecurityProfile other) { + if (other == com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000100; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000200; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + switch (other.getProfileCase()) { + case THREAT_PREVENTION_PROFILE: + { + mergeThreatPreventionProfile(other.getThreatPreventionProfile()); + break; + } + case CUSTOM_MIRRORING_PROFILE: + { + mergeCustomMirroringProfile(other.getCustomMirroringProfile()); + break; + } + case CUSTOM_INTERCEPT_PROFILE: + { + mergeCustomInterceptProfile(other.getCustomInterceptProfile()); + break; + } + case URL_FILTERING_PROFILE: + { + mergeUrlFilteringProfile(other.getUrlFilteringProfile()); + break; + } + case PROFILE_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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 34 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 42 + case 48: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 48 + case 58: + { + input.readMessage( + internalGetThreatPreventionProfileFieldBuilder().getBuilder(), + extensionRegistry); + profileCase_ = 7; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetCustomMirroringProfileFieldBuilder().getBuilder(), + extensionRegistry); + profileCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetCustomInterceptProfileFieldBuilder().getBuilder(), + extensionRegistry); + profileCase_ = 10; + break; + } // case 82 + case 98: + { + input.readMessage( + internalGetUrlFilteringProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 12; + break; + } // case 98 + 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 profileCase_ = 0; + private java.lang.Object profile_; + + public ProfileCase getProfileCase() { + return ProfileCase.forNumber(profileCase_); + } + + public Builder clearProfile() { + profileCase_ = 0; + profile_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.ThreatPreventionProfile, + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.Builder, + com.google.cloud.networksecurity.v1.ThreatPreventionProfileOrBuilder> + threatPreventionProfileBuilder_; + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + * + * @return Whether the threatPreventionProfile field is set. + */ + @java.lang.Override + public boolean hasThreatPreventionProfile() { + return profileCase_ == 7; + } + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + * + * @return The threatPreventionProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatPreventionProfile + getThreatPreventionProfile() { + if (threatPreventionProfileBuilder_ == null) { + if (profileCase_ == 7) { + return (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) profile_; + } + return com.google.cloud.networksecurity.v1.ThreatPreventionProfile.getDefaultInstance(); + } else { + if (profileCase_ == 7) { + return threatPreventionProfileBuilder_.getMessage(); + } + return com.google.cloud.networksecurity.v1.ThreatPreventionProfile.getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + public Builder setThreatPreventionProfile( + com.google.cloud.networksecurity.v1.ThreatPreventionProfile value) { + if (threatPreventionProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + threatPreventionProfileBuilder_.setMessage(value); + } + profileCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + public Builder setThreatPreventionProfile( + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.Builder builderForValue) { + if (threatPreventionProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + threatPreventionProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + public Builder mergeThreatPreventionProfile( + com.google.cloud.networksecurity.v1.ThreatPreventionProfile value) { + if (threatPreventionProfileBuilder_ == null) { + if (profileCase_ == 7 + && profile_ + != com.google.cloud.networksecurity.v1.ThreatPreventionProfile + .getDefaultInstance()) { + profile_ = + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.newBuilder( + (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 7) { + threatPreventionProfileBuilder_.mergeFrom(value); + } else { + threatPreventionProfileBuilder_.setMessage(value); + } + } + profileCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + public Builder clearThreatPreventionProfile() { + if (threatPreventionProfileBuilder_ == null) { + if (profileCase_ == 7) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 7) { + profileCase_ = 0; + profile_ = null; + } + threatPreventionProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + public com.google.cloud.networksecurity.v1.ThreatPreventionProfile.Builder + getThreatPreventionProfileBuilder() { + return internalGetThreatPreventionProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatPreventionProfileOrBuilder + getThreatPreventionProfileOrBuilder() { + if ((profileCase_ == 7) && (threatPreventionProfileBuilder_ != null)) { + return threatPreventionProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 7) { + return (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) profile_; + } + return com.google.cloud.networksecurity.v1.ThreatPreventionProfile.getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                              +     * The threat prevention configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.ThreatPreventionProfile, + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.Builder, + com.google.cloud.networksecurity.v1.ThreatPreventionProfileOrBuilder> + internalGetThreatPreventionProfileFieldBuilder() { + if (threatPreventionProfileBuilder_ == null) { + if (!(profileCase_ == 7)) { + profile_ = + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.getDefaultInstance(); + } + threatPreventionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.ThreatPreventionProfile, + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.Builder, + com.google.cloud.networksecurity.v1.ThreatPreventionProfileOrBuilder>( + (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 7; + onChanged(); + return threatPreventionProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.CustomMirroringProfile, + com.google.cloud.networksecurity.v1.CustomMirroringProfile.Builder, + com.google.cloud.networksecurity.v1.CustomMirroringProfileOrBuilder> + customMirroringProfileBuilder_; + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + * + * @return Whether the customMirroringProfile field is set. + */ + @java.lang.Override + public boolean hasCustomMirroringProfile() { + return profileCase_ == 9; + } + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + * + * @return The customMirroringProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomMirroringProfile getCustomMirroringProfile() { + if (customMirroringProfileBuilder_ == null) { + if (profileCase_ == 9) { + return (com.google.cloud.networksecurity.v1.CustomMirroringProfile) profile_; + } + return com.google.cloud.networksecurity.v1.CustomMirroringProfile.getDefaultInstance(); + } else { + if (profileCase_ == 9) { + return customMirroringProfileBuilder_.getMessage(); + } + return com.google.cloud.networksecurity.v1.CustomMirroringProfile.getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + public Builder setCustomMirroringProfile( + com.google.cloud.networksecurity.v1.CustomMirroringProfile value) { + if (customMirroringProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + customMirroringProfileBuilder_.setMessage(value); + } + profileCase_ = 9; + return this; + } + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + public Builder setCustomMirroringProfile( + com.google.cloud.networksecurity.v1.CustomMirroringProfile.Builder builderForValue) { + if (customMirroringProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + customMirroringProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 9; + return this; + } + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + public Builder mergeCustomMirroringProfile( + com.google.cloud.networksecurity.v1.CustomMirroringProfile value) { + if (customMirroringProfileBuilder_ == null) { + if (profileCase_ == 9 + && profile_ + != com.google.cloud.networksecurity.v1.CustomMirroringProfile + .getDefaultInstance()) { + profile_ = + com.google.cloud.networksecurity.v1.CustomMirroringProfile.newBuilder( + (com.google.cloud.networksecurity.v1.CustomMirroringProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 9) { + customMirroringProfileBuilder_.mergeFrom(value); + } else { + customMirroringProfileBuilder_.setMessage(value); + } + } + profileCase_ = 9; + return this; + } + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + public Builder clearCustomMirroringProfile() { + if (customMirroringProfileBuilder_ == null) { + if (profileCase_ == 9) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 9) { + profileCase_ = 0; + profile_ = null; + } + customMirroringProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + public com.google.cloud.networksecurity.v1.CustomMirroringProfile.Builder + getCustomMirroringProfileBuilder() { + return internalGetCustomMirroringProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomMirroringProfileOrBuilder + getCustomMirroringProfileOrBuilder() { + if ((profileCase_ == 9) && (customMirroringProfileBuilder_ != null)) { + return customMirroringProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 9) { + return (com.google.cloud.networksecurity.v1.CustomMirroringProfile) profile_; + } + return com.google.cloud.networksecurity.v1.CustomMirroringProfile.getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                              +     * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.CustomMirroringProfile, + com.google.cloud.networksecurity.v1.CustomMirroringProfile.Builder, + com.google.cloud.networksecurity.v1.CustomMirroringProfileOrBuilder> + internalGetCustomMirroringProfileFieldBuilder() { + if (customMirroringProfileBuilder_ == null) { + if (!(profileCase_ == 9)) { + profile_ = + com.google.cloud.networksecurity.v1.CustomMirroringProfile.getDefaultInstance(); + } + customMirroringProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.CustomMirroringProfile, + com.google.cloud.networksecurity.v1.CustomMirroringProfile.Builder, + com.google.cloud.networksecurity.v1.CustomMirroringProfileOrBuilder>( + (com.google.cloud.networksecurity.v1.CustomMirroringProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 9; + onChanged(); + return customMirroringProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.CustomInterceptProfile, + com.google.cloud.networksecurity.v1.CustomInterceptProfile.Builder, + com.google.cloud.networksecurity.v1.CustomInterceptProfileOrBuilder> + customInterceptProfileBuilder_; + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + * + * @return Whether the customInterceptProfile field is set. + */ + @java.lang.Override + public boolean hasCustomInterceptProfile() { + return profileCase_ == 10; + } + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + * + * @return The customInterceptProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomInterceptProfile getCustomInterceptProfile() { + if (customInterceptProfileBuilder_ == null) { + if (profileCase_ == 10) { + return (com.google.cloud.networksecurity.v1.CustomInterceptProfile) profile_; + } + return com.google.cloud.networksecurity.v1.CustomInterceptProfile.getDefaultInstance(); + } else { + if (profileCase_ == 10) { + return customInterceptProfileBuilder_.getMessage(); + } + return com.google.cloud.networksecurity.v1.CustomInterceptProfile.getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + public Builder setCustomInterceptProfile( + com.google.cloud.networksecurity.v1.CustomInterceptProfile value) { + if (customInterceptProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + customInterceptProfileBuilder_.setMessage(value); + } + profileCase_ = 10; + return this; + } + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + public Builder setCustomInterceptProfile( + com.google.cloud.networksecurity.v1.CustomInterceptProfile.Builder builderForValue) { + if (customInterceptProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + customInterceptProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 10; + return this; + } + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + public Builder mergeCustomInterceptProfile( + com.google.cloud.networksecurity.v1.CustomInterceptProfile value) { + if (customInterceptProfileBuilder_ == null) { + if (profileCase_ == 10 + && profile_ + != com.google.cloud.networksecurity.v1.CustomInterceptProfile + .getDefaultInstance()) { + profile_ = + com.google.cloud.networksecurity.v1.CustomInterceptProfile.newBuilder( + (com.google.cloud.networksecurity.v1.CustomInterceptProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 10) { + customInterceptProfileBuilder_.mergeFrom(value); + } else { + customInterceptProfileBuilder_.setMessage(value); + } + } + profileCase_ = 10; + return this; + } + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + public Builder clearCustomInterceptProfile() { + if (customInterceptProfileBuilder_ == null) { + if (profileCase_ == 10) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 10) { + profileCase_ = 0; + profile_ = null; + } + customInterceptProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + public com.google.cloud.networksecurity.v1.CustomInterceptProfile.Builder + getCustomInterceptProfileBuilder() { + return internalGetCustomInterceptProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.CustomInterceptProfileOrBuilder + getCustomInterceptProfileOrBuilder() { + if ((profileCase_ == 10) && (customInterceptProfileBuilder_ != null)) { + return customInterceptProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 10) { + return (com.google.cloud.networksecurity.v1.CustomInterceptProfile) profile_; + } + return com.google.cloud.networksecurity.v1.CustomInterceptProfile.getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                              +     * The custom TPPI configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.CustomInterceptProfile, + com.google.cloud.networksecurity.v1.CustomInterceptProfile.Builder, + com.google.cloud.networksecurity.v1.CustomInterceptProfileOrBuilder> + internalGetCustomInterceptProfileFieldBuilder() { + if (customInterceptProfileBuilder_ == null) { + if (!(profileCase_ == 10)) { + profile_ = + com.google.cloud.networksecurity.v1.CustomInterceptProfile.getDefaultInstance(); + } + customInterceptProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.CustomInterceptProfile, + com.google.cloud.networksecurity.v1.CustomInterceptProfile.Builder, + com.google.cloud.networksecurity.v1.CustomInterceptProfileOrBuilder>( + (com.google.cloud.networksecurity.v1.CustomInterceptProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 10; + onChanged(); + return customInterceptProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlFilteringProfile, + com.google.cloud.networksecurity.v1.UrlFilteringProfile.Builder, + com.google.cloud.networksecurity.v1.UrlFilteringProfileOrBuilder> + urlFilteringProfileBuilder_; + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + * + * @return Whether the urlFilteringProfile field is set. + */ + @java.lang.Override + public boolean hasUrlFilteringProfile() { + return profileCase_ == 12; + } + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + * + * @return The urlFilteringProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilteringProfile getUrlFilteringProfile() { + if (urlFilteringProfileBuilder_ == null) { + if (profileCase_ == 12) { + return (com.google.cloud.networksecurity.v1.UrlFilteringProfile) profile_; + } + return com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance(); + } else { + if (profileCase_ == 12) { + return urlFilteringProfileBuilder_.getMessage(); + } + return com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + public Builder setUrlFilteringProfile( + com.google.cloud.networksecurity.v1.UrlFilteringProfile value) { + if (urlFilteringProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + urlFilteringProfileBuilder_.setMessage(value); + } + profileCase_ = 12; + return this; + } + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + public Builder setUrlFilteringProfile( + com.google.cloud.networksecurity.v1.UrlFilteringProfile.Builder builderForValue) { + if (urlFilteringProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + urlFilteringProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 12; + return this; + } + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + public Builder mergeUrlFilteringProfile( + com.google.cloud.networksecurity.v1.UrlFilteringProfile value) { + if (urlFilteringProfileBuilder_ == null) { + if (profileCase_ == 12 + && profile_ + != com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.networksecurity.v1.UrlFilteringProfile.newBuilder( + (com.google.cloud.networksecurity.v1.UrlFilteringProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 12) { + urlFilteringProfileBuilder_.mergeFrom(value); + } else { + urlFilteringProfileBuilder_.setMessage(value); + } + } + profileCase_ = 12; + return this; + } + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + public Builder clearUrlFilteringProfile() { + if (urlFilteringProfileBuilder_ == null) { + if (profileCase_ == 12) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 12) { + profileCase_ = 0; + profile_ = null; + } + urlFilteringProfileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + public com.google.cloud.networksecurity.v1.UrlFilteringProfile.Builder + getUrlFilteringProfileBuilder() { + return internalGetUrlFilteringProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilteringProfileOrBuilder + getUrlFilteringProfileOrBuilder() { + if ((profileCase_ == 12) && (urlFilteringProfileBuilder_ != null)) { + return urlFilteringProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 12) { + return (com.google.cloud.networksecurity.v1.UrlFilteringProfile) profile_; + } + return com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                              +     * The URL filtering configuration for the SecurityProfile.
                                                                                              +     * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlFilteringProfile, + com.google.cloud.networksecurity.v1.UrlFilteringProfile.Builder, + com.google.cloud.networksecurity.v1.UrlFilteringProfileOrBuilder> + internalGetUrlFilteringProfileFieldBuilder() { + if (urlFilteringProfileBuilder_ == null) { + if (!(profileCase_ == 12)) { + profile_ = com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance(); + } + urlFilteringProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlFilteringProfile, + com.google.cloud.networksecurity.v1.UrlFilteringProfile.Builder, + com.google.cloud.networksecurity.v1.UrlFilteringProfileOrBuilder>( + (com.google.cloud.networksecurity.v1.UrlFilteringProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 12; + onChanged(); + return urlFilteringProfileBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +     * pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +     * pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +     * pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +     * pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +     * pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile. Max length 512
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile. Max length 512
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile. Max length 512
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile. Max length 512
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile. Max length 512
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000200; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000200); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000200; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000200; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000200; + return this; + } + + private int type_ = 0; + + /** + * + * + *
                                                                                              +     * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +     * configures.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                                                                              +     * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +     * configures.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +     * configures.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType getType() { + com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType result = + com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType.forNumber(type_); + return result == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +     * configures.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +     * configures.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000400); + type_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.SecurityProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.SecurityProfile) + private static final com.google.cloud.networksecurity.v1.SecurityProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.SecurityProfile(); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityProfile 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.networksecurity.v1.SecurityProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroup.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroup.java new file mode 100644 index 000000000000..9d837b96577f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroup.java @@ -0,0 +1,2923 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * SecurityProfileGroup is a resource that defines the behavior for various
                                                                                              + * ProfileTypes.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.SecurityProfileGroup} + */ +@com.google.protobuf.Generated +public final class SecurityProfileGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.SecurityProfileGroup) + SecurityProfileGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityProfileGroup"); + } + + // Use SecurityProfileGroup.newBuilder() to construct. + private SecurityProfileGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SecurityProfileGroup() { + name_ = ""; + description_ = ""; + etag_ = ""; + threatPreventionProfile_ = ""; + customMirroringProfile_ = ""; + customInterceptProfile_ = ""; + urlFilteringProfile_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.SecurityProfileGroup.class, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +   * matches pattern
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +   * matches pattern
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional description of the profile group. Max length 2048
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional description of the profile group. Max length 2048
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +   * Output only. This checksum is computed by the server based on the value of
                                                                                              +   * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +   * client has an up-to-date value before proceeding.
                                                                                              +   * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Output only. This checksum is computed by the server based on the value of
                                                                                              +   * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +   * client has an up-to-date value before proceeding.
                                                                                              +   * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_PATH_ID_FIELD_NUMBER = 12; + private long dataPathId_ = 0L; + + /** + * + * + *
                                                                                              +   * Output only. Identifier used by the data-path. Unique within {container,
                                                                                              +   * location}.
                                                                                              +   * 
                                                                                              + * + * uint64 data_path_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataPathId. + */ + @java.lang.Override + public long getDataPathId() { + return dataPathId_; + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int THREAT_PREVENTION_PROFILE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object threatPreventionProfile_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The threatPreventionProfile. + */ + @java.lang.Override + public java.lang.String getThreatPreventionProfile() { + java.lang.Object ref = threatPreventionProfile_; + 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(); + threatPreventionProfile_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for threatPreventionProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThreatPreventionProfileBytes() { + java.lang.Object ref = threatPreventionProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + threatPreventionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_MIRRORING_PROFILE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object customMirroringProfile_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customMirroringProfile. + */ + @java.lang.Override + public java.lang.String getCustomMirroringProfile() { + java.lang.Object ref = customMirroringProfile_; + 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(); + customMirroringProfile_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customMirroringProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomMirroringProfileBytes() { + java.lang.Object ref = customMirroringProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customMirroringProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_INTERCEPT_PROFILE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object customInterceptProfile_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customInterceptProfile. + */ + @java.lang.Override + public java.lang.String getCustomInterceptProfile() { + java.lang.Object ref = customInterceptProfile_; + 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(); + customInterceptProfile_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customInterceptProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomInterceptProfileBytes() { + java.lang.Object ref = customInterceptProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customInterceptProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_FILTERING_PROFILE_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object urlFilteringProfile_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The urlFilteringProfile. + */ + @java.lang.Override + public java.lang.String getUrlFilteringProfile() { + java.lang.Object ref = urlFilteringProfile_; + 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(); + urlFilteringProfile_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for urlFilteringProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlFilteringProfileBytes() { + java.lang.Object ref = urlFilteringProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + urlFilteringProfile_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(threatPreventionProfile_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, threatPreventionProfile_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customMirroringProfile_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, customMirroringProfile_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customInterceptProfile_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, customInterceptProfile_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlFilteringProfile_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, urlFilteringProfile_); + } + if (dataPathId_ != 0L) { + output.writeUInt64(12, dataPathId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(threatPreventionProfile_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, threatPreventionProfile_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customMirroringProfile_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, customMirroringProfile_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customInterceptProfile_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, customInterceptProfile_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(urlFilteringProfile_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, urlFilteringProfile_); + } + if (dataPathId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(12, dataPathId_); + } + 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.networksecurity.v1.SecurityProfileGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.SecurityProfileGroup other = + (com.google.cloud.networksecurity.v1.SecurityProfileGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (getDataPathId() != other.getDataPathId()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getThreatPreventionProfile().equals(other.getThreatPreventionProfile())) return false; + if (!getCustomMirroringProfile().equals(other.getCustomMirroringProfile())) return false; + if (!getCustomInterceptProfile().equals(other.getCustomInterceptProfile())) return false; + if (!getUrlFilteringProfile().equals(other.getUrlFilteringProfile())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DATA_PATH_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataPathId()); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + THREAT_PREVENTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getThreatPreventionProfile().hashCode(); + hash = (37 * hash) + CUSTOM_MIRRORING_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getCustomMirroringProfile().hashCode(); + hash = (37 * hash) + CUSTOM_INTERCEPT_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getCustomInterceptProfile().hashCode(); + hash = (37 * hash) + URL_FILTERING_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getUrlFilteringProfile().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup 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.networksecurity.v1.SecurityProfileGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup 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.networksecurity.v1.SecurityProfileGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.SecurityProfileGroup 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * SecurityProfileGroup is a resource that defines the behavior for various
                                                                                              +   * ProfileTypes.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.SecurityProfileGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.SecurityProfileGroup) + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.SecurityProfileGroup.class, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.SecurityProfileGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + dataPathId_ = 0L; + internalGetMutableLabels().clear(); + threatPreventionProfile_ = ""; + customMirroringProfile_ = ""; + customInterceptProfile_ = ""; + urlFilteringProfile_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupProto + .internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroup build() { + com.google.cloud.networksecurity.v1.SecurityProfileGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroup buildPartial() { + com.google.cloud.networksecurity.v1.SecurityProfileGroup result = + new com.google.cloud.networksecurity.v1.SecurityProfileGroup(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.SecurityProfileGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dataPathId_ = dataPathId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.threatPreventionProfile_ = threatPreventionProfile_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customMirroringProfile_ = customMirroringProfile_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.customInterceptProfile_ = customInterceptProfile_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.urlFilteringProfile_ = urlFilteringProfile_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.SecurityProfileGroup) { + return mergeFrom((com.google.cloud.networksecurity.v1.SecurityProfileGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.SecurityProfileGroup other) { + if (other == com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getDataPathId() != 0L) { + setDataPathId(other.getDataPathId()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (!other.getThreatPreventionProfile().isEmpty()) { + threatPreventionProfile_ = other.threatPreventionProfile_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getCustomMirroringProfile().isEmpty()) { + customMirroringProfile_ = other.customMirroringProfile_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getCustomInterceptProfile().isEmpty()) { + customInterceptProfile_ = other.customInterceptProfile_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getUrlFilteringProfile().isEmpty()) { + urlFilteringProfile_ = other.urlFilteringProfile_; + bitField0_ |= 0x00000400; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + threatPreventionProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + customMirroringProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + customInterceptProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 90: + { + urlFilteringProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: + { + dataPathId_ = input.readUInt64(); + bitField0_ |= 0x00000020; + break; + } // case 96 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +     * matches pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +     * matches pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +     * matches pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +     * matches pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +     * matches pattern
                                                                                              +     * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +     * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile group. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile group. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile group. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile group. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional description of the profile group. Max length 2048
                                                                                              +     * characters.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Resource creation timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Last resource update timestamp.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. This checksum is computed by the server based on the value of
                                                                                              +     * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +     * client has an up-to-date value before proceeding.
                                                                                              +     * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private long dataPathId_; + + /** + * + * + *
                                                                                              +     * Output only. Identifier used by the data-path. Unique within {container,
                                                                                              +     * location}.
                                                                                              +     * 
                                                                                              + * + * uint64 data_path_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataPathId. + */ + @java.lang.Override + public long getDataPathId() { + return dataPathId_; + } + + /** + * + * + *
                                                                                              +     * Output only. Identifier used by the data-path. Unique within {container,
                                                                                              +     * location}.
                                                                                              +     * 
                                                                                              + * + * uint64 data_path_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataPathId to set. + * @return This builder for chaining. + */ + public Builder setDataPathId(long value) { + + dataPathId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Identifier used by the data-path. Unique within {container,
                                                                                              +     * location}.
                                                                                              +     * 
                                                                                              + * + * uint64 data_path_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDataPathId() { + bitField0_ = (bitField0_ & ~0x00000020); + dataPathId_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Labels as key value pairs.
                                                                                              +     * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private java.lang.Object threatPreventionProfile_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The threatPreventionProfile. + */ + public java.lang.String getThreatPreventionProfile() { + java.lang.Object ref = threatPreventionProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + threatPreventionProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for threatPreventionProfile. + */ + public com.google.protobuf.ByteString getThreatPreventionProfileBytes() { + java.lang.Object ref = threatPreventionProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + threatPreventionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The threatPreventionProfile to set. + * @return This builder for chaining. + */ + public Builder setThreatPreventionProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + threatPreventionProfile_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearThreatPreventionProfile() { + threatPreventionProfile_ = getDefaultInstance().getThreatPreventionProfile(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for threatPreventionProfile to set. + * @return This builder for chaining. + */ + public Builder setThreatPreventionProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + threatPreventionProfile_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object customMirroringProfile_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customMirroringProfile. + */ + public java.lang.String getCustomMirroringProfile() { + java.lang.Object ref = customMirroringProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customMirroringProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customMirroringProfile. + */ + public com.google.protobuf.ByteString getCustomMirroringProfileBytes() { + java.lang.Object ref = customMirroringProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customMirroringProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The customMirroringProfile to set. + * @return This builder for chaining. + */ + public Builder setCustomMirroringProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customMirroringProfile_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCustomMirroringProfile() { + customMirroringProfile_ = getDefaultInstance().getCustomMirroringProfile(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for customMirroringProfile to set. + * @return This builder for chaining. + */ + public Builder setCustomMirroringProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customMirroringProfile_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object customInterceptProfile_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customInterceptProfile. + */ + public java.lang.String getCustomInterceptProfile() { + java.lang.Object ref = customInterceptProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customInterceptProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customInterceptProfile. + */ + public com.google.protobuf.ByteString getCustomInterceptProfileBytes() { + java.lang.Object ref = customInterceptProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customInterceptProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The customInterceptProfile to set. + * @return This builder for chaining. + */ + public Builder setCustomInterceptProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customInterceptProfile_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCustomInterceptProfile() { + customInterceptProfile_ = getDefaultInstance().getCustomInterceptProfile(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for customInterceptProfile to set. + * @return This builder for chaining. + */ + public Builder setCustomInterceptProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customInterceptProfile_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object urlFilteringProfile_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The urlFilteringProfile. + */ + public java.lang.String getUrlFilteringProfile() { + java.lang.Object ref = urlFilteringProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlFilteringProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for urlFilteringProfile. + */ + public com.google.protobuf.ByteString getUrlFilteringProfileBytes() { + java.lang.Object ref = urlFilteringProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + urlFilteringProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The urlFilteringProfile to set. + * @return This builder for chaining. + */ + public Builder setUrlFilteringProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + urlFilteringProfile_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUrlFilteringProfile() { + urlFilteringProfile_ = getDefaultInstance().getUrlFilteringProfile(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +     * configuration.
                                                                                              +     * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for urlFilteringProfile to set. + * @return This builder for chaining. + */ + public Builder setUrlFilteringProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + urlFilteringProfile_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.SecurityProfileGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.SecurityProfileGroup) + private static final com.google.cloud.networksecurity.v1.SecurityProfileGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.SecurityProfileGroup(); + } + + public static com.google.cloud.networksecurity.v1.SecurityProfileGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityProfileGroup 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.networksecurity.v1.SecurityProfileGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupInterceptProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupInterceptProto.java new file mode 100644 index 000000000000..3995293d4432 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupInterceptProto.java @@ -0,0 +1,98 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class SecurityProfileGroupInterceptProto extends com.google.protobuf.GeneratedFile { + private SecurityProfileGroupInterceptProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityProfileGroupInterceptProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nFgoogle/cloud/networksecurity/v1/securi" + + "ty_profile_group_intercept.proto\022\037google" + + ".cloud.networksecurity.v1\032\037google/api/fi" + + "eld_behavior.proto\032\031google/api/resource." + + "proto\"y\n\026CustomInterceptProfile\022_\n\030inter" + + "cept_endpoint_group\030\001 \001(\tB=\340A\002\372A7\n5netwo" + + "rksecurity.googleapis.com/InterceptEndpo" + + "intGroupB\203\002\n#com.google.cloud.networksec" + + "urity.v1B\"SecurityProfileGroupInterceptP" + + "rotoP\001ZMcloud.google.com/go/networksecur" + + "ity/apiv1/networksecuritypb;networksecur" + + "itypb\252\002\037Google.Cloud.NetworkSecurity.V1\312" + + "\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Goog" + + "le::Cloud::NetworkSecurity::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CustomInterceptProfile_descriptor, + new java.lang.String[] { + "InterceptEndpointGroup", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupMirroringProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupMirroringProto.java new file mode 100644 index 000000000000..04ddb4b7444e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupMirroringProto.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class SecurityProfileGroupMirroringProto extends com.google.protobuf.GeneratedFile { + private SecurityProfileGroupMirroringProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityProfileGroupMirroringProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nFgoogle/cloud/networksecurity/v1/securi" + + "ty_profile_group_mirroring.proto\022\037google" + + ".cloud.networksecurity.v1\032\037google/api/fi" + + "eld_behavior.proto\032\031google/api/resource." + + "proto\"|\n\026CustomMirroringProfile\022b\n\030mirro" + + "ring_endpoint_group\030\001 \001(\tB@\340A\002\340A\005\372A7\n5ne" + + "tworksecurity.googleapis.com/MirroringEn" + + "dpointGroupB\203\002\n#com.google.cloud.network" + + "security.v1B\"SecurityProfileGroupMirrori" + + "ngProtoP\001ZMcloud.google.com/go/networkse" + + "curity/apiv1/networksecuritypb;networkse" + + "curitypb\252\002\037Google.Cloud.NetworkSecurity." + + "V1\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"G" + + "oogle::Cloud::NetworkSecurity::V1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CustomMirroringProfile_descriptor, + new java.lang.String[] { + "MirroringEndpointGroup", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupName.java new file mode 100644 index 000000000000..bae12b0af443 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupName.java @@ -0,0 +1,369 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SecurityProfileGroupName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_SECURITY_PROFILE_GROUP = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/securityProfileGroups/{security_profile_group}"); + private static final PathTemplate PROJECT_LOCATION_SECURITY_PROFILE_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/securityProfileGroups/{security_profile_group}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String securityProfileGroup; + private final String project; + + @Deprecated + protected SecurityProfileGroupName() { + organization = null; + location = null; + securityProfileGroup = null; + project = null; + } + + private SecurityProfileGroupName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + securityProfileGroup = Preconditions.checkNotNull(builder.getSecurityProfileGroup()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_SECURITY_PROFILE_GROUP; + } + + private SecurityProfileGroupName(ProjectLocationSecurityProfileGroupBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + securityProfileGroup = Preconditions.checkNotNull(builder.getSecurityProfileGroup()); + organization = null; + pathTemplate = PROJECT_LOCATION_SECURITY_PROFILE_GROUP; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getSecurityProfileGroup() { + return securityProfileGroup; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationSecurityProfileGroupBuilder() { + return new Builder(); + } + + public static ProjectLocationSecurityProfileGroupBuilder + newProjectLocationSecurityProfileGroupBuilder() { + return new ProjectLocationSecurityProfileGroupBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SecurityProfileGroupName of( + String organization, String location, String securityProfileGroup) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setSecurityProfileGroup(securityProfileGroup) + .build(); + } + + public static SecurityProfileGroupName ofOrganizationLocationSecurityProfileGroupName( + String organization, String location, String securityProfileGroup) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setSecurityProfileGroup(securityProfileGroup) + .build(); + } + + public static SecurityProfileGroupName ofProjectLocationSecurityProfileGroupName( + String project, String location, String securityProfileGroup) { + return newProjectLocationSecurityProfileGroupBuilder() + .setProject(project) + .setLocation(location) + .setSecurityProfileGroup(securityProfileGroup) + .build(); + } + + public static String format(String organization, String location, String securityProfileGroup) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setSecurityProfileGroup(securityProfileGroup) + .build() + .toString(); + } + + public static String formatOrganizationLocationSecurityProfileGroupName( + String organization, String location, String securityProfileGroup) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setSecurityProfileGroup(securityProfileGroup) + .build() + .toString(); + } + + public static String formatProjectLocationSecurityProfileGroupName( + String project, String location, String securityProfileGroup) { + return newProjectLocationSecurityProfileGroupBuilder() + .setProject(project) + .setLocation(location) + .setSecurityProfileGroup(securityProfileGroup) + .build() + .toString(); + } + + public static SecurityProfileGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_SECURITY_PROFILE_GROUP.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_SECURITY_PROFILE_GROUP.match(formattedString); + return ofOrganizationLocationSecurityProfileGroupName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("security_profile_group")); + } else if (PROJECT_LOCATION_SECURITY_PROFILE_GROUP.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_SECURITY_PROFILE_GROUP.match(formattedString); + return ofProjectLocationSecurityProfileGroupName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("security_profile_group")); + } + throw new ValidationException( + "SecurityProfileGroupName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SecurityProfileGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_SECURITY_PROFILE_GROUP.matches(formattedString) + || PROJECT_LOCATION_SECURITY_PROFILE_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (securityProfileGroup != null) { + fieldMapBuilder.put("security_profile_group", securityProfileGroup); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SecurityProfileGroupName that = ((SecurityProfileGroupName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.securityProfileGroup, that.securityProfileGroup) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(securityProfileGroup); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/securityProfileGroups/{security_profile_group}. + */ + public static class Builder { + private String organization; + private String location; + private String securityProfileGroup; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getSecurityProfileGroup() { + return securityProfileGroup; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSecurityProfileGroup(String securityProfileGroup) { + this.securityProfileGroup = securityProfileGroup; + return this; + } + + private Builder(SecurityProfileGroupName securityProfileGroupName) { + Preconditions.checkArgument( + Objects.equals( + securityProfileGroupName.pathTemplate, ORGANIZATION_LOCATION_SECURITY_PROFILE_GROUP), + "toBuilder is only supported when SecurityProfileGroupName has the pattern of" + + " organizations/{organization}/locations/{location}/securityProfileGroups/{security_profile_group}"); + this.organization = securityProfileGroupName.organization; + this.location = securityProfileGroupName.location; + this.securityProfileGroup = securityProfileGroupName.securityProfileGroup; + } + + public SecurityProfileGroupName build() { + return new SecurityProfileGroupName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/securityProfileGroups/{security_profile_group}. + */ + public static class ProjectLocationSecurityProfileGroupBuilder { + private String project; + private String location; + private String securityProfileGroup; + + protected ProjectLocationSecurityProfileGroupBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSecurityProfileGroup() { + return securityProfileGroup; + } + + public ProjectLocationSecurityProfileGroupBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationSecurityProfileGroupBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationSecurityProfileGroupBuilder setSecurityProfileGroup( + String securityProfileGroup) { + this.securityProfileGroup = securityProfileGroup; + return this; + } + + public SecurityProfileGroupName build() { + return new SecurityProfileGroupName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupOrBuilder.java new file mode 100644 index 000000000000..8c14a540d2c1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupOrBuilder.java @@ -0,0 +1,405 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface SecurityProfileGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.SecurityProfileGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +   * matches pattern
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the SecurityProfileGroup resource. It
                                                                                              +   * matches pattern
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. An optional description of the profile group. Max length 2048
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. An optional description of the profile group. Max length 2048
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. This checksum is computed by the server based on the value of
                                                                                              +   * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +   * client has an up-to-date value before proceeding.
                                                                                              +   * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                                                                                              +   * Output only. This checksum is computed by the server based on the value of
                                                                                              +   * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +   * client has an up-to-date value before proceeding.
                                                                                              +   * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Identifier used by the data-path. Unique within {container,
                                                                                              +   * location}.
                                                                                              +   * 
                                                                                              + * + * uint64 data_path_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataPathId. + */ + long getDataPathId(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The threatPreventionProfile. + */ + java.lang.String getThreatPreventionProfile(); + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the ThreatPrevention
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string threat_prevention_profile = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for threatPreventionProfile. + */ + com.google.protobuf.ByteString getThreatPreventionProfileBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customMirroringProfile. + */ + java.lang.String getCustomMirroringProfile(); + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the CustomMirroring
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string custom_mirroring_profile = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customMirroringProfile. + */ + com.google.protobuf.ByteString getCustomMirroringProfileBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customInterceptProfile. + */ + java.lang.String getCustomInterceptProfile(); + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the CustomIntercept
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string custom_intercept_profile = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customInterceptProfile. + */ + com.google.protobuf.ByteString getCustomInterceptProfileBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The urlFilteringProfile. + */ + java.lang.String getUrlFilteringProfile(); + + /** + * + * + *
                                                                                              +   * Optional. Reference to a SecurityProfile with the UrlFiltering
                                                                                              +   * configuration.
                                                                                              +   * 
                                                                                              + * + * + * string url_filtering_profile = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for urlFilteringProfile. + */ + com.google.protobuf.ByteString getUrlFilteringProfileBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupProto.java new file mode 100644 index 000000000000..73f045a17705 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupProto.java @@ -0,0 +1,228 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class SecurityProfileGroupProto extends com.google.protobuf.GeneratedFile { + private SecurityProfileGroupProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityProfileGroupProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_SecurityProfileGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_SecurityProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_SecurityProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_SecurityProfile_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_SecurityProfile_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "/v1/{parent=organization" + + "s/*/locations/*}/securityProfileGroups\022\340" + + "\001\n\027GetSecurityProfileGroup\022?.google.clou" + + "d.networksecurity.v1.GetSecurityProfileG" + + "roupRequest\0325.google.cloud.networksecuri" + + "ty.v1.SecurityProfileGroup\"M\332A\004name\202\323\344\223\002" + + "@\022>/v1/{name=organizations/*/locations/*" + + "/securityProfileGroups/*}\022\346\002\n\032CreateSecu" + + "rityProfileGroup\022B.google.cloud.networks" + + "ecurity.v1.CreateSecurityProfileGroupReq" + + "uest\032\035.google.longrunning.Operation\"\344\001\312A" + + "I\n\024SecurityProfileGroup\0221google.cloud.ne" + + "tworksecurity.v1.OperationMetadata\332A7par" + + "ent,security_profile_group,security_prof" + + "ile_group_id\202\323\344\223\002X\">/v1/{parent=organiza" + + "tions/*/locations/*}/securityProfileGrou" + + "ps:\026security_profile_group\022\350\002\n\032UpdateSec" + + "urityProfileGroup\022B.google.cloud.network" + + "security.v1.UpdateSecurityProfileGroupRe" + + "quest\032\035.google.longrunning.Operation\"\346\001\312" + + "AI\n\024SecurityProfileGroup\0221google.cloud.n" + + "etworksecurity.v1.OperationMetadata\332A\"se" + + "curity_profile_group,update_mask\202\323\344\223\002o2U" + + "/v1/{security_profile_group.name=organiz" + + "ations/*/locations/*/securityProfileGrou" + + "ps/*}:\026security_profile_group\022\234\002\n\032Delete" + + "SecurityProfileGroup\022B.google.cloud.netw" + + "orksecurity.v1.DeleteSecurityProfileGrou" + + "pRequest\032\035.google.longrunning.Operation\"" + + "\232\001\312AJ\n\025google.protobuf.Empty\0221google.clo" + + "ud.networksecurity.v1.OperationMetadata\332" + + "A\004name\202\323\344\223\002@*>/v1/{name=organizations/*/" + + "locations/*/securityProfileGroups/*}\022\337\001\n" + + "\024ListSecurityProfiles\022<.google.cloud.net" + + "worksecurity.v1.ListSecurityProfilesRequ" + + "est\032=.google.cloud.networksecurity.v1.Li" + + "stSecurityProfilesResponse\"J\332A\006parent\202\323\344" + + "\223\002;\0229/v1/{parent=organizations/*/locatio" + + "ns/*}/securityProfiles\022\314\001\n\022GetSecurityPr" + + "ofile\022:.google.cloud.networksecurity.v1." + + "GetSecurityProfileRequest\0320.google.cloud" + + ".networksecurity.v1.SecurityProfile\"H\332A\004" + + "name\202\323\344\223\002;\0229/v1/{name=organizations/*/lo" + + "cations/*/securityProfiles/*}\022\300\002\n\025Create" + + "SecurityProfile\022=.google.cloud.networkse" + + "curity.v1.CreateSecurityProfileRequest\032\035" + + ".google.longrunning.Operation\"\310\001\312AD\n\017Sec" + + "urityProfile\0221google.cloud.networksecuri" + + "ty.v1.OperationMetadata\332A+parent,securit" + + "y_profile,security_profile_id\202\323\344\223\002M\"9/v1" + + "/{parent=organizations/*/locations/*}/se" + + "curityProfiles:\020security_profile\022\302\002\n\025Upd" + + "ateSecurityProfile\022=.google.cloud.networ" + + "ksecurity.v1.UpdateSecurityProfileReques" + + "t\032\035.google.longrunning.Operation\"\312\001\312AD\n\017" + + "SecurityProfile\0221google.cloud.networksec" + + "urity.v1.OperationMetadata\332A\034security_pr" + + "ofile,update_mask\202\323\344\223\002^2J/v1/{security_p" + + "rofile.name=organizations/*/locations/*/" + + "securityProfiles/*}:\020security_profile\022\215\002" + + "\n\025DeleteSecurityProfile\022=.google.cloud.n" + + "etworksecurity.v1.DeleteSecurityProfileR" + + "equest\032\035.google.longrunning.Operation\"\225\001" + + "\312AJ\n\025google.protobuf.Empty\0221google.cloud" + + ".networksecurity.v1.OperationMetadata\332A\004" + + "name\202\323\344\223\002;*9/v1/{name=organizations/*/lo" + + "cations/*/securityProfiles/*}\032R\312A\036networ" + + "ksecurity.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\201\002\n#co" + + "m.google.cloud.networksecurity.v1B Secur" + + "ityProfileGroupServiceProtoP\001ZMcloud.goo" + + "gle.com/go/networksecurity/apiv1/network" + + "securitypb;networksecuritypb\252\002\037Google.Cl" + + "oud.NetworkSecurity.V1\312\002\037Google\\Cloud\\Ne" + + "tworkSecurity\\V1\352\002\"Google::Cloud::Networ" + + "kSecurity::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(), + com.google.cloud.networksecurity.v1.SecurityProfileGroupProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListSecurityProfileGroupsResponse_descriptor, + new java.lang.String[] { + "SecurityProfileGroups", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_GetSecurityProfileGroupRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_GetSecurityProfileGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetSecurityProfileGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileGroupRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "SecurityProfileGroupId", "SecurityProfileGroup", + }); + internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileGroupRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileGroupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "SecurityProfileGroup", + }); + internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileGroupRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileGroupRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListSecurityProfilesResponse_descriptor, + new java.lang.String[] { + "SecurityProfiles", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_GetSecurityProfileRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_networksecurity_v1_GetSecurityProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetSecurityProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateSecurityProfileRequest_descriptor, + new java.lang.String[] { + "Parent", "SecurityProfileId", "SecurityProfile", + }); + internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "SecurityProfile", + }); + internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteSecurityProfileRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.networksecurity.v1.CommonProto.getDescriptor(); + com.google.cloud.networksecurity.v1.SecurityProfileGroupProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupThreatPreventionProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupThreatPreventionProto.java new file mode 100644 index 000000000000..9a6935c7e613 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupThreatPreventionProto.java @@ -0,0 +1,178 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class SecurityProfileGroupThreatPreventionProto + extends com.google.protobuf.GeneratedFile { + private SecurityProfileGroupThreatPreventionProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityProfileGroupThreatPreventionProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_SeverityOverride_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_SeverityOverride_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ThreatOverride_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ThreatOverride_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AntivirusOverride_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AntivirusOverride_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "Mgoogle/cloud/networksecurity/v1/security_profile_group_threatprevention.proto\022" + + "\037google.cloud.networksecurity.v1\032\037google/api/field_behavior.proto\"\223\002\n" + + "\027ThreatPreventionProfile\022R\n" + + "\022severity_overrides\030\001 \003(" + + "\01321.google.cloud.networksecurity.v1.SeverityOverrideB\003\340A\001\022N\n" + + "\020threat_overrides\030\002 " + + "\003(\0132/.google.cloud.networksecurity.v1.ThreatOverrideB\003\340A\001\022T\n" + + "\023antivirus_overrides\030\004" + + " \003(\01322.google.cloud.networksecurity.v1.AntivirusOverrideB\003\340A\001\"\230\001\n" + + "\020SeverityOverride\022@\n" + + "\010severity\030\001" + + " \001(\0162).google.cloud.networksecurity.v1.SeverityB\003\340A\002\022B\n" + + "\006action\030\002" + + " \001(\0162-.google.cloud.networksecurity.v1.ThreatActionB\003\340A\002\"\254\001\n" + + "\016ThreatOverride\022\026\n" + + "\tthreat_id\030\001 \001(\tB\003\340A\002\022>\n" + + "\004type\030\002 \001(\0162+.go" + + "ogle.cloud.networksecurity.v1.ThreatTypeB\003\340A\003\022B\n" + + "\006action\030\003" + + " \001(\0162-.google.cloud.networksecurity.v1.ThreatActionB\003\340A\002\"\231\001\n" + + "\021AntivirusOverride\022@\n" + + "\010protocol\030\001 \001(\0162).goog" + + "le.cloud.networksecurity.v1.ProtocolB\003\340A\002\022B\n" + + "\006action\030\002" + + " \001(\0162-.google.cloud.networksecurity.v1.ThreatActionB\003\340A\002*d\n" + + "\010Severity\022\030\n" + + "\024SEVERITY_UNSPECIFIED\020\000\022\021\n\r" + + "INFORMATIONAL\020\001\022\007\n" + + "\003LOW\020\002\022\n\n" + + "\006MEDIUM\020\003\022\010\n" + + "\004HIGH\020\004\022\014\n" + + "\010CRITICAL\020\005*n\n\n" + + "ThreatType\022\033\n" + + "\027THREAT_TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007UNKNOWN\020\001\022\021\n\r" + + "VULNERABILITY\020\002\022\r\n" + + "\tANTIVIRUS\020\003\022\013\n" + + "\007SPYWARE\020\004\022\007\n" + + "\003DNS\020\005*a\n" + + "\014ThreatAction\022\035\n" + + "\031THREAT_ACTION_UNSPECIFIED\020\000\022\022\n" + + "\016DEFAULT_ACTION\020\004\022\t\n" + + "\005ALLOW\020\001\022\t\n" + + "\005ALERT\020\002\022\010\n" + + "\004DENY\020\003*i\n" + + "\010Protocol\022\030\n" + + "\024PROTOCOL_UNSPECIFIED\020\000\022\010\n" + + "\004SMTP\020\001\022\007\n" + + "\003SMB\020\002\022\010\n" + + "\004POP3\020\003\022\010\n" + + "\004IMAP\020\004\022\t\n" + + "\005HTTP2\020\005\022\010\n" + + "\004HTTP\020\006\022\007\n" + + "\003FTP\020\007B\212\002\n" + + "#com.google.cloud.networksecurity.v1B)SecurityProfileGroupThreatPre" + + "ventionProtoP\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb;netw" + + "orksecuritypb\252\002\037Google.Cloud.NetworkSecu" + + "rity.V1\312\002\037Google\\Cloud\\NetworkSecurity\\V" + + "1\352\002\"Google::Cloud::NetworkSecurity::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_descriptor, + new java.lang.String[] { + "SeverityOverrides", "ThreatOverrides", "AntivirusOverrides", + }); + internal_static_google_cloud_networksecurity_v1_SeverityOverride_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_SeverityOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_SeverityOverride_descriptor, + new java.lang.String[] { + "Severity", "Action", + }); + internal_static_google_cloud_networksecurity_v1_ThreatOverride_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ThreatOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ThreatOverride_descriptor, + new java.lang.String[] { + "ThreatId", "Type", "Action", + }); + internal_static_google_cloud_networksecurity_v1_AntivirusOverride_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_AntivirusOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AntivirusOverride_descriptor, + new java.lang.String[] { + "Protocol", "Action", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupUrlFilteringProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupUrlFilteringProto.java new file mode 100644 index 000000000000..cec1e7251296 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupUrlFilteringProto.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class SecurityProfileGroupUrlFilteringProto extends com.google.protobuf.GeneratedFile { + private SecurityProfileGroupUrlFilteringProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityProfileGroupUrlFilteringProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UrlFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UrlFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "Igoogle/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto\022\037goo" + + "gle.cloud.networksecurity.v1\032\037google/api/field_behavior.proto\"[\n" + + "\023UrlFilteringProfile\022D\n" + + "\013url_filters\030\001" + + " \003(\0132*.google.cloud.networksecurity.v1.UrlFilterB\003\340A\001\"\366\001\n" + + "\tUrlFilter\022\\\n" + + "\020filtering_action\030\001 \001(\0162=.goo" + + "gle.cloud.networksecurity.v1.UrlFilter.UrlFilteringActionB\003\340A\002\022\021\n" + + "\004urls\030\002 \003(\tB\003\340A\002\022\032\n" + + "\010priority\030\003 \001(\005B\003\340A\002H\000\210\001\001\"O\n" + + "\022UrlFilteringAction\022$\n" + + " URL_FILTERING_ACTION_UNSPECIFIED\020\000\022\t\n" + + "\005ALLOW\020\001\022\010\n" + + "\004DENY\020\002B\013\n" + + "\t_priorityB\206\002\n" + + "#com.google.cloud.networksecurity.v1B%SecurityProfileGroupUrlFilteringPro" + + "toP\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecurit" + + "ypb\252\002\037Google.Cloud.NetworkSecurity.V1\312\002\037" + + "Google\\Cloud\\NetworkSecurity\\V1\352\002\"Google" + + "::Cloud::NetworkSecurity::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_descriptor, + new java.lang.String[] { + "UrlFilters", + }); + internal_static_google_cloud_networksecurity_v1_UrlFilter_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_UrlFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UrlFilter_descriptor, + new java.lang.String[] { + "FilteringAction", "Urls", "Priority", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileName.java new file mode 100644 index 000000000000..dc8cf2fa8c55 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileName.java @@ -0,0 +1,357 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SecurityProfileName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_SECURITY_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/securityProfiles/{security_profile}"); + private static final PathTemplate PROJECT_LOCATION_SECURITY_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/securityProfiles/{security_profile}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String securityProfile; + private final String project; + + @Deprecated + protected SecurityProfileName() { + organization = null; + location = null; + securityProfile = null; + project = null; + } + + private SecurityProfileName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + securityProfile = Preconditions.checkNotNull(builder.getSecurityProfile()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_SECURITY_PROFILE; + } + + private SecurityProfileName(ProjectLocationSecurityProfileBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + securityProfile = Preconditions.checkNotNull(builder.getSecurityProfile()); + organization = null; + pathTemplate = PROJECT_LOCATION_SECURITY_PROFILE; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getSecurityProfile() { + return securityProfile; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationSecurityProfileBuilder() { + return new Builder(); + } + + public static ProjectLocationSecurityProfileBuilder newProjectLocationSecurityProfileBuilder() { + return new ProjectLocationSecurityProfileBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SecurityProfileName of( + String organization, String location, String securityProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setSecurityProfile(securityProfile) + .build(); + } + + public static SecurityProfileName ofOrganizationLocationSecurityProfileName( + String organization, String location, String securityProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setSecurityProfile(securityProfile) + .build(); + } + + public static SecurityProfileName ofProjectLocationSecurityProfileName( + String project, String location, String securityProfile) { + return newProjectLocationSecurityProfileBuilder() + .setProject(project) + .setLocation(location) + .setSecurityProfile(securityProfile) + .build(); + } + + public static String format(String organization, String location, String securityProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setSecurityProfile(securityProfile) + .build() + .toString(); + } + + public static String formatOrganizationLocationSecurityProfileName( + String organization, String location, String securityProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setSecurityProfile(securityProfile) + .build() + .toString(); + } + + public static String formatProjectLocationSecurityProfileName( + String project, String location, String securityProfile) { + return newProjectLocationSecurityProfileBuilder() + .setProject(project) + .setLocation(location) + .setSecurityProfile(securityProfile) + .build() + .toString(); + } + + public static SecurityProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_SECURITY_PROFILE.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_SECURITY_PROFILE.match(formattedString); + return ofOrganizationLocationSecurityProfileName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("security_profile")); + } else if (PROJECT_LOCATION_SECURITY_PROFILE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_SECURITY_PROFILE.match(formattedString); + return ofProjectLocationSecurityProfileName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("security_profile")); + } + throw new ValidationException("SecurityProfileName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SecurityProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_SECURITY_PROFILE.matches(formattedString) + || PROJECT_LOCATION_SECURITY_PROFILE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (securityProfile != null) { + fieldMapBuilder.put("security_profile", securityProfile); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SecurityProfileName that = ((SecurityProfileName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.securityProfile, that.securityProfile) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(securityProfile); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/securityProfiles/{security_profile}. + */ + public static class Builder { + private String organization; + private String location; + private String securityProfile; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getSecurityProfile() { + return securityProfile; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSecurityProfile(String securityProfile) { + this.securityProfile = securityProfile; + return this; + } + + private Builder(SecurityProfileName securityProfileName) { + Preconditions.checkArgument( + Objects.equals(securityProfileName.pathTemplate, ORGANIZATION_LOCATION_SECURITY_PROFILE), + "toBuilder is only supported when SecurityProfileName has the pattern of" + + " organizations/{organization}/locations/{location}/securityProfiles/{security_profile}"); + this.organization = securityProfileName.organization; + this.location = securityProfileName.location; + this.securityProfile = securityProfileName.securityProfile; + } + + public SecurityProfileName build() { + return new SecurityProfileName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/securityProfiles/{security_profile}. */ + public static class ProjectLocationSecurityProfileBuilder { + private String project; + private String location; + private String securityProfile; + + protected ProjectLocationSecurityProfileBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSecurityProfile() { + return securityProfile; + } + + public ProjectLocationSecurityProfileBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationSecurityProfileBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationSecurityProfileBuilder setSecurityProfile(String securityProfile) { + this.securityProfile = securityProfile; + return this; + } + + public SecurityProfileName build() { + return new SecurityProfileName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileOrBuilder.java new file mode 100644 index 000000000000..4338274faf7e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileOrBuilder.java @@ -0,0 +1,458 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface SecurityProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.SecurityProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * The threat prevention configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + * + * @return Whether the threatPreventionProfile field is set. + */ + boolean hasThreatPreventionProfile(); + + /** + * + * + *
                                                                                              +   * The threat prevention configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + * + * @return The threatPreventionProfile. + */ + com.google.cloud.networksecurity.v1.ThreatPreventionProfile getThreatPreventionProfile(); + + /** + * + * + *
                                                                                              +   * The threat prevention configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7; + * + */ + com.google.cloud.networksecurity.v1.ThreatPreventionProfileOrBuilder + getThreatPreventionProfileOrBuilder(); + + /** + * + * + *
                                                                                              +   * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + * + * @return Whether the customMirroringProfile field is set. + */ + boolean hasCustomMirroringProfile(); + + /** + * + * + *
                                                                                              +   * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + * + * @return The customMirroringProfile. + */ + com.google.cloud.networksecurity.v1.CustomMirroringProfile getCustomMirroringProfile(); + + /** + * + * + *
                                                                                              +   * The custom Packet Mirroring v2 configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9; + * + */ + com.google.cloud.networksecurity.v1.CustomMirroringProfileOrBuilder + getCustomMirroringProfileOrBuilder(); + + /** + * + * + *
                                                                                              +   * The custom TPPI configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + * + * @return Whether the customInterceptProfile field is set. + */ + boolean hasCustomInterceptProfile(); + + /** + * + * + *
                                                                                              +   * The custom TPPI configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + * + * @return The customInterceptProfile. + */ + com.google.cloud.networksecurity.v1.CustomInterceptProfile getCustomInterceptProfile(); + + /** + * + * + *
                                                                                              +   * The custom TPPI configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10; + * + */ + com.google.cloud.networksecurity.v1.CustomInterceptProfileOrBuilder + getCustomInterceptProfileOrBuilder(); + + /** + * + * + *
                                                                                              +   * The URL filtering configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + * + * @return Whether the urlFilteringProfile field is set. + */ + boolean hasUrlFilteringProfile(); + + /** + * + * + *
                                                                                              +   * The URL filtering configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + * + * @return The urlFilteringProfile. + */ + com.google.cloud.networksecurity.v1.UrlFilteringProfile getUrlFilteringProfile(); + + /** + * + * + *
                                                                                              +   * The URL filtering configuration for the SecurityProfile.
                                                                                              +   * 
                                                                                              + * + * .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12; + */ + com.google.cloud.networksecurity.v1.UrlFilteringProfileOrBuilder + getUrlFilteringProfileOrBuilder(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +   * pattern
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Immutable. Identifier. Name of the SecurityProfile resource. It matches
                                                                                              +   * pattern
                                                                                              +   * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
                                                                                              +   * 
                                                                                              + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. An optional description of the profile. Max length 512
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. An optional description of the profile. Max length 512
                                                                                              +   * characters.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Resource creation timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Last resource update timestamp.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. This checksum is computed by the server based on the value of
                                                                                              +   * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +   * client has an up-to-date value before proceeding.
                                                                                              +   * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
                                                                                              +   * Output only. This checksum is computed by the server based on the value of
                                                                                              +   * other fields, and may be sent on update and delete requests to ensure the
                                                                                              +   * client has an up-to-date value before proceeding.
                                                                                              +   * 
                                                                                              + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
                                                                                              +   * Optional. Labels as key value pairs.
                                                                                              +   * 
                                                                                              + * + * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                              +   * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +   * configures.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
                                                                                              +   * Immutable. The single ProfileType that the SecurityProfile resource
                                                                                              +   * configures.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + com.google.cloud.networksecurity.v1.SecurityProfile.ProfileType getType(); + + com.google.cloud.networksecurity.v1.SecurityProfile.ProfileCase getProfileCase(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java index b1781837d89f..a3314e15474a 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicy.java @@ -26,7 +26,13 @@ *
                                                                                                * ServerTlsPolicy is a resource that specifies how a server should authenticate
                                                                                                * incoming requests. This resource itself does not affect configuration unless
                                                                                              - * it is attached to a target https proxy or endpoint config selector resource.
                                                                                              + * it is attached to a target HTTPS proxy or endpoint config selector resource.
                                                                                              + *
                                                                                              + * ServerTlsPolicy in the form accepted by Application Load Balancers can
                                                                                              + * be attached only to TargetHttpsProxy with an `EXTERNAL`, `EXTERNAL_MANAGED`
                                                                                              + * or `INTERNAL_MANAGED` load balancing scheme. Traffic Director compatible
                                                                                              + * ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with
                                                                                              + * Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme.
                                                                                                * 
                                                                                              * * Protobuf type {@code google.cloud.networksecurity.v1.ServerTlsPolicy} @@ -94,6 +100,49 @@ public interface MTLSPolicyOrBuilder * * *
                                                                                              +     * When the client presents an invalid certificate or no certificate to the
                                                                                              +     * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +     * connection is handled.
                                                                                              +     *
                                                                                              +     * Required if the policy is to be used with the Application Load
                                                                                              +     * Balancers. For Traffic Director it must be empty.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @return The enum numeric value on the wire for clientValidationMode. + */ + int getClientValidationModeValue(); + + /** + * + * + *
                                                                                              +     * When the client presents an invalid certificate or no certificate to the
                                                                                              +     * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +     * connection is handled.
                                                                                              +     *
                                                                                              +     * Required if the policy is to be used with the Application Load
                                                                                              +     * Balancers. For Traffic Director it must be empty.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @return The clientValidationMode. + */ + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + getClientValidationMode(); + + /** + * + * + *
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -107,6 +156,8 @@ public interface MTLSPolicyOrBuilder
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -120,6 +171,8 @@ public interface MTLSPolicyOrBuilder
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -133,6 +186,8 @@ public interface MTLSPolicyOrBuilder
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -147,6 +202,8 @@ public interface MTLSPolicyOrBuilder
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -156,6 +213,48 @@ public interface MTLSPolicyOrBuilder
                                                                                                    */
                                                                                                   com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getClientValidationCaOrBuilder(
                                                                                                       int index);
                                                                                              +
                                                                                              +    /**
                                                                                              +     *
                                                                                              +     *
                                                                                              +     * 
                                                                                              +     * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +     * namespace.
                                                                                              +     *
                                                                                              +     * If specified, the chain validation will be performed against certificates
                                                                                              +     * configured in the given TrustConfig.
                                                                                              +     *
                                                                                              +     * Allowed only if the policy is to be used with Application Load
                                                                                              +     * Balancers.
                                                                                              +     * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @return The clientValidationTrustConfig. + */ + java.lang.String getClientValidationTrustConfig(); + + /** + * + * + *
                                                                                              +     * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +     * namespace.
                                                                                              +     *
                                                                                              +     * If specified, the chain validation will be performed against certificates
                                                                                              +     * configured in the given TrustConfig.
                                                                                              +     *
                                                                                              +     * Allowed only if the policy is to be used with Application Load
                                                                                              +     * Balancers.
                                                                                              +     * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientValidationTrustConfig. + */ + com.google.protobuf.ByteString getClientValidationTrustConfigBytes(); } /** @@ -189,7 +288,9 @@ private MTLSPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { } private MTLSPolicy() { + clientValidationMode_ = 0; clientValidationCa_ = java.util.Collections.emptyList(); + clientValidationTrustConfig_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -207,6 +308,257 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder.class); } + /** + * + * + *
                                                                                              +     * Mutual TLS certificate validation mode.
                                                                                              +     * 
                                                                                              + * + * Protobuf enum {@code + * google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode} + */ + public enum ClientValidationMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +       * Not allowed.
                                                                                              +       * 
                                                                                              + * + * CLIENT_VALIDATION_MODE_UNSPECIFIED = 0; + */ + CLIENT_VALIDATION_MODE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +       * Allow connection even if certificate chain validation
                                                                                              +       * of the client certificate failed or no client certificate was
                                                                                              +       * presented. The proof of possession of the private key is always checked
                                                                                              +       * if client certificate was presented. This mode requires the backend to
                                                                                              +       * implement processing of data extracted from a client certificate to
                                                                                              +       * authenticate the peer, or to reject connections if the client
                                                                                              +       * certificate fingerprint is missing.
                                                                                              +       * 
                                                                                              + * + * ALLOW_INVALID_OR_MISSING_CLIENT_CERT = 1; + */ + ALLOW_INVALID_OR_MISSING_CLIENT_CERT(1), + /** + * + * + *
                                                                                              +       * Require a client certificate and allow connection to the backend only
                                                                                              +       * if validation of the client certificate passed.
                                                                                              +       *
                                                                                              +       * If set, requires a reference to non-empty TrustConfig specified in
                                                                                              +       * `client_validation_trust_config`.
                                                                                              +       * 
                                                                                              + * + * REJECT_INVALID = 2; + */ + REJECT_INVALID(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClientValidationMode"); + } + + /** + * + * + *
                                                                                              +       * Not allowed.
                                                                                              +       * 
                                                                                              + * + * CLIENT_VALIDATION_MODE_UNSPECIFIED = 0; + */ + public static final int CLIENT_VALIDATION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +       * Allow connection even if certificate chain validation
                                                                                              +       * of the client certificate failed or no client certificate was
                                                                                              +       * presented. The proof of possession of the private key is always checked
                                                                                              +       * if client certificate was presented. This mode requires the backend to
                                                                                              +       * implement processing of data extracted from a client certificate to
                                                                                              +       * authenticate the peer, or to reject connections if the client
                                                                                              +       * certificate fingerprint is missing.
                                                                                              +       * 
                                                                                              + * + * ALLOW_INVALID_OR_MISSING_CLIENT_CERT = 1; + */ + public static final int ALLOW_INVALID_OR_MISSING_CLIENT_CERT_VALUE = 1; + + /** + * + * + *
                                                                                              +       * Require a client certificate and allow connection to the backend only
                                                                                              +       * if validation of the client certificate passed.
                                                                                              +       *
                                                                                              +       * If set, requires a reference to non-empty TrustConfig specified in
                                                                                              +       * `client_validation_trust_config`.
                                                                                              +       * 
                                                                                              + * + * REJECT_INVALID = 2; + */ + public static final int REJECT_INVALID_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ClientValidationMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ClientValidationMode forNumber(int value) { + switch (value) { + case 0: + return CLIENT_VALIDATION_MODE_UNSPECIFIED; + case 1: + return ALLOW_INVALID_OR_MISSING_CLIENT_CERT; + case 2: + return REJECT_INVALID; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClientValidationMode findValueByNumber(int number) { + return ClientValidationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ClientValidationMode[] VALUES = values(); + + public static ClientValidationMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ClientValidationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode) + } + + public static final int CLIENT_VALIDATION_MODE_FIELD_NUMBER = 2; + private int clientValidationMode_ = 0; + + /** + * + * + *
                                                                                              +     * When the client presents an invalid certificate or no certificate to the
                                                                                              +     * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +     * connection is handled.
                                                                                              +     *
                                                                                              +     * Required if the policy is to be used with the Application Load
                                                                                              +     * Balancers. For Traffic Director it must be empty.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @return The enum numeric value on the wire for clientValidationMode. + */ + @java.lang.Override + public int getClientValidationModeValue() { + return clientValidationMode_; + } + + /** + * + * + *
                                                                                              +     * When the client presents an invalid certificate or no certificate to the
                                                                                              +     * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +     * connection is handled.
                                                                                              +     *
                                                                                              +     * Required if the policy is to be used with the Application Load
                                                                                              +     * Balancers. For Traffic Director it must be empty.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @return The clientValidationMode. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + getClientValidationMode() { + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode result = + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + .forNumber(clientValidationMode_); + return result == null + ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + .UNRECOGNIZED + : result; + } + public static final int CLIENT_VALIDATION_CA_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -216,6 +568,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -233,6 +587,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -250,6 +606,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -266,6 +624,8 @@ public int getClientValidationCaCount() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -282,6 +642,8 @@ public com.google.cloud.networksecurity.v1.ValidationCA getClientValidationCa(in
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Required if the policy is to be used with Traffic Director. For
                                                                                              +     * Application Load Balancers it must be empty.
                                                                                                    *
                                                                                                    * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                    * validate the client certificate.
                                                                                              @@ -295,6 +657,75 @@ public com.google.cloud.networksecurity.v1.ValidationCAOrBuilder getClientValida
                                                                                                     return clientValidationCa_.get(index);
                                                                                                   }
                                                                                               
                                                                                              +    public static final int CLIENT_VALIDATION_TRUST_CONFIG_FIELD_NUMBER = 4;
                                                                                              +
                                                                                              +    @SuppressWarnings("serial")
                                                                                              +    private volatile java.lang.Object clientValidationTrustConfig_ = "";
                                                                                              +
                                                                                              +    /**
                                                                                              +     *
                                                                                              +     *
                                                                                              +     * 
                                                                                              +     * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +     * namespace.
                                                                                              +     *
                                                                                              +     * If specified, the chain validation will be performed against certificates
                                                                                              +     * configured in the given TrustConfig.
                                                                                              +     *
                                                                                              +     * Allowed only if the policy is to be used with Application Load
                                                                                              +     * Balancers.
                                                                                              +     * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @return The clientValidationTrustConfig. + */ + @java.lang.Override + public java.lang.String getClientValidationTrustConfig() { + java.lang.Object ref = clientValidationTrustConfig_; + 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(); + clientValidationTrustConfig_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +     * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +     * namespace.
                                                                                              +     *
                                                                                              +     * If specified, the chain validation will be performed against certificates
                                                                                              +     * configured in the given TrustConfig.
                                                                                              +     *
                                                                                              +     * Allowed only if the policy is to be used with Application Load
                                                                                              +     * Balancers.
                                                                                              +     * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientValidationTrustConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientValidationTrustConfigBytes() { + java.lang.Object ref = clientValidationTrustConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientValidationTrustConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -312,6 +743,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < clientValidationCa_.size(); i++) { output.writeMessage(1, clientValidationCa_.get(i)); } + if (clientValidationMode_ + != com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + .CLIENT_VALIDATION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, clientValidationMode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientValidationTrustConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, clientValidationTrustConfig_); + } getUnknownFields().writeTo(output); } @@ -325,6 +765,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clientValidationCa_.get(i)); } + if (clientValidationMode_ + != com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + .CLIENT_VALIDATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, clientValidationMode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientValidationTrustConfig_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(4, clientValidationTrustConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -341,7 +791,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy other = (com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) obj; + if (clientValidationMode_ != other.clientValidationMode_) return false; if (!getClientValidationCaList().equals(other.getClientValidationCaList())) return false; + if (!getClientValidationTrustConfig().equals(other.getClientValidationTrustConfig())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,10 +806,14 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLIENT_VALIDATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + clientValidationMode_; if (getClientValidationCaCount() > 0) { hash = (37 * hash) + CLIENT_VALIDATION_CA_FIELD_NUMBER; hash = (53 * hash) + getClientValidationCaList().hashCode(); } + hash = (37 * hash) + CLIENT_VALIDATION_TRUST_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getClientValidationTrustConfig().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -498,13 +955,15 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + clientValidationMode_ = 0; if (clientValidationCaBuilder_ == null) { clientValidationCa_ = java.util.Collections.emptyList(); } else { clientValidationCa_ = null; clientValidationCaBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); + clientValidationTrustConfig_ = ""; return this; } @@ -544,9 +1003,9 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy buildParti private void buildPartialRepeatedFields( com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy result) { if (clientValidationCaBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { clientValidationCa_ = java.util.Collections.unmodifiableList(clientValidationCa_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.clientValidationCa_ = clientValidationCa_; } else { @@ -557,6 +1016,12 @@ private void buildPartialRepeatedFields( private void buildPartial0( com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientValidationMode_ = clientValidationMode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientValidationTrustConfig_ = clientValidationTrustConfig_; + } } @java.lang.Override @@ -574,11 +1039,14 @@ public Builder mergeFrom( if (other == com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.getDefaultInstance()) return this; + if (other.clientValidationMode_ != 0) { + setClientValidationModeValue(other.getClientValidationModeValue()); + } if (clientValidationCaBuilder_ == null) { if (!other.clientValidationCa_.isEmpty()) { if (clientValidationCa_.isEmpty()) { clientValidationCa_ = other.clientValidationCa_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureClientValidationCaIsMutable(); clientValidationCa_.addAll(other.clientValidationCa_); @@ -591,7 +1059,7 @@ public Builder mergeFrom( clientValidationCaBuilder_.dispose(); clientValidationCaBuilder_ = null; clientValidationCa_ = other.clientValidationCa_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); clientValidationCaBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetClientValidationCaFieldBuilder() @@ -601,6 +1069,11 @@ public Builder mergeFrom( } } } + if (!other.getClientValidationTrustConfig().isEmpty()) { + clientValidationTrustConfig_ = other.clientValidationTrustConfig_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -641,6 +1114,18 @@ public Builder mergeFrom( } break; } // case 10 + case 16: + { + clientValidationMode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 34: + { + clientValidationTrustConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -660,15 +1145,152 @@ public Builder mergeFrom( private int bitField0_; + private int clientValidationMode_ = 0; + + /** + * + * + *
                                                                                              +       * When the client presents an invalid certificate or no certificate to the
                                                                                              +       * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +       * connection is handled.
                                                                                              +       *
                                                                                              +       * Required if the policy is to be used with the Application Load
                                                                                              +       * Balancers. For Traffic Director it must be empty.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @return The enum numeric value on the wire for clientValidationMode. + */ + @java.lang.Override + public int getClientValidationModeValue() { + return clientValidationMode_; + } + + /** + * + * + *
                                                                                              +       * When the client presents an invalid certificate or no certificate to the
                                                                                              +       * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +       * connection is handled.
                                                                                              +       *
                                                                                              +       * Required if the policy is to be used with the Application Load
                                                                                              +       * Balancers. For Traffic Director it must be empty.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @param value The enum numeric value on the wire for clientValidationMode to set. + * @return This builder for chaining. + */ + public Builder setClientValidationModeValue(int value) { + clientValidationMode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * When the client presents an invalid certificate or no certificate to the
                                                                                              +       * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +       * connection is handled.
                                                                                              +       *
                                                                                              +       * Required if the policy is to be used with the Application Load
                                                                                              +       * Balancers. For Traffic Director it must be empty.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @return The clientValidationMode. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + getClientValidationMode() { + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode result = + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + .forNumber(clientValidationMode_); + return result == null + ? com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +       * When the client presents an invalid certificate or no certificate to the
                                                                                              +       * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +       * connection is handled.
                                                                                              +       *
                                                                                              +       * Required if the policy is to be used with the Application Load
                                                                                              +       * Balancers. For Traffic Director it must be empty.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @param value The clientValidationMode to set. + * @return This builder for chaining. + */ + public Builder setClientValidationMode( + com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clientValidationMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * When the client presents an invalid certificate or no certificate to the
                                                                                              +       * load balancer, the `client_validation_mode` specifies how the client
                                                                                              +       * connection is handled.
                                                                                              +       *
                                                                                              +       * Required if the policy is to be used with the Application Load
                                                                                              +       * Balancers. For Traffic Director it must be empty.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearClientValidationMode() { + bitField0_ = (bitField0_ & ~0x00000001); + clientValidationMode_ = 0; + onChanged(); + return this; + } + private java.util.List clientValidationCa_ = java.util.Collections.emptyList(); private void ensureClientValidationCaIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { clientValidationCa_ = new java.util.ArrayList( clientValidationCa_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -682,6 +1304,8 @@ private void ensureClientValidationCaIsMutable() { * * *
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -703,6 +1327,8 @@ private void ensureClientValidationCaIsMutable() {
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -723,6 +1349,8 @@ public int getClientValidationCaCount() {
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -743,6 +1371,8 @@ public com.google.cloud.networksecurity.v1.ValidationCA getClientValidationCa(in
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -770,6 +1400,8 @@ public Builder setClientValidationCa(
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -794,6 +1426,8 @@ public Builder setClientValidationCa(
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -820,6 +1454,8 @@ public Builder addClientValidationCa(com.google.cloud.networksecurity.v1.Validat
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -847,6 +1483,8 @@ public Builder addClientValidationCa(
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -871,6 +1509,8 @@ public Builder addClientValidationCa(
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -895,6 +1535,8 @@ public Builder addClientValidationCa(
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -919,6 +1561,8 @@ public Builder addAllClientValidationCa(
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -930,7 +1574,7 @@ public Builder addAllClientValidationCa(
                                                                                                     public Builder clearClientValidationCa() {
                                                                                                       if (clientValidationCaBuilder_ == null) {
                                                                                                         clientValidationCa_ = java.util.Collections.emptyList();
                                                                                              -          bitField0_ = (bitField0_ & ~0x00000001);
                                                                                              +          bitField0_ = (bitField0_ & ~0x00000002);
                                                                                                         onChanged();
                                                                                                       } else {
                                                                                                         clientValidationCaBuilder_.clear();
                                                                                              @@ -942,6 +1586,8 @@ public Builder clearClientValidationCa() {
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -965,6 +1611,8 @@ public Builder removeClientValidationCa(int index) {
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -982,6 +1630,8 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder getClientValidat
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -1003,6 +1653,8 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder getClientValidat
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -1024,6 +1676,8 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder getClientValidat
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -1042,6 +1696,8 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder getClientValidat
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -1061,6 +1717,8 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addClientValidat
                                                                                                      *
                                                                                                      *
                                                                                                      * 
                                                                                              +       * Required if the policy is to be used with Traffic Director. For
                                                                                              +       * Application Load Balancers it must be empty.
                                                                                                      *
                                                                                                      * Defines the mechanism to obtain the Certificate Authority certificate to
                                                                                                      * validate the client certificate.
                                                                                              @@ -1086,7 +1744,7 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addClientValidat
                                                                                                                 com.google.cloud.networksecurity.v1.ValidationCA.Builder,
                                                                                                                 com.google.cloud.networksecurity.v1.ValidationCAOrBuilder>(
                                                                                                                 clientValidationCa_,
                                                                                              -                  ((bitField0_ & 0x00000001) != 0),
                                                                                              +                  ((bitField0_ & 0x00000002) != 0),
                                                                                                                 getParentForChildren(),
                                                                                                                 isClean());
                                                                                                         clientValidationCa_ = null;
                                                                                              @@ -1094,6 +1752,157 @@ public com.google.cloud.networksecurity.v1.ValidationCA.Builder addClientValidat
                                                                                                       return clientValidationCaBuilder_;
                                                                                                     }
                                                                                               
                                                                                              +      private java.lang.Object clientValidationTrustConfig_ = "";
                                                                                              +
                                                                                              +      /**
                                                                                              +       *
                                                                                              +       *
                                                                                              +       * 
                                                                                              +       * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +       * namespace.
                                                                                              +       *
                                                                                              +       * If specified, the chain validation will be performed against certificates
                                                                                              +       * configured in the given TrustConfig.
                                                                                              +       *
                                                                                              +       * Allowed only if the policy is to be used with Application Load
                                                                                              +       * Balancers.
                                                                                              +       * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @return The clientValidationTrustConfig. + */ + public java.lang.String getClientValidationTrustConfig() { + java.lang.Object ref = clientValidationTrustConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientValidationTrustConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +       * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +       * namespace.
                                                                                              +       *
                                                                                              +       * If specified, the chain validation will be performed against certificates
                                                                                              +       * configured in the given TrustConfig.
                                                                                              +       *
                                                                                              +       * Allowed only if the policy is to be used with Application Load
                                                                                              +       * Balancers.
                                                                                              +       * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientValidationTrustConfig. + */ + public com.google.protobuf.ByteString getClientValidationTrustConfigBytes() { + java.lang.Object ref = clientValidationTrustConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientValidationTrustConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +       * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +       * namespace.
                                                                                              +       *
                                                                                              +       * If specified, the chain validation will be performed against certificates
                                                                                              +       * configured in the given TrustConfig.
                                                                                              +       *
                                                                                              +       * Allowed only if the policy is to be used with Application Load
                                                                                              +       * Balancers.
                                                                                              +       * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @param value The clientValidationTrustConfig to set. + * @return This builder for chaining. + */ + public Builder setClientValidationTrustConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientValidationTrustConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +       * namespace.
                                                                                              +       *
                                                                                              +       * If specified, the chain validation will be performed against certificates
                                                                                              +       * configured in the given TrustConfig.
                                                                                              +       *
                                                                                              +       * Allowed only if the policy is to be used with Application Load
                                                                                              +       * Balancers.
                                                                                              +       * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearClientValidationTrustConfig() { + clientValidationTrustConfig_ = getDefaultInstance().getClientValidationTrustConfig(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Reference to the TrustConfig from certificatemanager.googleapis.com
                                                                                              +       * namespace.
                                                                                              +       *
                                                                                              +       * If specified, the chain validation will be performed against certificates
                                                                                              +       * configured in the given TrustConfig.
                                                                                              +       *
                                                                                              +       * Allowed only if the policy is to be used with Application Load
                                                                                              +       * Balancers.
                                                                                              +       * 
                                                                                              + * + * string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for clientValidationTrustConfig to set. + * @return This builder for chaining. + */ + public Builder setClientValidationTrustConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientValidationTrustConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy) } @@ -1476,6 +2285,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
                                                                                              +   * This field applies only for Traffic Director policies. It is must be set to
                                                                                              +   * false for Application Load Balancer policies.
                                                                                                  *
                                                                                                  * Determines if server allows plaintext connections. If set to true, server
                                                                                                  * allows plain text connections. By default, it is set to false. This setting
                                                                                              @@ -1504,6 +2315,8 @@ public boolean getAllowOpen() {
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +   * Load Balancers must be empty.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision server identity (public and private keys).
                                                                                                  * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -1523,6 +2336,8 @@ public boolean hasServerCertificate() {
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +   * Load Balancers must be empty.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision server identity (public and private keys).
                                                                                                  * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -1544,6 +2359,8 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getServerCertific
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +   * Load Balancers must be empty.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision server identity (public and private keys).
                                                                                                  * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -1567,6 +2384,8 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getServerCertific
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * This field is required if the policy is used with Application Load
                                                                                              +   * Balancers. This field can be empty for Traffic Director.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                  * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -1588,6 +2407,8 @@ public boolean hasMtlsPolicy() {
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * This field is required if the policy is used with Application Load
                                                                                              +   * Balancers. This field can be empty for Traffic Director.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                  * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -1611,6 +2432,8 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getMtlsPol
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * This field is required if the policy is used with Application Load
                                                                                              +   * Balancers. This field can be empty for Traffic Director.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                  * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -1886,7 +2709,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
                                                                                                  * 
                                                                                                  * ServerTlsPolicy is a resource that specifies how a server should authenticate
                                                                                                  * incoming requests. This resource itself does not affect configuration unless
                                                                                              -   * it is attached to a target https proxy or endpoint config selector resource.
                                                                                              +   * it is attached to a target HTTPS proxy or endpoint config selector resource.
                                                                                              +   *
                                                                                              +   * ServerTlsPolicy in the form accepted by Application Load Balancers can
                                                                                              +   * be attached only to TargetHttpsProxy with an `EXTERNAL`, `EXTERNAL_MANAGED`
                                                                                              +   * or `INTERNAL_MANAGED` load balancing scheme. Traffic Director compatible
                                                                                              +   * ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with
                                                                                              +   * Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme.
                                                                                                  * 
                                                                                              * * Protobuf type {@code google.cloud.networksecurity.v1.ServerTlsPolicy} @@ -3023,6 +3852,8 @@ public Builder putAllLabels(java.util.Map va * * *
                                                                                              +     * This field applies only for Traffic Director policies. It is must be set to
                                                                                              +     * false for Application Load Balancer policies.
                                                                                                    *
                                                                                                    * Determines if server allows plaintext connections. If set to true, server
                                                                                                    * allows plain text connections. By default, it is set to false. This setting
                                                                                              @@ -3048,6 +3879,8 @@ public boolean getAllowOpen() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field applies only for Traffic Director policies. It is must be set to
                                                                                              +     * false for Application Load Balancer policies.
                                                                                                    *
                                                                                                    * Determines if server allows plaintext connections. If set to true, server
                                                                                                    * allows plain text connections. By default, it is set to false. This setting
                                                                                              @@ -3077,6 +3910,8 @@ public Builder setAllowOpen(boolean value) {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field applies only for Traffic Director policies. It is must be set to
                                                                                              +     * false for Application Load Balancer policies.
                                                                                                    *
                                                                                                    * Determines if server allows plaintext connections. If set to true, server
                                                                                                    * allows plain text connections. By default, it is set to false. This setting
                                                                                              @@ -3111,6 +3946,8 @@ public Builder clearAllowOpen() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3129,6 +3966,8 @@ public boolean hasServerCertificate() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3153,6 +3992,8 @@ public com.google.cloud.networksecurity.v1.CertificateProvider getServerCertific
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3180,6 +4021,8 @@ public Builder setServerCertificate(
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3204,6 +4047,8 @@ public Builder setServerCertificate(
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3237,6 +4082,8 @@ public Builder mergeServerCertificate(
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3260,6 +4107,8 @@ public Builder clearServerCertificate() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3279,6 +4128,8 @@ public Builder clearServerCertificate() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3302,6 +4153,8 @@ public Builder clearServerCertificate() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +     * Load Balancers must be empty.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision server identity (public and private keys).
                                                                                                    * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -3338,6 +4191,8 @@ public Builder clearServerCertificate() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -3358,6 +4213,8 @@ public boolean hasMtlsPolicy() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -3384,6 +4241,8 @@ public com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy getMtlsPol
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -3413,6 +4272,8 @@ public Builder setMtlsPolicy(
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -3439,6 +4300,8 @@ public Builder setMtlsPolicy(
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -3475,6 +4338,8 @@ public Builder mergeMtlsPolicy(
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -3500,6 +4365,8 @@ public Builder clearMtlsPolicy() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -3521,6 +4388,8 @@ public Builder clearMtlsPolicy() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -3546,6 +4415,8 @@ public Builder clearMtlsPolicy() {
                                                                                                    *
                                                                                                    *
                                                                                                    * 
                                                                                              +     * This field is required if the policy is used with Application Load
                                                                                              +     * Balancers. This field can be empty for Traffic Director.
                                                                                                    *
                                                                                                    * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                    * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
                                                                                              index 6dd6cd58779e..cd724db1edc9 100644
                                                                                              --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
                                                                                              +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyOrBuilder.java
                                                                                              @@ -227,6 +227,8 @@ java.lang.String getLabelsOrDefault(
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * This field applies only for Traffic Director policies. It is must be set to
                                                                                              +   * false for Application Load Balancer policies.
                                                                                                  *
                                                                                                  * Determines if server allows plaintext connections. If set to true, server
                                                                                                  * allows plain text connections. By default, it is set to false. This setting
                                                                                              @@ -249,6 +251,8 @@ java.lang.String getLabelsOrDefault(
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +   * Load Balancers must be empty.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision server identity (public and private keys).
                                                                                                  * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -265,6 +269,8 @@ java.lang.String getLabelsOrDefault(
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +   * Load Balancers must be empty.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision server identity (public and private keys).
                                                                                                  * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -281,6 +287,8 @@ java.lang.String getLabelsOrDefault(
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * Optional if policy is to be used with Traffic Director. For Application
                                                                                              +   * Load Balancers must be empty.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision server identity (public and private keys).
                                                                                                  * Cannot be combined with `allow_open` as a permissive mode that allows both
                                                                                              @@ -295,6 +303,8 @@ java.lang.String getLabelsOrDefault(
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * This field is required if the policy is used with Application Load
                                                                                              +   * Balancers. This field can be empty for Traffic Director.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                  * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -313,6 +323,8 @@ java.lang.String getLabelsOrDefault(
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * This field is required if the policy is used with Application Load
                                                                                              +   * Balancers. This field can be empty for Traffic Director.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                  * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              @@ -331,6 +343,8 @@ java.lang.String getLabelsOrDefault(
                                                                                                  *
                                                                                                  *
                                                                                                  * 
                                                                                              +   * This field is required if the policy is used with Application Load
                                                                                              +   * Balancers. This field can be empty for Traffic Director.
                                                                                                  *
                                                                                                  * Defines a mechanism to provision peer validation certificates for peer to
                                                                                                  * peer authentication (Mutual TLS - mTLS). If not specified, client
                                                                                              diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java
                                                                                              index 13bdbfbe102e..fce3394a75a2 100644
                                                                                              --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java
                                                                                              +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyProto.java
                                                                                              @@ -89,7 +89,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                                                                                         + "7google/cloud/networksecurity/v1/server_tls_policy.proto\022\037google.cloud.networks"
                                                                                                         + "ecurity.v1\032\037google/api/field_behavior.pr"
                                                                                                         + "oto\032\031google/api/resource.proto\032)google/cloud/networksecurity/v1/tls.proto\032"
                                                                                              -          + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\272\005\n"
                                                                                              +          + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\207\010\n"
                                                                                                         + "\017ServerTlsPolicy\022\021\n"
                                                                                                         + "\004name\030\001 \001(\tB\003\340A\002\022\023\n"
                                                                                                         + "\013description\030\002 \001(\t\0224\n"
                                                                                              @@ -101,25 +101,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                                                                                         + "\022server_certificate\030\007 \001(\01324.goo"
                                                                                                         + "gle.cloud.networksecurity.v1.CertificateProvider\022P\n"
                                                                                                         + "\013mtls_policy\030\010 \001(\0132;.google.c"
                                                                                              -          + "loud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy\032Y\n\n"
                                                                                              -          + "MTLSPolicy\022K\n"
                                                                                              +          + "loud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy\032\245\003\n\n"
                                                                                              +          + "MTLSPolicy\022p\n"
                                                                                              +          + "\026client_validation_mode\030\002 \001(\0162P.google.cloud.network"
                                                                                              +          + "security.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode\022K\n"
                                                                                                         + "\024client_validation_ca\030\001"
                                                                                              -          + " \003(\0132-.google.cloud.networksecurity.v1.ValidationCA\032-\n"
                                                                                              +          + " \003(\0132-.google.cloud.networksecurity.v1.ValidationCA\022Z\n"
                                                                                              +          + "\036client_validation_trust_config\030\004 \001(\tB2\372A/\n"
                                                                                              +          + "-certificatemanager.googleapis.com/TrustConfig\"|\n"
                                                                                              +          + "\024ClientValidationMode\022&\n"
                                                                                              +          + "\"CLIENT_VALIDATION_MODE_UNSPECIFIED\020\000\022(\n"
                                                                                              +          + "$ALLOW_INVALID_OR_MISSING_CLIENT_CERT\020\001\022\022\n"
                                                                                              +          + "\016REJECT_INVALID\020\002\032-\n"
                                                                                                         + "\013LabelsEntry\022\013\n"
                                                                                                         + "\003key\030\001 \001(\t\022\r\n"
                                                                                                         + "\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n"
                                                                                              -          + ".networksecurity.googleapis.com/ServerTlsPoli"
                                                                                              -          + "cy\022Mprojects/{project}/locations/{locati"
                                                                                              -          + "on}/serverTlsPolicies/{server_tls_policy}\"\200\001\n"
                                                                                              +          + ".networksecurity.googleapis.com/ServerTlsPolicy\022Mprojects/{project}/loca"
                                                                                              +          + "tions/{location}/serverTlsPolicies/{server_tls_policy}\"\245\001\n"
                                                                                                         + "\034ListServerTlsPoliciesRequest\0229\n"
                                                                                                         + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
                                                                                                         + "!locations.googleapis.com/Location\022\021\n"
                                                                                                         + "\tpage_size\030\002 \001(\005\022\022\n\n"
                                                                                              -          + "page_token\030\003 \001(\t\"\207\001\n"
                                                                                              +          + "page_token\030\003 \001(\t\022#\n"
                                                                                              +          + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\234\001\n"
                                                                                                         + "\035ListServerTlsPoliciesResponse\022M\n"
                                                                                              -          + "\023server_tls_policies\030\001 \003(\01320.go"
                                                                                              -          + "ogle.cloud.networksecurity.v1.ServerTlsPolicy\022\027\n"
                                                                                              -          + "\017next_page_token\030\002 \001(\t\"a\n"
                                                                                              +          + "\023server_tls_policies\030\001"
                                                                                              +          + " \003(\01320.google.cloud.networksecurity.v1.ServerTlsPolicy\022\027\n"
                                                                                              +          + "\017next_page_token\030\002 \001(\t\022\023\n"
                                                                                              +          + "\013unreachable\030\003 \003(\t\"a\n"
                                                                                                         + "\031GetServerTlsPolicyRequest\022D\n"
                                                                                                         + "\004name\030\001 \001(\tB6\340A\002\372A0\n"
                                                                                                         + ".networksecurity.googleapis.com/ServerTlsPolicy\"\333\001\n"
                                                                                              @@ -131,16 +140,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                                                                                         + " \001(\01320.google.cloud.networksecurity.v1.ServerTlsPolicyB\003\340A\002\"\246\001\n"
                                                                                                         + "\034UpdateServerTlsPolicyRequest\0224\n"
                                                                                                         + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022P\n"
                                                                                              -          + "\021server_tls_policy\030\002 \001(\01320.google.cloud"
                                                                                              -          + ".networksecurity.v1.ServerTlsPolicyB\003\340A\002\"d\n"
                                                                                              +          + "\021server_tls_policy\030\002"
                                                                                              +          + " \001(\01320.google.cloud.networksecurity.v1.ServerTlsPolicyB\003\340A\002\"d\n"
                                                                                                         + "\034DeleteServerTlsPolicyRequest\022D\n"
                                                                                                         + "\004name\030\001 \001(\tB6\340A\002\372A0\n"
                                                                                                         + ".networksecurity.googleapis.com/ServerTlsPolicyB\365\001\n"
                                                                                              -          + "#com.google.cloud.networksecurity.v1B\024ServerTlsPolicyP"
                                                                                              -          + "rotoP\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecur"
                                                                                              -          + "itypb\252\002\037Google.Cloud.NetworkSecurity.V1\312"
                                                                                              -          + "\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Goog"
                                                                                              -          + "le::Cloud::NetworkSecurity::V1b\006proto3"
                                                                                              +          + "#com.google.cloud.networksecurity.v1B\024ServerTlsPolicyProtoP\001ZMc"
                                                                                              +          + "loud.google.com/go/networksecurity/apiv1"
                                                                                              +          + "/networksecuritypb;networksecuritypb\252\002\037G"
                                                                                              +          + "oogle.Cloud.NetworkSecurity.V1\312\002\037Google\\"
                                                                                              +          + "Cloud\\NetworkSecurity\\V1\352\002\"Google::Cloud::NetworkSecurity::V1b\006proto3"
                                                                                                   };
                                                                                                   descriptor =
                                                                                                       com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
                                                                                              @@ -173,7 +182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                                                                                       new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                                                                                           internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_MTLSPolicy_descriptor,
                                                                                                           new java.lang.String[] {
                                                                                              -              "ClientValidationCa",
                                                                                              +              "ClientValidationMode", "ClientValidationCa", "ClientValidationTrustConfig",
                                                                                                           });
                                                                                                   internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_LabelsEntry_descriptor =
                                                                                                       internal_static_google_cloud_networksecurity_v1_ServerTlsPolicy_descriptor.getNestedType(1);
                                                                                              @@ -189,7 +198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                                                                                       new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                                                                                           internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesRequest_descriptor,
                                                                                                           new java.lang.String[] {
                                                                                              -              "Parent", "PageSize", "PageToken",
                                                                                              +              "Parent", "PageSize", "PageToken", "ReturnPartialSuccess",
                                                                                                           });
                                                                                                   internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor =
                                                                                                       getDescriptor().getMessageType(2);
                                                                                              @@ -197,7 +206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                                                                                       new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                                                                                           internal_static_google_cloud_networksecurity_v1_ListServerTlsPoliciesResponse_descriptor,
                                                                                                           new java.lang.String[] {
                                                                                              -              "ServerTlsPolicies", "NextPageToken",
                                                                                              +              "ServerTlsPolicies", "NextPageToken", "Unreachable",
                                                                                                           });
                                                                                                   internal_static_google_cloud_networksecurity_v1_GetServerTlsPolicyRequest_descriptor =
                                                                                                       getDescriptor().getMessageType(3);
                                                                                              diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/Severity.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/Severity.java
                                                                                              new file mode 100644
                                                                                              index 000000000000..2f1e63fa2233
                                                                                              --- /dev/null
                                                                                              +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/Severity.java
                                                                                              @@ -0,0 +1,289 @@
                                                                                              +/*
                                                                                              + * Copyright 2026 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!
                                                                                              +// NO CHECKED-IN PROTOBUF GENCODE
                                                                                              +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto
                                                                                              +// Protobuf Java Version: 4.33.2
                                                                                              +
                                                                                              +package com.google.cloud.networksecurity.v1;
                                                                                              +
                                                                                              +/**
                                                                                              + *
                                                                                              + *
                                                                                              + * 
                                                                                              + * Severity level.
                                                                                              + * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.Severity} + */ +@com.google.protobuf.Generated +public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +   * Severity level not specified.
                                                                                              +   * 
                                                                                              + * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +   * Suspicious events that do not pose an immediate threat, but that are
                                                                                              +   * reported to call attention to deeper problems that could possibly exist.
                                                                                              +   * 
                                                                                              + * + * INFORMATIONAL = 1; + */ + INFORMATIONAL(1), + /** + * + * + *
                                                                                              +   * Warning-level threats that have very little impact on an organization's
                                                                                              +   * infrastructure. They usually require local or physical system access and
                                                                                              +   * may often result in victim privacy issues and information leakage.
                                                                                              +   * 
                                                                                              + * + * LOW = 2; + */ + LOW(2), + /** + * + * + *
                                                                                              +   * Minor threats in which impact is minimized, that do not compromise the
                                                                                              +   * target or exploits that require an attacker to reside on the same local
                                                                                              +   * network as the victim, affect only non-standard configurations or obscure
                                                                                              +   * applications, or provide very limited access.
                                                                                              +   * 
                                                                                              + * + * MEDIUM = 3; + */ + MEDIUM(3), + /** + * + * + *
                                                                                              +   * Threats that have the ability to become critical but have mitigating
                                                                                              +   * factors; for example, they may be difficult to exploit, do not result in
                                                                                              +   * elevated privileges, or do not have a large victim pool.
                                                                                              +   * 
                                                                                              + * + * HIGH = 4; + */ + HIGH(4), + /** + * + * + *
                                                                                              +   * Serious threats, such as those that affect default installations of widely
                                                                                              +   * deployed software, result in root compromise of servers, and the exploit
                                                                                              +   * code is widely available to attackers. The attacker usually does not need
                                                                                              +   * any special authentication credentials or knowledge about the individual
                                                                                              +   * victims and the target does not need to be manipulated into performing any
                                                                                              +   * special functions.
                                                                                              +   * 
                                                                                              + * + * CRITICAL = 5; + */ + CRITICAL(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Severity"); + } + + /** + * + * + *
                                                                                              +   * Severity level not specified.
                                                                                              +   * 
                                                                                              + * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +   * Suspicious events that do not pose an immediate threat, but that are
                                                                                              +   * reported to call attention to deeper problems that could possibly exist.
                                                                                              +   * 
                                                                                              + * + * INFORMATIONAL = 1; + */ + public static final int INFORMATIONAL_VALUE = 1; + + /** + * + * + *
                                                                                              +   * Warning-level threats that have very little impact on an organization's
                                                                                              +   * infrastructure. They usually require local or physical system access and
                                                                                              +   * may often result in victim privacy issues and information leakage.
                                                                                              +   * 
                                                                                              + * + * LOW = 2; + */ + public static final int LOW_VALUE = 2; + + /** + * + * + *
                                                                                              +   * Minor threats in which impact is minimized, that do not compromise the
                                                                                              +   * target or exploits that require an attacker to reside on the same local
                                                                                              +   * network as the victim, affect only non-standard configurations or obscure
                                                                                              +   * applications, or provide very limited access.
                                                                                              +   * 
                                                                                              + * + * MEDIUM = 3; + */ + public static final int MEDIUM_VALUE = 3; + + /** + * + * + *
                                                                                              +   * Threats that have the ability to become critical but have mitigating
                                                                                              +   * factors; for example, they may be difficult to exploit, do not result in
                                                                                              +   * elevated privileges, or do not have a large victim pool.
                                                                                              +   * 
                                                                                              + * + * HIGH = 4; + */ + public static final int HIGH_VALUE = 4; + + /** + * + * + *
                                                                                              +   * Serious threats, such as those that affect default installations of widely
                                                                                              +   * deployed software, result in root compromise of servers, and the exploit
                                                                                              +   * code is widely available to attackers. The attacker usually does not need
                                                                                              +   * any special authentication credentials or knowledge about the individual
                                                                                              +   * victims and the target does not need to be manipulated into performing any
                                                                                              +   * special functions.
                                                                                              +   * 
                                                                                              + * + * CRITICAL = 5; + */ + public static final int CRITICAL_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Severity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return INFORMATIONAL; + case 2: + return LOW; + case 3: + return MEDIUM; + case 4: + return HIGH; + case 5: + return CRITICAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.Severity) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SeverityOverride.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SeverityOverride.java new file mode 100644 index 000000000000..d4a19e87c1f7 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SeverityOverride.java @@ -0,0 +1,751 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Defines what action to take for a specific severity match.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.SeverityOverride} + */ +@com.google.protobuf.Generated +public final class SeverityOverride extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.SeverityOverride) + SeverityOverrideOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SeverityOverride"); + } + + // Use SeverityOverride.newBuilder() to construct. + private SeverityOverride(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SeverityOverride() { + severity_ = 0; + action_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_SeverityOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_SeverityOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.SeverityOverride.class, + com.google.cloud.networksecurity.v1.SeverityOverride.Builder.class); + } + + public static final int SEVERITY_FIELD_NUMBER = 1; + private int severity_ = 0; + + /** + * + * + *
                                                                                              +   * Required. Severity level to match.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
                                                                                              +   * Required. Severity level to match.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.Severity getSeverity() { + com.google.cloud.networksecurity.v1.Severity result = + com.google.cloud.networksecurity.v1.Severity.forNumber(severity_); + return result == null ? com.google.cloud.networksecurity.v1.Severity.UNRECOGNIZED : result; + } + + public static final int ACTION_FIELD_NUMBER = 2; + private int action_ = 0; + + /** + * + * + *
                                                                                              +   * Required. Threat action override.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                                                                              +   * Required. Threat action override.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatAction getAction() { + com.google.cloud.networksecurity.v1.ThreatAction result = + com.google.cloud.networksecurity.v1.ThreatAction.forNumber(action_); + return result == null ? com.google.cloud.networksecurity.v1.ThreatAction.UNRECOGNIZED : result; + } + + 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 (severity_ + != com.google.cloud.networksecurity.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, severity_); + } + if (action_ + != com.google.cloud.networksecurity.v1.ThreatAction.THREAT_ACTION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, action_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (severity_ + != com.google.cloud.networksecurity.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); + } + if (action_ + != com.google.cloud.networksecurity.v1.ThreatAction.THREAT_ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_); + } + 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.networksecurity.v1.SeverityOverride)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.SeverityOverride other = + (com.google.cloud.networksecurity.v1.SeverityOverride) obj; + + if (severity_ != other.severity_) return false; + if (action_ != other.action_) 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) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride 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.networksecurity.v1.SeverityOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride 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.networksecurity.v1.SeverityOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.SeverityOverride 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Defines what action to take for a specific severity match.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.SeverityOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.SeverityOverride) + com.google.cloud.networksecurity.v1.SeverityOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_SeverityOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_SeverityOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.SeverityOverride.class, + com.google.cloud.networksecurity.v1.SeverityOverride.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.SeverityOverride.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + severity_ = 0; + action_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_SeverityOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SeverityOverride getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.SeverityOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SeverityOverride build() { + com.google.cloud.networksecurity.v1.SeverityOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.SeverityOverride buildPartial() { + com.google.cloud.networksecurity.v1.SeverityOverride result = + new com.google.cloud.networksecurity.v1.SeverityOverride(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.SeverityOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = action_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.SeverityOverride) { + return mergeFrom((com.google.cloud.networksecurity.v1.SeverityOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.SeverityOverride other) { + if (other == com.google.cloud.networksecurity.v1.SeverityOverride.getDefaultInstance()) + return this; + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + 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 8: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 int severity_ = 0; + + /** + * + * + *
                                                                                              +     * Required. Severity level to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
                                                                                              +     * Required. Severity level to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Severity level to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.Severity getSeverity() { + com.google.cloud.networksecurity.v1.Severity result = + com.google.cloud.networksecurity.v1.Severity.forNumber(severity_); + return result == null ? com.google.cloud.networksecurity.v1.Severity.UNRECOGNIZED : result; + } + + /** + * + * + *
                                                                                              +     * Required. Severity level to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.cloud.networksecurity.v1.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + severity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Severity level to match.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000001); + severity_ = 0; + onChanged(); + return this; + } + + private int action_ = 0; + + /** + * + * + *
                                                                                              +     * Required. Threat action override.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatAction getAction() { + com.google.cloud.networksecurity.v1.ThreatAction result = + com.google.cloud.networksecurity.v1.ThreatAction.forNumber(action_); + return result == null + ? com.google.cloud.networksecurity.v1.ThreatAction.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.cloud.networksecurity.v1.ThreatAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + action_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000002); + action_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.SeverityOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.SeverityOverride) + private static final com.google.cloud.networksecurity.v1.SeverityOverride DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.SeverityOverride(); + } + + public static com.google.cloud.networksecurity.v1.SeverityOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeverityOverride 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.networksecurity.v1.SeverityOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SeverityOverrideOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SeverityOverrideOrBuilder.java new file mode 100644 index 000000000000..14b851c0470f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SeverityOverrideOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface SeverityOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.SeverityOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Severity level to match.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + + /** + * + * + *
                                                                                              +   * Required. Severity level to match.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The severity. + */ + com.google.cloud.networksecurity.v1.Severity getSeverity(); + + /** + * + * + *
                                                                                              +   * Required. Threat action override.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + + /** + * + * + *
                                                                                              +   * Required. Threat action override.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + com.google.cloud.networksecurity.v1.ThreatAction getAction(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatAction.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatAction.java new file mode 100644 index 000000000000..50d79610995e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatAction.java @@ -0,0 +1,244 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Threat action override.
                                                                                              + * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.ThreatAction} + */ +@com.google.protobuf.Generated +public enum ThreatAction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +   * Threat action not specified.
                                                                                              +   * 
                                                                                              + * + * THREAT_ACTION_UNSPECIFIED = 0; + */ + THREAT_ACTION_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +   * The default action (as specified by the vendor) is taken.
                                                                                              +   * 
                                                                                              + * + * DEFAULT_ACTION = 4; + */ + DEFAULT_ACTION(4), + /** + * + * + *
                                                                                              +   * The packet matching this rule will be allowed to transmit.
                                                                                              +   * 
                                                                                              + * + * ALLOW = 1; + */ + ALLOW(1), + /** + * + * + *
                                                                                              +   * The packet matching this rule will be allowed to transmit, but a threat_log
                                                                                              +   * entry will be sent to the consumer project.
                                                                                              +   * 
                                                                                              + * + * ALERT = 2; + */ + ALERT(2), + /** + * + * + *
                                                                                              +   * The packet matching this rule will be dropped, and a threat_log entry will
                                                                                              +   * be sent to the consumer project.
                                                                                              +   * 
                                                                                              + * + * DENY = 3; + */ + DENY(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThreatAction"); + } + + /** + * + * + *
                                                                                              +   * Threat action not specified.
                                                                                              +   * 
                                                                                              + * + * THREAT_ACTION_UNSPECIFIED = 0; + */ + public static final int THREAT_ACTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +   * The default action (as specified by the vendor) is taken.
                                                                                              +   * 
                                                                                              + * + * DEFAULT_ACTION = 4; + */ + public static final int DEFAULT_ACTION_VALUE = 4; + + /** + * + * + *
                                                                                              +   * The packet matching this rule will be allowed to transmit.
                                                                                              +   * 
                                                                                              + * + * ALLOW = 1; + */ + public static final int ALLOW_VALUE = 1; + + /** + * + * + *
                                                                                              +   * The packet matching this rule will be allowed to transmit, but a threat_log
                                                                                              +   * entry will be sent to the consumer project.
                                                                                              +   * 
                                                                                              + * + * ALERT = 2; + */ + public static final int ALERT_VALUE = 2; + + /** + * + * + *
                                                                                              +   * The packet matching this rule will be dropped, and a threat_log entry will
                                                                                              +   * be sent to the consumer project.
                                                                                              +   * 
                                                                                              + * + * DENY = 3; + */ + public static final int DENY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ThreatAction valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ThreatAction forNumber(int value) { + switch (value) { + case 0: + return THREAT_ACTION_UNSPECIFIED; + case 4: + return DEFAULT_ACTION; + case 1: + return ALLOW; + case 2: + return ALERT; + case 3: + return DENY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ThreatAction findValueByNumber(int number) { + return ThreatAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ThreatAction[] VALUES = values(); + + public static ThreatAction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ThreatAction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.ThreatAction) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatOverride.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatOverride.java new file mode 100644 index 000000000000..1b50dd85f8af --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatOverride.java @@ -0,0 +1,947 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Defines what action to take for a specific threat_id match.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ThreatOverride} + */ +@com.google.protobuf.Generated +public final class ThreatOverride extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ThreatOverride) + ThreatOverrideOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThreatOverride"); + } + + // Use ThreatOverride.newBuilder() to construct. + private ThreatOverride(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ThreatOverride() { + threatId_ = ""; + type_ = 0; + action_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ThreatOverride.class, + com.google.cloud.networksecurity.v1.ThreatOverride.Builder.class); + } + + public static final int THREAT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object threatId_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Vendor-specific ID of a threat to override.
                                                                                              +   * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The threatId. + */ + @java.lang.Override + public java.lang.String getThreatId() { + java.lang.Object ref = threatId_; + 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(); + threatId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Vendor-specific ID of a threat to override.
                                                                                              +   * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for threatId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThreatIdBytes() { + java.lang.Object ref = threatId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + threatId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
                                                                                              +   * Output only. Type of the threat (read only).
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                                                                              +   * Output only. Type of the threat (read only).
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatType getType() { + com.google.cloud.networksecurity.v1.ThreatType result = + com.google.cloud.networksecurity.v1.ThreatType.forNumber(type_); + return result == null ? com.google.cloud.networksecurity.v1.ThreatType.UNRECOGNIZED : result; + } + + public static final int ACTION_FIELD_NUMBER = 3; + private int action_ = 0; + + /** + * + * + *
                                                                                              +   * Required. Threat action override. For some threat types, only a subset of
                                                                                              +   * actions applies.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                                                                              +   * Required. Threat action override. For some threat types, only a subset of
                                                                                              +   * actions applies.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatAction getAction() { + com.google.cloud.networksecurity.v1.ThreatAction result = + com.google.cloud.networksecurity.v1.ThreatAction.forNumber(action_); + return result == null ? com.google.cloud.networksecurity.v1.ThreatAction.UNRECOGNIZED : result; + } + + 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.GeneratedMessage.isStringEmpty(threatId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, threatId_); + } + if (type_ + != com.google.cloud.networksecurity.v1.ThreatType.THREAT_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (action_ + != com.google.cloud.networksecurity.v1.ThreatAction.THREAT_ACTION_UNSPECIFIED.getNumber()) { + output.writeEnum(3, action_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(threatId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, threatId_); + } + if (type_ + != com.google.cloud.networksecurity.v1.ThreatType.THREAT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (action_ + != com.google.cloud.networksecurity.v1.ThreatAction.THREAT_ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, action_); + } + 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.networksecurity.v1.ThreatOverride)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ThreatOverride other = + (com.google.cloud.networksecurity.v1.ThreatOverride) obj; + + if (!getThreatId().equals(other.getThreatId())) return false; + if (type_ != other.type_) return false; + if (action_ != other.action_) 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) + THREAT_ID_FIELD_NUMBER; + hash = (53 * hash) + getThreatId().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride 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.networksecurity.v1.ThreatOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride 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.networksecurity.v1.ThreatOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ThreatOverride 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Defines what action to take for a specific threat_id match.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ThreatOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ThreatOverride) + com.google.cloud.networksecurity.v1.ThreatOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ThreatOverride.class, + com.google.cloud.networksecurity.v1.ThreatOverride.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ThreatOverride.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + threatId_ = ""; + type_ = 0; + action_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatOverride getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ThreatOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatOverride build() { + com.google.cloud.networksecurity.v1.ThreatOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatOverride buildPartial() { + com.google.cloud.networksecurity.v1.ThreatOverride result = + new com.google.cloud.networksecurity.v1.ThreatOverride(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.ThreatOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threatId_ = threatId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.action_ = action_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ThreatOverride) { + return mergeFrom((com.google.cloud.networksecurity.v1.ThreatOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ThreatOverride other) { + if (other == com.google.cloud.networksecurity.v1.ThreatOverride.getDefaultInstance()) + return this; + if (!other.getThreatId().isEmpty()) { + threatId_ = other.threatId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + 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: + { + threatId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + action_ = input.readEnum(); + 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 threatId_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Vendor-specific ID of a threat to override.
                                                                                              +     * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The threatId. + */ + public java.lang.String getThreatId() { + java.lang.Object ref = threatId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + threatId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Vendor-specific ID of a threat to override.
                                                                                              +     * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for threatId. + */ + public com.google.protobuf.ByteString getThreatIdBytes() { + java.lang.Object ref = threatId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + threatId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Vendor-specific ID of a threat to override.
                                                                                              +     * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The threatId to set. + * @return This builder for chaining. + */ + public Builder setThreatId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + threatId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Vendor-specific ID of a threat to override.
                                                                                              +     * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearThreatId() { + threatId_ = getDefaultInstance().getThreatId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Vendor-specific ID of a threat to override.
                                                                                              +     * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for threatId to set. + * @return This builder for chaining. + */ + public Builder setThreatIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + threatId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
                                                                                              +     * Output only. Type of the threat (read only).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
                                                                                              +     * Output only. Type of the threat (read only).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Type of the threat (read only).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatType getType() { + com.google.cloud.networksecurity.v1.ThreatType result = + com.google.cloud.networksecurity.v1.ThreatType.forNumber(type_); + return result == null ? com.google.cloud.networksecurity.v1.ThreatType.UNRECOGNIZED : result; + } + + /** + * + * + *
                                                                                              +     * Output only. Type of the threat (read only).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.networksecurity.v1.ThreatType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Type of the threat (read only).
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private int action_ = 0; + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatAction getAction() { + com.google.cloud.networksecurity.v1.ThreatAction result = + com.google.cloud.networksecurity.v1.ThreatAction.forNumber(action_); + return result == null + ? com.google.cloud.networksecurity.v1.ThreatAction.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.cloud.networksecurity.v1.ThreatAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + action_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Threat action override. For some threat types, only a subset of
                                                                                              +     * actions applies.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000004); + action_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ThreatOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ThreatOverride) + private static final com.google.cloud.networksecurity.v1.ThreatOverride DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ThreatOverride(); + } + + public static com.google.cloud.networksecurity.v1.ThreatOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThreatOverride 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.networksecurity.v1.ThreatOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatOverrideOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatOverrideOrBuilder.java new file mode 100644 index 000000000000..8df626aa3191 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatOverrideOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ThreatOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ThreatOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Vendor-specific ID of a threat to override.
                                                                                              +   * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The threatId. + */ + java.lang.String getThreatId(); + + /** + * + * + *
                                                                                              +   * Required. Vendor-specific ID of a threat to override.
                                                                                              +   * 
                                                                                              + * + * string threat_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for threatId. + */ + com.google.protobuf.ByteString getThreatIdBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Type of the threat (read only).
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
                                                                                              +   * Output only. Type of the threat (read only).
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.networksecurity.v1.ThreatType getType(); + + /** + * + * + *
                                                                                              +   * Required. Threat action override. For some threat types, only a subset of
                                                                                              +   * actions applies.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + + /** + * + * + *
                                                                                              +   * Required. Threat action override. For some threat types, only a subset of
                                                                                              +   * actions applies.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.ThreatAction action = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + com.google.cloud.networksecurity.v1.ThreatAction getAction(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatPreventionProfile.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatPreventionProfile.java new file mode 100644 index 000000000000..025f69a26814 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatPreventionProfile.java @@ -0,0 +1,2184 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * ThreatPreventionProfile defines an action for specific threat signatures or
                                                                                              + * severity levels.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ThreatPreventionProfile} + */ +@com.google.protobuf.Generated +public final class ThreatPreventionProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ThreatPreventionProfile) + ThreatPreventionProfileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThreatPreventionProfile"); + } + + // Use ThreatPreventionProfile.newBuilder() to construct. + private ThreatPreventionProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ThreatPreventionProfile() { + severityOverrides_ = java.util.Collections.emptyList(); + threatOverrides_ = java.util.Collections.emptyList(); + antivirusOverrides_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.class, + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.Builder.class); + } + + public static final int SEVERITY_OVERRIDES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List severityOverrides_; + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSeverityOverridesList() { + return severityOverrides_; + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSeverityOverridesOrBuilderList() { + return severityOverrides_; + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSeverityOverridesCount() { + return severityOverrides_.size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SeverityOverride getSeverityOverrides(int index) { + return severityOverrides_.get(index); + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SeverityOverrideOrBuilder + getSeverityOverridesOrBuilder(int index) { + return severityOverrides_.get(index); + } + + public static final int THREAT_OVERRIDES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List threatOverrides_; + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getThreatOverridesList() { + return threatOverrides_; + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getThreatOverridesOrBuilderList() { + return threatOverrides_; + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getThreatOverridesCount() { + return threatOverrides_.size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatOverride getThreatOverrides(int index) { + return threatOverrides_.get(index); + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatOverrideOrBuilder getThreatOverridesOrBuilder( + int index) { + return threatOverrides_.get(index); + } + + public static final int ANTIVIRUS_OVERRIDES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List antivirusOverrides_; + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAntivirusOverridesList() { + return antivirusOverrides_; + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAntivirusOverridesOrBuilderList() { + return antivirusOverrides_; + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAntivirusOverridesCount() { + return antivirusOverrides_.size(); + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AntivirusOverride getAntivirusOverrides(int index) { + return antivirusOverrides_.get(index); + } + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AntivirusOverrideOrBuilder + getAntivirusOverridesOrBuilder(int index) { + return antivirusOverrides_.get(index); + } + + 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 < severityOverrides_.size(); i++) { + output.writeMessage(1, severityOverrides_.get(i)); + } + for (int i = 0; i < threatOverrides_.size(); i++) { + output.writeMessage(2, threatOverrides_.get(i)); + } + for (int i = 0; i < antivirusOverrides_.size(); i++) { + output.writeMessage(4, antivirusOverrides_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < severityOverrides_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, severityOverrides_.get(i)); + } + for (int i = 0; i < threatOverrides_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, threatOverrides_.get(i)); + } + for (int i = 0; i < antivirusOverrides_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, antivirusOverrides_.get(i)); + } + 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.networksecurity.v1.ThreatPreventionProfile)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ThreatPreventionProfile other = + (com.google.cloud.networksecurity.v1.ThreatPreventionProfile) obj; + + if (!getSeverityOverridesList().equals(other.getSeverityOverridesList())) return false; + if (!getThreatOverridesList().equals(other.getThreatOverridesList())) return false; + if (!getAntivirusOverridesList().equals(other.getAntivirusOverridesList())) 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 (getSeverityOverridesCount() > 0) { + hash = (37 * hash) + SEVERITY_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getSeverityOverridesList().hashCode(); + } + if (getThreatOverridesCount() > 0) { + hash = (37 * hash) + THREAT_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getThreatOverridesList().hashCode(); + } + if (getAntivirusOverridesCount() > 0) { + hash = (37 * hash) + ANTIVIRUS_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getAntivirusOverridesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile 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.networksecurity.v1.ThreatPreventionProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile 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.networksecurity.v1.ThreatPreventionProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.ThreatPreventionProfile 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * ThreatPreventionProfile defines an action for specific threat signatures or
                                                                                              +   * severity levels.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.ThreatPreventionProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ThreatPreventionProfile) + com.google.cloud.networksecurity.v1.ThreatPreventionProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.class, + com.google.cloud.networksecurity.v1.ThreatPreventionProfile.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ThreatPreventionProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (severityOverridesBuilder_ == null) { + severityOverrides_ = java.util.Collections.emptyList(); + } else { + severityOverrides_ = null; + severityOverridesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (threatOverridesBuilder_ == null) { + threatOverrides_ = java.util.Collections.emptyList(); + } else { + threatOverrides_ = null; + threatOverridesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (antivirusOverridesBuilder_ == null) { + antivirusOverrides_ = java.util.Collections.emptyList(); + } else { + antivirusOverrides_ = null; + antivirusOverridesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .internal_static_google_cloud_networksecurity_v1_ThreatPreventionProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatPreventionProfile getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ThreatPreventionProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatPreventionProfile build() { + com.google.cloud.networksecurity.v1.ThreatPreventionProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ThreatPreventionProfile buildPartial() { + com.google.cloud.networksecurity.v1.ThreatPreventionProfile result = + new com.google.cloud.networksecurity.v1.ThreatPreventionProfile(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ThreatPreventionProfile result) { + if (severityOverridesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + severityOverrides_ = java.util.Collections.unmodifiableList(severityOverrides_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.severityOverrides_ = severityOverrides_; + } else { + result.severityOverrides_ = severityOverridesBuilder_.build(); + } + if (threatOverridesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + threatOverrides_ = java.util.Collections.unmodifiableList(threatOverrides_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.threatOverrides_ = threatOverrides_; + } else { + result.threatOverrides_ = threatOverridesBuilder_.build(); + } + if (antivirusOverridesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + antivirusOverrides_ = java.util.Collections.unmodifiableList(antivirusOverrides_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.antivirusOverrides_ = antivirusOverrides_; + } else { + result.antivirusOverrides_ = antivirusOverridesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.ThreatPreventionProfile result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ThreatPreventionProfile) { + return mergeFrom((com.google.cloud.networksecurity.v1.ThreatPreventionProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ThreatPreventionProfile other) { + if (other == com.google.cloud.networksecurity.v1.ThreatPreventionProfile.getDefaultInstance()) + return this; + if (severityOverridesBuilder_ == null) { + if (!other.severityOverrides_.isEmpty()) { + if (severityOverrides_.isEmpty()) { + severityOverrides_ = other.severityOverrides_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSeverityOverridesIsMutable(); + severityOverrides_.addAll(other.severityOverrides_); + } + onChanged(); + } + } else { + if (!other.severityOverrides_.isEmpty()) { + if (severityOverridesBuilder_.isEmpty()) { + severityOverridesBuilder_.dispose(); + severityOverridesBuilder_ = null; + severityOverrides_ = other.severityOverrides_; + bitField0_ = (bitField0_ & ~0x00000001); + severityOverridesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSeverityOverridesFieldBuilder() + : null; + } else { + severityOverridesBuilder_.addAllMessages(other.severityOverrides_); + } + } + } + if (threatOverridesBuilder_ == null) { + if (!other.threatOverrides_.isEmpty()) { + if (threatOverrides_.isEmpty()) { + threatOverrides_ = other.threatOverrides_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureThreatOverridesIsMutable(); + threatOverrides_.addAll(other.threatOverrides_); + } + onChanged(); + } + } else { + if (!other.threatOverrides_.isEmpty()) { + if (threatOverridesBuilder_.isEmpty()) { + threatOverridesBuilder_.dispose(); + threatOverridesBuilder_ = null; + threatOverrides_ = other.threatOverrides_; + bitField0_ = (bitField0_ & ~0x00000002); + threatOverridesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetThreatOverridesFieldBuilder() + : null; + } else { + threatOverridesBuilder_.addAllMessages(other.threatOverrides_); + } + } + } + if (antivirusOverridesBuilder_ == null) { + if (!other.antivirusOverrides_.isEmpty()) { + if (antivirusOverrides_.isEmpty()) { + antivirusOverrides_ = other.antivirusOverrides_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.addAll(other.antivirusOverrides_); + } + onChanged(); + } + } else { + if (!other.antivirusOverrides_.isEmpty()) { + if (antivirusOverridesBuilder_.isEmpty()) { + antivirusOverridesBuilder_.dispose(); + antivirusOverridesBuilder_ = null; + antivirusOverrides_ = other.antivirusOverrides_; + bitField0_ = (bitField0_ & ~0x00000004); + antivirusOverridesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAntivirusOverridesFieldBuilder() + : null; + } else { + antivirusOverridesBuilder_.addAllMessages(other.antivirusOverrides_); + } + } + } + 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: + { + com.google.cloud.networksecurity.v1.SeverityOverride m = + input.readMessage( + com.google.cloud.networksecurity.v1.SeverityOverride.parser(), + extensionRegistry); + if (severityOverridesBuilder_ == null) { + ensureSeverityOverridesIsMutable(); + severityOverrides_.add(m); + } else { + severityOverridesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.networksecurity.v1.ThreatOverride m = + input.readMessage( + com.google.cloud.networksecurity.v1.ThreatOverride.parser(), + extensionRegistry); + if (threatOverridesBuilder_ == null) { + ensureThreatOverridesIsMutable(); + threatOverrides_.add(m); + } else { + threatOverridesBuilder_.addMessage(m); + } + break; + } // case 18 + case 34: + { + com.google.cloud.networksecurity.v1.AntivirusOverride m = + input.readMessage( + com.google.cloud.networksecurity.v1.AntivirusOverride.parser(), + extensionRegistry); + if (antivirusOverridesBuilder_ == null) { + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.add(m); + } else { + antivirusOverridesBuilder_.addMessage(m); + } + break; + } // case 34 + 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.util.List + severityOverrides_ = java.util.Collections.emptyList(); + + private void ensureSeverityOverridesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + severityOverrides_ = + new java.util.ArrayList( + severityOverrides_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SeverityOverride, + com.google.cloud.networksecurity.v1.SeverityOverride.Builder, + com.google.cloud.networksecurity.v1.SeverityOverrideOrBuilder> + severityOverridesBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSeverityOverridesList() { + if (severityOverridesBuilder_ == null) { + return java.util.Collections.unmodifiableList(severityOverrides_); + } else { + return severityOverridesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSeverityOverridesCount() { + if (severityOverridesBuilder_ == null) { + return severityOverrides_.size(); + } else { + return severityOverridesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.SeverityOverride getSeverityOverrides(int index) { + if (severityOverridesBuilder_ == null) { + return severityOverrides_.get(index); + } else { + return severityOverridesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSeverityOverrides( + int index, com.google.cloud.networksecurity.v1.SeverityOverride value) { + if (severityOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeverityOverridesIsMutable(); + severityOverrides_.set(index, value); + onChanged(); + } else { + severityOverridesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSeverityOverrides( + int index, com.google.cloud.networksecurity.v1.SeverityOverride.Builder builderForValue) { + if (severityOverridesBuilder_ == null) { + ensureSeverityOverridesIsMutable(); + severityOverrides_.set(index, builderForValue.build()); + onChanged(); + } else { + severityOverridesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSeverityOverrides( + com.google.cloud.networksecurity.v1.SeverityOverride value) { + if (severityOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeverityOverridesIsMutable(); + severityOverrides_.add(value); + onChanged(); + } else { + severityOverridesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSeverityOverrides( + int index, com.google.cloud.networksecurity.v1.SeverityOverride value) { + if (severityOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeverityOverridesIsMutable(); + severityOverrides_.add(index, value); + onChanged(); + } else { + severityOverridesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSeverityOverrides( + com.google.cloud.networksecurity.v1.SeverityOverride.Builder builderForValue) { + if (severityOverridesBuilder_ == null) { + ensureSeverityOverridesIsMutable(); + severityOverrides_.add(builderForValue.build()); + onChanged(); + } else { + severityOverridesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSeverityOverrides( + int index, com.google.cloud.networksecurity.v1.SeverityOverride.Builder builderForValue) { + if (severityOverridesBuilder_ == null) { + ensureSeverityOverridesIsMutable(); + severityOverrides_.add(index, builderForValue.build()); + onChanged(); + } else { + severityOverridesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSeverityOverrides( + java.lang.Iterable values) { + if (severityOverridesBuilder_ == null) { + ensureSeverityOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, severityOverrides_); + onChanged(); + } else { + severityOverridesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSeverityOverrides() { + if (severityOverridesBuilder_ == null) { + severityOverrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + severityOverridesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSeverityOverrides(int index) { + if (severityOverridesBuilder_ == null) { + ensureSeverityOverridesIsMutable(); + severityOverrides_.remove(index); + onChanged(); + } else { + severityOverridesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.SeverityOverride.Builder getSeverityOverridesBuilder( + int index) { + return internalGetSeverityOverridesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.SeverityOverrideOrBuilder + getSeverityOverridesOrBuilder(int index) { + if (severityOverridesBuilder_ == null) { + return severityOverrides_.get(index); + } else { + return severityOverridesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSeverityOverridesOrBuilderList() { + if (severityOverridesBuilder_ != null) { + return severityOverridesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(severityOverrides_); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.SeverityOverride.Builder + addSeverityOverridesBuilder() { + return internalGetSeverityOverridesFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.SeverityOverride.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.SeverityOverride.Builder addSeverityOverridesBuilder( + int index) { + return internalGetSeverityOverridesFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.SeverityOverride.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSeverityOverridesBuilderList() { + return internalGetSeverityOverridesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SeverityOverride, + com.google.cloud.networksecurity.v1.SeverityOverride.Builder, + com.google.cloud.networksecurity.v1.SeverityOverrideOrBuilder> + internalGetSeverityOverridesFieldBuilder() { + if (severityOverridesBuilder_ == null) { + severityOverridesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.SeverityOverride, + com.google.cloud.networksecurity.v1.SeverityOverride.Builder, + com.google.cloud.networksecurity.v1.SeverityOverrideOrBuilder>( + severityOverrides_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + severityOverrides_ = null; + } + return severityOverridesBuilder_; + } + + private java.util.List threatOverrides_ = + java.util.Collections.emptyList(); + + private void ensureThreatOverridesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + threatOverrides_ = + new java.util.ArrayList( + threatOverrides_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.ThreatOverride, + com.google.cloud.networksecurity.v1.ThreatOverride.Builder, + com.google.cloud.networksecurity.v1.ThreatOverrideOrBuilder> + threatOverridesBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getThreatOverridesList() { + if (threatOverridesBuilder_ == null) { + return java.util.Collections.unmodifiableList(threatOverrides_); + } else { + return threatOverridesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getThreatOverridesCount() { + if (threatOverridesBuilder_ == null) { + return threatOverrides_.size(); + } else { + return threatOverridesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.ThreatOverride getThreatOverrides(int index) { + if (threatOverridesBuilder_ == null) { + return threatOverrides_.get(index); + } else { + return threatOverridesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setThreatOverrides( + int index, com.google.cloud.networksecurity.v1.ThreatOverride value) { + if (threatOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureThreatOverridesIsMutable(); + threatOverrides_.set(index, value); + onChanged(); + } else { + threatOverridesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setThreatOverrides( + int index, com.google.cloud.networksecurity.v1.ThreatOverride.Builder builderForValue) { + if (threatOverridesBuilder_ == null) { + ensureThreatOverridesIsMutable(); + threatOverrides_.set(index, builderForValue.build()); + onChanged(); + } else { + threatOverridesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addThreatOverrides(com.google.cloud.networksecurity.v1.ThreatOverride value) { + if (threatOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureThreatOverridesIsMutable(); + threatOverrides_.add(value); + onChanged(); + } else { + threatOverridesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addThreatOverrides( + int index, com.google.cloud.networksecurity.v1.ThreatOverride value) { + if (threatOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureThreatOverridesIsMutable(); + threatOverrides_.add(index, value); + onChanged(); + } else { + threatOverridesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addThreatOverrides( + com.google.cloud.networksecurity.v1.ThreatOverride.Builder builderForValue) { + if (threatOverridesBuilder_ == null) { + ensureThreatOverridesIsMutable(); + threatOverrides_.add(builderForValue.build()); + onChanged(); + } else { + threatOverridesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addThreatOverrides( + int index, com.google.cloud.networksecurity.v1.ThreatOverride.Builder builderForValue) { + if (threatOverridesBuilder_ == null) { + ensureThreatOverridesIsMutable(); + threatOverrides_.add(index, builderForValue.build()); + onChanged(); + } else { + threatOverridesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllThreatOverrides( + java.lang.Iterable values) { + if (threatOverridesBuilder_ == null) { + ensureThreatOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, threatOverrides_); + onChanged(); + } else { + threatOverridesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearThreatOverrides() { + if (threatOverridesBuilder_ == null) { + threatOverrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + threatOverridesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeThreatOverrides(int index) { + if (threatOverridesBuilder_ == null) { + ensureThreatOverridesIsMutable(); + threatOverrides_.remove(index); + onChanged(); + } else { + threatOverridesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.ThreatOverride.Builder getThreatOverridesBuilder( + int index) { + return internalGetThreatOverridesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.ThreatOverrideOrBuilder getThreatOverridesOrBuilder( + int index) { + if (threatOverridesBuilder_ == null) { + return threatOverrides_.get(index); + } else { + return threatOverridesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getThreatOverridesOrBuilderList() { + if (threatOverridesBuilder_ != null) { + return threatOverridesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(threatOverrides_); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.ThreatOverride.Builder addThreatOverridesBuilder() { + return internalGetThreatOverridesFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.ThreatOverride.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.ThreatOverride.Builder addThreatOverridesBuilder( + int index) { + return internalGetThreatOverridesFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.ThreatOverride.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +     * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +     * and threat_overrides, the threat_overrides action is applied.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getThreatOverridesBuilderList() { + return internalGetThreatOverridesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.ThreatOverride, + com.google.cloud.networksecurity.v1.ThreatOverride.Builder, + com.google.cloud.networksecurity.v1.ThreatOverrideOrBuilder> + internalGetThreatOverridesFieldBuilder() { + if (threatOverridesBuilder_ == null) { + threatOverridesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.ThreatOverride, + com.google.cloud.networksecurity.v1.ThreatOverride.Builder, + com.google.cloud.networksecurity.v1.ThreatOverrideOrBuilder>( + threatOverrides_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + threatOverrides_ = null; + } + return threatOverridesBuilder_; + } + + private java.util.List + antivirusOverrides_ = java.util.Collections.emptyList(); + + private void ensureAntivirusOverridesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + antivirusOverrides_ = + new java.util.ArrayList( + antivirusOverrides_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AntivirusOverride, + com.google.cloud.networksecurity.v1.AntivirusOverride.Builder, + com.google.cloud.networksecurity.v1.AntivirusOverrideOrBuilder> + antivirusOverridesBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAntivirusOverridesList() { + if (antivirusOverridesBuilder_ == null) { + return java.util.Collections.unmodifiableList(antivirusOverrides_); + } else { + return antivirusOverridesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAntivirusOverridesCount() { + if (antivirusOverridesBuilder_ == null) { + return antivirusOverrides_.size(); + } else { + return antivirusOverridesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AntivirusOverride getAntivirusOverrides(int index) { + if (antivirusOverridesBuilder_ == null) { + return antivirusOverrides_.get(index); + } else { + return antivirusOverridesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAntivirusOverrides( + int index, com.google.cloud.networksecurity.v1.AntivirusOverride value) { + if (antivirusOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.set(index, value); + onChanged(); + } else { + antivirusOverridesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAntivirusOverrides( + int index, com.google.cloud.networksecurity.v1.AntivirusOverride.Builder builderForValue) { + if (antivirusOverridesBuilder_ == null) { + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.set(index, builderForValue.build()); + onChanged(); + } else { + antivirusOverridesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAntivirusOverrides( + com.google.cloud.networksecurity.v1.AntivirusOverride value) { + if (antivirusOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.add(value); + onChanged(); + } else { + antivirusOverridesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAntivirusOverrides( + int index, com.google.cloud.networksecurity.v1.AntivirusOverride value) { + if (antivirusOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.add(index, value); + onChanged(); + } else { + antivirusOverridesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAntivirusOverrides( + com.google.cloud.networksecurity.v1.AntivirusOverride.Builder builderForValue) { + if (antivirusOverridesBuilder_ == null) { + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.add(builderForValue.build()); + onChanged(); + } else { + antivirusOverridesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAntivirusOverrides( + int index, com.google.cloud.networksecurity.v1.AntivirusOverride.Builder builderForValue) { + if (antivirusOverridesBuilder_ == null) { + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.add(index, builderForValue.build()); + onChanged(); + } else { + antivirusOverridesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAntivirusOverrides( + java.lang.Iterable + values) { + if (antivirusOverridesBuilder_ == null) { + ensureAntivirusOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, antivirusOverrides_); + onChanged(); + } else { + antivirusOverridesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAntivirusOverrides() { + if (antivirusOverridesBuilder_ == null) { + antivirusOverrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + antivirusOverridesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAntivirusOverrides(int index) { + if (antivirusOverridesBuilder_ == null) { + ensureAntivirusOverridesIsMutable(); + antivirusOverrides_.remove(index); + onChanged(); + } else { + antivirusOverridesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AntivirusOverride.Builder + getAntivirusOverridesBuilder(int index) { + return internalGetAntivirusOverridesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AntivirusOverrideOrBuilder + getAntivirusOverridesOrBuilder(int index) { + if (antivirusOverridesBuilder_ == null) { + return antivirusOverrides_.get(index); + } else { + return antivirusOverridesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAntivirusOverridesOrBuilderList() { + if (antivirusOverridesBuilder_ != null) { + return antivirusOverridesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(antivirusOverrides_); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AntivirusOverride.Builder + addAntivirusOverridesBuilder() { + return internalGetAntivirusOverridesFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.AntivirusOverride.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.AntivirusOverride.Builder + addAntivirusOverridesBuilder(int index) { + return internalGetAntivirusOverridesFieldBuilder() + .addBuilder( + index, com.google.cloud.networksecurity.v1.AntivirusOverride.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAntivirusOverridesBuilderList() { + return internalGetAntivirusOverridesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AntivirusOverride, + com.google.cloud.networksecurity.v1.AntivirusOverride.Builder, + com.google.cloud.networksecurity.v1.AntivirusOverrideOrBuilder> + internalGetAntivirusOverridesFieldBuilder() { + if (antivirusOverridesBuilder_ == null) { + antivirusOverridesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.AntivirusOverride, + com.google.cloud.networksecurity.v1.AntivirusOverride.Builder, + com.google.cloud.networksecurity.v1.AntivirusOverrideOrBuilder>( + antivirusOverrides_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + antivirusOverrides_ = null; + } + return antivirusOverridesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ThreatPreventionProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ThreatPreventionProfile) + private static final com.google.cloud.networksecurity.v1.ThreatPreventionProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ThreatPreventionProfile(); + } + + public static com.google.cloud.networksecurity.v1.ThreatPreventionProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThreatPreventionProfile 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.networksecurity.v1.ThreatPreventionProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatPreventionProfileOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatPreventionProfileOrBuilder.java new file mode 100644 index 000000000000..c92ae177550e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatPreventionProfileOrBuilder.java @@ -0,0 +1,239 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface ThreatPreventionProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ThreatPreventionProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSeverityOverridesList(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.SeverityOverride getSeverityOverrides(int index); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSeverityOverridesCount(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSeverityOverridesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by severity match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.SeverityOverride severity_overrides = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.SeverityOverrideOrBuilder getSeverityOverridesOrBuilder( + int index); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getThreatOverridesList(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.ThreatOverride getThreatOverrides(int index); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getThreatOverridesCount(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getThreatOverridesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding threats actions by threat_id match.
                                                                                              +   * If a threat is matched both by configuration provided in severity_overrides
                                                                                              +   * and threat_overrides, the threat_overrides action is applied.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.ThreatOverride threat_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.ThreatOverrideOrBuilder getThreatOverridesOrBuilder( + int index); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAntivirusOverridesList(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AntivirusOverride getAntivirusOverrides(int index); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAntivirusOverridesCount(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAntivirusOverridesOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Optional. Configuration for overriding antivirus actions per protocol.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.AntivirusOverride antivirus_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.AntivirusOverrideOrBuilder getAntivirusOverridesOrBuilder( + int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatType.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatType.java new file mode 100644 index 000000000000..8e6214cd3903 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ThreatType.java @@ -0,0 +1,275 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Type of threat.
                                                                                              + * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.ThreatType} + */ +@com.google.protobuf.Generated +public enum ThreatType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +   * Type of threat not specified.
                                                                                              +   * 
                                                                                              + * + * THREAT_TYPE_UNSPECIFIED = 0; + */ + THREAT_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +   * Type of threat is not derivable from threat ID. An override will be
                                                                                              +   * created for all types. Firewall will ignore overridden signature ID's
                                                                                              +   * that don't exist in the specific type.
                                                                                              +   * 
                                                                                              + * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + * + * + *
                                                                                              +   * Threats related to system flaws that an attacker might otherwise attempt
                                                                                              +   * to exploit.
                                                                                              +   * 
                                                                                              + * + * VULNERABILITY = 2; + */ + VULNERABILITY(2), + /** + * + * + *
                                                                                              +   * Threats related to viruses and malware found in executables and file
                                                                                              +   * types.
                                                                                              +   * 
                                                                                              + * + * ANTIVIRUS = 3; + */ + ANTIVIRUS(3), + /** + * + * + *
                                                                                              +   * Threats related to command-and-control (C2) activity, where spyware on an
                                                                                              +   * infected client is collecting data without the user's consent and/or
                                                                                              +   * communicating with a remote attacker.
                                                                                              +   * 
                                                                                              + * + * SPYWARE = 4; + */ + SPYWARE(4), + /** + * + * + *
                                                                                              +   * Threats related to DNS.
                                                                                              +   * 
                                                                                              + * + * DNS = 5; + */ + DNS(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThreatType"); + } + + /** + * + * + *
                                                                                              +   * Type of threat not specified.
                                                                                              +   * 
                                                                                              + * + * THREAT_TYPE_UNSPECIFIED = 0; + */ + public static final int THREAT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +   * Type of threat is not derivable from threat ID. An override will be
                                                                                              +   * created for all types. Firewall will ignore overridden signature ID's
                                                                                              +   * that don't exist in the specific type.
                                                                                              +   * 
                                                                                              + * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + + /** + * + * + *
                                                                                              +   * Threats related to system flaws that an attacker might otherwise attempt
                                                                                              +   * to exploit.
                                                                                              +   * 
                                                                                              + * + * VULNERABILITY = 2; + */ + public static final int VULNERABILITY_VALUE = 2; + + /** + * + * + *
                                                                                              +   * Threats related to viruses and malware found in executables and file
                                                                                              +   * types.
                                                                                              +   * 
                                                                                              + * + * ANTIVIRUS = 3; + */ + public static final int ANTIVIRUS_VALUE = 3; + + /** + * + * + *
                                                                                              +   * Threats related to command-and-control (C2) activity, where spyware on an
                                                                                              +   * infected client is collecting data without the user's consent and/or
                                                                                              +   * communicating with a remote attacker.
                                                                                              +   * 
                                                                                              + * + * SPYWARE = 4; + */ + public static final int SPYWARE_VALUE = 4; + + /** + * + * + *
                                                                                              +   * Threats related to DNS.
                                                                                              +   * 
                                                                                              + * + * DNS = 5; + */ + public static final int DNS_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ThreatType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ThreatType forNumber(int value) { + switch (value) { + case 0: + return THREAT_TYPE_UNSPECIFIED; + case 1: + return UNKNOWN; + case 2: + return VULNERABILITY; + case 3: + return ANTIVIRUS; + case 4: + return SPYWARE; + case 5: + return DNS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ThreatType findValueByNumber(int number) { + return ThreatType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupThreatPreventionProto + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ThreatType[] VALUES = values(); + + public static ThreatType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ThreatType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.ThreatType) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicy.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicy.java new file mode 100644 index 000000000000..b0694997fbd4 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicy.java @@ -0,0 +1,3299 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The TlsInspectionPolicy resource contains references to CA pools in
                                                                                              + * Certificate Authority Service and associated metadata.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.TlsInspectionPolicy} + */ +@com.google.protobuf.Generated +public final class TlsInspectionPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.TlsInspectionPolicy) + TlsInspectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TlsInspectionPolicy"); + } + + // Use TlsInspectionPolicy.newBuilder() to construct. + private TlsInspectionPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TlsInspectionPolicy() { + name_ = ""; + description_ = ""; + caPool_ = ""; + trustConfig_ = ""; + minTlsVersion_ = 0; + tlsFeatureProfile_ = 0; + customTlsFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.class, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder.class); + } + + /** + * + * + *
                                                                                              +   * The minimum version of TLS protocol that can be used by clients or servers
                                                                                              +   * to establish a connection with the TLS inspection proxy.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion} + */ + public enum TlsVersion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Indicates no TLS version was specified.
                                                                                              +     * 
                                                                                              + * + * TLS_VERSION_UNSPECIFIED = 0; + */ + TLS_VERSION_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * TLS 1.0
                                                                                              +     * 
                                                                                              + * + * TLS_1_0 = 1; + */ + TLS_1_0(1), + /** + * + * + *
                                                                                              +     * TLS 1.1
                                                                                              +     * 
                                                                                              + * + * TLS_1_1 = 2; + */ + TLS_1_1(2), + /** + * + * + *
                                                                                              +     * TLS 1.2
                                                                                              +     * 
                                                                                              + * + * TLS_1_2 = 3; + */ + TLS_1_2(3), + /** + * + * + *
                                                                                              +     * TLS 1.3
                                                                                              +     * 
                                                                                              + * + * TLS_1_3 = 4; + */ + TLS_1_3(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TlsVersion"); + } + + /** + * + * + *
                                                                                              +     * Indicates no TLS version was specified.
                                                                                              +     * 
                                                                                              + * + * TLS_VERSION_UNSPECIFIED = 0; + */ + public static final int TLS_VERSION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * TLS 1.0
                                                                                              +     * 
                                                                                              + * + * TLS_1_0 = 1; + */ + public static final int TLS_1_0_VALUE = 1; + + /** + * + * + *
                                                                                              +     * TLS 1.1
                                                                                              +     * 
                                                                                              + * + * TLS_1_1 = 2; + */ + public static final int TLS_1_1_VALUE = 2; + + /** + * + * + *
                                                                                              +     * TLS 1.2
                                                                                              +     * 
                                                                                              + * + * TLS_1_2 = 3; + */ + public static final int TLS_1_2_VALUE = 3; + + /** + * + * + *
                                                                                              +     * TLS 1.3
                                                                                              +     * 
                                                                                              + * + * TLS_1_3 = 4; + */ + public static final int TLS_1_3_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TlsVersion valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TlsVersion forNumber(int value) { + switch (value) { + case 0: + return TLS_VERSION_UNSPECIFIED; + case 1: + return TLS_1_0; + case 2: + return TLS_1_1; + case 3: + return TLS_1_2; + case 4: + return TLS_1_3; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TlsVersion findValueByNumber(int number) { + return TlsVersion.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TlsVersion[] VALUES = values(); + + public static TlsVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TlsVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion) + } + + /** + * + * + *
                                                                                              +   * Profile specifies the set of TLS cipher suites (and possibly
                                                                                              +   * other features in the future) that can be used by the firewall when
                                                                                              +   * negotiating TLS connections with clients and servers. The meaning of these
                                                                                              +   * fields is identical to the load balancers' SSLPolicy resource.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile} + */ + public enum Profile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Indicates no profile was specified.
                                                                                              +     * 
                                                                                              + * + * PROFILE_UNSPECIFIED = 0; + */ + PROFILE_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * Compatible profile. Allows the broadest set of clients, even those
                                                                                              +     * which support only out-of-date SSL features to negotiate with the TLS
                                                                                              +     * inspection proxy.
                                                                                              +     * 
                                                                                              + * + * PROFILE_COMPATIBLE = 1; + */ + PROFILE_COMPATIBLE(1), + /** + * + * + *
                                                                                              +     * Modern profile. Supports a wide set of SSL features, allowing modern
                                                                                              +     * clients to negotiate SSL with the TLS inspection proxy.
                                                                                              +     * 
                                                                                              + * + * PROFILE_MODERN = 2; + */ + PROFILE_MODERN(2), + /** + * + * + *
                                                                                              +     * Restricted profile. Supports a reduced set of SSL features, intended to
                                                                                              +     * meet stricter compliance requirements.
                                                                                              +     * 
                                                                                              + * + * PROFILE_RESTRICTED = 3; + */ + PROFILE_RESTRICTED(3), + /** + * + * + *
                                                                                              +     * Custom profile. Allow only the set of allowed SSL features specified in
                                                                                              +     * the custom_features field of SslPolicy.
                                                                                              +     * 
                                                                                              + * + * PROFILE_CUSTOM = 4; + */ + PROFILE_CUSTOM(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Profile"); + } + + /** + * + * + *
                                                                                              +     * Indicates no profile was specified.
                                                                                              +     * 
                                                                                              + * + * PROFILE_UNSPECIFIED = 0; + */ + public static final int PROFILE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * Compatible profile. Allows the broadest set of clients, even those
                                                                                              +     * which support only out-of-date SSL features to negotiate with the TLS
                                                                                              +     * inspection proxy.
                                                                                              +     * 
                                                                                              + * + * PROFILE_COMPATIBLE = 1; + */ + public static final int PROFILE_COMPATIBLE_VALUE = 1; + + /** + * + * + *
                                                                                              +     * Modern profile. Supports a wide set of SSL features, allowing modern
                                                                                              +     * clients to negotiate SSL with the TLS inspection proxy.
                                                                                              +     * 
                                                                                              + * + * PROFILE_MODERN = 2; + */ + public static final int PROFILE_MODERN_VALUE = 2; + + /** + * + * + *
                                                                                              +     * Restricted profile. Supports a reduced set of SSL features, intended to
                                                                                              +     * meet stricter compliance requirements.
                                                                                              +     * 
                                                                                              + * + * PROFILE_RESTRICTED = 3; + */ + public static final int PROFILE_RESTRICTED_VALUE = 3; + + /** + * + * + *
                                                                                              +     * Custom profile. Allow only the set of allowed SSL features specified in
                                                                                              +     * the custom_features field of SslPolicy.
                                                                                              +     * 
                                                                                              + * + * PROFILE_CUSTOM = 4; + */ + public static final int PROFILE_CUSTOM_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Profile valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Profile forNumber(int value) { + switch (value) { + case 0: + return PROFILE_UNSPECIFIED; + case 1: + return PROFILE_COMPATIBLE; + case 2: + return PROFILE_MODERN; + case 3: + return PROFILE_RESTRICTED; + case 4: + return PROFILE_CUSTOM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Profile findValueByNumber(int number) { + return Profile.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Profile[] VALUES = values(); + + public static Profile valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Profile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource. Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +   * tls_inspection_policy should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource. Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +   * tls_inspection_policy should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int CA_POOL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object caPool_ = ""; + + /** + * + * + *
                                                                                              +   * Required. A CA pool resource used to issue interception certificates.
                                                                                              +   * The CA pool string has a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +   * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + @java.lang.Override + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + 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(); + caPool_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. A CA pool resource used to issue interception certificates.
                                                                                              +   * The CA pool string has a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +   * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCaPoolBytes() { + java.lang.Object ref = caPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRUST_CONFIG_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object trustConfig_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +   * server. This is a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +   * is necessary to intercept TLS connections to servers with certificates
                                                                                              +   * signed by a private CA or self-signed certificates.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The trustConfig. + */ + @java.lang.Override + public java.lang.String getTrustConfig() { + java.lang.Object ref = trustConfig_; + 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(); + trustConfig_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +   * server. This is a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +   * is necessary to intercept TLS connections to servers with certificates
                                                                                              +   * signed by a private CA or self-signed certificates.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trustConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrustConfigBytes() { + java.lang.Object ref = trustConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trustConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXCLUDE_PUBLIC_CA_SET_FIELD_NUMBER = 7; + private boolean excludePublicCaSet_ = false; + + /** + * + * + *
                                                                                              +   * Optional. If  FALSE (the default), use our default set of public CAs in
                                                                                              +   * addition to any CAs specified in trust_config. These public CAs are
                                                                                              +   * currently based on the Mozilla Root Program and are subject to change over
                                                                                              +   * time. If TRUE, do not accept our default set of public CAs. Only CAs
                                                                                              +   * specified in trust_config will be accepted. This defaults to FALSE (use
                                                                                              +   * public CAs in addition to trust_config) for backwards compatibility, but
                                                                                              +   * trusting public root CAs is *not recommended* unless the traffic in
                                                                                              +   * question is outbound to public web servers. When possible, prefer setting
                                                                                              +   * this to "false" and explicitly specifying trusted CAs and certificates in a
                                                                                              +   * TrustConfig. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * optional bool exclude_public_ca_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the excludePublicCaSet field is set. + */ + @java.lang.Override + public boolean hasExcludePublicCaSet() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. If  FALSE (the default), use our default set of public CAs in
                                                                                              +   * addition to any CAs specified in trust_config. These public CAs are
                                                                                              +   * currently based on the Mozilla Root Program and are subject to change over
                                                                                              +   * time. If TRUE, do not accept our default set of public CAs. Only CAs
                                                                                              +   * specified in trust_config will be accepted. This defaults to FALSE (use
                                                                                              +   * public CAs in addition to trust_config) for backwards compatibility, but
                                                                                              +   * trusting public root CAs is *not recommended* unless the traffic in
                                                                                              +   * question is outbound to public web servers. When possible, prefer setting
                                                                                              +   * this to "false" and explicitly specifying trusted CAs and certificates in a
                                                                                              +   * TrustConfig. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * optional bool exclude_public_ca_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The excludePublicCaSet. + */ + @java.lang.Override + public boolean getExcludePublicCaSet() { + return excludePublicCaSet_; + } + + public static final int MIN_TLS_VERSION_FIELD_NUMBER = 8; + private int minTlsVersion_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +   * connections with both clients and servers. If this is not set, then the
                                                                                              +   * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +   * or higher). Setting this to more restrictive values may improve security,
                                                                                              +   * but may also prevent the firewall from connecting to some clients or
                                                                                              +   * servers.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for minTlsVersion. + */ + @java.lang.Override + public int getMinTlsVersionValue() { + return minTlsVersion_; + } + + /** + * + * + *
                                                                                              +   * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +   * connections with both clients and servers. If this is not set, then the
                                                                                              +   * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +   * or higher). Setting this to more restrictive values may improve security,
                                                                                              +   * but may also prevent the firewall from connecting to some clients or
                                                                                              +   * servers.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minTlsVersion. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion getMinTlsVersion() { + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion result = + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion.forNumber( + minTlsVersion_); + return result == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion.UNRECOGNIZED + : result; + } + + public static final int TLS_FEATURE_PROFILE_FIELD_NUMBER = 9; + private int tlsFeatureProfile_ = 0; + + /** + * + * + *
                                                                                              +   * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +   * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +   * Setting this to more restrictive values may improve security, but may also
                                                                                              +   * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +   * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tlsFeatureProfile. + */ + @java.lang.Override + public int getTlsFeatureProfileValue() { + return tlsFeatureProfile_; + } + + /** + * + * + *
                                                                                              +   * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +   * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +   * Setting this to more restrictive values may improve security, but may also
                                                                                              +   * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +   * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsFeatureProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile getTlsFeatureProfile() { + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile result = + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile.forNumber( + tlsFeatureProfile_); + return result == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile.UNRECOGNIZED + : result; + } + + public static final int CUSTOM_TLS_FEATURES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList customTlsFeatures_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Optional. List of custom TLS cipher suites selected.
                                                                                              +   * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +   * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +   * set of features that can be specified in this list.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the customTlsFeatures. + */ + public com.google.protobuf.ProtocolStringList getCustomTlsFeaturesList() { + return customTlsFeatures_; + } + + /** + * + * + *
                                                                                              +   * Optional. List of custom TLS cipher suites selected.
                                                                                              +   * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +   * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +   * set of features that can be specified in this list.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of customTlsFeatures. + */ + public int getCustomTlsFeaturesCount() { + return customTlsFeatures_.size(); + } + + /** + * + * + *
                                                                                              +   * Optional. List of custom TLS cipher suites selected.
                                                                                              +   * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +   * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +   * set of features that can be specified in this list.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The customTlsFeatures at the given index. + */ + public java.lang.String getCustomTlsFeatures(int index) { + return customTlsFeatures_.get(index); + } + + /** + * + * + *
                                                                                              +   * Optional. List of custom TLS cipher suites selected.
                                                                                              +   * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +   * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +   * set of features that can be specified in this list.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the customTlsFeatures at the given index. + */ + public com.google.protobuf.ByteString getCustomTlsFeaturesBytes(int index) { + return customTlsFeatures_.getByteString(index); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caPool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, caPool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trustConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, trustConfig_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(7, excludePublicCaSet_); + } + if (minTlsVersion_ + != com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion + .TLS_VERSION_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, minTlsVersion_); + } + if (tlsFeatureProfile_ + != com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile.PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, tlsFeatureProfile_); + } + for (int i = 0; i < customTlsFeatures_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, customTlsFeatures_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caPool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, caPool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trustConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, trustConfig_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, excludePublicCaSet_); + } + if (minTlsVersion_ + != com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion + .TLS_VERSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, minTlsVersion_); + } + if (tlsFeatureProfile_ + != com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile.PROFILE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, tlsFeatureProfile_); + } + { + int dataSize = 0; + for (int i = 0; i < customTlsFeatures_.size(); i++) { + dataSize += computeStringSizeNoTag(customTlsFeatures_.getRaw(i)); + } + size += dataSize; + size += 1 * getCustomTlsFeaturesList().size(); + } + 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.networksecurity.v1.TlsInspectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.TlsInspectionPolicy other = + (com.google.cloud.networksecurity.v1.TlsInspectionPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getCaPool().equals(other.getCaPool())) return false; + if (!getTrustConfig().equals(other.getTrustConfig())) return false; + if (hasExcludePublicCaSet() != other.hasExcludePublicCaSet()) return false; + if (hasExcludePublicCaSet()) { + if (getExcludePublicCaSet() != other.getExcludePublicCaSet()) return false; + } + if (minTlsVersion_ != other.minTlsVersion_) return false; + if (tlsFeatureProfile_ != other.tlsFeatureProfile_) return false; + if (!getCustomTlsFeaturesList().equals(other.getCustomTlsFeaturesList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + CA_POOL_FIELD_NUMBER; + hash = (53 * hash) + getCaPool().hashCode(); + hash = (37 * hash) + TRUST_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrustConfig().hashCode(); + if (hasExcludePublicCaSet()) { + hash = (37 * hash) + EXCLUDE_PUBLIC_CA_SET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExcludePublicCaSet()); + } + hash = (37 * hash) + MIN_TLS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + minTlsVersion_; + hash = (37 * hash) + TLS_FEATURE_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + tlsFeatureProfile_; + if (getCustomTlsFeaturesCount() > 0) { + hash = (37 * hash) + CUSTOM_TLS_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomTlsFeaturesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy 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.networksecurity.v1.TlsInspectionPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy 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.networksecurity.v1.TlsInspectionPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.TlsInspectionPolicy 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The TlsInspectionPolicy resource contains references to CA pools in
                                                                                              +   * Certificate Authority Service and associated metadata.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.TlsInspectionPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.TlsInspectionPolicy) + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.class, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.TlsInspectionPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + caPool_ = ""; + trustConfig_ = ""; + excludePublicCaSet_ = false; + minTlsVersion_ = 0; + tlsFeatureProfile_ = 0; + customTlsFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy build() { + com.google.cloud.networksecurity.v1.TlsInspectionPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy buildPartial() { + com.google.cloud.networksecurity.v1.TlsInspectionPolicy result = + new com.google.cloud.networksecurity.v1.TlsInspectionPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.TlsInspectionPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.caPool_ = caPool_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.trustConfig_ = trustConfig_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.excludePublicCaSet_ = excludePublicCaSet_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.minTlsVersion_ = minTlsVersion_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.tlsFeatureProfile_ = tlsFeatureProfile_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + customTlsFeatures_.makeImmutable(); + result.customTlsFeatures_ = customTlsFeatures_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.TlsInspectionPolicy) { + return mergeFrom((com.google.cloud.networksecurity.v1.TlsInspectionPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.TlsInspectionPolicy other) { + if (other == com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getCaPool().isEmpty()) { + caPool_ = other.caPool_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getTrustConfig().isEmpty()) { + trustConfig_ = other.trustConfig_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasExcludePublicCaSet()) { + setExcludePublicCaSet(other.getExcludePublicCaSet()); + } + if (other.minTlsVersion_ != 0) { + setMinTlsVersionValue(other.getMinTlsVersionValue()); + } + if (other.tlsFeatureProfile_ != 0) { + setTlsFeatureProfileValue(other.getTlsFeatureProfileValue()); + } + if (!other.customTlsFeatures_.isEmpty()) { + if (customTlsFeatures_.isEmpty()) { + customTlsFeatures_ = other.customTlsFeatures_; + bitField0_ |= 0x00000200; + } else { + ensureCustomTlsFeaturesIsMutable(); + customTlsFeatures_.addAll(other.customTlsFeatures_); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + caPool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + trustConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + excludePublicCaSet_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + minTlsVersion_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + tlsFeatureProfile_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCustomTlsFeaturesIsMutable(); + customTlsFeatures_.add(s); + break; + } // case 82 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +     * tls_inspection_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +     * tls_inspection_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +     * tls_inspection_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +     * tls_inspection_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource. Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +     * tls_inspection_policy should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. The timestamp when the resource was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object caPool_ = ""; + + /** + * + * + *
                                                                                              +     * Required. A CA pool resource used to issue interception certificates.
                                                                                              +     * The CA pool string has a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +     * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A CA pool resource used to issue interception certificates.
                                                                                              +     * The CA pool string has a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +     * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + public com.google.protobuf.ByteString getCaPoolBytes() { + java.lang.Object ref = caPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. A CA pool resource used to issue interception certificates.
                                                                                              +     * The CA pool string has a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +     * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The caPool to set. + * @return This builder for chaining. + */ + public Builder setCaPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + caPool_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A CA pool resource used to issue interception certificates.
                                                                                              +     * The CA pool string has a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +     * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCaPool() { + caPool_ = getDefaultInstance().getCaPool(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. A CA pool resource used to issue interception certificates.
                                                                                              +     * The CA pool string has a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +     * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for caPool to set. + * @return This builder for chaining. + */ + public Builder setCaPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caPool_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object trustConfig_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +     * server. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +     * is necessary to intercept TLS connections to servers with certificates
                                                                                              +     * signed by a private CA or self-signed certificates.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The trustConfig. + */ + public java.lang.String getTrustConfig() { + java.lang.Object ref = trustConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trustConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +     * server. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +     * is necessary to intercept TLS connections to servers with certificates
                                                                                              +     * signed by a private CA or self-signed certificates.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trustConfig. + */ + public com.google.protobuf.ByteString getTrustConfigBytes() { + java.lang.Object ref = trustConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trustConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +     * server. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +     * is necessary to intercept TLS connections to servers with certificates
                                                                                              +     * signed by a private CA or self-signed certificates.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The trustConfig to set. + * @return This builder for chaining. + */ + public Builder setTrustConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trustConfig_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +     * server. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +     * is necessary to intercept TLS connections to servers with certificates
                                                                                              +     * signed by a private CA or self-signed certificates.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTrustConfig() { + trustConfig_ = getDefaultInstance().getTrustConfig(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +     * server. This is a relative resource path following the form
                                                                                              +     * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +     * is necessary to intercept TLS connections to servers with certificates
                                                                                              +     * signed by a private CA or self-signed certificates.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for trustConfig to set. + * @return This builder for chaining. + */ + public Builder setTrustConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trustConfig_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean excludePublicCaSet_; + + /** + * + * + *
                                                                                              +     * Optional. If  FALSE (the default), use our default set of public CAs in
                                                                                              +     * addition to any CAs specified in trust_config. These public CAs are
                                                                                              +     * currently based on the Mozilla Root Program and are subject to change over
                                                                                              +     * time. If TRUE, do not accept our default set of public CAs. Only CAs
                                                                                              +     * specified in trust_config will be accepted. This defaults to FALSE (use
                                                                                              +     * public CAs in addition to trust_config) for backwards compatibility, but
                                                                                              +     * trusting public root CAs is *not recommended* unless the traffic in
                                                                                              +     * question is outbound to public web servers. When possible, prefer setting
                                                                                              +     * this to "false" and explicitly specifying trusted CAs and certificates in a
                                                                                              +     * TrustConfig. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * optional bool exclude_public_ca_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludePublicCaSet field is set. + */ + @java.lang.Override + public boolean hasExcludePublicCaSet() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. If  FALSE (the default), use our default set of public CAs in
                                                                                              +     * addition to any CAs specified in trust_config. These public CAs are
                                                                                              +     * currently based on the Mozilla Root Program and are subject to change over
                                                                                              +     * time. If TRUE, do not accept our default set of public CAs. Only CAs
                                                                                              +     * specified in trust_config will be accepted. This defaults to FALSE (use
                                                                                              +     * public CAs in addition to trust_config) for backwards compatibility, but
                                                                                              +     * trusting public root CAs is *not recommended* unless the traffic in
                                                                                              +     * question is outbound to public web servers. When possible, prefer setting
                                                                                              +     * this to "false" and explicitly specifying trusted CAs and certificates in a
                                                                                              +     * TrustConfig. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * optional bool exclude_public_ca_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludePublicCaSet. + */ + @java.lang.Override + public boolean getExcludePublicCaSet() { + return excludePublicCaSet_; + } + + /** + * + * + *
                                                                                              +     * Optional. If  FALSE (the default), use our default set of public CAs in
                                                                                              +     * addition to any CAs specified in trust_config. These public CAs are
                                                                                              +     * currently based on the Mozilla Root Program and are subject to change over
                                                                                              +     * time. If TRUE, do not accept our default set of public CAs. Only CAs
                                                                                              +     * specified in trust_config will be accepted. This defaults to FALSE (use
                                                                                              +     * public CAs in addition to trust_config) for backwards compatibility, but
                                                                                              +     * trusting public root CAs is *not recommended* unless the traffic in
                                                                                              +     * question is outbound to public web servers. When possible, prefer setting
                                                                                              +     * this to "false" and explicitly specifying trusted CAs and certificates in a
                                                                                              +     * TrustConfig. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * optional bool exclude_public_ca_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludePublicCaSet to set. + * @return This builder for chaining. + */ + public Builder setExcludePublicCaSet(boolean value) { + + excludePublicCaSet_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. If  FALSE (the default), use our default set of public CAs in
                                                                                              +     * addition to any CAs specified in trust_config. These public CAs are
                                                                                              +     * currently based on the Mozilla Root Program and are subject to change over
                                                                                              +     * time. If TRUE, do not accept our default set of public CAs. Only CAs
                                                                                              +     * specified in trust_config will be accepted. This defaults to FALSE (use
                                                                                              +     * public CAs in addition to trust_config) for backwards compatibility, but
                                                                                              +     * trusting public root CAs is *not recommended* unless the traffic in
                                                                                              +     * question is outbound to public web servers. When possible, prefer setting
                                                                                              +     * this to "false" and explicitly specifying trusted CAs and certificates in a
                                                                                              +     * TrustConfig. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * optional bool exclude_public_ca_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludePublicCaSet() { + bitField0_ = (bitField0_ & ~0x00000040); + excludePublicCaSet_ = false; + onChanged(); + return this; + } + + private int minTlsVersion_ = 0; + + /** + * + * + *
                                                                                              +     * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +     * connections with both clients and servers. If this is not set, then the
                                                                                              +     * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +     * or higher). Setting this to more restrictive values may improve security,
                                                                                              +     * but may also prevent the firewall from connecting to some clients or
                                                                                              +     * servers.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for minTlsVersion. + */ + @java.lang.Override + public int getMinTlsVersionValue() { + return minTlsVersion_; + } + + /** + * + * + *
                                                                                              +     * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +     * connections with both clients and servers. If this is not set, then the
                                                                                              +     * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +     * or higher). Setting this to more restrictive values may improve security,
                                                                                              +     * but may also prevent the firewall from connecting to some clients or
                                                                                              +     * servers.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for minTlsVersion to set. + * @return This builder for chaining. + */ + public Builder setMinTlsVersionValue(int value) { + minTlsVersion_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +     * connections with both clients and servers. If this is not set, then the
                                                                                              +     * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +     * or higher). Setting this to more restrictive values may improve security,
                                                                                              +     * but may also prevent the firewall from connecting to some clients or
                                                                                              +     * servers.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minTlsVersion. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion getMinTlsVersion() { + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion result = + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion.forNumber( + minTlsVersion_); + return result == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +     * connections with both clients and servers. If this is not set, then the
                                                                                              +     * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +     * or higher). Setting this to more restrictive values may improve security,
                                                                                              +     * but may also prevent the firewall from connecting to some clients or
                                                                                              +     * servers.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The minTlsVersion to set. + * @return This builder for chaining. + */ + public Builder setMinTlsVersion( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + minTlsVersion_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +     * connections with both clients and servers. If this is not set, then the
                                                                                              +     * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +     * or higher). Setting this to more restrictive values may improve security,
                                                                                              +     * but may also prevent the firewall from connecting to some clients or
                                                                                              +     * servers.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMinTlsVersion() { + bitField0_ = (bitField0_ & ~0x00000080); + minTlsVersion_ = 0; + onChanged(); + return this; + } + + private int tlsFeatureProfile_ = 0; + + /** + * + * + *
                                                                                              +     * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +     * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +     * Setting this to more restrictive values may improve security, but may also
                                                                                              +     * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +     * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tlsFeatureProfile. + */ + @java.lang.Override + public int getTlsFeatureProfileValue() { + return tlsFeatureProfile_; + } + + /** + * + * + *
                                                                                              +     * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +     * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +     * Setting this to more restrictive values may improve security, but may also
                                                                                              +     * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +     * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for tlsFeatureProfile to set. + * @return This builder for chaining. + */ + public Builder setTlsFeatureProfileValue(int value) { + tlsFeatureProfile_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +     * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +     * Setting this to more restrictive values may improve security, but may also
                                                                                              +     * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +     * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsFeatureProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile getTlsFeatureProfile() { + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile result = + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile.forNumber( + tlsFeatureProfile_); + return result == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +     * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +     * Setting this to more restrictive values may improve security, but may also
                                                                                              +     * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +     * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The tlsFeatureProfile to set. + * @return This builder for chaining. + */ + public Builder setTlsFeatureProfile( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + tlsFeatureProfile_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +     * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +     * Setting this to more restrictive values may improve security, but may also
                                                                                              +     * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +     * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTlsFeatureProfile() { + bitField0_ = (bitField0_ & ~0x00000100); + tlsFeatureProfile_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList customTlsFeatures_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCustomTlsFeaturesIsMutable() { + if (!customTlsFeatures_.isModifiable()) { + customTlsFeatures_ = new com.google.protobuf.LazyStringArrayList(customTlsFeatures_); + } + bitField0_ |= 0x00000200; + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the customTlsFeatures. + */ + public com.google.protobuf.ProtocolStringList getCustomTlsFeaturesList() { + customTlsFeatures_.makeImmutable(); + return customTlsFeatures_; + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of customTlsFeatures. + */ + public int getCustomTlsFeaturesCount() { + return customTlsFeatures_.size(); + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The customTlsFeatures at the given index. + */ + public java.lang.String getCustomTlsFeatures(int index) { + return customTlsFeatures_.get(index); + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the customTlsFeatures at the given index. + */ + public com.google.protobuf.ByteString getCustomTlsFeaturesBytes(int index) { + return customTlsFeatures_.getByteString(index); + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The customTlsFeatures to set. + * @return This builder for chaining. + */ + public Builder setCustomTlsFeatures(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTlsFeaturesIsMutable(); + customTlsFeatures_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The customTlsFeatures to add. + * @return This builder for chaining. + */ + public Builder addCustomTlsFeatures(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTlsFeaturesIsMutable(); + customTlsFeatures_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The customTlsFeatures to add. + * @return This builder for chaining. + */ + public Builder addAllCustomTlsFeatures(java.lang.Iterable values) { + ensureCustomTlsFeaturesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTlsFeatures_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCustomTlsFeatures() { + customTlsFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. List of custom TLS cipher suites selected.
                                                                                              +     * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +     * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +     * set of features that can be specified in this list.
                                                                                              +     * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +     * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the customTlsFeatures to add. + * @return This builder for chaining. + */ + public Builder addCustomTlsFeaturesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCustomTlsFeaturesIsMutable(); + customTlsFeatures_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.TlsInspectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.TlsInspectionPolicy) + private static final com.google.cloud.networksecurity.v1.TlsInspectionPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.TlsInspectionPolicy(); + } + + public static com.google.cloud.networksecurity.v1.TlsInspectionPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TlsInspectionPolicy 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.networksecurity.v1.TlsInspectionPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyName.java new file mode 100644 index 000000000000..3656878af6f0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TlsInspectionPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TLS_INSPECTION_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String tlsInspectionPolicy; + + @Deprecated + protected TlsInspectionPolicyName() { + project = null; + location = null; + tlsInspectionPolicy = null; + } + + private TlsInspectionPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + tlsInspectionPolicy = Preconditions.checkNotNull(builder.getTlsInspectionPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTlsInspectionPolicy() { + return tlsInspectionPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TlsInspectionPolicyName of( + String project, String location, String tlsInspectionPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTlsInspectionPolicy(tlsInspectionPolicy) + .build(); + } + + public static String format(String project, String location, String tlsInspectionPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTlsInspectionPolicy(tlsInspectionPolicy) + .build() + .toString(); + } + + public static TlsInspectionPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TLS_INSPECTION_POLICY.validatedMatch( + formattedString, "TlsInspectionPolicyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("tls_inspection_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TlsInspectionPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TLS_INSPECTION_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (tlsInspectionPolicy != null) { + fieldMapBuilder.put("tls_inspection_policy", tlsInspectionPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TLS_INSPECTION_POLICY.instantiate( + "project", project, "location", location, "tls_inspection_policy", tlsInspectionPolicy); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TlsInspectionPolicyName that = ((TlsInspectionPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.tlsInspectionPolicy, that.tlsInspectionPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(tlsInspectionPolicy); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}. + */ + public static class Builder { + private String project; + private String location; + private String tlsInspectionPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTlsInspectionPolicy() { + return tlsInspectionPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTlsInspectionPolicy(String tlsInspectionPolicy) { + this.tlsInspectionPolicy = tlsInspectionPolicy; + return this; + } + + private Builder(TlsInspectionPolicyName tlsInspectionPolicyName) { + this.project = tlsInspectionPolicyName.project; + this.location = tlsInspectionPolicyName.location; + this.tlsInspectionPolicy = tlsInspectionPolicyName.tlsInspectionPolicy; + } + + public TlsInspectionPolicyName build() { + return new TlsInspectionPolicyName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyOrBuilder.java new file mode 100644 index 000000000000..74b0d9c45ba5 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyOrBuilder.java @@ -0,0 +1,438 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface TlsInspectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.TlsInspectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource. Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +   * tls_inspection_policy should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource. Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
                                                                                              +   * tls_inspection_policy should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. The timestamp when the resource was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. A CA pool resource used to issue interception certificates.
                                                                                              +   * The CA pool string has a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +   * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + java.lang.String getCaPool(); + + /** + * + * + *
                                                                                              +   * Required. A CA pool resource used to issue interception certificates.
                                                                                              +   * The CA pool string has a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/caPools/{ca_pool}".
                                                                                              +   * 
                                                                                              + * + * + * string ca_pool = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + com.google.protobuf.ByteString getCaPoolBytes(); + + /** + * + * + *
                                                                                              +   * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +   * server. This is a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +   * is necessary to intercept TLS connections to servers with certificates
                                                                                              +   * signed by a private CA or self-signed certificates.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The trustConfig. + */ + java.lang.String getTrustConfig(); + + /** + * + * + *
                                                                                              +   * Optional. A TrustConfig resource used when making a connection to the TLS
                                                                                              +   * server. This is a relative resource path following the form
                                                                                              +   * "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This
                                                                                              +   * is necessary to intercept TLS connections to servers with certificates
                                                                                              +   * signed by a private CA or self-signed certificates.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * string trust_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for trustConfig. + */ + com.google.protobuf.ByteString getTrustConfigBytes(); + + /** + * + * + *
                                                                                              +   * Optional. If  FALSE (the default), use our default set of public CAs in
                                                                                              +   * addition to any CAs specified in trust_config. These public CAs are
                                                                                              +   * currently based on the Mozilla Root Program and are subject to change over
                                                                                              +   * time. If TRUE, do not accept our default set of public CAs. Only CAs
                                                                                              +   * specified in trust_config will be accepted. This defaults to FALSE (use
                                                                                              +   * public CAs in addition to trust_config) for backwards compatibility, but
                                                                                              +   * trusting public root CAs is *not recommended* unless the traffic in
                                                                                              +   * question is outbound to public web servers. When possible, prefer setting
                                                                                              +   * this to "false" and explicitly specifying trusted CAs and certificates in a
                                                                                              +   * TrustConfig. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * optional bool exclude_public_ca_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the excludePublicCaSet field is set. + */ + boolean hasExcludePublicCaSet(); + + /** + * + * + *
                                                                                              +   * Optional. If  FALSE (the default), use our default set of public CAs in
                                                                                              +   * addition to any CAs specified in trust_config. These public CAs are
                                                                                              +   * currently based on the Mozilla Root Program and are subject to change over
                                                                                              +   * time. If TRUE, do not accept our default set of public CAs. Only CAs
                                                                                              +   * specified in trust_config will be accepted. This defaults to FALSE (use
                                                                                              +   * public CAs in addition to trust_config) for backwards compatibility, but
                                                                                              +   * trusting public root CAs is *not recommended* unless the traffic in
                                                                                              +   * question is outbound to public web servers. When possible, prefer setting
                                                                                              +   * this to "false" and explicitly specifying trusted CAs and certificates in a
                                                                                              +   * TrustConfig. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * optional bool exclude_public_ca_set = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The excludePublicCaSet. + */ + boolean getExcludePublicCaSet(); + + /** + * + * + *
                                                                                              +   * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +   * connections with both clients and servers. If this is not set, then the
                                                                                              +   * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +   * or higher). Setting this to more restrictive values may improve security,
                                                                                              +   * but may also prevent the firewall from connecting to some clients or
                                                                                              +   * servers.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for minTlsVersion. + */ + int getMinTlsVersionValue(); + + /** + * + * + *
                                                                                              +   * Optional. Minimum TLS version that the firewall should use when negotiating
                                                                                              +   * connections with both clients and servers. If this is not set, then the
                                                                                              +   * default value is to allow the broadest set of clients and servers (TLS 1.0
                                                                                              +   * or higher). Setting this to more restrictive values may improve security,
                                                                                              +   * but may also prevent the firewall from connecting to some clients or
                                                                                              +   * servers.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion min_tls_version = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minTlsVersion. + */ + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersion getMinTlsVersion(); + + /** + * + * + *
                                                                                              +   * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +   * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +   * Setting this to more restrictive values may improve security, but may also
                                                                                              +   * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +   * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tlsFeatureProfile. + */ + int getTlsFeatureProfileValue(); + + /** + * + * + *
                                                                                              +   * Optional. The selected Profile. If this is not set, then the default value
                                                                                              +   * is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE").
                                                                                              +   * Setting this to more restrictive values may improve security, but may also
                                                                                              +   * prevent the TLS inspection proxy from connecting to some clients or
                                                                                              +   * servers. Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile tls_feature_profile = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsFeatureProfile. + */ + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Profile getTlsFeatureProfile(); + + /** + * + * + *
                                                                                              +   * Optional. List of custom TLS cipher suites selected.
                                                                                              +   * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +   * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +   * set of features that can be specified in this list.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the customTlsFeatures. + */ + java.util.List getCustomTlsFeaturesList(); + + /** + * + * + *
                                                                                              +   * Optional. List of custom TLS cipher suites selected.
                                                                                              +   * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +   * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +   * set of features that can be specified in this list.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of customTlsFeatures. + */ + int getCustomTlsFeaturesCount(); + + /** + * + * + *
                                                                                              +   * Optional. List of custom TLS cipher suites selected.
                                                                                              +   * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +   * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +   * set of features that can be specified in this list.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The customTlsFeatures at the given index. + */ + java.lang.String getCustomTlsFeatures(int index); + + /** + * + * + *
                                                                                              +   * Optional. List of custom TLS cipher suites selected.
                                                                                              +   * This field is valid only if the selected tls_feature_profile is CUSTOM.
                                                                                              +   * The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the
                                                                                              +   * set of features that can be specified in this list.
                                                                                              +   * Note that Secure Web Proxy does not yet honor this field.
                                                                                              +   * 
                                                                                              + * + * repeated string custom_tls_features = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the customTlsFeatures at the given index. + */ + com.google.protobuf.ByteString getCustomTlsFeaturesBytes(int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyProto.java new file mode 100644 index 000000000000..de6f85fd40b9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyProto.java @@ -0,0 +1,241 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class TlsInspectionPolicyProto extends com.google.protobuf.GeneratedFile { + private TlsInspectionPolicyProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TlsInspectionPolicyProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ";google/cloud/networksecurity/v1/tls_inspection_policy.proto\022\037google.cloud.netw" + + "orksecurity.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\306\007\n" + + "\023TlsInspectionPolicy\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n" + + "\007ca_pool\030\005 \001(\tB\'\340A\002\372A!\n" + + "\037privateca.googleapis.com/CaPool\022K\n" + + "\014trust_config\030\006 \001(\tB5\340A\001\372A/\n" + + "-certificatemanager.googleapis.com/TrustConfig\022\'\n" + + "\025exclude_public_ca_set\030\007 \001(\010B\003\340A\001H\000\210\001\001\022]\n" + + "\017min_tls_version\030\010 \001(\0162" + + "?.google.cloud.networksecurity.v1.TlsInspectionPolicy.TlsVersionB\003\340A\001\022^\n" + + "\023tls_feature_profile\030\t \001(\0162<.google.cloud.networ" + + "ksecurity.v1.TlsInspectionPolicy.ProfileB\003\340A\001\022 \n" + + "\023custom_tls_features\030\n" + + " \003(\tB\003\340A\001\"]\n\n" + + "TlsVersion\022\033\n" + + "\027TLS_VERSION_UNSPECIFIED\020\000\022\013\n" + + "\007TLS_1_0\020\001\022\013\n" + + "\007TLS_1_1\020\002\022\013\n" + + "\007TLS_1_2\020\003\022\013\n" + + "\007TLS_1_3\020\004\"z\n" + + "\007Profile\022\027\n" + + "\023PROFILE_UNSPECIFIED\020\000\022\026\n" + + "\022PROFILE_COMPATIBLE\020\001\022\022\n" + + "\016PROFILE_MODERN\020\002\022\026\n" + + "\022PROFILE_RESTRICTED\020\003\022\022\n" + + "\016PROFILE_CUSTOM\020\004:\217\001\352A\213\001\n" + + "2networksecurity.googleapis.com/TlsInspectionPolicy\022Up" + + "rojects/{project}/locations/{location}/t" + + "lsInspectionPolicies/{tls_inspection_policy}B\030\n" + + "\026_exclude_public_ca_set\"\357\001\n" + + " CreateTlsInspectionPolicyRequest\022J\n" + + "\006parent\030\001 \001(" + + "\tB:\340A\002\372A4\0222networksecurity.googleapis.com/TlsInspectionPolicy\022%\n" + + "\030tls_inspection_policy_id\030\002 \001(\tB\003\340A\002\022X\n" + + "\025tls_inspection_policy\030\003" + + " \001(\01324.google.cloud.networksecurity.v1.TlsInspectionPolicyB\003\340A\002\"\204\001\n" + + " ListTlsInspectionPoliciesRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"\250\001\n" + + "!ListTlsInspectionPoliciesResponse\022U\n" + + "\027tls_inspection_policies\030\001 \003(\01324" + + ".google.cloud.networksecurity.v1.TlsInspectionPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"i\n" + + "\035GetTlsInspectionPolicyRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + + "2networksecurity.googleapis.com/TlsInspectionPolicy\"{\n" + + " DeleteTlsInspectionPolicyRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + + "2networksecurity.googleapis.com/TlsInspectionPolicy\022\r\n" + + "\005force\030\002 \001(\010\"\262\001\n" + + " UpdateTlsInspectionPolicyRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022X\n" + + "\025tls_inspection_policy\030\002" + + " \001(\01324.google.cloud.networksecurity.v1.TlsInspectionPolicyB\003\340A\002B\330\002\n" + + "#com.google.cloud.networksecurity.v1B\030TlsInsp" + + "ectionPolicyProtoP\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb" + + ";networksecuritypb\252\002\037Google.Cloud.Networ" + + "kSecurity.V1\312\002\037Google\\Cloud\\NetworkSecur" + + "ity\\V1\352\002\"Google::Cloud::NetworkSecurity::V1\352A\\\n" + + "\037privateca.googleapis.com/CaPool\0229projects/{project}/locations/{location}" + + "/caPools/{ca_pool}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_TlsInspectionPolicy_descriptor, + new java.lang.String[] { + "Name", + "Description", + "CreateTime", + "UpdateTime", + "CaPool", + "TrustConfig", + "ExcludePublicCaSet", + "MinTlsVersion", + "TlsFeatureProfile", + "CustomTlsFeatures", + }); + internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateTlsInspectionPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "TlsInspectionPolicyId", "TlsInspectionPolicy", + }); + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListTlsInspectionPoliciesResponse_descriptor, + new java.lang.String[] { + "TlsInspectionPolicies", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetTlsInspectionPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteTlsInspectionPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "TlsInspectionPolicy", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthzPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthzPolicyRequest.java new file mode 100644 index 000000000000..59a06e71c342 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthzPolicyRequest.java @@ -0,0 +1,1355 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for updating an `AuthzPolicy` resource.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAuthzPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) + UpdateAuthzPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAuthzPolicyRequest"); + } + + // Use UpdateAuthzPolicyRequest.newBuilder() to construct. + private UpdateAuthzPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAuthzPolicyRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest.class, + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Required. Used to specify the fields to be overwritten in the
                                                                                              +   * `AuthzPolicy` resource by the update.
                                                                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +   * user does not specify a mask, then all fields are overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Used to specify the fields to be overwritten in the
                                                                                              +   * `AuthzPolicy` resource by the update.
                                                                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +   * user does not specify a mask, then all fields are overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Required. Used to specify the fields to be overwritten in the
                                                                                              +   * `AuthzPolicy` resource by the update.
                                                                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +   * user does not specify a mask, then all fields are overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int AUTHZ_POLICY_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.AuthzPolicy authzPolicy_; + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authzPolicy field is set. + */ + @java.lang.Override + public boolean hasAuthzPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authzPolicy. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicy() { + return authzPolicy_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance() + : authzPolicy_; + } + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPolicyOrBuilder() { + return authzPolicy_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance() + : authzPolicy_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAuthzPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthzPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateAuthzPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest other = + (com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasAuthzPolicy() != other.hasAuthzPolicy()) return false; + if (hasAuthzPolicy()) { + if (!getAuthzPolicy().equals(other.getAuthzPolicy())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasAuthzPolicy()) { + hash = (37 * hash) + AUTHZ_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAuthzPolicy().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest 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.networksecurity.v1.UpdateAuthzPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest 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.networksecurity.v1.UpdateAuthzPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateAuthzPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for updating an `AuthzPolicy` resource.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest.class, + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetAuthzPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + authzPolicy_ = null; + if (authzPolicyBuilder_ != null) { + authzPolicyBuilder_.dispose(); + authzPolicyBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AuthzPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateAuthzPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest build() { + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest result = + new com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authzPolicy_ = + authzPolicyBuilder_ == null ? authzPolicy_ : authzPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasAuthzPolicy()) { + mergeAuthzPolicy(other.getAuthzPolicy()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAuthzPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Used to specify the fields to be overwritten in the
                                                                                              +     * `AuthzPolicy` resource by the update.
                                                                                              +     * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +     * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +     * user does not specify a mask, then all fields are overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.AuthzPolicy authzPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder> + authzPolicyBuilder_; + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authzPolicy field is set. + */ + public boolean hasAuthzPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authzPolicy. + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicy() { + if (authzPolicyBuilder_ == null) { + return authzPolicy_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance() + : authzPolicy_; + } else { + return authzPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthzPolicy(com.google.cloud.networksecurity.v1.AuthzPolicy value) { + if (authzPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authzPolicy_ = value; + } else { + authzPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthzPolicy( + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder builderForValue) { + if (authzPolicyBuilder_ == null) { + authzPolicy_ = builderForValue.build(); + } else { + authzPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthzPolicy(com.google.cloud.networksecurity.v1.AuthzPolicy value) { + if (authzPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && authzPolicy_ != null + && authzPolicy_ + != com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance()) { + getAuthzPolicyBuilder().mergeFrom(value); + } else { + authzPolicy_ = value; + } + } else { + authzPolicyBuilder_.mergeFrom(value); + } + if (authzPolicy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthzPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + authzPolicy_ = null; + if (authzPolicyBuilder_ != null) { + authzPolicyBuilder_.dispose(); + authzPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicy.Builder getAuthzPolicyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAuthzPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPolicyOrBuilder() { + if (authzPolicyBuilder_ != null) { + return authzPolicyBuilder_.getMessageOrBuilder(); + } else { + return authzPolicy_ == null + ? com.google.cloud.networksecurity.v1.AuthzPolicy.getDefaultInstance() + : authzPolicy_; + } + } + + /** + * + * + *
                                                                                              +     * Required. `AuthzPolicy` resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder> + internalGetAuthzPolicyFieldBuilder() { + if (authzPolicyBuilder_ == null) { + authzPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.AuthzPolicy, + com.google.cloud.networksecurity.v1.AuthzPolicy.Builder, + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder>( + getAuthzPolicy(), getParentForChildren(), isClean()); + authzPolicy_ = null; + } + return authzPolicyBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server can ignore
                                                                                              +     * the request if it has already been completed. The server guarantees
                                                                                              +     * that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and the
                                                                                              +     * request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, ignores the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) + private static final com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAuthzPolicyRequest 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.networksecurity.v1.UpdateAuthzPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthzPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthzPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..1e9168acd04f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAuthzPolicyRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/authz_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateAuthzPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Used to specify the fields to be overwritten in the
                                                                                              +   * `AuthzPolicy` resource by the update.
                                                                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +   * user does not specify a mask, then all fields are overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Used to specify the fields to be overwritten in the
                                                                                              +   * `AuthzPolicy` resource by the update.
                                                                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +   * user does not specify a mask, then all fields are overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Used to specify the fields to be overwritten in the
                                                                                              +   * `AuthzPolicy` resource by the update.
                                                                                              +   * The fields specified in the `update_mask` are relative to the resource, not
                                                                                              +   * the full request. A field is overwritten if it is in the mask. If the
                                                                                              +   * user does not specify a mask, then all fields are overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authzPolicy field is set. + */ + boolean hasAuthzPolicy(); + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authzPolicy. + */ + com.google.cloud.networksecurity.v1.AuthzPolicy getAuthzPolicy(); + + /** + * + * + *
                                                                                              +   * Required. `AuthzPolicy` resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.AuthzPolicy authz_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.AuthzPolicyOrBuilder getAuthzPolicyOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server can ignore
                                                                                              +   * the request if it has already been completed. The server guarantees
                                                                                              +   * that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and the
                                                                                              +   * request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, ignores the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateBackendAuthenticationConfigRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateBackendAuthenticationConfigRequest.java new file mode 100644 index 000000000000..d8829adc82c9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateBackendAuthenticationConfigRequest.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by UpdateBackendAuthenticationConfig method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateBackendAuthenticationConfigRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) + UpdateBackendAuthenticationConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateBackendAuthenticationConfigRequest"); + } + + // Use UpdateBackendAuthenticationConfigRequest.newBuilder() to construct. + private UpdateBackendAuthenticationConfigRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateBackendAuthenticationConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest.class, + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest.Builder + .class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int BACKEND_AUTHENTICATION_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + backendAuthenticationConfig_; + + /** + * + * + *
                                                                                              +   * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendAuthenticationConfig field is set. + */ + @java.lang.Override + public boolean hasBackendAuthenticationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfig. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getBackendAuthenticationConfig() { + return backendAuthenticationConfig_ == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance() + : backendAuthenticationConfig_; + } + + /** + * + * + *
                                                                                              +   * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigOrBuilder() { + return backendAuthenticationConfig_ == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance() + : backendAuthenticationConfig_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getBackendAuthenticationConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getBackendAuthenticationConfig()); + } + 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.networksecurity.v1.UpdateBackendAuthenticationConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest other = + (com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasBackendAuthenticationConfig() != other.hasBackendAuthenticationConfig()) return false; + if (hasBackendAuthenticationConfig()) { + if (!getBackendAuthenticationConfig().equals(other.getBackendAuthenticationConfig())) + 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasBackendAuthenticationConfig()) { + hash = (37 * hash) + BACKEND_AUTHENTICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBackendAuthenticationConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + 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.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + 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.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateBackendAuthenticationConfigRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by UpdateBackendAuthenticationConfig method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest.class, + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetBackendAuthenticationConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + backendAuthenticationConfig_ = null; + if (backendAuthenticationConfigBuilder_ != null) { + backendAuthenticationConfigBuilder_.dispose(); + backendAuthenticationConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.BackendAuthenticationConfigProto + .internal_static_google_cloud_networksecurity_v1_UpdateBackendAuthenticationConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest build() { + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + buildPartial() { + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest result = + new com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backendAuthenticationConfig_ = + backendAuthenticationConfigBuilder_ == null + ? backendAuthenticationConfig_ + : backendAuthenticationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasBackendAuthenticationConfig()) { + mergeBackendAuthenticationConfig(other.getBackendAuthenticationConfig()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetBackendAuthenticationConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + backendAuthenticationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder> + backendAuthenticationConfigBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendAuthenticationConfig field is set. + */ + public boolean hasBackendAuthenticationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfig. + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + getBackendAuthenticationConfig() { + if (backendAuthenticationConfigBuilder_ == null) { + return backendAuthenticationConfig_ == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance() + : backendAuthenticationConfig_; + } else { + return backendAuthenticationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig value) { + if (backendAuthenticationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendAuthenticationConfig_ = value; + } else { + backendAuthenticationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder builderForValue) { + if (backendAuthenticationConfigBuilder_ == null) { + backendAuthenticationConfig_ = builderForValue.build(); + } else { + backendAuthenticationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackendAuthenticationConfig( + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig value) { + if (backendAuthenticationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && backendAuthenticationConfig_ != null + && backendAuthenticationConfig_ + != com.google.cloud.networksecurity.v1.BackendAuthenticationConfig + .getDefaultInstance()) { + getBackendAuthenticationConfigBuilder().mergeFrom(value); + } else { + backendAuthenticationConfig_ = value; + } + } else { + backendAuthenticationConfigBuilder_.mergeFrom(value); + } + if (backendAuthenticationConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackendAuthenticationConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + backendAuthenticationConfig_ = null; + if (backendAuthenticationConfigBuilder_ != null) { + backendAuthenticationConfigBuilder_.dispose(); + backendAuthenticationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder + getBackendAuthenticationConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBackendAuthenticationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigOrBuilder() { + if (backendAuthenticationConfigBuilder_ != null) { + return backendAuthenticationConfigBuilder_.getMessageOrBuilder(); + } else { + return backendAuthenticationConfig_ == null + ? com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.getDefaultInstance() + : backendAuthenticationConfig_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder> + internalGetBackendAuthenticationConfigFieldBuilder() { + if (backendAuthenticationConfigBuilder_ == null) { + backendAuthenticationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig.Builder, + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder>( + getBackendAuthenticationConfig(), getParentForChildren(), isClean()); + backendAuthenticationConfig_ = null; + } + return backendAuthenticationConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) + private static final com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBackendAuthenticationConfigRequest 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.networksecurity.v1.UpdateBackendAuthenticationConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateBackendAuthenticationConfigRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateBackendAuthenticationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..19dbccda7147 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateBackendAuthenticationConfigRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/backend_authentication_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateBackendAuthenticationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * BackendAuthenticationConfig resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendAuthenticationConfig field is set. + */ + boolean hasBackendAuthenticationConfig(); + + /** + * + * + *
                                                                                              +   * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendAuthenticationConfig. + */ + com.google.cloud.networksecurity.v1.BackendAuthenticationConfig getBackendAuthenticationConfig(); + + /** + * + * + *
                                                                                              +   * Required. Updated BackendAuthenticationConfig resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.BackendAuthenticationConfig backend_authentication_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.BackendAuthenticationConfigOrBuilder + getBackendAuthenticationConfigOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateDnsThreatDetectorRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateDnsThreatDetectorRequest.java new file mode 100644 index 000000000000..541e25bf487f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateDnsThreatDetectorRequest.java @@ -0,0 +1,1081 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * The message for updating a DnsThreatDetector.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest} + */ +@com.google.protobuf.Generated +public final class UpdateDnsThreatDetectorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) + UpdateDnsThreatDetectorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateDnsThreatDetectorRequest"); + } + + // Use UpdateDnsThreatDetectorRequest.newBuilder() to construct. + private UpdateDnsThreatDetectorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateDnsThreatDetectorRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest.class, + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +   * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +   * update_mask are relative to the resource, not the full request. A field
                                                                                              +   * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +   * all fields present in the request will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +   * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +   * update_mask are relative to the resource, not the full request. A field
                                                                                              +   * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +   * all fields present in the request will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +   * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +   * update_mask are relative to the resource, not the full request. A field
                                                                                              +   * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +   * all fields present in the request will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int DNS_THREAT_DETECTOR_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.DnsThreatDetector dnsThreatDetector_; + + /** + * + * + *
                                                                                              +   * Required. The DnsThreatDetector resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsThreatDetector field is set. + */ + @java.lang.Override + public boolean hasDnsThreatDetector() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The DnsThreatDetector resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsThreatDetector. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetector() { + return dnsThreatDetector_ == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance() + : dnsThreatDetector_; + } + + /** + * + * + *
                                                                                              +   * Required. The DnsThreatDetector resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder + getDnsThreatDetectorOrBuilder() { + return dnsThreatDetector_ == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance() + : dnsThreatDetector_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDnsThreatDetector()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDnsThreatDetector()); + } + 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.networksecurity.v1.UpdateDnsThreatDetectorRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest other = + (com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasDnsThreatDetector() != other.hasDnsThreatDetector()) return false; + if (hasDnsThreatDetector()) { + if (!getDnsThreatDetector().equals(other.getDnsThreatDetector())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasDnsThreatDetector()) { + hash = (37 * hash) + DNS_THREAT_DETECTOR_FIELD_NUMBER; + hash = (53 * hash) + getDnsThreatDetector().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest 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.networksecurity.v1.UpdateDnsThreatDetectorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest 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.networksecurity.v1.UpdateDnsThreatDetectorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateDnsThreatDetectorRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * The message for updating a DnsThreatDetector.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest.class, + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetDnsThreatDetectorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + dnsThreatDetector_ = null; + if (dnsThreatDetectorBuilder_ != null) { + dnsThreatDetectorBuilder_.dispose(); + dnsThreatDetectorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.DnsThreatDetectorProto + .internal_static_google_cloud_networksecurity_v1_UpdateDnsThreatDetectorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest build() { + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest result = + new com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dnsThreatDetector_ = + dnsThreatDetectorBuilder_ == null + ? dnsThreatDetector_ + : dnsThreatDetectorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasDnsThreatDetector()) { + mergeDnsThreatDetector(other.getDnsThreatDetector()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDnsThreatDetectorFieldBuilder().getBuilder(), extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +     * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +     * update_mask are relative to the resource, not the full request. A field
                                                                                              +     * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +     * all fields present in the request will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.DnsThreatDetector dnsThreatDetector_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder> + dnsThreatDetectorBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsThreatDetector field is set. + */ + public boolean hasDnsThreatDetector() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsThreatDetector. + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetector() { + if (dnsThreatDetectorBuilder_ == null) { + return dnsThreatDetector_ == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance() + : dnsThreatDetector_; + } else { + return dnsThreatDetectorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDnsThreatDetector( + com.google.cloud.networksecurity.v1.DnsThreatDetector value) { + if (dnsThreatDetectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsThreatDetector_ = value; + } else { + dnsThreatDetectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDnsThreatDetector( + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder builderForValue) { + if (dnsThreatDetectorBuilder_ == null) { + dnsThreatDetector_ = builderForValue.build(); + } else { + dnsThreatDetectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDnsThreatDetector( + com.google.cloud.networksecurity.v1.DnsThreatDetector value) { + if (dnsThreatDetectorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dnsThreatDetector_ != null + && dnsThreatDetector_ + != com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance()) { + getDnsThreatDetectorBuilder().mergeFrom(value); + } else { + dnsThreatDetector_ = value; + } + } else { + dnsThreatDetectorBuilder_.mergeFrom(value); + } + if (dnsThreatDetector_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDnsThreatDetector() { + bitField0_ = (bitField0_ & ~0x00000002); + dnsThreatDetector_ = null; + if (dnsThreatDetectorBuilder_ != null) { + dnsThreatDetectorBuilder_.dispose(); + dnsThreatDetectorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder + getDnsThreatDetectorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDnsThreatDetectorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder + getDnsThreatDetectorOrBuilder() { + if (dnsThreatDetectorBuilder_ != null) { + return dnsThreatDetectorBuilder_.getMessageOrBuilder(); + } else { + return dnsThreatDetector_ == null + ? com.google.cloud.networksecurity.v1.DnsThreatDetector.getDefaultInstance() + : dnsThreatDetector_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The DnsThreatDetector resource being updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder> + internalGetDnsThreatDetectorFieldBuilder() { + if (dnsThreatDetectorBuilder_ == null) { + dnsThreatDetectorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.DnsThreatDetector, + com.google.cloud.networksecurity.v1.DnsThreatDetector.Builder, + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder>( + getDnsThreatDetector(), getParentForChildren(), isClean()); + dnsThreatDetector_ = null; + } + return dnsThreatDetectorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) + private static final com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDnsThreatDetectorRequest 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.networksecurity.v1.UpdateDnsThreatDetectorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateDnsThreatDetectorRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateDnsThreatDetectorRequestOrBuilder.java new file mode 100644 index 000000000000..f575368083b3 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateDnsThreatDetectorRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/dns_threat_detector.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateDnsThreatDetectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +   * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +   * update_mask are relative to the resource, not the full request. A field
                                                                                              +   * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +   * all fields present in the request will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +   * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +   * update_mask are relative to the resource, not the full request. A field
                                                                                              +   * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +   * all fields present in the request will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The field mask is used to specify the fields to be overwritten in
                                                                                              +   * the DnsThreatDetector resource by the update. The fields specified in the
                                                                                              +   * update_mask are relative to the resource, not the full request. A field
                                                                                              +   * will be overwritten if it is in the mask. If the mask is not provided then
                                                                                              +   * all fields present in the request will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The DnsThreatDetector resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dnsThreatDetector field is set. + */ + boolean hasDnsThreatDetector(); + + /** + * + * + *
                                                                                              +   * Required. The DnsThreatDetector resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dnsThreatDetector. + */ + com.google.cloud.networksecurity.v1.DnsThreatDetector getDnsThreatDetector(); + + /** + * + * + *
                                                                                              +   * Required. The DnsThreatDetector resource being updated.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.DnsThreatDetectorOrBuilder getDnsThreatDetectorOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointAssociationRequest.java new file mode 100644 index 000000000000..2290accbb5b3 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointAssociationRequest.java @@ -0,0 +1,1378 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for updating an Association
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFirewallEndpointAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) + UpdateFirewallEndpointAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFirewallEndpointAssociationRequest"); + } + + // Use UpdateFirewallEndpointAssociationRequest.newBuilder() to construct. + private UpdateFirewallEndpointAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFirewallEndpointAssociationRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest.class, + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest.Builder + .class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Association resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Association resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Association resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int FIREWALL_ENDPOINT_ASSOCIATION_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + firewallEndpointAssociation_; + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpointAssociation field is set. + */ + @java.lang.Override + public boolean hasFirewallEndpointAssociation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpointAssociation. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getFirewallEndpointAssociation() { + return firewallEndpointAssociation_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance() + : firewallEndpointAssociation_; + } + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationOrBuilder() { + return firewallEndpointAssociation_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance() + : firewallEndpointAssociation_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFirewallEndpointAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getFirewallEndpointAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateFirewallEndpointAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest other = + (com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasFirewallEndpointAssociation() != other.hasFirewallEndpointAssociation()) return false; + if (hasFirewallEndpointAssociation()) { + if (!getFirewallEndpointAssociation().equals(other.getFirewallEndpointAssociation())) + return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasFirewallEndpointAssociation()) { + hash = (37 * hash) + FIREWALL_ENDPOINT_ASSOCIATION_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpointAssociation().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + 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.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + 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.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateFirewallEndpointAssociationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for updating an Association
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest.class, + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetFirewallEndpointAssociationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + firewallEndpointAssociation_ = null; + if (firewallEndpointAssociationBuilder_ != null) { + firewallEndpointAssociationBuilder_.dispose(); + firewallEndpointAssociationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest build() { + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest result = + new com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firewallEndpointAssociation_ = + firewallEndpointAssociationBuilder_ == null + ? firewallEndpointAssociation_ + : firewallEndpointAssociationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasFirewallEndpointAssociation()) { + mergeFirewallEndpointAssociation(other.getFirewallEndpointAssociation()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetFirewallEndpointAssociationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Association resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + firewallEndpointAssociation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder> + firewallEndpointAssociationBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpointAssociation field is set. + */ + public boolean hasFirewallEndpointAssociation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpointAssociation. + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + getFirewallEndpointAssociation() { + if (firewallEndpointAssociationBuilder_ == null) { + return firewallEndpointAssociation_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance() + : firewallEndpointAssociation_; + } else { + return firewallEndpointAssociationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation value) { + if (firewallEndpointAssociationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firewallEndpointAssociation_ = value; + } else { + firewallEndpointAssociationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder builderForValue) { + if (firewallEndpointAssociationBuilder_ == null) { + firewallEndpointAssociation_ = builderForValue.build(); + } else { + firewallEndpointAssociationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFirewallEndpointAssociation( + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation value) { + if (firewallEndpointAssociationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && firewallEndpointAssociation_ != null + && firewallEndpointAssociation_ + != com.google.cloud.networksecurity.v1.FirewallEndpointAssociation + .getDefaultInstance()) { + getFirewallEndpointAssociationBuilder().mergeFrom(value); + } else { + firewallEndpointAssociation_ = value; + } + } else { + firewallEndpointAssociationBuilder_.mergeFrom(value); + } + if (firewallEndpointAssociation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFirewallEndpointAssociation() { + bitField0_ = (bitField0_ & ~0x00000002); + firewallEndpointAssociation_ = null; + if (firewallEndpointAssociationBuilder_ != null) { + firewallEndpointAssociationBuilder_.dispose(); + firewallEndpointAssociationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder + getFirewallEndpointAssociationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFirewallEndpointAssociationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationOrBuilder() { + if (firewallEndpointAssociationBuilder_ != null) { + return firewallEndpointAssociationBuilder_.getMessageOrBuilder(); + } else { + return firewallEndpointAssociation_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.getDefaultInstance() + : firewallEndpointAssociation_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder> + internalGetFirewallEndpointAssociationFieldBuilder() { + if (firewallEndpointAssociationBuilder_ == null) { + firewallEndpointAssociationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder>( + getFirewallEndpointAssociation(), getParentForChildren(), isClean()); + firewallEndpointAssociation_ = null; + } + return firewallEndpointAssociationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) + private static final com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFirewallEndpointAssociationRequest 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.networksecurity.v1.UpdateFirewallEndpointAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..1d34b995d519 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointAssociationRequestOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateFirewallEndpointAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Association resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Association resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Association resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpointAssociation field is set. + */ + boolean hasFirewallEndpointAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpointAssociation. + */ + com.google.cloud.networksecurity.v1.FirewallEndpointAssociation getFirewallEndpointAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpointAssociation firewall_endpoint_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpointAssociationOrBuilder + getFirewallEndpointAssociationOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointRequest.java new file mode 100644 index 000000000000..5ce5e61e27a6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointRequest.java @@ -0,0 +1,1350 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Message for updating a Endpoint
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFirewallEndpointRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) + UpdateFirewallEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFirewallEndpointRequest"); + } + + // Use UpdateFirewallEndpointRequest.newBuilder() to construct. + private UpdateFirewallEndpointRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFirewallEndpointRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest.class, + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Endpoint resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Endpoint resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Endpoint resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int FIREWALL_ENDPOINT_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.FirewallEndpoint firewallEndpoint_; + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpoint field is set. + */ + @java.lang.Override + public boolean hasFirewallEndpoint() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpoint. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoint() { + return firewallEndpoint_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance() + : firewallEndpoint_; + } + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder + getFirewallEndpointOrBuilder() { + return firewallEndpoint_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance() + : firewallEndpoint_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFirewallEndpoint()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFirewallEndpoint()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateFirewallEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest other = + (com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasFirewallEndpoint() != other.hasFirewallEndpoint()) return false; + if (hasFirewallEndpoint()) { + if (!getFirewallEndpoint().equals(other.getFirewallEndpoint())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasFirewallEndpoint()) { + hash = (37 * hash) + FIREWALL_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getFirewallEndpoint().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest 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.networksecurity.v1.UpdateFirewallEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest 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.networksecurity.v1.UpdateFirewallEndpointRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateFirewallEndpointRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Message for updating a Endpoint
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest.class, + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetFirewallEndpointFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + firewallEndpoint_ = null; + if (firewallEndpointBuilder_ != null) { + firewallEndpointBuilder_.dispose(); + firewallEndpointBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.FirewallActivationProto + .internal_static_google_cloud_networksecurity_v1_UpdateFirewallEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest build() { + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest result = + new com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firewallEndpoint_ = + firewallEndpointBuilder_ == null ? firewallEndpoint_ : firewallEndpointBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasFirewallEndpoint()) { + mergeFirewallEndpoint(other.getFirewallEndpoint()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetFirewallEndpointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Endpoint resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.FirewallEndpoint firewallEndpoint_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder> + firewallEndpointBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpoint field is set. + */ + public boolean hasFirewallEndpoint() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpoint. + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoint() { + if (firewallEndpointBuilder_ == null) { + return firewallEndpoint_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance() + : firewallEndpoint_; + } else { + return firewallEndpointBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirewallEndpoint(com.google.cloud.networksecurity.v1.FirewallEndpoint value) { + if (firewallEndpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firewallEndpoint_ = value; + } else { + firewallEndpointBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirewallEndpoint( + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder builderForValue) { + if (firewallEndpointBuilder_ == null) { + firewallEndpoint_ = builderForValue.build(); + } else { + firewallEndpointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFirewallEndpoint( + com.google.cloud.networksecurity.v1.FirewallEndpoint value) { + if (firewallEndpointBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && firewallEndpoint_ != null + && firewallEndpoint_ + != com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance()) { + getFirewallEndpointBuilder().mergeFrom(value); + } else { + firewallEndpoint_ = value; + } + } else { + firewallEndpointBuilder_.mergeFrom(value); + } + if (firewallEndpoint_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFirewallEndpoint() { + bitField0_ = (bitField0_ & ~0x00000002); + firewallEndpoint_ = null; + if (firewallEndpointBuilder_ != null) { + firewallEndpointBuilder_.dispose(); + firewallEndpointBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder + getFirewallEndpointBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFirewallEndpointFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder + getFirewallEndpointOrBuilder() { + if (firewallEndpointBuilder_ != null) { + return firewallEndpointBuilder_.getMessageOrBuilder(); + } else { + return firewallEndpoint_ == null + ? com.google.cloud.networksecurity.v1.FirewallEndpoint.getDefaultInstance() + : firewallEndpoint_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The resource being updated
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder> + internalGetFirewallEndpointFieldBuilder() { + if (firewallEndpointBuilder_ == null) { + firewallEndpointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.FirewallEndpoint, + com.google.cloud.networksecurity.v1.FirewallEndpoint.Builder, + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder>( + getFirewallEndpoint(), getParentForChildren(), isClean()); + firewallEndpoint_ = null; + } + return firewallEndpointBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +     * request ID so that if you must retry your request, the server will know to
                                                                                              +     * ignore the request if it has already been completed. The server will
                                                                                              +     * guarantee that for at least 60 minutes since the first request.
                                                                                              +     *
                                                                                              +     * For example, consider a situation where you make an initial request and
                                                                                              +     * the request times out. If you make the request again with the same request
                                                                                              +     * ID, the server can check if original operation with the same request ID
                                                                                              +     * was received, and if so, will ignore the second request. This prevents
                                                                                              +     * clients from accidentally creating duplicate commitments.
                                                                                              +     *
                                                                                              +     * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +     * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +     * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) + private static final com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFirewallEndpointRequest 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.networksecurity.v1.UpdateFirewallEndpointRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointRequestOrBuilder.java new file mode 100644 index 000000000000..977b7bf716a8 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateFirewallEndpointRequestOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/firewall_activation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateFirewallEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Endpoint resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Endpoint resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Endpoint resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firewallEndpoint field is set. + */ + boolean hasFirewallEndpoint(); + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firewallEndpoint. + */ + com.google.cloud.networksecurity.v1.FirewallEndpoint getFirewallEndpoint(); + + /** + * + * + *
                                                                                              +   * Required. The resource being updated
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.FirewallEndpoint firewall_endpoint = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.FirewallEndpointOrBuilder getFirewallEndpointOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. An optional request ID to identify requests. Specify a unique
                                                                                              +   * request ID so that if you must retry your request, the server will know to
                                                                                              +   * ignore the request if it has already been completed. The server will
                                                                                              +   * guarantee that for at least 60 minutes since the first request.
                                                                                              +   *
                                                                                              +   * For example, consider a situation where you make an initial request and
                                                                                              +   * the request times out. If you make the request again with the same request
                                                                                              +   * ID, the server can check if original operation with the same request ID
                                                                                              +   * was received, and if so, will ignore the second request. This prevents
                                                                                              +   * clients from accidentally creating duplicate commitments.
                                                                                              +   *
                                                                                              +   * The request ID must be a valid UUID with the exception that zero UUID is
                                                                                              +   * not supported (00000000-0000-0000-0000-000000000000).
                                                                                              +   * 
                                                                                              + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRequest.java new file mode 100644 index 000000000000..358c63e97bce --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRequest.java @@ -0,0 +1,1084 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the UpdateGatewaySecurityPolicy method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateGatewaySecurityPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) + UpdateGatewaySecurityPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateGatewaySecurityPolicyRequest"); + } + + // Use UpdateGatewaySecurityPolicyRequest.newBuilder() to construct. + private UpdateGatewaySecurityPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateGatewaySecurityPolicyRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest.class, + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int GATEWAY_SECURITY_POLICY_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.GatewaySecurityPolicy gatewaySecurityPolicy_; + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicy field is set. + */ + @java.lang.Override + public boolean hasGatewaySecurityPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicy. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicy() { + return gatewaySecurityPolicy_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance() + : gatewaySecurityPolicy_; + } + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPolicyOrBuilder() { + return gatewaySecurityPolicy_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance() + : gatewaySecurityPolicy_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getGatewaySecurityPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGatewaySecurityPolicy()); + } + 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.networksecurity.v1.UpdateGatewaySecurityPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest other = + (com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasGatewaySecurityPolicy() != other.hasGatewaySecurityPolicy()) return false; + if (hasGatewaySecurityPolicy()) { + if (!getGatewaySecurityPolicy().equals(other.getGatewaySecurityPolicy())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasGatewaySecurityPolicy()) { + hash = (37 * hash) + GATEWAY_SECURITY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getGatewaySecurityPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest 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.networksecurity.v1.UpdateGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest 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.networksecurity.v1.UpdateGatewaySecurityPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateGatewaySecurityPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the UpdateGatewaySecurityPolicy method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest.class, + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetGatewaySecurityPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + gatewaySecurityPolicy_ = null; + if (gatewaySecurityPolicyBuilder_ != null) { + gatewaySecurityPolicyBuilder_.dispose(); + gatewaySecurityPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest build() { + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest result = + new com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gatewaySecurityPolicy_ = + gatewaySecurityPolicyBuilder_ == null + ? gatewaySecurityPolicy_ + : gatewaySecurityPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasGatewaySecurityPolicy()) { + mergeGatewaySecurityPolicy(other.getGatewaySecurityPolicy()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetGatewaySecurityPolicyFieldBuilder().getBuilder(), extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.GatewaySecurityPolicy gatewaySecurityPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder> + gatewaySecurityPolicyBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicy field is set. + */ + public boolean hasGatewaySecurityPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicy. + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicy() { + if (gatewaySecurityPolicyBuilder_ == null) { + return gatewaySecurityPolicy_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance() + : gatewaySecurityPolicy_; + } else { + return gatewaySecurityPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy value) { + if (gatewaySecurityPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gatewaySecurityPolicy_ = value; + } else { + gatewaySecurityPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder builderForValue) { + if (gatewaySecurityPolicyBuilder_ == null) { + gatewaySecurityPolicy_ = builderForValue.build(); + } else { + gatewaySecurityPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGatewaySecurityPolicy( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy value) { + if (gatewaySecurityPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && gatewaySecurityPolicy_ != null + && gatewaySecurityPolicy_ + != com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance()) { + getGatewaySecurityPolicyBuilder().mergeFrom(value); + } else { + gatewaySecurityPolicy_ = value; + } + } else { + gatewaySecurityPolicyBuilder_.mergeFrom(value); + } + if (gatewaySecurityPolicy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGatewaySecurityPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + gatewaySecurityPolicy_ = null; + if (gatewaySecurityPolicyBuilder_ != null) { + gatewaySecurityPolicyBuilder_.dispose(); + gatewaySecurityPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder + getGatewaySecurityPolicyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetGatewaySecurityPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPolicyOrBuilder() { + if (gatewaySecurityPolicyBuilder_ != null) { + return gatewaySecurityPolicyBuilder_.getMessageOrBuilder(); + } else { + return gatewaySecurityPolicy_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.getDefaultInstance() + : gatewaySecurityPolicy_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder> + internalGetGatewaySecurityPolicyFieldBuilder() { + if (gatewaySecurityPolicyBuilder_ == null) { + gatewaySecurityPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder>( + getGatewaySecurityPolicy(), getParentForChildren(), isClean()); + gatewaySecurityPolicy_ = null; + } + return gatewaySecurityPolicyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) + private static final com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGatewaySecurityPolicyRequest 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.networksecurity.v1.UpdateGatewaySecurityPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..51421249f50f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateGatewaySecurityPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicy field is set. + */ + boolean hasGatewaySecurityPolicy(); + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicy. + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicy getGatewaySecurityPolicy(); + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicy gateway_security_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyOrBuilder + getGatewaySecurityPolicyOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRuleRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRuleRequest.java new file mode 100644 index 000000000000..63bf48696f21 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRuleRequest.java @@ -0,0 +1,1103 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the UpdateGatewaySecurityPolicyRule method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest} + */ +@com.google.protobuf.Generated +public final class UpdateGatewaySecurityPolicyRuleRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) + UpdateGatewaySecurityPolicyRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateGatewaySecurityPolicyRuleRequest"); + } + + // Use UpdateGatewaySecurityPolicyRuleRequest.newBuilder() to construct. + private UpdateGatewaySecurityPolicyRuleRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateGatewaySecurityPolicyRuleRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest.class, + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest.Builder + .class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int GATEWAY_SECURITY_POLICY_RULE_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gatewaySecurityPolicyRule_; + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicyRule field is set. + */ + @java.lang.Override + public boolean hasGatewaySecurityPolicyRule() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicyRule. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getGatewaySecurityPolicyRule() { + return gatewaySecurityPolicyRule_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance() + : gatewaySecurityPolicyRule_; + } + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRuleOrBuilder() { + return gatewaySecurityPolicyRule_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance() + : gatewaySecurityPolicyRule_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getGatewaySecurityPolicyRule()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getGatewaySecurityPolicyRule()); + } + 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.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest other = + (com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasGatewaySecurityPolicyRule() != other.hasGatewaySecurityPolicyRule()) return false; + if (hasGatewaySecurityPolicyRule()) { + if (!getGatewaySecurityPolicyRule().equals(other.getGatewaySecurityPolicyRule())) + 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasGatewaySecurityPolicyRule()) { + hash = (37 * hash) + GATEWAY_SECURITY_POLICY_RULE_FIELD_NUMBER; + hash = (53 * hash) + getGatewaySecurityPolicyRule().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + 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.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + 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.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the UpdateGatewaySecurityPolicyRule method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest.class, + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetGatewaySecurityPolicyRuleFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + gatewaySecurityPolicyRule_ = null; + if (gatewaySecurityPolicyRuleBuilder_ != null) { + gatewaySecurityPolicyRuleBuilder_.dispose(); + gatewaySecurityPolicyRuleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleProto + .internal_static_google_cloud_networksecurity_v1_UpdateGatewaySecurityPolicyRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest build() { + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + buildPartial() { + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest result = + new com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gatewaySecurityPolicyRule_ = + gatewaySecurityPolicyRuleBuilder_ == null + ? gatewaySecurityPolicyRule_ + : gatewaySecurityPolicyRuleBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasGatewaySecurityPolicyRule()) { + mergeGatewaySecurityPolicyRule(other.getGatewaySecurityPolicyRule()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetGatewaySecurityPolicyRuleFieldBuilder().getBuilder(), + extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * GatewaySecurityPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + gatewaySecurityPolicyRule_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder> + gatewaySecurityPolicyRuleBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicyRule field is set. + */ + public boolean hasGatewaySecurityPolicyRule() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicyRule. + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + getGatewaySecurityPolicyRule() { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + return gatewaySecurityPolicyRule_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance() + : gatewaySecurityPolicyRule_; + } else { + return gatewaySecurityPolicyRuleBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule value) { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gatewaySecurityPolicyRule_ = value; + } else { + gatewaySecurityPolicyRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder builderForValue) { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + gatewaySecurityPolicyRule_ = builderForValue.build(); + } else { + gatewaySecurityPolicyRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGatewaySecurityPolicyRule( + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule value) { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && gatewaySecurityPolicyRule_ != null + && gatewaySecurityPolicyRule_ + != com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule + .getDefaultInstance()) { + getGatewaySecurityPolicyRuleBuilder().mergeFrom(value); + } else { + gatewaySecurityPolicyRule_ = value; + } + } else { + gatewaySecurityPolicyRuleBuilder_.mergeFrom(value); + } + if (gatewaySecurityPolicyRule_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGatewaySecurityPolicyRule() { + bitField0_ = (bitField0_ & ~0x00000002); + gatewaySecurityPolicyRule_ = null; + if (gatewaySecurityPolicyRuleBuilder_ != null) { + gatewaySecurityPolicyRuleBuilder_.dispose(); + gatewaySecurityPolicyRuleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder + getGatewaySecurityPolicyRuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetGatewaySecurityPolicyRuleFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRuleOrBuilder() { + if (gatewaySecurityPolicyRuleBuilder_ != null) { + return gatewaySecurityPolicyRuleBuilder_.getMessageOrBuilder(); + } else { + return gatewaySecurityPolicyRule_ == null + ? com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.getDefaultInstance() + : gatewaySecurityPolicyRule_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder> + internalGetGatewaySecurityPolicyRuleFieldBuilder() { + if (gatewaySecurityPolicyRuleBuilder_ == null) { + gatewaySecurityPolicyRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule.Builder, + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder>( + getGatewaySecurityPolicyRule(), getParentForChildren(), isClean()); + gatewaySecurityPolicyRule_ = null; + } + return gatewaySecurityPolicyRuleBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) + private static final com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGatewaySecurityPolicyRuleRequest 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.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRuleRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRuleRequestOrBuilder.java new file mode 100644 index 000000000000..3f8d794ad1fc --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateGatewaySecurityPolicyRuleRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/gateway_security_policy_rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateGatewaySecurityPolicyRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * GatewaySecurityPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gatewaySecurityPolicyRule field is set. + */ + boolean hasGatewaySecurityPolicyRule(); + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gatewaySecurityPolicyRule. + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule getGatewaySecurityPolicyRule(); + + /** + * + * + *
                                                                                              +   * Required. Updated GatewaySecurityPolicyRule resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleOrBuilder + getGatewaySecurityPolicyRuleOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentGroupRequest.java new file mode 100644 index 000000000000..8aae18a4db5c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentGroupRequest.java @@ -0,0 +1,1314 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for UpdateInterceptDeploymentGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class UpdateInterceptDeploymentGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) + UpdateInterceptDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateInterceptDeploymentGroupRequest"); + } + + // Use UpdateInterceptDeploymentGroupRequest.newBuilder() to construct. + private UpdateInterceptDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateInterceptDeploymentGroupRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int INTERCEPT_DEPLOYMENT_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.InterceptDeploymentGroup interceptDeploymentGroup_; + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeploymentGroup field is set. + */ + @java.lang.Override + public boolean hasInterceptDeploymentGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + getInterceptDeploymentGroup() { + return interceptDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance() + : interceptDeploymentGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupOrBuilder() { + return interceptDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance() + : interceptDeploymentGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInterceptDeploymentGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getInterceptDeploymentGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateInterceptDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest other = + (com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasInterceptDeploymentGroup() != other.hasInterceptDeploymentGroup()) return false; + if (hasInterceptDeploymentGroup()) { + if (!getInterceptDeploymentGroup().equals(other.getInterceptDeploymentGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasInterceptDeploymentGroup()) { + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeploymentGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest 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.networksecurity.v1.UpdateInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest 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.networksecurity.v1.UpdateInterceptDeploymentGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateInterceptDeploymentGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for UpdateInterceptDeploymentGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetInterceptDeploymentGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + interceptDeploymentGroup_ = null; + if (interceptDeploymentGroupBuilder_ != null) { + interceptDeploymentGroupBuilder_.dispose(); + interceptDeploymentGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest build() { + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + buildPartial() { + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest result = + new com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interceptDeploymentGroup_ = + interceptDeploymentGroupBuilder_ == null + ? interceptDeploymentGroup_ + : interceptDeploymentGroupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasInterceptDeploymentGroup()) { + mergeInterceptDeploymentGroup(other.getInterceptDeploymentGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInterceptDeploymentGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.InterceptDeploymentGroup interceptDeploymentGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder> + interceptDeploymentGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeploymentGroup field is set. + */ + public boolean hasInterceptDeploymentGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroup. + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + getInterceptDeploymentGroup() { + if (interceptDeploymentGroupBuilder_ == null) { + return interceptDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance() + : interceptDeploymentGroup_; + } else { + return interceptDeploymentGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup value) { + if (interceptDeploymentGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interceptDeploymentGroup_ = value; + } else { + interceptDeploymentGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder builderForValue) { + if (interceptDeploymentGroupBuilder_ == null) { + interceptDeploymentGroup_ = builderForValue.build(); + } else { + interceptDeploymentGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterceptDeploymentGroup( + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup value) { + if (interceptDeploymentGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && interceptDeploymentGroup_ != null + && interceptDeploymentGroup_ + != com.google.cloud.networksecurity.v1.InterceptDeploymentGroup + .getDefaultInstance()) { + getInterceptDeploymentGroupBuilder().mergeFrom(value); + } else { + interceptDeploymentGroup_ = value; + } + } else { + interceptDeploymentGroupBuilder_.mergeFrom(value); + } + if (interceptDeploymentGroup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterceptDeploymentGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + interceptDeploymentGroup_ = null; + if (interceptDeploymentGroupBuilder_ != null) { + interceptDeploymentGroupBuilder_.dispose(); + interceptDeploymentGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder + getInterceptDeploymentGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetInterceptDeploymentGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupOrBuilder() { + if (interceptDeploymentGroupBuilder_ != null) { + return interceptDeploymentGroupBuilder_.getMessageOrBuilder(); + } else { + return interceptDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.getDefaultInstance() + : interceptDeploymentGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder> + internalGetInterceptDeploymentGroupFieldBuilder() { + if (interceptDeploymentGroupBuilder_ == null) { + interceptDeploymentGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder>( + getInterceptDeploymentGroup(), getParentForChildren(), isClean()); + interceptDeploymentGroup_ = null; + } + return interceptDeploymentGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) + private static final com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInterceptDeploymentGroupRequest 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.networksecurity.v1.UpdateInterceptDeploymentGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..1fe5202fed3f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateInterceptDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeploymentGroup field is set. + */ + boolean hasInterceptDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeploymentGroup. + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroup getInterceptDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeploymentGroup intercept_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentGroupOrBuilder + getInterceptDeploymentGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentRequest.java new file mode 100644 index 000000000000..f58e61da2fc0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentRequest.java @@ -0,0 +1,1288 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for UpdateInterceptDeployment.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class UpdateInterceptDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) + UpdateInterceptDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateInterceptDeploymentRequest"); + } + + // Use UpdateInterceptDeploymentRequest.newBuilder() to construct. + private UpdateInterceptDeploymentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateInterceptDeploymentRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest.class, + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int INTERCEPT_DEPLOYMENT_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.InterceptDeployment interceptDeployment_; + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeployment field is set. + */ + @java.lang.Override + public boolean hasInterceptDeployment() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeployment. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployment() { + return interceptDeployment_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance() + : interceptDeployment_; + } + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder + getInterceptDeploymentOrBuilder() { + return interceptDeployment_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance() + : interceptDeployment_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInterceptDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInterceptDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateInterceptDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest other = + (com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasInterceptDeployment() != other.hasInterceptDeployment()) return false; + if (hasInterceptDeployment()) { + if (!getInterceptDeployment().equals(other.getInterceptDeployment())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasInterceptDeployment()) { + hash = (37 * hash) + INTERCEPT_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getInterceptDeployment().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest 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.networksecurity.v1.UpdateInterceptDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest 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.networksecurity.v1.UpdateInterceptDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateInterceptDeploymentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for UpdateInterceptDeployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest.class, + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetInterceptDeploymentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + interceptDeployment_ = null; + if (interceptDeploymentBuilder_ != null) { + interceptDeploymentBuilder_.dispose(); + interceptDeploymentBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest build() { + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest result = + new com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interceptDeployment_ = + interceptDeploymentBuilder_ == null + ? interceptDeployment_ + : interceptDeploymentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasInterceptDeployment()) { + mergeInterceptDeployment(other.getInterceptDeployment()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInterceptDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.InterceptDeployment interceptDeployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder> + interceptDeploymentBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeployment field is set. + */ + public boolean hasInterceptDeployment() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeployment. + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployment() { + if (interceptDeploymentBuilder_ == null) { + return interceptDeployment_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance() + : interceptDeployment_; + } else { + return interceptDeploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptDeployment( + com.google.cloud.networksecurity.v1.InterceptDeployment value) { + if (interceptDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interceptDeployment_ = value; + } else { + interceptDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptDeployment( + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder builderForValue) { + if (interceptDeploymentBuilder_ == null) { + interceptDeployment_ = builderForValue.build(); + } else { + interceptDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterceptDeployment( + com.google.cloud.networksecurity.v1.InterceptDeployment value) { + if (interceptDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && interceptDeployment_ != null + && interceptDeployment_ + != com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance()) { + getInterceptDeploymentBuilder().mergeFrom(value); + } else { + interceptDeployment_ = value; + } + } else { + interceptDeploymentBuilder_.mergeFrom(value); + } + if (interceptDeployment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterceptDeployment() { + bitField0_ = (bitField0_ & ~0x00000002); + interceptDeployment_ = null; + if (interceptDeploymentBuilder_ != null) { + interceptDeploymentBuilder_.dispose(); + interceptDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeployment.Builder + getInterceptDeploymentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetInterceptDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder + getInterceptDeploymentOrBuilder() { + if (interceptDeploymentBuilder_ != null) { + return interceptDeploymentBuilder_.getMessageOrBuilder(); + } else { + return interceptDeployment_ == null + ? com.google.cloud.networksecurity.v1.InterceptDeployment.getDefaultInstance() + : interceptDeployment_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder> + internalGetInterceptDeploymentFieldBuilder() { + if (interceptDeploymentBuilder_ == null) { + interceptDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptDeployment, + com.google.cloud.networksecurity.v1.InterceptDeployment.Builder, + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder>( + getInterceptDeployment(), getParentForChildren(), isClean()); + interceptDeployment_ = null; + } + return interceptDeploymentBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) + private static final com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInterceptDeploymentRequest 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.networksecurity.v1.UpdateInterceptDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..de3b19715c48 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptDeploymentRequestOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateInterceptDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `intercept_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptDeployment field is set. + */ + boolean hasInterceptDeployment(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptDeployment. + */ + com.google.cloud.networksecurity.v1.InterceptDeployment getInterceptDeployment(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptDeployment intercept_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.InterceptDeploymentOrBuilder + getInterceptDeploymentOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupAssociationRequest.java new file mode 100644 index 000000000000..dba37304e9fc --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupAssociationRequest.java @@ -0,0 +1,1341 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for UpdateInterceptEndpointGroupAssociation.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest} + */ +@com.google.protobuf.Generated +public final class UpdateInterceptEndpointGroupAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) + UpdateInterceptEndpointGroupAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateInterceptEndpointGroupAssociationRequest"); + } + + // Use UpdateInterceptEndpointGroupAssociationRequest.newBuilder() to construct. + private UpdateInterceptEndpointGroupAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateInterceptEndpointGroupAssociationRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + .Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int INTERCEPT_ENDPOINT_GROUP_ASSOCIATION_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + interceptEndpointGroupAssociation_; + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroupAssociation field is set. + */ + @java.lang.Override + public boolean hasInterceptEndpointGroupAssociation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroupAssociation. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociation() { + return interceptEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.getDefaultInstance() + : interceptEndpointGroupAssociation_; + } + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationOrBuilder() { + return interceptEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.getDefaultInstance() + : interceptEndpointGroupAssociation_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInterceptEndpointGroupAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getInterceptEndpointGroupAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest other = + (com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasInterceptEndpointGroupAssociation() != other.hasInterceptEndpointGroupAssociation()) + return false; + if (hasInterceptEndpointGroupAssociation()) { + if (!getInterceptEndpointGroupAssociation() + .equals(other.getInterceptEndpointGroupAssociation())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasInterceptEndpointGroupAssociation()) { + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUP_ASSOCIATION_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroupAssociation().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + 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.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + 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.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for UpdateInterceptEndpointGroupAssociation.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetInterceptEndpointGroupAssociationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + interceptEndpointGroupAssociation_ = null; + if (interceptEndpointGroupAssociationBuilder_ != null) { + interceptEndpointGroupAssociationBuilder_.dispose(); + interceptEndpointGroupAssociationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + build() { + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest result = + new com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interceptEndpointGroupAssociation_ = + interceptEndpointGroupAssociationBuilder_ == null + ? interceptEndpointGroupAssociation_ + : interceptEndpointGroupAssociationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasInterceptEndpointGroupAssociation()) { + mergeInterceptEndpointGroupAssociation(other.getInterceptEndpointGroupAssociation()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInterceptEndpointGroupAssociationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `intercept_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + interceptEndpointGroupAssociation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + interceptEndpointGroupAssociationBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroupAssociation field is set. + */ + public boolean hasInterceptEndpointGroupAssociation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroupAssociation. + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociation() { + if (interceptEndpointGroupAssociationBuilder_ == null) { + return interceptEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance() + : interceptEndpointGroupAssociation_; + } else { + return interceptEndpointGroupAssociationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation value) { + if (interceptEndpointGroupAssociationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interceptEndpointGroupAssociation_ = value; + } else { + interceptEndpointGroupAssociationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + builderForValue) { + if (interceptEndpointGroupAssociationBuilder_ == null) { + interceptEndpointGroupAssociation_ = builderForValue.build(); + } else { + interceptEndpointGroupAssociationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterceptEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation value) { + if (interceptEndpointGroupAssociationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && interceptEndpointGroupAssociation_ != null + && interceptEndpointGroupAssociation_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance()) { + getInterceptEndpointGroupAssociationBuilder().mergeFrom(value); + } else { + interceptEndpointGroupAssociation_ = value; + } + } else { + interceptEndpointGroupAssociationBuilder_.mergeFrom(value); + } + if (interceptEndpointGroupAssociation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterceptEndpointGroupAssociation() { + bitField0_ = (bitField0_ & ~0x00000002); + interceptEndpointGroupAssociation_ = null; + if (interceptEndpointGroupAssociationBuilder_ != null) { + interceptEndpointGroupAssociationBuilder_.dispose(); + interceptEndpointGroupAssociationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder + getInterceptEndpointGroupAssociationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetInterceptEndpointGroupAssociationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationOrBuilder() { + if (interceptEndpointGroupAssociationBuilder_ != null) { + return interceptEndpointGroupAssociationBuilder_.getMessageOrBuilder(); + } else { + return interceptEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + .getDefaultInstance() + : interceptEndpointGroupAssociation_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder> + internalGetInterceptEndpointGroupAssociationFieldBuilder() { + if (interceptEndpointGroupAssociationBuilder_ == null) { + interceptEndpointGroupAssociationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder>( + getInterceptEndpointGroupAssociation(), getParentForChildren(), isClean()); + interceptEndpointGroupAssociation_ = null; + } + return interceptEndpointGroupAssociationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) + private static final com.google.cloud.networksecurity.v1 + .UpdateInterceptEndpointGroupAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInterceptEndpointGroupAssociationRequest 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.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..4ea3ad92cae0 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupAssociationRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateInterceptEndpointGroupAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `intercept_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroupAssociation field is set. + */ + boolean hasInterceptEndpointGroupAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroupAssociation. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation + getInterceptEndpointGroupAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationOrBuilder + getInterceptEndpointGroupAssociationOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupRequest.java new file mode 100644 index 000000000000..8117ba97ec5d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupRequest.java @@ -0,0 +1,1295 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for UpdateInterceptEndpointGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest} + */ +@com.google.protobuf.Generated +public final class UpdateInterceptEndpointGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) + UpdateInterceptEndpointGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateInterceptEndpointGroupRequest"); + } + + // Use UpdateInterceptEndpointGroupRequest.newBuilder() to construct. + private UpdateInterceptEndpointGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateInterceptEndpointGroupRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int INTERCEPT_ENDPOINT_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.InterceptEndpointGroup interceptEndpointGroup_; + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroup field is set. + */ + @java.lang.Override + public boolean hasInterceptEndpointGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroup() { + return interceptEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance() + : interceptEndpointGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupOrBuilder() { + return interceptEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance() + : interceptEndpointGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInterceptEndpointGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInterceptEndpointGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateInterceptEndpointGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest other = + (com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasInterceptEndpointGroup() != other.hasInterceptEndpointGroup()) return false; + if (hasInterceptEndpointGroup()) { + if (!getInterceptEndpointGroup().equals(other.getInterceptEndpointGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasInterceptEndpointGroup()) { + hash = (37 * hash) + INTERCEPT_ENDPOINT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInterceptEndpointGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest 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.networksecurity.v1.UpdateInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest 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.networksecurity.v1.UpdateInterceptEndpointGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateInterceptEndpointGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for UpdateInterceptEndpointGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetInterceptEndpointGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + interceptEndpointGroup_ = null; + if (interceptEndpointGroupBuilder_ != null) { + interceptEndpointGroupBuilder_.dispose(); + interceptEndpointGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.InterceptProto + .internal_static_google_cloud_networksecurity_v1_UpdateInterceptEndpointGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest build() { + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest result = + new com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.interceptEndpointGroup_ = + interceptEndpointGroupBuilder_ == null + ? interceptEndpointGroup_ + : interceptEndpointGroupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasInterceptEndpointGroup()) { + mergeInterceptEndpointGroup(other.getInterceptEndpointGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInterceptEndpointGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.InterceptEndpointGroup interceptEndpointGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder> + interceptEndpointGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroup field is set. + */ + public boolean hasInterceptEndpointGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroup. + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroup() { + if (interceptEndpointGroupBuilder_ == null) { + return interceptEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance() + : interceptEndpointGroup_; + } else { + return interceptEndpointGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup value) { + if (interceptEndpointGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interceptEndpointGroup_ = value; + } else { + interceptEndpointGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder builderForValue) { + if (interceptEndpointGroupBuilder_ == null) { + interceptEndpointGroup_ = builderForValue.build(); + } else { + interceptEndpointGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterceptEndpointGroup( + com.google.cloud.networksecurity.v1.InterceptEndpointGroup value) { + if (interceptEndpointGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && interceptEndpointGroup_ != null + && interceptEndpointGroup_ + != com.google.cloud.networksecurity.v1.InterceptEndpointGroup + .getDefaultInstance()) { + getInterceptEndpointGroupBuilder().mergeFrom(value); + } else { + interceptEndpointGroup_ = value; + } + } else { + interceptEndpointGroupBuilder_.mergeFrom(value); + } + if (interceptEndpointGroup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterceptEndpointGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + interceptEndpointGroup_ = null; + if (interceptEndpointGroupBuilder_ != null) { + interceptEndpointGroupBuilder_.dispose(); + interceptEndpointGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder + getInterceptEndpointGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetInterceptEndpointGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupOrBuilder() { + if (interceptEndpointGroupBuilder_ != null) { + return interceptEndpointGroupBuilder_.getMessageOrBuilder(); + } else { + return interceptEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.InterceptEndpointGroup.getDefaultInstance() + : interceptEndpointGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder> + internalGetInterceptEndpointGroupFieldBuilder() { + if (interceptEndpointGroupBuilder_ == null) { + interceptEndpointGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.InterceptEndpointGroup, + com.google.cloud.networksecurity.v1.InterceptEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder>( + getInterceptEndpointGroup(), getParentForChildren(), isClean()); + interceptEndpointGroup_ = null; + } + return interceptEndpointGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) + private static final com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInterceptEndpointGroupRequest 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.networksecurity.v1.UpdateInterceptEndpointGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupRequestOrBuilder.java new file mode 100644 index 000000000000..6ae45a451d59 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateInterceptEndpointGroupRequestOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/intercept.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateInterceptEndpointGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `intercept_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interceptEndpointGroup field is set. + */ + boolean hasInterceptEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interceptEndpointGroup. + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroup getInterceptEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.InterceptEndpointGroup intercept_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.InterceptEndpointGroupOrBuilder + getInterceptEndpointGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentGroupRequest.java new file mode 100644 index 000000000000..cdb9702b17ee --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentGroupRequest.java @@ -0,0 +1,1314 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for UpdateMirroringDeploymentGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMirroringDeploymentGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) + UpdateMirroringDeploymentGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMirroringDeploymentGroupRequest"); + } + + // Use UpdateMirroringDeploymentGroupRequest.newBuilder() to construct. + private UpdateMirroringDeploymentGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMirroringDeploymentGroupRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int MIRRORING_DEPLOYMENT_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroringDeploymentGroup_; + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeploymentGroup field is set. + */ + @java.lang.Override + public boolean hasMirroringDeploymentGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + getMirroringDeploymentGroup() { + return mirroringDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance() + : mirroringDeploymentGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupOrBuilder() { + return mirroringDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance() + : mirroringDeploymentGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMirroringDeploymentGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getMirroringDeploymentGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateMirroringDeploymentGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest other = + (com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasMirroringDeploymentGroup() != other.hasMirroringDeploymentGroup()) return false; + if (hasMirroringDeploymentGroup()) { + if (!getMirroringDeploymentGroup().equals(other.getMirroringDeploymentGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasMirroringDeploymentGroup()) { + hash = (37 * hash) + MIRRORING_DEPLOYMENT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeploymentGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest 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.networksecurity.v1.UpdateMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest 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.networksecurity.v1.UpdateMirroringDeploymentGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateMirroringDeploymentGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for UpdateMirroringDeploymentGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetMirroringDeploymentGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + mirroringDeploymentGroup_ = null; + if (mirroringDeploymentGroupBuilder_ != null) { + mirroringDeploymentGroupBuilder_.dispose(); + mirroringDeploymentGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest build() { + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + buildPartial() { + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest result = + new com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mirroringDeploymentGroup_ = + mirroringDeploymentGroupBuilder_ == null + ? mirroringDeploymentGroup_ + : mirroringDeploymentGroupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasMirroringDeploymentGroup()) { + mergeMirroringDeploymentGroup(other.getMirroringDeploymentGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMirroringDeploymentGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment group
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_deployment_group.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroringDeploymentGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder> + mirroringDeploymentGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeploymentGroup field is set. + */ + public boolean hasMirroringDeploymentGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroup. + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + getMirroringDeploymentGroup() { + if (mirroringDeploymentGroupBuilder_ == null) { + return mirroringDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance() + : mirroringDeploymentGroup_; + } else { + return mirroringDeploymentGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup value) { + if (mirroringDeploymentGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mirroringDeploymentGroup_ = value; + } else { + mirroringDeploymentGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder builderForValue) { + if (mirroringDeploymentGroupBuilder_ == null) { + mirroringDeploymentGroup_ = builderForValue.build(); + } else { + mirroringDeploymentGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMirroringDeploymentGroup( + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup value) { + if (mirroringDeploymentGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && mirroringDeploymentGroup_ != null + && mirroringDeploymentGroup_ + != com.google.cloud.networksecurity.v1.MirroringDeploymentGroup + .getDefaultInstance()) { + getMirroringDeploymentGroupBuilder().mergeFrom(value); + } else { + mirroringDeploymentGroup_ = value; + } + } else { + mirroringDeploymentGroupBuilder_.mergeFrom(value); + } + if (mirroringDeploymentGroup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMirroringDeploymentGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + mirroringDeploymentGroup_ = null; + if (mirroringDeploymentGroupBuilder_ != null) { + mirroringDeploymentGroupBuilder_.dispose(); + mirroringDeploymentGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder + getMirroringDeploymentGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMirroringDeploymentGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupOrBuilder() { + if (mirroringDeploymentGroupBuilder_ != null) { + return mirroringDeploymentGroupBuilder_.getMessageOrBuilder(); + } else { + return mirroringDeploymentGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.getDefaultInstance() + : mirroringDeploymentGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder> + internalGetMirroringDeploymentGroupFieldBuilder() { + if (mirroringDeploymentGroupBuilder_ == null) { + mirroringDeploymentGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder>( + getMirroringDeploymentGroup(), getParentForChildren(), isClean()); + mirroringDeploymentGroup_ = null; + } + return mirroringDeploymentGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) + private static final com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMirroringDeploymentGroupRequest 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.networksecurity.v1.UpdateMirroringDeploymentGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentGroupRequestOrBuilder.java new file mode 100644 index 000000000000..13a3231338a6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentGroupRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateMirroringDeploymentGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment group
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_deployment_group.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeploymentGroup field is set. + */ + boolean hasMirroringDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeploymentGroup. + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroup getMirroringDeploymentGroup(); + + /** + * + * + *
                                                                                              +   * Required. The deployment group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeploymentGroup mirroring_deployment_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentGroupOrBuilder + getMirroringDeploymentGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentRequest.java new file mode 100644 index 000000000000..156bee208797 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentRequest.java @@ -0,0 +1,1288 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for UpdateMirroringDeployment.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMirroringDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) + UpdateMirroringDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMirroringDeploymentRequest"); + } + + // Use UpdateMirroringDeploymentRequest.newBuilder() to construct. + private UpdateMirroringDeploymentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMirroringDeploymentRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest.class, + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int MIRRORING_DEPLOYMENT_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.MirroringDeployment mirroringDeployment_; + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeployment field is set. + */ + @java.lang.Override + public boolean hasMirroringDeployment() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeployment. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployment() { + return mirroringDeployment_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance() + : mirroringDeployment_; + } + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder + getMirroringDeploymentOrBuilder() { + return mirroringDeployment_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance() + : mirroringDeployment_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMirroringDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMirroringDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateMirroringDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest other = + (com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasMirroringDeployment() != other.hasMirroringDeployment()) return false; + if (hasMirroringDeployment()) { + if (!getMirroringDeployment().equals(other.getMirroringDeployment())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasMirroringDeployment()) { + hash = (37 * hash) + MIRRORING_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getMirroringDeployment().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest 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.networksecurity.v1.UpdateMirroringDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest 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.networksecurity.v1.UpdateMirroringDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateMirroringDeploymentRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for UpdateMirroringDeployment.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest.class, + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetMirroringDeploymentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + mirroringDeployment_ = null; + if (mirroringDeploymentBuilder_ != null) { + mirroringDeploymentBuilder_.dispose(); + mirroringDeploymentBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest build() { + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest result = + new com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mirroringDeployment_ = + mirroringDeploymentBuilder_ == null + ? mirroringDeployment_ + : mirroringDeploymentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasMirroringDeployment()) { + mergeMirroringDeployment(other.getMirroringDeployment()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMirroringDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the deployment
                                                                                              +     * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.MirroringDeployment mirroringDeployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder> + mirroringDeploymentBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeployment field is set. + */ + public boolean hasMirroringDeployment() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeployment. + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployment() { + if (mirroringDeploymentBuilder_ == null) { + return mirroringDeployment_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance() + : mirroringDeployment_; + } else { + return mirroringDeploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringDeployment( + com.google.cloud.networksecurity.v1.MirroringDeployment value) { + if (mirroringDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mirroringDeployment_ = value; + } else { + mirroringDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringDeployment( + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder builderForValue) { + if (mirroringDeploymentBuilder_ == null) { + mirroringDeployment_ = builderForValue.build(); + } else { + mirroringDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMirroringDeployment( + com.google.cloud.networksecurity.v1.MirroringDeployment value) { + if (mirroringDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && mirroringDeployment_ != null + && mirroringDeployment_ + != com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance()) { + getMirroringDeploymentBuilder().mergeFrom(value); + } else { + mirroringDeployment_ = value; + } + } else { + mirroringDeploymentBuilder_.mergeFrom(value); + } + if (mirroringDeployment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMirroringDeployment() { + bitField0_ = (bitField0_ & ~0x00000002); + mirroringDeployment_ = null; + if (mirroringDeploymentBuilder_ != null) { + mirroringDeploymentBuilder_.dispose(); + mirroringDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeployment.Builder + getMirroringDeploymentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMirroringDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder + getMirroringDeploymentOrBuilder() { + if (mirroringDeploymentBuilder_ != null) { + return mirroringDeploymentBuilder_.getMessageOrBuilder(); + } else { + return mirroringDeployment_ == null + ? com.google.cloud.networksecurity.v1.MirroringDeployment.getDefaultInstance() + : mirroringDeployment_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The deployment to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder> + internalGetMirroringDeploymentFieldBuilder() { + if (mirroringDeploymentBuilder_ == null) { + mirroringDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringDeployment, + com.google.cloud.networksecurity.v1.MirroringDeployment.Builder, + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder>( + getMirroringDeployment(), getParentForChildren(), isClean()); + mirroringDeployment_ = null; + } + return mirroringDeploymentBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) + private static final com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMirroringDeploymentRequest 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.networksecurity.v1.UpdateMirroringDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..66193da44cc9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringDeploymentRequestOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateMirroringDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the deployment
                                                                                              +   * (e.g. `description`; *not* `mirroring_deployment.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringDeployment field is set. + */ + boolean hasMirroringDeployment(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringDeployment. + */ + com.google.cloud.networksecurity.v1.MirroringDeployment getMirroringDeployment(); + + /** + * + * + *
                                                                                              +   * Required. The deployment to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringDeployment mirroring_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.MirroringDeploymentOrBuilder + getMirroringDeploymentOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupAssociationRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupAssociationRequest.java new file mode 100644 index 000000000000..0dbc20e68993 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupAssociationRequest.java @@ -0,0 +1,1341 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for UpdateMirroringEndpointGroupAssociation.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMirroringEndpointGroupAssociationRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) + UpdateMirroringEndpointGroupAssociationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMirroringEndpointGroupAssociationRequest"); + } + + // Use UpdateMirroringEndpointGroupAssociationRequest.newBuilder() to construct. + private UpdateMirroringEndpointGroupAssociationRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMirroringEndpointGroupAssociationRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + .Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int MIRRORING_ENDPOINT_GROUP_ASSOCIATION_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + mirroringEndpointGroupAssociation_; + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroupAssociation field is set. + */ + @java.lang.Override + public boolean hasMirroringEndpointGroupAssociation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroupAssociation. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociation() { + return mirroringEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.getDefaultInstance() + : mirroringEndpointGroupAssociation_; + } + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationOrBuilder() { + return mirroringEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.getDefaultInstance() + : mirroringEndpointGroupAssociation_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMirroringEndpointGroupAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getMirroringEndpointGroupAssociation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest other = + (com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasMirroringEndpointGroupAssociation() != other.hasMirroringEndpointGroupAssociation()) + return false; + if (hasMirroringEndpointGroupAssociation()) { + if (!getMirroringEndpointGroupAssociation() + .equals(other.getMirroringEndpointGroupAssociation())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasMirroringEndpointGroupAssociation()) { + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUP_ASSOCIATION_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroupAssociation().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + 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.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + 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.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for UpdateMirroringEndpointGroupAssociation.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + .class, + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetMirroringEndpointGroupAssociationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + mirroringEndpointGroupAssociation_ = null; + if (mirroringEndpointGroupAssociationBuilder_ != null) { + mirroringEndpointGroupAssociationBuilder_.dispose(); + mirroringEndpointGroupAssociationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupAssociationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + build() { + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + buildPartial() { + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest result = + new com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mirroringEndpointGroupAssociation_ = + mirroringEndpointGroupAssociationBuilder_ == null + ? mirroringEndpointGroupAssociation_ + : mirroringEndpointGroupAssociationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasMirroringEndpointGroupAssociation()) { + mergeMirroringEndpointGroupAssociation(other.getMirroringEndpointGroupAssociation()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMirroringEndpointGroupAssociationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the association
                                                                                              +     * (e.g. `description`; *not*
                                                                                              +     * `mirroring_endpoint_group_association.description`). See
                                                                                              +     * https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + mirroringEndpointGroupAssociation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + mirroringEndpointGroupAssociationBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroupAssociation field is set. + */ + public boolean hasMirroringEndpointGroupAssociation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroupAssociation. + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociation() { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + return mirroringEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance() + : mirroringEndpointGroupAssociation_; + } else { + return mirroringEndpointGroupAssociationBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation value) { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mirroringEndpointGroupAssociation_ = value; + } else { + mirroringEndpointGroupAssociationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + builderForValue) { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + mirroringEndpointGroupAssociation_ = builderForValue.build(); + } else { + mirroringEndpointGroupAssociationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMirroringEndpointGroupAssociation( + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation value) { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && mirroringEndpointGroupAssociation_ != null + && mirroringEndpointGroupAssociation_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance()) { + getMirroringEndpointGroupAssociationBuilder().mergeFrom(value); + } else { + mirroringEndpointGroupAssociation_ = value; + } + } else { + mirroringEndpointGroupAssociationBuilder_.mergeFrom(value); + } + if (mirroringEndpointGroupAssociation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMirroringEndpointGroupAssociation() { + bitField0_ = (bitField0_ & ~0x00000002); + mirroringEndpointGroupAssociation_ = null; + if (mirroringEndpointGroupAssociationBuilder_ != null) { + mirroringEndpointGroupAssociationBuilder_.dispose(); + mirroringEndpointGroupAssociationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder + getMirroringEndpointGroupAssociationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMirroringEndpointGroupAssociationFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationOrBuilder() { + if (mirroringEndpointGroupAssociationBuilder_ != null) { + return mirroringEndpointGroupAssociationBuilder_.getMessageOrBuilder(); + } else { + return mirroringEndpointGroupAssociation_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + .getDefaultInstance() + : mirroringEndpointGroupAssociation_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The association to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder> + internalGetMirroringEndpointGroupAssociationFieldBuilder() { + if (mirroringEndpointGroupAssociationBuilder_ == null) { + mirroringEndpointGroupAssociationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder>( + getMirroringEndpointGroupAssociation(), getParentForChildren(), isClean()); + mirroringEndpointGroupAssociation_ = null; + } + return mirroringEndpointGroupAssociationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) + private static final com.google.cloud.networksecurity.v1 + .UpdateMirroringEndpointGroupAssociationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMirroringEndpointGroupAssociationRequest 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.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupAssociationRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupAssociationRequestOrBuilder.java new file mode 100644 index 000000000000..94dc34be3967 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupAssociationRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateMirroringEndpointGroupAssociationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the association
                                                                                              +   * (e.g. `description`; *not*
                                                                                              +   * `mirroring_endpoint_group_association.description`). See
                                                                                              +   * https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroupAssociation field is set. + */ + boolean hasMirroringEndpointGroupAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroupAssociation. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation + getMirroringEndpointGroupAssociation(); + + /** + * + * + *
                                                                                              +   * Required. The association to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationOrBuilder + getMirroringEndpointGroupAssociationOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupRequest.java new file mode 100644 index 000000000000..f62c9bfa8c7c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupRequest.java @@ -0,0 +1,1295 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request message for UpdateMirroringEndpointGroup.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMirroringEndpointGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) + UpdateMirroringEndpointGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMirroringEndpointGroupRequest"); + } + + // Use UpdateMirroringEndpointGroupRequest.newBuilder() to construct. + private UpdateMirroringEndpointGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMirroringEndpointGroupRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int MIRRORING_ENDPOINT_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.MirroringEndpointGroup mirroringEndpointGroup_; + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroup field is set. + */ + @java.lang.Override + public boolean hasMirroringEndpointGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroup() { + return mirroringEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance() + : mirroringEndpointGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupOrBuilder() { + return mirroringEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance() + : mirroringEndpointGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMirroringEndpointGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMirroringEndpointGroup()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.networksecurity.v1.UpdateMirroringEndpointGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest other = + (com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasMirroringEndpointGroup() != other.hasMirroringEndpointGroup()) return false; + if (hasMirroringEndpointGroup()) { + if (!getMirroringEndpointGroup().equals(other.getMirroringEndpointGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasMirroringEndpointGroup()) { + hash = (37 * hash) + MIRRORING_ENDPOINT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getMirroringEndpointGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest 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.networksecurity.v1.UpdateMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest 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.networksecurity.v1.UpdateMirroringEndpointGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateMirroringEndpointGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request message for UpdateMirroringEndpointGroup.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetMirroringEndpointGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + mirroringEndpointGroup_ = null; + if (mirroringEndpointGroupBuilder_ != null) { + mirroringEndpointGroupBuilder_.dispose(); + mirroringEndpointGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.MirroringProto + .internal_static_google_cloud_networksecurity_v1_UpdateMirroringEndpointGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest build() { + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest result = + new com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mirroringEndpointGroup_ = + mirroringEndpointGroupBuilder_ == null + ? mirroringEndpointGroup_ + : mirroringEndpointGroupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasMirroringEndpointGroup()) { + mergeMirroringEndpointGroup(other.getMirroringEndpointGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMirroringEndpointGroupFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of fields to update.
                                                                                              +     * Fields are specified relative to the endpoint group
                                                                                              +     * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +     * See https://google.aip.dev/161 for more details.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.MirroringEndpointGroup mirroringEndpointGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder> + mirroringEndpointGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroup field is set. + */ + public boolean hasMirroringEndpointGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroup. + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroup() { + if (mirroringEndpointGroupBuilder_ == null) { + return mirroringEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance() + : mirroringEndpointGroup_; + } else { + return mirroringEndpointGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup value) { + if (mirroringEndpointGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mirroringEndpointGroup_ = value; + } else { + mirroringEndpointGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder builderForValue) { + if (mirroringEndpointGroupBuilder_ == null) { + mirroringEndpointGroup_ = builderForValue.build(); + } else { + mirroringEndpointGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMirroringEndpointGroup( + com.google.cloud.networksecurity.v1.MirroringEndpointGroup value) { + if (mirroringEndpointGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && mirroringEndpointGroup_ != null + && mirroringEndpointGroup_ + != com.google.cloud.networksecurity.v1.MirroringEndpointGroup + .getDefaultInstance()) { + getMirroringEndpointGroupBuilder().mergeFrom(value); + } else { + mirroringEndpointGroup_ = value; + } + } else { + mirroringEndpointGroupBuilder_.mergeFrom(value); + } + if (mirroringEndpointGroup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMirroringEndpointGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + mirroringEndpointGroup_ = null; + if (mirroringEndpointGroupBuilder_ != null) { + mirroringEndpointGroupBuilder_.dispose(); + mirroringEndpointGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder + getMirroringEndpointGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMirroringEndpointGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupOrBuilder() { + if (mirroringEndpointGroupBuilder_ != null) { + return mirroringEndpointGroupBuilder_.getMessageOrBuilder(); + } else { + return mirroringEndpointGroup_ == null + ? com.google.cloud.networksecurity.v1.MirroringEndpointGroup.getDefaultInstance() + : mirroringEndpointGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. The endpoint group to update.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder> + internalGetMirroringEndpointGroupFieldBuilder() { + if (mirroringEndpointGroupBuilder_ == null) { + mirroringEndpointGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.MirroringEndpointGroup, + com.google.cloud.networksecurity.v1.MirroringEndpointGroup.Builder, + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder>( + getMirroringEndpointGroup(), getParentForChildren(), isClean()); + mirroringEndpointGroup_ = null; + } + return mirroringEndpointGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +     * This request is only idempotent if a `request_id` is provided.
                                                                                              +     * See https://google.aip.dev/155 for more details.
                                                                                              +     * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) + private static final com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMirroringEndpointGroupRequest 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.networksecurity.v1.UpdateMirroringEndpointGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupRequestOrBuilder.java new file mode 100644 index 000000000000..4c78cc879c92 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateMirroringEndpointGroupRequestOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/mirroring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateMirroringEndpointGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. The list of fields to update.
                                                                                              +   * Fields are specified relative to the endpoint group
                                                                                              +   * (e.g. `description`; *not* `mirroring_endpoint_group.description`).
                                                                                              +   * See https://google.aip.dev/161 for more details.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the mirroringEndpointGroup field is set. + */ + boolean hasMirroringEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The mirroringEndpointGroup. + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroup getMirroringEndpointGroup(); + + /** + * + * + *
                                                                                              +   * Required. The endpoint group to update.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.MirroringEndpointGroup mirroring_endpoint_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.MirroringEndpointGroupOrBuilder + getMirroringEndpointGroupOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
                                                                                              +   * Optional. A unique identifier for this request. Must be a UUID4.
                                                                                              +   * This request is only idempotent if a `request_id` is provided.
                                                                                              +   * See https://google.aip.dev/155 for more details.
                                                                                              +   * 
                                                                                              + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileGroupRequest.java new file mode 100644 index 000000000000..44d849cf05ce --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileGroupRequest.java @@ -0,0 +1,1071 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the UpdateSecurityProfileGroup method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest} + */ +@com.google.protobuf.Generated +public final class UpdateSecurityProfileGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) + UpdateSecurityProfileGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateSecurityProfileGroupRequest"); + } + + // Use UpdateSecurityProfileGroupRequest.newBuilder() to construct. + private UpdateSecurityProfileGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateSecurityProfileGroupRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfileGroup resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfileGroup resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfileGroup resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int SECURITY_PROFILE_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.SecurityProfileGroup securityProfileGroup_; + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfileGroup resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfileGroup field is set. + */ + @java.lang.Override + public boolean hasSecurityProfileGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfileGroup resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfileGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroup() { + return securityProfileGroup_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance() + : securityProfileGroup_; + } + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfileGroup resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupOrBuilder() { + return securityProfileGroup_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance() + : securityProfileGroup_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSecurityProfileGroup()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSecurityProfileGroup()); + } + 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.networksecurity.v1.UpdateSecurityProfileGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest other = + (com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasSecurityProfileGroup() != other.hasSecurityProfileGroup()) return false; + if (hasSecurityProfileGroup()) { + if (!getSecurityProfileGroup().equals(other.getSecurityProfileGroup())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasSecurityProfileGroup()) { + hash = (37 * hash) + SECURITY_PROFILE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSecurityProfileGroup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest 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.networksecurity.v1.UpdateSecurityProfileGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest 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.networksecurity.v1.UpdateSecurityProfileGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateSecurityProfileGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the UpdateSecurityProfileGroup method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetSecurityProfileGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + securityProfileGroup_ = null; + if (securityProfileGroupBuilder_ != null) { + securityProfileGroupBuilder_.dispose(); + securityProfileGroupBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest build() { + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest result = + new com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityProfileGroup_ = + securityProfileGroupBuilder_ == null + ? securityProfileGroup_ + : securityProfileGroupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasSecurityProfileGroup()) { + mergeSecurityProfileGroup(other.getSecurityProfileGroup()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetSecurityProfileGroupFieldBuilder().getBuilder(), extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfileGroup resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.SecurityProfileGroup securityProfileGroup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder> + securityProfileGroupBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfileGroup field is set. + */ + public boolean hasSecurityProfileGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfileGroup. + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroup() { + if (securityProfileGroupBuilder_ == null) { + return securityProfileGroup_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance() + : securityProfileGroup_; + } else { + return securityProfileGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityProfileGroup( + com.google.cloud.networksecurity.v1.SecurityProfileGroup value) { + if (securityProfileGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityProfileGroup_ = value; + } else { + securityProfileGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityProfileGroup( + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder builderForValue) { + if (securityProfileGroupBuilder_ == null) { + securityProfileGroup_ = builderForValue.build(); + } else { + securityProfileGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSecurityProfileGroup( + com.google.cloud.networksecurity.v1.SecurityProfileGroup value) { + if (securityProfileGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && securityProfileGroup_ != null + && securityProfileGroup_ + != com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance()) { + getSecurityProfileGroupBuilder().mergeFrom(value); + } else { + securityProfileGroup_ = value; + } + } else { + securityProfileGroupBuilder_.mergeFrom(value); + } + if (securityProfileGroup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSecurityProfileGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + securityProfileGroup_ = null; + if (securityProfileGroupBuilder_ != null) { + securityProfileGroupBuilder_.dispose(); + securityProfileGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder + getSecurityProfileGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSecurityProfileGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupOrBuilder() { + if (securityProfileGroupBuilder_ != null) { + return securityProfileGroupBuilder_.getMessageOrBuilder(); + } else { + return securityProfileGroup_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfileGroup.getDefaultInstance() + : securityProfileGroup_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfileGroup resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder> + internalGetSecurityProfileGroupFieldBuilder() { + if (securityProfileGroupBuilder_ == null) { + securityProfileGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfileGroup, + com.google.cloud.networksecurity.v1.SecurityProfileGroup.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder>( + getSecurityProfileGroup(), getParentForChildren(), isClean()); + securityProfileGroup_ = null; + } + return securityProfileGroupBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) + private static final com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecurityProfileGroupRequest 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.networksecurity.v1.UpdateSecurityProfileGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileGroupRequestOrBuilder.java new file mode 100644 index 000000000000..86cafc0329d6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileGroupRequestOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateSecurityProfileGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfileGroup resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfileGroup resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfileGroup resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfileGroup resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfileGroup field is set. + */ + boolean hasSecurityProfileGroup(); + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfileGroup resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfileGroup. + */ + com.google.cloud.networksecurity.v1.SecurityProfileGroup getSecurityProfileGroup(); + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfileGroup resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfileGroup security_profile_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.SecurityProfileGroupOrBuilder + getSecurityProfileGroupOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileRequest.java new file mode 100644 index 000000000000..f5b8eeb911c9 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileRequest.java @@ -0,0 +1,1060 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the UpdateSecurityProfile method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateSecurityProfileRequest} + */ +@com.google.protobuf.Generated +public final class UpdateSecurityProfileRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) + UpdateSecurityProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateSecurityProfileRequest"); + } + + // Use UpdateSecurityProfileRequest.newBuilder() to construct. + private UpdateSecurityProfileRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateSecurityProfileRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest.class, + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfile resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfile resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfile resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int SECURITY_PROFILE_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.SecurityProfile securityProfile_; + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfile resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfile field is set. + */ + @java.lang.Override + public boolean hasSecurityProfile() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfile resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfile. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfile() { + return securityProfile_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance() + : securityProfile_; + } + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfile resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder + getSecurityProfileOrBuilder() { + return securityProfile_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance() + : securityProfile_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSecurityProfile()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSecurityProfile()); + } + 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.networksecurity.v1.UpdateSecurityProfileRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest other = + (com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasSecurityProfile() != other.hasSecurityProfile()) return false; + if (hasSecurityProfile()) { + if (!getSecurityProfile().equals(other.getSecurityProfile())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasSecurityProfile()) { + hash = (37 * hash) + SECURITY_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getSecurityProfile().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest 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.networksecurity.v1.UpdateSecurityProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest 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.networksecurity.v1.UpdateSecurityProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateSecurityProfileRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the UpdateSecurityProfile method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateSecurityProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest.class, + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetSecurityProfileFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + securityProfile_ = null; + if (securityProfileBuilder_ != null) { + securityProfileBuilder_.dispose(); + securityProfileBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupServiceProto + .internal_static_google_cloud_networksecurity_v1_UpdateSecurityProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest build() { + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest result = + new com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityProfile_ = + securityProfileBuilder_ == null ? securityProfile_ : securityProfileBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasSecurityProfile()) { + mergeSecurityProfile(other.getSecurityProfile()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetSecurityProfileFieldBuilder().getBuilder(), extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * SecurityProfile resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.SecurityProfile securityProfile_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder> + securityProfileBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfile field is set. + */ + public boolean hasSecurityProfile() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfile. + */ + public com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfile() { + if (securityProfileBuilder_ == null) { + return securityProfile_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance() + : securityProfile_; + } else { + return securityProfileBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityProfile(com.google.cloud.networksecurity.v1.SecurityProfile value) { + if (securityProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityProfile_ = value; + } else { + securityProfileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityProfile( + com.google.cloud.networksecurity.v1.SecurityProfile.Builder builderForValue) { + if (securityProfileBuilder_ == null) { + securityProfile_ = builderForValue.build(); + } else { + securityProfileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSecurityProfile(com.google.cloud.networksecurity.v1.SecurityProfile value) { + if (securityProfileBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && securityProfile_ != null + && securityProfile_ + != com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance()) { + getSecurityProfileBuilder().mergeFrom(value); + } else { + securityProfile_ = value; + } + } else { + securityProfileBuilder_.mergeFrom(value); + } + if (securityProfile_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSecurityProfile() { + bitField0_ = (bitField0_ & ~0x00000002); + securityProfile_ = null; + if (securityProfileBuilder_ != null) { + securityProfileBuilder_.dispose(); + securityProfileBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfile.Builder getSecurityProfileBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSecurityProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder + getSecurityProfileOrBuilder() { + if (securityProfileBuilder_ != null) { + return securityProfileBuilder_.getMessageOrBuilder(); + } else { + return securityProfile_ == null + ? com.google.cloud.networksecurity.v1.SecurityProfile.getDefaultInstance() + : securityProfile_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated SecurityProfile resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder> + internalGetSecurityProfileFieldBuilder() { + if (securityProfileBuilder_ == null) { + securityProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.SecurityProfile, + com.google.cloud.networksecurity.v1.SecurityProfile.Builder, + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder>( + getSecurityProfile(), getParentForChildren(), isClean()); + securityProfile_ = null; + } + return securityProfileBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) + private static final com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecurityProfileRequest 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.networksecurity.v1.UpdateSecurityProfileRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileRequestOrBuilder.java new file mode 100644 index 000000000000..95cfb193790d --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateSecurityProfileRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateSecurityProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateSecurityProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfile resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfile resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * SecurityProfile resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfile resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityProfile field is set. + */ + boolean hasSecurityProfile(); + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfile resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityProfile. + */ + com.google.cloud.networksecurity.v1.SecurityProfile getSecurityProfile(); + + /** + * + * + *
                                                                                              +   * Required. Updated SecurityProfile resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.SecurityProfile security_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.SecurityProfileOrBuilder getSecurityProfileOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateTlsInspectionPolicyRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateTlsInspectionPolicyRequest.java new file mode 100644 index 000000000000..20dca5d75fae --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateTlsInspectionPolicyRequest.java @@ -0,0 +1,1082 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by the UpdateTlsInspectionPolicy method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateTlsInspectionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) + UpdateTlsInspectionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateTlsInspectionPolicyRequest"); + } + + // Use UpdateTlsInspectionPolicyRequest.newBuilder() to construct. + private UpdateTlsInspectionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateTlsInspectionPolicyRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest.class, + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * TlsInspectionPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * TlsInspectionPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * TlsInspectionPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int TLS_INSPECTION_POLICY_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.TlsInspectionPolicy tlsInspectionPolicy_; + + /** + * + * + *
                                                                                              +   * Required. Updated TlsInspectionPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tlsInspectionPolicy field is set. + */ + @java.lang.Override + public boolean hasTlsInspectionPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Updated TlsInspectionPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tlsInspectionPolicy. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicy() { + return tlsInspectionPolicy_ == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance() + : tlsInspectionPolicy_; + } + + /** + * + * + *
                                                                                              +   * Required. Updated TlsInspectionPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPolicyOrBuilder() { + return tlsInspectionPolicy_ == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance() + : tlsInspectionPolicy_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTlsInspectionPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTlsInspectionPolicy()); + } + 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.networksecurity.v1.UpdateTlsInspectionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest other = + (com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasTlsInspectionPolicy() != other.hasTlsInspectionPolicy()) return false; + if (hasTlsInspectionPolicy()) { + if (!getTlsInspectionPolicy().equals(other.getTlsInspectionPolicy())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasTlsInspectionPolicy()) { + hash = (37 * hash) + TLS_INSPECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getTlsInspectionPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest 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.networksecurity.v1.UpdateTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest 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.networksecurity.v1.UpdateTlsInspectionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateTlsInspectionPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by the UpdateTlsInspectionPolicy method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest.class, + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetTlsInspectionPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + tlsInspectionPolicy_ = null; + if (tlsInspectionPolicyBuilder_ != null) { + tlsInspectionPolicyBuilder_.dispose(); + tlsInspectionPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.TlsInspectionPolicyProto + .internal_static_google_cloud_networksecurity_v1_UpdateTlsInspectionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest build() { + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest result = + new com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tlsInspectionPolicy_ = + tlsInspectionPolicyBuilder_ == null + ? tlsInspectionPolicy_ + : tlsInspectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasTlsInspectionPolicy()) { + mergeTlsInspectionPolicy(other.getTlsInspectionPolicy()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTlsInspectionPolicyFieldBuilder().getBuilder(), extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * TlsInspectionPolicy resource by the update.
                                                                                              +     * The fields specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +     * user does not provide a mask then all fields will be overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.TlsInspectionPolicy tlsInspectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder> + tlsInspectionPolicyBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tlsInspectionPolicy field is set. + */ + public boolean hasTlsInspectionPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tlsInspectionPolicy. + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicy() { + if (tlsInspectionPolicyBuilder_ == null) { + return tlsInspectionPolicy_ == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance() + : tlsInspectionPolicy_; + } else { + return tlsInspectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy value) { + if (tlsInspectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsInspectionPolicy_ = value; + } else { + tlsInspectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder builderForValue) { + if (tlsInspectionPolicyBuilder_ == null) { + tlsInspectionPolicy_ = builderForValue.build(); + } else { + tlsInspectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTlsInspectionPolicy( + com.google.cloud.networksecurity.v1.TlsInspectionPolicy value) { + if (tlsInspectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && tlsInspectionPolicy_ != null + && tlsInspectionPolicy_ + != com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance()) { + getTlsInspectionPolicyBuilder().mergeFrom(value); + } else { + tlsInspectionPolicy_ = value; + } + } else { + tlsInspectionPolicyBuilder_.mergeFrom(value); + } + if (tlsInspectionPolicy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTlsInspectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + tlsInspectionPolicy_ = null; + if (tlsInspectionPolicyBuilder_ != null) { + tlsInspectionPolicyBuilder_.dispose(); + tlsInspectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder + getTlsInspectionPolicyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTlsInspectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPolicyOrBuilder() { + if (tlsInspectionPolicyBuilder_ != null) { + return tlsInspectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return tlsInspectionPolicy_ == null + ? com.google.cloud.networksecurity.v1.TlsInspectionPolicy.getDefaultInstance() + : tlsInspectionPolicy_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated TlsInspectionPolicy resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder> + internalGetTlsInspectionPolicyFieldBuilder() { + if (tlsInspectionPolicyBuilder_ == null) { + tlsInspectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.TlsInspectionPolicy, + com.google.cloud.networksecurity.v1.TlsInspectionPolicy.Builder, + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder>( + getTlsInspectionPolicy(), getParentForChildren(), isClean()); + tlsInspectionPolicy_ = null; + } + return tlsInspectionPolicyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) + private static final com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTlsInspectionPolicyRequest 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.networksecurity.v1.UpdateTlsInspectionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateTlsInspectionPolicyRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateTlsInspectionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..e64ab8bbaaba --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateTlsInspectionPolicyRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/tls_inspection_policy.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateTlsInspectionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * TlsInspectionPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * TlsInspectionPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * TlsInspectionPolicy resource by the update.
                                                                                              +   * The fields specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the mask. If the
                                                                                              +   * user does not provide a mask then all fields will be overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. Updated TlsInspectionPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tlsInspectionPolicy field is set. + */ + boolean hasTlsInspectionPolicy(); + + /** + * + * + *
                                                                                              +   * Required. Updated TlsInspectionPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tlsInspectionPolicy. + */ + com.google.cloud.networksecurity.v1.TlsInspectionPolicy getTlsInspectionPolicy(); + + /** + * + * + *
                                                                                              +   * Required. Updated TlsInspectionPolicy resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.TlsInspectionPolicy tls_inspection_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.TlsInspectionPolicyOrBuilder + getTlsInspectionPolicyOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateUrlListRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateUrlListRequest.java new file mode 100644 index 000000000000..42f619e1ea30 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateUrlListRequest.java @@ -0,0 +1,1071 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * Request used by UpdateUrlList method.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateUrlListRequest} + */ +@com.google.protobuf.Generated +public final class UpdateUrlListRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateUrlListRequest) + UpdateUrlListRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateUrlListRequest"); + } + + // Use UpdateUrlListRequest.newBuilder() to construct. + private UpdateUrlListRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateUrlListRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateUrlListRequest.class, + com.google.cloud.networksecurity.v1.UpdateUrlListRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * UrlList resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * UrlList resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * UrlList resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int URL_LIST_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.UrlList urlList_; + + /** + * + * + *
                                                                                              +   * Required. Updated UrlList resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the urlList field is set. + */ + @java.lang.Override + public boolean hasUrlList() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. Updated UrlList resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The urlList. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlList getUrlList() { + return urlList_ == null + ? com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance() + : urlList_; + } + + /** + * + * + *
                                                                                              +   * Required. Updated UrlList resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListOrBuilder() { + return urlList_ == null + ? com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance() + : urlList_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUrlList()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUrlList()); + } + 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.networksecurity.v1.UpdateUrlListRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateUrlListRequest other = + (com.google.cloud.networksecurity.v1.UpdateUrlListRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasUrlList() != other.hasUrlList()) return false; + if (hasUrlList()) { + if (!getUrlList().equals(other.getUrlList())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasUrlList()) { + hash = (37 * hash) + URL_LIST_FIELD_NUMBER; + hash = (53 * hash) + getUrlList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest 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.networksecurity.v1.UpdateUrlListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest 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.networksecurity.v1.UpdateUrlListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UpdateUrlListRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * Request used by UpdateUrlList method.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateUrlListRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateUrlListRequest) + com.google.cloud.networksecurity.v1.UpdateUrlListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateUrlListRequest.class, + com.google.cloud.networksecurity.v1.UpdateUrlListRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.UpdateUrlListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetUrlListFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + urlList_ = null; + if (urlListBuilder_ != null) { + urlListBuilder_.dispose(); + urlListBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateUrlListRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateUrlListRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateUrlListRequest build() { + com.google.cloud.networksecurity.v1.UpdateUrlListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateUrlListRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateUrlListRequest result = + new com.google.cloud.networksecurity.v1.UpdateUrlListRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.UpdateUrlListRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.urlList_ = urlListBuilder_ == null ? urlList_ : urlListBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateUrlListRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.UpdateUrlListRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UpdateUrlListRequest other) { + if (other == com.google.cloud.networksecurity.v1.UpdateUrlListRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasUrlList()) { + mergeUrlList(other.getUrlList()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetUrlListFieldBuilder().getBuilder(), extensionRegistry); + 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.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * UrlList resource by the update.  The fields
                                                                                              +     * specified in the update_mask are relative to the resource, not
                                                                                              +     * the full request. A field will be overwritten if it is in the
                                                                                              +     * mask. If the user does not provide a mask then all fields will be
                                                                                              +     * overwritten.
                                                                                              +     * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.UrlList urlList_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder> + urlListBuilder_; + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the urlList field is set. + */ + public boolean hasUrlList() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The urlList. + */ + public com.google.cloud.networksecurity.v1.UrlList getUrlList() { + if (urlListBuilder_ == null) { + return urlList_ == null + ? com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance() + : urlList_; + } else { + return urlListBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUrlList(com.google.cloud.networksecurity.v1.UrlList value) { + if (urlListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + urlList_ = value; + } else { + urlListBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUrlList(com.google.cloud.networksecurity.v1.UrlList.Builder builderForValue) { + if (urlListBuilder_ == null) { + urlList_ = builderForValue.build(); + } else { + urlListBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUrlList(com.google.cloud.networksecurity.v1.UrlList value) { + if (urlListBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && urlList_ != null + && urlList_ != com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance()) { + getUrlListBuilder().mergeFrom(value); + } else { + urlList_ = value; + } + } else { + urlListBuilder_.mergeFrom(value); + } + if (urlList_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUrlList() { + bitField0_ = (bitField0_ & ~0x00000002); + urlList_ = null; + if (urlListBuilder_ != null) { + urlListBuilder_.dispose(); + urlListBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.UrlList.Builder getUrlListBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUrlListFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListOrBuilder() { + if (urlListBuilder_ != null) { + return urlListBuilder_.getMessageOrBuilder(); + } else { + return urlList_ == null + ? com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance() + : urlList_; + } + } + + /** + * + * + *
                                                                                              +     * Required. Updated UrlList resource.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder> + internalGetUrlListFieldBuilder() { + if (urlListBuilder_ == null) { + urlListBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networksecurity.v1.UrlList, + com.google.cloud.networksecurity.v1.UrlList.Builder, + com.google.cloud.networksecurity.v1.UrlListOrBuilder>( + getUrlList(), getParentForChildren(), isClean()); + urlList_ = null; + } + return urlListBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UpdateUrlListRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateUrlListRequest) + private static final com.google.cloud.networksecurity.v1.UpdateUrlListRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateUrlListRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateUrlListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUrlListRequest 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.networksecurity.v1.UpdateUrlListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateUrlListRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateUrlListRequestOrBuilder.java new file mode 100644 index 000000000000..1da0159c2c7a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateUrlListRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UpdateUrlListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateUrlListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * UrlList resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * UrlList resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * UrlList resource by the update.  The fields
                                                                                              +   * specified in the update_mask are relative to the resource, not
                                                                                              +   * the full request. A field will be overwritten if it is in the
                                                                                              +   * mask. If the user does not provide a mask then all fields will be
                                                                                              +   * overwritten.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
                                                                                              +   * Required. Updated UrlList resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the urlList field is set. + */ + boolean hasUrlList(); + + /** + * + * + *
                                                                                              +   * Required. Updated UrlList resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The urlList. + */ + com.google.cloud.networksecurity.v1.UrlList getUrlList(); + + /** + * + * + *
                                                                                              +   * Required. Updated UrlList resource.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlList url_list = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.UrlListOrBuilder getUrlListOrBuilder(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilter.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilter.java new file mode 100644 index 000000000000..8991377c21e1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilter.java @@ -0,0 +1,1213 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * A URL filter defines an action to take for some URL match.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UrlFilter} + */ +@com.google.protobuf.Generated +public final class UrlFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UrlFilter) + UrlFilterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UrlFilter"); + } + + // Use UrlFilter.newBuilder() to construct. + private UrlFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UrlFilter() { + filteringAction_ = 0; + urls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UrlFilter.class, + com.google.cloud.networksecurity.v1.UrlFilter.Builder.class); + } + + /** + * + * + *
                                                                                              +   * Action to be taken when a URL matches a filter.
                                                                                              +   * 
                                                                                              + * + * Protobuf enum {@code google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction} + */ + public enum UrlFilteringAction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                              +     * Filtering action not specified.
                                                                                              +     * 
                                                                                              + * + * URL_FILTERING_ACTION_UNSPECIFIED = 0; + */ + URL_FILTERING_ACTION_UNSPECIFIED(0), + /** + * + * + *
                                                                                              +     * The connection matching this filter will be allowed to transmit.
                                                                                              +     * 
                                                                                              + * + * ALLOW = 1; + */ + ALLOW(1), + /** + * + * + *
                                                                                              +     * The connection matching this filter will be dropped.
                                                                                              +     * 
                                                                                              + * + * DENY = 2; + */ + DENY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UrlFilteringAction"); + } + + /** + * + * + *
                                                                                              +     * Filtering action not specified.
                                                                                              +     * 
                                                                                              + * + * URL_FILTERING_ACTION_UNSPECIFIED = 0; + */ + public static final int URL_FILTERING_ACTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                              +     * The connection matching this filter will be allowed to transmit.
                                                                                              +     * 
                                                                                              + * + * ALLOW = 1; + */ + public static final int ALLOW_VALUE = 1; + + /** + * + * + *
                                                                                              +     * The connection matching this filter will be dropped.
                                                                                              +     * 
                                                                                              + * + * DENY = 2; + */ + public static final int DENY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UrlFilteringAction valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UrlFilteringAction forNumber(int value) { + switch (value) { + case 0: + return URL_FILTERING_ACTION_UNSPECIFIED; + case 1: + return ALLOW; + case 2: + return DENY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UrlFilteringAction findValueByNumber(int number) { + return UrlFilteringAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final UrlFilteringAction[] VALUES = values(); + + public static UrlFilteringAction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private UrlFilteringAction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction) + } + + private int bitField0_; + public static final int FILTERING_ACTION_FIELD_NUMBER = 1; + private int filteringAction_ = 0; + + /** + * + * + *
                                                                                              +   * Required. The action taken when this filter is applied.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filteringAction. + */ + @java.lang.Override + public int getFilteringActionValue() { + return filteringAction_; + } + + /** + * + * + *
                                                                                              +   * Required. The action taken when this filter is applied.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filteringAction. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction getFilteringAction() { + com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction result = + com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction.forNumber( + filteringAction_); + return result == null + ? com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction.UNRECOGNIZED + : result; + } + + public static final int URLS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList urls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Required. The list of strings that a URL must match with for this filter to
                                                                                              +   * be applied.
                                                                                              +   * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the urls. + */ + public com.google.protobuf.ProtocolStringList getUrlsList() { + return urls_; + } + + /** + * + * + *
                                                                                              +   * Required. The list of strings that a URL must match with for this filter to
                                                                                              +   * be applied.
                                                                                              +   * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of urls. + */ + public int getUrlsCount() { + return urls_.size(); + } + + /** + * + * + *
                                                                                              +   * Required. The list of strings that a URL must match with for this filter to
                                                                                              +   * be applied.
                                                                                              +   * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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); + } + + /** + * + * + *
                                                                                              +   * Required. The list of strings that a URL must match with for this filter to
                                                                                              +   * be applied.
                                                                                              +   * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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); + } + + public static final int PRIORITY_FIELD_NUMBER = 3; + private int priority_ = 0; + + /** + * + * + *
                                                                                              +   * Required. The priority of this filter within the URL Filtering Profile.
                                                                                              +   * Lower integers indicate higher priorities. The priority of a filter must be
                                                                                              +   * unique within a URL Filtering Profile.
                                                                                              +   * 
                                                                                              + * + * optional int32 priority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the priority field is set. + */ + @java.lang.Override + public boolean hasPriority() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Required. The priority of this filter within the URL Filtering Profile.
                                                                                              +   * Lower integers indicate higher priorities. The priority of a filter must be
                                                                                              +   * unique within a URL Filtering Profile.
                                                                                              +   * 
                                                                                              + * + * optional int32 priority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + 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 (filteringAction_ + != com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction + .URL_FILTERING_ACTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, filteringAction_); + } + for (int i = 0; i < urls_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, urls_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(3, priority_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filteringAction_ + != com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction + .URL_FILTERING_ACTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, filteringAction_); + } + { + int dataSize = 0; + for (int i = 0; i < urls_.size(); i++) { + dataSize += computeStringSizeNoTag(urls_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrlsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, priority_); + } + 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.networksecurity.v1.UrlFilter)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UrlFilter other = + (com.google.cloud.networksecurity.v1.UrlFilter) obj; + + if (filteringAction_ != other.filteringAction_) return false; + if (!getUrlsList().equals(other.getUrlsList())) return false; + if (hasPriority() != other.hasPriority()) return false; + if (hasPriority()) { + if (getPriority() != other.getPriority()) 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) + FILTERING_ACTION_FIELD_NUMBER; + hash = (53 * hash) + filteringAction_; + if (getUrlsCount() > 0) { + hash = (37 * hash) + URLS_FIELD_NUMBER; + hash = (53 * hash) + getUrlsList().hashCode(); + } + if (hasPriority()) { + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPriority(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UrlFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter 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.networksecurity.v1.UrlFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter 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.networksecurity.v1.UrlFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UrlFilter 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * A URL filter defines an action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UrlFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UrlFilter) + com.google.cloud.networksecurity.v1.UrlFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UrlFilter.class, + com.google.cloud.networksecurity.v1.UrlFilter.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.UrlFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filteringAction_ = 0; + urls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + priority_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilter getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UrlFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilter build() { + com.google.cloud.networksecurity.v1.UrlFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilter buildPartial() { + com.google.cloud.networksecurity.v1.UrlFilter result = + new com.google.cloud.networksecurity.v1.UrlFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.UrlFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filteringAction_ = filteringAction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + urls_.makeImmutable(); + result.urls_ = urls_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.priority_ = priority_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UrlFilter) { + return mergeFrom((com.google.cloud.networksecurity.v1.UrlFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UrlFilter other) { + if (other == com.google.cloud.networksecurity.v1.UrlFilter.getDefaultInstance()) return this; + if (other.filteringAction_ != 0) { + setFilteringActionValue(other.getFilteringActionValue()); + } + if (!other.urls_.isEmpty()) { + if (urls_.isEmpty()) { + urls_ = other.urls_; + bitField0_ |= 0x00000002; + } else { + ensureUrlsIsMutable(); + urls_.addAll(other.urls_); + } + onChanged(); + } + if (other.hasPriority()) { + setPriority(other.getPriority()); + } + 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 8: + { + filteringAction_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUrlsIsMutable(); + urls_.add(s); + break; + } // case 18 + case 24: + { + priority_ = input.readInt32(); + 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 int filteringAction_ = 0; + + /** + * + * + *
                                                                                              +     * Required. The action taken when this filter is applied.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filteringAction. + */ + @java.lang.Override + public int getFilteringActionValue() { + return filteringAction_; + } + + /** + * + * + *
                                                                                              +     * Required. The action taken when this filter is applied.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for filteringAction to set. + * @return This builder for chaining. + */ + public Builder setFilteringActionValue(int value) { + filteringAction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The action taken when this filter is applied.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filteringAction. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction getFilteringAction() { + com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction result = + com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction.forNumber( + filteringAction_); + return result == null + ? com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                              +     * Required. The action taken when this filter is applied.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The filteringAction to set. + * @return This builder for chaining. + */ + public Builder setFilteringAction( + com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + filteringAction_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The action taken when this filter is applied.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearFilteringAction() { + bitField0_ = (bitField0_ & ~0x00000001); + filteringAction_ = 0; + 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_ |= 0x00000002; + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the urls. + */ + public com.google.protobuf.ProtocolStringList getUrlsList() { + urls_.makeImmutable(); + return urls_; + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of urls. + */ + public int getUrlsCount() { + return urls_.size(); + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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); + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrls() { + urls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The list of strings that a URL must match with for this filter to
                                                                                              +     * be applied.
                                                                                              +     * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private int priority_; + + /** + * + * + *
                                                                                              +     * Required. The priority of this filter within the URL Filtering Profile.
                                                                                              +     * Lower integers indicate higher priorities. The priority of a filter must be
                                                                                              +     * unique within a URL Filtering Profile.
                                                                                              +     * 
                                                                                              + * + * optional int32 priority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the priority field is set. + */ + @java.lang.Override + public boolean hasPriority() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Required. The priority of this filter within the URL Filtering Profile.
                                                                                              +     * Lower integers indicate higher priorities. The priority of a filter must be
                                                                                              +     * unique within a URL Filtering Profile.
                                                                                              +     * 
                                                                                              + * + * optional int32 priority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + /** + * + * + *
                                                                                              +     * Required. The priority of this filter within the URL Filtering Profile.
                                                                                              +     * Lower integers indicate higher priorities. The priority of a filter must be
                                                                                              +     * unique within a URL Filtering Profile.
                                                                                              +     * 
                                                                                              + * + * optional int32 priority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(int value) { + + priority_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. The priority of this filter within the URL Filtering Profile.
                                                                                              +     * Lower integers indicate higher priorities. The priority of a filter must be
                                                                                              +     * unique within a URL Filtering Profile.
                                                                                              +     * 
                                                                                              + * + * optional int32 priority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00000004); + priority_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UrlFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UrlFilter) + private static final com.google.cloud.networksecurity.v1.UrlFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UrlFilter(); + } + + public static com.google.cloud.networksecurity.v1.UrlFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UrlFilter 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.networksecurity.v1.UrlFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilterOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilterOrBuilder.java new file mode 100644 index 000000000000..5cf587ecf7ad --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilterOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UrlFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UrlFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. The action taken when this filter is applied.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filteringAction. + */ + int getFilteringActionValue(); + + /** + * + * + *
                                                                                              +   * Required. The action taken when this filter is applied.
                                                                                              +   * 
                                                                                              + * + * + * .google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction filtering_action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filteringAction. + */ + com.google.cloud.networksecurity.v1.UrlFilter.UrlFilteringAction getFilteringAction(); + + /** + * + * + *
                                                                                              +   * Required. The list of strings that a URL must match with for this filter to
                                                                                              +   * be applied.
                                                                                              +   * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the urls. + */ + java.util.List getUrlsList(); + + /** + * + * + *
                                                                                              +   * Required. The list of strings that a URL must match with for this filter to
                                                                                              +   * be applied.
                                                                                              +   * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of urls. + */ + int getUrlsCount(); + + /** + * + * + *
                                                                                              +   * Required. The list of strings that a URL must match with for this filter to
                                                                                              +   * be applied.
                                                                                              +   * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The urls at the given index. + */ + java.lang.String getUrls(int index); + + /** + * + * + *
                                                                                              +   * Required. The list of strings that a URL must match with for this filter to
                                                                                              +   * be applied.
                                                                                              +   * 
                                                                                              + * + * repeated string urls = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the urls at the given index. + */ + com.google.protobuf.ByteString getUrlsBytes(int index); + + /** + * + * + *
                                                                                              +   * Required. The priority of this filter within the URL Filtering Profile.
                                                                                              +   * Lower integers indicate higher priorities. The priority of a filter must be
                                                                                              +   * unique within a URL Filtering Profile.
                                                                                              +   * 
                                                                                              + * + * optional int32 priority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the priority field is set. + */ + boolean hasPriority(); + + /** + * + * + *
                                                                                              +   * Required. The priority of this filter within the URL Filtering Profile.
                                                                                              +   * Lower integers indicate higher priorities. The priority of a filter must be
                                                                                              +   * unique within a URL Filtering Profile.
                                                                                              +   * 
                                                                                              + * + * optional int32 priority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The priority. + */ + int getPriority(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilteringProfile.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilteringProfile.java new file mode 100644 index 000000000000..f0314d5a4d8c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilteringProfile.java @@ -0,0 +1,995 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * UrlFilteringProfile defines filters based on URL.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UrlFilteringProfile} + */ +@com.google.protobuf.Generated +public final class UrlFilteringProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UrlFilteringProfile) + UrlFilteringProfileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UrlFilteringProfile"); + } + + // Use UrlFilteringProfile.newBuilder() to construct. + private UrlFilteringProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UrlFilteringProfile() { + urlFilters_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UrlFilteringProfile.class, + com.google.cloud.networksecurity.v1.UrlFilteringProfile.Builder.class); + } + + public static final int URL_FILTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List urlFilters_; + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getUrlFiltersList() { + return urlFilters_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getUrlFiltersOrBuilderList() { + return urlFilters_; + } + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getUrlFiltersCount() { + return urlFilters_.size(); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilter getUrlFilters(int index) { + return urlFilters_.get(index); + } + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilterOrBuilder getUrlFiltersOrBuilder(int index) { + return urlFilters_.get(index); + } + + 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 < urlFilters_.size(); i++) { + output.writeMessage(1, urlFilters_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < urlFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, urlFilters_.get(i)); + } + 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.networksecurity.v1.UrlFilteringProfile)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UrlFilteringProfile other = + (com.google.cloud.networksecurity.v1.UrlFilteringProfile) obj; + + if (!getUrlFiltersList().equals(other.getUrlFiltersList())) 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 (getUrlFiltersCount() > 0) { + hash = (37 * hash) + URL_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getUrlFiltersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile 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.networksecurity.v1.UrlFilteringProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile 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.networksecurity.v1.UrlFilteringProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UrlFilteringProfile 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * UrlFilteringProfile defines filters based on URL.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UrlFilteringProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UrlFilteringProfile) + com.google.cloud.networksecurity.v1.UrlFilteringProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UrlFilteringProfile.class, + com.google.cloud.networksecurity.v1.UrlFilteringProfile.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.UrlFilteringProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (urlFiltersBuilder_ == null) { + urlFilters_ = java.util.Collections.emptyList(); + } else { + urlFilters_ = null; + urlFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.SecurityProfileGroupUrlFilteringProto + .internal_static_google_cloud_networksecurity_v1_UrlFilteringProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilteringProfile getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilteringProfile build() { + com.google.cloud.networksecurity.v1.UrlFilteringProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlFilteringProfile buildPartial() { + com.google.cloud.networksecurity.v1.UrlFilteringProfile result = + new com.google.cloud.networksecurity.v1.UrlFilteringProfile(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.UrlFilteringProfile result) { + if (urlFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + urlFilters_ = java.util.Collections.unmodifiableList(urlFilters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.urlFilters_ = urlFilters_; + } else { + result.urlFilters_ = urlFiltersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.UrlFilteringProfile result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UrlFilteringProfile) { + return mergeFrom((com.google.cloud.networksecurity.v1.UrlFilteringProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UrlFilteringProfile other) { + if (other == com.google.cloud.networksecurity.v1.UrlFilteringProfile.getDefaultInstance()) + return this; + if (urlFiltersBuilder_ == null) { + if (!other.urlFilters_.isEmpty()) { + if (urlFilters_.isEmpty()) { + urlFilters_ = other.urlFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUrlFiltersIsMutable(); + urlFilters_.addAll(other.urlFilters_); + } + onChanged(); + } + } else { + if (!other.urlFilters_.isEmpty()) { + if (urlFiltersBuilder_.isEmpty()) { + urlFiltersBuilder_.dispose(); + urlFiltersBuilder_ = null; + urlFilters_ = other.urlFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + urlFiltersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetUrlFiltersFieldBuilder() + : null; + } else { + urlFiltersBuilder_.addAllMessages(other.urlFilters_); + } + } + } + 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: + { + com.google.cloud.networksecurity.v1.UrlFilter m = + input.readMessage( + com.google.cloud.networksecurity.v1.UrlFilter.parser(), extensionRegistry); + if (urlFiltersBuilder_ == null) { + ensureUrlFiltersIsMutable(); + urlFilters_.add(m); + } else { + urlFiltersBuilder_.addMessage(m); + } + 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 bitField0_; + + private java.util.List urlFilters_ = + java.util.Collections.emptyList(); + + private void ensureUrlFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + urlFilters_ = + new java.util.ArrayList(urlFilters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.UrlFilter, + com.google.cloud.networksecurity.v1.UrlFilter.Builder, + com.google.cloud.networksecurity.v1.UrlFilterOrBuilder> + urlFiltersBuilder_; + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getUrlFiltersList() { + if (urlFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(urlFilters_); + } else { + return urlFiltersBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getUrlFiltersCount() { + if (urlFiltersBuilder_ == null) { + return urlFilters_.size(); + } else { + return urlFiltersBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.UrlFilter getUrlFilters(int index) { + if (urlFiltersBuilder_ == null) { + return urlFilters_.get(index); + } else { + return urlFiltersBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUrlFilters(int index, com.google.cloud.networksecurity.v1.UrlFilter value) { + if (urlFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlFiltersIsMutable(); + urlFilters_.set(index, value); + onChanged(); + } else { + urlFiltersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUrlFilters( + int index, com.google.cloud.networksecurity.v1.UrlFilter.Builder builderForValue) { + if (urlFiltersBuilder_ == null) { + ensureUrlFiltersIsMutable(); + urlFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + urlFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUrlFilters(com.google.cloud.networksecurity.v1.UrlFilter value) { + if (urlFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlFiltersIsMutable(); + urlFilters_.add(value); + onChanged(); + } else { + urlFiltersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUrlFilters(int index, com.google.cloud.networksecurity.v1.UrlFilter value) { + if (urlFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlFiltersIsMutable(); + urlFilters_.add(index, value); + onChanged(); + } else { + urlFiltersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUrlFilters( + com.google.cloud.networksecurity.v1.UrlFilter.Builder builderForValue) { + if (urlFiltersBuilder_ == null) { + ensureUrlFiltersIsMutable(); + urlFilters_.add(builderForValue.build()); + onChanged(); + } else { + urlFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addUrlFilters( + int index, com.google.cloud.networksecurity.v1.UrlFilter.Builder builderForValue) { + if (urlFiltersBuilder_ == null) { + ensureUrlFiltersIsMutable(); + urlFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + urlFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllUrlFilters( + java.lang.Iterable values) { + if (urlFiltersBuilder_ == null) { + ensureUrlFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, urlFilters_); + onChanged(); + } else { + urlFiltersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUrlFilters() { + if (urlFiltersBuilder_ == null) { + urlFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + urlFiltersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeUrlFilters(int index) { + if (urlFiltersBuilder_ == null) { + ensureUrlFiltersIsMutable(); + urlFilters_.remove(index); + onChanged(); + } else { + urlFiltersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.UrlFilter.Builder getUrlFiltersBuilder(int index) { + return internalGetUrlFiltersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.UrlFilterOrBuilder getUrlFiltersOrBuilder( + int index) { + if (urlFiltersBuilder_ == null) { + return urlFilters_.get(index); + } else { + return urlFiltersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getUrlFiltersOrBuilderList() { + if (urlFiltersBuilder_ != null) { + return urlFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(urlFilters_); + } + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.UrlFilter.Builder addUrlFiltersBuilder() { + return internalGetUrlFiltersFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.UrlFilter.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networksecurity.v1.UrlFilter.Builder addUrlFiltersBuilder(int index) { + return internalGetUrlFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.networksecurity.v1.UrlFilter.getDefaultInstance()); + } + + /** + * + * + *
                                                                                              +     * Optional. The list of filtering configs in which each config defines an
                                                                                              +     * action to take for some URL match.
                                                                                              +     * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getUrlFiltersBuilderList() { + return internalGetUrlFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.UrlFilter, + com.google.cloud.networksecurity.v1.UrlFilter.Builder, + com.google.cloud.networksecurity.v1.UrlFilterOrBuilder> + internalGetUrlFiltersFieldBuilder() { + if (urlFiltersBuilder_ == null) { + urlFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networksecurity.v1.UrlFilter, + com.google.cloud.networksecurity.v1.UrlFilter.Builder, + com.google.cloud.networksecurity.v1.UrlFilterOrBuilder>( + urlFilters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + urlFilters_ = null; + } + return urlFiltersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UrlFilteringProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UrlFilteringProfile) + private static final com.google.cloud.networksecurity.v1.UrlFilteringProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UrlFilteringProfile(); + } + + public static com.google.cloud.networksecurity.v1.UrlFilteringProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UrlFilteringProfile 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.networksecurity.v1.UrlFilteringProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilteringProfileOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilteringProfileOrBuilder.java new file mode 100644 index 000000000000..c80c59e589e4 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlFilteringProfileOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UrlFilteringProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UrlFilteringProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getUrlFiltersList(); + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.UrlFilter getUrlFilters(int index); + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getUrlFiltersCount(); + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getUrlFiltersOrBuilderList(); + + /** + * + * + *
                                                                                              +   * Optional. The list of filtering configs in which each config defines an
                                                                                              +   * action to take for some URL match.
                                                                                              +   * 
                                                                                              + * + * + * repeated .google.cloud.networksecurity.v1.UrlFilter url_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networksecurity.v1.UrlFilterOrBuilder getUrlFiltersOrBuilder(int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlList.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlList.java new file mode 100644 index 000000000000..a5c2f5c8adcd --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlList.java @@ -0,0 +1,1711 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
                                                                                              + * UrlList proto helps users to set reusable, independently manageable lists
                                                                                              + * of hosts, host patterns, URLs, URL patterns.
                                                                                              + * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UrlList} + */ +@com.google.protobuf.Generated +public final class UrlList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UrlList) + UrlListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UrlList"); + } + + // Use UrlList.newBuilder() to construct. + private UrlList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UrlList() { + name_ = ""; + description_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UrlList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UrlList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UrlList.class, + com.google.cloud.networksecurity.v1.UrlList.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                                                                                              +   * Required. Name of the resource provided by the user.
                                                                                              +   * Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +   * url_list should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Required. Name of the resource provided by the user.
                                                                                              +   * Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +   * url_list should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                              +   * Required. FQDNs and URLs.
                                                                                              +   * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + + /** + * + * + *
                                                                                              +   * Required. FQDNs and URLs.
                                                                                              +   * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
                                                                                              +   * Required. FQDNs and URLs.
                                                                                              +   * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
                                                                                              +   * Required. FQDNs and URLs.
                                                                                              +   * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + 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.networksecurity.v1.UrlList)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UrlList other = + (com.google.cloud.networksecurity.v1.UrlList) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getValuesList().equals(other.getValuesList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UrlList parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlList 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.networksecurity.v1.UrlList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlList 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.networksecurity.v1.UrlList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UrlList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UrlList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UrlList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.networksecurity.v1.UrlList 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +   * UrlList proto helps users to set reusable, independently manageable lists
                                                                                              +   * of hosts, host patterns, URLs, URL patterns.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.networksecurity.v1.UrlList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UrlList) + com.google.cloud.networksecurity.v1.UrlListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UrlList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UrlList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UrlList.class, + com.google.cloud.networksecurity.v1.UrlList.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.UrlList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + description_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.UrlListProto + .internal_static_google_cloud_networksecurity_v1_UrlList_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlList getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlList build() { + com.google.cloud.networksecurity.v1.UrlList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UrlList buildPartial() { + com.google.cloud.networksecurity.v1.UrlList result = + new com.google.cloud.networksecurity.v1.UrlList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.UrlList result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UrlList) { + return mergeFrom((com.google.cloud.networksecurity.v1.UrlList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UrlList other) { + if (other == com.google.cloud.networksecurity.v1.UrlList.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000010; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 42 + 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 name_ = ""; + + /** + * + * + *
                                                                                              +     * Required. Name of the resource provided by the user.
                                                                                              +     * Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +     * url_list should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource provided by the user.
                                                                                              +     * Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +     * url_list should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource provided by the user.
                                                                                              +     * Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +     * url_list should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource provided by the user.
                                                                                              +     * Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +     * url_list should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. Name of the resource provided by the user.
                                                                                              +     * Name is of the form
                                                                                              +     * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +     * url_list should match the
                                                                                              +     * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +     * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was created.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
                                                                                              +     * Output only. Time when the security policy was updated.
                                                                                              +     * 
                                                                                              + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Free-text description of the resource.
                                                                                              +     * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Required. FQDNs and URLs.
                                                                                              +     * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.UrlList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UrlList) + private static final com.google.cloud.networksecurity.v1.UrlList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UrlList(); + } + + public static com.google.cloud.networksecurity.v1.UrlList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UrlList 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.networksecurity.v1.UrlList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListName.java new file mode 100644 index 000000000000..feda610d5569 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class UrlListName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_URL_LIST = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/urlLists/{url_list}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String urlList; + + @Deprecated + protected UrlListName() { + project = null; + location = null; + urlList = null; + } + + private UrlListName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + urlList = Preconditions.checkNotNull(builder.getUrlList()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUrlList() { + return urlList; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static UrlListName of(String project, String location, String urlList) { + return newBuilder().setProject(project).setLocation(location).setUrlList(urlList).build(); + } + + public static String format(String project, String location, String urlList) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setUrlList(urlList) + .build() + .toString(); + } + + public static UrlListName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_URL_LIST.validatedMatch( + formattedString, "UrlListName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("url_list")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (UrlListName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_URL_LIST.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (urlList != null) { + fieldMapBuilder.put("url_list", urlList); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_URL_LIST.instantiate( + "project", project, "location", location, "url_list", urlList); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + UrlListName that = ((UrlListName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.urlList, that.urlList); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(urlList); + return h; + } + + /** Builder for projects/{project}/locations/{location}/urlLists/{url_list}. */ + public static class Builder { + private String project; + private String location; + private String urlList; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUrlList() { + return urlList; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setUrlList(String urlList) { + this.urlList = urlList; + return this; + } + + private Builder(UrlListName urlListName) { + this.project = urlListName.project; + this.location = urlListName.location; + this.urlList = urlListName.urlList; + } + + public UrlListName build() { + return new UrlListName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListOrBuilder.java new file mode 100644 index 000000000000..f5173c1dddda --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListOrBuilder.java @@ -0,0 +1,222 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public interface UrlListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UrlList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +   * Required. Name of the resource provided by the user.
                                                                                              +   * Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +   * url_list should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                                                                                              +   * Required. Name of the resource provided by the user.
                                                                                              +   * Name is of the form
                                                                                              +   * projects/{project}/locations/{location}/urlLists/{url_list}
                                                                                              +   * url_list should match the
                                                                                              +   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
                                                                                              +   * 
                                                                                              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was created.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
                                                                                              +   * Output only. Time when the security policy was updated.
                                                                                              +   * 
                                                                                              + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                                                                                              +   * Optional. Free-text description of the resource.
                                                                                              +   * 
                                                                                              + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                              +   * Required. FQDNs and URLs.
                                                                                              +   * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
                                                                                              +   * Required. FQDNs and URLs.
                                                                                              +   * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
                                                                                              +   * Required. FQDNs and URLs.
                                                                                              +   * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + + /** + * + * + *
                                                                                              +   * Required. FQDNs and URLs.
                                                                                              +   * 
                                                                                              + * + * repeated string values = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListProto.java new file mode 100644 index 000000000000..7ba702d3d2ce --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListProto.java @@ -0,0 +1,204 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networksecurity/v1/url_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networksecurity.v1; + +@com.google.protobuf.Generated +public final class UrlListProto extends com.google.protobuf.GeneratedFile { + private UrlListProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UrlListProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UrlList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UrlList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ".google/cloud/networksecurity/v1/url_list.proto\022\037google.cloud.networksecurity.v" + + "1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\241\002\n" + + "\007UrlList\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006values\030\005 \003(\tB\003\340A\002:h\352Ae\n" + + "&networksecurity.googleapis.com/UrlList\022" + + ";projects/{project}/locations/{location}/urlLists/{url_list}\"w\n" + + "\023ListUrlListsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"\201\001\n" + + "\024ListUrlListsResponse\022;\n" + + "\turl_lists\030\001 \003(\0132(.google.cloud.networksecurity.v1.UrlList\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"Q\n" + + "\021GetUrlListRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&networksecurity.googleapis.com/UrlList\"\261\001\n" + + "\024CreateUrlListRequest\022>\n" + + "\006parent\030\001 \001(\tB.\340" + + "A\002\372A(\022&networksecurity.googleapis.com/UrlList\022\030\n" + + "\013url_list_id\030\002 \001(\tB\003\340A\002\022?\n" + + "\010url_list\030\003" + + " \001(\0132(.google.cloud.networksecurity.v1.UrlListB\003\340A\002\"\215\001\n" + + "\024UpdateUrlListRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022?\n" + + "\010url_list\030\002 \001(\0132(.goog" + + "le.cloud.networksecurity.v1.UrlListB\003\340A\002\"T\n" + + "\024DeleteUrlListRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&networksecurity.googleapis.com/UrlListB\355\001\n" + + "#com.google.cloud.networksecurity.v1B\014UrlListProtoP\001ZMcloud.google.com" + + "/go/networksecurity/apiv1/networksecurit" + + "ypb;networksecuritypb\252\002\037Google.Cloud.Net" + + "workSecurity.V1\312\002\037Google\\Cloud\\NetworkSe" + + "curity\\V1\352\002\"Google::Cloud::NetworkSecurity::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_UrlList_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networksecurity_v1_UrlList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UrlList_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "Description", "Values", + }); + internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListUrlListsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListUrlListsResponse_descriptor, + new java.lang.String[] { + "UrlLists", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetUrlListRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateUrlListRequest_descriptor, + new java.lang.String[] { + "Parent", "UrlListId", "UrlList", + }); + internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateUrlListRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "UrlList", + }); + internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteUrlListRequest_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/address_group.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/address_group.proto index 7a6d35508a77..39bfe962050b 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/address_group.proto +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/address_group.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,8 +19,11 @@ package google.cloud.networksecurity.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; +import "google/cloud/networksecurity/v1/common.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -31,10 +34,6 @@ option java_outer_classname = "AddressGroupProto"; option java_package = "com.google.cloud.networksecurity.v1"; option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; option ruby_package = "Google::Cloud::NetworkSecurity::V1"; -option (google.api.resource_definition) = { - type: "networksecurity.googleapis.com/OrganizationLocation" - pattern: "organizations/{organization}/locations/{location}" -}; // AddressGroup is a resource that manages a collection of IP or Domain Names, // it can be used in Firewall Policy to represent allow or deny traffic from diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto index 3c548de445be..d21d439da84a 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authorization_policy.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -43,19 +43,19 @@ message AuthorizationPolicy { message Rule { // Specification of traffic source attributes. message Source { - // Optional. List of peer identities to match for authorization. At least one - // principal should match. Each peer can be an exact match, or a prefix - // match (example, "namespace/*") or a suffix match (example, + // Optional. List of peer identities to match for authorization. At least + // one principal should match. Each peer can be an exact match, or a + // prefix match (example, "namespace/*") or a suffix match (example, // "*/service-account") or a presence match "*". Authorization based on // the principal name without certificate validation (configured by // ServerTlsPolicy resource) is considered insecure. repeated string principals = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of CIDR ranges to match based on source IP address. At least one - // IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g., - // "1.2.3.0/24") are supported. Authorization based on source IP alone - // should be avoided. The IP addresses of any load balancers or proxies - // should be considered untrusted. + // Optional. List of CIDR ranges to match based on source IP address. At + // least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR + // (e.g., "1.2.3.0/24") are supported. Authorization based on source IP + // alone should be avoided. The IP addresses of any load balancers or + // proxies should be considered untrusted. repeated string ip_blocks = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -81,39 +81,42 @@ message AuthorizationPolicy { string header_name = 1 [(google.api.field_behavior) = REQUIRED]; } - // Required. List of host names to match. Matched against the ":authority" header in - // http requests. At least one host should match. Each host can be an - // exact match, or a prefix match (example "mydomain.*") or a suffix + // Required. List of host names to match. Matched against the ":authority" + // header in http requests. At least one host should match. Each host can + // be an exact match, or a prefix match (example "mydomain.*") or a suffix // match (example "*.myorg.com") or a presence (any) match "*". repeated string hosts = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. List of destination ports to match. At least one port should match. + // Required. List of destination ports to match. At least one port should + // match. repeated uint32 ports = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. A list of HTTP methods to match. At least one method should // match. Should not be set for gRPC services. repeated string methods = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Match against key:value pair in http header. Provides a flexible match - // based on HTTP headers, for potentially advanced use cases. At least one - // header should match. Avoid using header matches to make authorization - // decisions unless there is a strong guarantee that requests arrive - // through a trusted client or proxy. - HttpHeaderMatch http_header_match = 5 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Match against key:value pair in http header. Provides a + // flexible match based on HTTP headers, for potentially advanced use + // cases. At least one header should match. Avoid using header matches to + // make authorization decisions unless there is a strong guarantee that + // requests arrive through a trusted client or proxy. + HttpHeaderMatch http_header_match = 5 + [(google.api.field_behavior) = OPTIONAL]; } - // Optional. List of attributes for the traffic source. All of the sources must match. - // A source is a match if both principals and ip_blocks match. If not set, - // the action specified in the 'action' field will be applied without any - // rule checks for the source. + // Optional. List of attributes for the traffic source. All of the sources + // must match. A source is a match if both principals and ip_blocks match. + // If not set, the action specified in the 'action' field will be applied + // without any rule checks for the source. repeated Source sources = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of attributes for the traffic destination. All of the destinations - // must match. A destination is a match if a request matches all the - // specified hosts, ports, methods and headers. If not set, the + // Optional. List of attributes for the traffic destination. All of the + // destinations must match. A destination is a match if a request matches + // all the specified hosts, ports, methods and headers. If not set, the // action specified in the 'action' field will be applied without any rule // checks for the destination. - repeated Destination destinations = 2 [(google.api.field_behavior) = OPTIONAL]; + repeated Destination destinations = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Possible values that define what action to take. @@ -138,22 +141,26 @@ message AuthorizationPolicy { string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. The timestamp when the resource was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The timestamp when the resource was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Set of label tags associated with the AuthorizationPolicy resource. + // Optional. Set of label tags associated with the AuthorizationPolicy + // resource. map labels = 5 [(google.api.field_behavior) = OPTIONAL]; // Required. The action to take when a rule match is found. Possible values // are "ALLOW" or "DENY". Action action = 6 [(google.api.field_behavior) = REQUIRED]; - // Optional. List of rules to match. Note that at least one of the rules must match in - // order for the action specified in the 'action' field to be taken. A rule is - // a match if there is a matching source and destination. If left blank, the - // action specified in the `action` field will be applied on every request. + // Optional. List of rules to match. Note that at least one of the rules must + // match in order for the action specified in the 'action' field to be taken. + // A rule is a match if there is a matching source and destination. If left + // blank, the action specified in the `action` field will be applied on every + // request. repeated Rule rules = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -220,7 +227,8 @@ message CreateAuthorizationPolicyRequest { string authorization_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. AuthorizationPolicy resource to be created. - AuthorizationPolicy authorization_policy = 3 [(google.api.field_behavior) = REQUIRED]; + AuthorizationPolicy authorization_policy = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request used by the UpdateAuthorizationPolicy method. @@ -230,16 +238,18 @@ message UpdateAuthorizationPolicyRequest { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. Updated AuthorizationPolicy resource. - AuthorizationPolicy authorization_policy = 2 [(google.api.field_behavior) = REQUIRED]; + AuthorizationPolicy authorization_policy = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request used by the DeleteAuthorizationPolicy method. message DeleteAuthorizationPolicyRequest { - // Required. A name of the AuthorizationPolicy to delete. Must be in the format - // `projects/{project}/locations/{location}/authorizationPolicies/*`. + // Required. A name of the AuthorizationPolicy to delete. Must be in the + // format `projects/{project}/locations/{location}/authorizationPolicies/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authz_policy.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authz_policy.proto new file mode 100644 index 000000000000..1a8c29bbcf36 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/authz_policy.proto @@ -0,0 +1,691 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "AuthzPolicyProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// `AuthzPolicy` is a resource that allows to forward traffic to a +// callout backend designed to scan the traffic for security purposes. +message AuthzPolicy { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/AuthzPolicy" + pattern: "projects/{project}/locations/{location}/authzPolicies/{authz_policy}" + plural: "authzPolicies" + singular: "authzPolicy" + }; + + // Specifies the set of targets to which this policy should be applied to. + message Target { + // Optional. All gateways and forwarding rules referenced by this policy and + // extensions must share the same load balancing scheme. Supported values: + // `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer + // to [Backend services + // overview](https://cloud.google.com/load-balancing/docs/backend-service). + LoadBalancingScheme load_balancing_scheme = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. A list of references to the Forwarding Rules on which this + // policy will be applied. + repeated string resources = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Conditions to match against the incoming request. + message AuthzRule { + // Determines how a string value should be matched. + message StringMatch { + oneof match_pattern { + // The input string must match exactly the string specified here. + // + // Examples: + // + // * ``abc`` only matches the value ``abc``. + string exact = 1; + + // The input string must have the prefix specified here. + // Note: empty prefix is not allowed, please use regex instead. + // + // Examples: + // + // * ``abc`` matches the value ``abc.xyz`` + string prefix = 2; + + // The input string must have the suffix specified here. + // Note: empty prefix is not allowed, please use regex instead. + // + // Examples: + // + // * ``abc`` matches the value ``xyz.abc`` + string suffix = 3; + + // The input string must have the substring specified here. + // Note: empty contains match is not allowed, please use regex instead. + // + // Examples: + // + // * ``abc`` matches the value ``xyz.abc.def`` + string contains = 4; + } + + // If true, indicates the exact/prefix/suffix/contains matching should be + // case insensitive. For example, the matcher ``data`` will match both + // input string ``Data`` and ``data`` if set to true. + bool ignore_case = 5; + } + + // Represents a range of IP Addresses. + message IpBlock { + // Required. The address prefix. + string prefix = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The length of the address range. + int32 length = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Describes the properties of a client VM resource accessing the internal + // application load balancers. + message RequestResource { + // Describes a set of resource tag value permanent IDs to match against + // the resource manager tags value associated with the source VM of a + // request. + message TagValueIdSet { + // Required. A list of resource tag value permanent IDs to match against + // the resource manager tags value associated with the source VM of a + // request. The match follows AND semantics which means all + // the ids must match. Limited to 5 ids in the Tag value id set. + repeated int64 ids = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. A list of resource tag value permanent IDs to match against + // the resource manager tags value associated with the source VM of a + // request. + TagValueIdSet tag_value_id_set = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An IAM service account to match against the source + // service account of the VM sending the request. + StringMatch iam_service_account = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Determines how a HTTP header should be matched. + message HeaderMatch { + // Optional. Specifies the name of the header in the request. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies how the header match will be performed. + StringMatch value = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Describes the properties of a principal to be matched against. + message Principal { + // The principal value the principal rule will match against. + enum PrincipalSelector { + // Unspecified principal selector. It will be treated as + // CLIENT_CERT_URI_SAN by default. + PRINCIPAL_SELECTOR_UNSPECIFIED = 0; + + // The principal rule is matched against a list of URI SANs in the + // validated client's certificate. A match happens when there is any + // exact URI SAN value match. This is the default principal selector. + CLIENT_CERT_URI_SAN = 1; + + // The principal rule is matched against a list of DNS Name SANs in the + // validated client's certificate. A match happens when there is any + // exact DNS Name SAN value match. + // This is only applicable for Application Load Balancers + // except for classic Global External Application load balancer. + // CLIENT_CERT_DNS_NAME_SAN is not supported for INTERNAL_SELF_MANAGED + // load balancing scheme. + CLIENT_CERT_DNS_NAME_SAN = 2; + + // The principal rule is matched against the common name in the client's + // certificate. Authorization against multiple common names in the + // client certificate is not supported. Requests with multiple common + // names in the client certificate will be rejected if + // CLIENT_CERT_COMMON_NAME is set as the principal selector. A match + // happens when there is an exact common name value match. + // This is only applicable for Application Load Balancers + // except for global external Application Load Balancer and + // classic Application Load Balancer. + // CLIENT_CERT_COMMON_NAME is not supported for INTERNAL_SELF_MANAGED + // load balancing scheme. + CLIENT_CERT_COMMON_NAME = 3; + } + + // Optional. An enum to decide what principal value the principal rule + // will match against. If not specified, the PrincipalSelector is + // CLIENT_CERT_URI_SAN. + PrincipalSelector principal_selector = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. A non-empty string whose value is matched against the + // principal value based on the principal_selector. Only exact match can + // be applied for CLIENT_CERT_URI_SAN, CLIENT_CERT_DNS_NAME_SAN, + // CLIENT_CERT_COMMON_NAME selectors. + StringMatch principal = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Describes properties of one or more sources of a request. + message From { + // Describes the properties of a single source. + message RequestSource { + // Optional. A list of identities derived from the client's certificate. + // This field will not match on a request unless frontend mutual TLS is + // enabled for the forwarding rule or Gateway and the client certificate + // has been successfully validated by mTLS. + // Each identity is a string whose value is matched against a list of + // URI SANs, DNS Name SANs, or the common name in the client's + // certificate. A match happens when any principal matches with the + // rule. Limited to 50 principals per Authorization Policy for regional + // internal Application Load Balancers, regional external Application + // Load Balancers, cross-region internal Application Load Balancers, and + // Cloud Service Mesh. This field is not supported for global external + // Application Load Balancers. + repeated Principal principals = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of IP addresses or IP address ranges to match + // against the source IP address of the request. Limited to 10 ip_blocks + // per Authorization Policy + repeated IpBlock ip_blocks = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of resources to match against the resource of the + // source VM of a request. Limited to 10 resources per Authorization + // Policy. + repeated RequestResource resources = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Describes the properties of a request's sources. At least one + // of sources or notSources must be specified. Limited to 1 source. + // A match occurs when ANY source (in sources or notSources) matches the + // request. Within a single source, the match follows AND semantics + // across fields and OR semantics within a single field, i.e. a match + // occurs when ANY principal matches AND ANY ipBlocks match. + repeated RequestSource sources = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Describes the negated properties of request sources. Matches + // requests from sources that do not match the criteria specified in this + // field. At least one of sources or notSources must be specified. + repeated RequestSource not_sources = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Describes properties of one or more targets of a request. + message To { + // Describes properties of one or more targets of a request. + message RequestOperation { + // Describes a set of HTTP headers to match against. + message HeaderSet { + // Required. A list of headers to match against in http header. + // The match can be one of exact, prefix, suffix, or contains + // (substring match). The match follows AND semantics which means all + // the headers must match. Matches are always case sensitive unless + // the ignoreCase is set. Limited to 10 headers per Authorization + // Policy. + repeated HeaderMatch headers = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Describes a set of MCP methods to match against. + message MCPMethod { + // Required. The MCP method to match against. Allowed values are as + // follows: + // 1. `tools`, `prompts`, `resources` - these will match against all + // sub methods under the respective methods. + // 2. `prompts/list`, `tools/list`, `resources/list`, + // `resources/templates/list` + // 3. `prompts/get`, `tools/call`, `resources/subscribe`, + // `resources/unsubscribe`, `resources/read` + // Params cannot be specified for categories 1 and 2. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A list of MCP method parameters to match against. The + // match can be one of exact, prefix, suffix, or contains (substring + // match). Matches are always case sensitive unless the ignoreCase is + // set. Limited to 10 MCP method parameters per Authorization Policy. + repeated StringMatch params = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Describes a set of MCP protocol attributes to match against for a + // given MCP request. + message MCP { + // Optional. If specified, matches on the MCP protocol’s non-access + // specific methods namely: + // * initialize + // * completion/ + // * logging/ + // * notifications/ + // * ping + // Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified. + BaseProtocolMethodsOption base_protocol_methods_option = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of MCP methods and associated parameters to match + // on. It is recommended to use this field to match on tools, prompts + // and resource accesses while setting the baseProtocolMethodsOption + // to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP + // protocol methods. + // Limited to 10 MCP methods per Authorization Policy. + repeated MCPMethod methods = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Describes the option to match against the base MCP protocol methods. + enum BaseProtocolMethodsOption { + // Unspecified option. Defaults to SKIP_BASE_PROTOCOL_METHODS. + BASE_PROTOCOL_METHODS_OPTION_UNSPECIFIED = 0; + + // Skip matching on the base MCP protocol methods. + SKIP_BASE_PROTOCOL_METHODS = 1; + + // Match on the base MCP protocol methods. + MATCH_BASE_PROTOCOL_METHODS = 2; + } + + // Optional. A list of headers to match against in http header. + HeaderSet header_set = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of HTTP Hosts to match against. The match can be one + // of exact, prefix, suffix, or contains (substring match). Matches are + // always case sensitive unless the ignoreCase is set. Limited to 10 + // hosts per Authorization Policy. + repeated StringMatch hosts = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of paths to match against. The match can be one of + // exact, prefix, suffix, or contains (substring match). Matches are + // always case sensitive unless the ignoreCase is set. Limited to 10 + // paths per Authorization Policy. + // Note that this path match includes the query parameters. For gRPC + // services, this should be a fully-qualified name of the form + // /package.service/method. + repeated StringMatch paths = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of HTTP methods to match against. Each entry must be + // a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, + // OPTIONS). It only allows exact match and is always case sensitive. + // Limited to 10 methods per Authorization Policy. + repeated string methods = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines the MCP protocol attributes to match on. If the MCP + // payload in the request body cannot be successfully parsed, the + // request will be denied. This field can be set only for AuthzPolicies + // targeting AgentGateway resources. + MCP mcp = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Describes properties of one or more targets of a request. At + // least one of operations or notOperations must be specified. Limited to + // 1 operation. A match occurs when ANY operation (in operations or + // notOperations) matches. Within an operation, the match follows AND + // semantics across fields and OR semantics within a field, i.e. a match + // occurs when ANY path matches AND ANY header matches and ANY method + // matches. + repeated RequestOperation operations = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Describes the negated properties of the targets of a request. + // Matches requests for operations that do not match the criteria + // specified in this field. At least one of operations or notOperations + // must be specified. + repeated RequestOperation not_operations = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Describes properties of a source of a request. + From from = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Describes properties of a target of a request. + To to = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. CEL expression that describes the conditions to be satisfied + // for the action. The result of the CEL expression is ANDed with the from + // and to. Refer to the CEL language reference for a list of available + // attributes. + string when = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Allows delegating authorization decisions to Cloud IAP or to + // Service Extensions. + message CustomProvider { + // Optional. Delegates authorization decisions to Cloud IAP. Applicable + // only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy + // level is not compatible with Cloud IAP settings in the BackendService. + // Enabling IAP in both places will result in request failure. Ensure that + // IAP is enabled in either the AuthzPolicy or the BackendService but not in + // both places. + message CloudIap {} + + // Optional. Delegate authorization decision to user authored extension. + // Only one of cloudIap or authzExtension can be specified. + message AuthzExtension { + // Required. A list of references to authorization + // extensions that will be invoked for requests matching this policy. + // Limited to 1 custom provider. + repeated string resources = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. Delegates authorization decisions to Cloud IAP. Applicable + // only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy + // level is not compatible with Cloud IAP settings in the BackendService. + // Enabling IAP in both places will result in request failure. Ensure that + // IAP is enabled in either the AuthzPolicy or the BackendService but not in + // both places. + CloudIap cloud_iap = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Delegate authorization decision to user authored Service + // Extension. Only one of cloudIap or authzExtension can be specified. + AuthzExtension authz_extension = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Load balancing schemes supported by the `AuthzPolicy` resource. The valid + // values are `INTERNAL_MANAGED` and + // `EXTERNAL_MANAGED`. For more information, refer to [Backend services + // overview](https://cloud.google.com/load-balancing/docs/backend-service). + enum LoadBalancingScheme { + // Default value. Do not use. + LOAD_BALANCING_SCHEME_UNSPECIFIED = 0; + + // Signifies that this is used for Regional internal or Cross-region + // internal Application Load Balancing. + INTERNAL_MANAGED = 1; + + // Signifies that this is used for Global external or Regional external + // Application Load Balancing. + EXTERNAL_MANAGED = 2; + + // Signifies that this is used for Cloud Service Mesh. Meant for use by + // CSM GKE controller only. + INTERNAL_SELF_MANAGED = 3; + } + + // The action to be applied to this policy. Valid values are + // `ALLOW`, `DENY`, `CUSTOM`. + enum AuthzAction { + // Unspecified action. + AUTHZ_ACTION_UNSPECIFIED = 0; + + // Allow request to pass through to the backend. + ALLOW = 1; + + // Deny the request and return a HTTP 404 to the client. + DENY = 2; + + // Delegate the authorization decision to an external authorization engine. + CUSTOM = 3; + } + + // The type of authorization being performed. + // New values may be added in the future. + enum PolicyProfile { + // Unspecified policy profile. + POLICY_PROFILE_UNSPECIFIED = 0; + + // Applies to request authorization. `CUSTOM` authorization + // policies with Authz extensions will be allowed with `EXT_AUTHZ_GRPC` or + // `EXT_PROC_GRPC` protocols. Extensions are invoked only for request header + // events. + REQUEST_AUTHZ = 1; + + // Applies to content security, sanitization, etc. Only + // `CUSTOM` action is allowed in this policy profile. AuthzExtensions in the + // custom provider must support `EXT_PROC_GRPC` protocol only and be capable + // of receiving all `EXT_PROC_GRPC` events (REQUEST_HEADERS, REQUEST_BODY, + // REQUEST_TRAILERS, RESPONSE_HEADERS, RESPONSE_BODY, RESPONSE_TRAILERS) + // with `FULL_DUPLEX_STREAMED` body send mode. + CONTENT_AUTHZ = 2; + } + + // Required. Identifier. Name of the `AuthzPolicy` resource in the following + // format: + // `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A human-readable description of the resource. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set of labels associated with the `AuthzPolicy` resource. + // + // The format must comply with [the following + // requirements](/compute/docs/labeling-resources#requirements). + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Specifies the set of resources to which this policy should be + // applied to. + Target target = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A list of authorization HTTP rules to match against the incoming + // request. A policy match occurs when at least one HTTP rule matches the + // request or when no HTTP rules are specified in the policy. + // At least one HTTP Rule is required for Allow or Deny Action. Limited + // to 5 rules. + repeated AuthzRule http_rules = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`. + // + // When the action is `CUSTOM`, `customProvider` must be specified. + // + // When the action is `ALLOW`, only requests matching the policy will + // be allowed. + // + // When the action is `DENY`, only requests matching the policy will be + // denied. + // + // When a request arrives, the policies are evaluated in the following order: + // + // 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM` + // policy is evaluated using the custom authorization providers and the + // request is denied if the provider rejects the request. + // + // 2. If there are any `DENY` policies that match the request, the request + // is denied. + // + // 3. If there are no `ALLOW` policies for the resource or if any of the + // `ALLOW` policies match the request, the request is allowed. + // + // 4. Else the request is denied by default if none of the configured + // AuthzPolicies with `ALLOW` action match the request. + AuthzAction action = 8 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Required if the action is `CUSTOM`. Allows delegating + // authorization decisions to Cloud IAP or to Service Extensions. One of + // `cloudIap` or `authzExtension` must be specified. + CustomProvider custom_provider = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. Defines the type of authorization being performed. + // If not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed + // once AuthzPolicy is created. + PolicyProfile policy_profile = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; +} + +// Message for creating an `AuthzPolicy` resource. +message CreateAuthzPolicyRequest { + // Required. The parent resource of the `AuthzPolicy` resource. Must be in + // the format `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/AuthzPolicy" + } + ]; + + // Required. User-provided ID of the `AuthzPolicy` resource to be created. + string authz_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. `AuthzPolicy` resource to be created. + AuthzPolicy authz_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server guarantees + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, ignores the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for requesting list of `AuthzPolicy` resources. +message ListAuthzPoliciesRequest { + // Required. The project and location from which the `AuthzPolicy` resources + // are listed, specified in the following format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/AuthzPolicy" + } + ]; + + // Optional. Requested page size. The server might return fewer items than + // requested. If unspecified, the server picks an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results that the server returns. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing `AuthzPolicy` resources. +message ListAuthzPoliciesResponse { + // The list of `AuthzPolicy` resources. + repeated AuthzPolicy authz_policies = 1; + + // A token identifying a page of results that the server returns. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a `AuthzPolicy` resource. +message GetAuthzPolicyRequest { + // Required. A name of the `AuthzPolicy` resource to get. Must be in the + // format + // `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AuthzPolicy" + } + ]; +} + +// Message for updating an `AuthzPolicy` resource. +message UpdateAuthzPolicyRequest { + // Required. Used to specify the fields to be overwritten in the + // `AuthzPolicy` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field is overwritten if it is in the mask. If the + // user does not specify a mask, then all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. `AuthzPolicy` resource being updated. + AuthzPolicy authz_policy = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server guarantees + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, ignores the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for deleting an `AuthzPolicy` resource. +message DeleteAuthzPolicyRequest { + // Required. The name of the `AuthzPolicy` resource to delete. Must be in + // the format + // `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AuthzPolicy" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server guarantees + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, ignores the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/backend_authentication_config.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/backend_authentication_config.proto new file mode 100644 index 000000000000..76fc65b30ee8 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/backend_authentication_config.proto @@ -0,0 +1,240 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "BackendAuthenticationConfigProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; +option (google.api.resource_definition) = { + type: "certificatemanager.googleapis.com/Certificate" + pattern: "projects/{project}/locations/{location}/certificates/{certificate}" +}; +option (google.api.resource_definition) = { + type: "certificatemanager.googleapis.com/TrustConfig" + pattern: "projects/{project}/locations/{location}/trustConfigs/{trust_config}" +}; + +// BackendAuthenticationConfig message groups the TrustConfig together with +// other settings that control how the load balancer authenticates, and +// expresses its identity to, the backend: +// +// * `trustConfig` is the attached TrustConfig. +// +// * `wellKnownRoots` indicates whether the load balance should trust backend +// server certificates that are issued by public certificate authorities, in +// addition to certificates trusted by the TrustConfig. +// +// * `clientCertificate` is a client certificate that the load balancer uses to +// express its identity to the backend, if the connection to the backend uses +// mTLS. +// +// You can attach the BackendAuthenticationConfig to the load balancer's +// BackendService directly determining how that BackendService negotiates TLS. +message BackendAuthenticationConfig { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/BackendAuthenticationConfig" + pattern: "projects/{project}/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}" + }; + + // Enum to specify the well known roots to use for server certificate + // validation. + enum WellKnownRoots { + // Equivalent to NONE. + WELL_KNOWN_ROOTS_UNSPECIFIED = 0; + + // The BackendService will only validate server certificates against roots + // specified in TrustConfig. + NONE = 1; + + // The BackendService uses a set of well-known public roots, in addition to + // any roots specified in the trustConfig field, when validating the server + // certificates presented by the backend. Validation with these roots is + // only considered when the TlsSettings.sni field in the BackendService is + // set. + // + // The well-known roots are a set of root CAs managed by Google. CAs in this + // set can be added or removed without notice. + PUBLIC_ROOTS = 2; + } + + // Required. Name of the BackendAuthenticationConfig resource. It matches the + // pattern + // `projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Free-text description of the resource. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Set of label tags associated with the resource. + map labels = 5; + + // Optional. A reference to a certificatemanager.googleapis.com.Certificate + // resource. This is a relative resource path following the form + // "projects/{project}/locations/{location}/certificates/{certificate}". + // + // Used by a BackendService to negotiate mTLS when the backend connection uses + // TLS and the backend requests a client certificate. Must have a CLIENT_AUTH + // scope. + string client_certificate = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/Certificate" + } + ]; + + // Optional. A reference to a TrustConfig resource from the + // certificatemanager.googleapis.com namespace. This is a relative resource + // path following the form + // "projects/{project}/locations/{location}/trustConfigs/{trust_config}". + // + // A BackendService uses the chain of trust represented by this TrustConfig, + // if specified, to validate the server certificates presented by the backend. + // Required unless wellKnownRoots is set to PUBLIC_ROOTS. + string trust_config = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/TrustConfig" + } + ]; + + // Well known roots to use for server certificate validation. + WellKnownRoots well_known_roots = 8; + + // Output only. Etag of the resource. + string etag = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request used by the ListBackendAuthenticationConfigs method. +message ListBackendAuthenticationConfigsRequest { + // Required. The project and location from which the + // BackendAuthenticationConfigs should be listed, specified in the format + // `projects/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of BackendAuthenticationConfigs to return per call. + int32 page_size = 2; + + // The value returned by the last `ListBackendAuthenticationConfigsResponse` + // Indicates that this is a continuation of a prior + // `ListBackendAuthenticationConfigs` call, and that the system + // should return the next page of data. + string page_token = 3; +} + +// Response returned by the ListBackendAuthenticationConfigs method. +message ListBackendAuthenticationConfigsResponse { + // List of BackendAuthenticationConfig resources. + repeated BackendAuthenticationConfig backend_authentication_configs = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request used by the GetBackendAuthenticationConfig method. +message GetBackendAuthenticationConfigRequest { + // Required. A name of the BackendAuthenticationConfig to get. Must be in the + // format `projects/*/locations/{location}/backendAuthenticationConfigs/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/BackendAuthenticationConfig" + } + ]; +} + +// Request used by the CreateBackendAuthenticationConfig method. +message CreateBackendAuthenticationConfigRequest { + // Required. The parent resource of the BackendAuthenticationConfig. Must be + // in the format `projects/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/BackendAuthenticationConfig" + } + ]; + + // Required. Short name of the BackendAuthenticationConfig resource to be + // created. This value should be 1-63 characters long, containing only + // letters, numbers, hyphens, and underscores, and should not start with a + // number. E.g. "backend-auth-config". + string backend_authentication_config_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. BackendAuthenticationConfig resource to be created. + BackendAuthenticationConfig backend_authentication_config = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by UpdateBackendAuthenticationConfig method. +message UpdateBackendAuthenticationConfigRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // BackendAuthenticationConfig resource by the update. The fields + // specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the + // mask. If the user does not provide a mask then all fields will be + // overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Updated BackendAuthenticationConfig resource. + BackendAuthenticationConfig backend_authentication_config = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the DeleteBackendAuthenticationConfig method. +message DeleteBackendAuthenticationConfigRequest { + // Required. A name of the BackendAuthenticationConfig to delete. Must be in + // the format + // `projects/*/locations/{location}/backendAuthenticationConfigs/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/BackendAuthenticationConfig" + } + ]; + + // Optional. Etag of the resource. + // If this is provided, it must match the server's etag. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto index e0f26ed9ed62..b5ef37c5bd89 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/client_tls_policy.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,17 +40,19 @@ message ClientTlsPolicy { }; // Required. Name of the ClientTlsPolicy resource. It matches the pattern - // `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}` + // `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}` string name = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Free-text description of the resource. string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. The timestamp when the resource was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The timestamp when the resource was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Set of label tags associated with the resource. map labels = 5 [(google.api.field_behavior) = OPTIONAL]; @@ -59,14 +61,17 @@ message ClientTlsPolicy { // handshake. E.g: "secure.example.com". string sni = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Defines a mechanism to provision client identity (public and private keys) - // for peer to peer authentication. The presence of this dictates mTLS. - CertificateProvider client_certificate = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Defines the mechanism to obtain the Certificate Authority certificate to - // validate the server certificate. If empty, client does not validate the - // server certificate. - repeated ValidationCA server_validation_ca = 8 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Defines a mechanism to provision client identity (public and + // private keys) for peer to peer authentication. The presence of this + // dictates mTLS. + CertificateProvider client_certificate = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines the mechanism to obtain the Certificate Authority + // certificate to validate the server certificate. If empty, client does not + // validate the server certificate. + repeated ValidationCA server_validation_ca = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Request used by the ListClientTlsPolicies method. @@ -124,13 +129,15 @@ message CreateClientTlsPolicyRequest { } ]; - // Required. Short name of the ClientTlsPolicy resource to be created. This value should - // be 1-63 characters long, containing only letters, numbers, hyphens, and - // underscores, and should not start with a number. E.g. "client_mtls_policy". + // Required. Short name of the ClientTlsPolicy resource to be created. This + // value should be 1-63 characters long, containing only letters, numbers, + // hyphens, and underscores, and should not start with a number. E.g. + // "client_mtls_policy". string client_tls_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ClientTlsPolicy resource to be created. - ClientTlsPolicy client_tls_policy = 3 [(google.api.field_behavior) = REQUIRED]; + ClientTlsPolicy client_tls_policy = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request used by UpdateClientTlsPolicy method. @@ -141,10 +148,12 @@ message UpdateClientTlsPolicyRequest { // the full request. A field will be overwritten if it is in the // mask. If the user does not provide a mask then all fields will be // overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. Updated ClientTlsPolicy resource. - ClientTlsPolicy client_tls_policy = 2 [(google.api.field_behavior) = REQUIRED]; + ClientTlsPolicy client_tls_policy = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request used by the DeleteClientTlsPolicy method. diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto index 1023840fbeb3..54a6c3cb39a9 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,10 +30,12 @@ option ruby_package = "Google::Cloud::NetworkSecurity::V1"; // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Server-defined resource path for the target of the operation. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -46,8 +48,9 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/dns_threat_detector.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/dns_threat_detector.proto new file mode 100644 index 000000000000..86c73770f5fa --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/dns_threat_detector.proto @@ -0,0 +1,234 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "DnsThreatDetectorProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{network}" +}; + +// The Network Security API for DNS Threat Detectors. +service DnsThreatDetectorService { + option (google.api.default_host) = "networksecurity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists DnsThreatDetectors in a given project and location. + rpc ListDnsThreatDetectors(ListDnsThreatDetectorsRequest) + returns (ListDnsThreatDetectorsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dnsThreatDetectors" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a single DnsThreatDetector. + rpc GetDnsThreatDetector(GetDnsThreatDetectorRequest) + returns (DnsThreatDetector) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dnsThreatDetectors/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new DnsThreatDetector in a given project and location. + rpc CreateDnsThreatDetector(CreateDnsThreatDetectorRequest) + returns (DnsThreatDetector) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/dnsThreatDetectors" + body: "dns_threat_detector" + }; + option (google.api.method_signature) = + "parent,dns_threat_detector,dns_threat_detector_id"; + } + + // Updates a single DnsThreatDetector. + rpc UpdateDnsThreatDetector(UpdateDnsThreatDetectorRequest) + returns (DnsThreatDetector) { + option (google.api.http) = { + patch: "/v1/{dns_threat_detector.name=projects/*/locations/*/dnsThreatDetectors/*}" + body: "dns_threat_detector" + }; + option (google.api.method_signature) = "dns_threat_detector,update_mask"; + } + + // Deletes a single DnsThreatDetector. + rpc DeleteDnsThreatDetector(DeleteDnsThreatDetectorRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/dnsThreatDetectors/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// A DNS threat detector sends DNS query logs to a _provider_ that then +// analyzes the logs to identify threat events in the DNS queries. +// By default, all VPC networks in your projects are included. You can exclude +// specific networks by supplying `excluded_networks`. +message DnsThreatDetector { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/DnsThreatDetector" + pattern: "projects/{project}/locations/{location}/dnsThreatDetectors/{dns_threat_detector}" + plural: "dnsThreatDetectors" + singular: "dnsThreatDetector" + }; + + // Name of the provider used for DNS threat analysis. + enum Provider { + // An unspecified provider. + PROVIDER_UNSPECIFIED = 0; + + // The Infoblox DNS threat detector provider. + INFOBLOX = 1; + } + + // Immutable. Identifier. Name of the DnsThreatDetector resource. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. Create time stamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time stamp. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Any labels associated with the DnsThreatDetector, listed as key + // value pairs. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of network resource names which aren't monitored by this + // DnsThreatDetector. + // + // Example: + // `projects/PROJECT_ID/global/networks/NETWORK_NAME`. + repeated string excluded_networks = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Required. The provider used for DNS threat analysis. + Provider provider = 6 [(google.api.field_behavior) = REQUIRED]; +} + +// The message for requesting a list of DnsThreatDetectors in the project. +message ListDnsThreatDetectorsRequest { + // Required. The parent value for `ListDnsThreatDetectorsRequest`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/DnsThreatDetector" + } + ]; + + // Optional. The requested page size. The server may return fewer items than + // requested. If unspecified, the server picks an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token received from a previous + // `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the + // subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message to requesting a list of DnsThreatDetectors. +message ListDnsThreatDetectorsResponse { + // The list of DnsThreatDetector resources. + repeated DnsThreatDetector dns_threat_detectors = 1; + + // A token, which can be sent as `page_token`, to retrieve the next page. + string next_page_token = 2; + + // Unordered list. Unreachable `DnsThreatDetector` resources. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// The message sent to get a DnsThreatDetector. +message GetDnsThreatDetectorRequest { + // Required. Name of the DnsThreatDetector resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/DnsThreatDetector" + } + ]; +} + +// The message to create a DnsThreatDetector. +message CreateDnsThreatDetectorRequest { + // Required. The value for the parent of the DnsThreatDetector resource. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/DnsThreatDetector" + } + ]; + + // Optional. The ID of the requesting DnsThreatDetector object. + // If this field is not supplied, the service generates an identifier. + string dns_threat_detector_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The `DnsThreatDetector` resource to create. + DnsThreatDetector dns_threat_detector = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// The message for updating a DnsThreatDetector. +message UpdateDnsThreatDetectorRequest { + // Optional. The field mask is used to specify the fields to be overwritten in + // the DnsThreatDetector resource by the update. The fields specified in the + // update_mask are relative to the resource, not the full request. A field + // will be overwritten if it is in the mask. If the mask is not provided then + // all fields present in the request will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The DnsThreatDetector resource being updated. + DnsThreatDetector dns_threat_detector = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// The message for deleting a DnsThreatDetector. +message DeleteDnsThreatDetectorRequest { + // Required. Name of the DnsThreatDetector resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/DnsThreatDetector" + } + ]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/firewall_activation.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/firewall_activation.proto new file mode 100644 index 000000000000..a965f589b764 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/firewall_activation.proto @@ -0,0 +1,637 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/networksecurity/v1/common.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "FirewallActivationProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; +option (google.api.resource_definition) = { + type: "networksecurity.googleapis.com/OrganizationLocation" + pattern: "organizations/{organization}/locations/{location}" +}; + +// Service for managing Firewall Endpoints and Associations. +service FirewallActivation { + option (google.api.default_host) = "networksecurity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists FirewallEndpoints in a given organization and location. + rpc ListFirewallEndpoints(ListFirewallEndpointsRequest) + returns (ListFirewallEndpointsResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*}/firewallEndpoints" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single org Endpoint. + rpc GetFirewallEndpoint(GetFirewallEndpointRequest) + returns (FirewallEndpoint) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/firewallEndpoints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new FirewallEndpoint in a given organization and location. + rpc CreateFirewallEndpoint(CreateFirewallEndpointRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/locations/*}/firewallEndpoints" + body: "firewall_endpoint" + }; + option (google.api.method_signature) = + "parent,firewall_endpoint,firewall_endpoint_id"; + option (google.longrunning.operation_info) = { + response_type: "FirewallEndpoint" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single org Endpoint. + rpc DeleteFirewallEndpoint(DeleteFirewallEndpointRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=organizations/*/locations/*/firewallEndpoints/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Update a single org Endpoint. + rpc UpdateFirewallEndpoint(UpdateFirewallEndpointRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{firewall_endpoint.name=organizations/*/locations/*/firewallEndpoints/*}" + body: "firewall_endpoint" + }; + option (google.api.method_signature) = "firewall_endpoint,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "FirewallEndpoint" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists Associations in a given project and location. + rpc ListFirewallEndpointAssociations(ListFirewallEndpointAssociationsRequest) + returns (ListFirewallEndpointAssociationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/firewallEndpointAssociations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single FirewallEndpointAssociation. + rpc GetFirewallEndpointAssociation(GetFirewallEndpointAssociationRequest) + returns (FirewallEndpointAssociation) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/firewallEndpointAssociations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new FirewallEndpointAssociation in a given project and location. + rpc CreateFirewallEndpointAssociation( + CreateFirewallEndpointAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/firewallEndpointAssociations" + body: "firewall_endpoint_association" + }; + option (google.api.method_signature) = + "parent,firewall_endpoint_association,firewall_endpoint_association_id"; + option (google.longrunning.operation_info) = { + response_type: "FirewallEndpointAssociation" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single FirewallEndpointAssociation. + rpc DeleteFirewallEndpointAssociation( + DeleteFirewallEndpointAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/firewallEndpointAssociations/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Update a single FirewallEndpointAssociation. + rpc UpdateFirewallEndpointAssociation( + UpdateFirewallEndpointAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{firewall_endpoint_association.name=projects/*/locations/*/firewallEndpointAssociations/*}" + body: "firewall_endpoint_association" + }; + option (google.api.method_signature) = + "firewall_endpoint_association,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "FirewallEndpointAssociation" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } +} + +// Message describing Endpoint object. +message FirewallEndpoint { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/FirewallEndpoint" + pattern: "organizations/{organization}/locations/{location}/firewallEndpoints/{firewall_endpoint}" + pattern: "projects/{project}/locations/{location}/firewallEndpoints/{firewall_endpoint}" + plural: "firewallEndpoints" + singular: "firewallEndpoint" + }; + + // This is a subset of the FirewallEndpointAssociation message, containing + // fields to be used by the consumer. + message AssociationReference { + // Output only. The resource name of the FirewallEndpointAssociation. + // Format: + // projects/{project}/locations/{location}/firewallEndpointAssociations/{id} + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/FirewallEndpointAssociation" + } + ]; + + // Output only. The VPC network associated. Format: + // projects/{project}/global/networks/{name}. + string network = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + } + + // Settings for the endpoint. + message EndpointSettings { + // Optional. Immutable. Indicates whether Jumbo Frames are enabled. + // Default value is false. + bool jumbo_frames_enabled = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + } + + // Endpoint state. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // Being created. + CREATING = 1; + + // Processing configuration updates. + ACTIVE = 2; + + // Being deleted. + DELETING = 3; + + // Down or in an error state. + INACTIVE = 4; + } + + // Immutable. Identifier. Name of resource. + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Optional. Description of the firewall endpoint. Max length 2048 + // characters. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Create time stamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time stamp + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Current state of the endpoint. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether reconciling is in progress, recommended per + // https://google.aip.dev/128. + bool reconciling = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of networks that are associated with this endpoint in the + // local zone. This is a projection of the FirewallEndpointAssociations + // pointing at this endpoint. A network will only appear in this list after + // traffic routing is fully configured. Format: + // projects/{project}/global/networks/{name}. + repeated string associated_networks = 7 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of FirewallEndpointAssociations that are associated to + // this endpoint. An association will only appear in this list after traffic + // routing is fully configured. + repeated AssociationReference associations = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output Only] Reserved for future use. + optional bool satisfies_pzs = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output Only] Reserved for future use. + optional bool satisfies_pzi = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Project to charge for the deployed firewall endpoint. + // This field must be specified when creating the endpoint in the organization + // scope, and should be omitted otherwise. + string billing_project_id = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings for the endpoint. + EndpointSettings endpoint_settings = 19 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for requesting list of Endpoints +message ListFirewallEndpointsRequest { + // Required. Parent value for ListEndpointsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/FirewallEndpoint" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Optional. Filtering results + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Hint for how to order the results + string order_by = 5; +} + +// Message for response to listing Endpoints +message ListFirewallEndpointsResponse { + // The list of Endpoint + repeated FirewallEndpoint firewall_endpoints = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a Endpoint +message GetFirewallEndpointRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/FirewallEndpoint" + } + ]; +} + +// Message for creating a Endpoint +message CreateFirewallEndpointRequest { + // Required. Value for parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/FirewallEndpoint" + } + ]; + + // Required. Id of the requesting object. + // If auto-generating Id server-side, remove this field and + // firewall_endpoint_id from the method_signature of Create RPC. + string firewall_endpoint_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + FirewallEndpoint firewall_endpoint = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for updating a Endpoint +message UpdateFirewallEndpointRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // Endpoint resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being updated + FirewallEndpoint firewall_endpoint = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for deleting a Endpoint +message DeleteFirewallEndpointRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/FirewallEndpoint" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message describing Association object +message FirewallEndpointAssociation { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/FirewallEndpointAssociation" + pattern: "projects/{project}/locations/{location}/firewallEndpointAssociations/{firewall_endpoint_association}" + }; + + // Association state. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // Being created. + CREATING = 1; + + // Active and ready for traffic. + ACTIVE = 2; + + // Being deleted. + DELETING = 3; + + // Down or in an error state. + INACTIVE = 4; + + // The project that housed the association has been deleted. + ORPHAN = 5; + } + + // Immutable. Identifier. name of resource + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Output only. Create time stamp + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time stamp + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Current state of the association. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The URL of the network that is being associated. + string network = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. The URL of the FirewallEndpoint that is being associated. + string firewall_endpoint = 7 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The URL of the TlsInspectionPolicy that is being associated. + string tls_inspection_policy = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/TlsInspectionPolicy" + } + ]; + + // Output only. Whether reconciling is in progress, recommended per + // https://google.aip.dev/128. + bool reconciling = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether the association is disabled. + // True indicates that traffic won't be intercepted + bool disabled = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for requesting list of Associations +message ListFirewallEndpointAssociationsRequest { + // Required. Parent value for ListAssociationsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/FirewallEndpointAssociation" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Optional. Filtering results + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Hint for how to order the results + string order_by = 5; +} + +// Message for response to listing Associations +message ListFirewallEndpointAssociationsResponse { + // The list of Association + repeated FirewallEndpointAssociation firewall_endpoint_associations = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a Association +message GetFirewallEndpointAssociationRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/FirewallEndpointAssociation" + } + ]; +} + +// Message for creating a Association +message CreateFirewallEndpointAssociationRequest { + // Required. Value for parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/FirewallEndpointAssociation" + } + ]; + + // Optional. Id of the requesting object. + // If auto-generating Id server-side, remove this field and + // firewall_endpoint_association_id from the method_signature of Create RPC. + string firewall_endpoint_association_id = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The resource being created + FirewallEndpointAssociation firewall_endpoint_association = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for deleting a Association +message DeleteFirewallEndpointAssociationRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/FirewallEndpointAssociation" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for updating an Association +message UpdateFirewallEndpointAssociationRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // Association resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being updated + FirewallEndpointAssociation firewall_endpoint_association = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/gateway_security_policy.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/gateway_security_policy.proto new file mode 100644 index 000000000000..5f174fd1285c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/gateway_security_policy.proto @@ -0,0 +1,163 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "GatewaySecurityPolicyProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// The GatewaySecurityPolicy resource contains a collection of +// GatewaySecurityPolicyRules and associated metadata. +message GatewaySecurityPolicy { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/GatewaySecurityPolicy" + pattern: "projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}" + }; + + // Required. Name of the resource. Name is of the form + // projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} + // gateway_security_policy should match the + // pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Free-text description of the resource. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of a TLS Inspection Policy resource that defines how TLS + // inspection will be performed for any rule(s) which enables it. + string tls_inspection_policy = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/TlsInspectionPolicy" + } + ]; +} + +// Request used by the CreateGatewaySecurityPolicy method. +message CreateGatewaySecurityPolicyRequest { + // Required. The parent resource of the GatewaySecurityPolicy. Must be in the + // format `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/GatewaySecurityPolicy" + } + ]; + + // Required. Short name of the GatewaySecurityPolicy resource to be created. + // This value should be 1-63 characters long, containing only + // letters, numbers, hyphens, and underscores, and should not start + // with a number. E.g. "gateway_security_policy1". + string gateway_security_policy_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. GatewaySecurityPolicy resource to be created. + GatewaySecurityPolicy gateway_security_policy = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request used with the ListGatewaySecurityPolicies method. +message ListGatewaySecurityPoliciesRequest { + // Required. The project and location from which the GatewaySecurityPolicies + // should be listed, specified in the format + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of GatewaySecurityPolicies to return per call. + int32 page_size = 2; + + // The value returned by the last + // 'ListGatewaySecurityPoliciesResponse' Indicates that this is a + // continuation of a prior 'ListGatewaySecurityPolicies' call, and + // that the system should return the next page of data. + string page_token = 3; +} + +// Response returned by the ListGatewaySecurityPolicies method. +message ListGatewaySecurityPoliciesResponse { + // List of GatewaySecurityPolicies resources. + repeated GatewaySecurityPolicy gateway_security_policies = 1; + + // If there might be more results than those appearing in this response, then + // 'next_page_token' is included. To get the next set of results, call this + // method again using the value of 'next_page_token' as 'page_token'. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request used by the GetGatewaySecurityPolicy method. +message GetGatewaySecurityPolicyRequest { + // Required. A name of the GatewaySecurityPolicy to get. Must be in the format + // `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/GatewaySecurityPolicy" + } + ]; +} + +// Request used by the DeleteGatewaySecurityPolicy method. +message DeleteGatewaySecurityPolicyRequest { + // Required. A name of the GatewaySecurityPolicy to delete. Must be in the + // format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/GatewaySecurityPolicy" + } + ]; +} + +// Request used by the UpdateGatewaySecurityPolicy method. +message UpdateGatewaySecurityPolicyRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // GatewaySecurityPolicy resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Updated GatewaySecurityPolicy resource. + GatewaySecurityPolicy gateway_security_policy = 2 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/gateway_security_policy_rule.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/gateway_security_policy_rule.proto new file mode 100644 index 000000000000..eeedf2a4ab28 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/gateway_security_policy_rule.proto @@ -0,0 +1,196 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "GatewaySecurityPolicyRuleProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// The GatewaySecurityPolicyRule resource is in a nested collection within a +// GatewaySecurityPolicy and represents a traffic matching condition and +// associated action to perform. +message GatewaySecurityPolicyRule { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/GatewaySecurityPolicyRule" + pattern: "projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}" + }; + + // enum to define the primitive action. + enum BasicProfile { + // If there is not a mentioned action for the target. + BASIC_PROFILE_UNSPECIFIED = 0; + + // Allow the matched traffic. + ALLOW = 1; + + // Deny the matched traffic. + DENY = 2; + } + + oneof profile { + // Required. Profile which tells what the primitive action should be. + BasicProfile basic_profile = 9 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Immutable. Name of the resource. ame is the full resource name so + // projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} + // rule should match the + // pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. Time when the rule was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the rule was updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Whether the rule is enforced. + bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Priority of the rule. + // Lower number corresponds to higher precedence. + int32 priority = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Free-text description of the resource. + string description = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. CEL expression for matching on session criteria. + string session_matcher = 7 [(google.api.field_behavior) = REQUIRED]; + + // Optional. CEL expression for matching on L7/application level criteria. + string application_matcher = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Flag to enable TLS inspection of traffic matching on + // , can only be true if the parent GatewaySecurityPolicy + // references a TLSInspectionConfig. + bool tls_inspection_enabled = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// Methods for GatewaySecurityPolicy RULES/GatewaySecurityPolicyRules. +// Request used by the CreateGatewaySecurityPolicyRule method. +message CreateGatewaySecurityPolicyRuleRequest { + // Required. The parent where this rule will be created. + // Format : + // projects/{project}/location/{location}/gatewaySecurityPolicies/* + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/GatewaySecurityPolicyRule" + } + ]; + + // Required. The rule to be created. + GatewaySecurityPolicyRule gateway_security_policy_rule = 2 + [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for the rule, which will become the final component of + // the rule's resource name. + // This value should be 4-63 characters, and valid characters + // are /[a-z][0-9]-/. + string gateway_security_policy_rule_id = 3; +} + +// Request used by the GetGatewaySecurityPolicyRule method. +message GetGatewaySecurityPolicyRuleRequest { + // Required. The name of the GatewaySecurityPolicyRule to retrieve. + // Format: + // projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/* + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/GatewaySecurityPolicyRule" + } + ]; +} + +// Request used by the UpdateGatewaySecurityPolicyRule method. +message UpdateGatewaySecurityPolicyRuleRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // GatewaySecurityPolicy resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Updated GatewaySecurityPolicyRule resource. + GatewaySecurityPolicyRule gateway_security_policy_rule = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request used with the ListGatewaySecurityPolicyRules method. +message ListGatewaySecurityPolicyRulesRequest { + // Required. The project, location and GatewaySecurityPolicy from which the + // GatewaySecurityPolicyRules should be listed, specified in the format + // `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/GatewaySecurityPolicy" + } + ]; + + // Maximum number of GatewaySecurityPolicyRules to return per call. + int32 page_size = 2; + + // The value returned by the last + // 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a + // continuation of a prior 'ListGatewaySecurityPolicyRules' call, and + // that the system should return the next page of data. + string page_token = 3; +} + +// Response returned by the ListGatewaySecurityPolicyRules method. +message ListGatewaySecurityPolicyRulesResponse { + // List of GatewaySecurityPolicyRule resources. + repeated GatewaySecurityPolicyRule gateway_security_policy_rules = 1; + + // If there might be more results than those appearing in this response, then + // 'next_page_token' is included. To get the next set of results, call this + // method again using the value of 'next_page_token' as 'page_token'. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request used by the DeleteGatewaySecurityPolicyRule method. +message DeleteGatewaySecurityPolicyRuleRequest { + // Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the + // format + // `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/GatewaySecurityPolicyRule" + } + ]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/intercept.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/intercept.proto new file mode 100644 index 000000000000..956ec2c13f23 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/intercept.proto @@ -0,0 +1,1353 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/networksecurity/v1/common.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "InterceptProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// Service for Third-Party Packet Intercept (TPPI). +// TPPI is the "in-band" flavor of the Network Security Integrations product. +service Intercept { + option (google.api.default_host) = "networksecurity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists endpoint groups in a given project and location. + // See https://google.aip.dev/132. + rpc ListInterceptEndpointGroups(ListInterceptEndpointGroupsRequest) + returns (ListInterceptEndpointGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/interceptEndpointGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific endpoint group. + // See https://google.aip.dev/131. + rpc GetInterceptEndpointGroup(GetInterceptEndpointGroupRequest) + returns (InterceptEndpointGroup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/interceptEndpointGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an endpoint group in a given project and location. + // See https://google.aip.dev/133. + rpc CreateInterceptEndpointGroup(CreateInterceptEndpointGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/interceptEndpointGroups" + body: "intercept_endpoint_group" + }; + option (google.api.method_signature) = + "parent,intercept_endpoint_group,intercept_endpoint_group_id"; + option (google.longrunning.operation_info) = { + response_type: "InterceptEndpointGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates an endpoint group. + // See https://google.aip.dev/134. + rpc UpdateInterceptEndpointGroup(UpdateInterceptEndpointGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{intercept_endpoint_group.name=projects/*/locations/*/interceptEndpointGroups/*}" + body: "intercept_endpoint_group" + }; + option (google.api.method_signature) = + "intercept_endpoint_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "InterceptEndpointGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes an endpoint group. + // See https://google.aip.dev/135. + rpc DeleteInterceptEndpointGroup(DeleteInterceptEndpointGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/interceptEndpointGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists associations in a given project and location. + // See https://google.aip.dev/132. + rpc ListInterceptEndpointGroupAssociations( + ListInterceptEndpointGroupAssociationsRequest) + returns (ListInterceptEndpointGroupAssociationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/interceptEndpointGroupAssociations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific association. + // See https://google.aip.dev/131. + rpc GetInterceptEndpointGroupAssociation( + GetInterceptEndpointGroupAssociationRequest) + returns (InterceptEndpointGroupAssociation) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/interceptEndpointGroupAssociations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an association in a given project and location. + // See https://google.aip.dev/133. + rpc CreateInterceptEndpointGroupAssociation( + CreateInterceptEndpointGroupAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/interceptEndpointGroupAssociations" + body: "intercept_endpoint_group_association" + }; + option (google.api.method_signature) = + "parent,intercept_endpoint_group_association,intercept_endpoint_group_association_id"; + option (google.longrunning.operation_info) = { + response_type: "InterceptEndpointGroupAssociation" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates an association. + // See https://google.aip.dev/134. + rpc UpdateInterceptEndpointGroupAssociation( + UpdateInterceptEndpointGroupAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{intercept_endpoint_group_association.name=projects/*/locations/*/interceptEndpointGroupAssociations/*}" + body: "intercept_endpoint_group_association" + }; + option (google.api.method_signature) = + "intercept_endpoint_group_association,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "InterceptEndpointGroupAssociation" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes an association. + // See https://google.aip.dev/135. + rpc DeleteInterceptEndpointGroupAssociation( + DeleteInterceptEndpointGroupAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/interceptEndpointGroupAssociations/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists deployment groups in a given project and location. + // See https://google.aip.dev/132. + rpc ListInterceptDeploymentGroups(ListInterceptDeploymentGroupsRequest) + returns (ListInterceptDeploymentGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/interceptDeploymentGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific deployment group. + // See https://google.aip.dev/131. + rpc GetInterceptDeploymentGroup(GetInterceptDeploymentGroupRequest) + returns (InterceptDeploymentGroup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/interceptDeploymentGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a deployment group in a given project and location. + // See https://google.aip.dev/133. + rpc CreateInterceptDeploymentGroup(CreateInterceptDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/interceptDeploymentGroups" + body: "intercept_deployment_group" + }; + option (google.api.method_signature) = + "parent,intercept_deployment_group,intercept_deployment_group_id"; + option (google.longrunning.operation_info) = { + response_type: "InterceptDeploymentGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates a deployment group. + // See https://google.aip.dev/134. + rpc UpdateInterceptDeploymentGroup(UpdateInterceptDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{intercept_deployment_group.name=projects/*/locations/*/interceptDeploymentGroups/*}" + body: "intercept_deployment_group" + }; + option (google.api.method_signature) = + "intercept_deployment_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "InterceptDeploymentGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a deployment group. + // See https://google.aip.dev/135. + rpc DeleteInterceptDeploymentGroup(DeleteInterceptDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/interceptDeploymentGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists deployments in a given project and location. + // See https://google.aip.dev/132. + rpc ListInterceptDeployments(ListInterceptDeploymentsRequest) + returns (ListInterceptDeploymentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/interceptDeployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific deployment. + // See https://google.aip.dev/131. + rpc GetInterceptDeployment(GetInterceptDeploymentRequest) + returns (InterceptDeployment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/interceptDeployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a deployment in a given project and location. + // See https://google.aip.dev/133. + rpc CreateInterceptDeployment(CreateInterceptDeploymentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/interceptDeployments" + body: "intercept_deployment" + }; + option (google.api.method_signature) = + "parent,intercept_deployment,intercept_deployment_id"; + option (google.longrunning.operation_info) = { + response_type: "InterceptDeployment" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates a deployment. + // See https://google.aip.dev/134. + rpc UpdateInterceptDeployment(UpdateInterceptDeploymentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{intercept_deployment.name=projects/*/locations/*/interceptDeployments/*}" + body: "intercept_deployment" + }; + option (google.api.method_signature) = "intercept_deployment,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "InterceptDeployment" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a deployment. + // See https://google.aip.dev/135. + rpc DeleteInterceptDeployment(DeleteInterceptDeploymentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/interceptDeployments/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } +} + +// An endpoint group is a consumer frontend for a deployment group (backend). +// In order to configure intercept for a network, consumers must create: +// - An association between their network and the endpoint group. +// - A security profile that points to the endpoint group. +// - A firewall rule that references the security profile (group). +message InterceptEndpointGroup { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroup" + pattern: "projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}" + plural: "interceptEndpointGroups" + singular: "interceptEndpointGroup" + }; + + // The endpoint group's view of a connected deployment group. + message ConnectedDeploymentGroup { + // Output only. The connected deployment group's resource name, for example: + // `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. + // See https://google.aip.dev/124. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptDeploymentGroup" + } + ]; + + // Output only. The list of locations where the deployment group is present. + repeated InterceptLocation locations = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The endpoint group's view of a connected association. + message AssociationDetails { + // Output only. The connected association's resource name, for example: + // `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`. + // See https://google.aip.dev/124. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroupAssociation" + } + ]; + + // Output only. The associated network, for example: + // projects/123456789/global/networks/my-network. + // See https://google.aip.dev/124. + string network = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + + // Output only. Most recent known state of the association. + InterceptEndpointGroupAssociation.State state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Endpoint group state. + enum State { + // State not set (this is not a valid state). + STATE_UNSPECIFIED = 0; + + // The endpoint group is ready and in sync with the target deployment group. + ACTIVE = 1; + + // The deployment group backing this endpoint group has been force-deleted. + // This endpoint group cannot be used and interception is effectively + // disabled. + CLOSED = 2; + + // The endpoint group is being created. + CREATING = 3; + + // The endpoint group is being deleted. + DELETING = 4; + + // The endpoint group is out of sync with the backing deployment group. + // In most cases, this is a result of a transient issue within the system + // (e.g. an inaccessible location) and the system is expected to recover + // automatically. See the associations field for details per network and + // location. + OUT_OF_SYNC = 5; + + // An attempt to delete the endpoint group has failed. This is a terminal + // state and the endpoint group is not expected to recover. + // The only permitted operation is to retry deleting the endpoint group. + DELETE_FAILED = 6; + } + + // Immutable. Identifier. The resource name of this endpoint group, for + // example: + // `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. + // See https://google.aip.dev/122 for more details. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp when the resource was created. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was most recently updated. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels are key/value pairs that help to organize and filter + // resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The deployment group that this endpoint group is + // connected to, for example: + // `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. + // See https://google.aip.dev/124. + string intercept_deployment_group = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptDeploymentGroup" + } + ]; + + // Output only. Details about the connected deployment group to this endpoint + // group. + ConnectedDeploymentGroup connected_deployment_group = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the endpoint group. + // See https://google.aip.dev/216. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the resource does not match the user's + // intended state, and the system is working to reconcile them. This is part + // of the normal operation (e.g. adding a new association to the group). See + // https://google.aip.dev/128. + bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of associations to this endpoint group. + repeated AssociationDetails associations = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided description of the endpoint group. + // Used as additional context for the endpoint group. + string description = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for ListInterceptEndpointGroups. +message ListInterceptEndpointGroupsRequest { + // Required. The parent, which owns this collection of endpoint groups. + // Example: `projects/123456789/locations/global`. + // See https://google.aip.dev/132 for more details. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/InterceptEndpointGroup" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. See + // https://google.aip.dev/158 for more details. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent + // page. When paginating, all other parameters provided to + // `ListInterceptEndpointGroups` must match the call that provided the page + // token. + // See https://google.aip.dev/158 for more details. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression. + // See https://google.aip.dev/160#filtering for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort expression. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListInterceptEndpointGroups. +message ListInterceptEndpointGroupsResponse { + // The endpoint groups from the specified parent. + repeated InterceptEndpointGroup intercept_endpoint_groups = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // See https://google.aip.dev/158 for more details. + string next_page_token = 2; +} + +// Request message for GetInterceptEndpointGroup. +message GetInterceptEndpointGroupRequest { + // Required. The name of the endpoint group to retrieve. + // Format: + // projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroup" + } + ]; +} + +// Request message for CreateInterceptEndpointGroup. +message CreateInterceptEndpointGroupRequest { + // Required. The parent resource where this endpoint group will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/InterceptEndpointGroup" + } + ]; + + // Required. The ID to use for the endpoint group, which will become the final + // component of the endpoint group's resource name. + string intercept_endpoint_group_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The endpoint group to create. + InterceptEndpointGroup intercept_endpoint_group = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for UpdateInterceptEndpointGroup. +message UpdateInterceptEndpointGroupRequest { + // Optional. The list of fields to update. + // Fields are specified relative to the endpoint group + // (e.g. `description`; *not* `intercept_endpoint_group.description`). + // See https://google.aip.dev/161 for more details. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The endpoint group to update. + InterceptEndpointGroup intercept_endpoint_group = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for DeleteInterceptEndpointGroup. +message DeleteInterceptEndpointGroupRequest { + // Required. The endpoint group to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroup" + } + ]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// An endpoint group association represents a link between a network and an +// endpoint group in the organization. +// +// Creating an association creates the networking infrastructure linking the +// network to the endpoint group, but does not enable intercept by itself. +// To enable intercept, the user must also create a network firewall policy +// containing intercept rules and associate it with the network. +message InterceptEndpointGroupAssociation { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroupAssociation" + pattern: "projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}" + plural: "interceptEndpointGroupAssociations" + singular: "interceptEndpointGroupAssociation" + }; + + // Contains details about the state of an association in a specific cloud + // location. + message LocationDetails { + // The state of association. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The association is ready and in sync with the linked endpoint group. + ACTIVE = 1; + + // The association is out of sync with the linked endpoint group. + // In most cases, this is a result of a transient issue within the system + // (e.g. an inaccessible location) and the system is expected to recover + // automatically. + OUT_OF_SYNC = 2; + } + + // Output only. The cloud location, e.g. "us-central1-a" or "asia-south1". + string location = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the association in this location. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The state of the association. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The association is ready and in sync with the linked endpoint group. + ACTIVE = 1; + + // The association is being created. + CREATING = 2; + + // The association is being deleted. + DELETING = 3; + + // The association is disabled due to a breaking change in another resource. + CLOSED = 4; + + // The association is out of sync with the linked endpoint group. + // In most cases, this is a result of a transient issue within the system + // (e.g. an inaccessible location) and the system is expected to recover + // automatically. Check the `locations_details` field for more details. + OUT_OF_SYNC = 5; + + // An attempt to delete the association has failed. This is a terminal state + // and the association is not expected to be usable as some of its resources + // have been deleted. + // The only permitted operation is to retry deleting the association. + DELETE_FAILED = 6; + } + + // Immutable. Identifier. The resource name of this endpoint group + // association, for example: + // `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`. + // See https://google.aip.dev/122 for more details. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp when the resource was created. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was most recently updated. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels are key/value pairs that help to organize and filter + // resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The endpoint group that this association is connected + // to, for example: + // `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. + // See https://google.aip.dev/124. + string intercept_endpoint_group = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroup" + } + ]; + + // Required. Immutable. The VPC network that is associated. for example: + // `projects/123456789/global/networks/my-network`. + // See https://google.aip.dev/124. + string network = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. The list of locations where the association is present. This + // information is retrieved from the linked endpoint group, and not configured + // as part of the association itself. + repeated LocationDetails locations_details = 7 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state of the endpoint group association. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the resource does not match the user's + // intended state, and the system is working to reconcile them. This part of + // the normal operation (e.g. adding a new location to the target deployment + // group). See https://google.aip.dev/128. + bool reconciling = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of locations where the association is configured. + // This information is retrieved from the linked endpoint group. + repeated InterceptLocation locations = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifier used by the data-path. + // See the NSI GENEVE format for more details: + // https://docs.cloud.google.com/network-security-integration/docs/understand-geneve#network_id + uint32 network_cookie = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for ListInterceptEndpointGroupAssociations. +message ListInterceptEndpointGroupAssociationsRequest { + // Required. The parent, which owns this collection of associations. + // Example: `projects/123456789/locations/global`. + // See https://google.aip.dev/132 for more details. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/InterceptEndpointGroupAssociation" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. See + // https://google.aip.dev/158 for more details. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent + // page. When paginating, all other parameters provided to + // `ListInterceptEndpointGroups` must match the call that provided the page + // token. See https://google.aip.dev/158 for more details. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression. + // See https://google.aip.dev/160#filtering for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort expression. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListInterceptEndpointGroupAssociations. +message ListInterceptEndpointGroupAssociationsResponse { + // The associations from the specified parent. + repeated InterceptEndpointGroupAssociation + intercept_endpoint_group_associations = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // See https://google.aip.dev/158 for more details. + string next_page_token = 2; +} + +// Request message for GetInterceptEndpointGroupAssociation. +message GetInterceptEndpointGroupAssociationRequest { + // Required. The name of the association to retrieve. + // Format: + // projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroupAssociation" + } + ]; +} + +// Request message for CreateInterceptEndpointGroupAssociation. +message CreateInterceptEndpointGroupAssociationRequest { + // Required. The parent resource where this association will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/InterceptEndpointGroupAssociation" + } + ]; + + // Optional. The ID to use for the new association, which will become the + // final component of the endpoint group's resource name. If not provided, the + // server will generate a unique ID. + string intercept_endpoint_group_association_id = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The association to create. + InterceptEndpointGroupAssociation intercept_endpoint_group_association = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for UpdateInterceptEndpointGroupAssociation. +message UpdateInterceptEndpointGroupAssociationRequest { + // Optional. The list of fields to update. + // Fields are specified relative to the association + // (e.g. `description`; *not* + // `intercept_endpoint_group_association.description`). See + // https://google.aip.dev/161 for more details. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The association to update. + InterceptEndpointGroupAssociation intercept_endpoint_group_association = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for DeleteInterceptEndpointGroupAssociation. +message DeleteInterceptEndpointGroupAssociationRequest { + // Required. The association to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroupAssociation" + } + ]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A deployment group aggregates many zonal intercept backends (deployments) +// into a single global intercept service. Consumers can connect this service +// using an endpoint group. +message InterceptDeploymentGroup { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/InterceptDeploymentGroup" + pattern: "projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}" + plural: "interceptDeploymentGroups" + singular: "interceptDeploymentGroup" + }; + + // An endpoint group connected to this deployment group. + message ConnectedEndpointGroup { + // Output only. The connected endpoint group's resource name, for example: + // `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. + // See https://google.aip.dev/124. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroup" + } + ]; + } + + // A deployment belonging to this deployment group. + message Deployment { + // Output only. The name of the Intercept Deployment, in the format: + // `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptDeployment" + } + ]; + + // Output only. Most recent known state of the deployment. + InterceptDeployment.State state = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The current state of the deployment group. + enum State { + // State not set (this is not a valid state). + STATE_UNSPECIFIED = 0; + + // The deployment group is ready. + ACTIVE = 1; + + // The deployment group is being created. + CREATING = 2; + + // The deployment group is being deleted. + DELETING = 3; + } + + // Immutable. Identifier. The resource name of this deployment group, for + // example: + // `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. + // See https://google.aip.dev/122 for more details. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp when the resource was created. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was most recently updated. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels are key/value pairs that help to organize and filter + // resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The network that will be used for all child + // deployments, for example: `projects/{project}/global/networks/{network}`. + // See https://google.aip.dev/124. + string network = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. The list of endpoint groups that are connected to this + // resource. + repeated ConnectedEndpointGroup connected_endpoint_groups = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of Intercept Deployments that belong to this group. + repeated Deployment nested_deployments = 10 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the deployment group. + // See https://google.aip.dev/216. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the resource does not match the user's + // intended state, and the system is working to reconcile them. This is part + // of the normal operation (e.g. adding a new deployment to the group) See + // https://google.aip.dev/128. + bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided description of the deployment group. + // Used as additional context for the deployment group. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The list of locations where the deployment group is present. + repeated InterceptLocation locations = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for ListInterceptDeploymentGroups. +message ListInterceptDeploymentGroupsRequest { + // Required. The parent, which owns this collection of deployment groups. + // Example: `projects/123456789/locations/global`. + // See https://google.aip.dev/132 for more details. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/InterceptDeploymentGroup" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. See + // https://google.aip.dev/158 for more details. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListInterceptDeploymentGroups` call. Provide this to retrieve the + // subsequent page. When paginating, all other parameters provided to + // `ListInterceptDeploymentGroups` must match the call that provided the page + // token. See https://google.aip.dev/158 for more details. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression. + // See https://google.aip.dev/160#filtering for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort expression. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListInterceptDeploymentGroups. +message ListInterceptDeploymentGroupsResponse { + // The deployment groups from the specified parent. + repeated InterceptDeploymentGroup intercept_deployment_groups = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // See https://google.aip.dev/158 for more details. + string next_page_token = 2; +} + +// Request message for GetInterceptDeploymentGroup. +message GetInterceptDeploymentGroupRequest { + // Required. The name of the deployment group to retrieve. + // Format: + // projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptDeploymentGroup" + } + ]; +} + +// Request message for CreateInterceptDeploymentGroup. +message CreateInterceptDeploymentGroupRequest { + // Required. The parent resource where this deployment group will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/InterceptDeploymentGroup" + } + ]; + + // Required. The ID to use for the new deployment group, which will become the + // final component of the deployment group's resource name. + string intercept_deployment_group_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The deployment group to create. + InterceptDeploymentGroup intercept_deployment_group = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for UpdateInterceptDeploymentGroup. +message UpdateInterceptDeploymentGroupRequest { + // Optional. The list of fields to update. + // Fields are specified relative to the deployment group + // (e.g. `description`; *not* + // `intercept_deployment_group.description`). See + // https://google.aip.dev/161 for more details. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The deployment group to update. + InterceptDeploymentGroup intercept_deployment_group = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for DeleteInterceptDeploymentGroup. +message DeleteInterceptDeploymentGroupRequest { + // Required. The deployment group to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptDeploymentGroup" + } + ]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A deployment represents a zonal intercept backend ready to accept +// GENEVE-encapsulated traffic, e.g. a zonal instance group fronted by an +// internal passthrough load balancer. Deployments are always part of a +// global deployment group which represents a global intercept service. +message InterceptDeployment { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/InterceptDeployment" + pattern: "projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}" + plural: "interceptDeployments" + singular: "interceptDeployment" + }; + + // The current state of the deployment. + enum State { + // State not set (this is not a valid state). + STATE_UNSPECIFIED = 0; + + // The deployment is ready and in sync with the parent group. + ACTIVE = 1; + + // The deployment is being created. + CREATING = 2; + + // The deployment is being deleted. + DELETING = 3; + + // The deployment is out of sync with the parent group. + // In most cases, this is a result of a transient issue within the system + // (e.g. a delayed data-path config) and the system is expected to recover + // automatically. See the parent deployment group's state for more details. + OUT_OF_SYNC = 4; + + // An attempt to delete the deployment has failed. This is a terminal state + // and the deployment is not expected to recover. The only permitted + // operation is to retry deleting the deployment. + DELETE_FAILED = 5; + } + + // Immutable. Identifier. The resource name of this deployment, for example: + // `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`. + // See https://google.aip.dev/122 for more details. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp when the resource was created. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was most recently updated. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels are key/value pairs that help to organize and filter + // resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The regional forwarding rule that fronts the + // interceptors, for example: + // `projects/123456789/regions/us-central1/forwardingRules/my-rule`. + // See https://google.aip.dev/124. + string forwarding_rule = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ForwardingRule" + } + ]; + + // Required. Immutable. The deployment group that this deployment is a part + // of, for example: + // `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. + // See https://google.aip.dev/124. + string intercept_deployment_group = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptDeploymentGroup" + } + ]; + + // Output only. The current state of the deployment. + // See https://google.aip.dev/216. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the resource does not match the user's + // intended state, and the system is working to reconcile them. This part of + // the normal operation (e.g. linking a new association to the parent group). + // See https://google.aip.dev/128. + bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided description of the deployment. + // Used as additional context for the deployment. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for ListInterceptDeployments. +message ListInterceptDeploymentsRequest { + // Required. The parent, which owns this collection of deployments. + // Example: `projects/123456789/locations/us-central1-a`. + // See https://google.aip.dev/132 for more details. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/InterceptDeployment" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. See + // https://google.aip.dev/158 for more details. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListInterceptDeployments` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListInterceptDeployments` must match the call + // that provided the page token. See https://google.aip.dev/158 for more + // details. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression. + // See https://google.aip.dev/160#filtering for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort expression. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListInterceptDeployments. +message ListInterceptDeploymentsResponse { + // The deployments from the specified parent. + repeated InterceptDeployment intercept_deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // See https://google.aip.dev/158 for more details. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for GetInterceptDeployment. +message GetInterceptDeploymentRequest { + // Required. The name of the deployment to retrieve. + // Format: + // projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptDeployment" + } + ]; +} + +// Request message for CreateInterceptDeployment. +message CreateInterceptDeploymentRequest { + // Required. The parent resource where this deployment will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/InterceptDeployment" + } + ]; + + // Required. The ID to use for the new deployment, which will become the final + // component of the deployment's resource name. + string intercept_deployment_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The deployment to create. + InterceptDeployment intercept_deployment = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for UpdateInterceptDeployment. +message UpdateInterceptDeploymentRequest { + // Optional. The list of fields to update. + // Fields are specified relative to the deployment + // (e.g. `description`; *not* `intercept_deployment.description`). + // See https://google.aip.dev/161 for more details. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The deployment to update. + InterceptDeployment intercept_deployment = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for DeleteInterceptDeployment. +message DeleteInterceptDeploymentRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptDeployment" + } + ]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Details about intercept in a specific cloud location. +message InterceptLocation { + // The current state of a resource in the location. + enum State { + // State not set (this is not a valid state). + STATE_UNSPECIFIED = 0; + + // The resource is ready and in sync in the location. + ACTIVE = 1; + + // The resource is out of sync in the location. + // In most cases, this is a result of a transient issue within the system + // (e.g. an inaccessible location) and the system is expected to recover + // automatically. + OUT_OF_SYNC = 2; + } + + // Output only. The cloud location, e.g. "us-central1-a" or "asia-south1". + string location = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the association in this location. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/mirroring.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/mirroring.proto new file mode 100644 index 000000000000..d797ba127184 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/mirroring.proto @@ -0,0 +1,1363 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/networksecurity/v1/common.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "MirroringProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/ForwardingRule" + pattern: "projects/{project}/global/forwardingRules/{forwarding_rule}" +}; + +// PM2 is the "out-of-band" flavor of the Network Security Integrations product. +service Mirroring { + option (google.api.default_host) = "networksecurity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists endpoint groups in a given project and location. + // See https://google.aip.dev/132. + rpc ListMirroringEndpointGroups(ListMirroringEndpointGroupsRequest) + returns (ListMirroringEndpointGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/mirroringEndpointGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific endpoint group. + // See https://google.aip.dev/131. + rpc GetMirroringEndpointGroup(GetMirroringEndpointGroupRequest) + returns (MirroringEndpointGroup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/mirroringEndpointGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an endpoint group in a given project and location. + // See https://google.aip.dev/133. + rpc CreateMirroringEndpointGroup(CreateMirroringEndpointGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/mirroringEndpointGroups" + body: "mirroring_endpoint_group" + }; + option (google.api.method_signature) = + "parent,mirroring_endpoint_group,mirroring_endpoint_group_id"; + option (google.longrunning.operation_info) = { + response_type: "MirroringEndpointGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates an endpoint group. + // See https://google.aip.dev/134. + rpc UpdateMirroringEndpointGroup(UpdateMirroringEndpointGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{mirroring_endpoint_group.name=projects/*/locations/*/mirroringEndpointGroups/*}" + body: "mirroring_endpoint_group" + }; + option (google.api.method_signature) = + "mirroring_endpoint_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MirroringEndpointGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes an endpoint group. + // See https://google.aip.dev/135. + rpc DeleteMirroringEndpointGroup(DeleteMirroringEndpointGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/mirroringEndpointGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists associations in a given project and location. + // See https://google.aip.dev/132. + rpc ListMirroringEndpointGroupAssociations( + ListMirroringEndpointGroupAssociationsRequest) + returns (ListMirroringEndpointGroupAssociationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/mirroringEndpointGroupAssociations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific association. + // See https://google.aip.dev/131. + rpc GetMirroringEndpointGroupAssociation( + GetMirroringEndpointGroupAssociationRequest) + returns (MirroringEndpointGroupAssociation) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/mirroringEndpointGroupAssociations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an association in a given project and location. + // See https://google.aip.dev/133. + rpc CreateMirroringEndpointGroupAssociation( + CreateMirroringEndpointGroupAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/mirroringEndpointGroupAssociations" + body: "mirroring_endpoint_group_association" + }; + option (google.api.method_signature) = + "parent,mirroring_endpoint_group_association,mirroring_endpoint_group_association_id"; + option (google.longrunning.operation_info) = { + response_type: "MirroringEndpointGroupAssociation" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates an association. + // See https://google.aip.dev/134. + rpc UpdateMirroringEndpointGroupAssociation( + UpdateMirroringEndpointGroupAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{mirroring_endpoint_group_association.name=projects/*/locations/*/mirroringEndpointGroupAssociations/*}" + body: "mirroring_endpoint_group_association" + }; + option (google.api.method_signature) = + "mirroring_endpoint_group_association,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MirroringEndpointGroupAssociation" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes an association. + // See https://google.aip.dev/135. + rpc DeleteMirroringEndpointGroupAssociation( + DeleteMirroringEndpointGroupAssociationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/mirroringEndpointGroupAssociations/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists deployment groups in a given project and location. + // See https://google.aip.dev/132. + rpc ListMirroringDeploymentGroups(ListMirroringDeploymentGroupsRequest) + returns (ListMirroringDeploymentGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/mirroringDeploymentGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific deployment group. + // See https://google.aip.dev/131. + rpc GetMirroringDeploymentGroup(GetMirroringDeploymentGroupRequest) + returns (MirroringDeploymentGroup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/mirroringDeploymentGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a deployment group in a given project and location. + // See https://google.aip.dev/133. + rpc CreateMirroringDeploymentGroup(CreateMirroringDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/mirroringDeploymentGroups" + body: "mirroring_deployment_group" + }; + option (google.api.method_signature) = + "parent,mirroring_deployment_group,mirroring_deployment_group_id"; + option (google.longrunning.operation_info) = { + response_type: "MirroringDeploymentGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates a deployment group. + // See https://google.aip.dev/134. + rpc UpdateMirroringDeploymentGroup(UpdateMirroringDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{mirroring_deployment_group.name=projects/*/locations/*/mirroringDeploymentGroups/*}" + body: "mirroring_deployment_group" + }; + option (google.api.method_signature) = + "mirroring_deployment_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MirroringDeploymentGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a deployment group. + // See https://google.aip.dev/135. + rpc DeleteMirroringDeploymentGroup(DeleteMirroringDeploymentGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/mirroringDeploymentGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists deployments in a given project and location. + // See https://google.aip.dev/132. + rpc ListMirroringDeployments(ListMirroringDeploymentsRequest) + returns (ListMirroringDeploymentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/mirroringDeployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a specific deployment. + // See https://google.aip.dev/131. + rpc GetMirroringDeployment(GetMirroringDeploymentRequest) + returns (MirroringDeployment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/mirroringDeployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a deployment in a given project and location. + // See https://google.aip.dev/133. + rpc CreateMirroringDeployment(CreateMirroringDeploymentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/mirroringDeployments" + body: "mirroring_deployment" + }; + option (google.api.method_signature) = + "parent,mirroring_deployment,mirroring_deployment_id"; + option (google.longrunning.operation_info) = { + response_type: "MirroringDeployment" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates a deployment. + // See https://google.aip.dev/134. + rpc UpdateMirroringDeployment(UpdateMirroringDeploymentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{mirroring_deployment.name=projects/*/locations/*/mirroringDeployments/*}" + body: "mirroring_deployment" + }; + option (google.api.method_signature) = "mirroring_deployment,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MirroringDeployment" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a deployment. + // See https://google.aip.dev/135. + rpc DeleteMirroringDeployment(DeleteMirroringDeploymentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/mirroringDeployments/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } +} + +// An endpoint group is a consumer frontend for a deployment group (backend). +// In order to configure mirroring for a network, consumers must create: +// - An association between their network and the endpoint group. +// - A security profile that points to the endpoint group. +// - A mirroring rule that references the security profile (group). +message MirroringEndpointGroup { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroup" + pattern: "projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}" + plural: "mirroringEndpointGroups" + singular: "mirroringEndpointGroup" + }; + + // The endpoint group's view of a connected deployment group. + message ConnectedDeploymentGroup { + // Output only. The connected deployment group's resource name, for example: + // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. + // See https://google.aip.dev/124. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringDeploymentGroup" + } + ]; + + // Output only. The list of locations where the deployment group is present. + repeated MirroringLocation locations = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The endpoint group's view of a connected association. + message AssociationDetails { + // Output only. The connected association's resource name, for example: + // `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-ega`. + // See https://google.aip.dev/124. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroupAssociation" + } + ]; + + // Output only. The associated network, for example: + // projects/123456789/global/networks/my-network. + // See https://google.aip.dev/124. + string network = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + + // Output only. Most recent known state of the association. + MirroringEndpointGroupAssociation.State state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The current state of the endpoint group. + enum State { + // State not set (this is not a valid state). + STATE_UNSPECIFIED = 0; + + // The endpoint group is ready and in sync with the target deployment group. + ACTIVE = 1; + + // The deployment group backing this endpoint group has been force-deleted. + // This endpoint group cannot be used and mirroring is effectively disabled. + CLOSED = 2; + + // The endpoint group is being created. + CREATING = 3; + + // The endpoint group is being deleted. + DELETING = 4; + + // The endpoint group is out of sync with the backing deployment group. + // In most cases, this is a result of a transient issue within the system + // (e.g. an inaccessible location) and the system is expected to recover + // automatically. See the associations field for details per network and + // location. + OUT_OF_SYNC = 5; + + // An attempt to delete the endpoint group has failed. This is a terminal + // state and the endpoint group is not expected to recover. + // The only permitted operation is to retry deleting the endpoint group. + DELETE_FAILED = 6; + } + + // The type of the endpoint group. + enum Type { + // Not set. + TYPE_UNSPECIFIED = 0; + + // An endpoint group that sends packets to a single deployment group. + DIRECT = 1; + } + + // Immutable. Identifier. The resource name of this endpoint group, for + // example: + // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. + // See https://google.aip.dev/122 for more details. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp when the resource was created. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was most recently updated. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels are key/value pairs that help to organize and filter + // resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The deployment group that this DIRECT endpoint group is + // connected to, for example: + // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. + // See https://google.aip.dev/124. + string mirroring_deployment_group = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringDeploymentGroup" + } + ]; + + // Output only. List of details about the connected deployment groups to this + // endpoint group. + repeated ConnectedDeploymentGroup connected_deployment_groups = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the endpoint group. + // See https://google.aip.dev/216. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the resource does not match the user's + // intended state, and the system is working to reconcile them. This is part + // of the normal operation (e.g. adding a new association to the group). See + // https://google.aip.dev/128. + bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The type of the endpoint group. + // If left unspecified, defaults to DIRECT. + Type type = 11 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. List of associations to this endpoint group. + repeated AssociationDetails associations = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided description of the endpoint group. + // Used as additional context for the endpoint group. + string description = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for ListMirroringEndpointGroups. +message ListMirroringEndpointGroupsRequest { + // Required. The parent, which owns this collection of endpoint groups. + // Example: `projects/123456789/locations/global`. + // See https://google.aip.dev/132 for more details. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/MirroringEndpointGroup" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. See + // https://google.aip.dev/158 for more details. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent + // page. When paginating, all other parameters provided to + // `ListMirroringEndpointGroups` must match the call that provided the page + // token. + // See https://google.aip.dev/158 for more details. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression. + // See https://google.aip.dev/160#filtering for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort expression. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListMirroringEndpointGroups. +message ListMirroringEndpointGroupsResponse { + // The endpoint groups from the specified parent. + repeated MirroringEndpointGroup mirroring_endpoint_groups = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // See https://google.aip.dev/158 for more details. + string next_page_token = 2; +} + +// Request message for GetMirroringEndpointGroup. +message GetMirroringEndpointGroupRequest { + // Required. The name of the endpoint group to retrieve. + // Format: + // projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroup" + } + ]; +} + +// Request message for CreateMirroringEndpointGroup. +message CreateMirroringEndpointGroupRequest { + // Required. The parent resource where this endpoint group will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/MirroringEndpointGroup" + } + ]; + + // Required. The ID to use for the endpoint group, which will become the final + // component of the endpoint group's resource name. + string mirroring_endpoint_group_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The endpoint group to create. + MirroringEndpointGroup mirroring_endpoint_group = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for UpdateMirroringEndpointGroup. +message UpdateMirroringEndpointGroupRequest { + // Optional. The list of fields to update. + // Fields are specified relative to the endpoint group + // (e.g. `description`; *not* `mirroring_endpoint_group.description`). + // See https://google.aip.dev/161 for more details. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The endpoint group to update. + MirroringEndpointGroup mirroring_endpoint_group = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for DeleteMirroringEndpointGroup. +message DeleteMirroringEndpointGroupRequest { + // Required. The endpoint group to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroup" + } + ]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// An endpoint group association represents a link between a network and an +// endpoint group in the organization. +// +// Creating an association creates the networking infrastructure linking the +// network to the endpoint group, but does not enable mirroring by itself. +// To enable mirroring, the user must also create a network firewall policy +// containing mirroring rules and associate it with the network. +message MirroringEndpointGroupAssociation { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroupAssociation" + pattern: "projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}" + plural: "mirroringEndpointGroupAssociations" + singular: "mirroringEndpointGroupAssociation" + }; + + // Contains details about the state of an association in a specific cloud + // location. + message LocationDetails { + // The state of association. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The association is ready and in sync with the linked endpoint group. + ACTIVE = 1; + + // The association is out of sync with the linked endpoint group. + // In most cases, this is a result of a transient issue within the system + // (e.g. an inaccessible location) and the system is expected to recover + // automatically. + OUT_OF_SYNC = 2; + } + + // Output only. The cloud location, e.g. "us-central1-a" or "asia-south1". + string location = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the association in this location. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The state of the association. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The association is ready and in sync with the linked endpoint group. + ACTIVE = 1; + + // The association is being created. + CREATING = 3; + + // The association is being deleted. + DELETING = 4; + + // The association is disabled due to a breaking change in another resource. + CLOSED = 5; + + // The association is out of sync with the linked endpoint group. + // In most cases, this is a result of a transient issue within the system + // (e.g. an inaccessible location) and the system is expected to recover + // automatically. Check the `locations_details` field for more details. + OUT_OF_SYNC = 6; + + // An attempt to delete the association has failed. This is a terminal state + // and the association is not expected to be usable as some of its resources + // have been deleted. + // The only permitted operation is to retry deleting the association. + DELETE_FAILED = 7; + } + + // Immutable. Identifier. The resource name of this endpoint group + // association, for example: + // `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`. + // See https://google.aip.dev/122 for more details. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp when the resource was created. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was most recently updated. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels are key/value pairs that help to organize and filter + // resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The endpoint group that this association is connected to, for + // example: + // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. + // See https://google.aip.dev/124. + string mirroring_endpoint_group = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroup" + } + ]; + + // Immutable. The VPC network that is associated. for example: + // `projects/123456789/global/networks/my-network`. + // See https://google.aip.dev/124. + string network = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. The list of locations where the association is present. This + // information is retrieved from the linked endpoint group, and not configured + // as part of the association itself. + repeated LocationDetails locations_details = 7 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state of the endpoint group association. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the resource does not match the user's + // intended state, and the system is working to reconcile them. This part of + // the normal operation (e.g. adding a new location to the target deployment + // group). See https://google.aip.dev/128. + bool reconciling = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of locations where the association is configured. + // This information is retrieved from the linked endpoint group. + repeated MirroringLocation locations = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for ListMirroringEndpointGroupAssociations. +message ListMirroringEndpointGroupAssociationsRequest { + // Required. The parent, which owns this collection of associations. + // Example: `projects/123456789/locations/global`. + // See https://google.aip.dev/132 for more details. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/MirroringEndpointGroupAssociation" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. See + // https://google.aip.dev/158 for more details. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent + // page. When paginating, all other parameters provided to + // `ListMirroringEndpointGroups` must match the call that provided the page + // token. See https://google.aip.dev/158 for more details. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression. + // See https://google.aip.dev/160#filtering for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort expression. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListMirroringEndpointGroupAssociations. +message ListMirroringEndpointGroupAssociationsResponse { + // The associations from the specified parent. + repeated MirroringEndpointGroupAssociation + mirroring_endpoint_group_associations = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // See https://google.aip.dev/158 for more details. + string next_page_token = 2; +} + +// Request message for GetMirroringEndpointGroupAssociation. +message GetMirroringEndpointGroupAssociationRequest { + // Required. The name of the association to retrieve. + // Format: + // projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroupAssociation" + } + ]; +} + +// Request message for CreateMirroringEndpointGroupAssociation. +message CreateMirroringEndpointGroupAssociationRequest { + // Required. The parent resource where this association will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/MirroringEndpointGroupAssociation" + } + ]; + + // Optional. The ID to use for the new association, which will become the + // final component of the endpoint group's resource name. If not provided, the + // server will generate a unique ID. + string mirroring_endpoint_group_association_id = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The association to create. + MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for UpdateMirroringEndpointGroupAssociation. +message UpdateMirroringEndpointGroupAssociationRequest { + // Optional. The list of fields to update. + // Fields are specified relative to the association + // (e.g. `description`; *not* + // `mirroring_endpoint_group_association.description`). See + // https://google.aip.dev/161 for more details. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The association to update. + MirroringEndpointGroupAssociation mirroring_endpoint_group_association = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for DeleteMirroringEndpointGroupAssociation. +message DeleteMirroringEndpointGroupAssociationRequest { + // Required. The association to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroupAssociation" + } + ]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A deployment group aggregates many zonal mirroring backends (deployments) +// into a single global mirroring service. Consumers can connect this service +// using an endpoint group. +message MirroringDeploymentGroup { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/MirroringDeploymentGroup" + pattern: "projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}" + plural: "mirroringDeploymentGroups" + singular: "mirroringDeploymentGroup" + }; + + // An endpoint group connected to this deployment group. + message ConnectedEndpointGroup { + // Output only. The connected endpoint group's resource name, for example: + // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. + // See https://google.aip.dev/124. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroup" + } + ]; + } + + // A deployment belonging to this deployment group. + message Deployment { + // Output only. The name of the Mirroring Deployment, in the format: + // `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}`. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringDeployment" + } + ]; + + // Output only. Most recent known state of the deployment. + MirroringDeployment.State state = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The current state of the deployment group. + enum State { + // State not set (this is not a valid state). + STATE_UNSPECIFIED = 0; + + // The deployment group is ready. + ACTIVE = 1; + + // The deployment group is being created. + CREATING = 2; + + // The deployment group is being deleted. + DELETING = 3; + + // The deployment group is being wiped out (project deleted). + CLOSED = 4; + } + + // Immutable. Identifier. The resource name of this deployment group, for + // example: + // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. + // See https://google.aip.dev/122 for more details. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp when the resource was created. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was most recently updated. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels are key/value pairs that help to organize and filter + // resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The network that will be used for all child + // deployments, for example: `projects/{project}/global/networks/{network}`. + // See https://google.aip.dev/124. + string network = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. The list of endpoint groups that are connected to this + // resource. + repeated ConnectedEndpointGroup connected_endpoint_groups = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of Mirroring Deployments that belong to this group. + repeated Deployment nested_deployments = 10 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the deployment group. + // See https://google.aip.dev/216. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the resource does not match the user's + // intended state, and the system is working to reconcile them. This is part + // of the normal operation (e.g. adding a new deployment to the group) See + // https://google.aip.dev/128. + bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided description of the deployment group. + // Used as additional context for the deployment group. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The list of locations where the deployment group is present. + repeated MirroringLocation locations = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for ListMirroringDeploymentGroups. +message ListMirroringDeploymentGroupsRequest { + // Required. The parent, which owns this collection of deployment groups. + // Example: `projects/123456789/locations/global`. + // See https://google.aip.dev/132 for more details. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/MirroringDeploymentGroup" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. See + // https://google.aip.dev/158 for more details. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListMirroringDeploymentGroups` call. Provide this to retrieve the + // subsequent page. When paginating, all other parameters provided to + // `ListMirroringDeploymentGroups` must match the call that provided the page + // token. See https://google.aip.dev/158 for more details. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression. + // See https://google.aip.dev/160#filtering for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort expression. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListMirroringDeploymentGroups. +message ListMirroringDeploymentGroupsResponse { + // The deployment groups from the specified parent. + repeated MirroringDeploymentGroup mirroring_deployment_groups = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // See https://google.aip.dev/158 for more details. + string next_page_token = 2; +} + +// Request message for GetMirroringDeploymentGroup. +message GetMirroringDeploymentGroupRequest { + // Required. The name of the deployment group to retrieve. + // Format: + // projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringDeploymentGroup" + } + ]; +} + +// Request message for CreateMirroringDeploymentGroup. +message CreateMirroringDeploymentGroupRequest { + // Required. The parent resource where this deployment group will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/MirroringDeploymentGroup" + } + ]; + + // Required. The ID to use for the new deployment group, which will become the + // final component of the deployment group's resource name. + string mirroring_deployment_group_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The deployment group to create. + MirroringDeploymentGroup mirroring_deployment_group = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for UpdateMirroringDeploymentGroup. +message UpdateMirroringDeploymentGroupRequest { + // Optional. The list of fields to update. + // Fields are specified relative to the deployment group + // (e.g. `description`; *not* + // `mirroring_deployment_group.description`). See + // https://google.aip.dev/161 for more details. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The deployment group to update. + MirroringDeploymentGroup mirroring_deployment_group = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for DeleteMirroringDeploymentGroup. +message DeleteMirroringDeploymentGroupRequest { + // Required. The deployment group to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringDeploymentGroup" + } + ]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A deployment represents a zonal mirroring backend ready to accept +// GENEVE-encapsulated replica traffic, e.g. a zonal instance group fronted by +// an internal passthrough load balancer. Deployments are always part of a +// global deployment group which represents a global mirroring service. +message MirroringDeployment { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/MirroringDeployment" + pattern: "projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}" + plural: "mirroringDeployments" + singular: "mirroringDeployment" + }; + + // The current state of the deployment. + enum State { + // State not set (this is not a valid state). + STATE_UNSPECIFIED = 0; + + // The deployment is ready and in sync with the parent group. + ACTIVE = 1; + + // The deployment is being created. + CREATING = 2; + + // The deployment is being deleted. + DELETING = 3; + + // The deployment is out of sync with the parent group. + // In most cases, this is a result of a transient issue within the system + // (e.g. a delayed data-path config) and the system is expected to recover + // automatically. See the parent deployment group's state for more details. + OUT_OF_SYNC = 4; + + // An attempt to delete the deployment has failed. This is a terminal state + // and the deployment is not expected to recover. The only permitted + // operation is to retry deleting the deployment. + DELETE_FAILED = 5; + } + + // Immutable. Identifier. The resource name of this deployment, for example: + // `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`. + // See https://google.aip.dev/122 for more details. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp when the resource was created. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was most recently updated. + // See https://google.aip.dev/148#timestamps. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels are key/value pairs that help to organize and filter + // resources. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The regional forwarding rule that fronts the mirroring + // collectors, for example: + // `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See + // https://google.aip.dev/124. + string forwarding_rule = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ForwardingRule" + } + ]; + + // Required. Immutable. The deployment group that this deployment is a part + // of, for example: + // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. + // See https://google.aip.dev/124. + string mirroring_deployment_group = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringDeploymentGroup" + } + ]; + + // Output only. The current state of the deployment. + // See https://google.aip.dev/216. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the resource does not match the user's + // intended state, and the system is working to reconcile them. This part of + // the normal operation (e.g. linking a new association to the parent group). + // See https://google.aip.dev/128. + bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-provided description of the deployment. + // Used as additional context for the deployment. + string description = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for ListMirroringDeployments. +message ListMirroringDeploymentsRequest { + // Required. The parent, which owns this collection of deployments. + // Example: `projects/123456789/locations/us-central1-a`. + // See https://google.aip.dev/132 for more details. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/MirroringDeployment" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. See + // https://google.aip.dev/158 for more details. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListMirroringDeployments` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListMirroringDeployments` must match the call + // that provided the page token. See https://google.aip.dev/158 for more + // details. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression. + // See https://google.aip.dev/160#filtering for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sort expression. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListMirroringDeployments. +message ListMirroringDeploymentsResponse { + // The deployments from the specified parent. + repeated MirroringDeployment mirroring_deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // See https://google.aip.dev/158 for more details. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for GetMirroringDeployment. +message GetMirroringDeploymentRequest { + // Required. The name of the deployment to retrieve. + // Format: + // projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringDeployment" + } + ]; +} + +// Request message for CreateMirroringDeployment. +message CreateMirroringDeploymentRequest { + // Required. The parent resource where this deployment will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/MirroringDeployment" + } + ]; + + // Required. The ID to use for the new deployment, which will become the final + // component of the deployment's resource name. + string mirroring_deployment_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The deployment to create. + MirroringDeployment mirroring_deployment = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for UpdateMirroringDeployment. +message UpdateMirroringDeploymentRequest { + // Optional. The list of fields to update. + // Fields are specified relative to the deployment + // (e.g. `description`; *not* `mirroring_deployment.description`). + // See https://google.aip.dev/161 for more details. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The deployment to update. + MirroringDeployment mirroring_deployment = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for DeleteMirroringDeployment. +message DeleteMirroringDeploymentRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringDeployment" + } + ]; + + // Optional. A unique identifier for this request. Must be a UUID4. + // This request is only idempotent if a `request_id` is provided. + // See https://google.aip.dev/155 for more details. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Details about mirroring in a specific cloud location. +message MirroringLocation { + // The current state of a resource in the location. + enum State { + // State not set (this is not a valid state). + STATE_UNSPECIFIED = 0; + + // The resource is ready and in sync in the location. + ACTIVE = 1; + + // The resource is out of sync in the location. + // In most cases, this is a result of a transient issue within the system + // (e.g. an inaccessible location) and the system is expected to recover + // automatically. + OUT_OF_SYNC = 2; + } + + // Output only. The cloud location, e.g. "us-central1-a" or "asia-south1". + string location = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the association in this location. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto index 95419b571b91..b8f3ed267854 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/network_security.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,9 +19,17 @@ package google.cloud.networksecurity.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/cloud/networksecurity/v1/authorization_policy.proto"; +import "google/cloud/networksecurity/v1/authz_policy.proto"; +import "google/cloud/networksecurity/v1/backend_authentication_config.proto"; import "google/cloud/networksecurity/v1/client_tls_policy.proto"; +import "google/cloud/networksecurity/v1/common.proto"; +import "google/cloud/networksecurity/v1/gateway_security_policy.proto"; +import "google/cloud/networksecurity/v1/gateway_security_policy_rule.proto"; import "google/cloud/networksecurity/v1/server_tls_policy.proto"; +import "google/cloud/networksecurity/v1/tls_inspection_policy.proto"; +import "google/cloud/networksecurity/v1/url_list.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; @@ -35,10 +43,12 @@ option ruby_package = "Google::Cloud::NetworkSecurity::V1"; // information. service NetworkSecurity { option (google.api.default_host) = "networksecurity.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists AuthorizationPolicies in a given project and location. - rpc ListAuthorizationPolicies(ListAuthorizationPoliciesRequest) returns (ListAuthorizationPoliciesResponse) { + rpc ListAuthorizationPolicies(ListAuthorizationPoliciesRequest) + returns (ListAuthorizationPoliciesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/authorizationPolicies" }; @@ -46,7 +56,8 @@ service NetworkSecurity { } // Gets details of a single AuthorizationPolicy. - rpc GetAuthorizationPolicy(GetAuthorizationPolicyRequest) returns (AuthorizationPolicy) { + rpc GetAuthorizationPolicy(GetAuthorizationPolicyRequest) + returns (AuthorizationPolicy) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/authorizationPolicies/*}" }; @@ -54,12 +65,14 @@ service NetworkSecurity { } // Creates a new AuthorizationPolicy in a given project and location. - rpc CreateAuthorizationPolicy(CreateAuthorizationPolicyRequest) returns (google.longrunning.Operation) { + rpc CreateAuthorizationPolicy(CreateAuthorizationPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/authorizationPolicies" body: "authorization_policy" }; - option (google.api.method_signature) = "parent,authorization_policy,authorization_policy_id"; + option (google.api.method_signature) = + "parent,authorization_policy,authorization_policy_id"; option (google.longrunning.operation_info) = { response_type: "AuthorizationPolicy" metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" @@ -67,7 +80,8 @@ service NetworkSecurity { } // Updates the parameters of a single AuthorizationPolicy. - rpc UpdateAuthorizationPolicy(UpdateAuthorizationPolicyRequest) returns (google.longrunning.Operation) { + rpc UpdateAuthorizationPolicy(UpdateAuthorizationPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{authorization_policy.name=projects/*/locations/*/authorizationPolicies/*}" body: "authorization_policy" @@ -80,7 +94,8 @@ service NetworkSecurity { } // Deletes a single AuthorizationPolicy. - rpc DeleteAuthorizationPolicy(DeleteAuthorizationPolicyRequest) returns (google.longrunning.Operation) { + rpc DeleteAuthorizationPolicy(DeleteAuthorizationPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/authorizationPolicies/*}" }; @@ -91,8 +106,76 @@ service NetworkSecurity { }; } + // Lists BackendAuthenticationConfigs in a given project and location. + rpc ListBackendAuthenticationConfigs(ListBackendAuthenticationConfigsRequest) + returns (ListBackendAuthenticationConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/backendAuthenticationConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single BackendAuthenticationConfig to + // BackendAuthenticationConfig. + rpc GetBackendAuthenticationConfig(GetBackendAuthenticationConfigRequest) + returns (BackendAuthenticationConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/backendAuthenticationConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new BackendAuthenticationConfig in a given project and location. + rpc CreateBackendAuthenticationConfig( + CreateBackendAuthenticationConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/backendAuthenticationConfigs" + body: "backend_authentication_config" + }; + option (google.api.method_signature) = + "parent,backend_authentication_config,backend_authentication_config_id"; + option (google.longrunning.operation_info) = { + response_type: "BackendAuthenticationConfig" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single BackendAuthenticationConfig to + // BackendAuthenticationConfig. + rpc UpdateBackendAuthenticationConfig( + UpdateBackendAuthenticationConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{backend_authentication_config.name=projects/*/locations/*/backendAuthenticationConfigs/*}" + body: "backend_authentication_config" + }; + option (google.api.method_signature) = + "backend_authentication_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "BackendAuthenticationConfig" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single BackendAuthenticationConfig to + // BackendAuthenticationConfig. + rpc DeleteBackendAuthenticationConfig( + DeleteBackendAuthenticationConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/backendAuthenticationConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + // Lists ServerTlsPolicies in a given project and location. - rpc ListServerTlsPolicies(ListServerTlsPoliciesRequest) returns (ListServerTlsPoliciesResponse) { + rpc ListServerTlsPolicies(ListServerTlsPoliciesRequest) + returns (ListServerTlsPoliciesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/serverTlsPolicies" }; @@ -108,12 +191,14 @@ service NetworkSecurity { } // Creates a new ServerTlsPolicy in a given project and location. - rpc CreateServerTlsPolicy(CreateServerTlsPolicyRequest) returns (google.longrunning.Operation) { + rpc CreateServerTlsPolicy(CreateServerTlsPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/serverTlsPolicies" body: "server_tls_policy" }; - option (google.api.method_signature) = "parent,server_tls_policy,server_tls_policy_id"; + option (google.api.method_signature) = + "parent,server_tls_policy,server_tls_policy_id"; option (google.longrunning.operation_info) = { response_type: "ServerTlsPolicy" metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" @@ -121,7 +206,8 @@ service NetworkSecurity { } // Updates the parameters of a single ServerTlsPolicy. - rpc UpdateServerTlsPolicy(UpdateServerTlsPolicyRequest) returns (google.longrunning.Operation) { + rpc UpdateServerTlsPolicy(UpdateServerTlsPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{server_tls_policy.name=projects/*/locations/*/serverTlsPolicies/*}" body: "server_tls_policy" @@ -134,7 +220,8 @@ service NetworkSecurity { } // Deletes a single ServerTlsPolicy. - rpc DeleteServerTlsPolicy(DeleteServerTlsPolicyRequest) returns (google.longrunning.Operation) { + rpc DeleteServerTlsPolicy(DeleteServerTlsPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/serverTlsPolicies/*}" }; @@ -146,7 +233,8 @@ service NetworkSecurity { } // Lists ClientTlsPolicies in a given project and location. - rpc ListClientTlsPolicies(ListClientTlsPoliciesRequest) returns (ListClientTlsPoliciesResponse) { + rpc ListClientTlsPolicies(ListClientTlsPoliciesRequest) + returns (ListClientTlsPoliciesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/clientTlsPolicies" }; @@ -162,12 +250,14 @@ service NetworkSecurity { } // Creates a new ClientTlsPolicy in a given project and location. - rpc CreateClientTlsPolicy(CreateClientTlsPolicyRequest) returns (google.longrunning.Operation) { + rpc CreateClientTlsPolicy(CreateClientTlsPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/clientTlsPolicies" body: "client_tls_policy" }; - option (google.api.method_signature) = "parent,client_tls_policy,client_tls_policy_id"; + option (google.api.method_signature) = + "parent,client_tls_policy,client_tls_policy_id"; option (google.longrunning.operation_info) = { response_type: "ClientTlsPolicy" metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" @@ -175,7 +265,8 @@ service NetworkSecurity { } // Updates the parameters of a single ClientTlsPolicy. - rpc UpdateClientTlsPolicy(UpdateClientTlsPolicyRequest) returns (google.longrunning.Operation) { + rpc UpdateClientTlsPolicy(UpdateClientTlsPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{client_tls_policy.name=projects/*/locations/*/clientTlsPolicies/*}" body: "client_tls_policy" @@ -188,7 +279,8 @@ service NetworkSecurity { } // Deletes a single ClientTlsPolicy. - rpc DeleteClientTlsPolicy(DeleteClientTlsPolicyRequest) returns (google.longrunning.Operation) { + rpc DeleteClientTlsPolicy(DeleteClientTlsPolicyRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/clientTlsPolicies/*}" }; @@ -198,4 +290,302 @@ service NetworkSecurity { metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" }; } + + // Lists GatewaySecurityPolicies in a given project and location. + rpc ListGatewaySecurityPolicies(ListGatewaySecurityPoliciesRequest) + returns (ListGatewaySecurityPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/gatewaySecurityPolicies" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single GatewaySecurityPolicy. + rpc GetGatewaySecurityPolicy(GetGatewaySecurityPolicyRequest) + returns (GatewaySecurityPolicy) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/gatewaySecurityPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new GatewaySecurityPolicy in a given project and location. + rpc CreateGatewaySecurityPolicy(CreateGatewaySecurityPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/gatewaySecurityPolicies" + body: "gateway_security_policy" + }; + option (google.api.method_signature) = + "parent,gateway_security_policy,gateway_security_policy_id"; + option (google.longrunning.operation_info) = { + response_type: "GatewaySecurityPolicy" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single GatewaySecurityPolicy. + rpc UpdateGatewaySecurityPolicy(UpdateGatewaySecurityPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{gateway_security_policy.name=projects/*/locations/*/gatewaySecurityPolicies/*}" + body: "gateway_security_policy" + }; + option (google.api.method_signature) = + "gateway_security_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "GatewaySecurityPolicy" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single GatewaySecurityPolicy. + rpc DeleteGatewaySecurityPolicy(DeleteGatewaySecurityPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/gatewaySecurityPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists GatewaySecurityPolicyRules in a given project and location. + rpc ListGatewaySecurityPolicyRules(ListGatewaySecurityPolicyRulesRequest) + returns (ListGatewaySecurityPolicyRulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/gatewaySecurityPolicies/*}/rules" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single GatewaySecurityPolicyRule. + rpc GetGatewaySecurityPolicyRule(GetGatewaySecurityPolicyRuleRequest) + returns (GatewaySecurityPolicyRule) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/gatewaySecurityPolicies/*/rules/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new GatewaySecurityPolicy in a given project and location. + rpc CreateGatewaySecurityPolicyRule(CreateGatewaySecurityPolicyRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/gatewaySecurityPolicies/*}/rules" + body: "gateway_security_policy_rule" + }; + option (google.api.method_signature) = + "parent,gateway_security_policy_rule,gateway_security_policy_rule_id"; + option (google.longrunning.operation_info) = { + response_type: "GatewaySecurityPolicyRule" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single GatewaySecurityPolicyRule. + rpc UpdateGatewaySecurityPolicyRule(UpdateGatewaySecurityPolicyRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{gateway_security_policy_rule.name=projects/*/locations/*/gatewaySecurityPolicies/*/rules/*}" + body: "gateway_security_policy_rule" + }; + option (google.api.method_signature) = + "gateway_security_policy_rule,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "GatewaySecurityPolicyRule" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single GatewaySecurityPolicyRule. + rpc DeleteGatewaySecurityPolicyRule(DeleteGatewaySecurityPolicyRuleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/gatewaySecurityPolicies/*/rules/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists UrlLists in a given project and location. + rpc ListUrlLists(ListUrlListsRequest) returns (ListUrlListsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/urlLists" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single UrlList. + rpc GetUrlList(GetUrlListRequest) returns (UrlList) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/urlLists/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new UrlList in a given project and location. + rpc CreateUrlList(CreateUrlListRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/urlLists" + body: "url_list" + }; + option (google.api.method_signature) = "parent,url_list,url_list_id"; + option (google.longrunning.operation_info) = { + response_type: "UrlList" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single UrlList. + rpc UpdateUrlList(UpdateUrlListRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{url_list.name=projects/*/locations/*/urlLists/*}" + body: "url_list" + }; + option (google.api.method_signature) = "url_list,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "UrlList" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single UrlList. + rpc DeleteUrlList(DeleteUrlListRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/urlLists/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists TlsInspectionPolicies in a given project and location. + rpc ListTlsInspectionPolicies(ListTlsInspectionPoliciesRequest) + returns (ListTlsInspectionPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/tlsInspectionPolicies" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single TlsInspectionPolicy. + rpc GetTlsInspectionPolicy(GetTlsInspectionPolicyRequest) + returns (TlsInspectionPolicy) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/tlsInspectionPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new TlsInspectionPolicy in a given project and location. + rpc CreateTlsInspectionPolicy(CreateTlsInspectionPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/tlsInspectionPolicies" + body: "tls_inspection_policy" + }; + option (google.api.method_signature) = + "parent,tls_inspection_policy,tls_inspection_policy_id"; + option (google.longrunning.operation_info) = { + response_type: "TlsInspectionPolicy" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single TlsInspectionPolicy. + rpc UpdateTlsInspectionPolicy(UpdateTlsInspectionPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{tls_inspection_policy.name=projects/*/locations/*/tlsInspectionPolicies/*}" + body: "tls_inspection_policy" + }; + option (google.api.method_signature) = "tls_inspection_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "TlsInspectionPolicy" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single TlsInspectionPolicy. + rpc DeleteTlsInspectionPolicy(DeleteTlsInspectionPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/tlsInspectionPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists AuthzPolicies in a given project and location. + rpc ListAuthzPolicies(ListAuthzPoliciesRequest) + returns (ListAuthzPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/authzPolicies" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AuthzPolicy. + rpc GetAuthzPolicy(GetAuthzPolicyRequest) returns (AuthzPolicy) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/authzPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new AuthzPolicy in a given project and location. + rpc CreateAuthzPolicy(CreateAuthzPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/authzPolicies" + body: "authz_policy" + }; + option (google.api.method_signature) = + "parent,authz_policy,authz_policy_id"; + option (google.longrunning.operation_info) = { + response_type: "AuthzPolicy" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single AuthzPolicy. + rpc UpdateAuthzPolicy(UpdateAuthzPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{authz_policy.name=projects/*/locations/*/authzPolicies/*}" + body: "authz_policy" + }; + option (google.api.method_signature) = "authz_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AuthzPolicy" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single AuthzPolicy. + rpc DeleteAuthzPolicy(DeleteAuthzPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/authzPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group.proto new file mode 100644 index 000000000000..0bb45bfb8c41 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group.proto @@ -0,0 +1,188 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/networksecurity/v1/security_profile_group_intercept.proto"; +import "google/cloud/networksecurity/v1/security_profile_group_mirroring.proto"; +import "google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto"; +import "google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityProfileGroupProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// SecurityProfileGroup is a resource that defines the behavior for various +// ProfileTypes. +message SecurityProfileGroup { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/SecurityProfileGroup" + pattern: "organizations/{organization}/locations/{location}/securityProfileGroups/{security_profile_group}" + pattern: "projects/{project}/locations/{location}/securityProfileGroups/{security_profile_group}" + }; + + // Immutable. Identifier. Name of the SecurityProfileGroup resource. It + // matches pattern + // `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Optional. An optional description of the profile group. Max length 2048 + // characters. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Resource creation timestamp. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last resource update timestamp. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This checksum is computed by the server based on the value of + // other fields, and may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifier used by the data-path. Unique within {container, + // location}. + uint64 data_path_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs. + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Reference to a SecurityProfile with the ThreatPrevention + // configuration. + string threat_prevention_profile = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SecurityProfile" + } + ]; + + // Optional. Reference to a SecurityProfile with the CustomMirroring + // configuration. + string custom_mirroring_profile = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SecurityProfile" + } + ]; + + // Optional. Reference to a SecurityProfile with the CustomIntercept + // configuration. + string custom_intercept_profile = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SecurityProfile" + } + ]; + + // Optional. Reference to a SecurityProfile with the UrlFiltering + // configuration. + string url_filtering_profile = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SecurityProfile" + } + ]; +} + +// SecurityProfile is a resource that defines the behavior for one of many +// ProfileTypes. +message SecurityProfile { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/SecurityProfile" + pattern: "organizations/{organization}/locations/{location}/securityProfiles/{security_profile}" + pattern: "projects/{project}/locations/{location}/securityProfiles/{security_profile}" + }; + + // The possible types that the SecurityProfile resource can configure. + enum ProfileType { + // Profile type not specified. + PROFILE_TYPE_UNSPECIFIED = 0; + + // Profile type for threat prevention. + THREAT_PREVENTION = 1; + + // Profile type for packet mirroring v2 + CUSTOM_MIRRORING = 2; + + // Profile type for TPPI. + CUSTOM_INTERCEPT = 3; + + // Profile type for URL filtering. + URL_FILTERING = 5; + } + + // The behavior for the ProfileType that the SecurityProfile resource is meant + // to configure. This field must correspond to the ProfileType of the + // SecurityProfile. + oneof profile { + // The threat prevention configuration for the SecurityProfile. + ThreatPreventionProfile threat_prevention_profile = 7; + + // The custom Packet Mirroring v2 configuration for the SecurityProfile. + CustomMirroringProfile custom_mirroring_profile = 9; + + // The custom TPPI configuration for the SecurityProfile. + CustomInterceptProfile custom_intercept_profile = 10; + + // The URL filtering configuration for the SecurityProfile. + UrlFilteringProfile url_filtering_profile = 12; + } + + // Immutable. Identifier. Name of the SecurityProfile resource. It matches + // pattern + // `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`. + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Optional. An optional description of the profile. Max length 512 + // characters. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Resource creation timestamp. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last resource update timestamp. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This checksum is computed by the server based on the value of + // other fields, and may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs. + map labels = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The single ProfileType that the SecurityProfile resource + // configures. + ProfileType type = 6 [(google.api.field_behavior) = IMMUTABLE]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_intercept.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_intercept.proto new file mode 100644 index 000000000000..8088353a8029 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_intercept.proto @@ -0,0 +1,42 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityProfileGroupInterceptProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// CustomInterceptProfile defines in-band integration behavior (intercept). +// It is used by firewall rules with an APPLY_SECURITY_PROFILE_GROUP action. +message CustomInterceptProfile { + // Required. The target InterceptEndpointGroup. + // When a firewall rule with this security profile attached matches a packet, + // the packet will be intercepted to the location-local target in this group. + string intercept_endpoint_group = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/InterceptEndpointGroup" + } + ]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_mirroring.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_mirroring.proto new file mode 100644 index 000000000000..b4d0c4ae985a --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_mirroring.proto @@ -0,0 +1,43 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityProfileGroupMirroringProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// CustomMirroringProfile defines out-of-band integration behavior (mirroring). +// It is used by mirroring rules with a MIRROR action. +message CustomMirroringProfile { + // Required. Immutable. The target MirroringEndpointGroup. + // When a mirroring rule with this security profile attached matches a packet, + // a replica will be mirrored to the location-local target in this group. + string mirroring_endpoint_group = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/MirroringEndpointGroup" + } + ]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_service.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_service.proto new file mode 100644 index 000000000000..3ed94a755183 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_service.proto @@ -0,0 +1,354 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/networksecurity/v1/common.proto"; +import "google/cloud/networksecurity/v1/security_profile_group.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityProfileGroupServiceProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// Organization SecurityProfileGroup is created under organization. +service OrganizationSecurityProfileGroupService { + option (google.api.default_host) = "networksecurity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists SecurityProfileGroups in a given organization and location. + rpc ListSecurityProfileGroups(ListSecurityProfileGroupsRequest) + returns (ListSecurityProfileGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*}/securityProfileGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single SecurityProfileGroup. + rpc GetSecurityProfileGroup(GetSecurityProfileGroupRequest) + returns (SecurityProfileGroup) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/securityProfileGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new SecurityProfileGroup in a given organization and location. + rpc CreateSecurityProfileGroup(CreateSecurityProfileGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/locations/*}/securityProfileGroups" + body: "security_profile_group" + }; + option (google.api.method_signature) = + "parent,security_profile_group,security_profile_group_id"; + option (google.longrunning.operation_info) = { + response_type: "SecurityProfileGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single SecurityProfileGroup. + rpc UpdateSecurityProfileGroup(UpdateSecurityProfileGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{security_profile_group.name=organizations/*/locations/*/securityProfileGroups/*}" + body: "security_profile_group" + }; + option (google.api.method_signature) = "security_profile_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "SecurityProfileGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single SecurityProfileGroup. + rpc DeleteSecurityProfileGroup(DeleteSecurityProfileGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=organizations/*/locations/*/securityProfileGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists SecurityProfiles in a given organization and location. + rpc ListSecurityProfiles(ListSecurityProfilesRequest) + returns (ListSecurityProfilesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*}/securityProfiles" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single SecurityProfile. + rpc GetSecurityProfile(GetSecurityProfileRequest) returns (SecurityProfile) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/securityProfiles/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new SecurityProfile in a given organization and location. + rpc CreateSecurityProfile(CreateSecurityProfileRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/locations/*}/securityProfiles" + body: "security_profile" + }; + option (google.api.method_signature) = + "parent,security_profile,security_profile_id"; + option (google.longrunning.operation_info) = { + response_type: "SecurityProfile" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single SecurityProfile. + rpc UpdateSecurityProfile(UpdateSecurityProfileRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{security_profile.name=organizations/*/locations/*/securityProfiles/*}" + body: "security_profile" + }; + option (google.api.method_signature) = "security_profile,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "SecurityProfile" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single SecurityProfile. + rpc DeleteSecurityProfile(DeleteSecurityProfileRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=organizations/*/locations/*/securityProfiles/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } +} + +// Request used with the ListSecurityProfileGroups method. +message ListSecurityProfileGroupsRequest { + // Required. The project or organization and location from which the + // SecurityProfileGroups should be listed, specified in the format + // `projects|organizations/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/SecurityProfileGroup" + } + ]; + + // Optional. Maximum number of SecurityProfileGroups to return per call. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value returned by the last + // `ListSecurityProfileGroupsResponse` Indicates that this is a + // continuation of a prior `ListSecurityProfileGroups` call, and + // that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response returned by the ListSecurityProfileGroups method. +message ListSecurityProfileGroupsResponse { + // List of SecurityProfileGroups resources. + repeated SecurityProfileGroup security_profile_groups = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; +} + +// Request used by the GetSecurityProfileGroup method. +message GetSecurityProfileGroupRequest { + // Required. A name of the SecurityProfileGroup to get. Must be in the format + // `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SecurityProfileGroup" + } + ]; +} + +// Request used by the CreateSecurityProfileGroup method. +message CreateSecurityProfileGroupRequest { + // Required. The parent resource of the SecurityProfileGroup. Must be in the + // format `projects|organizations/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/SecurityProfileGroup" + } + ]; + + // Required. Short name of the SecurityProfileGroup resource to be created. + // This value should be 1-63 characters long, containing only + // letters, numbers, hyphens, and underscores, and should not start + // with a number. E.g. "security_profile_group1". + string security_profile_group_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. SecurityProfileGroup resource to be created. + SecurityProfileGroup security_profile_group = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the UpdateSecurityProfileGroup method. +message UpdateSecurityProfileGroupRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // SecurityProfileGroup resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Updated SecurityProfileGroup resource. + SecurityProfileGroup security_profile_group = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the DeleteSecurityProfileGroup method. +message DeleteSecurityProfileGroupRequest { + // Required. A name of the SecurityProfileGroup to delete. Must be in the + // format + // `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SecurityProfileGroup" + } + ]; + + // Optional. If client provided etag is out of date, delete will return + // FAILED_PRECONDITION error. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used with the ListSecurityProfiles method. +message ListSecurityProfilesRequest { + // Required. The project or organization and location from which the + // SecurityProfiles should be listed, specified in the format + // `projects|organizations/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/SecurityProfile" + } + ]; + + // Optional. Maximum number of SecurityProfiles to return per call. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value returned by the last + // `ListSecurityProfilesResponse` Indicates that this is a continuation of a + // prior `ListSecurityProfiles` call, and that the system should return the + // next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response returned by the ListSecurityProfiles method. +message ListSecurityProfilesResponse { + // List of SecurityProfile resources. + repeated SecurityProfile security_profiles = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; +} + +// Request used by the GetSecurityProfile method. +message GetSecurityProfileRequest { + // Required. A name of the SecurityProfile to get. Must be in the format + // `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SecurityProfile" + } + ]; +} + +// Request used by the CreateSecurityProfile method. +message CreateSecurityProfileRequest { + // Required. The parent resource of the SecurityProfile. Must be in the format + // `projects|organizations/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/SecurityProfile" + } + ]; + + // Required. Short name of the SecurityProfile resource to be created. This + // value should be 1-63 characters long, containing only letters, numbers, + // hyphens, and underscores, and should not start with a number. E.g. + // "security_profile1". + string security_profile_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. SecurityProfile resource to be created. + SecurityProfile security_profile = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the UpdateSecurityProfile method. +message UpdateSecurityProfileRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // SecurityProfile resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Updated SecurityProfile resource. + SecurityProfile security_profile = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the DeleteSecurityProfile method. +message DeleteSecurityProfileRequest { + // Required. A name of the SecurityProfile to delete. Must be in the format + // `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/SecurityProfile" + } + ]; + + // Optional. If client provided etag is out of date, delete will return + // FAILED_PRECONDITION error. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto new file mode 100644 index 000000000000..a378de843a41 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_threatprevention.proto @@ -0,0 +1,185 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityProfileGroupThreatPreventionProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// Severity level. +enum Severity { + // Severity level not specified. + SEVERITY_UNSPECIFIED = 0; + + // Suspicious events that do not pose an immediate threat, but that are + // reported to call attention to deeper problems that could possibly exist. + INFORMATIONAL = 1; + + // Warning-level threats that have very little impact on an organization's + // infrastructure. They usually require local or physical system access and + // may often result in victim privacy issues and information leakage. + LOW = 2; + + // Minor threats in which impact is minimized, that do not compromise the + // target or exploits that require an attacker to reside on the same local + // network as the victim, affect only non-standard configurations or obscure + // applications, or provide very limited access. + MEDIUM = 3; + + // Threats that have the ability to become critical but have mitigating + // factors; for example, they may be difficult to exploit, do not result in + // elevated privileges, or do not have a large victim pool. + HIGH = 4; + + // Serious threats, such as those that affect default installations of widely + // deployed software, result in root compromise of servers, and the exploit + // code is widely available to attackers. The attacker usually does not need + // any special authentication credentials or knowledge about the individual + // victims and the target does not need to be manipulated into performing any + // special functions. + CRITICAL = 5; +} + +// Type of threat. +enum ThreatType { + // Type of threat not specified. + THREAT_TYPE_UNSPECIFIED = 0; + + // Type of threat is not derivable from threat ID. An override will be + // created for all types. Firewall will ignore overridden signature ID's + // that don't exist in the specific type. + UNKNOWN = 1; + + // Threats related to system flaws that an attacker might otherwise attempt + // to exploit. + VULNERABILITY = 2; + + // Threats related to viruses and malware found in executables and file + // types. + ANTIVIRUS = 3; + + // Threats related to command-and-control (C2) activity, where spyware on an + // infected client is collecting data without the user's consent and/or + // communicating with a remote attacker. + SPYWARE = 4; + + // Threats related to DNS. + DNS = 5; +} + +// Threat action override. +enum ThreatAction { + // Threat action not specified. + THREAT_ACTION_UNSPECIFIED = 0; + + // The default action (as specified by the vendor) is taken. + DEFAULT_ACTION = 4; + + // The packet matching this rule will be allowed to transmit. + ALLOW = 1; + + // The packet matching this rule will be allowed to transmit, but a threat_log + // entry will be sent to the consumer project. + ALERT = 2; + + // The packet matching this rule will be dropped, and a threat_log entry will + // be sent to the consumer project. + DENY = 3; +} + +// Antivirus protocol. +enum Protocol { + // Protocol not specified. + PROTOCOL_UNSPECIFIED = 0; + + // SMTP protocol + SMTP = 1; + + // SMB protocol + SMB = 2; + + // POP3 protocol + POP3 = 3; + + // IMAP protocol + IMAP = 4; + + // HTTP2 protocol + HTTP2 = 5; + + // HTTP protocol + HTTP = 6; + + // FTP protocol + FTP = 7; +} + +// ThreatPreventionProfile defines an action for specific threat signatures or +// severity levels. +message ThreatPreventionProfile { + // Optional. Configuration for overriding threats actions by severity match. + repeated SeverityOverride severity_overrides = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for overriding threats actions by threat_id match. + // If a threat is matched both by configuration provided in severity_overrides + // and threat_overrides, the threat_overrides action is applied. + repeated ThreatOverride threat_overrides = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for overriding antivirus actions per protocol. + repeated AntivirusOverride antivirus_overrides = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Defines what action to take for a specific severity match. +message SeverityOverride { + // Required. Severity level to match. + Severity severity = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Threat action override. + ThreatAction action = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Defines what action to take for a specific threat_id match. +message ThreatOverride { + // Required. Vendor-specific ID of a threat to override. + string threat_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Type of the threat (read only). + ThreatType type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Threat action override. For some threat types, only a subset of + // actions applies. + ThreatAction action = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Defines what action to take for antivirus threats per protocol. +message AntivirusOverride { + // Required. Protocol to match. + Protocol protocol = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Threat action override. For some threat types, only a subset of + // actions applies. + ThreatAction action = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto new file mode 100644 index 000000000000..a1ac0d841ced --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/security_profile_group_urlfiltering.proto @@ -0,0 +1,62 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityProfileGroupUrlFilteringProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// UrlFilteringProfile defines filters based on URL. +message UrlFilteringProfile { + // Optional. The list of filtering configs in which each config defines an + // action to take for some URL match. + repeated UrlFilter url_filters = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// A URL filter defines an action to take for some URL match. +message UrlFilter { + // Action to be taken when a URL matches a filter. + enum UrlFilteringAction { + // Filtering action not specified. + URL_FILTERING_ACTION_UNSPECIFIED = 0; + + // The connection matching this filter will be allowed to transmit. + ALLOW = 1; + + // The connection matching this filter will be dropped. + DENY = 2; + } + + // Required. The action taken when this filter is applied. + UrlFilteringAction filtering_action = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of strings that a URL must match with for this filter to + // be applied. + repeated string urls = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The priority of this filter within the URL Filtering Profile. + // Lower integers indicate higher priorities. The priority of a filter must be + // unique within a URL Filtering Profile. + optional int32 priority = 3 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto index 8913a259ccad..92c57617fe77 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/server_tls_policy.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -32,7 +32,13 @@ option ruby_package = "Google::Cloud::NetworkSecurity::V1"; // ServerTlsPolicy is a resource that specifies how a server should authenticate // incoming requests. This resource itself does not affect configuration unless -// it is attached to a target https proxy or endpoint config selector resource. +// it is attached to a target HTTPS proxy or endpoint config selector resource. +// +// ServerTlsPolicy in the form accepted by Application Load Balancers can +// be attached only to TargetHttpsProxy with an `EXTERNAL`, `EXTERNAL_MANAGED` +// or `INTERNAL_MANAGED` load balancing scheme. Traffic Director compatible +// ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with +// Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme. message ServerTlsPolicy { option (google.api.resource) = { type: "networksecurity.googleapis.com/ServerTlsPolicy" @@ -41,10 +47,55 @@ message ServerTlsPolicy { // Specification of the MTLSPolicy. message MTLSPolicy { + // Mutual TLS certificate validation mode. + enum ClientValidationMode { + // Not allowed. + CLIENT_VALIDATION_MODE_UNSPECIFIED = 0; + + // Allow connection even if certificate chain validation + // of the client certificate failed or no client certificate was + // presented. The proof of possession of the private key is always checked + // if client certificate was presented. This mode requires the backend to + // implement processing of data extracted from a client certificate to + // authenticate the peer, or to reject connections if the client + // certificate fingerprint is missing. + ALLOW_INVALID_OR_MISSING_CLIENT_CERT = 1; + + // Require a client certificate and allow connection to the backend only + // if validation of the client certificate passed. + // + // If set, requires a reference to non-empty TrustConfig specified in + // `client_validation_trust_config`. + REJECT_INVALID = 2; + } + + // When the client presents an invalid certificate or no certificate to the + // load balancer, the `client_validation_mode` specifies how the client + // connection is handled. + // + // Required if the policy is to be used with the Application Load + // Balancers. For Traffic Director it must be empty. + ClientValidationMode client_validation_mode = 2; + + // Required if the policy is to be used with Traffic Director. For + // Application Load Balancers it must be empty. // // Defines the mechanism to obtain the Certificate Authority certificate to // validate the client certificate. repeated ValidationCA client_validation_ca = 1; + + // Reference to the TrustConfig from certificatemanager.googleapis.com + // namespace. + // + // If specified, the chain validation will be performed against certificates + // configured in the given TrustConfig. + // + // Allowed only if the policy is to be used with Application Load + // Balancers. + string client_validation_trust_config = 4 + [(google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/TrustConfig" + }]; } // Required. Name of the ServerTlsPolicy resource. It matches the pattern @@ -55,14 +106,18 @@ message ServerTlsPolicy { string description = 2; // Output only. The timestamp when the resource was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The timestamp when the resource was updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of label tags associated with the resource. map labels = 5; + // This field applies only for Traffic Director policies. It is must be set to + // false for Application Load Balancer policies. // // Determines if server allows plaintext connections. If set to true, server // allows plain text connections. By default, it is set to false. This setting @@ -75,12 +130,16 @@ message ServerTlsPolicy { // while having mixed TLS and non-TLS traffic reaching port :80. bool allow_open = 6; + // Optional if policy is to be used with Traffic Director. For Application + // Load Balancers must be empty. // // Defines a mechanism to provision server identity (public and private keys). // Cannot be combined with `allow_open` as a permissive mode that allows both // plain text and TLS is not supported. CertificateProvider server_certificate = 7; + // This field is required if the policy is used with Application Load + // Balancers. This field can be empty for Traffic Director. // // Defines a mechanism to provision peer validation certificates for peer to // peer authentication (Mutual TLS - mTLS). If not specified, client @@ -109,6 +168,13 @@ message ListServerTlsPoliciesRequest { // `ListServerTlsPolicies` call, and that the system // should return the next page of data. string page_token = 3; + + // Optional. Setting this field to `true` will opt the request into returning + // the resources that are reachable, and into including the names of those + // that were unreachable in the [ListServerTlsPoliciesResponse.unreachable] + // field. This can only be `true` when reading across collections e.g. when + // `parent` is set to `"projects/example/locations/-"`. + bool return_partial_success = 4 [(google.api.field_behavior) = OPTIONAL]; } // Response returned by the ListServerTlsPolicies method. @@ -120,6 +186,11 @@ message ListServerTlsPoliciesResponse { // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. string next_page_token = 2; + + // Unreachable resources. Populated when the request opts into + // `return_partial_success` and reading across collections e.g. when + // attempting to list all resources across all supported locations. + repeated string unreachable = 3; } // Request used by the GetServerTlsPolicy method. @@ -145,13 +216,15 @@ message CreateServerTlsPolicyRequest { } ]; - // Required. Short name of the ServerTlsPolicy resource to be created. This value should - // be 1-63 characters long, containing only letters, numbers, hyphens, and - // underscores, and should not start with a number. E.g. "server_mtls_policy". + // Required. Short name of the ServerTlsPolicy resource to be created. This + // value should be 1-63 characters long, containing only letters, numbers, + // hyphens, and underscores, and should not start with a number. E.g. + // "server_mtls_policy". string server_tls_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. ServerTlsPolicy resource to be created. - ServerTlsPolicy server_tls_policy = 3 [(google.api.field_behavior) = REQUIRED]; + ServerTlsPolicy server_tls_policy = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request used by UpdateServerTlsPolicy method. @@ -162,10 +235,12 @@ message UpdateServerTlsPolicyRequest { // the full request. A field will be overwritten if it is in the // mask. If the user does not provide a mask then all fields will be // overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. Updated ServerTlsPolicy resource. - ServerTlsPolicy server_tls_policy = 2 [(google.api.field_behavior) = REQUIRED]; + ServerTlsPolicy server_tls_policy = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request used by the DeleteServerTlsPolicy method. diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto index 78aef5bc0b7f..5bd72eb23afe 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28,8 +28,8 @@ option ruby_package = "Google::Cloud::NetworkSecurity::V1"; // Specification of the GRPC Endpoint. message GrpcEndpoint { - // Required. The target URI of the gRPC endpoint. Only UDS path is supported, and - // should start with "unix:". + // Required. The target URI of the gRPC endpoint. Only UDS path is supported, + // and should start with "unix:". string target_uri = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -54,9 +54,9 @@ message ValidationCA { // and configured by specifying this message. Workloads use the values from this // message to locate and load the CertificateProvider instance configuration. message CertificateProviderInstance { - // Required. Plugin instance name, used to locate and load CertificateProvider instance - // configuration. Set to "google_cloud_private_spiffe" to use Certificate - // Authority Service certificate provider instance. + // Required. Plugin instance name, used to locate and load CertificateProvider + // instance configuration. Set to "google_cloud_private_spiffe" to use + // Certificate Authority Service certificate provider instance. string plugin_instance = 1 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls_inspection_policy.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls_inspection_policy.proto new file mode 100644 index 000000000000..938e9b6404e1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/tls_inspection_policy.proto @@ -0,0 +1,268 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "TlsInspectionPolicyProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; +option (google.api.resource_definition) = { + type: "privateca.googleapis.com/CaPool" + pattern: "projects/{project}/locations/{location}/caPools/{ca_pool}" +}; + +// The TlsInspectionPolicy resource contains references to CA pools in +// Certificate Authority Service and associated metadata. +message TlsInspectionPolicy { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/TlsInspectionPolicy" + pattern: "projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}" + }; + + // The minimum version of TLS protocol that can be used by clients or servers + // to establish a connection with the TLS inspection proxy. + enum TlsVersion { + // Indicates no TLS version was specified. + TLS_VERSION_UNSPECIFIED = 0; + + // TLS 1.0 + TLS_1_0 = 1; + + // TLS 1.1 + TLS_1_1 = 2; + + // TLS 1.2 + TLS_1_2 = 3; + + // TLS 1.3 + TLS_1_3 = 4; + } + + // Profile specifies the set of TLS cipher suites (and possibly + // other features in the future) that can be used by the firewall when + // negotiating TLS connections with clients and servers. The meaning of these + // fields is identical to the load balancers' SSLPolicy resource. + enum Profile { + // Indicates no profile was specified. + PROFILE_UNSPECIFIED = 0; + + // Compatible profile. Allows the broadest set of clients, even those + // which support only out-of-date SSL features to negotiate with the TLS + // inspection proxy. + PROFILE_COMPATIBLE = 1; + + // Modern profile. Supports a wide set of SSL features, allowing modern + // clients to negotiate SSL with the TLS inspection proxy. + PROFILE_MODERN = 2; + + // Restricted profile. Supports a reduced set of SSL features, intended to + // meet stricter compliance requirements. + PROFILE_RESTRICTED = 3; + + // Custom profile. Allow only the set of allowed SSL features specified in + // the custom_features field of SslPolicy. + PROFILE_CUSTOM = 4; + } + + // Required. Name of the resource. Name is of the form + // projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy} + // tls_inspection_policy should match the + // pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Free-text description of the resource. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. A CA pool resource used to issue interception certificates. + // The CA pool string has a relative resource path following the form + // "projects/{project}/locations/{location}/caPools/{ca_pool}". + string ca_pool = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + } + ]; + + // Optional. A TrustConfig resource used when making a connection to the TLS + // server. This is a relative resource path following the form + // "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This + // is necessary to intercept TLS connections to servers with certificates + // signed by a private CA or self-signed certificates. + // Note that Secure Web Proxy does not yet honor this field. + string trust_config = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/TrustConfig" + } + ]; + + // Optional. If FALSE (the default), use our default set of public CAs in + // addition to any CAs specified in trust_config. These public CAs are + // currently based on the Mozilla Root Program and are subject to change over + // time. If TRUE, do not accept our default set of public CAs. Only CAs + // specified in trust_config will be accepted. This defaults to FALSE (use + // public CAs in addition to trust_config) for backwards compatibility, but + // trusting public root CAs is *not recommended* unless the traffic in + // question is outbound to public web servers. When possible, prefer setting + // this to "false" and explicitly specifying trusted CAs and certificates in a + // TrustConfig. Note that Secure Web Proxy does not yet honor this field. + optional bool exclude_public_ca_set = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum TLS version that the firewall should use when negotiating + // connections with both clients and servers. If this is not set, then the + // default value is to allow the broadest set of clients and servers (TLS 1.0 + // or higher). Setting this to more restrictive values may improve security, + // but may also prevent the firewall from connecting to some clients or + // servers. + // Note that Secure Web Proxy does not yet honor this field. + TlsVersion min_tls_version = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The selected Profile. If this is not set, then the default value + // is to allow the broadest set of clients and servers ("PROFILE_COMPATIBLE"). + // Setting this to more restrictive values may improve security, but may also + // prevent the TLS inspection proxy from connecting to some clients or + // servers. Note that Secure Web Proxy does not yet honor this field. + Profile tls_feature_profile = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of custom TLS cipher suites selected. + // This field is valid only if the selected tls_feature_profile is CUSTOM. + // The [compute.SslPoliciesService.ListAvailableFeatures][] method returns the + // set of features that can be specified in this list. + // Note that Secure Web Proxy does not yet honor this field. + repeated string custom_tls_features = 10 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used by the CreateTlsInspectionPolicy method. +message CreateTlsInspectionPolicyRequest { + // Required. The parent resource of the TlsInspectionPolicy. Must be in the + // format `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/TlsInspectionPolicy" + } + ]; + + // Required. Short name of the TlsInspectionPolicy resource to be created. + // This value should be 1-63 characters long, containing only + // letters, numbers, hyphens, and underscores, and should not start + // with a number. E.g. "tls_inspection_policy1". + string tls_inspection_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. TlsInspectionPolicy resource to be created. + TlsInspectionPolicy tls_inspection_policy = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request used with the ListTlsInspectionPolicies method. +message ListTlsInspectionPoliciesRequest { + // Required. The project and location from which the TlsInspectionPolicies + // should be listed, specified in the format + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of TlsInspectionPolicies to return per call. + int32 page_size = 2; + + // The value returned by the last + // 'ListTlsInspectionPoliciesResponse' Indicates that this is a + // continuation of a prior 'ListTlsInspectionPolicies' call, and + // that the system should return the next page of data. + string page_token = 3; +} + +// Response returned by the ListTlsInspectionPolicies method. +message ListTlsInspectionPoliciesResponse { + // List of TlsInspectionPolicies resources. + repeated TlsInspectionPolicy tls_inspection_policies = 1; + + // If there might be more results than those appearing in this response, then + // 'next_page_token' is included. To get the next set of results, call this + // method again using the value of 'next_page_token' as 'page_token'. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request used by the GetTlsInspectionPolicy method. +message GetTlsInspectionPolicyRequest { + // Required. A name of the TlsInspectionPolicy to get. Must be in the format + // `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/TlsInspectionPolicy" + } + ]; +} + +// Request used by the DeleteTlsInspectionPolicy method. +message DeleteTlsInspectionPolicyRequest { + // Required. A name of the TlsInspectionPolicy to delete. Must be in the + // format + // `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/TlsInspectionPolicy" + } + ]; + + // If set to true, any rules for this TlsInspectionPolicy will also be + // deleted. (Otherwise, the request will only work if the TlsInspectionPolicy + // has no rules.) + bool force = 2; +} + +// Request used by the UpdateTlsInspectionPolicy method. +message UpdateTlsInspectionPolicyRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // TlsInspectionPolicy resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Updated TlsInspectionPolicy resource. + TlsInspectionPolicy tls_inspection_policy = 2 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/url_list.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/url_list.proto new file mode 100644 index 000000000000..9ed9e8ea8500 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/url_list.proto @@ -0,0 +1,155 @@ +// Copyright 2026 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.networksecurity.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "UrlListProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; + +// UrlList proto helps users to set reusable, independently manageable lists +// of hosts, host patterns, URLs, URL patterns. +message UrlList { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/UrlList" + pattern: "projects/{project}/locations/{location}/urlLists/{url_list}" + }; + + // Required. Name of the resource provided by the user. + // Name is of the form + // projects/{project}/locations/{location}/urlLists/{url_list} + // url_list should match the + // pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Time when the security policy was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the security policy was updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Free-text description of the resource. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. FQDNs and URLs. + repeated string values = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the ListUrlList method. +message ListUrlListsRequest { + // Required. The project and location from which the UrlLists should + // be listed, specified in the format + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of UrlLists to return per call. + int32 page_size = 2; + + // The value returned by the last `ListUrlListsResponse` + // Indicates that this is a continuation of a prior + // `ListUrlLists` call, and that the system + // should return the next page of data. + string page_token = 3; +} + +// Response returned by the ListUrlLists method. +message ListUrlListsResponse { + // List of UrlList resources. + repeated UrlList url_lists = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request used by the GetUrlList method. +message GetUrlListRequest { + // Required. A name of the UrlList to get. Must be in the format + // `projects/*/locations/{location}/urlLists/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/UrlList" + } + ]; +} + +// Request used by the CreateUrlList method. +message CreateUrlListRequest { + // Required. The parent resource of the UrlList. Must be in + // the format `projects/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/UrlList" + } + ]; + + // Required. Short name of the UrlList resource to be created. This value + // should be 1-63 characters long, containing only letters, numbers, hyphens, + // and underscores, and should not start with a number. E.g. "url_list". + string url_list_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. UrlList resource to be created. + UrlList url_list = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by UpdateUrlList method. +message UpdateUrlListRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // UrlList resource by the update. The fields + // specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the + // mask. If the user does not provide a mask then all fields will be + // overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Updated UrlList resource. + UrlList url_list = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the DeleteUrlList method. +message DeleteUrlListRequest { + // Required. A name of the UrlList to delete. Must be in + // the format `projects/*/locations/{location}/urlLists/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/UrlList" + } + ]; +} diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/create/SyncCreateSetCredentialsProvider.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..d562450368b1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceSettings; +import com.google.cloud.networksecurity.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DnsThreatDetectorServiceSettings dnsThreatDetectorServiceSettings = + DnsThreatDetectorServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create(dnsThreatDetectorServiceSettings); + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_Create_SetCredentialsProvider_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/create/SyncCreateSetEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..9133c284027a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_Create_SetEndpoint_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceSettings; +import com.google.cloud.networksecurity.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DnsThreatDetectorServiceSettings dnsThreatDetectorServiceSettings = + DnsThreatDetectorServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create(dnsThreatDetectorServiceSettings); + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_Create_SetEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/AsyncCreateDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/AsyncCreateDnsThreatDetector.java new file mode 100644 index 000000000000..90e33d79310d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/AsyncCreateDnsThreatDetector.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class AsyncCreateDnsThreatDetector { + + public static void main(String[] args) throws Exception { + asyncCreateDnsThreatDetector(); + } + + public static void asyncCreateDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + CreateDnsThreatDetectorRequest request = + CreateDnsThreatDetectorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDnsThreatDetectorId("dnsThreatDetectorId-1579667324") + .setDnsThreatDetector(DnsThreatDetector.newBuilder().build()) + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.createDnsThreatDetectorCallable().futureCall(request); + // Do something. + DnsThreatDetector response = future.get(); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetector.java new file mode 100644 index 000000000000..94cd45182025 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetector.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_sync] +import com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateDnsThreatDetector { + + public static void main(String[] args) throws Exception { + syncCreateDnsThreatDetector(); + } + + public static void syncCreateDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + CreateDnsThreatDetectorRequest request = + CreateDnsThreatDetectorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDnsThreatDetectorId("dnsThreatDetectorId-1579667324") + .setDnsThreatDetector(DnsThreatDetector.newBuilder().build()) + .build(); + DnsThreatDetector response = dnsThreatDetectorServiceClient.createDnsThreatDetector(request); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetectorLocationnameDnsthreatdetectorString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetectorLocationnameDnsthreatdetectorString.java new file mode 100644 index 000000000000..ba1b3fd12b23 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetectorLocationnameDnsthreatdetectorString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_LocationnameDnsthreatdetectorString_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateDnsThreatDetectorLocationnameDnsthreatdetectorString { + + public static void main(String[] args) throws Exception { + syncCreateDnsThreatDetectorLocationnameDnsthreatdetectorString(); + } + + public static void syncCreateDnsThreatDetectorLocationnameDnsthreatdetectorString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + String dnsThreatDetectorId = "dnsThreatDetectorId-1579667324"; + DnsThreatDetector response = + dnsThreatDetectorServiceClient.createDnsThreatDetector( + parent, dnsThreatDetector, dnsThreatDetectorId); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_LocationnameDnsthreatdetectorString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetectorStringDnsthreatdetectorString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetectorStringDnsthreatdetectorString.java new file mode 100644 index 000000000000..c56ca54205f6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/creatednsthreatdetector/SyncCreateDnsThreatDetectorStringDnsthreatdetectorString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_StringDnsthreatdetectorString_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateDnsThreatDetectorStringDnsthreatdetectorString { + + public static void main(String[] args) throws Exception { + syncCreateDnsThreatDetectorStringDnsthreatdetectorString(); + } + + public static void syncCreateDnsThreatDetectorStringDnsthreatdetectorString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + String dnsThreatDetectorId = "dnsThreatDetectorId-1579667324"; + DnsThreatDetector response = + dnsThreatDetectorServiceClient.createDnsThreatDetector( + parent, dnsThreatDetector, dnsThreatDetectorId); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_StringDnsthreatdetectorString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/AsyncDeleteDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/AsyncDeleteDnsThreatDetector.java new file mode 100644 index 000000000000..e73e5407681f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/AsyncDeleteDnsThreatDetector.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteDnsThreatDetector { + + public static void main(String[] args) throws Exception { + asyncDeleteDnsThreatDetector(); + } + + public static void asyncDeleteDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + DeleteDnsThreatDetectorRequest request = + DeleteDnsThreatDetectorRequest.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.deleteDnsThreatDetectorCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetector.java new file mode 100644 index 000000000000..d2e106714bf6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetector.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_sync] +import com.google.cloud.networksecurity.v1.DeleteDnsThreatDetectorRequest; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDnsThreatDetector { + + public static void main(String[] args) throws Exception { + syncDeleteDnsThreatDetector(); + } + + public static void syncDeleteDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + DeleteDnsThreatDetectorRequest request = + DeleteDnsThreatDetectorRequest.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .build(); + dnsThreatDetectorServiceClient.deleteDnsThreatDetector(request); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetectorDnsthreatdetectorname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetectorDnsthreatdetectorname.java new file mode 100644 index 000000000000..52bb0248b3be --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetectorDnsthreatdetectorname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_Dnsthreatdetectorname_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetectorName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDnsThreatDetectorDnsthreatdetectorname { + + public static void main(String[] args) throws Exception { + syncDeleteDnsThreatDetectorDnsthreatdetectorname(); + } + + public static void syncDeleteDnsThreatDetectorDnsthreatdetectorname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + DnsThreatDetectorName name = + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]"); + dnsThreatDetectorServiceClient.deleteDnsThreatDetector(name); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_Dnsthreatdetectorname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetectorString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetectorString.java new file mode 100644 index 000000000000..f00c0b93a57b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/deletednsthreatdetector/SyncDeleteDnsThreatDetectorString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_String_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetectorName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDnsThreatDetectorString { + + public static void main(String[] args) throws Exception { + syncDeleteDnsThreatDetectorString(); + } + + public static void syncDeleteDnsThreatDetectorString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + String name = + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]").toString(); + dnsThreatDetectorServiceClient.deleteDnsThreatDetector(name); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/AsyncGetDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/AsyncGetDnsThreatDetector.java new file mode 100644 index 000000000000..5b59b8b49208 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/AsyncGetDnsThreatDetector.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest; + +public class AsyncGetDnsThreatDetector { + + public static void main(String[] args) throws Exception { + asyncGetDnsThreatDetector(); + } + + public static void asyncGetDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + GetDnsThreatDetectorRequest request = + GetDnsThreatDetectorRequest.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.getDnsThreatDetectorCallable().futureCall(request); + // Do something. + DnsThreatDetector response = future.get(); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetector.java new file mode 100644 index 000000000000..062f14780393 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetector.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.GetDnsThreatDetectorRequest; + +public class SyncGetDnsThreatDetector { + + public static void main(String[] args) throws Exception { + syncGetDnsThreatDetector(); + } + + public static void syncGetDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + GetDnsThreatDetectorRequest request = + GetDnsThreatDetectorRequest.newBuilder() + .setName( + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]") + .toString()) + .build(); + DnsThreatDetector response = dnsThreatDetectorServiceClient.getDnsThreatDetector(request); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetectorDnsthreatdetectorname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetectorDnsthreatdetectorname.java new file mode 100644 index 000000000000..993862b2469b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetectorDnsthreatdetectorname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_Dnsthreatdetectorname_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; + +public class SyncGetDnsThreatDetectorDnsthreatdetectorname { + + public static void main(String[] args) throws Exception { + syncGetDnsThreatDetectorDnsthreatdetectorname(); + } + + public static void syncGetDnsThreatDetectorDnsthreatdetectorname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + DnsThreatDetectorName name = + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]"); + DnsThreatDetector response = dnsThreatDetectorServiceClient.getDnsThreatDetector(name); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_Dnsthreatdetectorname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetectorString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetectorString.java new file mode 100644 index 000000000000..6a8f5dfd5458 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getdnsthreatdetector/SyncGetDnsThreatDetectorString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_String_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; + +public class SyncGetDnsThreatDetectorString { + + public static void main(String[] args) throws Exception { + syncGetDnsThreatDetectorString(); + } + + public static void syncGetDnsThreatDetectorString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + String name = + DnsThreatDetectorName.of("[PROJECT]", "[LOCATION]", "[DNS_THREAT_DETECTOR]").toString(); + DnsThreatDetector response = dnsThreatDetectorServiceClient.getDnsThreatDetector(name); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..cb87ab30c195 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_GetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..09fe6347fdb4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_GetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = dnsThreatDetectorServiceClient.getIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_GetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getlocation/AsyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..55bc4ccf8944 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + dnsThreatDetectorServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_GetLocation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getlocation/SyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..f332e640be02 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = dnsThreatDetectorServiceClient.getLocation(request); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_GetLocation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/AsyncListDnsThreatDetectors.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/AsyncListDnsThreatDetectors.java new file mode 100644 index 000000000000..33373250994c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/AsyncListDnsThreatDetectors.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class AsyncListDnsThreatDetectors { + + public static void main(String[] args) throws Exception { + asyncListDnsThreatDetectors(); + } + + public static void asyncListDnsThreatDetectors() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + ListDnsThreatDetectorsRequest request = + ListDnsThreatDetectorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.listDnsThreatDetectorsPagedCallable().futureCall(request); + // Do something. + for (DnsThreatDetector element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/AsyncListDnsThreatDetectorsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/AsyncListDnsThreatDetectorsPaged.java new file mode 100644 index 000000000000..174fb179e03f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/AsyncListDnsThreatDetectorsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_Paged_async] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListDnsThreatDetectorsPaged { + + public static void main(String[] args) throws Exception { + asyncListDnsThreatDetectorsPaged(); + } + + public static void asyncListDnsThreatDetectorsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + ListDnsThreatDetectorsRequest request = + ListDnsThreatDetectorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDnsThreatDetectorsResponse response = + dnsThreatDetectorServiceClient.listDnsThreatDetectorsCallable().call(request); + for (DnsThreatDetector element : response.getDnsThreatDetectorsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectors.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectors.java new file mode 100644 index 000000000000..14418276e848 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectors.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListDnsThreatDetectors { + + public static void main(String[] args) throws Exception { + syncListDnsThreatDetectors(); + } + + public static void syncListDnsThreatDetectors() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + ListDnsThreatDetectorsRequest request = + ListDnsThreatDetectorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DnsThreatDetector element : + dnsThreatDetectorServiceClient.listDnsThreatDetectors(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectorsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectorsLocationname.java new file mode 100644 index 000000000000..9782a35a07c6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectorsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_Locationname_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListDnsThreatDetectorsLocationname { + + public static void main(String[] args) throws Exception { + syncListDnsThreatDetectorsLocationname(); + } + + public static void syncListDnsThreatDetectorsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DnsThreatDetector element : + dnsThreatDetectorServiceClient.listDnsThreatDetectors(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectorsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectorsString.java new file mode 100644 index 000000000000..aa067345984f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listdnsthreatdetectors/SyncListDnsThreatDetectorsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_String_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListDnsThreatDetectorsString { + + public static void main(String[] args) throws Exception { + syncListDnsThreatDetectorsString(); + } + + public static void syncListDnsThreatDetectorsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DnsThreatDetector element : + dnsThreatDetectorServiceClient.listDnsThreatDetectors(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/AsyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..65992d03b1d1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_ListLocations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/AsyncListLocationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..a13eb2abc7d0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + dnsThreatDetectorServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_ListLocations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/SyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..a070303ab01f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/listlocations/SyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : dnsThreatDetectorServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_ListLocations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..d73446ff30e9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_SetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..ba7457f9899b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_SetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = dnsThreatDetectorServiceClient.setIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_SetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..724be350b3e7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_TestIamPermissions_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..efd43246224f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_TestIamPermissions_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + dnsThreatDetectorServiceClient.testIamPermissions(request); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_TestIamPermissions_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/AsyncUpdateDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/AsyncUpdateDnsThreatDetector.java new file mode 100644 index 000000000000..606baea45c94 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/AsyncUpdateDnsThreatDetector.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDnsThreatDetector { + + public static void main(String[] args) throws Exception { + asyncUpdateDnsThreatDetector(); + } + + public static void asyncUpdateDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + UpdateDnsThreatDetectorRequest request = + UpdateDnsThreatDetectorRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDnsThreatDetector(DnsThreatDetector.newBuilder().build()) + .build(); + ApiFuture future = + dnsThreatDetectorServiceClient.updateDnsThreatDetectorCallable().futureCall(request); + // Do something. + DnsThreatDetector response = future.get(); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/SyncUpdateDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/SyncUpdateDnsThreatDetector.java new file mode 100644 index 000000000000..e69f7967c8ff --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/SyncUpdateDnsThreatDetector.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.cloud.networksecurity.v1.UpdateDnsThreatDetectorRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDnsThreatDetector { + + public static void main(String[] args) throws Exception { + syncUpdateDnsThreatDetector(); + } + + public static void syncUpdateDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + UpdateDnsThreatDetectorRequest request = + UpdateDnsThreatDetectorRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDnsThreatDetector(DnsThreatDetector.newBuilder().build()) + .build(); + DnsThreatDetector response = dnsThreatDetectorServiceClient.updateDnsThreatDetector(request); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/SyncUpdateDnsThreatDetectorDnsthreatdetectorFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/SyncUpdateDnsThreatDetectorDnsthreatdetectorFieldmask.java new file mode 100644 index 000000000000..de88b67a4b97 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservice/updatednsthreatdetector/SyncUpdateDnsThreatDetectorDnsthreatdetectorFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_DnsthreatdetectorFieldmask_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetector; +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDnsThreatDetectorDnsthreatdetectorFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDnsThreatDetectorDnsthreatdetectorFieldmask(); + } + + public static void syncUpdateDnsThreatDetectorDnsthreatdetectorFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DnsThreatDetectorServiceClient dnsThreatDetectorServiceClient = + DnsThreatDetectorServiceClient.create()) { + DnsThreatDetector dnsThreatDetector = DnsThreatDetector.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DnsThreatDetector response = + dnsThreatDetectorServiceClient.updateDnsThreatDetector(dnsThreatDetector, updateMask); + } + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_DnsthreatdetectorFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservicesettings/getdnsthreatdetector/SyncGetDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservicesettings/getdnsthreatdetector/SyncGetDnsThreatDetector.java new file mode 100644 index 000000000000..6c0dfc9c1ee3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/dnsthreatdetectorservicesettings/getdnsthreatdetector/SyncGetDnsThreatDetector.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorServiceSettings_GetDnsThreatDetector_sync] +import com.google.cloud.networksecurity.v1.DnsThreatDetectorServiceSettings; +import java.time.Duration; + +public class SyncGetDnsThreatDetector { + + public static void main(String[] args) throws Exception { + syncGetDnsThreatDetector(); + } + + public static void syncGetDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DnsThreatDetectorServiceSettings.Builder dnsThreatDetectorServiceSettingsBuilder = + DnsThreatDetectorServiceSettings.newBuilder(); + dnsThreatDetectorServiceSettingsBuilder + .getDnsThreatDetectorSettings() + .setRetrySettings( + dnsThreatDetectorServiceSettingsBuilder + .getDnsThreatDetectorSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DnsThreatDetectorServiceSettings dnsThreatDetectorServiceSettings = + dnsThreatDetectorServiceSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorServiceSettings_GetDnsThreatDetector_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/create/SyncCreateSetCredentialsProvider.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..7057ca1dce75 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallActivationSettings; +import com.google.cloud.networksecurity.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FirewallActivationSettings firewallActivationSettings = + FirewallActivationSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + FirewallActivationClient firewallActivationClient = + FirewallActivationClient.create(firewallActivationSettings); + } +} +// [END networksecurity_v1_generated_FirewallActivation_Create_SetCredentialsProvider_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/create/SyncCreateSetEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..0b69cca83297 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_Create_SetEndpoint_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallActivationSettings; +import com.google.cloud.networksecurity.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FirewallActivationSettings firewallActivationSettings = + FirewallActivationSettings.newBuilder().setEndpoint(myEndpoint).build(); + FirewallActivationClient firewallActivationClient = + FirewallActivationClient.create(firewallActivationSettings); + } +} +// [END networksecurity_v1_generated_FirewallActivation_Create_SetEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/AsyncCreateFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/AsyncCreateFirewallEndpoint.java new file mode 100644 index 000000000000..ee9e24b14c60 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/AsyncCreateFirewallEndpoint.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateFirewallEndpoint { + + public static void main(String[] args) throws Exception { + asyncCreateFirewallEndpoint(); + } + + public static void asyncCreateFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + CreateFirewallEndpointRequest request = + CreateFirewallEndpointRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setFirewallEndpointId("firewallEndpointId-993710416") + .setFirewallEndpoint(FirewallEndpoint.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + firewallActivationClient.createFirewallEndpointCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/AsyncCreateFirewallEndpointLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/AsyncCreateFirewallEndpointLRO.java new file mode 100644 index 000000000000..a684a6574e49 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/AsyncCreateFirewallEndpointLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class AsyncCreateFirewallEndpointLRO { + + public static void main(String[] args) throws Exception { + asyncCreateFirewallEndpointLRO(); + } + + public static void asyncCreateFirewallEndpointLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + CreateFirewallEndpointRequest request = + CreateFirewallEndpointRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setFirewallEndpointId("firewallEndpointId-993710416") + .setFirewallEndpoint(FirewallEndpoint.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + firewallActivationClient.createFirewallEndpointOperationCallable().futureCall(request); + // Do something. + FirewallEndpoint response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpoint.java new file mode 100644 index 000000000000..a95d12279f04 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpoint.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_sync] +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class SyncCreateFirewallEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpoint(); + } + + public static void syncCreateFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + CreateFirewallEndpointRequest request = + CreateFirewallEndpointRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setFirewallEndpointId("firewallEndpointId-993710416") + .setFirewallEndpoint(FirewallEndpoint.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + FirewallEndpoint response = + firewallActivationClient.createFirewallEndpointAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointLocationnameFirewallendpointString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointLocationnameFirewallendpointString.java new file mode 100644 index 000000000000..81c650f92a45 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointLocationnameFirewallendpointString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_LocationnameFirewallendpointString_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateFirewallEndpointLocationnameFirewallendpointString { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpointLocationnameFirewallendpointString(); + } + + public static void syncCreateFirewallEndpointLocationnameFirewallendpointString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + FirewallEndpoint response = + firewallActivationClient + .createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId) + .get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_LocationnameFirewallendpointString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointOrganizationlocationnameFirewallendpointString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointOrganizationlocationnameFirewallendpointString.java new file mode 100644 index 000000000000..68363970f9e0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointOrganizationlocationnameFirewallendpointString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_OrganizationlocationnameFirewallendpointString_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class SyncCreateFirewallEndpointOrganizationlocationnameFirewallendpointString { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpointOrganizationlocationnameFirewallendpointString(); + } + + public static void syncCreateFirewallEndpointOrganizationlocationnameFirewallendpointString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + FirewallEndpoint response = + firewallActivationClient + .createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId) + .get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_OrganizationlocationnameFirewallendpointString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointStringFirewallendpointString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointStringFirewallendpointString.java new file mode 100644 index 000000000000..e62213b0a014 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpoint/SyncCreateFirewallEndpointStringFirewallendpointString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_StringFirewallendpointString_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class SyncCreateFirewallEndpointStringFirewallendpointString { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpointStringFirewallendpointString(); + } + + public static void syncCreateFirewallEndpointStringFirewallendpointString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + String firewallEndpointId = "firewallEndpointId-993710416"; + FirewallEndpoint response = + firewallActivationClient + .createFirewallEndpointAsync(parent, firewallEndpoint, firewallEndpointId) + .get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_StringFirewallendpointString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/AsyncCreateFirewallEndpointAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/AsyncCreateFirewallEndpointAssociation.java new file mode 100644 index 000000000000..92f2c60aa40c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/AsyncCreateFirewallEndpointAssociation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateFirewallEndpointAssociation { + + public static void main(String[] args) throws Exception { + asyncCreateFirewallEndpointAssociation(); + } + + public static void asyncCreateFirewallEndpointAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + CreateFirewallEndpointAssociationRequest request = + CreateFirewallEndpointAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFirewallEndpointAssociationId("firewallEndpointAssociationId-891991865") + .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + firewallActivationClient.createFirewallEndpointAssociationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/AsyncCreateFirewallEndpointAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/AsyncCreateFirewallEndpointAssociationLRO.java new file mode 100644 index 000000000000..d29fafa4efb4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/AsyncCreateFirewallEndpointAssociationLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateFirewallEndpointAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateFirewallEndpointAssociationLRO(); + } + + public static void asyncCreateFirewallEndpointAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + CreateFirewallEndpointAssociationRequest request = + CreateFirewallEndpointAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFirewallEndpointAssociationId("firewallEndpointAssociationId-891991865") + .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + firewallActivationClient + .createFirewallEndpointAssociationOperationCallable() + .futureCall(request); + // Do something. + FirewallEndpointAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociation.java new file mode 100644 index 000000000000..f7c7433b8454 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_sync] +import com.google.cloud.networksecurity.v1.CreateFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateFirewallEndpointAssociation { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpointAssociation(); + } + + public static void syncCreateFirewallEndpointAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + CreateFirewallEndpointAssociationRequest request = + CreateFirewallEndpointAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFirewallEndpointAssociationId("firewallEndpointAssociationId-891991865") + .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + FirewallEndpointAssociation response = + firewallActivationClient.createFirewallEndpointAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociationLocationnameFirewallendpointassociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociationLocationnameFirewallendpointassociationString.java new file mode 100644 index 000000000000..01dc50b371c4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociationLocationnameFirewallendpointassociationString.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_LocationnameFirewallendpointassociationString_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateFirewallEndpointAssociationLocationnameFirewallendpointassociationString { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpointAssociationLocationnameFirewallendpointassociationString(); + } + + public static void + syncCreateFirewallEndpointAssociationLocationnameFirewallendpointassociationString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + String firewallEndpointAssociationId = "firewallEndpointAssociationId-891991865"; + FirewallEndpointAssociation response = + firewallActivationClient + .createFirewallEndpointAssociationAsync( + parent, firewallEndpointAssociation, firewallEndpointAssociationId) + .get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_LocationnameFirewallendpointassociationString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociationStringFirewallendpointassociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociationStringFirewallendpointassociationString.java new file mode 100644 index 000000000000..6069c8265cd3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/createfirewallendpointassociation/SyncCreateFirewallEndpointAssociationStringFirewallendpointassociationString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_StringFirewallendpointassociationString_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateFirewallEndpointAssociationStringFirewallendpointassociationString { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpointAssociationStringFirewallendpointassociationString(); + } + + public static void syncCreateFirewallEndpointAssociationStringFirewallendpointassociationString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + String firewallEndpointAssociationId = "firewallEndpointAssociationId-891991865"; + FirewallEndpointAssociation response = + firewallActivationClient + .createFirewallEndpointAssociationAsync( + parent, firewallEndpointAssociation, firewallEndpointAssociationId) + .get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_StringFirewallendpointassociationString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/AsyncDeleteFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/AsyncDeleteFirewallEndpoint.java new file mode 100644 index 000000000000..e528473962b8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/AsyncDeleteFirewallEndpoint.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; +import com.google.longrunning.Operation; + +public class AsyncDeleteFirewallEndpoint { + + public static void main(String[] args) throws Exception { + asyncDeleteFirewallEndpoint(); + } + + public static void asyncDeleteFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + DeleteFirewallEndpointRequest request = + DeleteFirewallEndpointRequest.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + firewallActivationClient.deleteFirewallEndpointCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/AsyncDeleteFirewallEndpointLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/AsyncDeleteFirewallEndpointLRO.java new file mode 100644 index 000000000000..0a47e8780531 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/AsyncDeleteFirewallEndpointLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteFirewallEndpointLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFirewallEndpointLRO(); + } + + public static void asyncDeleteFirewallEndpointLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + DeleteFirewallEndpointRequest request = + DeleteFirewallEndpointRequest.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + firewallActivationClient.deleteFirewallEndpointOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpoint.java new file mode 100644 index 000000000000..43fac93e52d5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpoint.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_sync] +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; +import com.google.protobuf.Empty; + +public class SyncDeleteFirewallEndpoint { + + public static void main(String[] args) throws Exception { + syncDeleteFirewallEndpoint(); + } + + public static void syncDeleteFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + DeleteFirewallEndpointRequest request = + DeleteFirewallEndpointRequest.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + firewallActivationClient.deleteFirewallEndpointAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpointFirewallendpointname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpointFirewallendpointname.java new file mode 100644 index 000000000000..8f10c1e3373a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpointFirewallendpointname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_Firewallendpointname_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; +import com.google.protobuf.Empty; + +public class SyncDeleteFirewallEndpointFirewallendpointname { + + public static void main(String[] args) throws Exception { + syncDeleteFirewallEndpointFirewallendpointname(); + } + + public static void syncDeleteFirewallEndpointFirewallendpointname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + FirewallEndpointName name = + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]"); + firewallActivationClient.deleteFirewallEndpointAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_Firewallendpointname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpointString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpointString.java new file mode 100644 index 000000000000..37702521fb3d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpoint/SyncDeleteFirewallEndpointString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_String_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; +import com.google.protobuf.Empty; + +public class SyncDeleteFirewallEndpointString { + + public static void main(String[] args) throws Exception { + syncDeleteFirewallEndpointString(); + } + + public static void syncDeleteFirewallEndpointString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + String name = + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString(); + firewallActivationClient.deleteFirewallEndpointAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/AsyncDeleteFirewallEndpointAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/AsyncDeleteFirewallEndpointAssociation.java new file mode 100644 index 000000000000..493a3f25b3ed --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/AsyncDeleteFirewallEndpointAssociation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; +import com.google.longrunning.Operation; + +public class AsyncDeleteFirewallEndpointAssociation { + + public static void main(String[] args) throws Exception { + asyncDeleteFirewallEndpointAssociation(); + } + + public static void asyncDeleteFirewallEndpointAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + DeleteFirewallEndpointAssociationRequest request = + DeleteFirewallEndpointAssociationRequest.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + firewallActivationClient.deleteFirewallEndpointAssociationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/AsyncDeleteFirewallEndpointAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/AsyncDeleteFirewallEndpointAssociationLRO.java new file mode 100644 index 000000000000..a86611ce27a8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/AsyncDeleteFirewallEndpointAssociationLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteFirewallEndpointAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFirewallEndpointAssociationLRO(); + } + + public static void asyncDeleteFirewallEndpointAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + DeleteFirewallEndpointAssociationRequest request = + DeleteFirewallEndpointAssociationRequest.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + firewallActivationClient + .deleteFirewallEndpointAssociationOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociation.java new file mode 100644 index 000000000000..2ae11d3ca9b2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_sync] +import com.google.cloud.networksecurity.v1.DeleteFirewallEndpointAssociationRequest; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteFirewallEndpointAssociation { + + public static void main(String[] args) throws Exception { + syncDeleteFirewallEndpointAssociation(); + } + + public static void syncDeleteFirewallEndpointAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + DeleteFirewallEndpointAssociationRequest request = + DeleteFirewallEndpointAssociationRequest.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + firewallActivationClient.deleteFirewallEndpointAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociationFirewallendpointassociationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociationFirewallendpointassociationname.java new file mode 100644 index 000000000000..47c6ef3bdcad --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociationFirewallendpointassociationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_Firewallendpointassociationname_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteFirewallEndpointAssociationFirewallendpointassociationname { + + public static void main(String[] args) throws Exception { + syncDeleteFirewallEndpointAssociationFirewallendpointassociationname(); + } + + public static void syncDeleteFirewallEndpointAssociationFirewallendpointassociationname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + FirewallEndpointAssociationName name = + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]"); + firewallActivationClient.deleteFirewallEndpointAssociationAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_Firewallendpointassociationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociationString.java new file mode 100644 index 000000000000..dfca487bf024 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/deletefirewallendpointassociation/SyncDeleteFirewallEndpointAssociationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_String_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteFirewallEndpointAssociationString { + + public static void main(String[] args) throws Exception { + syncDeleteFirewallEndpointAssociationString(); + } + + public static void syncDeleteFirewallEndpointAssociationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + String name = + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString(); + firewallActivationClient.deleteFirewallEndpointAssociationAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/AsyncGetFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/AsyncGetFirewallEndpoint.java new file mode 100644 index 000000000000..acede0652b9f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/AsyncGetFirewallEndpoint.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest; + +public class AsyncGetFirewallEndpoint { + + public static void main(String[] args) throws Exception { + asyncGetFirewallEndpoint(); + } + + public static void asyncGetFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + GetFirewallEndpointRequest request = + GetFirewallEndpointRequest.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .build(); + ApiFuture future = + firewallActivationClient.getFirewallEndpointCallable().futureCall(request); + // Do something. + FirewallEndpoint response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpoint.java new file mode 100644 index 000000000000..49c5286aa2f9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpoint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointRequest; + +public class SyncGetFirewallEndpoint { + + public static void main(String[] args) throws Exception { + syncGetFirewallEndpoint(); + } + + public static void syncGetFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + GetFirewallEndpointRequest request = + GetFirewallEndpointRequest.newBuilder() + .setName( + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString()) + .build(); + FirewallEndpoint response = firewallActivationClient.getFirewallEndpoint(request); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpointFirewallendpointname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpointFirewallendpointname.java new file mode 100644 index 000000000000..f5b875855936 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpointFirewallendpointname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_Firewallendpointname_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; + +public class SyncGetFirewallEndpointFirewallendpointname { + + public static void main(String[] args) throws Exception { + syncGetFirewallEndpointFirewallendpointname(); + } + + public static void syncGetFirewallEndpointFirewallendpointname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + FirewallEndpointName name = + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]"); + FirewallEndpoint response = firewallActivationClient.getFirewallEndpoint(name); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_Firewallendpointname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpointString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpointString.java new file mode 100644 index 000000000000..3ae607b34660 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpoint/SyncGetFirewallEndpointString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_String_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.FirewallEndpointName; + +public class SyncGetFirewallEndpointString { + + public static void main(String[] args) throws Exception { + syncGetFirewallEndpointString(); + } + + public static void syncGetFirewallEndpointString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + String name = + FirewallEndpointName.ofOrganizationLocationFirewallEndpointName( + "[ORGANIZATION]", "[LOCATION]", "[FIREWALL_ENDPOINT]") + .toString(); + FirewallEndpoint response = firewallActivationClient.getFirewallEndpoint(name); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/AsyncGetFirewallEndpointAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/AsyncGetFirewallEndpointAssociation.java new file mode 100644 index 000000000000..4c5d96c7ab0d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/AsyncGetFirewallEndpointAssociation.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest; + +public class AsyncGetFirewallEndpointAssociation { + + public static void main(String[] args) throws Exception { + asyncGetFirewallEndpointAssociation(); + } + + public static void asyncGetFirewallEndpointAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + GetFirewallEndpointAssociationRequest request = + GetFirewallEndpointAssociationRequest.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .build(); + ApiFuture future = + firewallActivationClient.getFirewallEndpointAssociationCallable().futureCall(request); + // Do something. + FirewallEndpointAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociation.java new file mode 100644 index 000000000000..d74408afab3b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; +import com.google.cloud.networksecurity.v1.GetFirewallEndpointAssociationRequest; + +public class SyncGetFirewallEndpointAssociation { + + public static void main(String[] args) throws Exception { + syncGetFirewallEndpointAssociation(); + } + + public static void syncGetFirewallEndpointAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + GetFirewallEndpointAssociationRequest request = + GetFirewallEndpointAssociationRequest.newBuilder() + .setName( + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString()) + .build(); + FirewallEndpointAssociation response = + firewallActivationClient.getFirewallEndpointAssociation(request); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociationFirewallendpointassociationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociationFirewallendpointassociationname.java new file mode 100644 index 000000000000..9b657a814003 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociationFirewallendpointassociationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_Firewallendpointassociationname_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; + +public class SyncGetFirewallEndpointAssociationFirewallendpointassociationname { + + public static void main(String[] args) throws Exception { + syncGetFirewallEndpointAssociationFirewallendpointassociationname(); + } + + public static void syncGetFirewallEndpointAssociationFirewallendpointassociationname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + FirewallEndpointAssociationName name = + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]"); + FirewallEndpointAssociation response = + firewallActivationClient.getFirewallEndpointAssociation(name); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_Firewallendpointassociationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociationString.java new file mode 100644 index 000000000000..5f344186013e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getfirewallendpointassociation/SyncGetFirewallEndpointAssociationString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_String_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociationName; + +public class SyncGetFirewallEndpointAssociationString { + + public static void main(String[] args) throws Exception { + syncGetFirewallEndpointAssociationString(); + } + + public static void syncGetFirewallEndpointAssociationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + String name = + FirewallEndpointAssociationName.of( + "[PROJECT]", "[LOCATION]", "[FIREWALL_ENDPOINT_ASSOCIATION]") + .toString(); + FirewallEndpointAssociation response = + firewallActivationClient.getFirewallEndpointAssociation(name); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..85a807f1aa62 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + firewallActivationClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..4607067b760f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = firewallActivationClient.getIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getlocation/AsyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..483fd376d275 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getlocation/AsyncGetLocation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + firewallActivationClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetLocation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getlocation/SyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..80ba8010f879 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = firewallActivationClient.getLocation(request); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_GetLocation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/AsyncListFirewallEndpointAssociations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/AsyncListFirewallEndpointAssociations.java new file mode 100644 index 000000000000..a717ec7c79c3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/AsyncListFirewallEndpointAssociations.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class AsyncListFirewallEndpointAssociations { + + public static void main(String[] args) throws Exception { + asyncListFirewallEndpointAssociations(); + } + + public static void asyncListFirewallEndpointAssociations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListFirewallEndpointAssociationsRequest request = + ListFirewallEndpointAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + firewallActivationClient + .listFirewallEndpointAssociationsPagedCallable() + .futureCall(request); + // Do something. + for (FirewallEndpointAssociation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/AsyncListFirewallEndpointAssociationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/AsyncListFirewallEndpointAssociationsPaged.java new file mode 100644 index 000000000000..9642218da987 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/AsyncListFirewallEndpointAssociationsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_Paged_async] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListFirewallEndpointAssociationsPaged { + + public static void main(String[] args) throws Exception { + asyncListFirewallEndpointAssociationsPaged(); + } + + public static void asyncListFirewallEndpointAssociationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListFirewallEndpointAssociationsRequest request = + ListFirewallEndpointAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListFirewallEndpointAssociationsResponse response = + firewallActivationClient.listFirewallEndpointAssociationsCallable().call(request); + for (FirewallEndpointAssociation element : response.getFirewallEndpointAssociationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociations.java new file mode 100644 index 000000000000..b6ac170200c8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListFirewallEndpointAssociations { + + public static void main(String[] args) throws Exception { + syncListFirewallEndpointAssociations(); + } + + public static void syncListFirewallEndpointAssociations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListFirewallEndpointAssociationsRequest request = + ListFirewallEndpointAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (FirewallEndpointAssociation element : + firewallActivationClient.listFirewallEndpointAssociations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociationsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociationsLocationname.java new file mode 100644 index 000000000000..6e32afc3d895 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociationsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_Locationname_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListFirewallEndpointAssociationsLocationname { + + public static void main(String[] args) throws Exception { + syncListFirewallEndpointAssociationsLocationname(); + } + + public static void syncListFirewallEndpointAssociationsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (FirewallEndpointAssociation element : + firewallActivationClient.listFirewallEndpointAssociations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociationsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociationsString.java new file mode 100644 index 000000000000..81b8872842af --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpointassociations/SyncListFirewallEndpointAssociationsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_String_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListFirewallEndpointAssociationsString { + + public static void main(String[] args) throws Exception { + syncListFirewallEndpointAssociationsString(); + } + + public static void syncListFirewallEndpointAssociationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (FirewallEndpointAssociation element : + firewallActivationClient.listFirewallEndpointAssociations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/AsyncListFirewallEndpoints.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/AsyncListFirewallEndpoints.java new file mode 100644 index 000000000000..99cadcafbbec --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/AsyncListFirewallEndpoints.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class AsyncListFirewallEndpoints { + + public static void main(String[] args) throws Exception { + asyncListFirewallEndpoints(); + } + + public static void asyncListFirewallEndpoints() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListFirewallEndpointsRequest request = + ListFirewallEndpointsRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + firewallActivationClient.listFirewallEndpointsPagedCallable().futureCall(request); + // Do something. + for (FirewallEndpoint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/AsyncListFirewallEndpointsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/AsyncListFirewallEndpointsPaged.java new file mode 100644 index 000000000000..3e0a8d3953ca --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/AsyncListFirewallEndpointsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_Paged_async] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsResponse; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.common.base.Strings; + +public class AsyncListFirewallEndpointsPaged { + + public static void main(String[] args) throws Exception { + asyncListFirewallEndpointsPaged(); + } + + public static void asyncListFirewallEndpointsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListFirewallEndpointsRequest request = + ListFirewallEndpointsRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListFirewallEndpointsResponse response = + firewallActivationClient.listFirewallEndpointsCallable().call(request); + for (FirewallEndpoint element : response.getFirewallEndpointsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpoints.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpoints.java new file mode 100644 index 000000000000..fce517aaa101 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpoints.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.ListFirewallEndpointsRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class SyncListFirewallEndpoints { + + public static void main(String[] args) throws Exception { + syncListFirewallEndpoints(); + } + + public static void syncListFirewallEndpoints() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListFirewallEndpointsRequest request = + ListFirewallEndpointsRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (FirewallEndpoint element : + firewallActivationClient.listFirewallEndpoints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsLocationname.java new file mode 100644 index 000000000000..28cf76c148f1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_Locationname_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListFirewallEndpointsLocationname { + + public static void main(String[] args) throws Exception { + syncListFirewallEndpointsLocationname(); + } + + public static void syncListFirewallEndpointsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (FirewallEndpoint element : + firewallActivationClient.listFirewallEndpoints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsOrganizationlocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsOrganizationlocationname.java new file mode 100644 index 000000000000..a2172515c5a5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsOrganizationlocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_Organizationlocationname_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class SyncListFirewallEndpointsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListFirewallEndpointsOrganizationlocationname(); + } + + public static void syncListFirewallEndpointsOrganizationlocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (FirewallEndpoint element : + firewallActivationClient.listFirewallEndpoints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_Organizationlocationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsString.java new file mode 100644 index 000000000000..632c0f92bd87 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listfirewallendpoints/SyncListFirewallEndpointsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_String_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class SyncListFirewallEndpointsString { + + public static void main(String[] args) throws Exception { + syncListFirewallEndpointsString(); + } + + public static void syncListFirewallEndpointsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (FirewallEndpoint element : + firewallActivationClient.listFirewallEndpoints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/AsyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..aef3977369b0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + firewallActivationClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListLocations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/AsyncListLocationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..0da0b0da6155 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + firewallActivationClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListLocations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/SyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..9b589aa77c80 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : firewallActivationClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_ListLocations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..f3f6b3293838 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + firewallActivationClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_SetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..0144319b2126 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_SetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = firewallActivationClient.setIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_SetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..de721158ff7f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + firewallActivationClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_TestIamPermissions_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..0c6aa79577f4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_TestIamPermissions_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = firewallActivationClient.testIamPermissions(request); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_TestIamPermissions_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/AsyncUpdateFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/AsyncUpdateFirewallEndpoint.java new file mode 100644 index 000000000000..70c4376e54e5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/AsyncUpdateFirewallEndpoint.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFirewallEndpoint { + + public static void main(String[] args) throws Exception { + asyncUpdateFirewallEndpoint(); + } + + public static void asyncUpdateFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + UpdateFirewallEndpointRequest request = + UpdateFirewallEndpointRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFirewallEndpoint(FirewallEndpoint.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + firewallActivationClient.updateFirewallEndpointCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/AsyncUpdateFirewallEndpointLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/AsyncUpdateFirewallEndpointLRO.java new file mode 100644 index 000000000000..39c9fa4c08d7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/AsyncUpdateFirewallEndpointLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFirewallEndpointLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateFirewallEndpointLRO(); + } + + public static void asyncUpdateFirewallEndpointLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + UpdateFirewallEndpointRequest request = + UpdateFirewallEndpointRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFirewallEndpoint(FirewallEndpoint.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + firewallActivationClient.updateFirewallEndpointOperationCallable().futureCall(request); + // Do something. + FirewallEndpoint response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/SyncUpdateFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/SyncUpdateFirewallEndpoint.java new file mode 100644 index 000000000000..631739360bbf --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/SyncUpdateFirewallEndpoint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFirewallEndpoint { + + public static void main(String[] args) throws Exception { + syncUpdateFirewallEndpoint(); + } + + public static void syncUpdateFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + UpdateFirewallEndpointRequest request = + UpdateFirewallEndpointRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFirewallEndpoint(FirewallEndpoint.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + FirewallEndpoint response = + firewallActivationClient.updateFirewallEndpointAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/SyncUpdateFirewallEndpointFirewallendpointFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/SyncUpdateFirewallEndpointFirewallendpointFieldmask.java new file mode 100644 index 000000000000..4c75f6e64e9a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpoint/SyncUpdateFirewallEndpointFirewallendpointFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_FirewallendpointFieldmask_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpoint; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFirewallEndpointFirewallendpointFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFirewallEndpointFirewallendpointFieldmask(); + } + + public static void syncUpdateFirewallEndpointFirewallendpointFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + FirewallEndpoint firewallEndpoint = FirewallEndpoint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + FirewallEndpoint response = + firewallActivationClient.updateFirewallEndpointAsync(firewallEndpoint, updateMask).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_FirewallendpointFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/AsyncUpdateFirewallEndpointAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/AsyncUpdateFirewallEndpointAssociation.java new file mode 100644 index 000000000000..24ffb74c8ead --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/AsyncUpdateFirewallEndpointAssociation.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFirewallEndpointAssociation { + + public static void main(String[] args) throws Exception { + asyncUpdateFirewallEndpointAssociation(); + } + + public static void asyncUpdateFirewallEndpointAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + UpdateFirewallEndpointAssociationRequest request = + UpdateFirewallEndpointAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + firewallActivationClient.updateFirewallEndpointAssociationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/AsyncUpdateFirewallEndpointAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/AsyncUpdateFirewallEndpointAssociationLRO.java new file mode 100644 index 000000000000..382e6846d8cb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/AsyncUpdateFirewallEndpointAssociationLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFirewallEndpointAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateFirewallEndpointAssociationLRO(); + } + + public static void asyncUpdateFirewallEndpointAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + UpdateFirewallEndpointAssociationRequest request = + UpdateFirewallEndpointAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + firewallActivationClient + .updateFirewallEndpointAssociationOperationCallable() + .futureCall(request); + // Do something. + FirewallEndpointAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/SyncUpdateFirewallEndpointAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/SyncUpdateFirewallEndpointAssociation.java new file mode 100644 index 000000000000..023214a325b8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/SyncUpdateFirewallEndpointAssociation.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.cloud.networksecurity.v1.UpdateFirewallEndpointAssociationRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFirewallEndpointAssociation { + + public static void main(String[] args) throws Exception { + syncUpdateFirewallEndpointAssociation(); + } + + public static void syncUpdateFirewallEndpointAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + UpdateFirewallEndpointAssociationRequest request = + UpdateFirewallEndpointAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFirewallEndpointAssociation(FirewallEndpointAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + FirewallEndpointAssociation response = + firewallActivationClient.updateFirewallEndpointAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/SyncUpdateFirewallEndpointAssociationFirewallendpointassociationFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/SyncUpdateFirewallEndpointAssociationFirewallendpointassociationFieldmask.java new file mode 100644 index 000000000000..db174407dfa5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivation/updatefirewallendpointassociation/SyncUpdateFirewallEndpointAssociationFirewallendpointassociationFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_FirewallendpointassociationFieldmask_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationClient; +import com.google.cloud.networksecurity.v1.FirewallEndpointAssociation; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFirewallEndpointAssociationFirewallendpointassociationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFirewallEndpointAssociationFirewallendpointassociationFieldmask(); + } + + public static void syncUpdateFirewallEndpointAssociationFirewallendpointassociationFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FirewallActivationClient firewallActivationClient = FirewallActivationClient.create()) { + FirewallEndpointAssociation firewallEndpointAssociation = + FirewallEndpointAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + FirewallEndpointAssociation response = + firewallActivationClient + .updateFirewallEndpointAssociationAsync(firewallEndpointAssociation, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_FirewallendpointassociationFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivationsettings/createfirewallendpoint/SyncCreateFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivationsettings/createfirewallendpoint/SyncCreateFirewallEndpoint.java new file mode 100644 index 000000000000..2e03ba50cd92 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivationsettings/createfirewallendpoint/SyncCreateFirewallEndpoint.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivationSettings_CreateFirewallEndpoint_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networksecurity.v1.FirewallActivationSettings; +import java.time.Duration; + +public class SyncCreateFirewallEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpoint(); + } + + public static void syncCreateFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FirewallActivationSettings.Builder firewallActivationSettingsBuilder = + FirewallActivationSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + firewallActivationSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_FirewallActivationSettings_CreateFirewallEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivationsettings/getfirewallendpoint/SyncGetFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivationsettings/getfirewallendpoint/SyncGetFirewallEndpoint.java new file mode 100644 index 000000000000..9e56cf0e6f8c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/firewallactivationsettings/getfirewallendpoint/SyncGetFirewallEndpoint.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_FirewallActivationSettings_GetFirewallEndpoint_sync] +import com.google.cloud.networksecurity.v1.FirewallActivationSettings; +import java.time.Duration; + +public class SyncGetFirewallEndpoint { + + public static void main(String[] args) throws Exception { + syncGetFirewallEndpoint(); + } + + public static void syncGetFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FirewallActivationSettings.Builder firewallActivationSettingsBuilder = + FirewallActivationSettings.newBuilder(); + firewallActivationSettingsBuilder + .getFirewallEndpointSettings() + .setRetrySettings( + firewallActivationSettingsBuilder + .getFirewallEndpointSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + FirewallActivationSettings firewallActivationSettings = + firewallActivationSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_FirewallActivationSettings_GetFirewallEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/create/SyncCreateSetCredentialsProvider.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..8fd0be4d0c95 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptSettings; +import com.google.cloud.networksecurity.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + InterceptSettings interceptSettings = + InterceptSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + InterceptClient interceptClient = InterceptClient.create(interceptSettings); + } +} +// [END networksecurity_v1_generated_Intercept_Create_SetCredentialsProvider_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/create/SyncCreateSetEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..4748f17074c7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_Create_SetEndpoint_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptSettings; +import com.google.cloud.networksecurity.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + InterceptSettings interceptSettings = + InterceptSettings.newBuilder().setEndpoint(myEndpoint).build(); + InterceptClient interceptClient = InterceptClient.create(interceptSettings); + } +} +// [END networksecurity_v1_generated_Intercept_Create_SetEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/AsyncCreateInterceptDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/AsyncCreateInterceptDeployment.java new file mode 100644 index 000000000000..2a4ca0e321be --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/AsyncCreateInterceptDeployment.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateInterceptDeployment { + + public static void main(String[] args) throws Exception { + asyncCreateInterceptDeployment(); + } + + public static void asyncCreateInterceptDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptDeploymentRequest request = + CreateInterceptDeploymentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptDeploymentId("interceptDeploymentId-240023390") + .setInterceptDeployment(InterceptDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.createInterceptDeploymentCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeployment_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/AsyncCreateInterceptDeploymentLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/AsyncCreateInterceptDeploymentLRO.java new file mode 100644 index 000000000000..a34c44b4c823 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/AsyncCreateInterceptDeploymentLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeployment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateInterceptDeploymentLRO { + + public static void main(String[] args) throws Exception { + asyncCreateInterceptDeploymentLRO(); + } + + public static void asyncCreateInterceptDeploymentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptDeploymentRequest request = + CreateInterceptDeploymentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptDeploymentId("interceptDeploymentId-240023390") + .setInterceptDeployment(InterceptDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.createInterceptDeploymentOperationCallable().futureCall(request); + // Do something. + InterceptDeployment response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeployment_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeployment.java new file mode 100644 index 000000000000..de029750119d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeployment_sync] +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptDeployment { + + public static void main(String[] args) throws Exception { + syncCreateInterceptDeployment(); + } + + public static void syncCreateInterceptDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptDeploymentRequest request = + CreateInterceptDeploymentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptDeploymentId("interceptDeploymentId-240023390") + .setInterceptDeployment(InterceptDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + InterceptDeployment response = interceptClient.createInterceptDeploymentAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeployment_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeploymentLocationnameInterceptdeploymentString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeploymentLocationnameInterceptdeploymentString.java new file mode 100644 index 000000000000..2be5eface74a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeploymentLocationnameInterceptdeploymentString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeployment_LocationnameInterceptdeploymentString_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptDeploymentLocationnameInterceptdeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateInterceptDeploymentLocationnameInterceptdeploymentString(); + } + + public static void syncCreateInterceptDeploymentLocationnameInterceptdeploymentString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + String interceptDeploymentId = "interceptDeploymentId-240023390"; + InterceptDeployment response = + interceptClient + .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeployment_LocationnameInterceptdeploymentString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeploymentStringInterceptdeploymentString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeploymentStringInterceptdeploymentString.java new file mode 100644 index 000000000000..478ab819d068 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeployment/SyncCreateInterceptDeploymentStringInterceptdeploymentString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeployment_StringInterceptdeploymentString_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptDeploymentStringInterceptdeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateInterceptDeploymentStringInterceptdeploymentString(); + } + + public static void syncCreateInterceptDeploymentStringInterceptdeploymentString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + String interceptDeploymentId = "interceptDeploymentId-240023390"; + InterceptDeployment response = + interceptClient + .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeployment_StringInterceptdeploymentString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/AsyncCreateInterceptDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/AsyncCreateInterceptDeploymentGroup.java new file mode 100644 index 000000000000..3d849ac5e380 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/AsyncCreateInterceptDeploymentGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateInterceptDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncCreateInterceptDeploymentGroup(); + } + + public static void asyncCreateInterceptDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptDeploymentGroupRequest request = + CreateInterceptDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995") + .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.createInterceptDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/AsyncCreateInterceptDeploymentGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/AsyncCreateInterceptDeploymentGroupLRO.java new file mode 100644 index 000000000000..893e5c1c0182 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/AsyncCreateInterceptDeploymentGroupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateInterceptDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateInterceptDeploymentGroupLRO(); + } + + public static void asyncCreateInterceptDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptDeploymentGroupRequest request = + CreateInterceptDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995") + .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.createInterceptDeploymentGroupOperationCallable().futureCall(request); + // Do something. + InterceptDeploymentGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroup.java new file mode 100644 index 000000000000..e4598e3f63e7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_sync] +import com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncCreateInterceptDeploymentGroup(); + } + + public static void syncCreateInterceptDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptDeploymentGroupRequest request = + CreateInterceptDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995") + .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + InterceptDeploymentGroup response = + interceptClient.createInterceptDeploymentGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroupLocationnameInterceptdeploymentgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroupLocationnameInterceptdeploymentgroupString.java new file mode 100644 index 000000000000..92dcc720f2d9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroupLocationnameInterceptdeploymentgroupString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_LocationnameInterceptdeploymentgroupString_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptDeploymentGroupLocationnameInterceptdeploymentgroupString { + + public static void main(String[] args) throws Exception { + syncCreateInterceptDeploymentGroupLocationnameInterceptdeploymentgroupString(); + } + + public static void syncCreateInterceptDeploymentGroupLocationnameInterceptdeploymentgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995"; + InterceptDeploymentGroup response = + interceptClient + .createInterceptDeploymentGroupAsync( + parent, interceptDeploymentGroup, interceptDeploymentGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_LocationnameInterceptdeploymentgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroupStringInterceptdeploymentgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroupStringInterceptdeploymentgroupString.java new file mode 100644 index 000000000000..23d4d811b2c5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptdeploymentgroup/SyncCreateInterceptDeploymentGroupStringInterceptdeploymentgroupString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_StringInterceptdeploymentgroupString_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptDeploymentGroupStringInterceptdeploymentgroupString { + + public static void main(String[] args) throws Exception { + syncCreateInterceptDeploymentGroupStringInterceptdeploymentgroupString(); + } + + public static void syncCreateInterceptDeploymentGroupStringInterceptdeploymentgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995"; + InterceptDeploymentGroup response = + interceptClient + .createInterceptDeploymentGroupAsync( + parent, interceptDeploymentGroup, interceptDeploymentGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_StringInterceptdeploymentgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/AsyncCreateInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/AsyncCreateInterceptEndpointGroup.java new file mode 100644 index 000000000000..cf2509747a4b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/AsyncCreateInterceptEndpointGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + asyncCreateInterceptEndpointGroup(); + } + + public static void asyncCreateInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptEndpointGroupRequest request = + CreateInterceptEndpointGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189") + .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.createInterceptEndpointGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/AsyncCreateInterceptEndpointGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/AsyncCreateInterceptEndpointGroupLRO.java new file mode 100644 index 000000000000..aa0cea0ab47d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/AsyncCreateInterceptEndpointGroupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateInterceptEndpointGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateInterceptEndpointGroupLRO(); + } + + public static void asyncCreateInterceptEndpointGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptEndpointGroupRequest request = + CreateInterceptEndpointGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189") + .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.createInterceptEndpointGroupOperationCallable().futureCall(request); + // Do something. + InterceptEndpointGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java new file mode 100644 index 000000000000..b279a0a1154e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + syncCreateInterceptEndpointGroup(); + } + + public static void syncCreateInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptEndpointGroupRequest request = + CreateInterceptEndpointGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189") + .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + InterceptEndpointGroup response = + interceptClient.createInterceptEndpointGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroupLocationnameInterceptendpointgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroupLocationnameInterceptendpointgroupString.java new file mode 100644 index 000000000000..1b886beff72f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroupLocationnameInterceptendpointgroupString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_LocationnameInterceptendpointgroupString_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptEndpointGroupLocationnameInterceptendpointgroupString { + + public static void main(String[] args) throws Exception { + syncCreateInterceptEndpointGroupLocationnameInterceptendpointgroupString(); + } + + public static void syncCreateInterceptEndpointGroupLocationnameInterceptendpointgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189"; + InterceptEndpointGroup response = + interceptClient + .createInterceptEndpointGroupAsync( + parent, interceptEndpointGroup, interceptEndpointGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_LocationnameInterceptendpointgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroupStringInterceptendpointgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroupStringInterceptendpointgroupString.java new file mode 100644 index 000000000000..54d33bf2144b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroup/SyncCreateInterceptEndpointGroupStringInterceptendpointgroupString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_StringInterceptendpointgroupString_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptEndpointGroupStringInterceptendpointgroupString { + + public static void main(String[] args) throws Exception { + syncCreateInterceptEndpointGroupStringInterceptendpointgroupString(); + } + + public static void syncCreateInterceptEndpointGroupStringInterceptendpointgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189"; + InterceptEndpointGroup response = + interceptClient + .createInterceptEndpointGroupAsync( + parent, interceptEndpointGroup, interceptEndpointGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_StringInterceptendpointgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/AsyncCreateInterceptEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/AsyncCreateInterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..292e0542d55a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/AsyncCreateInterceptEndpointGroupAssociation.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateInterceptEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + asyncCreateInterceptEndpointGroupAssociation(); + } + + public static void asyncCreateInterceptEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptEndpointGroupAssociationRequest request = + CreateInterceptEndpointGroupAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptEndpointGroupAssociationId( + "interceptEndpointGroupAssociationId-1931364844") + .setInterceptEndpointGroupAssociation( + InterceptEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.createInterceptEndpointGroupAssociationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/AsyncCreateInterceptEndpointGroupAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/AsyncCreateInterceptEndpointGroupAssociationLRO.java new file mode 100644 index 000000000000..0778421be62c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/AsyncCreateInterceptEndpointGroupAssociationLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateInterceptEndpointGroupAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateInterceptEndpointGroupAssociationLRO(); + } + + public static void asyncCreateInterceptEndpointGroupAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptEndpointGroupAssociationRequest request = + CreateInterceptEndpointGroupAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptEndpointGroupAssociationId( + "interceptEndpointGroupAssociationId-1931364844") + .setInterceptEndpointGroupAssociation( + InterceptEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient + .createInterceptEndpointGroupAssociationOperationCallable() + .futureCall(request); + // Do something. + InterceptEndpointGroupAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..d641b9d5424a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociation.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_sync] +import com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateInterceptEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + syncCreateInterceptEndpointGroupAssociation(); + } + + public static void syncCreateInterceptEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + CreateInterceptEndpointGroupAssociationRequest request = + CreateInterceptEndpointGroupAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setInterceptEndpointGroupAssociationId( + "interceptEndpointGroupAssociationId-1931364844") + .setInterceptEndpointGroupAssociation( + InterceptEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + InterceptEndpointGroupAssociation response = + interceptClient.createInterceptEndpointGroupAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociationLocationnameInterceptendpointgroupassociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociationLocationnameInterceptendpointgroupassociationString.java new file mode 100644 index 000000000000..0d458d24bbfb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociationLocationnameInterceptendpointgroupassociationString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_LocationnameInterceptendpointgroupassociationString_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public +class SyncCreateInterceptEndpointGroupAssociationLocationnameInterceptendpointgroupassociationString { + + public static void main(String[] args) throws Exception { + syncCreateInterceptEndpointGroupAssociationLocationnameInterceptendpointgroupassociationString(); + } + + public static void + syncCreateInterceptEndpointGroupAssociationLocationnameInterceptendpointgroupassociationString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844"; + InterceptEndpointGroupAssociation response = + interceptClient + .createInterceptEndpointGroupAssociationAsync( + parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_LocationnameInterceptendpointgroupassociationString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociationStringInterceptendpointgroupassociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociationStringInterceptendpointgroupassociationString.java new file mode 100644 index 000000000000..3607e07edae1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/createinterceptendpointgroupassociation/SyncCreateInterceptEndpointGroupAssociationStringInterceptendpointgroupassociationString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_StringInterceptendpointgroupassociationString_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public +class SyncCreateInterceptEndpointGroupAssociationStringInterceptendpointgroupassociationString { + + public static void main(String[] args) throws Exception { + syncCreateInterceptEndpointGroupAssociationStringInterceptendpointgroupassociationString(); + } + + public static void + syncCreateInterceptEndpointGroupAssociationStringInterceptendpointgroupassociationString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844"; + InterceptEndpointGroupAssociation response = + interceptClient + .createInterceptEndpointGroupAssociationAsync( + parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_StringInterceptendpointgroupassociationString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/AsyncDeleteInterceptDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/AsyncDeleteInterceptDeployment.java new file mode 100644 index 000000000000..8e2630602525 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/AsyncDeleteInterceptDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; +import com.google.longrunning.Operation; + +public class AsyncDeleteInterceptDeployment { + + public static void main(String[] args) throws Exception { + asyncDeleteInterceptDeployment(); + } + + public static void asyncDeleteInterceptDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptDeploymentRequest request = + DeleteInterceptDeploymentRequest.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.deleteInterceptDeploymentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/AsyncDeleteInterceptDeploymentLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/AsyncDeleteInterceptDeploymentLRO.java new file mode 100644 index 000000000000..8c4ac6088cb9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/AsyncDeleteInterceptDeploymentLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteInterceptDeploymentLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteInterceptDeploymentLRO(); + } + + public static void asyncDeleteInterceptDeploymentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptDeploymentRequest request = + DeleteInterceptDeploymentRequest.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.deleteInterceptDeploymentOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeployment.java new file mode 100644 index 000000000000..c0a3e377c2e1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_sync] +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptDeployment { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptDeployment(); + } + + public static void syncDeleteInterceptDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptDeploymentRequest request = + DeleteInterceptDeploymentRequest.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + interceptClient.deleteInterceptDeploymentAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeploymentInterceptdeploymentname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeploymentInterceptdeploymentname.java new file mode 100644 index 000000000000..3eb9b22e8856 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeploymentInterceptdeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_Interceptdeploymentname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptDeploymentInterceptdeploymentname { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptDeploymentInterceptdeploymentname(); + } + + public static void syncDeleteInterceptDeploymentInterceptdeploymentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptDeploymentName name = + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]"); + interceptClient.deleteInterceptDeploymentAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_Interceptdeploymentname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeploymentString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeploymentString.java new file mode 100644 index 000000000000..3e1657e34483 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeployment/SyncDeleteInterceptDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptDeploymentString { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptDeploymentString(); + } + + public static void syncDeleteInterceptDeploymentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String name = + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString(); + interceptClient.deleteInterceptDeploymentAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/AsyncDeleteInterceptDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/AsyncDeleteInterceptDeploymentGroup.java new file mode 100644 index 000000000000..b4af56b977eb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/AsyncDeleteInterceptDeploymentGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; +import com.google.longrunning.Operation; + +public class AsyncDeleteInterceptDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteInterceptDeploymentGroup(); + } + + public static void asyncDeleteInterceptDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptDeploymentGroupRequest request = + DeleteInterceptDeploymentGroupRequest.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.deleteInterceptDeploymentGroupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/AsyncDeleteInterceptDeploymentGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/AsyncDeleteInterceptDeploymentGroupLRO.java new file mode 100644 index 000000000000..f8ce048d0947 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/AsyncDeleteInterceptDeploymentGroupLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteInterceptDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteInterceptDeploymentGroupLRO(); + } + + public static void asyncDeleteInterceptDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptDeploymentGroupRequest request = + DeleteInterceptDeploymentGroupRequest.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.deleteInterceptDeploymentGroupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroup.java new file mode 100644 index 000000000000..bebb8aedf136 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_sync] +import com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptDeploymentGroup(); + } + + public static void syncDeleteInterceptDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptDeploymentGroupRequest request = + DeleteInterceptDeploymentGroupRequest.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + interceptClient.deleteInterceptDeploymentGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroupInterceptdeploymentgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroupInterceptdeploymentgroupname.java new file mode 100644 index 000000000000..edaa20e37d51 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroupInterceptdeploymentgroupname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_Interceptdeploymentgroupname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptDeploymentGroupInterceptdeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptDeploymentGroupInterceptdeploymentgroupname(); + } + + public static void syncDeleteInterceptDeploymentGroupInterceptdeploymentgroupname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptDeploymentGroupName name = + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]"); + interceptClient.deleteInterceptDeploymentGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_Interceptdeploymentgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroupString.java new file mode 100644 index 000000000000..586bdfa27331 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptdeploymentgroup/SyncDeleteInterceptDeploymentGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptDeploymentGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptDeploymentGroupString(); + } + + public static void syncDeleteInterceptDeploymentGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String name = + InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString(); + interceptClient.deleteInterceptDeploymentGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/AsyncDeleteInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/AsyncDeleteInterceptEndpointGroup.java new file mode 100644 index 000000000000..18e6cbddde00 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/AsyncDeleteInterceptEndpointGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; +import com.google.longrunning.Operation; + +public class AsyncDeleteInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteInterceptEndpointGroup(); + } + + public static void asyncDeleteInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptEndpointGroupRequest request = + DeleteInterceptEndpointGroupRequest.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.deleteInterceptEndpointGroupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/AsyncDeleteInterceptEndpointGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/AsyncDeleteInterceptEndpointGroupLRO.java new file mode 100644 index 000000000000..5673f19c99f3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/AsyncDeleteInterceptEndpointGroupLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteInterceptEndpointGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteInterceptEndpointGroupLRO(); + } + + public static void asyncDeleteInterceptEndpointGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptEndpointGroupRequest request = + DeleteInterceptEndpointGroupRequest.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.deleteInterceptEndpointGroupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroup.java new file mode 100644 index 000000000000..bcb862dca0c8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptEndpointGroup(); + } + + public static void syncDeleteInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptEndpointGroupRequest request = + DeleteInterceptEndpointGroupRequest.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + interceptClient.deleteInterceptEndpointGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroupInterceptendpointgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroupInterceptendpointgroupname.java new file mode 100644 index 000000000000..6e1dd3340afb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroupInterceptendpointgroupname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_Interceptendpointgroupname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptEndpointGroupInterceptendpointgroupname { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptEndpointGroupInterceptendpointgroupname(); + } + + public static void syncDeleteInterceptEndpointGroupInterceptendpointgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptEndpointGroupName name = + InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]"); + interceptClient.deleteInterceptEndpointGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_Interceptendpointgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroupString.java new file mode 100644 index 000000000000..d24dd53a3fec --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroup/SyncDeleteInterceptEndpointGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptEndpointGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptEndpointGroupString(); + } + + public static void syncDeleteInterceptEndpointGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String name = + InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString(); + interceptClient.deleteInterceptEndpointGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/AsyncDeleteInterceptEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/AsyncDeleteInterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..424c5cfc484e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/AsyncDeleteInterceptEndpointGroupAssociation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; +import com.google.longrunning.Operation; + +public class AsyncDeleteInterceptEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + asyncDeleteInterceptEndpointGroupAssociation(); + } + + public static void asyncDeleteInterceptEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptEndpointGroupAssociationRequest request = + DeleteInterceptEndpointGroupAssociationRequest.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.deleteInterceptEndpointGroupAssociationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/AsyncDeleteInterceptEndpointGroupAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/AsyncDeleteInterceptEndpointGroupAssociationLRO.java new file mode 100644 index 000000000000..05635a14f51e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/AsyncDeleteInterceptEndpointGroupAssociationLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteInterceptEndpointGroupAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteInterceptEndpointGroupAssociationLRO(); + } + + public static void asyncDeleteInterceptEndpointGroupAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptEndpointGroupAssociationRequest request = + DeleteInterceptEndpointGroupAssociationRequest.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient + .deleteInterceptEndpointGroupAssociationOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..db5f56a93893 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_sync] +import com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptEndpointGroupAssociation(); + } + + public static void syncDeleteInterceptEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + DeleteInterceptEndpointGroupAssociationRequest request = + DeleteInterceptEndpointGroupAssociationRequest.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + interceptClient.deleteInterceptEndpointGroupAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociationInterceptendpointgroupassociationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociationInterceptendpointgroupassociationname.java new file mode 100644 index 000000000000..5da66e22ccbb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociationInterceptendpointgroupassociationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_Interceptendpointgroupassociationname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptEndpointGroupAssociationInterceptendpointgroupassociationname { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptEndpointGroupAssociationInterceptendpointgroupassociationname(); + } + + public static void + syncDeleteInterceptEndpointGroupAssociationInterceptendpointgroupassociationname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptEndpointGroupAssociationName name = + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]"); + interceptClient.deleteInterceptEndpointGroupAssociationAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_Interceptendpointgroupassociationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociationString.java new file mode 100644 index 000000000000..152d9b3dba69 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/deleteinterceptendpointgroupassociation/SyncDeleteInterceptEndpointGroupAssociationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteInterceptEndpointGroupAssociationString { + + public static void main(String[] args) throws Exception { + syncDeleteInterceptEndpointGroupAssociationString(); + } + + public static void syncDeleteInterceptEndpointGroupAssociationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String name = + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString(); + interceptClient.deleteInterceptEndpointGroupAssociationAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..c8d8deb54d80 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = interceptClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..61ad017ba2ea --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = interceptClient.getIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/AsyncGetInterceptDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/AsyncGetInterceptDeployment.java new file mode 100644 index 000000000000..db84d0b9a288 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/AsyncGetInterceptDeployment.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; + +public class AsyncGetInterceptDeployment { + + public static void main(String[] args) throws Exception { + asyncGetInterceptDeployment(); + } + + public static void asyncGetInterceptDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetInterceptDeploymentRequest request = + GetInterceptDeploymentRequest.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + interceptClient.getInterceptDeploymentCallable().futureCall(request); + // Do something. + InterceptDeployment response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptDeployment_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeployment.java new file mode 100644 index 000000000000..d346a5fba3fd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeployment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptDeployment_sync] +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; + +public class SyncGetInterceptDeployment { + + public static void main(String[] args) throws Exception { + syncGetInterceptDeployment(); + } + + public static void syncGetInterceptDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetInterceptDeploymentRequest request = + GetInterceptDeploymentRequest.newBuilder() + .setName( + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString()) + .build(); + InterceptDeployment response = interceptClient.getInterceptDeployment(request); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptDeployment_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeploymentInterceptdeploymentname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeploymentInterceptdeploymentname.java new file mode 100644 index 000000000000..d11368eb5dc7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeploymentInterceptdeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptDeployment_Interceptdeploymentname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; + +public class SyncGetInterceptDeploymentInterceptdeploymentname { + + public static void main(String[] args) throws Exception { + syncGetInterceptDeploymentInterceptdeploymentname(); + } + + public static void syncGetInterceptDeploymentInterceptdeploymentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptDeploymentName name = + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]"); + InterceptDeployment response = interceptClient.getInterceptDeployment(name); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptDeployment_Interceptdeploymentname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeploymentString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeploymentString.java new file mode 100644 index 000000000000..18adb1bcd8f2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeployment/SyncGetInterceptDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptDeployment_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.InterceptDeploymentName; + +public class SyncGetInterceptDeploymentString { + + public static void main(String[] args) throws Exception { + syncGetInterceptDeploymentString(); + } + + public static void syncGetInterceptDeploymentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String name = + InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]") + .toString(); + InterceptDeployment response = interceptClient.getInterceptDeployment(name); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptDeployment_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/AsyncGetInterceptDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/AsyncGetInterceptDeploymentGroup.java new file mode 100644 index 000000000000..6dd0ee1027fc --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/AsyncGetInterceptDeploymentGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; + +public class AsyncGetInterceptDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncGetInterceptDeploymentGroup(); + } + + public static void asyncGetInterceptDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetInterceptDeploymentGroupRequest request = + GetInterceptDeploymentGroupRequest.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .build(); + ApiFuture future = + interceptClient.getInterceptDeploymentGroupCallable().futureCall(request); + // Do something. + InterceptDeploymentGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroup.java new file mode 100644 index 000000000000..d40a599b355d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_sync] +import com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; + +public class SyncGetInterceptDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncGetInterceptDeploymentGroup(); + } + + public static void syncGetInterceptDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetInterceptDeploymentGroupRequest request = + GetInterceptDeploymentGroupRequest.newBuilder() + .setName( + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString()) + .build(); + InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(request); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroupInterceptdeploymentgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroupInterceptdeploymentgroupname.java new file mode 100644 index 000000000000..e480d468f4c0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroupInterceptdeploymentgroupname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_Interceptdeploymentgroupname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; + +public class SyncGetInterceptDeploymentGroupInterceptdeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncGetInterceptDeploymentGroupInterceptdeploymentgroupname(); + } + + public static void syncGetInterceptDeploymentGroupInterceptdeploymentgroupname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptDeploymentGroupName name = + InterceptDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]"); + InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(name); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_Interceptdeploymentgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroupString.java new file mode 100644 index 000000000000..c31591bc6997 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptdeploymentgroup/SyncGetInterceptDeploymentGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName; + +public class SyncGetInterceptDeploymentGroupString { + + public static void main(String[] args) throws Exception { + syncGetInterceptDeploymentGroupString(); + } + + public static void syncGetInterceptDeploymentGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String name = + InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]") + .toString(); + InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(name); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/AsyncGetInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/AsyncGetInterceptEndpointGroup.java new file mode 100644 index 000000000000..4cc75d449474 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/AsyncGetInterceptEndpointGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; + +public class AsyncGetInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + asyncGetInterceptEndpointGroup(); + } + + public static void asyncGetInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetInterceptEndpointGroupRequest request = + GetInterceptEndpointGroupRequest.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .build(); + ApiFuture future = + interceptClient.getInterceptEndpointGroupCallable().futureCall(request); + // Do something. + InterceptEndpointGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java new file mode 100644 index 000000000000..2cb01591b1c8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; + +public class SyncGetInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + syncGetInterceptEndpointGroup(); + } + + public static void syncGetInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetInterceptEndpointGroupRequest request = + GetInterceptEndpointGroupRequest.newBuilder() + .setName( + InterceptEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString()) + .build(); + InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(request); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroupInterceptendpointgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroupInterceptendpointgroupname.java new file mode 100644 index 000000000000..56b149a5b86d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroupInterceptendpointgroupname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_Interceptendpointgroupname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; + +public class SyncGetInterceptEndpointGroupInterceptendpointgroupname { + + public static void main(String[] args) throws Exception { + syncGetInterceptEndpointGroupInterceptendpointgroupname(); + } + + public static void syncGetInterceptEndpointGroupInterceptendpointgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptEndpointGroupName name = + InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]"); + InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_Interceptendpointgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroupString.java new file mode 100644 index 000000000000..f54fed6507a5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroup/SyncGetInterceptEndpointGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupName; + +public class SyncGetInterceptEndpointGroupString { + + public static void main(String[] args) throws Exception { + syncGetInterceptEndpointGroupString(); + } + + public static void syncGetInterceptEndpointGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String name = + InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]") + .toString(); + InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/AsyncGetInterceptEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/AsyncGetInterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..03f2e0bddc1b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/AsyncGetInterceptEndpointGroupAssociation.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; + +public class AsyncGetInterceptEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + asyncGetInterceptEndpointGroupAssociation(); + } + + public static void asyncGetInterceptEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetInterceptEndpointGroupAssociationRequest request = + GetInterceptEndpointGroupAssociationRequest.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .build(); + ApiFuture future = + interceptClient.getInterceptEndpointGroupAssociationCallable().futureCall(request); + // Do something. + InterceptEndpointGroupAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..7de3468f8bf5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_sync] +import com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; + +public class SyncGetInterceptEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + syncGetInterceptEndpointGroupAssociation(); + } + + public static void syncGetInterceptEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetInterceptEndpointGroupAssociationRequest request = + GetInterceptEndpointGroupAssociationRequest.newBuilder() + .setName( + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .build(); + InterceptEndpointGroupAssociation response = + interceptClient.getInterceptEndpointGroupAssociation(request); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociationInterceptendpointgroupassociationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociationInterceptendpointgroupassociationname.java new file mode 100644 index 000000000000..bae26afc6d97 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociationInterceptendpointgroupassociationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_Interceptendpointgroupassociationname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; + +public class SyncGetInterceptEndpointGroupAssociationInterceptendpointgroupassociationname { + + public static void main(String[] args) throws Exception { + syncGetInterceptEndpointGroupAssociationInterceptendpointgroupassociationname(); + } + + public static void syncGetInterceptEndpointGroupAssociationInterceptendpointgroupassociationname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptEndpointGroupAssociationName name = + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]"); + InterceptEndpointGroupAssociation response = + interceptClient.getInterceptEndpointGroupAssociation(name); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_Interceptendpointgroupassociationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociationString.java new file mode 100644 index 000000000000..8b95fc6e3497 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getinterceptendpointgroupassociation/SyncGetInterceptEndpointGroupAssociationString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName; + +public class SyncGetInterceptEndpointGroupAssociationString { + + public static void main(String[] args) throws Exception { + syncGetInterceptEndpointGroupAssociationString(); + } + + public static void syncGetInterceptEndpointGroupAssociationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String name = + InterceptEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]") + .toString(); + InterceptEndpointGroupAssociation response = + interceptClient.getInterceptEndpointGroupAssociation(name); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getlocation/AsyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..ab132d1f37e9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.InterceptClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = interceptClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetLocation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getlocation/SyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..9e54955a8f61 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.InterceptClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = interceptClient.getLocation(request); + } + } +} +// [END networksecurity_v1_generated_Intercept_GetLocation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/AsyncListInterceptDeploymentGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/AsyncListInterceptDeploymentGroups.java new file mode 100644 index 000000000000..fab275e22342 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/AsyncListInterceptDeploymentGroups.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class AsyncListInterceptDeploymentGroups { + + public static void main(String[] args) throws Exception { + asyncListInterceptDeploymentGroups(); + } + + public static void asyncListInterceptDeploymentGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptDeploymentGroupsRequest request = + ListInterceptDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + interceptClient.listInterceptDeploymentGroupsPagedCallable().futureCall(request); + // Do something. + for (InterceptDeploymentGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/AsyncListInterceptDeploymentGroupsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/AsyncListInterceptDeploymentGroupsPaged.java new file mode 100644 index 000000000000..de26e93baa8a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/AsyncListInterceptDeploymentGroupsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_Paged_async] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListInterceptDeploymentGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListInterceptDeploymentGroupsPaged(); + } + + public static void asyncListInterceptDeploymentGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptDeploymentGroupsRequest request = + ListInterceptDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListInterceptDeploymentGroupsResponse response = + interceptClient.listInterceptDeploymentGroupsCallable().call(request); + for (InterceptDeploymentGroup element : response.getInterceptDeploymentGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroups.java new file mode 100644 index 000000000000..c852839d32ee --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroups.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptDeploymentGroups { + + public static void main(String[] args) throws Exception { + syncListInterceptDeploymentGroups(); + } + + public static void syncListInterceptDeploymentGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptDeploymentGroupsRequest request = + ListInterceptDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (InterceptDeploymentGroup element : + interceptClient.listInterceptDeploymentGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroupsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroupsLocationname.java new file mode 100644 index 000000000000..032d4c03b3bc --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroupsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_Locationname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptDeploymentGroupsLocationname { + + public static void main(String[] args) throws Exception { + syncListInterceptDeploymentGroupsLocationname(); + } + + public static void syncListInterceptDeploymentGroupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (InterceptDeploymentGroup element : + interceptClient.listInterceptDeploymentGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroupsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroupsString.java new file mode 100644 index 000000000000..8dca82bee5eb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeploymentgroups/SyncListInterceptDeploymentGroupsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptDeploymentGroupsString { + + public static void main(String[] args) throws Exception { + syncListInterceptDeploymentGroupsString(); + } + + public static void syncListInterceptDeploymentGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (InterceptDeploymentGroup element : + interceptClient.listInterceptDeploymentGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/AsyncListInterceptDeployments.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/AsyncListInterceptDeployments.java new file mode 100644 index 000000000000..9d7e9ecc213d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/AsyncListInterceptDeployments.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeployments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class AsyncListInterceptDeployments { + + public static void main(String[] args) throws Exception { + asyncListInterceptDeployments(); + } + + public static void asyncListInterceptDeployments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptDeploymentsRequest request = + ListInterceptDeploymentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + interceptClient.listInterceptDeploymentsPagedCallable().futureCall(request); + // Do something. + for (InterceptDeployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeployments_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/AsyncListInterceptDeploymentsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/AsyncListInterceptDeploymentsPaged.java new file mode 100644 index 000000000000..91413611c789 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/AsyncListInterceptDeploymentsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeployments_Paged_async] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListInterceptDeploymentsPaged { + + public static void main(String[] args) throws Exception { + asyncListInterceptDeploymentsPaged(); + } + + public static void asyncListInterceptDeploymentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptDeploymentsRequest request = + ListInterceptDeploymentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListInterceptDeploymentsResponse response = + interceptClient.listInterceptDeploymentsCallable().call(request); + for (InterceptDeployment element : response.getInterceptDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeployments_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeployments.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeployments.java new file mode 100644 index 000000000000..9f073fa9ed24 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeployments.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeployments_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.ListInterceptDeploymentsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptDeployments { + + public static void main(String[] args) throws Exception { + syncListInterceptDeployments(); + } + + public static void syncListInterceptDeployments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptDeploymentsRequest request = + ListInterceptDeploymentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (InterceptDeployment element : + interceptClient.listInterceptDeployments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeployments_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeploymentsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeploymentsLocationname.java new file mode 100644 index 000000000000..ebf170e66ab1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeploymentsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeployments_Locationname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptDeploymentsLocationname { + + public static void main(String[] args) throws Exception { + syncListInterceptDeploymentsLocationname(); + } + + public static void syncListInterceptDeploymentsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (InterceptDeployment element : + interceptClient.listInterceptDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeployments_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeploymentsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeploymentsString.java new file mode 100644 index 000000000000..4da0eeb7dcdd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptdeployments/SyncListInterceptDeploymentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptDeployments_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptDeploymentsString { + + public static void main(String[] args) throws Exception { + syncListInterceptDeploymentsString(); + } + + public static void syncListInterceptDeploymentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (InterceptDeployment element : + interceptClient.listInterceptDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptDeployments_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/AsyncListInterceptEndpointGroupAssociations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/AsyncListInterceptEndpointGroupAssociations.java new file mode 100644 index 000000000000..1d5700831a0a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/AsyncListInterceptEndpointGroupAssociations.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class AsyncListInterceptEndpointGroupAssociations { + + public static void main(String[] args) throws Exception { + asyncListInterceptEndpointGroupAssociations(); + } + + public static void asyncListInterceptEndpointGroupAssociations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptEndpointGroupAssociationsRequest request = + ListInterceptEndpointGroupAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + interceptClient.listInterceptEndpointGroupAssociationsPagedCallable().futureCall(request); + // Do something. + for (InterceptEndpointGroupAssociation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/AsyncListInterceptEndpointGroupAssociationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/AsyncListInterceptEndpointGroupAssociationsPaged.java new file mode 100644 index 000000000000..5fa309d96be3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/AsyncListInterceptEndpointGroupAssociationsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_Paged_async] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListInterceptEndpointGroupAssociationsPaged { + + public static void main(String[] args) throws Exception { + asyncListInterceptEndpointGroupAssociationsPaged(); + } + + public static void asyncListInterceptEndpointGroupAssociationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptEndpointGroupAssociationsRequest request = + ListInterceptEndpointGroupAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListInterceptEndpointGroupAssociationsResponse response = + interceptClient.listInterceptEndpointGroupAssociationsCallable().call(request); + for (InterceptEndpointGroupAssociation element : + response.getInterceptEndpointGroupAssociationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociations.java new file mode 100644 index 000000000000..d511e7cb9922 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptEndpointGroupAssociations { + + public static void main(String[] args) throws Exception { + syncListInterceptEndpointGroupAssociations(); + } + + public static void syncListInterceptEndpointGroupAssociations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptEndpointGroupAssociationsRequest request = + ListInterceptEndpointGroupAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (InterceptEndpointGroupAssociation element : + interceptClient.listInterceptEndpointGroupAssociations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociationsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociationsLocationname.java new file mode 100644 index 000000000000..6a1a1b471edf --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociationsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_Locationname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptEndpointGroupAssociationsLocationname { + + public static void main(String[] args) throws Exception { + syncListInterceptEndpointGroupAssociationsLocationname(); + } + + public static void syncListInterceptEndpointGroupAssociationsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (InterceptEndpointGroupAssociation element : + interceptClient.listInterceptEndpointGroupAssociations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociationsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociationsString.java new file mode 100644 index 000000000000..2103b06441c7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroupassociations/SyncListInterceptEndpointGroupAssociationsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptEndpointGroupAssociationsString { + + public static void main(String[] args) throws Exception { + syncListInterceptEndpointGroupAssociationsString(); + } + + public static void syncListInterceptEndpointGroupAssociationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (InterceptEndpointGroupAssociation element : + interceptClient.listInterceptEndpointGroupAssociations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/AsyncListInterceptEndpointGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/AsyncListInterceptEndpointGroups.java new file mode 100644 index 000000000000..1c2e06f76406 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/AsyncListInterceptEndpointGroups.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class AsyncListInterceptEndpointGroups { + + public static void main(String[] args) throws Exception { + asyncListInterceptEndpointGroups(); + } + + public static void asyncListInterceptEndpointGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptEndpointGroupsRequest request = + ListInterceptEndpointGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + interceptClient.listInterceptEndpointGroupsPagedCallable().futureCall(request); + // Do something. + for (InterceptEndpointGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/AsyncListInterceptEndpointGroupsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/AsyncListInterceptEndpointGroupsPaged.java new file mode 100644 index 000000000000..ddc46388d580 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/AsyncListInterceptEndpointGroupsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_Paged_async] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListInterceptEndpointGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListInterceptEndpointGroupsPaged(); + } + + public static void asyncListInterceptEndpointGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptEndpointGroupsRequest request = + ListInterceptEndpointGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListInterceptEndpointGroupsResponse response = + interceptClient.listInterceptEndpointGroupsCallable().call(request); + for (InterceptEndpointGroup element : response.getInterceptEndpointGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroups.java new file mode 100644 index 000000000000..8c8c810221a1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroups.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptEndpointGroups { + + public static void main(String[] args) throws Exception { + syncListInterceptEndpointGroups(); + } + + public static void syncListInterceptEndpointGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListInterceptEndpointGroupsRequest request = + ListInterceptEndpointGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (InterceptEndpointGroup element : + interceptClient.listInterceptEndpointGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroupsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroupsLocationname.java new file mode 100644 index 000000000000..8da6469f4a3c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroupsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_Locationname_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptEndpointGroupsLocationname { + + public static void main(String[] args) throws Exception { + syncListInterceptEndpointGroupsLocationname(); + } + + public static void syncListInterceptEndpointGroupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (InterceptEndpointGroup element : + interceptClient.listInterceptEndpointGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroupsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroupsString.java new file mode 100644 index 000000000000..0d1b7bf2a971 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listinterceptendpointgroups/SyncListInterceptEndpointGroupsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_String_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListInterceptEndpointGroupsString { + + public static void main(String[] args) throws Exception { + syncListInterceptEndpointGroupsString(); + } + + public static void syncListInterceptEndpointGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (InterceptEndpointGroup element : + interceptClient.listInterceptEndpointGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/AsyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..c8b7b40a471d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/AsyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.InterceptClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = interceptClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListLocations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/AsyncListLocationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..31de0900586a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = interceptClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListLocations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/SyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..d1e71c32f706 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.InterceptClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : interceptClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Intercept_ListLocations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..bd80084f408e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = interceptClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_SetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..b16eca34edd1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_SetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = interceptClient.setIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_Intercept_SetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..83f30ba19e75 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + interceptClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_TestIamPermissions_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..8ac1ccefe745 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_TestIamPermissions_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = interceptClient.testIamPermissions(request); + } + } +} +// [END networksecurity_v1_generated_Intercept_TestIamPermissions_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/AsyncUpdateInterceptDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/AsyncUpdateInterceptDeployment.java new file mode 100644 index 000000000000..8171d26506f9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/AsyncUpdateInterceptDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInterceptDeployment { + + public static void main(String[] args) throws Exception { + asyncUpdateInterceptDeployment(); + } + + public static void asyncUpdateInterceptDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptDeploymentRequest request = + UpdateInterceptDeploymentRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptDeployment(InterceptDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.updateInterceptDeploymentCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/AsyncUpdateInterceptDeploymentLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/AsyncUpdateInterceptDeploymentLRO.java new file mode 100644 index 000000000000..deafedde52c0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/AsyncUpdateInterceptDeploymentLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInterceptDeploymentLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateInterceptDeploymentLRO(); + } + + public static void asyncUpdateInterceptDeploymentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptDeploymentRequest request = + UpdateInterceptDeploymentRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptDeployment(InterceptDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.updateInterceptDeploymentOperationCallable().futureCall(request); + // Do something. + InterceptDeployment response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/SyncUpdateInterceptDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/SyncUpdateInterceptDeployment.java new file mode 100644 index 000000000000..3df0f8c0e29d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/SyncUpdateInterceptDeployment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInterceptDeployment { + + public static void main(String[] args) throws Exception { + syncUpdateInterceptDeployment(); + } + + public static void syncUpdateInterceptDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptDeploymentRequest request = + UpdateInterceptDeploymentRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptDeployment(InterceptDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + InterceptDeployment response = interceptClient.updateInterceptDeploymentAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/SyncUpdateInterceptDeploymentInterceptdeploymentFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/SyncUpdateInterceptDeploymentInterceptdeploymentFieldmask.java new file mode 100644 index 000000000000..de2f12b656da --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeployment/SyncUpdateInterceptDeploymentInterceptdeploymentFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_InterceptdeploymentFieldmask_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeployment; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInterceptDeploymentInterceptdeploymentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateInterceptDeploymentInterceptdeploymentFieldmask(); + } + + public static void syncUpdateInterceptDeploymentInterceptdeploymentFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + InterceptDeployment response = + interceptClient.updateInterceptDeploymentAsync(interceptDeployment, updateMask).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_InterceptdeploymentFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/AsyncUpdateInterceptDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/AsyncUpdateInterceptDeploymentGroup.java new file mode 100644 index 000000000000..58e93e3ed45d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/AsyncUpdateInterceptDeploymentGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInterceptDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateInterceptDeploymentGroup(); + } + + public static void asyncUpdateInterceptDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptDeploymentGroupRequest request = + UpdateInterceptDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.updateInterceptDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/AsyncUpdateInterceptDeploymentGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/AsyncUpdateInterceptDeploymentGroupLRO.java new file mode 100644 index 000000000000..e711ae555492 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/AsyncUpdateInterceptDeploymentGroupLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInterceptDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateInterceptDeploymentGroupLRO(); + } + + public static void asyncUpdateInterceptDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptDeploymentGroupRequest request = + UpdateInterceptDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.updateInterceptDeploymentGroupOperationCallable().futureCall(request); + // Do something. + InterceptDeploymentGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/SyncUpdateInterceptDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/SyncUpdateInterceptDeploymentGroup.java new file mode 100644 index 000000000000..2cc3b04c43b7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/SyncUpdateInterceptDeploymentGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInterceptDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncUpdateInterceptDeploymentGroup(); + } + + public static void syncUpdateInterceptDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptDeploymentGroupRequest request = + UpdateInterceptDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + InterceptDeploymentGroup response = + interceptClient.updateInterceptDeploymentGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/SyncUpdateInterceptDeploymentGroupInterceptdeploymentgroupFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/SyncUpdateInterceptDeploymentGroupInterceptdeploymentgroupFieldmask.java new file mode 100644 index 000000000000..1da39fefbaca --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptdeploymentgroup/SyncUpdateInterceptDeploymentGroupInterceptdeploymentgroupFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_InterceptdeploymentgroupFieldmask_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptDeploymentGroup; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInterceptDeploymentGroupInterceptdeploymentgroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateInterceptDeploymentGroupInterceptdeploymentgroupFieldmask(); + } + + public static void syncUpdateInterceptDeploymentGroupInterceptdeploymentgroupFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptDeploymentGroup interceptDeploymentGroup = + InterceptDeploymentGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + InterceptDeploymentGroup response = + interceptClient + .updateInterceptDeploymentGroupAsync(interceptDeploymentGroup, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_InterceptdeploymentgroupFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/AsyncUpdateInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/AsyncUpdateInterceptEndpointGroup.java new file mode 100644 index 000000000000..4e2bf91a02d5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/AsyncUpdateInterceptEndpointGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateInterceptEndpointGroup(); + } + + public static void asyncUpdateInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptEndpointGroupRequest request = + UpdateInterceptEndpointGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.updateInterceptEndpointGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/AsyncUpdateInterceptEndpointGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/AsyncUpdateInterceptEndpointGroupLRO.java new file mode 100644 index 000000000000..d5bfd3b45db1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/AsyncUpdateInterceptEndpointGroupLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInterceptEndpointGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateInterceptEndpointGroupLRO(); + } + + public static void asyncUpdateInterceptEndpointGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptEndpointGroupRequest request = + UpdateInterceptEndpointGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient.updateInterceptEndpointGroupOperationCallable().futureCall(request); + // Do something. + InterceptEndpointGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/SyncUpdateInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/SyncUpdateInterceptEndpointGroup.java new file mode 100644 index 000000000000..2cf2f346abf9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/SyncUpdateInterceptEndpointGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + syncUpdateInterceptEndpointGroup(); + } + + public static void syncUpdateInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptEndpointGroupRequest request = + UpdateInterceptEndpointGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + InterceptEndpointGroup response = + interceptClient.updateInterceptEndpointGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/SyncUpdateInterceptEndpointGroupInterceptendpointgroupFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/SyncUpdateInterceptEndpointGroupInterceptendpointgroupFieldmask.java new file mode 100644 index 000000000000..09854191f092 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroup/SyncUpdateInterceptEndpointGroupInterceptendpointgroupFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_InterceptendpointgroupFieldmask_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroup; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInterceptEndpointGroupInterceptendpointgroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateInterceptEndpointGroupInterceptendpointgroupFieldmask(); + } + + public static void syncUpdateInterceptEndpointGroupInterceptendpointgroupFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + InterceptEndpointGroup response = + interceptClient + .updateInterceptEndpointGroupAsync(interceptEndpointGroup, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_InterceptendpointgroupFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/AsyncUpdateInterceptEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/AsyncUpdateInterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..82bdd4123f17 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/AsyncUpdateInterceptEndpointGroupAssociation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInterceptEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + asyncUpdateInterceptEndpointGroupAssociation(); + } + + public static void asyncUpdateInterceptEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptEndpointGroupAssociationRequest request = + UpdateInterceptEndpointGroupAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptEndpointGroupAssociation( + InterceptEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + interceptClient.updateInterceptEndpointGroupAssociationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/AsyncUpdateInterceptEndpointGroupAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/AsyncUpdateInterceptEndpointGroupAssociationLRO.java new file mode 100644 index 000000000000..892d3ef9ab2a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/AsyncUpdateInterceptEndpointGroupAssociationLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInterceptEndpointGroupAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateInterceptEndpointGroupAssociationLRO(); + } + + public static void asyncUpdateInterceptEndpointGroupAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptEndpointGroupAssociationRequest request = + UpdateInterceptEndpointGroupAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptEndpointGroupAssociation( + InterceptEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + interceptClient + .updateInterceptEndpointGroupAssociationOperationCallable() + .futureCall(request); + // Do something. + InterceptEndpointGroupAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/SyncUpdateInterceptEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/SyncUpdateInterceptEndpointGroupAssociation.java new file mode 100644 index 000000000000..a546c79c2b00 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/SyncUpdateInterceptEndpointGroupAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInterceptEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + syncUpdateInterceptEndpointGroupAssociation(); + } + + public static void syncUpdateInterceptEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + UpdateInterceptEndpointGroupAssociationRequest request = + UpdateInterceptEndpointGroupAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setInterceptEndpointGroupAssociation( + InterceptEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + InterceptEndpointGroupAssociation response = + interceptClient.updateInterceptEndpointGroupAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/SyncUpdateInterceptEndpointGroupAssociationInterceptendpointgroupassociationFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/SyncUpdateInterceptEndpointGroupAssociationInterceptendpointgroupassociationFieldmask.java new file mode 100644 index 000000000000..8e668d395f12 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/intercept/updateinterceptendpointgroupassociation/SyncUpdateInterceptEndpointGroupAssociationInterceptendpointgroupassociationFieldmask.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_InterceptendpointgroupassociationFieldmask_sync] +import com.google.cloud.networksecurity.v1.InterceptClient; +import com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInterceptEndpointGroupAssociationInterceptendpointgroupassociationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateInterceptEndpointGroupAssociationInterceptendpointgroupassociationFieldmask(); + } + + public static void + syncUpdateInterceptEndpointGroupAssociationInterceptendpointgroupassociationFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (InterceptClient interceptClient = InterceptClient.create()) { + InterceptEndpointGroupAssociation interceptEndpointGroupAssociation = + InterceptEndpointGroupAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + InterceptEndpointGroupAssociation response = + interceptClient + .updateInterceptEndpointGroupAssociationAsync( + interceptEndpointGroupAssociation, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_InterceptendpointgroupassociationFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/interceptsettings/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/interceptsettings/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java new file mode 100644 index 000000000000..817d907c0681 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/interceptsettings/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_InterceptSettings_CreateInterceptEndpointGroup_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networksecurity.v1.InterceptSettings; +import java.time.Duration; + +public class SyncCreateInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + syncCreateInterceptEndpointGroup(); + } + + public static void syncCreateInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + InterceptSettings.Builder interceptSettingsBuilder = InterceptSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + interceptSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_InterceptSettings_CreateInterceptEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/interceptsettings/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/interceptsettings/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java new file mode 100644 index 000000000000..2b9b621aeff2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/interceptsettings/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_InterceptSettings_GetInterceptEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.InterceptSettings; +import java.time.Duration; + +public class SyncGetInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + syncGetInterceptEndpointGroup(); + } + + public static void syncGetInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + InterceptSettings.Builder interceptSettingsBuilder = InterceptSettings.newBuilder(); + interceptSettingsBuilder + .getInterceptEndpointGroupSettings() + .setRetrySettings( + interceptSettingsBuilder + .getInterceptEndpointGroupSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + InterceptSettings interceptSettings = interceptSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_InterceptSettings_GetInterceptEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/create/SyncCreateSetCredentialsProvider.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..682f76c36d4a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringSettings; +import com.google.cloud.networksecurity.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MirroringSettings mirroringSettings = + MirroringSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + MirroringClient mirroringClient = MirroringClient.create(mirroringSettings); + } +} +// [END networksecurity_v1_generated_Mirroring_Create_SetCredentialsProvider_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/create/SyncCreateSetEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..1ff60688e71d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_Create_SetEndpoint_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringSettings; +import com.google.cloud.networksecurity.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MirroringSettings mirroringSettings = + MirroringSettings.newBuilder().setEndpoint(myEndpoint).build(); + MirroringClient mirroringClient = MirroringClient.create(mirroringSettings); + } +} +// [END networksecurity_v1_generated_Mirroring_Create_SetEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/AsyncCreateMirroringDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/AsyncCreateMirroringDeployment.java new file mode 100644 index 000000000000..9127a10e2eda --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/AsyncCreateMirroringDeployment.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.longrunning.Operation; + +public class AsyncCreateMirroringDeployment { + + public static void main(String[] args) throws Exception { + asyncCreateMirroringDeployment(); + } + + public static void asyncCreateMirroringDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringDeploymentRequest request = + CreateMirroringDeploymentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringDeploymentId("mirroringDeploymentId-895939037") + .setMirroringDeployment(MirroringDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.createMirroringDeploymentCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/AsyncCreateMirroringDeploymentLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/AsyncCreateMirroringDeploymentLRO.java new file mode 100644 index 000000000000..cb51b06411e4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/AsyncCreateMirroringDeploymentLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateMirroringDeploymentLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMirroringDeploymentLRO(); + } + + public static void asyncCreateMirroringDeploymentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringDeploymentRequest request = + CreateMirroringDeploymentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringDeploymentId("mirroringDeploymentId-895939037") + .setMirroringDeployment(MirroringDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.createMirroringDeploymentOperationCallable().futureCall(request); + // Do something. + MirroringDeployment response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeployment.java new file mode 100644 index 000000000000..035beeb12533 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_sync] +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; + +public class SyncCreateMirroringDeployment { + + public static void main(String[] args) throws Exception { + syncCreateMirroringDeployment(); + } + + public static void syncCreateMirroringDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringDeploymentRequest request = + CreateMirroringDeploymentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringDeploymentId("mirroringDeploymentId-895939037") + .setMirroringDeployment(MirroringDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MirroringDeployment response = mirroringClient.createMirroringDeploymentAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeploymentLocationnameMirroringdeploymentString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeploymentLocationnameMirroringdeploymentString.java new file mode 100644 index 000000000000..224dd507d658 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeploymentLocationnameMirroringdeploymentString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_LocationnameMirroringdeploymentString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; + +public class SyncCreateMirroringDeploymentLocationnameMirroringdeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateMirroringDeploymentLocationnameMirroringdeploymentString(); + } + + public static void syncCreateMirroringDeploymentLocationnameMirroringdeploymentString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + String mirroringDeploymentId = "mirroringDeploymentId-895939037"; + MirroringDeployment response = + mirroringClient + .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_LocationnameMirroringdeploymentString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeploymentStringMirroringdeploymentString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeploymentStringMirroringdeploymentString.java new file mode 100644 index 000000000000..1e975606ca49 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeployment/SyncCreateMirroringDeploymentStringMirroringdeploymentString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_StringMirroringdeploymentString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; + +public class SyncCreateMirroringDeploymentStringMirroringdeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateMirroringDeploymentStringMirroringdeploymentString(); + } + + public static void syncCreateMirroringDeploymentStringMirroringdeploymentString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + String mirroringDeploymentId = "mirroringDeploymentId-895939037"; + MirroringDeployment response = + mirroringClient + .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_StringMirroringdeploymentString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/AsyncCreateMirroringDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/AsyncCreateMirroringDeploymentGroup.java new file mode 100644 index 000000000000..047be3574ae1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/AsyncCreateMirroringDeploymentGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.longrunning.Operation; + +public class AsyncCreateMirroringDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncCreateMirroringDeploymentGroup(); + } + + public static void asyncCreateMirroringDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringDeploymentGroupRequest request = + CreateMirroringDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862") + .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.createMirroringDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/AsyncCreateMirroringDeploymentGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/AsyncCreateMirroringDeploymentGroupLRO.java new file mode 100644 index 000000000000..ac3a828773c7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/AsyncCreateMirroringDeploymentGroupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateMirroringDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMirroringDeploymentGroupLRO(); + } + + public static void asyncCreateMirroringDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringDeploymentGroupRequest request = + CreateMirroringDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862") + .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.createMirroringDeploymentGroupOperationCallable().futureCall(request); + // Do something. + MirroringDeploymentGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroup.java new file mode 100644 index 000000000000..f2e4a7c4a8dd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_sync] +import com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; + +public class SyncCreateMirroringDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncCreateMirroringDeploymentGroup(); + } + + public static void syncCreateMirroringDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringDeploymentGroupRequest request = + CreateMirroringDeploymentGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862") + .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MirroringDeploymentGroup response = + mirroringClient.createMirroringDeploymentGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroupLocationnameMirroringdeploymentgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroupLocationnameMirroringdeploymentgroupString.java new file mode 100644 index 000000000000..2b8304f3e40f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroupLocationnameMirroringdeploymentgroupString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_LocationnameMirroringdeploymentgroupString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; + +public class SyncCreateMirroringDeploymentGroupLocationnameMirroringdeploymentgroupString { + + public static void main(String[] args) throws Exception { + syncCreateMirroringDeploymentGroupLocationnameMirroringdeploymentgroupString(); + } + + public static void syncCreateMirroringDeploymentGroupLocationnameMirroringdeploymentgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862"; + MirroringDeploymentGroup response = + mirroringClient + .createMirroringDeploymentGroupAsync( + parent, mirroringDeploymentGroup, mirroringDeploymentGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_LocationnameMirroringdeploymentgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroupStringMirroringdeploymentgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroupStringMirroringdeploymentgroupString.java new file mode 100644 index 000000000000..d3e092a798f3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringdeploymentgroup/SyncCreateMirroringDeploymentGroupStringMirroringdeploymentgroupString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_StringMirroringdeploymentgroupString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; + +public class SyncCreateMirroringDeploymentGroupStringMirroringdeploymentgroupString { + + public static void main(String[] args) throws Exception { + syncCreateMirroringDeploymentGroupStringMirroringdeploymentgroupString(); + } + + public static void syncCreateMirroringDeploymentGroupStringMirroringdeploymentgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862"; + MirroringDeploymentGroup response = + mirroringClient + .createMirroringDeploymentGroupAsync( + parent, mirroringDeploymentGroup, mirroringDeploymentGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_StringMirroringdeploymentgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/AsyncCreateMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/AsyncCreateMirroringEndpointGroup.java new file mode 100644 index 000000000000..31224611b786 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/AsyncCreateMirroringEndpointGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.longrunning.Operation; + +public class AsyncCreateMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + asyncCreateMirroringEndpointGroup(); + } + + public static void asyncCreateMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringEndpointGroupRequest request = + CreateMirroringEndpointGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834") + .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.createMirroringEndpointGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/AsyncCreateMirroringEndpointGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/AsyncCreateMirroringEndpointGroupLRO.java new file mode 100644 index 000000000000..e91fc8f852a5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/AsyncCreateMirroringEndpointGroupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateMirroringEndpointGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMirroringEndpointGroupLRO(); + } + + public static void asyncCreateMirroringEndpointGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringEndpointGroupRequest request = + CreateMirroringEndpointGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834") + .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.createMirroringEndpointGroupOperationCallable().futureCall(request); + // Do something. + MirroringEndpointGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java new file mode 100644 index 000000000000..e9f4e170e660 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; + +public class SyncCreateMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + syncCreateMirroringEndpointGroup(); + } + + public static void syncCreateMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringEndpointGroupRequest request = + CreateMirroringEndpointGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834") + .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MirroringEndpointGroup response = + mirroringClient.createMirroringEndpointGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroupLocationnameMirroringendpointgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroupLocationnameMirroringendpointgroupString.java new file mode 100644 index 000000000000..9644a1b66cd0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroupLocationnameMirroringendpointgroupString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_LocationnameMirroringendpointgroupString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; + +public class SyncCreateMirroringEndpointGroupLocationnameMirroringendpointgroupString { + + public static void main(String[] args) throws Exception { + syncCreateMirroringEndpointGroupLocationnameMirroringendpointgroupString(); + } + + public static void syncCreateMirroringEndpointGroupLocationnameMirroringendpointgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834"; + MirroringEndpointGroup response = + mirroringClient + .createMirroringEndpointGroupAsync( + parent, mirroringEndpointGroup, mirroringEndpointGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_LocationnameMirroringendpointgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroupStringMirroringendpointgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroupStringMirroringendpointgroupString.java new file mode 100644 index 000000000000..cd45ae7a68be --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroup/SyncCreateMirroringEndpointGroupStringMirroringendpointgroupString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_StringMirroringendpointgroupString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; + +public class SyncCreateMirroringEndpointGroupStringMirroringendpointgroupString { + + public static void main(String[] args) throws Exception { + syncCreateMirroringEndpointGroupStringMirroringendpointgroupString(); + } + + public static void syncCreateMirroringEndpointGroupStringMirroringendpointgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834"; + MirroringEndpointGroup response = + mirroringClient + .createMirroringEndpointGroupAsync( + parent, mirroringEndpointGroup, mirroringEndpointGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_StringMirroringendpointgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/AsyncCreateMirroringEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/AsyncCreateMirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..514ad65d5bcd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/AsyncCreateMirroringEndpointGroupAssociation.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.longrunning.Operation; + +public class AsyncCreateMirroringEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + asyncCreateMirroringEndpointGroupAssociation(); + } + + public static void asyncCreateMirroringEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringEndpointGroupAssociationRequest request = + CreateMirroringEndpointGroupAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringEndpointGroupAssociationId( + "mirroringEndpointGroupAssociationId-1957886507") + .setMirroringEndpointGroupAssociation( + MirroringEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.createMirroringEndpointGroupAssociationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/AsyncCreateMirroringEndpointGroupAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/AsyncCreateMirroringEndpointGroupAssociationLRO.java new file mode 100644 index 000000000000..b68e0cf7d3fa --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/AsyncCreateMirroringEndpointGroupAssociationLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateMirroringEndpointGroupAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMirroringEndpointGroupAssociationLRO(); + } + + public static void asyncCreateMirroringEndpointGroupAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringEndpointGroupAssociationRequest request = + CreateMirroringEndpointGroupAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringEndpointGroupAssociationId( + "mirroringEndpointGroupAssociationId-1957886507") + .setMirroringEndpointGroupAssociation( + MirroringEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient + .createMirroringEndpointGroupAssociationOperationCallable() + .futureCall(request); + // Do something. + MirroringEndpointGroupAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..8cfbdc3bd68b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociation.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_sync] +import com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; + +public class SyncCreateMirroringEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + syncCreateMirroringEndpointGroupAssociation(); + } + + public static void syncCreateMirroringEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + CreateMirroringEndpointGroupAssociationRequest request = + CreateMirroringEndpointGroupAssociationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMirroringEndpointGroupAssociationId( + "mirroringEndpointGroupAssociationId-1957886507") + .setMirroringEndpointGroupAssociation( + MirroringEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MirroringEndpointGroupAssociation response = + mirroringClient.createMirroringEndpointGroupAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociationLocationnameMirroringendpointgroupassociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociationLocationnameMirroringendpointgroupassociationString.java new file mode 100644 index 000000000000..8b9ad899d7b5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociationLocationnameMirroringendpointgroupassociationString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_LocationnameMirroringendpointgroupassociationString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; + +public +class SyncCreateMirroringEndpointGroupAssociationLocationnameMirroringendpointgroupassociationString { + + public static void main(String[] args) throws Exception { + syncCreateMirroringEndpointGroupAssociationLocationnameMirroringendpointgroupassociationString(); + } + + public static void + syncCreateMirroringEndpointGroupAssociationLocationnameMirroringendpointgroupassociationString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507"; + MirroringEndpointGroupAssociation response = + mirroringClient + .createMirroringEndpointGroupAssociationAsync( + parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_LocationnameMirroringendpointgroupassociationString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociationStringMirroringendpointgroupassociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociationStringMirroringendpointgroupassociationString.java new file mode 100644 index 000000000000..8951c714d612 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/createmirroringendpointgroupassociation/SyncCreateMirroringEndpointGroupAssociationStringMirroringendpointgroupassociationString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_StringMirroringendpointgroupassociationString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; + +public +class SyncCreateMirroringEndpointGroupAssociationStringMirroringendpointgroupassociationString { + + public static void main(String[] args) throws Exception { + syncCreateMirroringEndpointGroupAssociationStringMirroringendpointgroupassociationString(); + } + + public static void + syncCreateMirroringEndpointGroupAssociationStringMirroringendpointgroupassociationString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507"; + MirroringEndpointGroupAssociation response = + mirroringClient + .createMirroringEndpointGroupAssociationAsync( + parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_StringMirroringendpointgroupassociationString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/AsyncDeleteMirroringDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/AsyncDeleteMirroringDeployment.java new file mode 100644 index 000000000000..cc2901e68d5f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/AsyncDeleteMirroringDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMirroringDeployment { + + public static void main(String[] args) throws Exception { + asyncDeleteMirroringDeployment(); + } + + public static void asyncDeleteMirroringDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringDeploymentRequest request = + DeleteMirroringDeploymentRequest.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.deleteMirroringDeploymentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/AsyncDeleteMirroringDeploymentLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/AsyncDeleteMirroringDeploymentLRO.java new file mode 100644 index 000000000000..320d2b833699 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/AsyncDeleteMirroringDeploymentLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMirroringDeploymentLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMirroringDeploymentLRO(); + } + + public static void asyncDeleteMirroringDeploymentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringDeploymentRequest request = + DeleteMirroringDeploymentRequest.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.deleteMirroringDeploymentOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeployment.java new file mode 100644 index 000000000000..71f7d2c0c713 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_sync] +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringDeployment { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringDeployment(); + } + + public static void syncDeleteMirroringDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringDeploymentRequest request = + DeleteMirroringDeploymentRequest.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .setRequestId("requestId693933066") + .build(); + mirroringClient.deleteMirroringDeploymentAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeploymentMirroringdeploymentname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeploymentMirroringdeploymentname.java new file mode 100644 index 000000000000..f9918f103a30 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeploymentMirroringdeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_Mirroringdeploymentname_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringDeploymentMirroringdeploymentname { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringDeploymentMirroringdeploymentname(); + } + + public static void syncDeleteMirroringDeploymentMirroringdeploymentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringDeploymentName name = + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]"); + mirroringClient.deleteMirroringDeploymentAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_Mirroringdeploymentname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeploymentString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeploymentString.java new file mode 100644 index 000000000000..c7e7b3bf44c2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeployment/SyncDeleteMirroringDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_String_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringDeploymentString { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringDeploymentString(); + } + + public static void syncDeleteMirroringDeploymentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String name = + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString(); + mirroringClient.deleteMirroringDeploymentAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/AsyncDeleteMirroringDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/AsyncDeleteMirroringDeploymentGroup.java new file mode 100644 index 000000000000..6facbd03490b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/AsyncDeleteMirroringDeploymentGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMirroringDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteMirroringDeploymentGroup(); + } + + public static void asyncDeleteMirroringDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringDeploymentGroupRequest request = + DeleteMirroringDeploymentGroupRequest.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.deleteMirroringDeploymentGroupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/AsyncDeleteMirroringDeploymentGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/AsyncDeleteMirroringDeploymentGroupLRO.java new file mode 100644 index 000000000000..8ce4e9600ade --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/AsyncDeleteMirroringDeploymentGroupLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMirroringDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMirroringDeploymentGroupLRO(); + } + + public static void asyncDeleteMirroringDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringDeploymentGroupRequest request = + DeleteMirroringDeploymentGroupRequest.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.deleteMirroringDeploymentGroupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroup.java new file mode 100644 index 000000000000..765320d2d542 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_sync] +import com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringDeploymentGroup(); + } + + public static void syncDeleteMirroringDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringDeploymentGroupRequest request = + DeleteMirroringDeploymentGroupRequest.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + mirroringClient.deleteMirroringDeploymentGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroupMirroringdeploymentgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroupMirroringdeploymentgroupname.java new file mode 100644 index 000000000000..d8e6d0337a91 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroupMirroringdeploymentgroupname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_Mirroringdeploymentgroupname_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringDeploymentGroupMirroringdeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringDeploymentGroupMirroringdeploymentgroupname(); + } + + public static void syncDeleteMirroringDeploymentGroupMirroringdeploymentgroupname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringDeploymentGroupName name = + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]"); + mirroringClient.deleteMirroringDeploymentGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_Mirroringdeploymentgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroupString.java new file mode 100644 index 000000000000..a5f1326c43b1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringdeploymentgroup/SyncDeleteMirroringDeploymentGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_String_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringDeploymentGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringDeploymentGroupString(); + } + + public static void syncDeleteMirroringDeploymentGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String name = + MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString(); + mirroringClient.deleteMirroringDeploymentGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/AsyncDeleteMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/AsyncDeleteMirroringEndpointGroup.java new file mode 100644 index 000000000000..16a1920b3568 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/AsyncDeleteMirroringEndpointGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteMirroringEndpointGroup(); + } + + public static void asyncDeleteMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringEndpointGroupRequest request = + DeleteMirroringEndpointGroupRequest.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.deleteMirroringEndpointGroupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/AsyncDeleteMirroringEndpointGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/AsyncDeleteMirroringEndpointGroupLRO.java new file mode 100644 index 000000000000..a3913ff831cf --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/AsyncDeleteMirroringEndpointGroupLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMirroringEndpointGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMirroringEndpointGroupLRO(); + } + + public static void asyncDeleteMirroringEndpointGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringEndpointGroupRequest request = + DeleteMirroringEndpointGroupRequest.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.deleteMirroringEndpointGroupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroup.java new file mode 100644 index 000000000000..88aa1d5fc3f9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringEndpointGroup(); + } + + public static void syncDeleteMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringEndpointGroupRequest request = + DeleteMirroringEndpointGroupRequest.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + mirroringClient.deleteMirroringEndpointGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroupMirroringendpointgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroupMirroringendpointgroupname.java new file mode 100644 index 000000000000..c90b2522bf39 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroupMirroringendpointgroupname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_Mirroringendpointgroupname_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringEndpointGroupMirroringendpointgroupname { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringEndpointGroupMirroringendpointgroupname(); + } + + public static void syncDeleteMirroringEndpointGroupMirroringendpointgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringEndpointGroupName name = + MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]"); + mirroringClient.deleteMirroringEndpointGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_Mirroringendpointgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroupString.java new file mode 100644 index 000000000000..fc19c2e5a2c2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroup/SyncDeleteMirroringEndpointGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_String_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringEndpointGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringEndpointGroupString(); + } + + public static void syncDeleteMirroringEndpointGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String name = + MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString(); + mirroringClient.deleteMirroringEndpointGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/AsyncDeleteMirroringEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/AsyncDeleteMirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..f6be7cc5938d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/AsyncDeleteMirroringEndpointGroupAssociation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMirroringEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + asyncDeleteMirroringEndpointGroupAssociation(); + } + + public static void asyncDeleteMirroringEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringEndpointGroupAssociationRequest request = + DeleteMirroringEndpointGroupAssociationRequest.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.deleteMirroringEndpointGroupAssociationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/AsyncDeleteMirroringEndpointGroupAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/AsyncDeleteMirroringEndpointGroupAssociationLRO.java new file mode 100644 index 000000000000..1a57508cf35b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/AsyncDeleteMirroringEndpointGroupAssociationLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMirroringEndpointGroupAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMirroringEndpointGroupAssociationLRO(); + } + + public static void asyncDeleteMirroringEndpointGroupAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringEndpointGroupAssociationRequest request = + DeleteMirroringEndpointGroupAssociationRequest.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient + .deleteMirroringEndpointGroupAssociationOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..5ee25625445c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_sync] +import com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringEndpointGroupAssociation(); + } + + public static void syncDeleteMirroringEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + DeleteMirroringEndpointGroupAssociationRequest request = + DeleteMirroringEndpointGroupAssociationRequest.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + mirroringClient.deleteMirroringEndpointGroupAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociationMirroringendpointgroupassociationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociationMirroringendpointgroupassociationname.java new file mode 100644 index 000000000000..1f702671fb00 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociationMirroringendpointgroupassociationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_Mirroringendpointgroupassociationname_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringEndpointGroupAssociationMirroringendpointgroupassociationname { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringEndpointGroupAssociationMirroringendpointgroupassociationname(); + } + + public static void + syncDeleteMirroringEndpointGroupAssociationMirroringendpointgroupassociationname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringEndpointGroupAssociationName name = + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]"); + mirroringClient.deleteMirroringEndpointGroupAssociationAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_Mirroringendpointgroupassociationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociationString.java new file mode 100644 index 000000000000..4893bd95e9fe --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/deletemirroringendpointgroupassociation/SyncDeleteMirroringEndpointGroupAssociationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_String_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; +import com.google.protobuf.Empty; + +public class SyncDeleteMirroringEndpointGroupAssociationString { + + public static void main(String[] args) throws Exception { + syncDeleteMirroringEndpointGroupAssociationString(); + } + + public static void syncDeleteMirroringEndpointGroupAssociationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String name = + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString(); + mirroringClient.deleteMirroringEndpointGroupAssociationAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..58cc00860ed7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = mirroringClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..da32e1d6ea47 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = mirroringClient.getIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getlocation/AsyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..72b1a0ebc17e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.MirroringClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = mirroringClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetLocation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getlocation/SyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..fdc9168074d5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.MirroringClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = mirroringClient.getLocation(request); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetLocation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/AsyncGetMirroringDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/AsyncGetMirroringDeployment.java new file mode 100644 index 000000000000..0e1a4ab1a46f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/AsyncGetMirroringDeployment.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; + +public class AsyncGetMirroringDeployment { + + public static void main(String[] args) throws Exception { + asyncGetMirroringDeployment(); + } + + public static void asyncGetMirroringDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetMirroringDeploymentRequest request = + GetMirroringDeploymentRequest.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + mirroringClient.getMirroringDeploymentCallable().futureCall(request); + // Do something. + MirroringDeployment response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringDeployment_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeployment.java new file mode 100644 index 000000000000..db228e8832df --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeployment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringDeployment_sync] +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; + +public class SyncGetMirroringDeployment { + + public static void main(String[] args) throws Exception { + syncGetMirroringDeployment(); + } + + public static void syncGetMirroringDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetMirroringDeploymentRequest request = + GetMirroringDeploymentRequest.newBuilder() + .setName( + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString()) + .build(); + MirroringDeployment response = mirroringClient.getMirroringDeployment(request); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringDeployment_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeploymentMirroringdeploymentname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeploymentMirroringdeploymentname.java new file mode 100644 index 000000000000..9fb9f8f3007c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeploymentMirroringdeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringDeployment_Mirroringdeploymentname_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; + +public class SyncGetMirroringDeploymentMirroringdeploymentname { + + public static void main(String[] args) throws Exception { + syncGetMirroringDeploymentMirroringdeploymentname(); + } + + public static void syncGetMirroringDeploymentMirroringdeploymentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringDeploymentName name = + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]"); + MirroringDeployment response = mirroringClient.getMirroringDeployment(name); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringDeployment_Mirroringdeploymentname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeploymentString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeploymentString.java new file mode 100644 index 000000000000..2195be80ef3d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeployment/SyncGetMirroringDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringDeployment_String_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.MirroringDeploymentName; + +public class SyncGetMirroringDeploymentString { + + public static void main(String[] args) throws Exception { + syncGetMirroringDeploymentString(); + } + + public static void syncGetMirroringDeploymentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String name = + MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]") + .toString(); + MirroringDeployment response = mirroringClient.getMirroringDeployment(name); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringDeployment_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/AsyncGetMirroringDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/AsyncGetMirroringDeploymentGroup.java new file mode 100644 index 000000000000..a472e2c2fdc9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/AsyncGetMirroringDeploymentGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; + +public class AsyncGetMirroringDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncGetMirroringDeploymentGroup(); + } + + public static void asyncGetMirroringDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetMirroringDeploymentGroupRequest request = + GetMirroringDeploymentGroupRequest.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .build(); + ApiFuture future = + mirroringClient.getMirroringDeploymentGroupCallable().futureCall(request); + // Do something. + MirroringDeploymentGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroup.java new file mode 100644 index 000000000000..3947470bcec4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_sync] +import com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; + +public class SyncGetMirroringDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncGetMirroringDeploymentGroup(); + } + + public static void syncGetMirroringDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetMirroringDeploymentGroupRequest request = + GetMirroringDeploymentGroupRequest.newBuilder() + .setName( + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString()) + .build(); + MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(request); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroupMirroringdeploymentgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroupMirroringdeploymentgroupname.java new file mode 100644 index 000000000000..ce7ff2b88900 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroupMirroringdeploymentgroupname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_Mirroringdeploymentgroupname_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; + +public class SyncGetMirroringDeploymentGroupMirroringdeploymentgroupname { + + public static void main(String[] args) throws Exception { + syncGetMirroringDeploymentGroupMirroringdeploymentgroupname(); + } + + public static void syncGetMirroringDeploymentGroupMirroringdeploymentgroupname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringDeploymentGroupName name = + MirroringDeploymentGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]"); + MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(name); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_Mirroringdeploymentgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroupString.java new file mode 100644 index 000000000000..ed29dfc5abd5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringdeploymentgroup/SyncGetMirroringDeploymentGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_String_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName; + +public class SyncGetMirroringDeploymentGroupString { + + public static void main(String[] args) throws Exception { + syncGetMirroringDeploymentGroupString(); + } + + public static void syncGetMirroringDeploymentGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String name = + MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]") + .toString(); + MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(name); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/AsyncGetMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/AsyncGetMirroringEndpointGroup.java new file mode 100644 index 000000000000..60bae2771441 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/AsyncGetMirroringEndpointGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; + +public class AsyncGetMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + asyncGetMirroringEndpointGroup(); + } + + public static void asyncGetMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetMirroringEndpointGroupRequest request = + GetMirroringEndpointGroupRequest.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .build(); + ApiFuture future = + mirroringClient.getMirroringEndpointGroupCallable().futureCall(request); + // Do something. + MirroringEndpointGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java new file mode 100644 index 000000000000..1bf5ba432704 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; + +public class SyncGetMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + syncGetMirroringEndpointGroup(); + } + + public static void syncGetMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetMirroringEndpointGroupRequest request = + GetMirroringEndpointGroupRequest.newBuilder() + .setName( + MirroringEndpointGroupName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString()) + .build(); + MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(request); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroupMirroringendpointgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroupMirroringendpointgroupname.java new file mode 100644 index 000000000000..551a571a88db --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroupMirroringendpointgroupname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_Mirroringendpointgroupname_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; + +public class SyncGetMirroringEndpointGroupMirroringendpointgroupname { + + public static void main(String[] args) throws Exception { + syncGetMirroringEndpointGroupMirroringendpointgroupname(); + } + + public static void syncGetMirroringEndpointGroupMirroringendpointgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringEndpointGroupName name = + MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]"); + MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_Mirroringendpointgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroupString.java new file mode 100644 index 000000000000..c91197fe9a08 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroup/SyncGetMirroringEndpointGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_String_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupName; + +public class SyncGetMirroringEndpointGroupString { + + public static void main(String[] args) throws Exception { + syncGetMirroringEndpointGroupString(); + } + + public static void syncGetMirroringEndpointGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String name = + MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]") + .toString(); + MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/AsyncGetMirroringEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/AsyncGetMirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..be2630bb5ea1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/AsyncGetMirroringEndpointGroupAssociation.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; + +public class AsyncGetMirroringEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + asyncGetMirroringEndpointGroupAssociation(); + } + + public static void asyncGetMirroringEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetMirroringEndpointGroupAssociationRequest request = + GetMirroringEndpointGroupAssociationRequest.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .build(); + ApiFuture future = + mirroringClient.getMirroringEndpointGroupAssociationCallable().futureCall(request); + // Do something. + MirroringEndpointGroupAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..eb457863f611 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_sync] +import com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; + +public class SyncGetMirroringEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + syncGetMirroringEndpointGroupAssociation(); + } + + public static void syncGetMirroringEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + GetMirroringEndpointGroupAssociationRequest request = + GetMirroringEndpointGroupAssociationRequest.newBuilder() + .setName( + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString()) + .build(); + MirroringEndpointGroupAssociation response = + mirroringClient.getMirroringEndpointGroupAssociation(request); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociationMirroringendpointgroupassociationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociationMirroringendpointgroupassociationname.java new file mode 100644 index 000000000000..537dcd62de7a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociationMirroringendpointgroupassociationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_Mirroringendpointgroupassociationname_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; + +public class SyncGetMirroringEndpointGroupAssociationMirroringendpointgroupassociationname { + + public static void main(String[] args) throws Exception { + syncGetMirroringEndpointGroupAssociationMirroringendpointgroupassociationname(); + } + + public static void syncGetMirroringEndpointGroupAssociationMirroringendpointgroupassociationname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringEndpointGroupAssociationName name = + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]"); + MirroringEndpointGroupAssociation response = + mirroringClient.getMirroringEndpointGroupAssociation(name); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_Mirroringendpointgroupassociationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociationString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociationString.java new file mode 100644 index 000000000000..408a4bd4ffbf --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/getmirroringendpointgroupassociation/SyncGetMirroringEndpointGroupAssociationString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_String_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName; + +public class SyncGetMirroringEndpointGroupAssociationString { + + public static void main(String[] args) throws Exception { + syncGetMirroringEndpointGroupAssociationString(); + } + + public static void syncGetMirroringEndpointGroupAssociationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String name = + MirroringEndpointGroupAssociationName.of( + "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]") + .toString(); + MirroringEndpointGroupAssociation response = + mirroringClient.getMirroringEndpointGroupAssociation(name); + } + } +} +// [END networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/AsyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..d554406516fa --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/AsyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.MirroringClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = mirroringClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListLocations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/AsyncListLocationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..d6a4ea234194 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = mirroringClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListLocations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/SyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..db8f79e93bbe --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.MirroringClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : mirroringClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListLocations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/AsyncListMirroringDeploymentGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/AsyncListMirroringDeploymentGroups.java new file mode 100644 index 000000000000..19f161421206 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/AsyncListMirroringDeploymentGroups.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; + +public class AsyncListMirroringDeploymentGroups { + + public static void main(String[] args) throws Exception { + asyncListMirroringDeploymentGroups(); + } + + public static void asyncListMirroringDeploymentGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringDeploymentGroupsRequest request = + ListMirroringDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + mirroringClient.listMirroringDeploymentGroupsPagedCallable().futureCall(request); + // Do something. + for (MirroringDeploymentGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/AsyncListMirroringDeploymentGroupsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/AsyncListMirroringDeploymentGroupsPaged.java new file mode 100644 index 000000000000..b9a4fed65f25 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/AsyncListMirroringDeploymentGroupsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_Paged_async] +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.common.base.Strings; + +public class AsyncListMirroringDeploymentGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListMirroringDeploymentGroupsPaged(); + } + + public static void asyncListMirroringDeploymentGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringDeploymentGroupsRequest request = + ListMirroringDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListMirroringDeploymentGroupsResponse response = + mirroringClient.listMirroringDeploymentGroupsCallable().call(request); + for (MirroringDeploymentGroup element : response.getMirroringDeploymentGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroups.java new file mode 100644 index 000000000000..b8dbb0420e3a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroups.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_sync] +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; + +public class SyncListMirroringDeploymentGroups { + + public static void main(String[] args) throws Exception { + syncListMirroringDeploymentGroups(); + } + + public static void syncListMirroringDeploymentGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringDeploymentGroupsRequest request = + ListMirroringDeploymentGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (MirroringDeploymentGroup element : + mirroringClient.listMirroringDeploymentGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroupsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroupsLocationname.java new file mode 100644 index 000000000000..0a7794b0ced7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroupsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_Locationname_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; + +public class SyncListMirroringDeploymentGroupsLocationname { + + public static void main(String[] args) throws Exception { + syncListMirroringDeploymentGroupsLocationname(); + } + + public static void syncListMirroringDeploymentGroupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (MirroringDeploymentGroup element : + mirroringClient.listMirroringDeploymentGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroupsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroupsString.java new file mode 100644 index 000000000000..cf7e1ec9d8c6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeploymentgroups/SyncListMirroringDeploymentGroupsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_String_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; + +public class SyncListMirroringDeploymentGroupsString { + + public static void main(String[] args) throws Exception { + syncListMirroringDeploymentGroupsString(); + } + + public static void syncListMirroringDeploymentGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (MirroringDeploymentGroup element : + mirroringClient.listMirroringDeploymentGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/AsyncListMirroringDeployments.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/AsyncListMirroringDeployments.java new file mode 100644 index 000000000000..3660a1abf2c0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/AsyncListMirroringDeployments.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeployments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; + +public class AsyncListMirroringDeployments { + + public static void main(String[] args) throws Exception { + asyncListMirroringDeployments(); + } + + public static void asyncListMirroringDeployments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringDeploymentsRequest request = + ListMirroringDeploymentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + mirroringClient.listMirroringDeploymentsPagedCallable().futureCall(request); + // Do something. + for (MirroringDeployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeployments_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/AsyncListMirroringDeploymentsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/AsyncListMirroringDeploymentsPaged.java new file mode 100644 index 000000000000..670ff9972f86 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/AsyncListMirroringDeploymentsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeployments_Paged_async] +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.common.base.Strings; + +public class AsyncListMirroringDeploymentsPaged { + + public static void main(String[] args) throws Exception { + asyncListMirroringDeploymentsPaged(); + } + + public static void asyncListMirroringDeploymentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringDeploymentsRequest request = + ListMirroringDeploymentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListMirroringDeploymentsResponse response = + mirroringClient.listMirroringDeploymentsCallable().call(request); + for (MirroringDeployment element : response.getMirroringDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeployments_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeployments.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeployments.java new file mode 100644 index 000000000000..9c7ad3ebfc0b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeployments.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeployments_sync] +import com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; + +public class SyncListMirroringDeployments { + + public static void main(String[] args) throws Exception { + syncListMirroringDeployments(); + } + + public static void syncListMirroringDeployments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringDeploymentsRequest request = + ListMirroringDeploymentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (MirroringDeployment element : + mirroringClient.listMirroringDeployments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeployments_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeploymentsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeploymentsLocationname.java new file mode 100644 index 000000000000..eec7788e47d6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeploymentsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeployments_Locationname_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; + +public class SyncListMirroringDeploymentsLocationname { + + public static void main(String[] args) throws Exception { + syncListMirroringDeploymentsLocationname(); + } + + public static void syncListMirroringDeploymentsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (MirroringDeployment element : + mirroringClient.listMirroringDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeployments_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeploymentsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeploymentsString.java new file mode 100644 index 000000000000..c810fc39b17b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringdeployments/SyncListMirroringDeploymentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringDeployments_String_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; + +public class SyncListMirroringDeploymentsString { + + public static void main(String[] args) throws Exception { + syncListMirroringDeploymentsString(); + } + + public static void syncListMirroringDeploymentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (MirroringDeployment element : + mirroringClient.listMirroringDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringDeployments_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/AsyncListMirroringEndpointGroupAssociations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/AsyncListMirroringEndpointGroupAssociations.java new file mode 100644 index 000000000000..3946cf0298b8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/AsyncListMirroringEndpointGroupAssociations.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; + +public class AsyncListMirroringEndpointGroupAssociations { + + public static void main(String[] args) throws Exception { + asyncListMirroringEndpointGroupAssociations(); + } + + public static void asyncListMirroringEndpointGroupAssociations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringEndpointGroupAssociationsRequest request = + ListMirroringEndpointGroupAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + mirroringClient.listMirroringEndpointGroupAssociationsPagedCallable().futureCall(request); + // Do something. + for (MirroringEndpointGroupAssociation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/AsyncListMirroringEndpointGroupAssociationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/AsyncListMirroringEndpointGroupAssociationsPaged.java new file mode 100644 index 000000000000..4a4e6a0a7a6e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/AsyncListMirroringEndpointGroupAssociationsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_Paged_async] +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.common.base.Strings; + +public class AsyncListMirroringEndpointGroupAssociationsPaged { + + public static void main(String[] args) throws Exception { + asyncListMirroringEndpointGroupAssociationsPaged(); + } + + public static void asyncListMirroringEndpointGroupAssociationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringEndpointGroupAssociationsRequest request = + ListMirroringEndpointGroupAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListMirroringEndpointGroupAssociationsResponse response = + mirroringClient.listMirroringEndpointGroupAssociationsCallable().call(request); + for (MirroringEndpointGroupAssociation element : + response.getMirroringEndpointGroupAssociationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociations.java new file mode 100644 index 000000000000..acdc75f31a27 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_sync] +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; + +public class SyncListMirroringEndpointGroupAssociations { + + public static void main(String[] args) throws Exception { + syncListMirroringEndpointGroupAssociations(); + } + + public static void syncListMirroringEndpointGroupAssociations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringEndpointGroupAssociationsRequest request = + ListMirroringEndpointGroupAssociationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (MirroringEndpointGroupAssociation element : + mirroringClient.listMirroringEndpointGroupAssociations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociationsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociationsLocationname.java new file mode 100644 index 000000000000..c637f488e39a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociationsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_Locationname_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; + +public class SyncListMirroringEndpointGroupAssociationsLocationname { + + public static void main(String[] args) throws Exception { + syncListMirroringEndpointGroupAssociationsLocationname(); + } + + public static void syncListMirroringEndpointGroupAssociationsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (MirroringEndpointGroupAssociation element : + mirroringClient.listMirroringEndpointGroupAssociations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociationsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociationsString.java new file mode 100644 index 000000000000..d1bbe619115f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroupassociations/SyncListMirroringEndpointGroupAssociationsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_String_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; + +public class SyncListMirroringEndpointGroupAssociationsString { + + public static void main(String[] args) throws Exception { + syncListMirroringEndpointGroupAssociationsString(); + } + + public static void syncListMirroringEndpointGroupAssociationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (MirroringEndpointGroupAssociation element : + mirroringClient.listMirroringEndpointGroupAssociations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/AsyncListMirroringEndpointGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/AsyncListMirroringEndpointGroups.java new file mode 100644 index 000000000000..510c65b9bb66 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/AsyncListMirroringEndpointGroups.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; + +public class AsyncListMirroringEndpointGroups { + + public static void main(String[] args) throws Exception { + asyncListMirroringEndpointGroups(); + } + + public static void asyncListMirroringEndpointGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringEndpointGroupsRequest request = + ListMirroringEndpointGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + mirroringClient.listMirroringEndpointGroupsPagedCallable().futureCall(request); + // Do something. + for (MirroringEndpointGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/AsyncListMirroringEndpointGroupsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/AsyncListMirroringEndpointGroupsPaged.java new file mode 100644 index 000000000000..af6033725696 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/AsyncListMirroringEndpointGroupsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_Paged_async] +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.common.base.Strings; + +public class AsyncListMirroringEndpointGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListMirroringEndpointGroupsPaged(); + } + + public static void asyncListMirroringEndpointGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringEndpointGroupsRequest request = + ListMirroringEndpointGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListMirroringEndpointGroupsResponse response = + mirroringClient.listMirroringEndpointGroupsCallable().call(request); + for (MirroringEndpointGroup element : response.getMirroringEndpointGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroups.java new file mode 100644 index 000000000000..9ef540a64c3a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroups.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_sync] +import com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; + +public class SyncListMirroringEndpointGroups { + + public static void main(String[] args) throws Exception { + syncListMirroringEndpointGroups(); + } + + public static void syncListMirroringEndpointGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + ListMirroringEndpointGroupsRequest request = + ListMirroringEndpointGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (MirroringEndpointGroup element : + mirroringClient.listMirroringEndpointGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroupsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroupsLocationname.java new file mode 100644 index 000000000000..03e57f41574c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroupsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_Locationname_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; + +public class SyncListMirroringEndpointGroupsLocationname { + + public static void main(String[] args) throws Exception { + syncListMirroringEndpointGroupsLocationname(); + } + + public static void syncListMirroringEndpointGroupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (MirroringEndpointGroup element : + mirroringClient.listMirroringEndpointGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroupsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroupsString.java new file mode 100644 index 000000000000..8c3fefd32a4a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/listmirroringendpointgroups/SyncListMirroringEndpointGroupsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_String_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; + +public class SyncListMirroringEndpointGroupsString { + + public static void main(String[] args) throws Exception { + syncListMirroringEndpointGroupsString(); + } + + public static void syncListMirroringEndpointGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (MirroringEndpointGroup element : + mirroringClient.listMirroringEndpointGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..4c3cdaef7c65 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = mirroringClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_SetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..6bde8852123b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_SetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = mirroringClient.setIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_Mirroring_SetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..b760110b8810 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + mirroringClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_TestIamPermissions_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..af15545eb6fb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_TestIamPermissions_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = mirroringClient.testIamPermissions(request); + } + } +} +// [END networksecurity_v1_generated_Mirroring_TestIamPermissions_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/AsyncUpdateMirroringDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/AsyncUpdateMirroringDeployment.java new file mode 100644 index 000000000000..4e1ba3b4fd67 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/AsyncUpdateMirroringDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMirroringDeployment { + + public static void main(String[] args) throws Exception { + asyncUpdateMirroringDeployment(); + } + + public static void asyncUpdateMirroringDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringDeploymentRequest request = + UpdateMirroringDeploymentRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringDeployment(MirroringDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.updateMirroringDeploymentCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/AsyncUpdateMirroringDeploymentLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/AsyncUpdateMirroringDeploymentLRO.java new file mode 100644 index 000000000000..eae9c12ce1af --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/AsyncUpdateMirroringDeploymentLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMirroringDeploymentLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMirroringDeploymentLRO(); + } + + public static void asyncUpdateMirroringDeploymentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringDeploymentRequest request = + UpdateMirroringDeploymentRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringDeployment(MirroringDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.updateMirroringDeploymentOperationCallable().futureCall(request); + // Do something. + MirroringDeployment response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/SyncUpdateMirroringDeployment.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/SyncUpdateMirroringDeployment.java new file mode 100644 index 000000000000..9bbfaa4ed476 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/SyncUpdateMirroringDeployment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMirroringDeployment { + + public static void main(String[] args) throws Exception { + syncUpdateMirroringDeployment(); + } + + public static void syncUpdateMirroringDeployment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringDeploymentRequest request = + UpdateMirroringDeploymentRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringDeployment(MirroringDeployment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MirroringDeployment response = mirroringClient.updateMirroringDeploymentAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/SyncUpdateMirroringDeploymentMirroringdeploymentFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/SyncUpdateMirroringDeploymentMirroringdeploymentFieldmask.java new file mode 100644 index 000000000000..99ac81059240 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeployment/SyncUpdateMirroringDeploymentMirroringdeploymentFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_MirroringdeploymentFieldmask_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeployment; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMirroringDeploymentMirroringdeploymentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMirroringDeploymentMirroringdeploymentFieldmask(); + } + + public static void syncUpdateMirroringDeploymentMirroringdeploymentFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MirroringDeployment response = + mirroringClient.updateMirroringDeploymentAsync(mirroringDeployment, updateMask).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_MirroringdeploymentFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/AsyncUpdateMirroringDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/AsyncUpdateMirroringDeploymentGroup.java new file mode 100644 index 000000000000..7fb9dd12d4e2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/AsyncUpdateMirroringDeploymentGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMirroringDeploymentGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateMirroringDeploymentGroup(); + } + + public static void asyncUpdateMirroringDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringDeploymentGroupRequest request = + UpdateMirroringDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.updateMirroringDeploymentGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/AsyncUpdateMirroringDeploymentGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/AsyncUpdateMirroringDeploymentGroupLRO.java new file mode 100644 index 000000000000..c873aa03a5c4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/AsyncUpdateMirroringDeploymentGroupLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMirroringDeploymentGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMirroringDeploymentGroupLRO(); + } + + public static void asyncUpdateMirroringDeploymentGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringDeploymentGroupRequest request = + UpdateMirroringDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.updateMirroringDeploymentGroupOperationCallable().futureCall(request); + // Do something. + MirroringDeploymentGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/SyncUpdateMirroringDeploymentGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/SyncUpdateMirroringDeploymentGroup.java new file mode 100644 index 000000000000..e90edf0384e9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/SyncUpdateMirroringDeploymentGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMirroringDeploymentGroup { + + public static void main(String[] args) throws Exception { + syncUpdateMirroringDeploymentGroup(); + } + + public static void syncUpdateMirroringDeploymentGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringDeploymentGroupRequest request = + UpdateMirroringDeploymentGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MirroringDeploymentGroup response = + mirroringClient.updateMirroringDeploymentGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/SyncUpdateMirroringDeploymentGroupMirroringdeploymentgroupFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/SyncUpdateMirroringDeploymentGroupMirroringdeploymentgroupFieldmask.java new file mode 100644 index 000000000000..3d362af7b900 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringdeploymentgroup/SyncUpdateMirroringDeploymentGroupMirroringdeploymentgroupFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_MirroringdeploymentgroupFieldmask_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringDeploymentGroup; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMirroringDeploymentGroupMirroringdeploymentgroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMirroringDeploymentGroupMirroringdeploymentgroupFieldmask(); + } + + public static void syncUpdateMirroringDeploymentGroupMirroringdeploymentgroupFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringDeploymentGroup mirroringDeploymentGroup = + MirroringDeploymentGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MirroringDeploymentGroup response = + mirroringClient + .updateMirroringDeploymentGroupAsync(mirroringDeploymentGroup, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_MirroringdeploymentgroupFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/AsyncUpdateMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/AsyncUpdateMirroringEndpointGroup.java new file mode 100644 index 000000000000..1313161c5012 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/AsyncUpdateMirroringEndpointGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateMirroringEndpointGroup(); + } + + public static void asyncUpdateMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringEndpointGroupRequest request = + UpdateMirroringEndpointGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.updateMirroringEndpointGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/AsyncUpdateMirroringEndpointGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/AsyncUpdateMirroringEndpointGroupLRO.java new file mode 100644 index 000000000000..f87f977f9527 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/AsyncUpdateMirroringEndpointGroupLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMirroringEndpointGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMirroringEndpointGroupLRO(); + } + + public static void asyncUpdateMirroringEndpointGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringEndpointGroupRequest request = + UpdateMirroringEndpointGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient.updateMirroringEndpointGroupOperationCallable().futureCall(request); + // Do something. + MirroringEndpointGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/SyncUpdateMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/SyncUpdateMirroringEndpointGroup.java new file mode 100644 index 000000000000..ec50f4d5921c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/SyncUpdateMirroringEndpointGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + syncUpdateMirroringEndpointGroup(); + } + + public static void syncUpdateMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringEndpointGroupRequest request = + UpdateMirroringEndpointGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MirroringEndpointGroup response = + mirroringClient.updateMirroringEndpointGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/SyncUpdateMirroringEndpointGroupMirroringendpointgroupFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/SyncUpdateMirroringEndpointGroupMirroringendpointgroupFieldmask.java new file mode 100644 index 000000000000..480523f7392d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroup/SyncUpdateMirroringEndpointGroupMirroringendpointgroupFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_MirroringendpointgroupFieldmask_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroup; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMirroringEndpointGroupMirroringendpointgroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMirroringEndpointGroupMirroringendpointgroupFieldmask(); + } + + public static void syncUpdateMirroringEndpointGroupMirroringendpointgroupFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MirroringEndpointGroup response = + mirroringClient + .updateMirroringEndpointGroupAsync(mirroringEndpointGroup, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_MirroringendpointgroupFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/AsyncUpdateMirroringEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/AsyncUpdateMirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..2f3708b6b1ef --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/AsyncUpdateMirroringEndpointGroupAssociation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMirroringEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + asyncUpdateMirroringEndpointGroupAssociation(); + } + + public static void asyncUpdateMirroringEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringEndpointGroupAssociationRequest request = + UpdateMirroringEndpointGroupAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringEndpointGroupAssociation( + MirroringEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + mirroringClient.updateMirroringEndpointGroupAssociationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/AsyncUpdateMirroringEndpointGroupAssociationLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/AsyncUpdateMirroringEndpointGroupAssociationLRO.java new file mode 100644 index 000000000000..779904a96176 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/AsyncUpdateMirroringEndpointGroupAssociationLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMirroringEndpointGroupAssociationLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMirroringEndpointGroupAssociationLRO(); + } + + public static void asyncUpdateMirroringEndpointGroupAssociationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringEndpointGroupAssociationRequest request = + UpdateMirroringEndpointGroupAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringEndpointGroupAssociation( + MirroringEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + mirroringClient + .updateMirroringEndpointGroupAssociationOperationCallable() + .futureCall(request); + // Do something. + MirroringEndpointGroupAssociation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/SyncUpdateMirroringEndpointGroupAssociation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/SyncUpdateMirroringEndpointGroupAssociation.java new file mode 100644 index 000000000000..ab893f91b8be --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/SyncUpdateMirroringEndpointGroupAssociation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMirroringEndpointGroupAssociation { + + public static void main(String[] args) throws Exception { + syncUpdateMirroringEndpointGroupAssociation(); + } + + public static void syncUpdateMirroringEndpointGroupAssociation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + UpdateMirroringEndpointGroupAssociationRequest request = + UpdateMirroringEndpointGroupAssociationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMirroringEndpointGroupAssociation( + MirroringEndpointGroupAssociation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MirroringEndpointGroupAssociation response = + mirroringClient.updateMirroringEndpointGroupAssociationAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/SyncUpdateMirroringEndpointGroupAssociationMirroringendpointgroupassociationFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/SyncUpdateMirroringEndpointGroupAssociationMirroringendpointgroupassociationFieldmask.java new file mode 100644 index 000000000000..405a5a10c5ae --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroring/updatemirroringendpointgroupassociation/SyncUpdateMirroringEndpointGroupAssociationMirroringendpointgroupassociationFieldmask.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_MirroringendpointgroupassociationFieldmask_sync] +import com.google.cloud.networksecurity.v1.MirroringClient; +import com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMirroringEndpointGroupAssociationMirroringendpointgroupassociationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMirroringEndpointGroupAssociationMirroringendpointgroupassociationFieldmask(); + } + + public static void + syncUpdateMirroringEndpointGroupAssociationMirroringendpointgroupassociationFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (MirroringClient mirroringClient = MirroringClient.create()) { + MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation = + MirroringEndpointGroupAssociation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MirroringEndpointGroupAssociation response = + mirroringClient + .updateMirroringEndpointGroupAssociationAsync( + mirroringEndpointGroupAssociation, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_MirroringendpointgroupassociationFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroringsettings/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroringsettings/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java new file mode 100644 index 000000000000..5ccd670399aa --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroringsettings/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_MirroringSettings_CreateMirroringEndpointGroup_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networksecurity.v1.MirroringSettings; +import java.time.Duration; + +public class SyncCreateMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + syncCreateMirroringEndpointGroup(); + } + + public static void syncCreateMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MirroringSettings.Builder mirroringSettingsBuilder = MirroringSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + mirroringSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_MirroringSettings_CreateMirroringEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroringsettings/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroringsettings/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java new file mode 100644 index 000000000000..b3f3db30b99e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/mirroringsettings/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_MirroringSettings_GetMirroringEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.MirroringSettings; +import java.time.Duration; + +public class SyncGetMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + syncGetMirroringEndpointGroup(); + } + + public static void syncGetMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MirroringSettings.Builder mirroringSettingsBuilder = MirroringSettings.newBuilder(); + mirroringSettingsBuilder + .getMirroringEndpointGroupSettings() + .setRetrySettings( + mirroringSettingsBuilder + .getMirroringEndpointGroupSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MirroringSettings mirroringSettings = mirroringSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_MirroringSettings_GetMirroringEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/AsyncCreateAuthzPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/AsyncCreateAuthzPolicy.java new file mode 100644 index 000000000000..f6ef9fcbaf18 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/AsyncCreateAuthzPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.longrunning.Operation; + +public class AsyncCreateAuthzPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateAuthzPolicy(); + } + + public static void asyncCreateAuthzPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateAuthzPolicyRequest request = + CreateAuthzPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAuthzPolicyId("authzPolicyId1717400543") + .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + networkSecurityClient.createAuthzPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/AsyncCreateAuthzPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/AsyncCreateAuthzPolicyLRO.java new file mode 100644 index 000000000000..39abc94fa64d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/AsyncCreateAuthzPolicyLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateAuthzPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAuthzPolicyLRO(); + } + + public static void asyncCreateAuthzPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateAuthzPolicyRequest request = + CreateAuthzPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAuthzPolicyId("authzPolicyId1717400543") + .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + networkSecurityClient.createAuthzPolicyOperationCallable().futureCall(request); + // Do something. + AuthzPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicy.java new file mode 100644 index 000000000000..3a8e884893bd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.CreateAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateAuthzPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAuthzPolicy(); + } + + public static void syncCreateAuthzPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateAuthzPolicyRequest request = + CreateAuthzPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAuthzPolicyId("authzPolicyId1717400543") + .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AuthzPolicy response = networkSecurityClient.createAuthzPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicyLocationnameAuthzpolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicyLocationnameAuthzpolicyString.java new file mode 100644 index 000000000000..978fb81eb05c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicyLocationnameAuthzpolicyString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_LocationnameAuthzpolicyString_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateAuthzPolicyLocationnameAuthzpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAuthzPolicyLocationnameAuthzpolicyString(); + } + + public static void syncCreateAuthzPolicyLocationnameAuthzpolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + String authzPolicyId = "authzPolicyId1717400543"; + AuthzPolicy response = + networkSecurityClient.createAuthzPolicyAsync(parent, authzPolicy, authzPolicyId).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_LocationnameAuthzpolicyString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicyStringAuthzpolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicyStringAuthzpolicyString.java new file mode 100644 index 000000000000..39d2121ed2e2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createauthzpolicy/SyncCreateAuthzPolicyStringAuthzpolicyString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_StringAuthzpolicyString_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateAuthzPolicyStringAuthzpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAuthzPolicyStringAuthzpolicyString(); + } + + public static void syncCreateAuthzPolicyStringAuthzpolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + String authzPolicyId = "authzPolicyId1717400543"; + AuthzPolicy response = + networkSecurityClient.createAuthzPolicyAsync(parent, authzPolicy, authzPolicyId).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_StringAuthzpolicyString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/AsyncCreateBackendAuthenticationConfig.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/AsyncCreateBackendAuthenticationConfig.java new file mode 100644 index 000000000000..8f00cb8b5345 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/AsyncCreateBackendAuthenticationConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.longrunning.Operation; + +public class AsyncCreateBackendAuthenticationConfig { + + public static void main(String[] args) throws Exception { + asyncCreateBackendAuthenticationConfig(); + } + + public static void asyncCreateBackendAuthenticationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateBackendAuthenticationConfigRequest request = + CreateBackendAuthenticationConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackendAuthenticationConfigId("backendAuthenticationConfigId-396698039") + .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.createBackendAuthenticationConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/AsyncCreateBackendAuthenticationConfigLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/AsyncCreateBackendAuthenticationConfigLRO.java new file mode 100644 index 000000000000..1e7ff184f138 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/AsyncCreateBackendAuthenticationConfigLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateBackendAuthenticationConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateBackendAuthenticationConfigLRO(); + } + + public static void asyncCreateBackendAuthenticationConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateBackendAuthenticationConfigRequest request = + CreateBackendAuthenticationConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackendAuthenticationConfigId("backendAuthenticationConfigId-396698039") + .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient + .createBackendAuthenticationConfigOperationCallable() + .futureCall(request); + // Do something. + BackendAuthenticationConfig response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfig.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfig.java new file mode 100644 index 000000000000..b11f29eb80c1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.CreateBackendAuthenticationConfigRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateBackendAuthenticationConfig { + + public static void main(String[] args) throws Exception { + syncCreateBackendAuthenticationConfig(); + } + + public static void syncCreateBackendAuthenticationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateBackendAuthenticationConfigRequest request = + CreateBackendAuthenticationConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackendAuthenticationConfigId("backendAuthenticationConfigId-396698039") + .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build()) + .build(); + BackendAuthenticationConfig response = + networkSecurityClient.createBackendAuthenticationConfigAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfigLocationnameBackendauthenticationconfigString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfigLocationnameBackendauthenticationconfigString.java new file mode 100644 index 000000000000..f335597c5ac6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfigLocationnameBackendauthenticationconfigString.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_LocationnameBackendauthenticationconfigString_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateBackendAuthenticationConfigLocationnameBackendauthenticationconfigString { + + public static void main(String[] args) throws Exception { + syncCreateBackendAuthenticationConfigLocationnameBackendauthenticationconfigString(); + } + + public static void + syncCreateBackendAuthenticationConfigLocationnameBackendauthenticationconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + String backendAuthenticationConfigId = "backendAuthenticationConfigId-396698039"; + BackendAuthenticationConfig response = + networkSecurityClient + .createBackendAuthenticationConfigAsync( + parent, backendAuthenticationConfig, backendAuthenticationConfigId) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_LocationnameBackendauthenticationconfigString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfigStringBackendauthenticationconfigString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfigStringBackendauthenticationconfigString.java new file mode 100644 index 000000000000..8af059eb7c19 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createbackendauthenticationconfig/SyncCreateBackendAuthenticationConfigStringBackendauthenticationconfigString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_StringBackendauthenticationconfigString_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateBackendAuthenticationConfigStringBackendauthenticationconfigString { + + public static void main(String[] args) throws Exception { + syncCreateBackendAuthenticationConfigStringBackendauthenticationconfigString(); + } + + public static void syncCreateBackendAuthenticationConfigStringBackendauthenticationconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + String backendAuthenticationConfigId = "backendAuthenticationConfigId-396698039"; + BackendAuthenticationConfig response = + networkSecurityClient + .createBackendAuthenticationConfigAsync( + parent, backendAuthenticationConfig, backendAuthenticationConfigId) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_StringBackendauthenticationconfigString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/AsyncCreateGatewaySecurityPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/AsyncCreateGatewaySecurityPolicy.java new file mode 100644 index 000000000000..deae3e4c604c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/AsyncCreateGatewaySecurityPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.longrunning.Operation; + +public class AsyncCreateGatewaySecurityPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateGatewaySecurityPolicy(); + } + + public static void asyncCreateGatewaySecurityPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateGatewaySecurityPolicyRequest request = + CreateGatewaySecurityPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setGatewaySecurityPolicyId("gatewaySecurityPolicyId2047625137") + .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.createGatewaySecurityPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/AsyncCreateGatewaySecurityPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/AsyncCreateGatewaySecurityPolicyLRO.java new file mode 100644 index 000000000000..4f7ccf42be18 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/AsyncCreateGatewaySecurityPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateGatewaySecurityPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncCreateGatewaySecurityPolicyLRO(); + } + + public static void asyncCreateGatewaySecurityPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateGatewaySecurityPolicyRequest request = + CreateGatewaySecurityPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setGatewaySecurityPolicyId("gatewaySecurityPolicyId2047625137") + .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient.createGatewaySecurityPolicyOperationCallable().futureCall(request); + // Do something. + GatewaySecurityPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicy.java new file mode 100644 index 000000000000..af83040f89b5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_sync] +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateGatewaySecurityPolicy { + + public static void main(String[] args) throws Exception { + syncCreateGatewaySecurityPolicy(); + } + + public static void syncCreateGatewaySecurityPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateGatewaySecurityPolicyRequest request = + CreateGatewaySecurityPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setGatewaySecurityPolicyId("gatewaySecurityPolicyId2047625137") + .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build()) + .build(); + GatewaySecurityPolicy response = + networkSecurityClient.createGatewaySecurityPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicyLocationnameGatewaysecuritypolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicyLocationnameGatewaysecuritypolicyString.java new file mode 100644 index 000000000000..ab069d126ca0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicyLocationnameGatewaysecuritypolicyString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_LocationnameGatewaysecuritypolicyString_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateGatewaySecurityPolicyLocationnameGatewaysecuritypolicyString { + + public static void main(String[] args) throws Exception { + syncCreateGatewaySecurityPolicyLocationnameGatewaysecuritypolicyString(); + } + + public static void syncCreateGatewaySecurityPolicyLocationnameGatewaysecuritypolicyString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + String gatewaySecurityPolicyId = "gatewaySecurityPolicyId2047625137"; + GatewaySecurityPolicy response = + networkSecurityClient + .createGatewaySecurityPolicyAsync( + parent, gatewaySecurityPolicy, gatewaySecurityPolicyId) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_LocationnameGatewaysecuritypolicyString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicyStringGatewaysecuritypolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicyStringGatewaysecuritypolicyString.java new file mode 100644 index 000000000000..2b1cf1b121c1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicy/SyncCreateGatewaySecurityPolicyStringGatewaysecuritypolicyString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_StringGatewaysecuritypolicyString_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateGatewaySecurityPolicyStringGatewaysecuritypolicyString { + + public static void main(String[] args) throws Exception { + syncCreateGatewaySecurityPolicyStringGatewaysecuritypolicyString(); + } + + public static void syncCreateGatewaySecurityPolicyStringGatewaysecuritypolicyString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + String gatewaySecurityPolicyId = "gatewaySecurityPolicyId2047625137"; + GatewaySecurityPolicy response = + networkSecurityClient + .createGatewaySecurityPolicyAsync( + parent, gatewaySecurityPolicy, gatewaySecurityPolicyId) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_StringGatewaysecuritypolicyString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/AsyncCreateGatewaySecurityPolicyRule.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/AsyncCreateGatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..3556cc7027da --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/AsyncCreateGatewaySecurityPolicyRule.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.longrunning.Operation; + +public class AsyncCreateGatewaySecurityPolicyRule { + + public static void main(String[] args) throws Exception { + asyncCreateGatewaySecurityPolicyRule(); + } + + public static void asyncCreateGatewaySecurityPolicyRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateGatewaySecurityPolicyRuleRequest request = + CreateGatewaySecurityPolicyRuleRequest.newBuilder() + .setParent( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build()) + .setGatewaySecurityPolicyRuleId("gatewaySecurityPolicyRuleId-1764962099") + .build(); + ApiFuture future = + networkSecurityClient.createGatewaySecurityPolicyRuleCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/AsyncCreateGatewaySecurityPolicyRuleLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/AsyncCreateGatewaySecurityPolicyRuleLRO.java new file mode 100644 index 000000000000..4745b98c38a7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/AsyncCreateGatewaySecurityPolicyRuleLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateGatewaySecurityPolicyRuleLRO { + + public static void main(String[] args) throws Exception { + asyncCreateGatewaySecurityPolicyRuleLRO(); + } + + public static void asyncCreateGatewaySecurityPolicyRuleLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateGatewaySecurityPolicyRuleRequest request = + CreateGatewaySecurityPolicyRuleRequest.newBuilder() + .setParent( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build()) + .setGatewaySecurityPolicyRuleId("gatewaySecurityPolicyRuleId-1764962099") + .build(); + OperationFuture future = + networkSecurityClient + .createGatewaySecurityPolicyRuleOperationCallable() + .futureCall(request); + // Do something. + GatewaySecurityPolicyRule response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRule.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..81d30c63dd63 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRule.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_sync] +import com.google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateGatewaySecurityPolicyRule { + + public static void main(String[] args) throws Exception { + syncCreateGatewaySecurityPolicyRule(); + } + + public static void syncCreateGatewaySecurityPolicyRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateGatewaySecurityPolicyRuleRequest request = + CreateGatewaySecurityPolicyRuleRequest.newBuilder() + .setParent( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build()) + .setGatewaySecurityPolicyRuleId("gatewaySecurityPolicyRuleId-1764962099") + .build(); + GatewaySecurityPolicyRule response = + networkSecurityClient.createGatewaySecurityPolicyRuleAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRuleGatewaysecuritypolicynameGatewaysecuritypolicyruleString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRuleGatewaysecuritypolicynameGatewaysecuritypolicyruleString.java new file mode 100644 index 000000000000..1125212f15b8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRuleGatewaysecuritypolicynameGatewaysecuritypolicyruleString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_GatewaysecuritypolicynameGatewaysecuritypolicyruleString_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public +class SyncCreateGatewaySecurityPolicyRuleGatewaysecuritypolicynameGatewaysecuritypolicyruleString { + + public static void main(String[] args) throws Exception { + syncCreateGatewaySecurityPolicyRuleGatewaysecuritypolicynameGatewaysecuritypolicyruleString(); + } + + public static void + syncCreateGatewaySecurityPolicyRuleGatewaysecuritypolicynameGatewaysecuritypolicyruleString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GatewaySecurityPolicyName parent = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + String gatewaySecurityPolicyRuleId = "gatewaySecurityPolicyRuleId-1764962099"; + GatewaySecurityPolicyRule response = + networkSecurityClient + .createGatewaySecurityPolicyRuleAsync( + parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_GatewaysecuritypolicynameGatewaysecuritypolicyruleString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRuleStringGatewaysecuritypolicyruleString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRuleStringGatewaysecuritypolicyruleString.java new file mode 100644 index 000000000000..ff95d0c4e80f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/creategatewaysecuritypolicyrule/SyncCreateGatewaySecurityPolicyRuleStringGatewaysecuritypolicyruleString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_StringGatewaysecuritypolicyruleString_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncCreateGatewaySecurityPolicyRuleStringGatewaysecuritypolicyruleString { + + public static void main(String[] args) throws Exception { + syncCreateGatewaySecurityPolicyRuleStringGatewaysecuritypolicyruleString(); + } + + public static void syncCreateGatewaySecurityPolicyRuleStringGatewaysecuritypolicyruleString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString(); + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + String gatewaySecurityPolicyRuleId = "gatewaySecurityPolicyRuleId-1764962099"; + GatewaySecurityPolicyRule response = + networkSecurityClient + .createGatewaySecurityPolicyRuleAsync( + parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_StringGatewaysecuritypolicyruleString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/AsyncCreateTlsInspectionPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/AsyncCreateTlsInspectionPolicy.java new file mode 100644 index 000000000000..144de244aca8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/AsyncCreateTlsInspectionPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.longrunning.Operation; + +public class AsyncCreateTlsInspectionPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateTlsInspectionPolicy(); + } + + public static void asyncCreateTlsInspectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateTlsInspectionPolicyRequest request = + CreateTlsInspectionPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTlsInspectionPolicyId("tlsInspectionPolicyId-647545892") + .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.createTlsInspectionPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/AsyncCreateTlsInspectionPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/AsyncCreateTlsInspectionPolicyLRO.java new file mode 100644 index 000000000000..aad68d5a4625 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/AsyncCreateTlsInspectionPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; + +public class AsyncCreateTlsInspectionPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncCreateTlsInspectionPolicyLRO(); + } + + public static void asyncCreateTlsInspectionPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateTlsInspectionPolicyRequest request = + CreateTlsInspectionPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTlsInspectionPolicyId("tlsInspectionPolicyId-647545892") + .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient.createTlsInspectionPolicyOperationCallable().futureCall(request); + // Do something. + TlsInspectionPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicy.java new file mode 100644 index 000000000000..73433efc1394 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_sync] +import com.google.cloud.networksecurity.v1.CreateTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; + +public class SyncCreateTlsInspectionPolicy { + + public static void main(String[] args) throws Exception { + syncCreateTlsInspectionPolicy(); + } + + public static void syncCreateTlsInspectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateTlsInspectionPolicyRequest request = + CreateTlsInspectionPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTlsInspectionPolicyId("tlsInspectionPolicyId-647545892") + .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) + .build(); + TlsInspectionPolicy response = + networkSecurityClient.createTlsInspectionPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicyLocationnameTlsinspectionpolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicyLocationnameTlsinspectionpolicyString.java new file mode 100644 index 000000000000..e35275634a1c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicyLocationnameTlsinspectionpolicyString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_LocationnameTlsinspectionpolicyString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; + +public class SyncCreateTlsInspectionPolicyLocationnameTlsinspectionpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateTlsInspectionPolicyLocationnameTlsinspectionpolicyString(); + } + + public static void syncCreateTlsInspectionPolicyLocationnameTlsinspectionpolicyString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + String tlsInspectionPolicyId = "tlsInspectionPolicyId-647545892"; + TlsInspectionPolicy response = + networkSecurityClient + .createTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_LocationnameTlsinspectionpolicyString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicyStringTlsinspectionpolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicyStringTlsinspectionpolicyString.java new file mode 100644 index 000000000000..9d0941d0b4f6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createtlsinspectionpolicy/SyncCreateTlsInspectionPolicyStringTlsinspectionpolicyString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_StringTlsinspectionpolicyString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; + +public class SyncCreateTlsInspectionPolicyStringTlsinspectionpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateTlsInspectionPolicyStringTlsinspectionpolicyString(); + } + + public static void syncCreateTlsInspectionPolicyStringTlsinspectionpolicyString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + String tlsInspectionPolicyId = "tlsInspectionPolicyId-647545892"; + TlsInspectionPolicy response = + networkSecurityClient + .createTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_StringTlsinspectionpolicyString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/AsyncCreateUrlList.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/AsyncCreateUrlList.java new file mode 100644 index 000000000000..3c92af3388b2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/AsyncCreateUrlList.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateUrlList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateUrlListRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.longrunning.Operation; + +public class AsyncCreateUrlList { + + public static void main(String[] args) throws Exception { + asyncCreateUrlList(); + } + + public static void asyncCreateUrlList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateUrlListRequest request = + CreateUrlListRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUrlListId("urlListId-564417368") + .setUrlList(UrlList.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.createUrlListCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateUrlList_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/AsyncCreateUrlListLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/AsyncCreateUrlListLRO.java new file mode 100644 index 000000000000..0f1ccf4f7118 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/AsyncCreateUrlListLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateUrlList_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateUrlListRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UrlList; + +public class AsyncCreateUrlListLRO { + + public static void main(String[] args) throws Exception { + asyncCreateUrlListLRO(); + } + + public static void asyncCreateUrlListLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateUrlListRequest request = + CreateUrlListRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUrlListId("urlListId-564417368") + .setUrlList(UrlList.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient.createUrlListOperationCallable().futureCall(request); + // Do something. + UrlList response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateUrlList_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlList.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlList.java new file mode 100644 index 000000000000..ae2fef3171d6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlList.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateUrlList_sync] +import com.google.cloud.networksecurity.v1.CreateUrlListRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; + +public class SyncCreateUrlList { + + public static void main(String[] args) throws Exception { + syncCreateUrlList(); + } + + public static void syncCreateUrlList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + CreateUrlListRequest request = + CreateUrlListRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUrlListId("urlListId-564417368") + .setUrlList(UrlList.newBuilder().build()) + .build(); + UrlList response = networkSecurityClient.createUrlListAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateUrlList_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlListLocationnameUrllistString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlListLocationnameUrllistString.java new file mode 100644 index 000000000000..4607c22dde71 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlListLocationnameUrllistString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateUrlList_LocationnameUrllistString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; + +public class SyncCreateUrlListLocationnameUrllistString { + + public static void main(String[] args) throws Exception { + syncCreateUrlListLocationnameUrllistString(); + } + + public static void syncCreateUrlListLocationnameUrllistString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UrlList urlList = UrlList.newBuilder().build(); + String urlListId = "urlListId-564417368"; + UrlList response = networkSecurityClient.createUrlListAsync(parent, urlList, urlListId).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateUrlList_LocationnameUrllistString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlListStringUrllistString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlListStringUrllistString.java new file mode 100644 index 000000000000..d03d15a90fae --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/createurllist/SyncCreateUrlListStringUrllistString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_CreateUrlList_StringUrllistString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; + +public class SyncCreateUrlListStringUrllistString { + + public static void main(String[] args) throws Exception { + syncCreateUrlListStringUrllistString(); + } + + public static void syncCreateUrlListStringUrllistString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + UrlList urlList = UrlList.newBuilder().build(); + String urlListId = "urlListId-564417368"; + UrlList response = networkSecurityClient.createUrlListAsync(parent, urlList, urlListId).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_CreateUrlList_StringUrllistString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/AsyncDeleteAuthzPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/AsyncDeleteAuthzPolicy.java new file mode 100644 index 000000000000..91ed39e4b5c6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/AsyncDeleteAuthzPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteAuthzPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteAuthzPolicy(); + } + + public static void asyncDeleteAuthzPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteAuthzPolicyRequest request = + DeleteAuthzPolicyRequest.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + networkSecurityClient.deleteAuthzPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/AsyncDeleteAuthzPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/AsyncDeleteAuthzPolicyLRO.java new file mode 100644 index 000000000000..8572cd67a0bd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/AsyncDeleteAuthzPolicyLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAuthzPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAuthzPolicyLRO(); + } + + public static void asyncDeleteAuthzPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteAuthzPolicyRequest request = + DeleteAuthzPolicyRequest.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + networkSecurityClient.deleteAuthzPolicyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicy.java new file mode 100644 index 000000000000..133641cadd91 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.DeleteAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthzPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteAuthzPolicy(); + } + + public static void syncDeleteAuthzPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteAuthzPolicyRequest request = + DeleteAuthzPolicyRequest.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) + .setRequestId("requestId693933066") + .build(); + networkSecurityClient.deleteAuthzPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicyAuthzpolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicyAuthzpolicyname.java new file mode 100644 index 000000000000..32e1b3c3e3da --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicyAuthzpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_Authzpolicyname_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthzPolicyAuthzpolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteAuthzPolicyAuthzpolicyname(); + } + + public static void syncDeleteAuthzPolicyAuthzpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + AuthzPolicyName name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"); + networkSecurityClient.deleteAuthzPolicyAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_Authzpolicyname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicyString.java new file mode 100644 index 000000000000..ca9c6baedcbc --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteauthzpolicy/SyncDeleteAuthzPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_String_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthzPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteAuthzPolicyString(); + } + + public static void syncDeleteAuthzPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString(); + networkSecurityClient.deleteAuthzPolicyAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/AsyncDeleteBackendAuthenticationConfig.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/AsyncDeleteBackendAuthenticationConfig.java new file mode 100644 index 000000000000..ff757988758a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/AsyncDeleteBackendAuthenticationConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteBackendAuthenticationConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteBackendAuthenticationConfig(); + } + + public static void asyncDeleteBackendAuthenticationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteBackendAuthenticationConfigRequest request = + DeleteBackendAuthenticationConfigRequest.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + networkSecurityClient.deleteBackendAuthenticationConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/AsyncDeleteBackendAuthenticationConfigLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/AsyncDeleteBackendAuthenticationConfigLRO.java new file mode 100644 index 000000000000..21a51f59040a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/AsyncDeleteBackendAuthenticationConfigLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteBackendAuthenticationConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteBackendAuthenticationConfigLRO(); + } + + public static void asyncDeleteBackendAuthenticationConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteBackendAuthenticationConfigRequest request = + DeleteBackendAuthenticationConfigRequest.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .setEtag("etag3123477") + .build(); + OperationFuture future = + networkSecurityClient + .deleteBackendAuthenticationConfigOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfig.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfig.java new file mode 100644 index 000000000000..c00b429840e7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.DeleteBackendAuthenticationConfigRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackendAuthenticationConfig { + + public static void main(String[] args) throws Exception { + syncDeleteBackendAuthenticationConfig(); + } + + public static void syncDeleteBackendAuthenticationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteBackendAuthenticationConfigRequest request = + DeleteBackendAuthenticationConfigRequest.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .setEtag("etag3123477") + .build(); + networkSecurityClient.deleteBackendAuthenticationConfigAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfigBackendauthenticationconfigname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfigBackendauthenticationconfigname.java new file mode 100644 index 000000000000..66e3129ce07e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfigBackendauthenticationconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_Backendauthenticationconfigname_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackendAuthenticationConfigBackendauthenticationconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteBackendAuthenticationConfigBackendauthenticationconfigname(); + } + + public static void syncDeleteBackendAuthenticationConfigBackendauthenticationconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + BackendAuthenticationConfigName name = + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"); + networkSecurityClient.deleteBackendAuthenticationConfigAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_Backendauthenticationconfigname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfigString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfigString.java new file mode 100644 index 000000000000..8af994f95df0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletebackendauthenticationconfig/SyncDeleteBackendAuthenticationConfigString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_String_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackendAuthenticationConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteBackendAuthenticationConfigString(); + } + + public static void syncDeleteBackendAuthenticationConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString(); + networkSecurityClient.deleteBackendAuthenticationConfigAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/AsyncDeleteGatewaySecurityPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/AsyncDeleteGatewaySecurityPolicy.java new file mode 100644 index 000000000000..f5272ebef4e2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/AsyncDeleteGatewaySecurityPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteGatewaySecurityPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteGatewaySecurityPolicy(); + } + + public static void asyncDeleteGatewaySecurityPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteGatewaySecurityPolicyRequest request = + DeleteGatewaySecurityPolicyRequest.newBuilder() + .setName( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .build(); + ApiFuture future = + networkSecurityClient.deleteGatewaySecurityPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/AsyncDeleteGatewaySecurityPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/AsyncDeleteGatewaySecurityPolicyLRO.java new file mode 100644 index 000000000000..6273b614dbd5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/AsyncDeleteGatewaySecurityPolicyLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteGatewaySecurityPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteGatewaySecurityPolicyLRO(); + } + + public static void asyncDeleteGatewaySecurityPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteGatewaySecurityPolicyRequest request = + DeleteGatewaySecurityPolicyRequest.newBuilder() + .setName( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .build(); + OperationFuture future = + networkSecurityClient.deleteGatewaySecurityPolicyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicy.java new file mode 100644 index 000000000000..ca98d31e7be1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_sync] +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewaySecurityPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteGatewaySecurityPolicy(); + } + + public static void syncDeleteGatewaySecurityPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteGatewaySecurityPolicyRequest request = + DeleteGatewaySecurityPolicyRequest.newBuilder() + .setName( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .build(); + networkSecurityClient.deleteGatewaySecurityPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicyGatewaysecuritypolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicyGatewaysecuritypolicyname.java new file mode 100644 index 000000000000..c8ea0c917dd1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicyGatewaysecuritypolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_Gatewaysecuritypolicyname_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewaySecurityPolicyGatewaysecuritypolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteGatewaySecurityPolicyGatewaysecuritypolicyname(); + } + + public static void syncDeleteGatewaySecurityPolicyGatewaysecuritypolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GatewaySecurityPolicyName name = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + networkSecurityClient.deleteGatewaySecurityPolicyAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_Gatewaysecuritypolicyname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicyString.java new file mode 100644 index 000000000000..0e58ae83ac5c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicy/SyncDeleteGatewaySecurityPolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_String_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewaySecurityPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteGatewaySecurityPolicyString(); + } + + public static void syncDeleteGatewaySecurityPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString(); + networkSecurityClient.deleteGatewaySecurityPolicyAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/AsyncDeleteGatewaySecurityPolicyRule.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/AsyncDeleteGatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..fb2639e4cf5c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/AsyncDeleteGatewaySecurityPolicyRule.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteGatewaySecurityPolicyRule { + + public static void main(String[] args) throws Exception { + asyncDeleteGatewaySecurityPolicyRule(); + } + + public static void asyncDeleteGatewaySecurityPolicyRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteGatewaySecurityPolicyRuleRequest request = + DeleteGatewaySecurityPolicyRuleRequest.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .build(); + ApiFuture future = + networkSecurityClient.deleteGatewaySecurityPolicyRuleCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/AsyncDeleteGatewaySecurityPolicyRuleLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/AsyncDeleteGatewaySecurityPolicyRuleLRO.java new file mode 100644 index 000000000000..93a1945c0e19 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/AsyncDeleteGatewaySecurityPolicyRuleLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteGatewaySecurityPolicyRuleLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteGatewaySecurityPolicyRuleLRO(); + } + + public static void asyncDeleteGatewaySecurityPolicyRuleLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteGatewaySecurityPolicyRuleRequest request = + DeleteGatewaySecurityPolicyRuleRequest.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .build(); + OperationFuture future = + networkSecurityClient + .deleteGatewaySecurityPolicyRuleOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRule.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..9715239bedbe --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRule.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_sync] +import com.google.cloud.networksecurity.v1.DeleteGatewaySecurityPolicyRuleRequest; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewaySecurityPolicyRule { + + public static void main(String[] args) throws Exception { + syncDeleteGatewaySecurityPolicyRule(); + } + + public static void syncDeleteGatewaySecurityPolicyRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteGatewaySecurityPolicyRuleRequest request = + DeleteGatewaySecurityPolicyRuleRequest.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .build(); + networkSecurityClient.deleteGatewaySecurityPolicyRuleAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename.java new file mode 100644 index 000000000000..45d548a4019a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_Gatewaysecuritypolicyrulename_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename { + + public static void main(String[] args) throws Exception { + syncDeleteGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename(); + } + + public static void syncDeleteGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GatewaySecurityPolicyRuleName name = + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"); + networkSecurityClient.deleteGatewaySecurityPolicyRuleAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_Gatewaysecuritypolicyrulename_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRuleString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRuleString.java new file mode 100644 index 000000000000..a2c37c782a89 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletegatewaysecuritypolicyrule/SyncDeleteGatewaySecurityPolicyRuleString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_String_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewaySecurityPolicyRuleString { + + public static void main(String[] args) throws Exception { + syncDeleteGatewaySecurityPolicyRuleString(); + } + + public static void syncDeleteGatewaySecurityPolicyRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString(); + networkSecurityClient.deleteGatewaySecurityPolicyRuleAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/AsyncDeleteTlsInspectionPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/AsyncDeleteTlsInspectionPolicy.java new file mode 100644 index 000000000000..03bd8029c4be --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/AsyncDeleteTlsInspectionPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; +import com.google.longrunning.Operation; + +public class AsyncDeleteTlsInspectionPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteTlsInspectionPolicy(); + } + + public static void asyncDeleteTlsInspectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteTlsInspectionPolicyRequest request = + DeleteTlsInspectionPolicyRequest.newBuilder() + .setName( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .setForce(true) + .build(); + ApiFuture future = + networkSecurityClient.deleteTlsInspectionPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/AsyncDeleteTlsInspectionPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/AsyncDeleteTlsInspectionPolicyLRO.java new file mode 100644 index 000000000000..626718be9c1d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/AsyncDeleteTlsInspectionPolicyLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTlsInspectionPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteTlsInspectionPolicyLRO(); + } + + public static void asyncDeleteTlsInspectionPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteTlsInspectionPolicyRequest request = + DeleteTlsInspectionPolicyRequest.newBuilder() + .setName( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .setForce(true) + .build(); + OperationFuture future = + networkSecurityClient.deleteTlsInspectionPolicyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicy.java new file mode 100644 index 000000000000..5bd067505e93 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_sync] +import com.google.cloud.networksecurity.v1.DeleteTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; +import com.google.protobuf.Empty; + +public class SyncDeleteTlsInspectionPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteTlsInspectionPolicy(); + } + + public static void syncDeleteTlsInspectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteTlsInspectionPolicyRequest request = + DeleteTlsInspectionPolicyRequest.newBuilder() + .setName( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .setForce(true) + .build(); + networkSecurityClient.deleteTlsInspectionPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicyString.java new file mode 100644 index 000000000000..590995a7f579 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_String_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; +import com.google.protobuf.Empty; + +public class SyncDeleteTlsInspectionPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteTlsInspectionPolicyString(); + } + + public static void syncDeleteTlsInspectionPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString(); + networkSecurityClient.deleteTlsInspectionPolicyAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicyTlsinspectionpolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicyTlsinspectionpolicyname.java new file mode 100644 index 000000000000..0680f66642d9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deletetlsinspectionpolicy/SyncDeleteTlsInspectionPolicyTlsinspectionpolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_Tlsinspectionpolicyname_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; +import com.google.protobuf.Empty; + +public class SyncDeleteTlsInspectionPolicyTlsinspectionpolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteTlsInspectionPolicyTlsinspectionpolicyname(); + } + + public static void syncDeleteTlsInspectionPolicyTlsinspectionpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + TlsInspectionPolicyName name = + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"); + networkSecurityClient.deleteTlsInspectionPolicyAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_Tlsinspectionpolicyname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/AsyncDeleteUrlList.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/AsyncDeleteUrlList.java new file mode 100644 index 000000000000..d1a98af4b999 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/AsyncDeleteUrlList.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteUrlListRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlListName; +import com.google.longrunning.Operation; + +public class AsyncDeleteUrlList { + + public static void main(String[] args) throws Exception { + asyncDeleteUrlList(); + } + + public static void asyncDeleteUrlList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteUrlListRequest request = + DeleteUrlListRequest.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .build(); + ApiFuture future = + networkSecurityClient.deleteUrlListCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/AsyncDeleteUrlListLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/AsyncDeleteUrlListLRO.java new file mode 100644 index 000000000000..567b89739b69 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/AsyncDeleteUrlListLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteUrlListRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UrlListName; +import com.google.protobuf.Empty; + +public class AsyncDeleteUrlListLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteUrlListLRO(); + } + + public static void asyncDeleteUrlListLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteUrlListRequest request = + DeleteUrlListRequest.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .build(); + OperationFuture future = + networkSecurityClient.deleteUrlListOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlList.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlList.java new file mode 100644 index 000000000000..89b41f5fa0dc --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlList.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_sync] +import com.google.cloud.networksecurity.v1.DeleteUrlListRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlListName; +import com.google.protobuf.Empty; + +public class SyncDeleteUrlList { + + public static void main(String[] args) throws Exception { + syncDeleteUrlList(); + } + + public static void syncDeleteUrlList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + DeleteUrlListRequest request = + DeleteUrlListRequest.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .build(); + networkSecurityClient.deleteUrlListAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlListString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlListString.java new file mode 100644 index 000000000000..12259a8dac31 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlListString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_String_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlListName; +import com.google.protobuf.Empty; + +public class SyncDeleteUrlListString { + + public static void main(String[] args) throws Exception { + syncDeleteUrlListString(); + } + + public static void syncDeleteUrlListString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString(); + networkSecurityClient.deleteUrlListAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlListUrllistname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlListUrllistname.java new file mode 100644 index 000000000000..0ff8dde79cca --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/deleteurllist/SyncDeleteUrlListUrllistname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_Urllistname_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlListName; +import com.google.protobuf.Empty; + +public class SyncDeleteUrlListUrllistname { + + public static void main(String[] args) throws Exception { + syncDeleteUrlListUrllistname(); + } + + public static void syncDeleteUrlListUrllistname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UrlListName name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]"); + networkSecurityClient.deleteUrlListAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_Urllistname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/AsyncGetAuthzPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/AsyncGetAuthzPolicy.java new file mode 100644 index 000000000000..379ee7eecb77 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/AsyncGetAuthzPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class AsyncGetAuthzPolicy { + + public static void main(String[] args) throws Exception { + asyncGetAuthzPolicy(); + } + + public static void asyncGetAuthzPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetAuthzPolicyRequest request = + GetAuthzPolicyRequest.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) + .build(); + ApiFuture future = + networkSecurityClient.getAuthzPolicyCallable().futureCall(request); + // Do something. + AuthzPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicy.java new file mode 100644 index 000000000000..a8c863875c48 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.GetAuthzPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetAuthzPolicy { + + public static void main(String[] args) throws Exception { + syncGetAuthzPolicy(); + } + + public static void syncGetAuthzPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetAuthzPolicyRequest request = + GetAuthzPolicyRequest.newBuilder() + .setName(AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString()) + .build(); + AuthzPolicy response = networkSecurityClient.getAuthzPolicy(request); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicyAuthzpolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicyAuthzpolicyname.java new file mode 100644 index 000000000000..eb347149b000 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicyAuthzpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_Authzpolicyname_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetAuthzPolicyAuthzpolicyname { + + public static void main(String[] args) throws Exception { + syncGetAuthzPolicyAuthzpolicyname(); + } + + public static void syncGetAuthzPolicyAuthzpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + AuthzPolicyName name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"); + AuthzPolicy response = networkSecurityClient.getAuthzPolicy(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_Authzpolicyname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicyString.java new file mode 100644 index 000000000000..93ddacd22dd5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getauthzpolicy/SyncGetAuthzPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_String_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.AuthzPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetAuthzPolicyString { + + public static void main(String[] args) throws Exception { + syncGetAuthzPolicyString(); + } + + public static void syncGetAuthzPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = AuthzPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]").toString(); + AuthzPolicy response = networkSecurityClient.getAuthzPolicy(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/AsyncGetBackendAuthenticationConfig.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/AsyncGetBackendAuthenticationConfig.java new file mode 100644 index 000000000000..13ce517880a5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/AsyncGetBackendAuthenticationConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class AsyncGetBackendAuthenticationConfig { + + public static void main(String[] args) throws Exception { + asyncGetBackendAuthenticationConfig(); + } + + public static void asyncGetBackendAuthenticationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetBackendAuthenticationConfigRequest request = + GetBackendAuthenticationConfigRequest.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .build(); + ApiFuture future = + networkSecurityClient.getBackendAuthenticationConfigCallable().futureCall(request); + // Do something. + BackendAuthenticationConfig response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfig.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfig.java new file mode 100644 index 000000000000..fd475f066745 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.GetBackendAuthenticationConfigRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetBackendAuthenticationConfig { + + public static void main(String[] args) throws Exception { + syncGetBackendAuthenticationConfig(); + } + + public static void syncGetBackendAuthenticationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetBackendAuthenticationConfigRequest request = + GetBackendAuthenticationConfigRequest.newBuilder() + .setName( + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString()) + .build(); + BackendAuthenticationConfig response = + networkSecurityClient.getBackendAuthenticationConfig(request); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfigBackendauthenticationconfigname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfigBackendauthenticationconfigname.java new file mode 100644 index 000000000000..1286f0110f5b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfigBackendauthenticationconfigname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_Backendauthenticationconfigname_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetBackendAuthenticationConfigBackendauthenticationconfigname { + + public static void main(String[] args) throws Exception { + syncGetBackendAuthenticationConfigBackendauthenticationconfigname(); + } + + public static void syncGetBackendAuthenticationConfigBackendauthenticationconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + BackendAuthenticationConfigName name = + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"); + BackendAuthenticationConfig response = + networkSecurityClient.getBackendAuthenticationConfig(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_Backendauthenticationconfigname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfigString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfigString.java new file mode 100644 index 000000000000..c7f3fbcda672 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getbackendauthenticationconfig/SyncGetBackendAuthenticationConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_String_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfigName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetBackendAuthenticationConfigString { + + public static void main(String[] args) throws Exception { + syncGetBackendAuthenticationConfigString(); + } + + public static void syncGetBackendAuthenticationConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = + BackendAuthenticationConfigName.of( + "[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]") + .toString(); + BackendAuthenticationConfig response = + networkSecurityClient.getBackendAuthenticationConfig(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/AsyncGetGatewaySecurityPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/AsyncGetGatewaySecurityPolicy.java new file mode 100644 index 000000000000..eb9a5247b709 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/AsyncGetGatewaySecurityPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class AsyncGetGatewaySecurityPolicy { + + public static void main(String[] args) throws Exception { + asyncGetGatewaySecurityPolicy(); + } + + public static void asyncGetGatewaySecurityPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetGatewaySecurityPolicyRequest request = + GetGatewaySecurityPolicyRequest.newBuilder() + .setName( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .build(); + ApiFuture future = + networkSecurityClient.getGatewaySecurityPolicyCallable().futureCall(request); + // Do something. + GatewaySecurityPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicy.java new file mode 100644 index 000000000000..7c514405d42a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetGatewaySecurityPolicy { + + public static void main(String[] args) throws Exception { + syncGetGatewaySecurityPolicy(); + } + + public static void syncGetGatewaySecurityPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetGatewaySecurityPolicyRequest request = + GetGatewaySecurityPolicyRequest.newBuilder() + .setName( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .build(); + GatewaySecurityPolicy response = networkSecurityClient.getGatewaySecurityPolicy(request); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicyGatewaysecuritypolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicyGatewaysecuritypolicyname.java new file mode 100644 index 000000000000..4c84ad53685a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicyGatewaysecuritypolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_Gatewaysecuritypolicyname_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetGatewaySecurityPolicyGatewaysecuritypolicyname { + + public static void main(String[] args) throws Exception { + syncGetGatewaySecurityPolicyGatewaysecuritypolicyname(); + } + + public static void syncGetGatewaySecurityPolicyGatewaysecuritypolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GatewaySecurityPolicyName name = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + GatewaySecurityPolicy response = networkSecurityClient.getGatewaySecurityPolicy(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_Gatewaysecuritypolicyname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicyString.java new file mode 100644 index 000000000000..0358864f4b36 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicy/SyncGetGatewaySecurityPolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_String_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetGatewaySecurityPolicyString { + + public static void main(String[] args) throws Exception { + syncGetGatewaySecurityPolicyString(); + } + + public static void syncGetGatewaySecurityPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString(); + GatewaySecurityPolicy response = networkSecurityClient.getGatewaySecurityPolicy(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/AsyncGetGatewaySecurityPolicyRule.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/AsyncGetGatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..5fd8c3ad4cbc --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/AsyncGetGatewaySecurityPolicyRule.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class AsyncGetGatewaySecurityPolicyRule { + + public static void main(String[] args) throws Exception { + asyncGetGatewaySecurityPolicyRule(); + } + + public static void asyncGetGatewaySecurityPolicyRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetGatewaySecurityPolicyRuleRequest request = + GetGatewaySecurityPolicyRuleRequest.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .build(); + ApiFuture future = + networkSecurityClient.getGatewaySecurityPolicyRuleCallable().futureCall(request); + // Do something. + GatewaySecurityPolicyRule response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRule.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..bb18a7352d7a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRule.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.GetGatewaySecurityPolicyRuleRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetGatewaySecurityPolicyRule { + + public static void main(String[] args) throws Exception { + syncGetGatewaySecurityPolicyRule(); + } + + public static void syncGetGatewaySecurityPolicyRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetGatewaySecurityPolicyRuleRequest request = + GetGatewaySecurityPolicyRuleRequest.newBuilder() + .setName( + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString()) + .build(); + GatewaySecurityPolicyRule response = + networkSecurityClient.getGatewaySecurityPolicyRule(request); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename.java new file mode 100644 index 000000000000..1f35cfc75b73 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_Gatewaysecuritypolicyrulename_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename { + + public static void main(String[] args) throws Exception { + syncGetGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename(); + } + + public static void syncGetGatewaySecurityPolicyRuleGatewaysecuritypolicyrulename() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GatewaySecurityPolicyRuleName name = + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"); + GatewaySecurityPolicyRule response = networkSecurityClient.getGatewaySecurityPolicyRule(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_Gatewaysecuritypolicyrulename_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRuleString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRuleString.java new file mode 100644 index 000000000000..07ff40a4d969 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getgatewaysecuritypolicyrule/SyncGetGatewaySecurityPolicyRuleString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_String_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRuleName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncGetGatewaySecurityPolicyRuleString { + + public static void main(String[] args) throws Exception { + syncGetGatewaySecurityPolicyRuleString(); + } + + public static void syncGetGatewaySecurityPolicyRuleString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = + GatewaySecurityPolicyRuleName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]") + .toString(); + GatewaySecurityPolicyRule response = networkSecurityClient.getGatewaySecurityPolicyRule(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/AsyncGetTlsInspectionPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/AsyncGetTlsInspectionPolicy.java new file mode 100644 index 000000000000..85ad10c69fec --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/AsyncGetTlsInspectionPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; + +public class AsyncGetTlsInspectionPolicy { + + public static void main(String[] args) throws Exception { + asyncGetTlsInspectionPolicy(); + } + + public static void asyncGetTlsInspectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetTlsInspectionPolicyRequest request = + GetTlsInspectionPolicyRequest.newBuilder() + .setName( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .build(); + ApiFuture future = + networkSecurityClient.getTlsInspectionPolicyCallable().futureCall(request); + // Do something. + TlsInspectionPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicy.java new file mode 100644 index 000000000000..2a3a8e504f37 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_sync] +import com.google.cloud.networksecurity.v1.GetTlsInspectionPolicyRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; + +public class SyncGetTlsInspectionPolicy { + + public static void main(String[] args) throws Exception { + syncGetTlsInspectionPolicy(); + } + + public static void syncGetTlsInspectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetTlsInspectionPolicyRequest request = + GetTlsInspectionPolicyRequest.newBuilder() + .setName( + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString()) + .build(); + TlsInspectionPolicy response = networkSecurityClient.getTlsInspectionPolicy(request); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicyString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicyString.java new file mode 100644 index 000000000000..13a74c361784 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_String_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; + +public class SyncGetTlsInspectionPolicyString { + + public static void main(String[] args) throws Exception { + syncGetTlsInspectionPolicyString(); + } + + public static void syncGetTlsInspectionPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]") + .toString(); + TlsInspectionPolicy response = networkSecurityClient.getTlsInspectionPolicy(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicyTlsinspectionpolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicyTlsinspectionpolicyname.java new file mode 100644 index 000000000000..8c31323effde --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/gettlsinspectionpolicy/SyncGetTlsInspectionPolicyTlsinspectionpolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_Tlsinspectionpolicyname_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicyName; + +public class SyncGetTlsInspectionPolicyTlsinspectionpolicyname { + + public static void main(String[] args) throws Exception { + syncGetTlsInspectionPolicyTlsinspectionpolicyname(); + } + + public static void syncGetTlsInspectionPolicyTlsinspectionpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + TlsInspectionPolicyName name = + TlsInspectionPolicyName.of("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"); + TlsInspectionPolicy response = networkSecurityClient.getTlsInspectionPolicy(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_Tlsinspectionpolicyname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/AsyncGetUrlList.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/AsyncGetUrlList.java new file mode 100644 index 000000000000..eeb14f4d8005 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/AsyncGetUrlList.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetUrlList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetUrlListRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.cloud.networksecurity.v1.UrlListName; + +public class AsyncGetUrlList { + + public static void main(String[] args) throws Exception { + asyncGetUrlList(); + } + + public static void asyncGetUrlList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetUrlListRequest request = + GetUrlListRequest.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .build(); + ApiFuture future = networkSecurityClient.getUrlListCallable().futureCall(request); + // Do something. + UrlList response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetUrlList_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlList.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlList.java new file mode 100644 index 000000000000..0128736064e7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlList.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetUrlList_sync] +import com.google.cloud.networksecurity.v1.GetUrlListRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.cloud.networksecurity.v1.UrlListName; + +public class SyncGetUrlList { + + public static void main(String[] args) throws Exception { + syncGetUrlList(); + } + + public static void syncGetUrlList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GetUrlListRequest request = + GetUrlListRequest.newBuilder() + .setName(UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString()) + .build(); + UrlList response = networkSecurityClient.getUrlList(request); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetUrlList_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlListString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlListString.java new file mode 100644 index 000000000000..351919c50e9e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlListString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetUrlList_String_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.cloud.networksecurity.v1.UrlListName; + +public class SyncGetUrlListString { + + public static void main(String[] args) throws Exception { + syncGetUrlListString(); + } + + public static void syncGetUrlListString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]").toString(); + UrlList response = networkSecurityClient.getUrlList(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetUrlList_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlListUrllistname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlListUrllistname.java new file mode 100644 index 000000000000..31ff205864fb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/geturllist/SyncGetUrlListUrllistname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_GetUrlList_Urllistname_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.cloud.networksecurity.v1.UrlListName; + +public class SyncGetUrlListUrllistname { + + public static void main(String[] args) throws Exception { + syncGetUrlListUrllistname(); + } + + public static void syncGetUrlListUrllistname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UrlListName name = UrlListName.of("[PROJECT]", "[LOCATION]", "[URL_LIST]"); + UrlList response = networkSecurityClient.getUrlList(name); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_GetUrlList_Urllistname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/AsyncListAuthzPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/AsyncListAuthzPolicies.java new file mode 100644 index 000000000000..0b5e1d3e0a6f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/AsyncListAuthzPolicies.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class AsyncListAuthzPolicies { + + public static void main(String[] args) throws Exception { + asyncListAuthzPolicies(); + } + + public static void asyncListAuthzPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListAuthzPoliciesRequest request = + ListAuthzPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + networkSecurityClient.listAuthzPoliciesPagedCallable().futureCall(request); + // Do something. + for (AuthzPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/AsyncListAuthzPoliciesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/AsyncListAuthzPoliciesPaged.java new file mode 100644 index 000000000000..ced7b783d421 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/AsyncListAuthzPoliciesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_Paged_async] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.common.base.Strings; + +public class AsyncListAuthzPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListAuthzPoliciesPaged(); + } + + public static void asyncListAuthzPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListAuthzPoliciesRequest request = + ListAuthzPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAuthzPoliciesResponse response = + networkSecurityClient.listAuthzPoliciesCallable().call(request); + for (AuthzPolicy element : response.getAuthzPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPolicies.java new file mode 100644 index 000000000000..bd6de4c0e575 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPolicies.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.ListAuthzPoliciesRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListAuthzPolicies { + + public static void main(String[] args) throws Exception { + syncListAuthzPolicies(); + } + + public static void syncListAuthzPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListAuthzPoliciesRequest request = + ListAuthzPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AuthzPolicy element : networkSecurityClient.listAuthzPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPoliciesLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPoliciesLocationname.java new file mode 100644 index 000000000000..b768a845930e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPoliciesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_Locationname_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListAuthzPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListAuthzPoliciesLocationname(); + } + + public static void syncListAuthzPoliciesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AuthzPolicy element : networkSecurityClient.listAuthzPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPoliciesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPoliciesString.java new file mode 100644 index 000000000000..ef6a262cabf5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listauthzpolicies/SyncListAuthzPoliciesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_String_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListAuthzPoliciesString { + + public static void main(String[] args) throws Exception { + syncListAuthzPoliciesString(); + } + + public static void syncListAuthzPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AuthzPolicy element : networkSecurityClient.listAuthzPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/AsyncListBackendAuthenticationConfigs.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/AsyncListBackendAuthenticationConfigs.java new file mode 100644 index 000000000000..f1d22606ad3d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/AsyncListBackendAuthenticationConfigs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class AsyncListBackendAuthenticationConfigs { + + public static void main(String[] args) throws Exception { + asyncListBackendAuthenticationConfigs(); + } + + public static void asyncListBackendAuthenticationConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListBackendAuthenticationConfigsRequest request = + ListBackendAuthenticationConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + networkSecurityClient.listBackendAuthenticationConfigsPagedCallable().futureCall(request); + // Do something. + for (BackendAuthenticationConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/AsyncListBackendAuthenticationConfigsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/AsyncListBackendAuthenticationConfigsPaged.java new file mode 100644 index 000000000000..857d8c66de62 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/AsyncListBackendAuthenticationConfigsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_Paged_async] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.common.base.Strings; + +public class AsyncListBackendAuthenticationConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListBackendAuthenticationConfigsPaged(); + } + + public static void asyncListBackendAuthenticationConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListBackendAuthenticationConfigsRequest request = + ListBackendAuthenticationConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBackendAuthenticationConfigsResponse response = + networkSecurityClient.listBackendAuthenticationConfigsCallable().call(request); + for (BackendAuthenticationConfig element : response.getBackendAuthenticationConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigs.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigs.java new file mode 100644 index 000000000000..3323b27a0957 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigs.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListBackendAuthenticationConfigs { + + public static void main(String[] args) throws Exception { + syncListBackendAuthenticationConfigs(); + } + + public static void syncListBackendAuthenticationConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListBackendAuthenticationConfigsRequest request = + ListBackendAuthenticationConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (BackendAuthenticationConfig element : + networkSecurityClient.listBackendAuthenticationConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigsLocationname.java new file mode 100644 index 000000000000..618c34bc6ca0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_Locationname_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListBackendAuthenticationConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListBackendAuthenticationConfigsLocationname(); + } + + public static void syncListBackendAuthenticationConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (BackendAuthenticationConfig element : + networkSecurityClient.listBackendAuthenticationConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigsString.java new file mode 100644 index 000000000000..f420c96be055 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listbackendauthenticationconfigs/SyncListBackendAuthenticationConfigsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_String_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListBackendAuthenticationConfigsString { + + public static void main(String[] args) throws Exception { + syncListBackendAuthenticationConfigsString(); + } + + public static void syncListBackendAuthenticationConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (BackendAuthenticationConfig element : + networkSecurityClient.listBackendAuthenticationConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/AsyncListGatewaySecurityPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/AsyncListGatewaySecurityPolicies.java new file mode 100644 index 000000000000..a308456512c8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/AsyncListGatewaySecurityPolicies.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class AsyncListGatewaySecurityPolicies { + + public static void main(String[] args) throws Exception { + asyncListGatewaySecurityPolicies(); + } + + public static void asyncListGatewaySecurityPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListGatewaySecurityPoliciesRequest request = + ListGatewaySecurityPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + networkSecurityClient.listGatewaySecurityPoliciesPagedCallable().futureCall(request); + // Do something. + for (GatewaySecurityPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/AsyncListGatewaySecurityPoliciesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/AsyncListGatewaySecurityPoliciesPaged.java new file mode 100644 index 000000000000..18c2be08ab35 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/AsyncListGatewaySecurityPoliciesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_Paged_async] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.common.base.Strings; + +public class AsyncListGatewaySecurityPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListGatewaySecurityPoliciesPaged(); + } + + public static void asyncListGatewaySecurityPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListGatewaySecurityPoliciesRequest request = + ListGatewaySecurityPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListGatewaySecurityPoliciesResponse response = + networkSecurityClient.listGatewaySecurityPoliciesCallable().call(request); + for (GatewaySecurityPolicy element : response.getGatewaySecurityPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPolicies.java new file mode 100644 index 000000000000..9f081c7bf551 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPolicies.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListGatewaySecurityPolicies { + + public static void main(String[] args) throws Exception { + syncListGatewaySecurityPolicies(); + } + + public static void syncListGatewaySecurityPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListGatewaySecurityPoliciesRequest request = + ListGatewaySecurityPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (GatewaySecurityPolicy element : + networkSecurityClient.listGatewaySecurityPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPoliciesLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPoliciesLocationname.java new file mode 100644 index 000000000000..812d6c31ac50 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPoliciesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_Locationname_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListGatewaySecurityPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListGatewaySecurityPoliciesLocationname(); + } + + public static void syncListGatewaySecurityPoliciesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (GatewaySecurityPolicy element : + networkSecurityClient.listGatewaySecurityPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPoliciesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPoliciesString.java new file mode 100644 index 000000000000..cb15cf2628a6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicies/SyncListGatewaySecurityPoliciesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_String_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListGatewaySecurityPoliciesString { + + public static void main(String[] args) throws Exception { + syncListGatewaySecurityPoliciesString(); + } + + public static void syncListGatewaySecurityPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (GatewaySecurityPolicy element : + networkSecurityClient.listGatewaySecurityPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/AsyncListGatewaySecurityPolicyRules.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/AsyncListGatewaySecurityPolicyRules.java new file mode 100644 index 000000000000..a2817156db45 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/AsyncListGatewaySecurityPolicyRules.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class AsyncListGatewaySecurityPolicyRules { + + public static void main(String[] args) throws Exception { + asyncListGatewaySecurityPolicyRules(); + } + + public static void asyncListGatewaySecurityPolicyRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListGatewaySecurityPolicyRulesRequest request = + ListGatewaySecurityPolicyRulesRequest.newBuilder() + .setParent( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + networkSecurityClient.listGatewaySecurityPolicyRulesPagedCallable().futureCall(request); + // Do something. + for (GatewaySecurityPolicyRule element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/AsyncListGatewaySecurityPolicyRulesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/AsyncListGatewaySecurityPolicyRulesPaged.java new file mode 100644 index 000000000000..24c5c53a4d4d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/AsyncListGatewaySecurityPolicyRulesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_Paged_async] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.common.base.Strings; + +public class AsyncListGatewaySecurityPolicyRulesPaged { + + public static void main(String[] args) throws Exception { + asyncListGatewaySecurityPolicyRulesPaged(); + } + + public static void asyncListGatewaySecurityPolicyRulesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListGatewaySecurityPolicyRulesRequest request = + ListGatewaySecurityPolicyRulesRequest.newBuilder() + .setParent( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListGatewaySecurityPolicyRulesResponse response = + networkSecurityClient.listGatewaySecurityPolicyRulesCallable().call(request); + for (GatewaySecurityPolicyRule element : response.getGatewaySecurityPolicyRulesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRules.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRules.java new file mode 100644 index 000000000000..53dd0c4ffd40 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRules.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesRequest; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListGatewaySecurityPolicyRules { + + public static void main(String[] args) throws Exception { + syncListGatewaySecurityPolicyRules(); + } + + public static void syncListGatewaySecurityPolicyRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListGatewaySecurityPolicyRulesRequest request = + ListGatewaySecurityPolicyRulesRequest.newBuilder() + .setParent( + GatewaySecurityPolicyName.of( + "[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (GatewaySecurityPolicyRule element : + networkSecurityClient.listGatewaySecurityPolicyRules(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRulesGatewaysecuritypolicyname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRulesGatewaysecuritypolicyname.java new file mode 100644 index 000000000000..b36298bba488 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRulesGatewaysecuritypolicyname.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_Gatewaysecuritypolicyname_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListGatewaySecurityPolicyRulesGatewaysecuritypolicyname { + + public static void main(String[] args) throws Exception { + syncListGatewaySecurityPolicyRulesGatewaysecuritypolicyname(); + } + + public static void syncListGatewaySecurityPolicyRulesGatewaysecuritypolicyname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GatewaySecurityPolicyName parent = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"); + for (GatewaySecurityPolicyRule element : + networkSecurityClient.listGatewaySecurityPolicyRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_Gatewaysecuritypolicyname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRulesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRulesString.java new file mode 100644 index 000000000000..b217e3feffc8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listgatewaysecuritypolicyrules/SyncListGatewaySecurityPolicyRulesString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_String_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyName; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; + +public class SyncListGatewaySecurityPolicyRulesString { + + public static void main(String[] args) throws Exception { + syncListGatewaySecurityPolicyRulesString(); + } + + public static void syncListGatewaySecurityPolicyRulesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = + GatewaySecurityPolicyName.of("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]") + .toString(); + for (GatewaySecurityPolicyRule element : + networkSecurityClient.listGatewaySecurityPolicyRules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/AsyncListServerTlsPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/AsyncListServerTlsPolicies.java index e4575feca6d8..ada59ce0aafd 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/AsyncListServerTlsPolicies.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/AsyncListServerTlsPolicies.java @@ -41,6 +41,7 @@ public static void asyncListServerTlsPolicies() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) .build(); ApiFuture future = networkSecurityClient.listServerTlsPoliciesPagedCallable().futureCall(request); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java index c1399e2db714..691001f71fe6 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/AsyncListServerTlsPoliciesPaged.java @@ -42,6 +42,7 @@ public static void asyncListServerTlsPoliciesPaged() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) .build(); while (true) { ListServerTlsPoliciesResponse response = diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/SyncListServerTlsPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/SyncListServerTlsPolicies.java index 46a107f410ec..7c00720ccc14 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/SyncListServerTlsPolicies.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listservertlspolicies/SyncListServerTlsPolicies.java @@ -40,6 +40,7 @@ public static void syncListServerTlsPolicies() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) .build(); for (ServerTlsPolicy element : networkSecurityClient.listServerTlsPolicies(request).iterateAll()) { diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/AsyncListTlsInspectionPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/AsyncListTlsInspectionPolicies.java new file mode 100644 index 000000000000..e143c0d2b5c5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/AsyncListTlsInspectionPolicies.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; + +public class AsyncListTlsInspectionPolicies { + + public static void main(String[] args) throws Exception { + asyncListTlsInspectionPolicies(); + } + + public static void asyncListTlsInspectionPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListTlsInspectionPoliciesRequest request = + ListTlsInspectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + networkSecurityClient.listTlsInspectionPoliciesPagedCallable().futureCall(request); + // Do something. + for (TlsInspectionPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/AsyncListTlsInspectionPoliciesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/AsyncListTlsInspectionPoliciesPaged.java new file mode 100644 index 000000000000..f2d1397540e6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/AsyncListTlsInspectionPoliciesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_Paged_async] +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest; +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.common.base.Strings; + +public class AsyncListTlsInspectionPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListTlsInspectionPoliciesPaged(); + } + + public static void asyncListTlsInspectionPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListTlsInspectionPoliciesRequest request = + ListTlsInspectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTlsInspectionPoliciesResponse response = + networkSecurityClient.listTlsInspectionPoliciesCallable().call(request); + for (TlsInspectionPolicy element : response.getTlsInspectionPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPolicies.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPolicies.java new file mode 100644 index 000000000000..90d3a44e0e32 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPolicies.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_sync] +import com.google.cloud.networksecurity.v1.ListTlsInspectionPoliciesRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; + +public class SyncListTlsInspectionPolicies { + + public static void main(String[] args) throws Exception { + syncListTlsInspectionPolicies(); + } + + public static void syncListTlsInspectionPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListTlsInspectionPoliciesRequest request = + ListTlsInspectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (TlsInspectionPolicy element : + networkSecurityClient.listTlsInspectionPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPoliciesLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPoliciesLocationname.java new file mode 100644 index 000000000000..67627ca0d227 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPoliciesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_Locationname_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; + +public class SyncListTlsInspectionPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListTlsInspectionPoliciesLocationname(); + } + + public static void syncListTlsInspectionPoliciesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (TlsInspectionPolicy element : + networkSecurityClient.listTlsInspectionPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPoliciesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPoliciesString.java new file mode 100644 index 000000000000..c91ff43fdc64 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listtlsinspectionpolicies/SyncListTlsInspectionPoliciesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_String_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; + +public class SyncListTlsInspectionPoliciesString { + + public static void main(String[] args) throws Exception { + syncListTlsInspectionPoliciesString(); + } + + public static void syncListTlsInspectionPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (TlsInspectionPolicy element : + networkSecurityClient.listTlsInspectionPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/AsyncListUrlLists.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/AsyncListUrlLists.java new file mode 100644 index 000000000000..fbc16b210f90 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/AsyncListUrlLists.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListUrlLists_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.ListUrlListsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; + +public class AsyncListUrlLists { + + public static void main(String[] args) throws Exception { + asyncListUrlLists(); + } + + public static void asyncListUrlLists() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListUrlListsRequest request = + ListUrlListsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + networkSecurityClient.listUrlListsPagedCallable().futureCall(request); + // Do something. + for (UrlList element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListUrlLists_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/AsyncListUrlListsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/AsyncListUrlListsPaged.java new file mode 100644 index 000000000000..3df13c96c31a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/AsyncListUrlListsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListUrlLists_Paged_async] +import com.google.cloud.networksecurity.v1.ListUrlListsRequest; +import com.google.cloud.networksecurity.v1.ListUrlListsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.common.base.Strings; + +public class AsyncListUrlListsPaged { + + public static void main(String[] args) throws Exception { + asyncListUrlListsPaged(); + } + + public static void asyncListUrlListsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListUrlListsRequest request = + ListUrlListsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListUrlListsResponse response = networkSecurityClient.listUrlListsCallable().call(request); + for (UrlList element : response.getUrlListsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListUrlLists_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlLists.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlLists.java new file mode 100644 index 000000000000..8b33c5aa0b84 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlLists.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListUrlLists_sync] +import com.google.cloud.networksecurity.v1.ListUrlListsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; + +public class SyncListUrlLists { + + public static void main(String[] args) throws Exception { + syncListUrlLists(); + } + + public static void syncListUrlLists() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + ListUrlListsRequest request = + ListUrlListsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (UrlList element : networkSecurityClient.listUrlLists(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListUrlLists_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlListsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlListsLocationname.java new file mode 100644 index 000000000000..841ecbe08ca0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlListsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListUrlLists_Locationname_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; + +public class SyncListUrlListsLocationname { + + public static void main(String[] args) throws Exception { + syncListUrlListsLocationname(); + } + + public static void syncListUrlListsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (UrlList element : networkSecurityClient.listUrlLists(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListUrlLists_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlListsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlListsString.java new file mode 100644 index 000000000000..eb83aa5286e6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/listurllists/SyncListUrlListsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_ListUrlLists_String_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; + +public class SyncListUrlListsString { + + public static void main(String[] args) throws Exception { + syncListUrlListsString(); + } + + public static void syncListUrlListsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (UrlList element : networkSecurityClient.listUrlLists(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_ListUrlLists_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/AsyncUpdateAuthzPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/AsyncUpdateAuthzPolicy.java new file mode 100644 index 000000000000..3a9235875352 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/AsyncUpdateAuthzPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAuthzPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateAuthzPolicy(); + } + + public static void asyncUpdateAuthzPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateAuthzPolicyRequest request = + UpdateAuthzPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + networkSecurityClient.updateAuthzPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/AsyncUpdateAuthzPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/AsyncUpdateAuthzPolicyLRO.java new file mode 100644 index 000000000000..1360c46c50db --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/AsyncUpdateAuthzPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAuthzPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAuthzPolicyLRO(); + } + + public static void asyncUpdateAuthzPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateAuthzPolicyRequest request = + UpdateAuthzPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + networkSecurityClient.updateAuthzPolicyOperationCallable().futureCall(request); + // Do something. + AuthzPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/SyncUpdateAuthzPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/SyncUpdateAuthzPolicy.java new file mode 100644 index 000000000000..497fa6d05dac --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/SyncUpdateAuthzPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateAuthzPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAuthzPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateAuthzPolicy(); + } + + public static void syncUpdateAuthzPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateAuthzPolicyRequest request = + UpdateAuthzPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAuthzPolicy(AuthzPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AuthzPolicy response = networkSecurityClient.updateAuthzPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/SyncUpdateAuthzPolicyAuthzpolicyFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/SyncUpdateAuthzPolicyAuthzpolicyFieldmask.java new file mode 100644 index 000000000000..c34ec1f33d2f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateauthzpolicy/SyncUpdateAuthzPolicyAuthzpolicyFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_AuthzpolicyFieldmask_sync] +import com.google.cloud.networksecurity.v1.AuthzPolicy; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAuthzPolicyAuthzpolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAuthzPolicyAuthzpolicyFieldmask(); + } + + public static void syncUpdateAuthzPolicyAuthzpolicyFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + AuthzPolicy authzPolicy = AuthzPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AuthzPolicy response = + networkSecurityClient.updateAuthzPolicyAsync(authzPolicy, updateMask).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_AuthzpolicyFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/AsyncUpdateBackendAuthenticationConfig.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/AsyncUpdateBackendAuthenticationConfig.java new file mode 100644 index 000000000000..6d297a668582 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/AsyncUpdateBackendAuthenticationConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBackendAuthenticationConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateBackendAuthenticationConfig(); + } + + public static void asyncUpdateBackendAuthenticationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateBackendAuthenticationConfigRequest request = + UpdateBackendAuthenticationConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.updateBackendAuthenticationConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/AsyncUpdateBackendAuthenticationConfigLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/AsyncUpdateBackendAuthenticationConfigLRO.java new file mode 100644 index 000000000000..0cf6fd316821 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/AsyncUpdateBackendAuthenticationConfigLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBackendAuthenticationConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateBackendAuthenticationConfigLRO(); + } + + public static void asyncUpdateBackendAuthenticationConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateBackendAuthenticationConfigRequest request = + UpdateBackendAuthenticationConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient + .updateBackendAuthenticationConfigOperationCallable() + .futureCall(request); + // Do something. + BackendAuthenticationConfig response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/SyncUpdateBackendAuthenticationConfig.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/SyncUpdateBackendAuthenticationConfig.java new file mode 100644 index 000000000000..789bfbe8cdbd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/SyncUpdateBackendAuthenticationConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateBackendAuthenticationConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackendAuthenticationConfig { + + public static void main(String[] args) throws Exception { + syncUpdateBackendAuthenticationConfig(); + } + + public static void syncUpdateBackendAuthenticationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateBackendAuthenticationConfigRequest request = + UpdateBackendAuthenticationConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackendAuthenticationConfig(BackendAuthenticationConfig.newBuilder().build()) + .build(); + BackendAuthenticationConfig response = + networkSecurityClient.updateBackendAuthenticationConfigAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/SyncUpdateBackendAuthenticationConfigBackendauthenticationconfigFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/SyncUpdateBackendAuthenticationConfigBackendauthenticationconfigFieldmask.java new file mode 100644 index 000000000000..e2e7b3a7d529 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatebackendauthenticationconfig/SyncUpdateBackendAuthenticationConfigBackendauthenticationconfigFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_BackendauthenticationconfigFieldmask_sync] +import com.google.cloud.networksecurity.v1.BackendAuthenticationConfig; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackendAuthenticationConfigBackendauthenticationconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBackendAuthenticationConfigBackendauthenticationconfigFieldmask(); + } + + public static void syncUpdateBackendAuthenticationConfigBackendauthenticationconfigFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + BackendAuthenticationConfig backendAuthenticationConfig = + BackendAuthenticationConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + BackendAuthenticationConfig response = + networkSecurityClient + .updateBackendAuthenticationConfigAsync(backendAuthenticationConfig, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_BackendauthenticationconfigFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/AsyncUpdateGatewaySecurityPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/AsyncUpdateGatewaySecurityPolicy.java new file mode 100644 index 000000000000..a8eb91fe12b2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/AsyncUpdateGatewaySecurityPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGatewaySecurityPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateGatewaySecurityPolicy(); + } + + public static void asyncUpdateGatewaySecurityPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateGatewaySecurityPolicyRequest request = + UpdateGatewaySecurityPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.updateGatewaySecurityPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/AsyncUpdateGatewaySecurityPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/AsyncUpdateGatewaySecurityPolicyLRO.java new file mode 100644 index 000000000000..1ff64eaecda3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/AsyncUpdateGatewaySecurityPolicyLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGatewaySecurityPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateGatewaySecurityPolicyLRO(); + } + + public static void asyncUpdateGatewaySecurityPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateGatewaySecurityPolicyRequest request = + UpdateGatewaySecurityPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient.updateGatewaySecurityPolicyOperationCallable().futureCall(request); + // Do something. + GatewaySecurityPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/SyncUpdateGatewaySecurityPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/SyncUpdateGatewaySecurityPolicy.java new file mode 100644 index 000000000000..2d7caabbb89b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/SyncUpdateGatewaySecurityPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGatewaySecurityPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateGatewaySecurityPolicy(); + } + + public static void syncUpdateGatewaySecurityPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateGatewaySecurityPolicyRequest request = + UpdateGatewaySecurityPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewaySecurityPolicy(GatewaySecurityPolicy.newBuilder().build()) + .build(); + GatewaySecurityPolicy response = + networkSecurityClient.updateGatewaySecurityPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/SyncUpdateGatewaySecurityPolicyGatewaysecuritypolicyFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/SyncUpdateGatewaySecurityPolicyGatewaysecuritypolicyFieldmask.java new file mode 100644 index 000000000000..6825913c2ffc --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicy/SyncUpdateGatewaySecurityPolicyGatewaysecuritypolicyFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_GatewaysecuritypolicyFieldmask_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicy; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGatewaySecurityPolicyGatewaysecuritypolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateGatewaySecurityPolicyGatewaysecuritypolicyFieldmask(); + } + + public static void syncUpdateGatewaySecurityPolicyGatewaysecuritypolicyFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GatewaySecurityPolicy gatewaySecurityPolicy = GatewaySecurityPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + GatewaySecurityPolicy response = + networkSecurityClient + .updateGatewaySecurityPolicyAsync(gatewaySecurityPolicy, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_GatewaysecuritypolicyFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/AsyncUpdateGatewaySecurityPolicyRule.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/AsyncUpdateGatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..b01e3e2c8c0d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/AsyncUpdateGatewaySecurityPolicyRule.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGatewaySecurityPolicyRule { + + public static void main(String[] args) throws Exception { + asyncUpdateGatewaySecurityPolicyRule(); + } + + public static void asyncUpdateGatewaySecurityPolicyRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateGatewaySecurityPolicyRuleRequest request = + UpdateGatewaySecurityPolicyRuleRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.updateGatewaySecurityPolicyRuleCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/AsyncUpdateGatewaySecurityPolicyRuleLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/AsyncUpdateGatewaySecurityPolicyRuleLRO.java new file mode 100644 index 000000000000..a7de580cf984 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/AsyncUpdateGatewaySecurityPolicyRuleLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGatewaySecurityPolicyRuleLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateGatewaySecurityPolicyRuleLRO(); + } + + public static void asyncUpdateGatewaySecurityPolicyRuleLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateGatewaySecurityPolicyRuleRequest request = + UpdateGatewaySecurityPolicyRuleRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient + .updateGatewaySecurityPolicyRuleOperationCallable() + .futureCall(request); + // Do something. + GatewaySecurityPolicyRule response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/SyncUpdateGatewaySecurityPolicyRule.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/SyncUpdateGatewaySecurityPolicyRule.java new file mode 100644 index 000000000000..8cf03c2a5765 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/SyncUpdateGatewaySecurityPolicyRule.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateGatewaySecurityPolicyRuleRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGatewaySecurityPolicyRule { + + public static void main(String[] args) throws Exception { + syncUpdateGatewaySecurityPolicyRule(); + } + + public static void syncUpdateGatewaySecurityPolicyRule() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateGatewaySecurityPolicyRuleRequest request = + UpdateGatewaySecurityPolicyRuleRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.newBuilder().build()) + .build(); + GatewaySecurityPolicyRule response = + networkSecurityClient.updateGatewaySecurityPolicyRuleAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/SyncUpdateGatewaySecurityPolicyRuleGatewaysecuritypolicyruleFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/SyncUpdateGatewaySecurityPolicyRuleGatewaysecuritypolicyruleFieldmask.java new file mode 100644 index 000000000000..b201dead09fd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updategatewaysecuritypolicyrule/SyncUpdateGatewaySecurityPolicyRuleGatewaysecuritypolicyruleFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_GatewaysecuritypolicyruleFieldmask_sync] +import com.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGatewaySecurityPolicyRuleGatewaysecuritypolicyruleFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateGatewaySecurityPolicyRuleGatewaysecuritypolicyruleFieldmask(); + } + + public static void syncUpdateGatewaySecurityPolicyRuleGatewaysecuritypolicyruleFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + GatewaySecurityPolicyRule gatewaySecurityPolicyRule = + GatewaySecurityPolicyRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + GatewaySecurityPolicyRule response = + networkSecurityClient + .updateGatewaySecurityPolicyRuleAsync(gatewaySecurityPolicyRule, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_GatewaysecuritypolicyruleFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/AsyncUpdateTlsInspectionPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/AsyncUpdateTlsInspectionPolicy.java new file mode 100644 index 000000000000..bc47b7773ec2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/AsyncUpdateTlsInspectionPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTlsInspectionPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateTlsInspectionPolicy(); + } + + public static void asyncUpdateTlsInspectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateTlsInspectionPolicyRequest request = + UpdateTlsInspectionPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.updateTlsInspectionPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/AsyncUpdateTlsInspectionPolicyLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/AsyncUpdateTlsInspectionPolicyLRO.java new file mode 100644 index 000000000000..ace0659be7e2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/AsyncUpdateTlsInspectionPolicyLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTlsInspectionPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateTlsInspectionPolicyLRO(); + } + + public static void asyncUpdateTlsInspectionPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateTlsInspectionPolicyRequest request = + UpdateTlsInspectionPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient.updateTlsInspectionPolicyOperationCallable().futureCall(request); + // Do something. + TlsInspectionPolicy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/SyncUpdateTlsInspectionPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/SyncUpdateTlsInspectionPolicy.java new file mode 100644 index 000000000000..e8a667e3ebb8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/SyncUpdateTlsInspectionPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.cloud.networksecurity.v1.UpdateTlsInspectionPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTlsInspectionPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateTlsInspectionPolicy(); + } + + public static void syncUpdateTlsInspectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateTlsInspectionPolicyRequest request = + UpdateTlsInspectionPolicyRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTlsInspectionPolicy(TlsInspectionPolicy.newBuilder().build()) + .build(); + TlsInspectionPolicy response = + networkSecurityClient.updateTlsInspectionPolicyAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/SyncUpdateTlsInspectionPolicyTlsinspectionpolicyFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/SyncUpdateTlsInspectionPolicyTlsinspectionpolicyFieldmask.java new file mode 100644 index 000000000000..ab8b24b988d6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updatetlsinspectionpolicy/SyncUpdateTlsInspectionPolicyTlsinspectionpolicyFieldmask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_TlsinspectionpolicyFieldmask_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.TlsInspectionPolicy; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTlsInspectionPolicyTlsinspectionpolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateTlsInspectionPolicyTlsinspectionpolicyFieldmask(); + } + + public static void syncUpdateTlsInspectionPolicyTlsinspectionpolicyFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + TlsInspectionPolicy tlsInspectionPolicy = TlsInspectionPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + TlsInspectionPolicy response = + networkSecurityClient + .updateTlsInspectionPolicyAsync(tlsInspectionPolicy, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_TlsinspectionpolicyFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/AsyncUpdateUrlList.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/AsyncUpdateUrlList.java new file mode 100644 index 000000000000..d1b76371d4bb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/AsyncUpdateUrlList.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateUrlListRequest; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateUrlList { + + public static void main(String[] args) throws Exception { + asyncUpdateUrlList(); + } + + public static void asyncUpdateUrlList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateUrlListRequest request = + UpdateUrlListRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setUrlList(UrlList.newBuilder().build()) + .build(); + ApiFuture future = + networkSecurityClient.updateUrlListCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/AsyncUpdateUrlListLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/AsyncUpdateUrlListLRO.java new file mode 100644 index 000000000000..35c442db95b6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/AsyncUpdateUrlListLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateUrlListRequest; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateUrlListLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateUrlListLRO(); + } + + public static void asyncUpdateUrlListLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateUrlListRequest request = + UpdateUrlListRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setUrlList(UrlList.newBuilder().build()) + .build(); + OperationFuture future = + networkSecurityClient.updateUrlListOperationCallable().futureCall(request); + // Do something. + UrlList response = future.get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/SyncUpdateUrlList.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/SyncUpdateUrlList.java new file mode 100644 index 000000000000..bff48f5cd2dc --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/SyncUpdateUrlList.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UpdateUrlListRequest; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUrlList { + + public static void main(String[] args) throws Exception { + syncUpdateUrlList(); + } + + public static void syncUpdateUrlList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UpdateUrlListRequest request = + UpdateUrlListRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setUrlList(UrlList.newBuilder().build()) + .build(); + UrlList response = networkSecurityClient.updateUrlListAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/SyncUpdateUrlListUrllistFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/SyncUpdateUrlListUrllistFieldmask.java new file mode 100644 index 000000000000..38ab1e176246 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/updateurllist/SyncUpdateUrlListUrllistFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_UrllistFieldmask_sync] +import com.google.cloud.networksecurity.v1.NetworkSecurityClient; +import com.google.cloud.networksecurity.v1.UrlList; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUrlListUrllistFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateUrlListUrllistFieldmask(); + } + + public static void syncUpdateUrlListUrllistFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.create()) { + UrlList urlList = UrlList.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UrlList response = networkSecurityClient.updateUrlListAsync(urlList, updateMask).get(); + } + } +} +// [END networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_UrllistFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/create/SyncCreateSetCredentialsProvider.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..d3b2c04b0215 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceSettings; +import com.google.cloud.networksecurity.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationSecurityProfileGroupServiceSettings + organizationSecurityProfileGroupServiceSettings = + OrganizationSecurityProfileGroupServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create( + organizationSecurityProfileGroupServiceSettings); + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_Create_SetCredentialsProvider_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/create/SyncCreateSetEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..6591d399b615 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_Create_SetEndpoint_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceSettings; +import com.google.cloud.networksecurity.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationSecurityProfileGroupServiceSettings + organizationSecurityProfileGroupServiceSettings = + OrganizationSecurityProfileGroupServiceSettings.newBuilder() + .setEndpoint(myEndpoint) + .build(); + OrganizationSecurityProfileGroupServiceClient organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create( + organizationSecurityProfileGroupServiceSettings); + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_Create_SetEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/AsyncCreateSecurityProfile.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/AsyncCreateSecurityProfile.java new file mode 100644 index 000000000000..68dd7c235a09 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/AsyncCreateSecurityProfile.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.longrunning.Operation; + +public class AsyncCreateSecurityProfile { + + public static void main(String[] args) throws Exception { + asyncCreateSecurityProfile(); + } + + public static void asyncCreateSecurityProfile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + CreateSecurityProfileRequest request = + CreateSecurityProfileRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setSecurityProfileId("securityProfileId-1121673916") + .setSecurityProfile(SecurityProfile.newBuilder().build()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/AsyncCreateSecurityProfileLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/AsyncCreateSecurityProfileLRO.java new file mode 100644 index 000000000000..09cd964ed2cd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/AsyncCreateSecurityProfileLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class AsyncCreateSecurityProfileLRO { + + public static void main(String[] args) throws Exception { + asyncCreateSecurityProfileLRO(); + } + + public static void asyncCreateSecurityProfileLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + CreateSecurityProfileRequest request = + CreateSecurityProfileRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setSecurityProfileId("securityProfileId-1121673916") + .setSecurityProfile(SecurityProfile.newBuilder().build()) + .build(); + OperationFuture future = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileOperationCallable() + .futureCall(request); + // Do something. + SecurityProfile response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfile.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfile.java new file mode 100644 index 000000000000..a0313762b7e6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfile.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_sync] +import com.google.cloud.networksecurity.v1.CreateSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class SyncCreateSecurityProfile { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfile(); + } + + public static void syncCreateSecurityProfile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + CreateSecurityProfileRequest request = + CreateSecurityProfileRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setSecurityProfileId("securityProfileId-1121673916") + .setSecurityProfile(SecurityProfile.newBuilder().build()) + .build(); + SecurityProfile response = + organizationSecurityProfileGroupServiceClient.createSecurityProfileAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileLocationnameSecurityprofileString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileLocationnameSecurityprofileString.java new file mode 100644 index 000000000000..efaee07aa07a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileLocationnameSecurityprofileString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_LocationnameSecurityprofileString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class SyncCreateSecurityProfileLocationnameSecurityprofileString { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileLocationnameSecurityprofileString(); + } + + public static void syncCreateSecurityProfileLocationnameSecurityprofileString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + SecurityProfile response = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileAsync(parent, securityProfile, securityProfileId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_LocationnameSecurityprofileString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileOrganizationlocationnameSecurityprofileString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileOrganizationlocationnameSecurityprofileString.java new file mode 100644 index 000000000000..c26a775f75a0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileOrganizationlocationnameSecurityprofileString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_OrganizationlocationnameSecurityprofileString_sync] +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class SyncCreateSecurityProfileOrganizationlocationnameSecurityprofileString { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileOrganizationlocationnameSecurityprofileString(); + } + + public static void syncCreateSecurityProfileOrganizationlocationnameSecurityprofileString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + SecurityProfile response = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileAsync(parent, securityProfile, securityProfileId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_OrganizationlocationnameSecurityprofileString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileStringSecurityprofileString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileStringSecurityprofileString.java new file mode 100644 index 000000000000..8d542298b2c4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofile/SyncCreateSecurityProfileStringSecurityprofileString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_StringSecurityprofileString_sync] +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class SyncCreateSecurityProfileStringSecurityprofileString { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileStringSecurityprofileString(); + } + + public static void syncCreateSecurityProfileStringSecurityprofileString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + String securityProfileId = "securityProfileId-1121673916"; + SecurityProfile response = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileAsync(parent, securityProfile, securityProfileId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_StringSecurityprofileString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/AsyncCreateSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/AsyncCreateSecurityProfileGroup.java new file mode 100644 index 000000000000..ce89a0207954 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/AsyncCreateSecurityProfileGroup.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.longrunning.Operation; + +public class AsyncCreateSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + asyncCreateSecurityProfileGroup(); + } + + public static void asyncCreateSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + CreateSecurityProfileGroupRequest request = + CreateSecurityProfileGroupRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setSecurityProfileGroupId("securityProfileGroupId-357991055") + .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileGroupCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/AsyncCreateSecurityProfileGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/AsyncCreateSecurityProfileGroupLRO.java new file mode 100644 index 000000000000..61ec9a54261c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/AsyncCreateSecurityProfileGroupLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class AsyncCreateSecurityProfileGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateSecurityProfileGroupLRO(); + } + + public static void asyncCreateSecurityProfileGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + CreateSecurityProfileGroupRequest request = + CreateSecurityProfileGroupRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setSecurityProfileGroupId("securityProfileGroupId-357991055") + .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build()) + .build(); + OperationFuture future = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileGroupOperationCallable() + .futureCall(request); + // Do something. + SecurityProfileGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java new file mode 100644 index 000000000000..364717eb2561 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_sync] +import com.google.cloud.networksecurity.v1.CreateSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class SyncCreateSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileGroup(); + } + + public static void syncCreateSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + CreateSecurityProfileGroupRequest request = + CreateSecurityProfileGroupRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setSecurityProfileGroupId("securityProfileGroupId-357991055") + .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build()) + .build(); + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileGroupAsync(request) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupLocationnameSecurityprofilegroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupLocationnameSecurityprofilegroupString.java new file mode 100644 index 000000000000..b8042ba12321 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupLocationnameSecurityprofilegroupString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_LocationnameSecurityprofilegroupString_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class SyncCreateSecurityProfileGroupLocationnameSecurityprofilegroupString { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileGroupLocationnameSecurityprofilegroupString(); + } + + public static void syncCreateSecurityProfileGroupLocationnameSecurityprofilegroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_LocationnameSecurityprofilegroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupOrganizationlocationnameSecurityprofilegroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupOrganizationlocationnameSecurityprofilegroupString.java new file mode 100644 index 000000000000..48d8a9379783 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupOrganizationlocationnameSecurityprofilegroupString.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_OrganizationlocationnameSecurityprofilegroupString_sync] +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class SyncCreateSecurityProfileGroupOrganizationlocationnameSecurityprofilegroupString { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileGroupOrganizationlocationnameSecurityprofilegroupString(); + } + + public static void + syncCreateSecurityProfileGroupOrganizationlocationnameSecurityprofilegroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_OrganizationlocationnameSecurityprofilegroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupStringSecurityprofilegroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupStringSecurityprofilegroupString.java new file mode 100644 index 000000000000..81c0b4809bfa --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/createsecurityprofilegroup/SyncCreateSecurityProfileGroupStringSecurityprofilegroupString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_StringSecurityprofilegroupString_sync] +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class SyncCreateSecurityProfileGroupStringSecurityprofilegroupString { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileGroupStringSecurityprofilegroupString(); + } + + public static void syncCreateSecurityProfileGroupStringSecurityprofilegroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + String securityProfileGroupId = "securityProfileGroupId-357991055"; + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient + .createSecurityProfileGroupAsync(parent, securityProfileGroup, securityProfileGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_StringSecurityprofilegroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/AsyncDeleteSecurityProfile.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/AsyncDeleteSecurityProfile.java new file mode 100644 index 000000000000..c3d76a1e4294 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/AsyncDeleteSecurityProfile.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileName; +import com.google.longrunning.Operation; + +public class AsyncDeleteSecurityProfile { + + public static void main(String[] args) throws Exception { + asyncDeleteSecurityProfile(); + } + + public static void asyncDeleteSecurityProfile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + DeleteSecurityProfileRequest request = + DeleteSecurityProfileRequest.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .deleteSecurityProfileCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/AsyncDeleteSecurityProfileLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/AsyncDeleteSecurityProfileLRO.java new file mode 100644 index 000000000000..d06b7a86a7bb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/AsyncDeleteSecurityProfileLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSecurityProfileLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteSecurityProfileLRO(); + } + + public static void asyncDeleteSecurityProfileLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + DeleteSecurityProfileRequest request = + DeleteSecurityProfileRequest.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setEtag("etag3123477") + .build(); + OperationFuture future = + organizationSecurityProfileGroupServiceClient + .deleteSecurityProfileOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfile.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfile.java new file mode 100644 index 000000000000..f2c39f0a1756 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfile.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_sync] +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityProfile { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityProfile(); + } + + public static void syncDeleteSecurityProfile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + DeleteSecurityProfileRequest request = + DeleteSecurityProfileRequest.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .setEtag("etag3123477") + .build(); + organizationSecurityProfileGroupServiceClient.deleteSecurityProfileAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfileSecurityprofilename.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfileSecurityprofilename.java new file mode 100644 index 000000000000..5511720abaff --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfileSecurityprofilename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_Securityprofilename_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityProfileSecurityprofilename { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityProfileSecurityprofilename(); + } + + public static void syncDeleteSecurityProfileSecurityprofilename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + SecurityProfileName name = + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"); + organizationSecurityProfileGroupServiceClient.deleteSecurityProfileAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_Securityprofilename_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfileString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfileString.java new file mode 100644 index 000000000000..fdeee57d05a1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofile/SyncDeleteSecurityProfileString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_String_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityProfileString { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityProfileString(); + } + + public static void syncDeleteSecurityProfileString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + String name = + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString(); + organizationSecurityProfileGroupServiceClient.deleteSecurityProfileAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/AsyncDeleteSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/AsyncDeleteSecurityProfileGroup.java new file mode 100644 index 000000000000..73c14c6b5939 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/AsyncDeleteSecurityProfileGroup.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; +import com.google.longrunning.Operation; + +public class AsyncDeleteSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteSecurityProfileGroup(); + } + + public static void asyncDeleteSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + DeleteSecurityProfileGroupRequest request = + DeleteSecurityProfileGroupRequest.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .deleteSecurityProfileGroupCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/AsyncDeleteSecurityProfileGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/AsyncDeleteSecurityProfileGroupLRO.java new file mode 100644 index 000000000000..48af7d1587a7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/AsyncDeleteSecurityProfileGroupLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSecurityProfileGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteSecurityProfileGroupLRO(); + } + + public static void asyncDeleteSecurityProfileGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + DeleteSecurityProfileGroupRequest request = + DeleteSecurityProfileGroupRequest.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setEtag("etag3123477") + .build(); + OperationFuture future = + organizationSecurityProfileGroupServiceClient + .deleteSecurityProfileGroupOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroup.java new file mode 100644 index 000000000000..eae7929fdbae --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroup.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_sync] +import com.google.cloud.networksecurity.v1.DeleteSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityProfileGroup(); + } + + public static void syncDeleteSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + DeleteSecurityProfileGroupRequest request = + DeleteSecurityProfileGroupRequest.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .setEtag("etag3123477") + .build(); + organizationSecurityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroupSecurityprofilegroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroupSecurityprofilegroupname.java new file mode 100644 index 000000000000..ec809e2b066a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroupSecurityprofilegroupname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_Securityprofilegroupname_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityProfileGroupSecurityprofilegroupname { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityProfileGroupSecurityprofilegroupname(); + } + + public static void syncDeleteSecurityProfileGroupSecurityprofilegroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + SecurityProfileGroupName name = + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"); + organizationSecurityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_Securityprofilegroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroupString.java new file mode 100644 index 000000000000..b054cd69c89b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/deletesecurityprofilegroup/SyncDeleteSecurityProfileGroupString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_String_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityProfileGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityProfileGroupString(); + } + + public static void syncDeleteSecurityProfileGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + String name = + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString(); + organizationSecurityProfileGroupServiceClient.deleteSecurityProfileGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..0a13e59d844e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..15d06f9f3661 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = organizationSecurityProfileGroupServiceClient.getIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getlocation/AsyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..0f0b7c6dbf7c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetLocation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getlocation/SyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..4dbf5cf73b0b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getlocation/SyncGetLocation.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = organizationSecurityProfileGroupServiceClient.getLocation(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetLocation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/AsyncGetSecurityProfile.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/AsyncGetSecurityProfile.java new file mode 100644 index 000000000000..c311bb817e20 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/AsyncGetSecurityProfile.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.SecurityProfileName; + +public class AsyncGetSecurityProfile { + + public static void main(String[] args) throws Exception { + asyncGetSecurityProfile(); + } + + public static void asyncGetSecurityProfile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + GetSecurityProfileRequest request = + GetSecurityProfileRequest.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .getSecurityProfileCallable() + .futureCall(request); + // Do something. + SecurityProfile response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfile.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfile.java new file mode 100644 index 000000000000..707776d1ad8d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfile.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_sync] +import com.google.cloud.networksecurity.v1.GetSecurityProfileRequest; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.SecurityProfileName; + +public class SyncGetSecurityProfile { + + public static void main(String[] args) throws Exception { + syncGetSecurityProfile(); + } + + public static void syncGetSecurityProfile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + GetSecurityProfileRequest request = + GetSecurityProfileRequest.newBuilder() + .setName( + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString()) + .build(); + SecurityProfile response = + organizationSecurityProfileGroupServiceClient.getSecurityProfile(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfileSecurityprofilename.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfileSecurityprofilename.java new file mode 100644 index 000000000000..952507b7e344 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfileSecurityprofilename.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_Securityprofilename_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.SecurityProfileName; + +public class SyncGetSecurityProfileSecurityprofilename { + + public static void main(String[] args) throws Exception { + syncGetSecurityProfileSecurityprofilename(); + } + + public static void syncGetSecurityProfileSecurityprofilename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + SecurityProfileName name = + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]"); + SecurityProfile response = + organizationSecurityProfileGroupServiceClient.getSecurityProfile(name); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_Securityprofilename_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfileString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfileString.java new file mode 100644 index 000000000000..cf482fe39518 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofile/SyncGetSecurityProfileString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_String_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.SecurityProfileName; + +public class SyncGetSecurityProfileString { + + public static void main(String[] args) throws Exception { + syncGetSecurityProfileString(); + } + + public static void syncGetSecurityProfileString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + String name = + SecurityProfileName.ofOrganizationLocationSecurityProfileName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE]") + .toString(); + SecurityProfile response = + organizationSecurityProfileGroupServiceClient.getSecurityProfile(name); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/AsyncGetSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/AsyncGetSecurityProfileGroup.java new file mode 100644 index 000000000000..b5078af025ae --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/AsyncGetSecurityProfileGroup.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; + +public class AsyncGetSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + asyncGetSecurityProfileGroup(); + } + + public static void asyncGetSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + GetSecurityProfileGroupRequest request = + GetSecurityProfileGroupRequest.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .getSecurityProfileGroupCallable() + .futureCall(request); + // Do something. + SecurityProfileGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java new file mode 100644 index 000000000000..8b20a49d6b8b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_sync] +import com.google.cloud.networksecurity.v1.GetSecurityProfileGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; + +public class SyncGetSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + syncGetSecurityProfileGroup(); + } + + public static void syncGetSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + GetSecurityProfileGroupRequest request = + GetSecurityProfileGroupRequest.newBuilder() + .setName( + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString()) + .build(); + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient.getSecurityProfileGroup(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroupSecurityprofilegroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroupSecurityprofilegroupname.java new file mode 100644 index 000000000000..b95817cd775a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroupSecurityprofilegroupname.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_Securityprofilegroupname_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; + +public class SyncGetSecurityProfileGroupSecurityprofilegroupname { + + public static void main(String[] args) throws Exception { + syncGetSecurityProfileGroupSecurityprofilegroupname(); + } + + public static void syncGetSecurityProfileGroupSecurityprofilegroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + SecurityProfileGroupName name = + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]"); + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient.getSecurityProfileGroup(name); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_Securityprofilegroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroupString.java new file mode 100644 index 000000000000..4c9a9e7a220d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/getsecurityprofilegroup/SyncGetSecurityProfileGroupString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_String_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.SecurityProfileGroupName; + +public class SyncGetSecurityProfileGroupString { + + public static void main(String[] args) throws Exception { + syncGetSecurityProfileGroupString(); + } + + public static void syncGetSecurityProfileGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + String name = + SecurityProfileGroupName.ofOrganizationLocationSecurityProfileGroupName( + "[ORGANIZATION]", "[LOCATION]", "[SECURITY_PROFILE_GROUP]") + .toString(); + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient.getSecurityProfileGroup(name); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/AsyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..34fc58b118bd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/AsyncListLocations.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .listLocationsPagedCallable() + .futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListLocations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/AsyncListLocationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..bb60bc0b86db --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + organizationSecurityProfileGroupServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListLocations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/SyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..3141d685224b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listlocations/SyncListLocations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : + organizationSecurityProfileGroupServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListLocations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/AsyncListSecurityProfileGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/AsyncListSecurityProfileGroups.java new file mode 100644 index 000000000000..f57a8c9df7d1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/AsyncListSecurityProfileGroups.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class AsyncListSecurityProfileGroups { + + public static void main(String[] args) throws Exception { + asyncListSecurityProfileGroups(); + } + + public static void asyncListSecurityProfileGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListSecurityProfileGroupsRequest request = + ListSecurityProfileGroupsRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .listSecurityProfileGroupsPagedCallable() + .futureCall(request); + // Do something. + for (SecurityProfileGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/AsyncListSecurityProfileGroupsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/AsyncListSecurityProfileGroupsPaged.java new file mode 100644 index 000000000000..bcf4fa106f6b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/AsyncListSecurityProfileGroupsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_Paged_async] +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.common.base.Strings; + +public class AsyncListSecurityProfileGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListSecurityProfileGroupsPaged(); + } + + public static void asyncListSecurityProfileGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListSecurityProfileGroupsRequest request = + ListSecurityProfileGroupsRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSecurityProfileGroupsResponse response = + organizationSecurityProfileGroupServiceClient + .listSecurityProfileGroupsCallable() + .call(request); + for (SecurityProfileGroup element : response.getSecurityProfileGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroups.java new file mode 100644 index 000000000000..e6af72e1c138 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroups.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_sync] +import com.google.cloud.networksecurity.v1.ListSecurityProfileGroupsRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class SyncListSecurityProfileGroups { + + public static void main(String[] args) throws Exception { + syncListSecurityProfileGroups(); + } + + public static void syncListSecurityProfileGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListSecurityProfileGroupsRequest request = + ListSecurityProfileGroupsRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SecurityProfileGroup element : + organizationSecurityProfileGroupServiceClient + .listSecurityProfileGroups(request) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsLocationname.java new file mode 100644 index 000000000000..3de2705eb463 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsLocationname.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_Locationname_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class SyncListSecurityProfileGroupsLocationname { + + public static void main(String[] args) throws Exception { + syncListSecurityProfileGroupsLocationname(); + } + + public static void syncListSecurityProfileGroupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (SecurityProfileGroup element : + organizationSecurityProfileGroupServiceClient + .listSecurityProfileGroups(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsOrganizationlocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsOrganizationlocationname.java new file mode 100644 index 000000000000..f859d96f9ff5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsOrganizationlocationname.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_Organizationlocationname_sync] +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class SyncListSecurityProfileGroupsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListSecurityProfileGroupsOrganizationlocationname(); + } + + public static void syncListSecurityProfileGroupsOrganizationlocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (SecurityProfileGroup element : + organizationSecurityProfileGroupServiceClient + .listSecurityProfileGroups(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_Organizationlocationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsString.java new file mode 100644 index 000000000000..fc135bf2bc26 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofilegroups/SyncListSecurityProfileGroupsString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_String_sync] +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; + +public class SyncListSecurityProfileGroupsString { + + public static void main(String[] args) throws Exception { + syncListSecurityProfileGroupsString(); + } + + public static void syncListSecurityProfileGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (SecurityProfileGroup element : + organizationSecurityProfileGroupServiceClient + .listSecurityProfileGroups(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/AsyncListSecurityProfiles.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/AsyncListSecurityProfiles.java new file mode 100644 index 000000000000..c7ff6a360dc7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/AsyncListSecurityProfiles.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class AsyncListSecurityProfiles { + + public static void main(String[] args) throws Exception { + asyncListSecurityProfiles(); + } + + public static void asyncListSecurityProfiles() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListSecurityProfilesRequest request = + ListSecurityProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .listSecurityProfilesPagedCallable() + .futureCall(request); + // Do something. + for (SecurityProfile element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/AsyncListSecurityProfilesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/AsyncListSecurityProfilesPaged.java new file mode 100644 index 000000000000..eb4088df1f45 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/AsyncListSecurityProfilesPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_Paged_async] +import com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest; +import com.google.cloud.networksecurity.v1.ListSecurityProfilesResponse; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.common.base.Strings; + +public class AsyncListSecurityProfilesPaged { + + public static void main(String[] args) throws Exception { + asyncListSecurityProfilesPaged(); + } + + public static void asyncListSecurityProfilesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListSecurityProfilesRequest request = + ListSecurityProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSecurityProfilesResponse response = + organizationSecurityProfileGroupServiceClient + .listSecurityProfilesCallable() + .call(request); + for (SecurityProfile element : response.getSecurityProfilesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfiles.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfiles.java new file mode 100644 index 000000000000..2ebfe7bfeed8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfiles.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_sync] +import com.google.cloud.networksecurity.v1.ListSecurityProfilesRequest; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class SyncListSecurityProfiles { + + public static void main(String[] args) throws Exception { + syncListSecurityProfiles(); + } + + public static void syncListSecurityProfiles() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + ListSecurityProfilesRequest request = + ListSecurityProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SecurityProfile element : + organizationSecurityProfileGroupServiceClient + .listSecurityProfiles(request) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesLocationname.java new file mode 100644 index 000000000000..4bdac852ff26 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesLocationname.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_Locationname_sync] +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class SyncListSecurityProfilesLocationname { + + public static void main(String[] args) throws Exception { + syncListSecurityProfilesLocationname(); + } + + public static void syncListSecurityProfilesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (SecurityProfile element : + organizationSecurityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesOrganizationlocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesOrganizationlocationname.java new file mode 100644 index 000000000000..302735e9cf42 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesOrganizationlocationname.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_Organizationlocationname_sync] +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class SyncListSecurityProfilesOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListSecurityProfilesOrganizationlocationname(); + } + + public static void syncListSecurityProfilesOrganizationlocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (SecurityProfile element : + organizationSecurityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_Organizationlocationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesString.java new file mode 100644 index 000000000000..c42e55727e82 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/listsecurityprofiles/SyncListSecurityProfilesString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_String_sync] +import com.google.cloud.networksecurity.v1.OrganizationLocationName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; + +public class SyncListSecurityProfilesString { + + public static void main(String[] args) throws Exception { + syncListSecurityProfilesString(); + } + + public static void syncListSecurityProfilesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (SecurityProfile element : + organizationSecurityProfileGroupServiceClient.listSecurityProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..f83bd7805c0f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_SetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..aa4386a7b689 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_SetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = organizationSecurityProfileGroupServiceClient.setIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_SetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..3299e04f1574 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .testIamPermissionsCallable() + .futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_TestIamPermissions_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..0a6518ace28a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_TestIamPermissions_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + organizationSecurityProfileGroupServiceClient.testIamPermissions(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_TestIamPermissions_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/AsyncUpdateSecurityProfile.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/AsyncUpdateSecurityProfile.java new file mode 100644 index 000000000000..8563d934b693 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/AsyncUpdateSecurityProfile.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSecurityProfile { + + public static void main(String[] args) throws Exception { + asyncUpdateSecurityProfile(); + } + + public static void asyncUpdateSecurityProfile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + UpdateSecurityProfileRequest request = + UpdateSecurityProfileRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSecurityProfile(SecurityProfile.newBuilder().build()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .updateSecurityProfileCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/AsyncUpdateSecurityProfileLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/AsyncUpdateSecurityProfileLRO.java new file mode 100644 index 000000000000..0e37f29a003f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/AsyncUpdateSecurityProfileLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSecurityProfileLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateSecurityProfileLRO(); + } + + public static void asyncUpdateSecurityProfileLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + UpdateSecurityProfileRequest request = + UpdateSecurityProfileRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSecurityProfile(SecurityProfile.newBuilder().build()) + .build(); + OperationFuture future = + organizationSecurityProfileGroupServiceClient + .updateSecurityProfileOperationCallable() + .futureCall(request); + // Do something. + SecurityProfile response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/SyncUpdateSecurityProfile.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/SyncUpdateSecurityProfile.java new file mode 100644 index 000000000000..3c7f8ef59a22 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/SyncUpdateSecurityProfile.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSecurityProfile { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityProfile(); + } + + public static void syncUpdateSecurityProfile() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + UpdateSecurityProfileRequest request = + UpdateSecurityProfileRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSecurityProfile(SecurityProfile.newBuilder().build()) + .build(); + SecurityProfile response = + organizationSecurityProfileGroupServiceClient.updateSecurityProfileAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/SyncUpdateSecurityProfileSecurityprofileFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/SyncUpdateSecurityProfileSecurityprofileFieldmask.java new file mode 100644 index 000000000000..b777089db96b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofile/SyncUpdateSecurityProfileSecurityprofileFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_SecurityprofileFieldmask_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfile; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSecurityProfileSecurityprofileFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityProfileSecurityprofileFieldmask(); + } + + public static void syncUpdateSecurityProfileSecurityprofileFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + SecurityProfile securityProfile = SecurityProfile.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SecurityProfile response = + organizationSecurityProfileGroupServiceClient + .updateSecurityProfileAsync(securityProfile, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_SecurityprofileFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/AsyncUpdateSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/AsyncUpdateSecurityProfileGroup.java new file mode 100644 index 000000000000..2420e4814eba --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/AsyncUpdateSecurityProfileGroup.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateSecurityProfileGroup(); + } + + public static void asyncUpdateSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + UpdateSecurityProfileGroupRequest request = + UpdateSecurityProfileGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build()) + .build(); + ApiFuture future = + organizationSecurityProfileGroupServiceClient + .updateSecurityProfileGroupCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/AsyncUpdateSecurityProfileGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/AsyncUpdateSecurityProfileGroupLRO.java new file mode 100644 index 000000000000..2aebfe3c5079 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/AsyncUpdateSecurityProfileGroupLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSecurityProfileGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateSecurityProfileGroupLRO(); + } + + public static void asyncUpdateSecurityProfileGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + UpdateSecurityProfileGroupRequest request = + UpdateSecurityProfileGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build()) + .build(); + OperationFuture future = + organizationSecurityProfileGroupServiceClient + .updateSecurityProfileGroupOperationCallable() + .futureCall(request); + // Do something. + SecurityProfileGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/SyncUpdateSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/SyncUpdateSecurityProfileGroup.java new file mode 100644 index 000000000000..716e6d8f44cf --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/SyncUpdateSecurityProfileGroup.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.cloud.networksecurity.v1.UpdateSecurityProfileGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityProfileGroup(); + } + + public static void syncUpdateSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + UpdateSecurityProfileGroupRequest request = + UpdateSecurityProfileGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSecurityProfileGroup(SecurityProfileGroup.newBuilder().build()) + .build(); + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient + .updateSecurityProfileGroupAsync(request) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/SyncUpdateSecurityProfileGroupSecurityprofilegroupFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/SyncUpdateSecurityProfileGroupSecurityprofilegroupFieldmask.java new file mode 100644 index 000000000000..217e66cec6d7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservice/updatesecurityprofilegroup/SyncUpdateSecurityProfileGroupSecurityprofilegroupFieldmask.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_SecurityprofilegroupFieldmask_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient; +import com.google.cloud.networksecurity.v1.SecurityProfileGroup; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSecurityProfileGroupSecurityprofilegroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityProfileGroupSecurityprofilegroupFieldmask(); + } + + public static void syncUpdateSecurityProfileGroupSecurityprofilegroupFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationSecurityProfileGroupServiceClient + organizationSecurityProfileGroupServiceClient = + OrganizationSecurityProfileGroupServiceClient.create()) { + SecurityProfileGroup securityProfileGroup = SecurityProfileGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SecurityProfileGroup response = + organizationSecurityProfileGroupServiceClient + .updateSecurityProfileGroupAsync(securityProfileGroup, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_SecurityprofilegroupFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservicesettings/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservicesettings/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java new file mode 100644 index 000000000000..3485bd95ce16 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservicesettings/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupServiceSettings_CreateSecurityProfileGroup_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceSettings; +import java.time.Duration; + +public class SyncCreateSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileGroup(); + } + + public static void syncCreateSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationSecurityProfileGroupServiceSettings.Builder + organizationSecurityProfileGroupServiceSettingsBuilder = + OrganizationSecurityProfileGroupServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + organizationSecurityProfileGroupServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupServiceSettings_CreateSecurityProfileGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservicesettings/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservicesettings/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java new file mode 100644 index 000000000000..d8c8b957943d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationsecurityprofilegroupservicesettings/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupServiceSettings_GetSecurityProfileGroup_sync] +import com.google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceSettings; +import java.time.Duration; + +public class SyncGetSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + syncGetSecurityProfileGroup(); + } + + public static void syncGetSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationSecurityProfileGroupServiceSettings.Builder + organizationSecurityProfileGroupServiceSettingsBuilder = + OrganizationSecurityProfileGroupServiceSettings.newBuilder(); + organizationSecurityProfileGroupServiceSettingsBuilder + .getSecurityProfileGroupSettings() + .setRetrySettings( + organizationSecurityProfileGroupServiceSettingsBuilder + .getSecurityProfileGroupSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + OrganizationSecurityProfileGroupServiceSettings + organizationSecurityProfileGroupServiceSettings = + organizationSecurityProfileGroupServiceSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupServiceSettings_GetSecurityProfileGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/dnsthreatdetectorservicestubsettings/getdnsthreatdetector/SyncGetDnsThreatDetector.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/dnsthreatdetectorservicestubsettings/getdnsthreatdetector/SyncGetDnsThreatDetector.java new file mode 100644 index 000000000000..138fb611f3f2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/dnsthreatdetectorservicestubsettings/getdnsthreatdetector/SyncGetDnsThreatDetector.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_DnsThreatDetectorServiceStubSettings_GetDnsThreatDetector_sync] +import com.google.cloud.networksecurity.v1.stub.DnsThreatDetectorServiceStubSettings; +import java.time.Duration; + +public class SyncGetDnsThreatDetector { + + public static void main(String[] args) throws Exception { + syncGetDnsThreatDetector(); + } + + public static void syncGetDnsThreatDetector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DnsThreatDetectorServiceStubSettings.Builder dnsThreatDetectorServiceSettingsBuilder = + DnsThreatDetectorServiceStubSettings.newBuilder(); + dnsThreatDetectorServiceSettingsBuilder + .getDnsThreatDetectorSettings() + .setRetrySettings( + dnsThreatDetectorServiceSettingsBuilder + .getDnsThreatDetectorSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DnsThreatDetectorServiceStubSettings dnsThreatDetectorServiceSettings = + dnsThreatDetectorServiceSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_DnsThreatDetectorServiceStubSettings_GetDnsThreatDetector_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/firewallactivationstubsettings/createfirewallendpoint/SyncCreateFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/firewallactivationstubsettings/createfirewallendpoint/SyncCreateFirewallEndpoint.java new file mode 100644 index 000000000000..6b42576333f9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/firewallactivationstubsettings/createfirewallendpoint/SyncCreateFirewallEndpoint.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_FirewallActivationStubSettings_CreateFirewallEndpoint_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networksecurity.v1.stub.FirewallActivationStubSettings; +import java.time.Duration; + +public class SyncCreateFirewallEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateFirewallEndpoint(); + } + + public static void syncCreateFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FirewallActivationStubSettings.Builder firewallActivationSettingsBuilder = + FirewallActivationStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + firewallActivationSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_FirewallActivationStubSettings_CreateFirewallEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/firewallactivationstubsettings/getfirewallendpoint/SyncGetFirewallEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/firewallactivationstubsettings/getfirewallendpoint/SyncGetFirewallEndpoint.java new file mode 100644 index 000000000000..68e852cd41b0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/firewallactivationstubsettings/getfirewallendpoint/SyncGetFirewallEndpoint.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_FirewallActivationStubSettings_GetFirewallEndpoint_sync] +import com.google.cloud.networksecurity.v1.stub.FirewallActivationStubSettings; +import java.time.Duration; + +public class SyncGetFirewallEndpoint { + + public static void main(String[] args) throws Exception { + syncGetFirewallEndpoint(); + } + + public static void syncGetFirewallEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + FirewallActivationStubSettings.Builder firewallActivationSettingsBuilder = + FirewallActivationStubSettings.newBuilder(); + firewallActivationSettingsBuilder + .getFirewallEndpointSettings() + .setRetrySettings( + firewallActivationSettingsBuilder + .getFirewallEndpointSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + FirewallActivationStubSettings firewallActivationSettings = + firewallActivationSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_FirewallActivationStubSettings_GetFirewallEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/interceptstubsettings/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/interceptstubsettings/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java new file mode 100644 index 000000000000..1297d24e6ba8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/interceptstubsettings/createinterceptendpointgroup/SyncCreateInterceptEndpointGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_InterceptStubSettings_CreateInterceptEndpointGroup_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networksecurity.v1.stub.InterceptStubSettings; +import java.time.Duration; + +public class SyncCreateInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + syncCreateInterceptEndpointGroup(); + } + + public static void syncCreateInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + InterceptStubSettings.Builder interceptSettingsBuilder = InterceptStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + interceptSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_InterceptStubSettings_CreateInterceptEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/interceptstubsettings/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/interceptstubsettings/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java new file mode 100644 index 000000000000..bd3b2583a65a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/interceptstubsettings/getinterceptendpointgroup/SyncGetInterceptEndpointGroup.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_InterceptStubSettings_GetInterceptEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.stub.InterceptStubSettings; +import java.time.Duration; + +public class SyncGetInterceptEndpointGroup { + + public static void main(String[] args) throws Exception { + syncGetInterceptEndpointGroup(); + } + + public static void syncGetInterceptEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + InterceptStubSettings.Builder interceptSettingsBuilder = InterceptStubSettings.newBuilder(); + interceptSettingsBuilder + .getInterceptEndpointGroupSettings() + .setRetrySettings( + interceptSettingsBuilder + .getInterceptEndpointGroupSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + InterceptStubSettings interceptSettings = interceptSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_InterceptStubSettings_GetInterceptEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/mirroringstubsettings/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/mirroringstubsettings/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java new file mode 100644 index 000000000000..83f475d3e933 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/mirroringstubsettings/createmirroringendpointgroup/SyncCreateMirroringEndpointGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_MirroringStubSettings_CreateMirroringEndpointGroup_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networksecurity.v1.stub.MirroringStubSettings; +import java.time.Duration; + +public class SyncCreateMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + syncCreateMirroringEndpointGroup(); + } + + public static void syncCreateMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MirroringStubSettings.Builder mirroringSettingsBuilder = MirroringStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + mirroringSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_MirroringStubSettings_CreateMirroringEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/mirroringstubsettings/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/mirroringstubsettings/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java new file mode 100644 index 000000000000..f8ebb0a7a11e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/mirroringstubsettings/getmirroringendpointgroup/SyncGetMirroringEndpointGroup.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_MirroringStubSettings_GetMirroringEndpointGroup_sync] +import com.google.cloud.networksecurity.v1.stub.MirroringStubSettings; +import java.time.Duration; + +public class SyncGetMirroringEndpointGroup { + + public static void main(String[] args) throws Exception { + syncGetMirroringEndpointGroup(); + } + + public static void syncGetMirroringEndpointGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + MirroringStubSettings.Builder mirroringSettingsBuilder = MirroringStubSettings.newBuilder(); + mirroringSettingsBuilder + .getMirroringEndpointGroupSettings() + .setRetrySettings( + mirroringSettingsBuilder + .getMirroringEndpointGroupSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + MirroringStubSettings mirroringSettings = mirroringSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_MirroringStubSettings_GetMirroringEndpointGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationsecurityprofilegroupservicestubsettings/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationsecurityprofilegroupservicestubsettings/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java new file mode 100644 index 000000000000..05cf651278d3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationsecurityprofilegroupservicestubsettings/createsecurityprofilegroup/SyncCreateSecurityProfileGroup.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupServiceStubSettings_CreateSecurityProfileGroup_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networksecurity.v1.stub.OrganizationSecurityProfileGroupServiceStubSettings; +import java.time.Duration; + +public class SyncCreateSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + syncCreateSecurityProfileGroup(); + } + + public static void syncCreateSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationSecurityProfileGroupServiceStubSettings.Builder + organizationSecurityProfileGroupServiceSettingsBuilder = + OrganizationSecurityProfileGroupServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + organizationSecurityProfileGroupServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupServiceStubSettings_CreateSecurityProfileGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationsecurityprofilegroupservicestubsettings/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationsecurityprofilegroupservicestubsettings/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java new file mode 100644 index 000000000000..f95e3d06f202 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationsecurityprofilegroupservicestubsettings/getsecurityprofilegroup/SyncGetSecurityProfileGroup.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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. + */ + +package com.google.cloud.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_OrganizationSecurityProfileGroupServiceStubSettings_GetSecurityProfileGroup_sync] +import com.google.cloud.networksecurity.v1.stub.OrganizationSecurityProfileGroupServiceStubSettings; +import java.time.Duration; + +public class SyncGetSecurityProfileGroup { + + public static void main(String[] args) throws Exception { + syncGetSecurityProfileGroup(); + } + + public static void syncGetSecurityProfileGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationSecurityProfileGroupServiceStubSettings.Builder + organizationSecurityProfileGroupServiceSettingsBuilder = + OrganizationSecurityProfileGroupServiceStubSettings.newBuilder(); + organizationSecurityProfileGroupServiceSettingsBuilder + .getSecurityProfileGroupSettings() + .setRetrySettings( + organizationSecurityProfileGroupServiceSettingsBuilder + .getSecurityProfileGroupSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + OrganizationSecurityProfileGroupServiceStubSettings + organizationSecurityProfileGroupServiceSettings = + organizationSecurityProfileGroupServiceSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_OrganizationSecurityProfileGroupServiceStubSettings_GetSecurityProfileGroup_sync] diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 9b4b3eef3cd3..37c205b0d85e 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.57.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.58.0" ``` ## Authentication @@ -176,7 +176,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securesourcemanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java index 85fc45099052..518477cc1cec 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java @@ -938,7 +938,7 @@ * * *

                                                                                              BatchCreatePullRequestComments - *

                                                                                              Batch creates pull request comments. This function is used to create multiple PullRequestComments for code review. There needs to be exactly one PullRequestComment of type Review, and at most 100 PullRequestComments of type Code per request. The Postition of the code comments must be unique within the request. + *

                                                                                              Batch creates pull request comments. This function is used to create multiple PullRequestComments for code review. There needs to be exactly one PullRequestComment of type Review, and at most 100 PullRequestComments of type Code per request. The Position of the code comments must be unique within the request. * *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              *
                                                                                                @@ -1093,7 +1093,10 @@ * * *

                                                                                                ListLocations - *

                                                                                                Lists information about the supported locations for this service. + *

                                                                                                Lists information about the supported locations for this service. + *

                                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                *
                                                                                                  @@ -1814,6 +1817,7 @@ public final OperationFuture deleteInstanceAsync(Strin * DeleteInstanceRequest.newBuilder() * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * secureSourceManagerClient.deleteInstanceAsync(request).get(); * } @@ -1844,6 +1848,7 @@ public final OperationFuture deleteInstanceAsync( * DeleteInstanceRequest.newBuilder() * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * OperationFuture future = * secureSourceManagerClient.deleteInstanceOperationCallable().futureCall(request); @@ -1874,6 +1879,7 @@ public final OperationFuture deleteInstanceAsync( * DeleteInstanceRequest.newBuilder() * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * ApiFuture future = * secureSourceManagerClient.deleteInstanceCallable().futureCall(request); @@ -3100,7 +3106,7 @@ public final UnaryCallable createHookCallable() { * }
                                                                                              * * @param hook Required. The hook being updated. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the * hook resource by the update. The fields specified in the update_mask are relative to the * resource, not the full request. A field will be overwritten if it is in the mask. The * special value "*" means full replacement. @@ -4163,7 +4169,7 @@ public final UnaryCallable getBranchRuleCallab * }
                                                                                              * * @param branchRule - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the * branchRule resource by the update. The fields specified in the update_mask are relative to * the resource, not the full request. A field will be overwritten if it is in the mask. The * special value "*" means full replacement. @@ -7573,7 +7579,7 @@ public final OperationFuture deletePullRequestCommentA /** * Batch creates pull request comments. This function is used to create multiple * PullRequestComments for code review. There needs to be exactly one PullRequestComment of type - * Review, and at most 100 PullRequestComments of type Code per request. The Postition of the code + * Review, and at most 100 PullRequestComments of type Code per request. The Position of the code * comments must be unique within the request. * *

                                                                                              Sample code: @@ -7616,7 +7622,7 @@ public final OperationFuture deletePullRequestCommentA /** * Batch creates pull request comments. This function is used to create multiple * PullRequestComments for code review. There needs to be exactly one PullRequestComment of type - * Review, and at most 100 PullRequestComments of type Code per request. The Postition of the code + * Review, and at most 100 PullRequestComments of type Code per request. The Position of the code * comments must be unique within the request. * *

                                                                                              Sample code: @@ -7660,7 +7666,7 @@ public final OperationFuture deletePullRequestCommentA /** * Batch creates pull request comments. This function is used to create multiple * PullRequestComments for code review. There needs to be exactly one PullRequestComment of type - * Review, and at most 100 PullRequestComments of type Code per request. The Postition of the code + * Review, and at most 100 PullRequestComments of type Code per request. The Position of the code * comments must be unique within the request. * *

                                                                                              Sample code: @@ -7696,7 +7702,7 @@ public final OperationFuture deletePullRequestCommentA /** * Batch creates pull request comments. This function is used to create multiple * PullRequestComments for code review. There needs to be exactly one PullRequestComment of type - * Review, and at most 100 PullRequestComments of type Code per request. The Postition of the code + * Review, and at most 100 PullRequestComments of type Code per request. The Position of the code * comments must be unique within the request. * *

                                                                                              Sample code: @@ -7736,7 +7742,7 @@ public final OperationFuture deletePullRequestCommentA /** * Batch creates pull request comments. This function is used to create multiple * PullRequestComments for code review. There needs to be exactly one PullRequestComment of type - * Review, and at most 100 PullRequestComments of type Code per request. The Postition of the code + * Review, and at most 100 PullRequestComments of type Code per request. The Position of the code * comments must be unique within the request. * *

                                                                                              Sample code: @@ -8888,6 +8894,19 @@ public final UnaryCallable deleteIssueComm /** * Lists information about the supported locations for this service. * + *

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              @@ -8921,6 +8940,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                 /**
                                                                                                  * Lists information about the supported locations for this service.
                                                                                                  *
                                                                                              +   * 

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              @@ -8955,6 +8987,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                 /**
                                                                                                  * Lists information about the supported locations for this service.
                                                                                                  *
                                                                                              +   * 

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/GrpcSecureSourceManagerStub.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/GrpcSecureSourceManagerStub.java
                                                                                              index 3e587cd9be94..7053eb1e9165 100644
                                                                                              --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/GrpcSecureSourceManagerStub.java
                                                                                              +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/GrpcSecureSourceManagerStub.java
                                                                                              @@ -997,6 +997,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings getInstanceTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1007,6 +1008,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings createInstanceTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1017,6 +1019,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings deleteInstanceTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1027,6 +1030,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings
                                                                                                       listRepositoriesTransportSettings =
                                                                                              @@ -1038,6 +1042,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings getRepositoryTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1048,6 +1053,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings createRepositoryTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1058,6 +1064,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings updateRepositoryTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1078,6 +1085,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings listHooksTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1088,6 +1096,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings getHookTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1098,6 +1107,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings createHookTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1108,6 +1118,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings updateHookTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1128,6 +1139,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings getIamPolicyRepoTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1138,6 +1150,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getResource())
                                                                                                           .build();
                                                                                                   GrpcCallSettings setIamPolicyRepoTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1148,6 +1161,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getResource())
                                                                                                           .build();
                                                                                                   GrpcCallSettings
                                                                                                       testIamPermissionsRepoTransportSettings =
                                                                                              @@ -1159,6 +1173,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getResource())
                                                                                                               .build();
                                                                                                   GrpcCallSettings createBranchRuleTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1169,6 +1184,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings
                                                                                                       listBranchRulesTransportSettings =
                                                                                              @@ -1180,6 +1196,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings getBranchRuleTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1190,6 +1207,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings updateBranchRuleTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1211,6 +1229,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings createPullRequestTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1221,6 +1240,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings getPullRequestTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1231,6 +1251,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings
                                                                                                       listPullRequestsTransportSettings =
                                                                                              @@ -1242,6 +1263,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings updatePullRequestTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1263,6 +1285,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings openPullRequestTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1273,6 +1296,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings closePullRequestTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1283,6 +1307,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings
                                                                                                       listPullRequestFileDiffsTransportSettings =
                                                                                              @@ -1295,6 +1320,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getName())
                                                                                                               .build();
                                                                                                   GrpcCallSettings fetchTreeTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1305,6 +1331,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("repository", String.valueOf(request.getRepository()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getRepository())
                                                                                                           .build();
                                                                                                   GrpcCallSettings fetchBlobTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1315,6 +1342,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("repository", String.valueOf(request.getRepository()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getRepository())
                                                                                                           .build();
                                                                                                   GrpcCallSettings createIssueTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1325,6 +1353,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings getIssueTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1335,6 +1364,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings listIssuesTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1345,6 +1375,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings updateIssueTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1365,6 +1396,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings openIssueTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1375,6 +1407,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings closeIssueTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1385,6 +1418,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings
                                                                                                       getPullRequestCommentTransportSettings =
                                                                                              @@ -1396,6 +1430,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getName())
                                                                                                               .build();
                                                                                                   GrpcCallSettings
                                                                                                       listPullRequestCommentsTransportSettings =
                                                                                              @@ -1408,6 +1443,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings
                                                                                                       createPullRequestCommentTransportSettings =
                                                                                              @@ -1419,6 +1455,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings
                                                                                                       updatePullRequestCommentTransportSettings =
                                                                                              @@ -1443,6 +1480,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getName())
                                                                                                               .build();
                                                                                                   GrpcCallSettings
                                                                                                       batchCreatePullRequestCommentsTransportSettings =
                                                                                              @@ -1454,6 +1492,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings
                                                                                                       resolvePullRequestCommentsTransportSettings =
                                                                                              @@ -1465,6 +1504,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings
                                                                                                       unresolvePullRequestCommentsTransportSettings =
                                                                                              @@ -1476,6 +1516,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings createIssueCommentTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1486,6 +1527,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   GrpcCallSettings getIssueCommentTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1496,6 +1538,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings
                                                                                                       listIssueCommentsTransportSettings =
                                                                                              @@ -1507,6 +1550,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   GrpcCallSettings updateIssueCommentTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1528,6 +1572,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   GrpcCallSettings listLocationsTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1558,6 +1603,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getResource())
                                                                                                           .build();
                                                                                                   GrpcCallSettings getIamPolicyTransportSettings =
                                                                                                       GrpcCallSettings.newBuilder()
                                                                                              @@ -1568,6 +1614,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                 builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getResource())
                                                                                                           .build();
                                                                                                   GrpcCallSettings
                                                                                                       testIamPermissionsTransportSettings =
                                                                                              @@ -1579,6 +1626,7 @@ protected GrpcSecureSourceManagerStub(
                                                                                                                     builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getResource())
                                                                                                               .build();
                                                                                               
                                                                                                   this.listInstancesCallable =
                                                                                              diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/HttpJsonSecureSourceManagerStub.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/HttpJsonSecureSourceManagerStub.java
                                                                                              index 24e76a6518b1..e701890a71ee 100644
                                                                                              --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/HttpJsonSecureSourceManagerStub.java
                                                                                              +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/HttpJsonSecureSourceManagerStub.java
                                                                                              @@ -302,6 +302,7 @@ public class HttpJsonSecureSourceManagerStub extends SecureSourceManagerStub {
                                                                                                                           Map> fields = new HashMap<>();
                                                                                                                           ProtoRestSerializer serializer =
                                                                                                                               ProtoRestSerializer.create();
                                                                                              +                            serializer.putQueryParam(fields, "force", request.getForce());
                                                                                                                           serializer.putQueryParam(fields, "requestId", request.getRequestId());
                                                                                                                           serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                                                                                                           return fields;
                                                                                              @@ -2628,6 +2629,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings getInstanceTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2639,6 +2641,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings createInstanceTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2650,6 +2653,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings deleteInstanceTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2661,6 +2665,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       listRepositoriesTransportSettings =
                                                                                              @@ -2673,6 +2678,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings getRepositoryTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2684,6 +2690,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings createRepositoryTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2695,6 +2702,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings updateRepositoryTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2717,6 +2725,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings listHooksTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2728,6 +2737,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings getHookTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2739,6 +2749,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings createHookTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2750,6 +2761,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings updateHookTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2772,6 +2784,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings getIamPolicyRepoTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2783,6 +2796,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getResource())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings setIamPolicyRepoTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2794,6 +2808,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getResource())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       testIamPermissionsRepoTransportSettings =
                                                                                              @@ -2806,6 +2821,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getResource())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings createBranchRuleTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2817,6 +2833,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       listBranchRulesTransportSettings =
                                                                                              @@ -2829,6 +2846,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings getBranchRuleTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2840,6 +2858,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings updateBranchRuleTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2863,6 +2882,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings createPullRequestTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2874,6 +2894,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings getPullRequestTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2885,6 +2906,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       listPullRequestsTransportSettings =
                                                                                              @@ -2897,6 +2919,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings updatePullRequestTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2920,6 +2943,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings openPullRequestTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2931,6 +2955,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings closePullRequestTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2942,6 +2967,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       listPullRequestFileDiffsTransportSettings =
                                                                                              @@ -2955,6 +2981,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getName())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings fetchTreeTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2966,6 +2993,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("repository", String.valueOf(request.getRepository()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getRepository())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings fetchBlobTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2977,6 +3005,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("repository", String.valueOf(request.getRepository()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getRepository())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings createIssueTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2988,6 +3017,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings getIssueTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -2999,6 +3029,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings listIssuesTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -3010,6 +3041,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings updateIssueTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -3032,6 +3064,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings openIssueTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -3043,6 +3076,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings closeIssueTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -3054,6 +3088,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       getPullRequestCommentTransportSettings =
                                                                                              @@ -3066,6 +3101,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getName())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       listPullRequestCommentsTransportSettings =
                                                                                              @@ -3079,6 +3115,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       createPullRequestCommentTransportSettings =
                                                                                              @@ -3091,6 +3128,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       updatePullRequestCommentTransportSettings =
                                                                                              @@ -3117,6 +3155,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("name", String.valueOf(request.getName()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getName())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       batchCreatePullRequestCommentsTransportSettings =
                                                                                              @@ -3129,6 +3168,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       resolvePullRequestCommentsTransportSettings =
                                                                                              @@ -3141,6 +3181,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       unresolvePullRequestCommentsTransportSettings =
                                                                                              @@ -3153,6 +3194,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings createIssueCommentTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -3164,6 +3206,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings getIssueCommentTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -3175,6 +3218,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       listIssueCommentsTransportSettings =
                                                                                              @@ -3187,6 +3231,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                               .build();
                                                                                                   HttpJsonCallSettings updateIssueCommentTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -3210,6 +3255,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getName())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       listLocationsTransportSettings =
                                                                                              @@ -3244,6 +3290,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getResource())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings getIamPolicyTransportSettings =
                                                                                                       HttpJsonCallSettings.newBuilder()
                                                                                              @@ -3255,6 +3302,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                 builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                 return builder.build();
                                                                                                               })
                                                                                              +            .setResourceNameExtractor(request -> request.getResource())
                                                                                                           .build();
                                                                                                   HttpJsonCallSettings
                                                                                                       testIamPermissionsTransportSettings =
                                                                                              @@ -3267,6 +3315,7 @@ protected HttpJsonSecureSourceManagerStub(
                                                                                                                     builder.add("resource", String.valueOf(request.getResource()));
                                                                                                                     return builder.build();
                                                                                                                   })
                                                                                              +                .setResourceNameExtractor(request -> request.getResource())
                                                                                                               .build();
                                                                                               
                                                                                                   this.listInstancesCallable =
                                                                                              diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java
                                                                                              index 5f899271f6da..e2738eaaf899 100644
                                                                                              --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java
                                                                                              +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java
                                                                                              @@ -1738,6 +1738,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                   return LibraryMetadata.newBuilder()
                                                                                                       .setArtifactName("com.google.cloud:google-cloud-securesourcemanager")
                                                                                                       .setRepository("googleapis/google-cloud-java")
                                                                                              +        .setVersion(Version.VERSION)
                                                                                                       .build();
                                                                                                 }
                                                                                               
                                                                                              diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/Version.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/Version.java
                                                                                              new file mode 100644
                                                                                              index 000000000000..4fa8a6038fdb
                                                                                              --- /dev/null
                                                                                              +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/Version.java
                                                                                              @@ -0,0 +1,27 @@
                                                                                              +/*
                                                                                              + * Copyright 2026 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.
                                                                                              + */
                                                                                              +
                                                                                              +package com.google.cloud.securesourcemanager.v1.stub;
                                                                                              +
                                                                                              +import com.google.api.core.InternalApi;
                                                                                              +
                                                                                              +@InternalApi("For internal use only")
                                                                                              +final class Version {
                                                                                              +  // {x-version-update-start:google-cloud-securesourcemanager:current}
                                                                                              +  static final String VERSION = "0.0.0-SNAPSHOT";
                                                                                              +  // {x-version-update-end}
                                                                                              +
                                                                                              +}
                                                                                              diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json
                                                                                              index 1013496223e4..ec094899f01a 100644
                                                                                              --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json
                                                                                              +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/resources/META-INF/native-image/com.google.cloud.securesourcemanager.v1/reflect-config.json
                                                                                              @@ -1,4 +1,58 @@
                                                                                               [
                                                                                              +  {
                                                                                              +    "name": "com.google.api.BatchingConfigProto",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.BatchingConfigProto$Builder",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.BatchingDescriptorProto",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.BatchingDescriptorProto$Builder",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.BatchingSettingsProto",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.BatchingSettingsProto$Builder",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                                 {
                                                                                                   "name": "com.google.api.ClientLibraryDestination",
                                                                                                   "queryAllDeclaredConstructors": true,
                                                                                              @@ -116,6 +170,42 @@
                                                                                                   "allDeclaredClasses": true,
                                                                                                   "allPublicClasses": true
                                                                                                 },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.FieldInfo",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.FieldInfo$Builder",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.FieldInfo$Format",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.FlowControlLimitExceededBehaviorProto",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                                 {
                                                                                                   "name": "com.google.api.GoSettings",
                                                                                                   "queryAllDeclaredConstructors": true,
                                                                                              @@ -413,6 +503,24 @@
                                                                                                   "allDeclaredClasses": true,
                                                                                                   "allPublicClasses": true
                                                                                                 },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.TypeReference",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.api.TypeReference$Builder",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                                 {
                                                                                                   "name": "com.google.cloud.location.GetLocationRequest",
                                                                                                   "queryAllDeclaredConstructors": true,
                                                                                              @@ -1205,6 +1313,24 @@
                                                                                                   "allDeclaredClasses": true,
                                                                                                   "allPublicClasses": true
                                                                                                 },
                                                                                              +  {
                                                                                              +    "name": "com.google.cloud.securesourcemanager.v1.Instance$PrivateConfig$CustomHostConfig",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                              +  {
                                                                                              +    "name": "com.google.cloud.securesourcemanager.v1.Instance$PrivateConfig$CustomHostConfig$Builder",
                                                                                              +    "queryAllDeclaredConstructors": true,
                                                                                              +    "queryAllPublicConstructors": true,
                                                                                              +    "queryAllDeclaredMethods": true,
                                                                                              +    "allPublicMethods": true,
                                                                                              +    "allDeclaredClasses": true,
                                                                                              +    "allPublicClasses": true
                                                                                              +  },
                                                                                                 {
                                                                                                   "name": "com.google.cloud.securesourcemanager.v1.Instance$State",
                                                                                                   "queryAllDeclaredConstructors": true,
                                                                                              diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java
                                                                                              index 81969b10a31d..81315814a6f7 100644
                                                                                              --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java
                                                                                              +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientHttpJsonTest.java
                                                                                              @@ -1815,6 +1815,7 @@ public void createBranchRuleTest() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -1885,6 +1886,7 @@ public void createBranchRuleTest2() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -2055,6 +2057,7 @@ public void getBranchRuleTest() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -2117,6 +2120,7 @@ public void getBranchRuleTest2() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -2179,6 +2183,7 @@ public void updateBranchRuleTest() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -2207,6 +2212,7 @@ public void updateBranchRuleTest() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -2255,6 +2261,7 @@ public void updateBranchRuleExceptionTest() throws Exception {
                                                                                                             .setRequirePullRequest(true)
                                                                                                             .setMinimumReviewsCount(672799098)
                                                                                                             .setMinimumApprovalsCount(-579210129)
                                                                                              +              .setRequireCodeOwnerApproval(true)
                                                                                                             .setRequireCommentsResolved(true)
                                                                                                             .setAllowStaleReviews(true)
                                                                                                             .setRequireLinearHistory(true)
                                                                                              diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java
                                                                                              index 3e0ab161a500..7c394115f51f 100644
                                                                                              --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java
                                                                                              +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/test/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClientTest.java
                                                                                              @@ -1637,6 +1637,7 @@ public void createBranchRuleTest() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -1706,6 +1707,7 @@ public void createBranchRuleTest2() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -1863,6 +1865,7 @@ public void getBranchRuleTest() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -1919,6 +1922,7 @@ public void getBranchRuleTest2() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              @@ -1973,6 +1977,7 @@ public void updateBranchRuleTest() throws Exception {
                                                                                                           .setRequirePullRequest(true)
                                                                                                           .setMinimumReviewsCount(672799098)
                                                                                                           .setMinimumApprovalsCount(-579210129)
                                                                                              +            .setRequireCodeOwnerApproval(true)
                                                                                                           .setRequireCommentsResolved(true)
                                                                                                           .setAllowStaleReviews(true)
                                                                                                           .setRequireLinearHistory(true)
                                                                                              diff --git a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java
                                                                                              index b8e41e85463c..35578d086850 100644
                                                                                              --- a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java
                                                                                              +++ b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerGrpc.java
                                                                                              @@ -3213,7 +3213,7 @@ default void deletePullRequestComment(
                                                                                                    * Batch creates pull request comments. This function is used to create
                                                                                                    * multiple PullRequestComments for code review. There needs to be exactly one
                                                                                                    * PullRequestComment of type Review, and at most 100 PullRequestComments of
                                                                                              -     * type Code per request. The Postition of the code comments must be unique
                                                                                              +     * type Code per request. The Position of the code comments must be unique
                                                                                                    * within the request.
                                                                                                    * 
                                                                                              */ @@ -4089,7 +4089,7 @@ public void deletePullRequestComment( * Batch creates pull request comments. This function is used to create * multiple PullRequestComments for code review. There needs to be exactly one * PullRequestComment of type Review, and at most 100 PullRequestComments of - * type Code per request. The Postition of the code comments must be unique + * type Code per request. The Position of the code comments must be unique * within the request. *
                                                                                              */ @@ -4876,7 +4876,7 @@ public com.google.longrunning.Operation deletePullRequestComment( * Batch creates pull request comments. This function is used to create * multiple PullRequestComments for code review. There needs to be exactly one * PullRequestComment of type Review, and at most 100 PullRequestComments of - * type Code per request. The Postition of the code comments must be unique + * type Code per request. The Position of the code comments must be unique * within the request. *
                                                                                              */ @@ -5603,7 +5603,7 @@ public com.google.longrunning.Operation deletePullRequestComment( * Batch creates pull request comments. This function is used to create * multiple PullRequestComments for code review. There needs to be exactly one * PullRequestComment of type Review, and at most 100 PullRequestComments of - * type Code per request. The Postition of the code comments must be unique + * type Code per request. The Position of the code comments must be unique * within the request. *
                                                                                              */ @@ -6346,7 +6346,7 @@ protected SecureSourceManagerFutureStub build( * Batch creates pull request comments. This function is used to create * multiple PullRequestComments for code review. There needs to be exactly one * PullRequestComment of type Review, and at most 100 PullRequestComments of - * type Code per request. The Postition of the code comments must be unique + * type Code per request. The Position of the code comments must be unique * within the request. *
                                                                                              */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRule.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRule.java index 21c6b4634c63..786b73ca92c2 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRule.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRule.java @@ -705,12 +705,12 @@ public com.google.cloud.securesourcemanager.v1.BranchRule.Check getDefaultInstan * * *
                                                                                              -   * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +   * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -731,12 +731,12 @@ public java.lang.String getName() { * * *
                                                                                              -   * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +   * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -765,7 +765,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -789,7 +791,9 @@ public java.lang.String getUid() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -1224,6 +1228,26 @@ public int getMinimumApprovalsCount() { return minimumApprovalsCount_; } + public static final int REQUIRE_CODE_OWNER_APPROVAL_FIELD_NUMBER = 16; + private boolean requireCodeOwnerApproval_ = false; + + /** + * + * + *
                                                                                              +   * Optional. Determines if code owners must approve before merging to the
                                                                                              +   * branch.
                                                                                              +   * 
                                                                                              + * + * bool require_code_owner_approval = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireCodeOwnerApproval. + */ + @java.lang.Override + public boolean getRequireCodeOwnerApproval() { + return requireCodeOwnerApproval_; + } + public static final int REQUIRE_COMMENTS_RESOLVED_FIELD_NUMBER = 12; private boolean requireCommentsResolved_ = false; @@ -1432,6 +1456,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (allowStaleReviews_ != false) { output.writeBool(15, allowStaleReviews_); } + if (requireCodeOwnerApproval_ != false) { + output.writeBool(16, requireCodeOwnerApproval_); + } getUnknownFields().writeTo(output); } @@ -1495,6 +1522,9 @@ public int getSerializedSize() { if (allowStaleReviews_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, allowStaleReviews_); } + if (requireCodeOwnerApproval_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, requireCodeOwnerApproval_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1528,6 +1558,7 @@ public boolean equals(final java.lang.Object obj) { if (getRequirePullRequest() != other.getRequirePullRequest()) return false; if (getMinimumReviewsCount() != other.getMinimumReviewsCount()) return false; if (getMinimumApprovalsCount() != other.getMinimumApprovalsCount()) return false; + if (getRequireCodeOwnerApproval() != other.getRequireCodeOwnerApproval()) return false; if (getRequireCommentsResolved() != other.getRequireCommentsResolved()) return false; if (getAllowStaleReviews() != other.getAllowStaleReviews()) return false; if (getRequireLinearHistory() != other.getRequireLinearHistory()) return false; @@ -1571,6 +1602,8 @@ public int hashCode() { hash = (53 * hash) + getMinimumReviewsCount(); hash = (37 * hash) + MINIMUM_APPROVALS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMinimumApprovalsCount(); + hash = (37 * hash) + REQUIRE_CODE_OWNER_APPROVAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireCodeOwnerApproval()); hash = (37 * hash) + REQUIRE_COMMENTS_RESOLVED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireCommentsResolved()); hash = (37 * hash) + ALLOW_STALE_REVIEWS_FIELD_NUMBER; @@ -1774,6 +1807,7 @@ public Builder clear() { requirePullRequest_ = false; minimumReviewsCount_ = 0; minimumApprovalsCount_ = 0; + requireCodeOwnerApproval_ = false; requireCommentsResolved_ = false; allowStaleReviews_ = false; requireLinearHistory_ = false; @@ -1783,7 +1817,7 @@ public Builder clear() { requiredStatusChecks_ = null; requiredStatusChecksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); return this; } @@ -1822,9 +1856,9 @@ public com.google.cloud.securesourcemanager.v1.BranchRule buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.securesourcemanager.v1.BranchRule result) { if (requiredStatusChecksBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { requiredStatusChecks_ = java.util.Collections.unmodifiableList(requiredStatusChecks_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.requiredStatusChecks_ = requiredStatusChecks_; } else { @@ -1872,12 +1906,15 @@ private void buildPartial0(com.google.cloud.securesourcemanager.v1.BranchRule re result.minimumApprovalsCount_ = minimumApprovalsCount_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.requireCommentsResolved_ = requireCommentsResolved_; + result.requireCodeOwnerApproval_ = requireCodeOwnerApproval_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.allowStaleReviews_ = allowStaleReviews_; + result.requireCommentsResolved_ = requireCommentsResolved_; } if (((from_bitField0_ & 0x00002000) != 0)) { + result.allowStaleReviews_ = allowStaleReviews_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.requireLinearHistory_ = requireLinearHistory_; } result.bitField0_ |= to_bitField0_; @@ -1936,6 +1973,9 @@ public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.BranchRule othe if (other.getMinimumApprovalsCount() != 0) { setMinimumApprovalsCount(other.getMinimumApprovalsCount()); } + if (other.getRequireCodeOwnerApproval() != false) { + setRequireCodeOwnerApproval(other.getRequireCodeOwnerApproval()); + } if (other.getRequireCommentsResolved() != false) { setRequireCommentsResolved(other.getRequireCommentsResolved()); } @@ -1949,7 +1989,7 @@ public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.BranchRule othe if (!other.requiredStatusChecks_.isEmpty()) { if (requiredStatusChecks_.isEmpty()) { requiredStatusChecks_ = other.requiredStatusChecks_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureRequiredStatusChecksIsMutable(); requiredStatusChecks_.addAll(other.requiredStatusChecks_); @@ -1962,7 +2002,7 @@ public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.BranchRule othe requiredStatusChecksBuilder_.dispose(); requiredStatusChecksBuilder_ = null; requiredStatusChecks_ = other.requiredStatusChecks_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); requiredStatusChecksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetRequiredStatusChecksFieldBuilder() @@ -2075,13 +2115,13 @@ public Builder mergeFrom( case 96: { requireCommentsResolved_ = input.readBool(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 96 case 104: { requireLinearHistory_ = input.readBool(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 104 case 114: @@ -2101,9 +2141,15 @@ public Builder mergeFrom( case 120: { allowStaleReviews_ = input.readBool(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 120 + case 128: + { + requireCodeOwnerApproval_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2129,12 +2175,12 @@ public Builder mergeFrom( * * *
                                                                                              -     * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -2154,12 +2200,12 @@ public java.lang.String getName() { * * *
                                                                                              -     * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2179,12 +2225,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                                                                              -     * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -2203,12 +2249,12 @@ public Builder setName(java.lang.String value) { * * *
                                                                                              -     * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -2223,12 +2269,12 @@ public Builder clearName() { * * *
                                                                                              -     * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -2253,7 +2299,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -2276,7 +2324,9 @@ public java.lang.String getUid() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -2299,7 +2349,9 @@ public com.google.protobuf.ByteString getUidBytes() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @param value The uid to set. * @return This builder for chaining. @@ -2321,7 +2373,9 @@ public Builder setUid(java.lang.String value) { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -2339,7 +2393,9 @@ public Builder clearUid() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @param value The bytes for uid to set. * @return This builder for chaining. @@ -3452,6 +3508,65 @@ public Builder clearMinimumApprovalsCount() { return this; } + private boolean requireCodeOwnerApproval_; + + /** + * + * + *
                                                                                              +     * Optional. Determines if code owners must approve before merging to the
                                                                                              +     * branch.
                                                                                              +     * 
                                                                                              + * + * bool require_code_owner_approval = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireCodeOwnerApproval. + */ + @java.lang.Override + public boolean getRequireCodeOwnerApproval() { + return requireCodeOwnerApproval_; + } + + /** + * + * + *
                                                                                              +     * Optional. Determines if code owners must approve before merging to the
                                                                                              +     * branch.
                                                                                              +     * 
                                                                                              + * + * bool require_code_owner_approval = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requireCodeOwnerApproval to set. + * @return This builder for chaining. + */ + public Builder setRequireCodeOwnerApproval(boolean value) { + + requireCodeOwnerApproval_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. Determines if code owners must approve before merging to the
                                                                                              +     * branch.
                                                                                              +     * 
                                                                                              + * + * bool require_code_owner_approval = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequireCodeOwnerApproval() { + bitField0_ = (bitField0_ & ~0x00000800); + requireCodeOwnerApproval_ = false; + onChanged(); + return this; + } + private boolean requireCommentsResolved_; /** @@ -3487,7 +3602,7 @@ public boolean getRequireCommentsResolved() { public Builder setRequireCommentsResolved(boolean value) { requireCommentsResolved_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3505,7 +3620,7 @@ public Builder setRequireCommentsResolved(boolean value) { * @return This builder for chaining. */ public Builder clearRequireCommentsResolved() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); requireCommentsResolved_ = false; onChanged(); return this; @@ -3546,7 +3661,7 @@ public boolean getAllowStaleReviews() { public Builder setAllowStaleReviews(boolean value) { allowStaleReviews_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3564,7 +3679,7 @@ public Builder setAllowStaleReviews(boolean value) { * @return This builder for chaining. */ public Builder clearAllowStaleReviews() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); allowStaleReviews_ = false; onChanged(); return this; @@ -3605,7 +3720,7 @@ public boolean getRequireLinearHistory() { public Builder setRequireLinearHistory(boolean value) { requireLinearHistory_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3623,7 +3738,7 @@ public Builder setRequireLinearHistory(boolean value) { * @return This builder for chaining. */ public Builder clearRequireLinearHistory() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); requireLinearHistory_ = false; onChanged(); return this; @@ -3633,11 +3748,11 @@ public Builder clearRequireLinearHistory() { requiredStatusChecks_ = java.util.Collections.emptyList(); private void ensureRequiredStatusChecksIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { requiredStatusChecks_ = new java.util.ArrayList( requiredStatusChecks_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -3893,7 +4008,7 @@ public Builder addAllRequiredStatusChecks( public Builder clearRequiredStatusChecks() { if (requiredStatusChecksBuilder_ == null) { requiredStatusChecks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { requiredStatusChecksBuilder_.clear(); @@ -4044,7 +4159,7 @@ public Builder removeRequiredStatusChecks(int index) { com.google.cloud.securesourcemanager.v1.BranchRule.Check.Builder, com.google.cloud.securesourcemanager.v1.BranchRule.CheckOrBuilder>( requiredStatusChecks_, - ((bitField0_ & 0x00004000) != 0), + ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); requiredStatusChecks_ = null; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleOrBuilder.java index d88879ed282d..ce0abe33a606 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleOrBuilder.java @@ -30,12 +30,12 @@ public interface BranchRuleOrBuilder * * *
                                                                                              -   * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +   * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface BranchRuleOrBuilder * * *
                                                                                              -   * Optional. A unique identifier for a BranchRule. The name should be of the
                                                                                              +   * Identifier. A unique identifier for a BranchRule. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -63,7 +63,9 @@ public interface BranchRuleOrBuilder * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -76,7 +78,9 @@ public interface BranchRuleOrBuilder * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -356,6 +360,20 @@ java.lang.String getAnnotationsOrDefault( */ int getMinimumApprovalsCount(); + /** + * + * + *
                                                                                              +   * Optional. Determines if code owners must approve before merging to the
                                                                                              +   * branch.
                                                                                              +   * 
                                                                                              + * + * bool require_code_owner_approval = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireCodeOwnerApproval. + */ + boolean getRequireCodeOwnerApproval(); + /** * * diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateInstanceRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateInstanceRequest.java index 3462ff3c35e6..4fe2c1b91c7d 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateInstanceRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateInstanceRequest.java @@ -266,7 +266,9 @@ public com.google.cloud.securesourcemanager.v1.InstanceOrBuilder getInstanceOrBu * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -302,7 +304,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1191,7 +1195,9 @@ public com.google.cloud.securesourcemanager.v1.InstanceOrBuilder getInstanceOrBu * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -1226,7 +1232,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1261,7 +1269,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -1295,7 +1305,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1325,7 +1337,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateInstanceRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateInstanceRequestOrBuilder.java index 2c34990b8cf6..8b92ca1c698f 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateInstanceRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/CreateInstanceRequestOrBuilder.java @@ -144,7 +144,9 @@ public interface CreateInstanceRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -169,7 +171,9 @@ public interface CreateInstanceRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteInstanceRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteInstanceRequest.java index c1c78313f3ee..72ea79f79dea 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteInstanceRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteInstanceRequest.java @@ -152,7 +152,9 @@ public com.google.protobuf.ByteString getNameBytes() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -188,7 +190,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -205,6 +209,25 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *
                                                                                              +   * Optional. If set to true, will force the deletion of the instance.
                                                                                              +   * 
                                                                                              + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -225,6 +248,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); } + if (force_ != false) { + output.writeBool(3, force_); + } getUnknownFields().writeTo(output); } @@ -240,6 +266,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -258,6 +287,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,6 +303,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -416,6 +448,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; requestId_ = ""; + force_ = false; return this; } @@ -460,6 +493,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } } @java.lang.Override @@ -486,6 +522,9 @@ public Builder mergeFrom(com.google.cloud.securesourcemanager.v1.DeleteInstanceR bitField0_ |= 0x00000002; onChanged(); } + if (other.getForce() != false) { + setForce(other.getForce()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -524,6 +563,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -685,7 +730,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -720,7 +767,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -755,7 +804,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -789,7 +840,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -819,7 +872,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. @@ -835,6 +890,62 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean force_; + + /** + * + * + *
                                                                                              +     * Optional. If set to true, will force the deletion of the instance.
                                                                                              +     * 
                                                                                              + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
                                                                                              +     * Optional. If set to true, will force the deletion of the instance.
                                                                                              +     * 
                                                                                              + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +     * Optional. If set to true, will force the deletion of the instance.
                                                                                              +     * 
                                                                                              + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.DeleteInstanceRequest) } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteInstanceRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteInstanceRequestOrBuilder.java index 80060053f793..ba43ca02fcde 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteInstanceRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/DeleteInstanceRequestOrBuilder.java @@ -75,7 +75,9 @@ public interface DeleteInstanceRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -100,9 +102,24 @@ public interface DeleteInstanceRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). *
                                                                                              * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
                                                                                              +   * Optional. If set to true, will force the deletion of the instance.
                                                                                              +   * 
                                                                                              + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Hook.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Hook.java index d25f0fbffbea..72a28221d607 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Hook.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Hook.java @@ -1218,7 +1218,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -1242,7 +1244,9 @@ public java.lang.String getUid() { * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -2929,7 +2933,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -2952,7 +2958,9 @@ public java.lang.String getUid() { * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -2975,7 +2983,9 @@ public com.google.protobuf.ByteString getUidBytes() { * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @param value The uid to set. * @return This builder for chaining. @@ -2997,7 +3007,9 @@ public Builder setUid(java.lang.String value) { * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -3015,7 +3027,9 @@ public Builder clearUid() { * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @param value The bytes for uid to set. * @return This builder for chaining. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/HookOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/HookOrBuilder.java index 9dc52d155498..ac8168ddc20b 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/HookOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/HookOrBuilder.java @@ -260,7 +260,9 @@ public interface HookOrBuilder * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -273,7 +275,9 @@ public interface HookOrBuilder * Output only. Unique identifier of the hook. *
                                                                                              * - * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java index f9357c99b6f6..d444110d50b8 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Instance.java @@ -1933,60 +1933,1434 @@ public interface PrivateConfigOrBuilder * @return The bytes of the pscAllowedProjects at the given index. */ com.google.protobuf.ByteString getPscAllowedProjectsBytes(int index); + + /** + * + * + *
                                                                                              +     * Optional. Custom host config for the instance.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customHostConfig field is set. + */ + boolean hasCustomHostConfig(); + + /** + * + * + *
                                                                                              +     * Optional. Custom host config for the instance.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customHostConfig. + */ + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + getCustomHostConfig(); + + /** + * + * + *
                                                                                              +     * Optional. Custom host config for the instance.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfigOrBuilder + getCustomHostConfigOrBuilder(); } - /** - * - * - *
                                                                                              -   * PrivateConfig includes settings for private instance.
                                                                                              -   * 
                                                                                              - * - * Protobuf type {@code google.cloud.securesourcemanager.v1.Instance.PrivateConfig} - */ - public static final class PrivateConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.Instance.PrivateConfig) - PrivateConfigOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
                                                                                              +   * PrivateConfig includes settings for private instance.
                                                                                              +   * 
                                                                                              + * + * Protobuf type {@code google.cloud.securesourcemanager.v1.Instance.PrivateConfig} + */ + public static final class PrivateConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.Instance.PrivateConfig) + PrivateConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PrivateConfig"); + } + + // Use PrivateConfig.newBuilder() to construct. + private PrivateConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PrivateConfig() { + caPool_ = ""; + httpServiceAttachment_ = ""; + sshServiceAttachment_ = ""; + pscAllowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.class, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder.class); + } + + public interface CustomHostConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                              +       * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +       * "git.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The html. + */ + java.lang.String getHtml(); + + /** + * + * + *
                                                                                              +       * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +       * "git.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for html. + */ + com.google.protobuf.ByteString getHtmlBytes(); + + /** + * + * + *
                                                                                              +       * Required. The custom API hostname for the instance, e.g.,
                                                                                              +       * "api.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The api. + */ + java.lang.String getApi(); + + /** + * + * + *
                                                                                              +       * Required. The custom API hostname for the instance, e.g.,
                                                                                              +       * "api.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for api. + */ + com.google.protobuf.ByteString getApiBytes(); + + /** + * + * + *
                                                                                              +       * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +       * "ssh.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitSsh. + */ + java.lang.String getGitSsh(); + + /** + * + * + *
                                                                                              +       * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +       * "ssh.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitSsh. + */ + com.google.protobuf.ByteString getGitSshBytes(); + + /** + * + * + *
                                                                                              +       * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +       * "git.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitHttp. + */ + java.lang.String getGitHttp(); + + /** + * + * + *
                                                                                              +       * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +       * "git.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitHttp. + */ + com.google.protobuf.ByteString getGitHttpBytes(); + } + + /** + * + * + *
                                                                                              +     * Custom host config for the instance.
                                                                                              +     * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig} + */ + public static final class CustomHostConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig) + CustomHostConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomHostConfig"); + } + + // Use CustomHostConfig.newBuilder() to construct. + private CustomHostConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomHostConfig() { + html_ = ""; + api_ = ""; + gitSsh_ = ""; + gitHttp_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .class, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .Builder.class); + } + + public static final int HTML_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object html_ = ""; + + /** + * + * + *
                                                                                              +       * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +       * "git.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The html. + */ + @java.lang.Override + public java.lang.String getHtml() { + java.lang.Object ref = html_; + 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(); + html_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +       * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +       * "git.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for html. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHtmlBytes() { + java.lang.Object ref = html_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + html_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object api_ = ""; + + /** + * + * + *
                                                                                              +       * Required. The custom API hostname for the instance, e.g.,
                                                                                              +       * "api.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The api. + */ + @java.lang.Override + public java.lang.String getApi() { + java.lang.Object ref = api_; + 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(); + api_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +       * Required. The custom API hostname for the instance, e.g.,
                                                                                              +       * "api.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for api. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiBytes() { + java.lang.Object ref = api_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + api_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_SSH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gitSsh_ = ""; + + /** + * + * + *
                                                                                              +       * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +       * "ssh.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitSsh. + */ + @java.lang.Override + public java.lang.String getGitSsh() { + java.lang.Object ref = gitSsh_; + 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(); + gitSsh_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +       * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +       * "ssh.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitSsh. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGitSshBytes() { + java.lang.Object ref = gitSsh_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitSsh_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_HTTP_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object gitHttp_ = ""; + + /** + * + * + *
                                                                                              +       * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +       * "git.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitHttp. + */ + @java.lang.Override + public java.lang.String getGitHttp() { + java.lang.Object ref = gitHttp_; + 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(); + gitHttp_ = s; + return s; + } + } + + /** + * + * + *
                                                                                              +       * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +       * "git.source.internal.mycompany.com"
                                                                                              +       * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitHttp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGitHttpBytes() { + java.lang.Object ref = gitHttp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitHttp_ = 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(html_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, html_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(api_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, api_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitSsh_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, gitSsh_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitHttp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, gitHttp_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(html_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, html_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(api_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, api_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitSsh_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gitSsh_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitHttp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, gitHttp_); + } + 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.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig)) { + return super.equals(obj); + } + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig other = + (com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig) obj; + + if (!getHtml().equals(other.getHtml())) return false; + if (!getApi().equals(other.getApi())) return false; + if (!getGitSsh().equals(other.getGitSsh())) return false; + if (!getGitHttp().equals(other.getGitHttp())) 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) + HTML_FIELD_NUMBER; + hash = (53 * hash) + getHtml().hashCode(); + hash = (37 * hash) + API_FIELD_NUMBER; + hash = (53 * hash) + getApi().hashCode(); + hash = (37 * hash) + GIT_SSH_FIELD_NUMBER; + hash = (53 * hash) + getGitSsh().hashCode(); + hash = (37 * hash) + GIT_HTTP_FIELD_NUMBER; + hash = (53 * hash) + getGitHttp().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + 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.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + 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.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                              +       * Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * Protobuf type {@code + * google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig) + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .class, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + html_ = ""; + api_ = ""; + gitSsh_ = ""; + gitHttp_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto + .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + getDefaultInstanceForType() { + return com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + build() { + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + buildPartial() { + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig result = + new com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.html_ = html_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.api_ = api_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gitSsh_ = gitSsh_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gitHttp_ = gitHttp_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig) { + return mergeFrom( + (com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig other) { + if (other + == com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .getDefaultInstance()) return this; + if (!other.getHtml().isEmpty()) { + html_ = other.html_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getApi().isEmpty()) { + api_ = other.api_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGitSsh().isEmpty()) { + gitSsh_ = other.gitSsh_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getGitHttp().isEmpty()) { + gitHttp_ = other.gitHttp_; + bitField0_ |= 0x00000008; + 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: + { + html_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + api_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + gitSsh_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + gitHttp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 html_ = ""; + + /** + * + * + *
                                                                                              +         * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The html. + */ + public java.lang.String getHtml() { + java.lang.Object ref = html_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + html_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for html. + */ + public com.google.protobuf.ByteString getHtmlBytes() { + java.lang.Object ref = html_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + html_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The html to set. + * @return This builder for chaining. + */ + public Builder setHtml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + html_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHtml() { + html_ = getDefaultInstance().getHtml(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The custom UI hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string html = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for html to set. + * @return This builder for chaining. + */ + public Builder setHtmlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + html_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object api_ = ""; + + /** + * + * + *
                                                                                              +         * Required. The custom API hostname for the instance, e.g.,
                                                                                              +         * "api.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The api. + */ + public java.lang.String getApi() { + java.lang.Object ref = api_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + api_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * Required. The custom API hostname for the instance, e.g.,
                                                                                              +         * "api.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for api. + */ + public com.google.protobuf.ByteString getApiBytes() { + java.lang.Object ref = api_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + api_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * Required. The custom API hostname for the instance, e.g.,
                                                                                              +         * "api.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The api to set. + * @return This builder for chaining. + */ + public Builder setApi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + api_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The custom API hostname for the instance, e.g.,
                                                                                              +         * "api.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearApi() { + api_ = getDefaultInstance().getApi(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The custom API hostname for the instance, e.g.,
                                                                                              +         * "api.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for api to set. + * @return This builder for chaining. + */ + public Builder setApiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + api_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object gitSsh_ = ""; + + /** + * + * + *
                                                                                              +         * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +         * "ssh.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitSsh. + */ + public java.lang.String getGitSsh() { + java.lang.Object ref = gitSsh_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitSsh_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                              +         * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +         * "ssh.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitSsh. + */ + public com.google.protobuf.ByteString getGitSshBytes() { + java.lang.Object ref = gitSsh_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitSsh_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                              +         * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +         * "ssh.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gitSsh to set. + * @return This builder for chaining. + */ + public Builder setGitSsh(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitSsh_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +         * "ssh.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGitSsh() { + gitSsh_ = getDefaultInstance().getGitSsh(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +         * Required. The custom git ssh hostname for the instance, e.g.,
                                                                                              +         * "ssh.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_ssh = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gitSsh to set. + * @return This builder for chaining. + */ + public Builder setGitSshBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSsh_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object gitHttp_ = ""; + + /** + * + * + *
                                                                                              +         * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gitHttp. + */ + public java.lang.String getGitHttp() { + java.lang.Object ref = gitHttp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitHttp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "PrivateConfig"); - } + /** + * + * + *
                                                                                              +         * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gitHttp. + */ + public com.google.protobuf.ByteString getGitHttpBytes() { + java.lang.Object ref = gitHttp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitHttp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // Use PrivateConfig.newBuilder() to construct. - private PrivateConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
                                                                                              +         * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gitHttp to set. + * @return This builder for chaining. + */ + public Builder setGitHttp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitHttp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - private PrivateConfig() { - caPool_ = ""; - httpServiceAttachment_ = ""; - sshServiceAttachment_ = ""; - pscAllowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } + /** + * + * + *
                                                                                              +         * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGitHttp() { + gitHttp_ = getDefaultInstance().getGitHttp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto - .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor; - } + /** + * + * + *
                                                                                              +         * Required. The custom git http hostname for the instance, e.g.,
                                                                                              +         * "git.source.internal.mycompany.com"
                                                                                              +         * 
                                                                                              + * + * string git_http = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gitHttp to set. + * @return This builder for chaining. + */ + public Builder setGitHttpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitHttp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securesourcemanager.v1.SecureSourceManagerProto - .internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.class, - com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder.class); + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig) + private static final com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + .CustomHostConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig(); + } + + public static com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomHostConfig 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.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } + private int bitField0_; public static final int IS_PRIVATE_FIELD_NUMBER = 1; private boolean isPrivate_ = false; @@ -2265,6 +3639,70 @@ public com.google.protobuf.ByteString getPscAllowedProjectsBytes(int index) { return pscAllowedProjects_.getByteString(index); } + public static final int CUSTOM_HOST_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + customHostConfig_; + + /** + * + * + *
                                                                                              +     * Optional. Custom host config for the instance.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customHostConfig field is set. + */ + @java.lang.Override + public boolean hasCustomHostConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                              +     * Optional. Custom host config for the instance.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customHostConfig. + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + getCustomHostConfig() { + return customHostConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .getDefaultInstance() + : customHostConfig_; + } + + /** + * + * + *
                                                                                              +     * Optional. Custom host config for the instance.
                                                                                              +     * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfigOrBuilder + getCustomHostConfigOrBuilder() { + return customHostConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .getDefaultInstance() + : customHostConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2294,6 +3732,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pscAllowedProjects_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 6, pscAllowedProjects_.getRaw(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCustomHostConfig()); + } getUnknownFields().writeTo(output); } @@ -2323,6 +3764,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPscAllowedProjectsList().size(); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCustomHostConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2344,6 +3788,10 @@ public boolean equals(final java.lang.Object obj) { if (!getHttpServiceAttachment().equals(other.getHttpServiceAttachment())) return false; if (!getSshServiceAttachment().equals(other.getSshServiceAttachment())) return false; if (!getPscAllowedProjectsList().equals(other.getPscAllowedProjectsList())) return false; + if (hasCustomHostConfig() != other.hasCustomHostConfig()) return false; + if (hasCustomHostConfig()) { + if (!getCustomHostConfig().equals(other.getCustomHostConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2367,6 +3815,10 @@ public int hashCode() { hash = (37 * hash) + PSC_ALLOWED_PROJECTS_FIELD_NUMBER; hash = (53 * hash) + getPscAllowedProjectsList().hashCode(); } + if (hasCustomHostConfig()) { + hash = (37 * hash) + CUSTOM_HOST_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCustomHostConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2498,10 +3950,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCustomHostConfigFieldBuilder(); + } } @java.lang.Override @@ -2513,6 +3974,11 @@ public Builder clear() { httpServiceAttachment_ = ""; sshServiceAttachment_ = ""; pscAllowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customHostConfig_ = null; + if (customHostConfigBuilder_ != null) { + customHostConfigBuilder_.dispose(); + customHostConfigBuilder_ = null; + } return this; } @@ -2567,6 +4033,15 @@ private void buildPartial0( pscAllowedProjects_.makeImmutable(); result.pscAllowedProjects_ = pscAllowedProjects_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.customHostConfig_ = + customHostConfigBuilder_ == null + ? customHostConfig_ + : customHostConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2612,6 +4087,9 @@ public Builder mergeFrom( } onChanged(); } + if (other.hasCustomHostConfig()) { + mergeCustomHostConfig(other.getCustomHostConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2669,6 +4147,13 @@ public Builder mergeFrom( pscAllowedProjects_.add(s); break; } // case 50 + case 58: + { + input.readMessage( + internalGetCustomHostConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3338,6 +4823,237 @@ public Builder addPscAllowedProjectsBytes(com.google.protobuf.ByteString value) return this; } + private com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + customHostConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .Builder, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + .CustomHostConfigOrBuilder> + customHostConfigBuilder_; + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customHostConfig field is set. + */ + public boolean hasCustomHostConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customHostConfig. + */ + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + getCustomHostConfig() { + if (customHostConfigBuilder_ == null) { + return customHostConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .getDefaultInstance() + : customHostConfig_; + } else { + return customHostConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomHostConfig( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig value) { + if (customHostConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customHostConfig_ = value; + } else { + customHostConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomHostConfig( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig.Builder + builderForValue) { + if (customHostConfigBuilder_ == null) { + customHostConfig_ = builderForValue.build(); + } else { + customHostConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomHostConfig( + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig value) { + if (customHostConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && customHostConfig_ != null + && customHostConfig_ + != com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .getDefaultInstance()) { + getCustomHostConfigBuilder().mergeFrom(value); + } else { + customHostConfig_ = value; + } + } else { + customHostConfigBuilder_.mergeFrom(value); + } + if (customHostConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomHostConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + customHostConfig_ = null; + if (customHostConfigBuilder_ != null) { + customHostConfigBuilder_.dispose(); + customHostConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig.Builder + getCustomHostConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCustomHostConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + .CustomHostConfigOrBuilder + getCustomHostConfigOrBuilder() { + if (customHostConfigBuilder_ != null) { + return customHostConfigBuilder_.getMessageOrBuilder(); + } else { + return customHostConfig_ == null + ? com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .getDefaultInstance() + : customHostConfig_; + } + } + + /** + * + * + *
                                                                                              +       * Optional. Custom host config for the instance.
                                                                                              +       * 
                                                                                              + * + * + * .google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .Builder, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + .CustomHostConfigOrBuilder> + internalGetCustomHostConfigFieldBuilder() { + if (customHostConfigBuilder_ == null) { + customHostConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig + .Builder, + com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig + .CustomHostConfigOrBuilder>( + getCustomHostConfig(), getParentForChildren(), isClean()); + customHostConfig_ = null; + } + return customHostConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.securesourcemanager.v1.Instance.PrivateConfig) } @@ -3956,7 +5672,7 @@ public com.google.protobuf.Parser getParserFo * * *
                                                                                              -   * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +   * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                  *
                                                                                              @@ -3970,7 +5686,7 @@ public com.google.protobuf.Parser getParserFo
                                                                                                  * project_number and location_id combination.
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3991,7 +5707,7 @@ public java.lang.String getName() { * * *
                                                                                              -   * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +   * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                  *
                                                                                              @@ -4005,7 +5721,7 @@ public java.lang.String getName() {
                                                                                                  * project_number and location_id combination.
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4158,6 +5874,10 @@ public int getLabelsCount() { * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4182,6 +5902,10 @@ public java.util.Map getLabels() { * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4196,6 +5920,10 @@ public java.util.Map getLabelsMap() { * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4217,6 +5945,10 @@ public java.util.Map getLabelsMap() { * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -5204,7 +6936,7 @@ public Builder mergeFrom( * * *
                                                                                              -     * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +     * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                    *
                                                                                              @@ -5218,7 +6950,7 @@ public Builder mergeFrom(
                                                                                                    * project_number and location_id combination.
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -5238,7 +6970,7 @@ public java.lang.String getName() { * * *
                                                                                              -     * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +     * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                    *
                                                                                              @@ -5252,7 +6984,7 @@ public java.lang.String getName() {
                                                                                                    * project_number and location_id combination.
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -5272,7 +7004,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                                                                              -     * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +     * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                    *
                                                                                              @@ -5286,7 +7018,7 @@ public com.google.protobuf.ByteString getNameBytes() {
                                                                                                    * project_number and location_id combination.
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -5305,7 +7037,7 @@ public Builder setName(java.lang.String value) { * * *
                                                                                              -     * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +     * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                    *
                                                                                              @@ -5319,7 +7051,7 @@ public Builder setName(java.lang.String value) {
                                                                                                    * project_number and location_id combination.
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -5334,7 +7066,7 @@ public Builder clearName() { * * *
                                                                                              -     * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +     * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                    *
                                                                                              @@ -5348,7 +7080,7 @@ public Builder clearName() {
                                                                                                    * project_number and location_id combination.
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -5819,6 +7551,10 @@ public int getLabelsCount() { * *
                                                                                                    * Optional. Labels as key value pairs.
                                                                                              +     * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +     * underscores, and dashes.
                                                                                              +     * For more information, see [Requirements for
                                                                                              +     * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                    * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -5843,6 +7579,10 @@ public java.util.Map getLabels() { * *
                                                                                                    * Optional. Labels as key value pairs.
                                                                                              +     * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +     * underscores, and dashes.
                                                                                              +     * For more information, see [Requirements for
                                                                                              +     * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                    * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -5857,6 +7597,10 @@ public java.util.Map getLabelsMap() { * *
                                                                                                    * Optional. Labels as key value pairs.
                                                                                              +     * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +     * underscores, and dashes.
                                                                                              +     * For more information, see [Requirements for
                                                                                              +     * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                    * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -5878,6 +7622,10 @@ public java.util.Map getLabelsMap() { * *
                                                                                                    * Optional. Labels as key value pairs.
                                                                                              +     * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +     * underscores, and dashes.
                                                                                              +     * For more information, see [Requirements for
                                                                                              +     * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                    * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -5905,6 +7653,10 @@ public Builder clearLabels() { * *
                                                                                                    * Optional. Labels as key value pairs.
                                                                                              +     * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +     * underscores, and dashes.
                                                                                              +     * For more information, see [Requirements for
                                                                                              +     * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                    * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -5929,6 +7681,10 @@ public java.util.Map getMutableLabels() { * *
                                                                                                    * Optional. Labels as key value pairs.
                                                                                              +     * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +     * underscores, and dashes.
                                                                                              +     * For more information, see [Requirements for
                                                                                              +     * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                    * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -5950,6 +7706,10 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * *
                                                                                                    * Optional. Labels as key value pairs.
                                                                                              +     * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +     * underscores, and dashes.
                                                                                              +     * For more information, see [Requirements for
                                                                                              +     * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                    * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceOrBuilder.java index d1508d3e88fb..1ab5b19070d7 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceOrBuilder * * *
                                                                                              -   * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +   * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                  *
                                                                                              @@ -44,7 +44,7 @@ public interface InstanceOrBuilder
                                                                                                  * project_number and location_id combination.
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -54,7 +54,7 @@ public interface InstanceOrBuilder * * *
                                                                                              -   * Optional. A unique identifier for an instance. The name should be of the
                                                                                              +   * Identifier. A unique identifier for an instance. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
                                                                                                  *
                                                                                              @@ -68,7 +68,7 @@ public interface InstanceOrBuilder
                                                                                                  * project_number and location_id combination.
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -159,6 +159,10 @@ public interface InstanceOrBuilder * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -170,6 +174,10 @@ public interface InstanceOrBuilder * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -185,6 +193,10 @@ public interface InstanceOrBuilder * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -196,6 +208,10 @@ public interface InstanceOrBuilder * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -211,6 +227,10 @@ java.lang.String getLabelsOrDefault( * *
                                                                                                  * Optional. Labels as key value pairs.
                                                                                              +   * Keys and values can contain only lowercase letters, numeric characters,
                                                                                              +   * underscores, and dashes.
                                                                                              +   * For more information, see [Requirements for
                                                                                              +   * labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).
                                                                                                  * 
                                                                                              * * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequest.java index 733b32e75bb4..18b15da2c253 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequest.java @@ -120,6 +120,13 @@ public com.google.protobuf.ByteString getParentBytes() { private int pageSize_ = 0; /** + * + * + *
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                              +   * 
                                                                                              + * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. @@ -135,6 +142,12 @@ public int getPageSize() { private volatile java.lang.Object pageToken_ = ""; /** + * + * + *
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. @@ -153,6 +166,12 @@ public java.lang.String getPageToken() { } /** + * + * + *
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. @@ -624,6 +643,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private int pageSize_; /** + * + * + *
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                              +     * 
                                                                                              + * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. @@ -634,6 +660,13 @@ public int getPageSize() { } /** + * + * + *
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                              +     * 
                                                                                              + * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. @@ -648,6 +681,13 @@ public Builder setPageSize(int value) { } /** + * + * + *
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                              +     * 
                                                                                              + * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. @@ -662,6 +702,12 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. @@ -679,6 +725,12 @@ public java.lang.String getPageToken() { } /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. @@ -696,6 +748,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. @@ -712,6 +770,12 @@ public Builder setPageToken(java.lang.String value) { } /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. @@ -724,6 +788,12 @@ public Builder clearPageToken() { } /** + * + * + *
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                              +     * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequestOrBuilder.java index a258bed10899..201d7da0a864 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListBranchRulesRequestOrBuilder.java @@ -45,6 +45,13 @@ public interface ListBranchRulesRequestOrBuilder com.google.protobuf.ByteString getParentBytes(); /** + * + * + *
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                              +   * 
                                                                                              + * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. @@ -52,6 +59,12 @@ public interface ListBranchRulesRequestOrBuilder int getPageSize(); /** + * + * + *
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. @@ -59,6 +72,12 @@ public interface ListBranchRulesRequestOrBuilder java.lang.String getPageToken(); /** + * + * + *
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                              +   * 
                                                                                              + * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListHooksRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListHooksRequest.java index 987011ec906c..15344c18250f 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListHooksRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListHooksRequest.java @@ -135,8 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -685,8 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -702,8 +702,8 @@ public int getPageSize() { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -723,8 +723,8 @@ public Builder setPageSize(int value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListHooksRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListHooksRequestOrBuilder.java index 1d369110be00..6848cc383c92 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListHooksRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListHooksRequestOrBuilder.java @@ -60,8 +60,8 @@ public interface ListHooksRequestOrBuilder * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListInstancesRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListInstancesRequest.java index d31b254145c2..9f8ef2a8d173 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListInstancesRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListInstancesRequest.java @@ -137,11 +137,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Requested page size. Server may return fewer items than requested.
                                                                                              -   * If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default.
                                                                                                  * 
                                                                                              * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -159,10 +159,10 @@ public int getPageSize() { * * *
                                                                                              -   * A token identifying a page of results the server should return.
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                                  * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -183,10 +183,10 @@ public java.lang.String getPageToken() { * * *
                                                                                              -   * A token identifying a page of results the server should return.
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                                  * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -212,10 +212,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                                                                              -   * Filter for filtering results.
                                                                                              +   * Optional. Filter for filtering results.
                                                                                                  * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -236,10 +236,10 @@ public java.lang.String getFilter() { * * *
                                                                                              -   * Filter for filtering results.
                                                                                              +   * Optional. Filter for filtering results.
                                                                                                  * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -265,10 +265,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                                                                                              -   * Hint for how to order the results.
                                                                                              +   * Optional. Hint for how to order the results.
                                                                                                  * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -289,10 +289,10 @@ public java.lang.String getOrderBy() { * * *
                                                                                              -   * Hint for how to order the results.
                                                                                              +   * Optional. Hint for how to order the results.
                                                                                                  * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -844,11 +844,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Requested page size. Server may return fewer items than requested.
                                                                                              -     * If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                                    * 
                                                                                              * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -861,11 +861,11 @@ public int getPageSize() { * * *
                                                                                              -     * Requested page size. Server may return fewer items than requested.
                                                                                              -     * If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                                    * 
                                                                                              * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -882,11 +882,11 @@ public Builder setPageSize(int value) { * * *
                                                                                              -     * Requested page size. Server may return fewer items than requested.
                                                                                              -     * If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. Server may return fewer items than
                                                                                              +     * requested. If unspecified, server will pick an appropriate default.
                                                                                                    * 
                                                                                              * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -903,10 +903,10 @@ public Builder clearPageSize() { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -926,10 +926,10 @@ public java.lang.String getPageToken() { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -949,10 +949,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -971,10 +971,10 @@ public Builder setPageToken(java.lang.String value) { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -989,10 +989,10 @@ public Builder clearPageToken() { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1014,10 +1014,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Filter for filtering results.
                                                                                              +     * Optional. Filter for filtering results.
                                                                                                    * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1037,10 +1037,10 @@ public java.lang.String getFilter() { * * *
                                                                                              -     * Filter for filtering results.
                                                                                              +     * Optional. Filter for filtering results.
                                                                                                    * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1060,10 +1060,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                                                                                              -     * Filter for filtering results.
                                                                                              +     * Optional. Filter for filtering results.
                                                                                                    * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1082,10 +1082,10 @@ public Builder setFilter(java.lang.String value) { * * *
                                                                                              -     * Filter for filtering results.
                                                                                              +     * Optional. Filter for filtering results.
                                                                                                    * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1100,10 +1100,10 @@ public Builder clearFilter() { * * *
                                                                                              -     * Filter for filtering results.
                                                                                              +     * Optional. Filter for filtering results.
                                                                                                    * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1125,10 +1125,10 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Hint for how to order the results.
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                                    * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1148,10 +1148,10 @@ public java.lang.String getOrderBy() { * * *
                                                                                              -     * Hint for how to order the results.
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                                    * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1171,10 +1171,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                                                                                              -     * Hint for how to order the results.
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                                    * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1193,10 +1193,10 @@ public Builder setOrderBy(java.lang.String value) { * * *
                                                                                              -     * Hint for how to order the results.
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                                    * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1211,10 +1211,10 @@ public Builder clearOrderBy() { * * *
                                                                                              -     * Hint for how to order the results.
                                                                                              +     * Optional. Hint for how to order the results.
                                                                                                    * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListInstancesRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListInstancesRequestOrBuilder.java index 6f8112f840c8..dd3a6b7e6d58 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListInstancesRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListInstancesRequestOrBuilder.java @@ -60,11 +60,11 @@ public interface ListInstancesRequestOrBuilder * * *
                                                                                              -   * Requested page size. Server may return fewer items than requested.
                                                                                              -   * If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. Server may return fewer items than
                                                                                              +   * requested. If unspecified, server will pick an appropriate default.
                                                                                                  * 
                                                                                              * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -74,10 +74,10 @@ public interface ListInstancesRequestOrBuilder * * *
                                                                                              -   * A token identifying a page of results the server should return.
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                                  * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -87,10 +87,10 @@ public interface ListInstancesRequestOrBuilder * * *
                                                                                              -   * A token identifying a page of results the server should return.
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                                  * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -100,10 +100,10 @@ public interface ListInstancesRequestOrBuilder * * *
                                                                                              -   * Filter for filtering results.
                                                                                              +   * Optional. Filter for filtering results.
                                                                                                  * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -113,10 +113,10 @@ public interface ListInstancesRequestOrBuilder * * *
                                                                                              -   * Filter for filtering results.
                                                                                              +   * Optional. Filter for filtering results.
                                                                                                  * 
                                                                                              * - * string filter = 4; + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -126,10 +126,10 @@ public interface ListInstancesRequestOrBuilder * * *
                                                                                              -   * Hint for how to order the results.
                                                                                              +   * Optional. Hint for how to order the results.
                                                                                                  * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -139,10 +139,10 @@ public interface ListInstancesRequestOrBuilder * * *
                                                                                              -   * Hint for how to order the results.
                                                                                              +   * Optional. Hint for how to order the results.
                                                                                                  * 
                                                                                              * - * string order_by = 5; + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssueCommentsRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssueCommentsRequest.java index 9f980dbf9ac1..f2c464ad9372 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssueCommentsRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssueCommentsRequest.java @@ -137,8 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -696,8 +696,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -713,8 +713,8 @@ public int getPageSize() { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,8 +734,8 @@ public Builder setPageSize(int value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssueCommentsRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssueCommentsRequestOrBuilder.java index b8c98ed8e6ce..70f86337c1a9 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssueCommentsRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssueCommentsRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListIssueCommentsRequestOrBuilder * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssuesRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssuesRequest.java index 0d76cd85a41b..bb1984ce10b5 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssuesRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssuesRequest.java @@ -138,8 +138,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -770,8 +770,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -787,8 +787,8 @@ public int getPageSize() { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -808,8 +808,8 @@ public Builder setPageSize(int value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssuesRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssuesRequestOrBuilder.java index eb1502ef9f1e..bf92b5abcd84 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssuesRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListIssuesRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListIssuesRequestOrBuilder * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestCommentsRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestCommentsRequest.java index 607ba85615b3..dfd68f4316c1 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestCommentsRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestCommentsRequest.java @@ -137,9 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Optional. Requested page size. If unspecified, at most 100 pull request
                                                                                              -   * comments will be returned. The maximum value is 100; values above 100 will
                                                                                              -   * be coerced to 100.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -702,9 +701,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Optional. Requested page size. If unspecified, at most 100 pull request
                                                                                              -     * comments will be returned. The maximum value is 100; values above 100 will
                                                                                              -     * be coerced to 100.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -720,9 +718,8 @@ public int getPageSize() { * * *
                                                                                              -     * Optional. Requested page size. If unspecified, at most 100 pull request
                                                                                              -     * comments will be returned. The maximum value is 100; values above 100 will
                                                                                              -     * be coerced to 100.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -742,9 +739,8 @@ public Builder setPageSize(int value) { * * *
                                                                                              -     * Optional. Requested page size. If unspecified, at most 100 pull request
                                                                                              -     * comments will be returned. The maximum value is 100; values above 100 will
                                                                                              -     * be coerced to 100.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestCommentsRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestCommentsRequestOrBuilder.java index db9b1f3030bd..9d1d678590d1 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestCommentsRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestCommentsRequestOrBuilder.java @@ -62,9 +62,8 @@ public interface ListPullRequestCommentsRequestOrBuilder * * *
                                                                                              -   * Optional. Requested page size. If unspecified, at most 100 pull request
                                                                                              -   * comments will be returned. The maximum value is 100; values above 100 will
                                                                                              -   * be coerced to 100.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestFileDiffsRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestFileDiffsRequest.java index 43d3857bee98..49f90d4685a8 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestFileDiffsRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestFileDiffsRequest.java @@ -140,8 +140,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -712,8 +712,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -729,8 +729,8 @@ public int getPageSize() { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -750,8 +750,8 @@ public Builder setPageSize(int value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestFileDiffsRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestFileDiffsRequestOrBuilder.java index 9eebc83b0553..c69d4a72b68b 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestFileDiffsRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestFileDiffsRequestOrBuilder.java @@ -64,8 +64,8 @@ public interface ListPullRequestFileDiffsRequestOrBuilder * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestsRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestsRequest.java index 2603babd5a8e..1a403ea9b9e3 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestsRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestsRequest.java @@ -137,8 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -696,8 +696,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -713,8 +713,8 @@ public int getPageSize() { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,8 +734,8 @@ public Builder setPageSize(int value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestsRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestsRequestOrBuilder.java index 7cf55729f760..fd642b5c3aaa 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestsRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListPullRequestsRequestOrBuilder.java @@ -62,8 +62,8 @@ public interface ListPullRequestsRequestOrBuilder * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequest.java index ec78f20c4a1d..7f2680162100 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequest.java @@ -137,8 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -159,10 +159,10 @@ public int getPageSize() { * * *
                                                                                              -   * A token identifying a page of results the server should return.
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                                  * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -183,10 +183,10 @@ public java.lang.String getPageToken() { * * *
                                                                                              -   * A token identifying a page of results the server should return.
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                                  * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -859,8 +859,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -876,8 +876,8 @@ public int getPageSize() { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -897,8 +897,8 @@ public Builder setPageSize(int value) { * * *
                                                                                              -     * Optional. Requested page size. Server may return fewer items than
                                                                                              -     * requested. If unspecified, server will pick an appropriate default.
                                                                                              +     * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +     * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                    * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -918,10 +918,10 @@ public Builder clearPageSize() { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -941,10 +941,10 @@ public java.lang.String getPageToken() { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -964,10 +964,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -986,10 +986,10 @@ public Builder setPageToken(java.lang.String value) { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1004,10 +1004,10 @@ public Builder clearPageToken() { * * *
                                                                                              -     * A token identifying a page of results the server should return.
                                                                                              +     * Optional. A token identifying a page of results the server should return.
                                                                                                    * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequestOrBuilder.java index 508c2c633db1..b596ece0279c 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/ListRepositoriesRequestOrBuilder.java @@ -60,8 +60,8 @@ public interface ListRepositoriesRequestOrBuilder * * *
                                                                                              -   * Optional. Requested page size. Server may return fewer items than
                                                                                              -   * requested. If unspecified, server will pick an appropriate default.
                                                                                              +   * Optional. Requested page size. If unspecified, a default size of 30 will be
                                                                                              +   * used. The maximum value is 100; values above 100 will be coerced to 100.
                                                                                                  * 
                                                                                              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -74,10 +74,10 @@ public interface ListRepositoriesRequestOrBuilder * * *
                                                                                              -   * A token identifying a page of results the server should return.
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                                  * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -87,10 +87,10 @@ public interface ListRepositoriesRequestOrBuilder * * *
                                                                                              -   * A token identifying a page of results the server should return.
                                                                                              +   * Optional. A token identifying a page of results the server should return.
                                                                                                  * 
                                                                                              * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequest.java index 94717363706d..94fa98a54da0 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequest.java @@ -1105,12 +1105,14 @@ public com.google.cloud.securesourcemanager.v1.PullRequest.Branch getDefaultInst * * *
                                                                                              -   * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -   * the end is generated by the server. Format:
                                                                                              +   * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +   * appended at the end is generated by the server. Format:
                                                                                                  * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -1131,12 +1133,14 @@ public java.lang.String getName() { * * *
                                                                                              -   * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -   * the end is generated by the server. Format:
                                                                                              +   * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +   * appended at the end is generated by the server. Format:
                                                                                                  * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -2150,12 +2154,14 @@ public Builder mergeFrom( * * *
                                                                                              -     * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -     * the end is generated by the server. Format:
                                                                                              +     * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +     * appended at the end is generated by the server. Format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -2175,12 +2181,14 @@ public java.lang.String getName() { * * *
                                                                                              -     * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -     * the end is generated by the server. Format:
                                                                                              +     * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +     * appended at the end is generated by the server. Format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -2200,12 +2208,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                                                                              -     * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -     * the end is generated by the server. Format:
                                                                                              +     * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +     * appended at the end is generated by the server. Format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The name to set. * @return This builder for chaining. @@ -2224,12 +2234,14 @@ public Builder setName(java.lang.String value) { * * *
                                                                                              -     * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -     * the end is generated by the server. Format:
                                                                                              +     * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +     * appended at the end is generated by the server. Format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2244,12 +2256,14 @@ public Builder clearName() { * * *
                                                                                              -     * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -     * the end is generated by the server. Format:
                                                                                              +     * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +     * appended at the end is generated by the server. Format:
                                                                                                    * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestOrBuilder.java index 508c90fac728..2f31f9ace91b 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestOrBuilder.java @@ -30,12 +30,14 @@ public interface PullRequestOrBuilder * * *
                                                                                              -   * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -   * the end is generated by the server. Format:
                                                                                              +   * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +   * appended at the end is generated by the server. Format:
                                                                                                  * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -45,12 +47,14 @@ public interface PullRequestOrBuilder * * *
                                                                                              -   * Output only. A unique identifier for a PullRequest. The number appended at
                                                                                              -   * the end is generated by the server. Format:
                                                                                              +   * Output only. Identifier. A unique identifier for a PullRequest. The number
                                                                                              +   * appended at the end is generated by the server. Format:
                                                                                                  * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java index ab6b511c26a8..edbc70a181db 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/Repository.java @@ -3896,12 +3896,12 @@ public com.google.protobuf.Parser getParserForType() { * * *
                                                                                              -   * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +   * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3922,12 +3922,12 @@ public java.lang.String getName() { * * *
                                                                                              -   * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +   * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4078,7 +4078,9 @@ public com.google.protobuf.ByteString getInstanceBytes() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -4102,7 +4104,9 @@ public java.lang.String getUid() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -4957,12 +4961,12 @@ public Builder mergeFrom( * * *
                                                                                              -     * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -4982,12 +4986,12 @@ public java.lang.String getName() { * * *
                                                                                              -     * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -5007,12 +5011,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                                                                              -     * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -5031,12 +5035,12 @@ public Builder setName(java.lang.String value) { * * *
                                                                                              -     * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -5051,12 +5055,12 @@ public Builder clearName() { * * *
                                                                                              -     * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +     * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                    * format:
                                                                                                    * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                    * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -5343,7 +5347,9 @@ public Builder setInstanceBytes(com.google.protobuf.ByteString value) { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -5366,7 +5372,9 @@ public java.lang.String getUid() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ @@ -5389,7 +5397,9 @@ public com.google.protobuf.ByteString getUidBytes() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @param value The uid to set. * @return This builder for chaining. @@ -5411,7 +5421,9 @@ public Builder setUid(java.lang.String value) { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -5429,7 +5441,9 @@ public Builder clearUid() { * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @param value The bytes for uid to set. * @return This builder for chaining. diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java index 160a1d6c8a2e..7c8dd0640a76 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryOrBuilder.java @@ -30,12 +30,12 @@ public interface RepositoryOrBuilder * * *
                                                                                              -   * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +   * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface RepositoryOrBuilder * * *
                                                                                              -   * Optional. A unique identifier for a repository. The name should be of the
                                                                                              +   * Identifier. A unique identifier for a repository. The name should be of the
                                                                                                  * format:
                                                                                                  * `projects/{project}/locations/{location_id}/repositories/{repository_id}`
                                                                                                  * 
                                                                                              * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -131,7 +131,9 @@ public interface RepositoryOrBuilder * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The uid. */ @@ -144,7 +146,9 @@ public interface RepositoryOrBuilder * Output only. Unique identifier of the repository. *
                                                                                              * - * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * * * @return The bytes for uid. */ diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java index be81b5c9e22e..55472f412fa2 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securesourcemanager_v1_Instance_WorkforceIdentityFederationConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -405,35 +409,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "?google/cloud/securesourcemanager/v1/secure_source_manager.proto\022#google.cloud." + "securesourcemanager.v1\032\034google/api/annot" + "ations.proto\032\027google/api/client.proto\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\032\036google/iam/v1/iam_pol" - + "icy.proto\032\032google/iam/v1/policy.proto\032#g" - + "oogle/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\230\014\n" + + "oogle/api/field_behavior.proto\032\033google/a" + + "pi/field_info.proto\032\031google/api/resource" + + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" + + "google/iam/v1/policy.proto\032#google/longr" + + "unning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\355\r\n" + "\010Instance\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\001\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" - + "\006labels\030\004" - + " \003(\01329.google.cloud.securesourcemanager.v1.Instance.LabelsEntryB\003\340A\001\022X\n" + + "\006labels\030\004 \003(\01329.go" + + "ogle.cloud.securesourcemanager.v1.Instance.LabelsEntryB\003\340A\001\022X\n" + "\016private_config\030\r" - + " \001(\0132;.google.cloud.securesour" - + "cemanager.v1.Instance.PrivateConfigB\003\340A\001\022G\n" + + " \001(\0132;.google.cloud.securesourcemanager.v1.Instance.PrivateConfigB\003\340A\001\022G\n" + "\005state\030\005" + " \001(\01623.google.cloud.securesourcemanager.v1.Instance.StateB\003\340A\003\022P\n\n" + "state_note\030\n" - + " \001(\01627.google.cloud.securesourcemanager.v1.Instance.StateNoteB\003\340A\003\022:\n" + + " \001" + + "(\01627.google.cloud.securesourcemanager.v1.Instance.StateNoteB\003\340A\003\022:\n" + "\007kms_key\030\013 \001(\tB)\340A\005\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022R\n" - + "\013host_config\030\t \001(\01328.g" - + "oogle.cloud.securesourcemanager.v1.Instance.HostConfigB\003\340A\003\022\202\001\n" - + "$workforce_identity_federation_config\030\016 \001(\0132O.google.clou" - + "d.securesourcemanager.v1.Instance.WorkforceIdentityFederationConfigB\003\340A\001\032^\n\n" + + "\013host_config\030\t \001(\01328.google.cloud" + + ".securesourcemanager.v1.Instance.HostConfigB\003\340A\003\022\202\001\n" + + "$workforce_identity_federation_config\030\016 \001(\0132O.google.cloud.securesou" + + "rcemanager.v1.Instance.WorkforceIdentityFederationConfigB\003\340A\001\032^\n\n" + "HostConfig\022\021\n" + "\004html\030\001 \001(\tB\003\340A\003\022\020\n" + "\003api\030\002 \001(\tB\003\340A\003\022\025\n" + "\010git_http\030\003 \001(\tB\003\340A\003\022\024\n" - + "\007git_ssh\030\004 \001(\tB\003\340A\003\032\260\002\n\r" + + "\007git_ssh\030\004 \001(\tB\003\340A\003\032\205\004\n\r" + "PrivateConfig\022\032\n\n" + "is_private\030\001 \001(\010B\006\340A\005\340A\002\022;\n" + "\007ca_pool\030\002 \001(\tB*\340A\005\340A\001\372A!\n" @@ -442,7 +447,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(compute.googleapis.com/ServiceAttachment\022P\n" + "\026ssh_service_attachment\030\004 \001(\tB0\340A\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022!\n" - + "\024psc_allowed_projects\030\006 \003(\tB\003\340A\001\032<\n" + + "\024psc_allowed_projects\030\006 \003(\tB\003\340A\001\022m\n" + + "\022custom_host_config\030\007 \001(\0132L.google.cloud.securesource" + + "manager.v1.Instance.PrivateConfig.CustomHostConfigB\003\340A\001\032d\n" + + "\020CustomHostConfig\022\021\n" + + "\004html\030\001 \001(\tB\003\340A\002\022\020\n" + + "\003api\030\002 \001(\tB\003\340A\002\022\024\n" + + "\007git_ssh\030\003 \001(\tB\003\340A\002\022\025\n" + + "\010git_http\030\004 \001(\tB\003\340A\002\032<\n" + "!WorkforceIdentityFederationConfig\022\027\n" + "\007enabled\030\001 \001(\010B\006\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -459,23 +471,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026STATE_NOTE_UNSPECIFIED\020\000\022\033\n" + "\027PAUSED_CMEK_UNAVAILABLE\020\001\022\031\n" + "\021INSTANCE_RESUMING\020\002\032\002\010\001:q\352An\n" - + "+securesourcemanager.googleapis.com/Instance\022.google.cloud.securesourcemanager.v1.PullRequestComment.ReviewB\003\340A\001H\000\022W\n" - + "\007comment\030\005 \001(\0132?.google.cloud.securesourcem" - + "anager.v1.PullRequestComment.CommentB\003\340A\001H\000\022Q\n" - + "\004code\030\006 \001(\0132<.google.cloud.secures" - + "ourcemanager.v1.PullRequestComment.CodeB\003\340A\001H\000\032\377\001\n" + + "\006review\030\004 \001(\0132>.goo" + + "gle.cloud.securesourcemanager.v1.PullRequestComment.ReviewB\003\340A\001H\000\022W\n" + + "\007comment\030\005 \001" + + "(\0132?.google.cloud.securesourcemanager.v1.PullRequestComment.CommentB\003\340A\001H\000\022Q\n" + + "\004code\030\006 \001(\0132<.google.cloud.securesourcemana" + + "ger.v1.PullRequestComment.CodeB\003\340A\001H\000\032\377\001\n" + "\006Review\022c\n" - + "\013action_type\030\001 \001(\0162I.google.cloud.securesourcemanager.v1.Pul" - + "lRequestComment.Review.ActionTypeB\003\340A\002\022\021\n" + + "\013action_type\030\001 \001(\0162I.google.c" + + "loud.securesourcemanager.v1.PullRequestComment.Review.ActionTypeB\003\340A\002\022\021\n" + "\004body\030\002 \001(\tB\003\340A\001\022!\n" + "\024effective_commit_sha\030\004 \001(\tB\003\340A\003\"Z\n\n" + "ActionType\022\033\n" @@ -622,43 +635,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Code\022\021\n" + "\004body\030\001 \001(\tB\003\340A\002\022\025\n" + "\005reply\030\002 \001(\tB\006\340A\001\340A\004\022W\n" - + "\010position\030\003 " - + "\001(\0132@.google.cloud.securesourcemanager.v1.PullRequestComment.PositionB\003\340A\001\022#\n" + + "\010position\030\003 \001(\0132@.goo" + + "gle.cloud.securesourcemanager.v1.PullRequestComment.PositionB\003\340A\001\022#\n" + "\026effective_root_comment\030\004 \001(\tB\003\340A\003\022\025\n" + "\010resolved\030\005 \001(\010B\003\340A\003\022!\n" + "\024effective_commit_sha\030\007 \001(\tB\003\340A\003\0320\n" + "\010Position\022\021\n" + "\004path\030\001 \001(\tB\003\340A\002\022\021\n" + "\004line\030\002 \001(\003B\003\340A\002:\270\001\352A\264\001\n" - + "5securesourcemanager.googleapis.com/PullRequestCommen" - + "t\022{projects/{project}/locations/{location}/repositories/{repository}/pullRequest" - + "s/{pull_request}/pullRequestComments/{comment}B\020\n" - + "\016comment_detail\"\244\001\n" + + "5securesourcemanager.googleapis.com/PullRequestComment\022{projec" + + "ts/{project}/locations/{location}/reposi" + + "tories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment}B\020\n" + + "\016comment_detail\"\270\001\n" + "\024ListInstancesRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+secur" - + "esourcemanager.googleapis.com/Instance\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"\207\001\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+securesourcemanager.googleapis.com/Instance\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\207\001\n" + "\025ListInstancesResponse\022@\n" + "\tinstances\030\001 \003(\0132-.google.cloud.securesourcemanager.v1.Instance\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"W\n" + "\022GetInstanceRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+securesourcemanager.googleapis.com/Instance\"\325\001\n" + + "+securesourcemanager.googleapis.com/Instance\"\335\001\n" + "\025CreateInstanceRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+securesourcemanager.googleapis.com/Instance\022\030\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022" + + "+securesourcemanager.googleapis.com/Instance\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022D\n" - + "\010instance\030\003 \001(\0132-." - + "google.cloud.securesourcemanager.v1.InstanceB\003\340A\002\022\027\n\n" - + "request_id\030\004 \001(\tB\003\340A\001\"s\n" + + "\010instance\030\003" + + " \001(\0132-.google.cloud.securesourcemanager.v1.InstanceB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\217\001\n" + "\025DeleteInstanceRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+securesourcemanager.googleapis.com/Instance\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\"\200\002\n" + + "+securesourcemanager.googleapis.com/Instance\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\022\n" + + "\005force\030\003 \001(\010B\003\340A\001\"\200\002\n" + "\021OperationMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" @@ -666,12 +680,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\003\"\350\001\n" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\355\001\n" + "\027ListRepositoriesRequest\022E\n" + "\006parent\030\001 \001(" + "\tB5\340A\002\372A/\022-securesourcemanager.googleapis.com/Repository\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\022\n\n" - + "page_token\030\003 \001(\t\022\023\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022E\n" + "\010instance\030\005 \001(\tB3\340A\001\372A-\n" + "+securesourcemanager.googleapis.com/Instance\"z\n" @@ -683,10 +697,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-securesourcemanager.googleapis.com/Repository\"\306\001\n" + "\027CreateRepositoryRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-secu" - + "resourcemanager.googleapis.com/Repository\022H\n\n" - + "repository\030\002" - + " \001(\0132/.google.cloud.securesourcemanager.v1.RepositoryB\003\340A\002\022\032\n\r" + + "\006parent\030\001 \001(\tB" + + "5\340A\002\372A/\022-securesourcemanager.googleapis.com/Repository\022H\n\n" + + "repository\030\002 \001(\0132/.goo" + + "gle.cloud.securesourcemanager.v1.RepositoryB\003\340A\002\022\032\n\r" + "repository_id\030\003 \001(\tB\003\340A\002\"\265\001\n" + "\027UpdateRepositoryRequest\0224\n" + "\013update_mask\030\001" @@ -712,13 +726,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CreateHookRequest\022E\n" + "\006parent\030\001 \001(\tB5\340A\002\372A/\n" + "-securesourcemanager.googleapis.com/Repository\022<\n" - + "\004hook\030\002 \001(\0132)" - + ".google.cloud.securesourcemanager.v1.HookB\003\340A\002\022\024\n" + + "\004hook\030\002" + + " \001(\0132).google.cloud.securesourcemanager.v1.HookB\003\340A\002\022\024\n" + "\007hook_id\030\003 \001(\tB\003\340A\002\"\207\001\n" + "\021UpdateHookRequest\0224\n" - + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022<\n" - + "\004hook\030\002 \001(\0132)" - + ".google.cloud.securesourcemanager.v1.HookB\003\340A\002\"R\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022<\n" + + "\004hook\030\002" + + " \001(\0132).google.cloud.securesourcemanager.v1.HookB\003\340A\002\"R\n" + "\021DeleteHookRequest\022=\n" + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + "\'securesourcemanager.googleapis.com/Hook\"[\n" @@ -726,14 +740,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-securesourcemanager.googleapis.com/BranchRule\"\310\001\n" + "\027CreateBranchRuleRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-sec" - + "uresourcemanager.googleapis.com/BranchRule\022I\n" - + "\013branch_rule\030\002" - + " \001(\0132/.google.cloud.securesourcemanager.v1.BranchRuleB\003\340A\002\022\033\n" + + "\006parent\030\001 \001(\t" + + "B5\340A\002\372A/\022-securesourcemanager.googleapis.com/BranchRule\022I\n" + + "\013branch_rule\030\002 \001(\0132/.g" + + "oogle.cloud.securesourcemanager.v1.BranchRuleB\003\340A\002\022\033\n" + "\016branch_rule_id\030\003 \001(\tB\003\340A\002\"\220\001\n" + "\026ListBranchRulesRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-s" - + "ecuresourcemanager.googleapis.com/BranchRule\022\026\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-securesourcemanager.googleapis.com/BranchRule\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"z\n" + "\027DeleteBranchRuleRequest\022C\n" @@ -741,10 +755,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-securesourcemanager.googleapis.com/BranchRule\022\032\n\r" + "allow_missing\030\002 \001(\010B\003\340A\001\"\266\001\n" + "\027UpdateBranchRuleRequest\022I\n" - + "\013branch_rule\030\001 \001(\0132/.google.clou" - + "d.securesourcemanager.v1.BranchRuleB\003\340A\002\022\032\n\r" + + "\013branch_rule\030\001 \001(\0132" + + "/.google.cloud.securesourcemanager.v1.BranchRuleB\003\340A\002\022\032\n\r" + "validate_only\030\002 \001(\010B\003\340A\001\0224\n" - + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"y\n" + + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"y\n" + "\027ListBranchRulesResponse\022E\n" + "\014branch_rules\030\001" + " \003(\0132/.google.cloud.securesourcemanager.v1.BranchRule\022\027\n" @@ -763,12 +777,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"|\n" + "\030ListPullRequestsResponse\022G\n\r" - + "pull_requests\030\001 \003(\01320.g" - + "oogle.cloud.securesourcemanager.v1.PullRequest\022\027\n" + + "pull_requests\030\001" + + " \003(\01320.google.cloud.securesourcemanager.v1.PullRequest\022\027\n" + "\017next_page_token\030\002 \001(\t\"\235\001\n" + "\030UpdatePullRequestRequest\022K\n" - + "\014pull_request\030\001 \001" - + "(\01320.google.cloud.securesourcemanager.v1.PullRequestB\003\340A\002\0224\n" + + "\014pull_request\030\001" + + " \001(\01320.google.cloud.securesourcemanager.v1.PullRequestB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"_\n" + "\027MergePullRequestRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" @@ -790,24 +804,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022CreateIssueRequest\022E\n" + "\006parent\030\001 \001(\tB5\340A\002\372A/\n" + "-securesourcemanager.googleapis.com/Repository\022>\n" - + "\005issue\030\002 \001(\0132*.goog" - + "le.cloud.securesourcemanager.v1.IssueB\003\340A\002\"Q\n" + + "\005issue\030\002" + + " \001(\0132*.google.cloud.securesourcemanager.v1.IssueB\003\340A\002\"Q\n" + "\017GetIssueRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(securesourcemanager.googleapis.com/Issue\"\233\001\n" + "\021ListIssuesRequest\022@\n" + "\006parent\030\001 \001(" + "\tB0\340A\002\372A*\022(securesourcemanager.googleapis.com/Issue\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"i\n" + "\022ListIssuesResponse\022:\n" + "\006issues\030\001 \003(\0132*.google.cloud.securesourcemanager.v1.Issue\022\027\n" + "\017next_page_token\030\002 \001(\t\"\212\001\n" + "\022UpdateIssueRequest\022>\n" - + "\005issue\030\001" - + " \001(\0132*.google.cloud.securesourcemanager.v1.IssueB\003\340A\002\0224\n" + + "\005issue\030\001 \001(" + + "\0132*.google.cloud.securesourcemanager.v1.IssueB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"g\n" + "\022DeleteIssueRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -822,8 +835,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(securesourcemanager.googleapis.com/Issue\022\021\n" + "\004etag\030\002 \001(\tB\003\340A\001\"\357\001\n" + "\tTreeEntry\022L\n" - + "\004type\030\001 \001(\01629.google" - + ".cloud.securesourcemanager.v1.TreeEntry.ObjectTypeB\003\340A\003\022\020\n" + + "\004type\030\001" + + " \001(\01629.google.cloud.securesourcemanager.v1.TreeEntry.ObjectTypeB\003\340A\003\022\020\n" + "\003sha\030\002 \001(\tB\003\340A\003\022\021\n" + "\004path\030\003 \001(\tB\003\340A\003\022\021\n" + "\004mode\030\004 \001(\tB\003\340A\003\022\021\n" @@ -841,8 +854,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\005 \001(\tB\003\340A\001\"r\n" + "\021FetchTreeResponse\022D\n" - + "\014tree_entries\030\001 \003(\0132..go" - + "ogle.cloud.securesourcemanager.v1.TreeEntry\022\027\n" + + "\014tree_entries\030\001" + + " \003(\0132..google.cloud.securesourcemanager.v1.TreeEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\"o\n" + "\020FetchBlobRequest\022I\n\n" + "repository\030\001 \001(\tB5\340A\002\372A/\n" @@ -852,30 +865,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003sha\030\001 \001(\t\022\017\n" + "\007content\030\002 \001(\t\"\240\001\n" + "\036ListPullRequestCommentsRequest\022M\n" - + "\006parent\030\001 \001(" - + "\tB=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022\026\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225securesourcema" + + "nager.googleapis.com/PullRequestComment\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\222\001\n" + "\037ListPullRequestCommentsResponse\022V\n" - + "\025pull_request_comments\030\001 \003(\01327.google.cloud.se" - + "curesourcemanager.v1.PullRequestComment\022\027\n" + + "\025pull_request_comments\030\001 \003(\01327.go" + + "ogle.cloud.securesourcemanager.v1.PullRequestComment\022\027\n" + "\017next_page_token\030\002 \001(\t\"\314\001\n" + "\037CreatePullRequestCommentRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340A" - + "\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022Z\n" - + "\024pull_request_comment\030\002" - + " \001(\01327.google.cloud.securesourcemanager.v1.PullRequestCommentB\003\340A\002\"\323\001\n" - + "%BatchCreatePullRequestCommentsRequest\022M\n" + "\006parent\030\001 \001(" - + "\tB=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022[\n" - + "\010requests\030\002 \003(\0132D.google.cloud.securesourcema" - + "nager.v1.CreatePullRequestCommentRequestB\003\340A\002\"\200\001\n" + + "\tB=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022Z\n" + + "\024pull_request_comment\030\002 \001(\01327.google.cloud.se" + + "curesourcemanager.v1.PullRequestCommentB\003\340A\002\"\323\001\n" + + "%BatchCreatePullRequestCommentsRequest\022M\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225secureso" + + "urcemanager.googleapis.com/PullRequestComment\022[\n" + + "\010requests\030\002 \003(\0132D.google.cloud.s" + + "ecuresourcemanager.v1.CreatePullRequestCommentRequestB\003\340A\002\"\200\001\n" + "&BatchCreatePullRequestCommentsResponse\022V\n" - + "\025pull_request_comments\030\001 \003(\0132" - + "7.google.cloud.securesourcemanager.v1.PullRequestComment\"\263\001\n" + + "\025pull_request_comments\030\001" + + " \003(\01327.google.cloud.securesourcemanager.v1.PullRequestComment\"\263\001\n" + "\037UpdatePullRequestCommentRequest\022Z\n" - + "\024pull_request_comment\030\001 \001" - + "(\01327.google.cloud.securesourcemanager.v1.PullRequestCommentB\003\340A\002\0224\n" + + "\024pull_request_comment\030\001" + + " \001(\01327.google.cloud.securesourcemanager.v1.PullRequestCommentB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"n\n" + "\037DeletePullRequestCommentRequest\022K\n" + "\004name\030\001 \001(\tB=\340A\002\372A7\n" @@ -884,386 +897,384 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + "5securesourcemanager.googleapis.com/PullRequestComment\"\330\001\n" + "!ResolvePullRequestCommentsRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340A\002\372A" - + "7\0225securesourcemanager.googleapis.com/PullRequestComment\022L\n" + + "\006parent\030\001 \001(" + + "\tB=\340A\002\372A7\0225securesourcemanager.googleapis.com/PullRequestComment\022L\n" + "\005names\030\002 \003(\tB=\340A\002\372A7\n" + "5securesourcemanager.googleapis.com/PullRequestComment\022\026\n" + "\tauto_fill\030\003 \001(\010B\003\340A\001\"|\n" + "\"ResolvePullRequestCommentsResponse\022V\n" - + "\025pull_request_comments\030\001 \003(\01327.google.clo" - + "ud.securesourcemanager.v1.PullRequestComment\"\332\001\n" + + "\025pull_request_comments\030\001 \003(\013" + + "27.google.cloud.securesourcemanager.v1.PullRequestComment\"\332\001\n" + "#UnresolvePullRequestCommentsRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225securesour" - + "cemanager.googleapis.com/PullRequestComment\022L\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A" + + "7\0225securesourcemanager.googleapis.com/PullRequestComment\022L\n" + "\005names\030\002 \003(\tB=\340A\002\372A7\n" + "5securesourcemanager.googleapis.com/PullRequestComment\022\026\n" + "\tauto_fill\030\003 \001(\010B\003\340A\001\"~\n" + "$UnresolvePullRequestCommentsResponse\022V\n" - + "\025pull_request_comments\030\001" - + " \003(\01327.google.cloud.securesourcemanager.v1.PullRequestComment\"\254\001\n" + + "\025pull_request_comments\030\001 \003(\01327.google.c" + + "loud.securesourcemanager.v1.PullRequestComment\"\254\001\n" + "\031CreateIssueCommentRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" - + "(securesourcemanager.googleapis.com/Issue\022M\n\r" - + "issue_comment\030\002 \001(\01321.googl" - + "e.cloud.securesourcemanager.v1.IssueCommentB\003\340A\002\"_\n" - + "\026GetIssueCommentRequest\022E\n" - + "\004name\030\001 \001(\tB7\340A\002\372A1\n" - + "/securesourcemanager.googleapis.com/IssueComment\"\224\001\n" - + "\030ListIssueCommentsRequest\022G\n" - + "\006parent\030\001 \001(\tB7\340A\002\372A1\022/" - + "securesourcemanager.googleapis.com/IssueComment\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_", - "token\030\003 \001(\tB\003\340A\001\"\177\n\031ListIssueCommentsRes" - + "ponse\022I\n\016issue_comments\030\001 \003(\01321.google.c" - + "loud.securesourcemanager.v1.IssueComment" - + "\022\027\n\017next_page_token\030\002 \001(\t\"\240\001\n\031UpdateIssu" - + "eCommentRequest\022M\n\rissue_comment\030\001 \001(\01321" - + ".google.cloud.securesourcemanager.v1.Iss" - + "ueCommentB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\001\"b\n\031DeleteIs" - + "sueCommentRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n" - + "/securesourcemanager.googleapis.com/Issu" - + "eComment2\376d\n\023SecureSourceManager\022\306\001\n\rLis" - + "tInstances\0229.google.cloud.securesourcema" - + "nager.v1.ListInstancesRequest\032:.google.c" - + "loud.securesourcemanager.v1.ListInstance" - + "sResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=" - + "projects/*/locations/*}/instances\022\263\001\n\013Ge" - + "tInstance\0227.google.cloud.securesourceman" - + "ager.v1.GetInstanceRequest\032-.google.clou" - + "d.securesourcemanager.v1.Instance\"<\332A\004na" - + "me\202\323\344\223\002/\022-/v1/{name=projects/*/locations" - + "/*/instances/*}\022\352\001\n\016CreateInstance\022:.goo" - + "gle.cloud.securesourcemanager.v1.CreateI" - + "nstanceRequest\032\035.google.longrunning.Oper" - + "ation\"}\312A\035\n\010Instance\022\021OperationMetadata\332" - + "A\033parent,instance,instance_id\202\323\344\223\0029\"-/v1" - + "/{parent=projects/*/locations/*}/instanc" - + "es:\010instance\022\326\001\n\016DeleteInstance\022:.google" - + ".cloud.securesourcemanager.v1.DeleteInst" - + "anceRequest\032\035.google.longrunning.Operati" - + "on\"i\312A*\n\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\002/*-/v1/{name=projec" - + "ts/*/locations/*/instances/*}\022\322\001\n\020ListRe" - + "positories\022<.google.cloud.securesourcema" - + "nager.v1.ListRepositoriesRequest\032=.googl" - + "e.cloud.securesourcemanager.v1.ListRepos" - + "itoriesResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{p" - + "arent=projects/*/locations/*}/repositori" - + "es\022\274\001\n\rGetRepository\0229.google.cloud.secu" - + "resourcemanager.v1.GetRepositoryRequest\032" - + "/.google.cloud.securesourcemanager.v1.Re" - + "pository\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=proje" - + "cts/*/locations/*/repositories/*}\022\372\001\n\020Cr" - + "eateRepository\022<.google.cloud.securesour" - + "cemanager.v1.CreateRepositoryRequest\032\035.g" - + "oogle.longrunning.Operation\"\210\001\312A\037\n\nRepos" - + "itory\022\021OperationMetadata\332A\037parent,reposi" - + "tory,repository_id\202\323\344\223\002>\"0/v1/{parent=pr" - + "ojects/*/locations/*}/repositories:\nrepo" - + "sitory\022\374\001\n\020UpdateRepository\022<.google.clo" - + "ud.securesourcemanager.v1.UpdateReposito" + + "\006", + "parent\030\001 \001(\tB0\340A\002\372A*\n(securesourcemanage" + + "r.googleapis.com/Issue\022M\n\rissue_comment\030" + + "\002 \001(\01321.google.cloud.securesourcemanager" + + ".v1.IssueCommentB\003\340A\002\"_\n\026GetIssueComment" + + "Request\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/securesou" + + "rcemanager.googleapis.com/IssueComment\"\224" + + "\001\n\030ListIssueCommentsRequest\022G\n\006parent\030\001 " + + "\001(\tB7\340A\002\372A1\022/securesourcemanager.googlea" + + "pis.com/IssueComment\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\177\n\031ListIss" + + "ueCommentsResponse\022I\n\016issue_comments\030\001 \003" + + "(\01321.google.cloud.securesourcemanager.v1" + + ".IssueComment\022\027\n\017next_page_token\030\002 \001(\t\"\240" + + "\001\n\031UpdateIssueCommentRequest\022M\n\rissue_co" + + "mment\030\001 \001(\01321.google.cloud.securesourcem" + + "anager.v1.IssueCommentB\003\340A\002\0224\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\001\"b\n\031DeleteIssueCommentRequest\022E\n\004name\030\001" + + " \001(\tB7\340A\002\372A1\n/securesourcemanager.google" + + "apis.com/IssueComment2\376d\n\023SecureSourceMa" + + "nager\022\306\001\n\rListInstances\0229.google.cloud.s" + + "ecuresourcemanager.v1.ListInstancesReque" + + "st\032:.google.cloud.securesourcemanager.v1" + + ".ListInstancesResponse\">\332A\006parent\202\323\344\223\002/\022" + + "-/v1/{parent=projects/*/locations/*}/ins" + + "tances\022\263\001\n\013GetInstance\0227.google.cloud.se" + + "curesourcemanager.v1.GetInstanceRequest\032" + + "-.google.cloud.securesourcemanager.v1.In" + + "stance\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=project" + + "s/*/locations/*/instances/*}\022\352\001\n\016CreateI" + + "nstance\022:.google.cloud.securesourcemanag" + + "er.v1.CreateInstanceRequest\032\035.google.lon" + + "grunning.Operation\"}\312A\035\n\010Instance\022\021Opera" + + "tionMetadata\332A\033parent,instance,instance_" + + "id\202\323\344\223\0029\"-/v1/{parent=projects/*/locatio" + + "ns/*}/instances:\010instance\022\326\001\n\016DeleteInst" + + "ance\022:.google.cloud.securesourcemanager." + + "v1.DeleteInstanceRequest\032\035.google.longru" + + "nning.Operation\"i\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1" + + "/{name=projects/*/locations/*/instances/" + + "*}\022\322\001\n\020ListRepositories\022<.google.cloud.s" + + "ecuresourcemanager.v1.ListRepositoriesRe" + + "quest\032=.google.cloud.securesourcemanager" + + ".v1.ListRepositoriesResponse\"A\332A\006parent\202" + + "\323\344\223\0022\0220/v1/{parent=projects/*/locations/" + + "*}/repositories\022\274\001\n\rGetRepository\0229.goog" + + "le.cloud.securesourcemanager.v1.GetRepos" + + "itoryRequest\032/.google.cloud.securesource" + + "manager.v1.Repository\"?\332A\004name\202\323\344\223\0022\0220/v" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*}\022\372\001\n\020CreateRepository\022<.google.clo" + + "ud.securesourcemanager.v1.CreateReposito" + "ryRequest\032\035.google.longrunning.Operation" - + "\"\212\001\312A\037\n\nRepository\022\021OperationMetadata\332A\026" - + "repository,update_mask\202\323\344\223\002I2;/v1/{repos" - + "itory.name=projects/*/locations/*/reposi" - + "tories/*}:\nrepository\022\335\001\n\020DeleteReposito" - + "ry\022<.google.cloud.securesourcemanager.v1" - + ".DeleteRepositoryRequest\032\035.google.longru" - + "nning.Operation\"l\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\0022*0/v1" - + "/{name=projects/*/locations/*/repositori" - + "es/*}\022\305\001\n\tListHooks\0225.google.cloud.secur" - + "esourcemanager.v1.ListHooksRequest\0326.goo" - + "gle.cloud.securesourcemanager.v1.ListHoo" - + "ksResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent" - + "=projects/*/locations/*/repositories/*}/" - + "hooks\022\262\001\n\007GetHook\0223.google.cloud.secures" - + "ourcemanager.v1.GetHookRequest\032).google." - + "cloud.securesourcemanager.v1.Hook\"G\332A\004na" - + "me\202\323\344\223\002:\0228/v1/{name=projects/*/locations" - + "/*/repositories/*/hooks/*}\022\335\001\n\nCreateHoo" - + "k\0226.google.cloud.securesourcemanager.v1." - + "CreateHookRequest\032\035.google.longrunning.O" - + "peration\"x\312A\031\n\004Hook\022\021OperationMetadata\332A" - + "\023parent,hook,hook_id\202\323\344\223\002@\"8/v1/{parent=" - + "projects/*/locations/*/repositories/*}/h" - + "ooks:\004hook\022\337\001\n\nUpdateHook\0226.google.cloud" - + ".securesourcemanager.v1.UpdateHookReques" - + "t\032\035.google.longrunning.Operation\"z\312A\031\n\004H" - + "ook\022\021OperationMetadata\332A\020hook,update_mas" - + "k\202\323\344\223\002E2=/v1/{hook.name=projects/*/locat" - + "ions/*/repositories/*/hooks/*}:\004hook\022\331\001\n" - + "\nDeleteHook\0226.google.cloud.securesourcem" - + "anager.v1.DeleteHookRequest\032\035.google.lon" - + "grunning.Operation\"t\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002:*8" - + "/v1/{name=projects/*/locations/*/reposit" - + "ories/*/hooks/*}\022\243\001\n\020GetIamPolicyRepo\022\"." - + "google.iam.v1.GetIamPolicyRequest\032\025.goog" - + "le.iam.v1.Policy\"T\332A\010resource\202\323\344\223\002C\022A/v1" - + "/{resource=projects/*/locations/*/reposi" - + "tories/*}:getIamPolicy\022\246\001\n\020SetIamPolicyR" - + "epo\022\".google.iam.v1.SetIamPolicyRequest\032" - + "\025.google.iam.v1.Policy\"W\332A\010resource\202\323\344\223\002" - + "F\"A/v1/{resource=projects/*/locations/*/" - + "repositories/*}:setIamPolicy:\001*\022\314\001\n\026Test" - + "IamPermissionsRepo\022(.google.iam.v1.TestI" - + "amPermissionsRequest\032).google.iam.v1.Tes" - + "tIamPermissionsResponse\"]\332A\010resource\202\323\344\223" - + "\002L\"G/v1/{resource=projects/*/locations/*" - + "/repositories/*}:testIamPermissions:\001*\022\213" - + "\002\n\020CreateBranchRule\022<.google.cloud.secur" - + "esourcemanager.v1.CreateBranchRuleReques" - + "t\032\035.google.longrunning.Operation\"\231\001\312A\037\n\n" - + "BranchRule\022\021OperationMetadata\332A!parent,b" - + "ranch_rule,branch_rule_id\202\323\344\223\002M\">/v1/{pa" - + "rent=projects/*/locations/*/repositories" - + "/*}/branchRules:\013branch_rule\022\335\001\n\017ListBra" - + "nchRules\022;.google.cloud.securesourcemana" - + "ger.v1.ListBranchRulesRequest\032<.google.c" - + "loud.securesourcemanager.v1.ListBranchRu" - + "lesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{paren" - + "t=projects/*/locations/*/repositories/*}" - + "/branchRules\022\312\001\n\rGetBranchRule\0229.google." - + "cloud.securesourcemanager.v1.GetBranchRu" - + "leRequest\032/.google.cloud.securesourceman" - + "ager.v1.BranchRule\"M\332A\004name\202\323\344\223\002@\022>/v1/{" - + "name=projects/*/locations/*/repositories" - + "/*/branchRules/*}\022\215\002\n\020UpdateBranchRule\022<" + + "\"\210\001\312A\037\n\nRepository\022\021OperationMetadata\332A\037" + + "parent,repository,repository_id\202\323\344\223\002>\"0/" + + "v1/{parent=projects/*/locations/*}/repos" + + "itories:\nrepository\022\374\001\n\020UpdateRepository" + + "\022<.google.cloud.securesourcemanager.v1.U" + + "pdateRepositoryRequest\032\035.google.longrunn" + + "ing.Operation\"\212\001\312A\037\n\nRepository\022\021Operati" + + "onMetadata\332A\026repository,update_mask\202\323\344\223\002" + + "I2;/v1/{repository.name=projects/*/locat" + + "ions/*/repositories/*}:\nrepository\022\335\001\n\020D" + + "eleteRepository\022<.google.cloud.securesou" + + "rcemanager.v1.DeleteRepositoryRequest\032\035." + + "google.longrunning.Operation\"l\312A*\n\025googl" + + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\0022*0/v1/{name=projects/*/locations" + + "/*/repositories/*}\022\305\001\n\tListHooks\0225.googl" + + "e.cloud.securesourcemanager.v1.ListHooks" + + "Request\0326.google.cloud.securesourcemanag" + + "er.v1.ListHooksResponse\"I\332A\006parent\202\323\344\223\002:" + + "\0228/v1/{parent=projects/*/locations/*/rep" + + "ositories/*}/hooks\022\262\001\n\007GetHook\0223.google." + + "cloud.securesourcemanager.v1.GetHookRequ" + + "est\032).google.cloud.securesourcemanager.v" + + "1.Hook\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=project" + + "s/*/locations/*/repositories/*/hooks/*}\022" + + "\335\001\n\nCreateHook\0226.google.cloud.securesour" + + "cemanager.v1.CreateHookRequest\032\035.google." + + "longrunning.Operation\"x\312A\031\n\004Hook\022\021Operat" + + "ionMetadata\332A\023parent,hook,hook_id\202\323\344\223\002@\"" + + "8/v1/{parent=projects/*/locations/*/repo" + + "sitories/*}/hooks:\004hook\022\337\001\n\nUpdateHook\0226" + ".google.cloud.securesourcemanager.v1.Upd" - + "ateBranchRuleRequest\032\035.google.longrunnin" - + "g.Operation\"\233\001\312A\037\n\nBranchRule\022\021Operation" - + "Metadata\332A\027branch_rule,update_mask\202\323\344\223\002Y" - + "2J/v1/{branch_rule.name=projects/*/locat" - + "ions/*/repositories/*/branchRules/*}:\013br" - + "anch_rule\022\353\001\n\020DeleteBranchRule\022<.google." - + "cloud.securesourcemanager.v1.DeleteBranc" - + "hRuleRequest\032\035.google.longrunning.Operat" - + "ion\"z\312A*\n\025google.protobuf.Empty\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002@*>/v1/{name=proje" - + "cts/*/locations/*/repositories/*/branchR" - + "ules/*}\022\246\002\n\021CreatePullRequest\022=.google.c" - + "loud.securesourcemanager.v1.CreatePullRe" - + "questRequest\032\035.google.longrunning.Operat" - + "ion\"\262\001\312AD\n/google.cloud.securesourcemana" - + "ger.v1.PullRequest\022\021OperationMetadata\332A\023" - + "parent,pull_request\202\323\344\223\002O\"?/v1/{parent=p" - + "rojects/*/locations/*/repositories/*}/pu" - + "llRequests:\014pull_request\022\316\001\n\016GetPullRequ" - + "est\022:.google.cloud.securesourcemanager.v" - + "1.GetPullRequestRequest\0320.google.cloud.s" - + "ecuresourcemanager.v1.PullRequest\"N\332A\004na" - + "me\202\323\344\223\002A\022?/v1/{name=projects/*/locations" - + "/*/repositories/*/pullRequests/*}\022\341\001\n\020Li" - + "stPullRequests\022<.google.cloud.securesour" - + "cemanager.v1.ListPullRequestsRequest\032=.g" - + "oogle.cloud.securesourcemanager.v1.ListP" - + "ullRequestsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v" - + "1/{parent=projects/*/locations/*/reposit" - + "ories/*}/pullRequests\022\270\002\n\021UpdatePullRequ" - + "est\022=.google.cloud.securesourcemanager.v" - + "1.UpdatePullRequestRequest\032\035.google.long" - + "running.Operation\"\304\001\312AD\n/google.cloud.se" - + "curesourcemanager.v1.PullRequest\022\021Operat" - + "ionMetadata\332A\030pull_request,update_mask\202\323" - + "\344\223\002\\2L/v1/{pull_request.name=projects/*/" - + "locations/*/repositories/*/pullRequests/" - + "*}:\014pull_request\022\220\002\n\020MergePullRequest\022<." - + "google.cloud.securesourcemanager.v1.Merg" + + "ateHookRequest\032\035.google.longrunning.Oper" + + "ation\"z\312A\031\n\004Hook\022\021OperationMetadata\332A\020ho" + + "ok,update_mask\202\323\344\223\002E2=/v1/{hook.name=pro" + + "jects/*/locations/*/repositories/*/hooks" + + "/*}:\004hook\022\331\001\n\nDeleteHook\0226.google.cloud." + + "securesourcemanager.v1.DeleteHookRequest" + + "\032\035.google.longrunning.Operation\"t\312A*\n\025go" + + "ogle.protobuf.Empty\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\002:*8/v1/{name=projects/*/locati" + + "ons/*/repositories/*/hooks/*}\022\243\001\n\020GetIam" + + "PolicyRepo\022\".google.iam.v1.GetIamPolicyR" + + "equest\032\025.google.iam.v1.Policy\"T\332A\010resour" + + "ce\202\323\344\223\002C\022A/v1/{resource=projects/*/locat" + + "ions/*/repositories/*}:getIamPolicy\022\246\001\n\020" + + "SetIamPolicyRepo\022\".google.iam.v1.SetIamP" + + "olicyRequest\032\025.google.iam.v1.Policy\"W\332A\010" + + "resource\202\323\344\223\002F\"A/v1/{resource=projects/*" + + "/locations/*/repositories/*}:setIamPolic" + + "y:\001*\022\314\001\n\026TestIamPermissionsRepo\022(.google" + + ".iam.v1.TestIamPermissionsRequest\032).goog" + + "le.iam.v1.TestIamPermissionsResponse\"]\332A" + + "\010resource\202\323\344\223\002L\"G/v1/{resource=projects/" + + "*/locations/*/repositories/*}:testIamPer" + + "missions:\001*\022\213\002\n\020CreateBranchRule\022<.googl" + + "e.cloud.securesourcemanager.v1.CreateBra" + + "nchRuleRequest\032\035.google.longrunning.Oper" + + "ation\"\231\001\312A\037\n\nBranchRule\022\021OperationMetada" + + "ta\332A!parent,branch_rule,branch_rule_id\202\323" + + "\344\223\002M\">/v1/{parent=projects/*/locations/*" + + "/repositories/*}/branchRules:\013branch_rul" + + "e\022\335\001\n\017ListBranchRules\022;.google.cloud.sec" + + "uresourcemanager.v1.ListBranchRulesReque" + + "st\032<.google.cloud.securesourcemanager.v1" + + ".ListBranchRulesResponse\"O\332A\006parent\202\323\344\223\002" + + "@\022>/v1/{parent=projects/*/locations/*/re" + + "positories/*}/branchRules\022\312\001\n\rGetBranchR" + + "ule\0229.google.cloud.securesourcemanager.v" + + "1.GetBranchRuleRequest\032/.google.cloud.se" + + "curesourcemanager.v1.BranchRule\"M\332A\004name" + + "\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*" + + "/repositories/*/branchRules/*}\022\215\002\n\020Updat" + + "eBranchRule\022<.google.cloud.securesourcem" + + "anager.v1.UpdateBranchRuleRequest\032\035.goog" + + "le.longrunning.Operation\"\233\001\312A\037\n\nBranchRu" + + "le\022\021OperationMetadata\332A\027branch_rule,upda" + + "te_mask\202\323\344\223\002Y2J/v1/{branch_rule.name=pro" + + "jects/*/locations/*/repositories/*/branc" + + "hRules/*}:\013branch_rule\022\353\001\n\020DeleteBranchR" + + "ule\022<.google.cloud.securesourcemanager.v" + + "1.DeleteBranchRuleRequest\032\035.google.longr" + + "unning.Operation\"z\312A*\n\025google.protobuf.E" + + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\002@*>/v" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/branchRules/*}\022\246\002\n\021CreatePullReque" + + "st\022=.google.cloud.securesourcemanager.v1" + + ".CreatePullRequestRequest\032\035.google.longr" + + "unning.Operation\"\262\001\312AD\n/google.cloud.sec" + + "uresourcemanager.v1.PullRequest\022\021Operati" + + "onMetadata\332A\023parent,pull_request\202\323\344\223\002O\"?" + + "/v1/{parent=projects/*/locations/*/repos" + + "itories/*}/pullRequests:\014pull_request\022\316\001" + + "\n\016GetPullRequest\022:.google.cloud.secureso" + + "urcemanager.v1.GetPullRequestRequest\0320.g" + + "oogle.cloud.securesourcemanager.v1.PullR" + + "equest\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=project" + + "s/*/locations/*/repositories/*/pullReque" + + "sts/*}\022\341\001\n\020ListPullRequests\022<.google.clo" + + "ud.securesourcemanager.v1.ListPullReques" + + "tsRequest\032=.google.cloud.securesourceman" + + "ager.v1.ListPullRequestsResponse\"P\332A\006par" + + "ent\202\323\344\223\002A\022?/v1/{parent=projects/*/locati" + + "ons/*/repositories/*}/pullRequests\022\270\002\n\021U" + + "pdatePullRequest\022=.google.cloud.secureso" + + "urcemanager.v1.UpdatePullRequestRequest\032" + + "\035.google.longrunning.Operation\"\304\001\312AD\n/go" + + "ogle.cloud.securesourcemanager.v1.PullRe" + + "quest\022\021OperationMetadata\332A\030pull_request," + + "update_mask\202\323\344\223\002\\2L/v1/{pull_request.nam" + + "e=projects/*/locations/*/repositories/*/" + + "pullRequests/*}:\014pull_request\022\220\002\n\020MergeP" + + "ullRequest\022<.google.cloud.securesourcema" + + "nager.v1.MergePullRequestRequest\032\035.googl" + + "e.longrunning.Operation\"\236\001\312AD\n/google.cl" + + "oud.securesourcemanager.v1.PullRequest\022\021" + + "OperationMetadata\332A\004name\202\323\344\223\002J\"E/v1/{nam" + + "e=projects/*/locations/*/repositories/*/" + + "pullRequests/*}:merge:\001*\022\215\002\n\017OpenPullReq" + + "uest\022;.google.cloud.securesourcemanager." + + "v1.OpenPullRequestRequest\032\035.google.longr" + + "unning.Operation\"\235\001\312AD\n/google.cloud.sec" + + "uresourcemanager.v1.PullRequest\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002I\"D/v1/{name=proje" + + "cts/*/locations/*/repositories/*/pullReq" + + "uests/*}:open:\001*\022\220\002\n\020ClosePullRequest\022<." + + "google.cloud.securesourcemanager.v1.Clos" + "ePullRequestRequest\032\035.google.longrunning" + ".Operation\"\236\001\312AD\n/google.cloud.securesou" + "rcemanager.v1.PullRequest\022\021OperationMeta" + "data\332A\004name\202\323\344\223\002J\"E/v1/{name=projects/*/" + "locations/*/repositories/*/pullRequests/" - + "*}:merge:\001*\022\215\002\n\017OpenPullRequest\022;.google" - + ".cloud.securesourcemanager.v1.OpenPullRe" - + "questRequest\032\035.google.longrunning.Operat" - + "ion\"\235\001\312AD\n/google.cloud.securesourcemana" - + "ger.v1.PullRequest\022\021OperationMetadata\332A\004" - + "name\202\323\344\223\002I\"D/v1/{name=projects/*/locatio" - + "ns/*/repositories/*/pullRequests/*}:open" - + ":\001*\022\220\002\n\020ClosePullRequest\022<.google.cloud." - + "securesourcemanager.v1.ClosePullRequestR" - + "equest\032\035.google.longrunning.Operation\"\236\001" - + "\312AD\n/google.cloud.securesourcemanager.v1" - + ".PullRequest\022\021OperationMetadata\332A\004name\202\323" - + "\344\223\002J\"E/v1/{name=projects/*/locations/*/r" - + "epositories/*/pullRequests/*}:close:\001*\022\205" - + "\002\n\030ListPullRequestFileDiffs\022D.google.clo" - + "ud.securesourcemanager.v1.ListPullReques" - + "tFileDiffsRequest\032E.google.cloud.secures" - + "ourcemanager.v1.ListPullRequestFileDiffs" - + "Response\"\\\332A\004name\202\323\344\223\002O\022M/v1/{name=proje" - + "cts/*/locations/*/repositories/*/pullReq" - + "uests/*}:listFileDiffs\022\304\001\n\tFetchTree\0225.g" - + "oogle.cloud.securesourcemanager.v1.Fetch" - + "TreeRequest\0326.google.cloud.securesourcem" - + "anager.v1.FetchTreeResponse\"H\202\323\344\223\002B\022@/v1" - + "/{repository=projects/*/locations/*/repo" - + "sitories/*}:fetchTree\022\304\001\n\tFetchBlob\0225.go" - + "ogle.cloud.securesourcemanager.v1.FetchB" - + "lobRequest\0326.google.cloud.securesourcema" - + "nager.v1.FetchBlobResponse\"H\202\323\344\223\002B\022@/v1/" - + "{repository=projects/*/locations/*/repos" - + "itories/*}:fetchBlob\022\200\002\n\013CreateIssue\0227.g" - + "oogle.cloud.securesourcemanager.v1.Creat" + + "*}:close:\001*\022\205\002\n\030ListPullRequestFileDiffs" + + "\022D.google.cloud.securesourcemanager.v1.L" + + "istPullRequestFileDiffsRequest\032E.google." + + "cloud.securesourcemanager.v1.ListPullReq" + + "uestFileDiffsResponse\"\\\332A\004name\202\323\344\223\002O\022M/v" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/pullRequests/*}:listFileDiffs\022\304\001\n\t" + + "FetchTree\0225.google.cloud.securesourceman" + + "ager.v1.FetchTreeRequest\0326.google.cloud." + + "securesourcemanager.v1.FetchTreeResponse" + + "\"H\202\323\344\223\002B\022@/v1/{repository=projects/*/loc" + + "ations/*/repositories/*}:fetchTree\022\304\001\n\tF" + + "etchBlob\0225.google.cloud.securesourcemana" + + "ger.v1.FetchBlobRequest\0326.google.cloud.s" + + "ecuresourcemanager.v1.FetchBlobResponse\"" + + "H\202\323\344\223\002B\022@/v1/{repository=projects/*/loca" + + "tions/*/repositories/*}:fetchBlob\022\200\002\n\013Cr" + + "eateIssue\0227.google.cloud.securesourceman" + + "ager.v1.CreateIssueRequest\032\035.google.long" + + "running.Operation\"\230\001\312A>\n)google.cloud.se" + + "curesourcemanager.v1.Issue\022\021OperationMet" + + "adata\332A\014parent,issue\202\323\344\223\002B\"9/v1/{parent=" + + "projects/*/locations/*/repositories/*}/i" + + "ssues:\005issue\022\266\001\n\010GetIssue\0224.google.cloud" + + ".securesourcemanager.v1.GetIssueRequest\032" + + "*.google.cloud.securesourcemanager.v1.Is" + + "sue\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects/*" + + "/locations/*/repositories/*/issues/*}\022\311\001" + + "\n\nListIssues\0226.google.cloud.securesource" + + "manager.v1.ListIssuesRequest\0327.google.cl" + + "oud.securesourcemanager.v1.ListIssuesRes" + + "ponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=proj" + + "ects/*/locations/*/repositories/*}/issue" + + "s\022\213\002\n\013UpdateIssue\0227.google.cloud.secures" + + "ourcemanager.v1.UpdateIssueRequest\032\035.goo" + + "gle.longrunning.Operation\"\243\001\312A>\n)google." + + "cloud.securesourcemanager.v1.Issue\022\021Oper" + + "ationMetadata\332A\021issue,update_mask\202\323\344\223\002H2" + + "?/v1/{issue.name=projects/*/locations/*/" + + "repositories/*/issues/*}:\005issue\022\334\001\n\013Dele" + + "teIssue\0227.google.cloud.securesourcemanag" + + "er.v1.DeleteIssueRequest\032\035.google.longru" + + "nning.Operation\"u\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002;*9/v1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/issues/*}\022\365\001\n\tOpenIssue\0225.google.cl" + + "oud.securesourcemanager.v1.OpenIssueRequ" + + "est\032\035.google.longrunning.Operation\"\221\001\312A>" + + "\n)google.cloud.securesourcemanager.v1.Is" + + "sue\022\021OperationMetadata\332A\004name\202\323\344\223\002C\">/v1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/issues/*}:open:\001*\022\370\001\n\nCloseIssue\0226." + + "google.cloud.securesourcemanager.v1.Clos" + "eIssueRequest\032\035.google.longrunning.Opera" - + "tion\"\230\001\312A>\n)google.cloud.securesourceman" - + "ager.v1.Issue\022\021OperationMetadata\332A\014paren" - + "t,issue\202\323\344\223\002B\"9/v1/{parent=projects/*/lo" - + "cations/*/repositories/*}/issues:\005issue\022" - + "\266\001\n\010GetIssue\0224.google.cloud.securesource" - + "manager.v1.GetIssueRequest\032*.google.clou" - + "d.securesourcemanager.v1.Issue\"H\332A\004name\202" - + "\323\344\223\002;\0229/v1/{name=projects/*/locations/*/" - + "repositories/*/issues/*}\022\311\001\n\nListIssues\022" - + "6.google.cloud.securesourcemanager.v1.Li" - + "stIssuesRequest\0327.google.cloud.securesou" - + "rcemanager.v1.ListIssuesResponse\"J\332A\006par" - + "ent\202\323\344\223\002;\0229/v1/{parent=projects/*/locati" - + "ons/*/repositories/*}/issues\022\213\002\n\013UpdateI" - + "ssue\0227.google.cloud.securesourcemanager." - + "v1.UpdateIssueRequest\032\035.google.longrunni" - + "ng.Operation\"\243\001\312A>\n)google.cloud.secures" - + "ourcemanager.v1.Issue\022\021OperationMetadata" - + "\332A\021issue,update_mask\202\323\344\223\002H2?/v1/{issue.n" - + "ame=projects/*/locations/*/repositories/" - + "*/issues/*}:\005issue\022\334\001\n\013DeleteIssue\0227.goo" - + "gle.cloud.securesourcemanager.v1.DeleteI" - + "ssueRequest\032\035.google.longrunning.Operati" - + "on\"u\312A*\n\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=projec" - + "ts/*/locations/*/repositories/*/issues/*" - + "}\022\365\001\n\tOpenIssue\0225.google.cloud.securesou" - + "rcemanager.v1.OpenIssueRequest\032\035.google." - + "longrunning.Operation\"\221\001\312A>\n)google.clou" - + "d.securesourcemanager.v1.Issue\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\002C\">/v1/{name=projec" - + "ts/*/locations/*/repositories/*/issues/*" - + "}:open:\001*\022\370\001\n\nCloseIssue\0226.google.cloud." - + "securesourcemanager.v1.CloseIssueRequest" - + "\032\035.google.longrunning.Operation\"\222\001\312A>\n)g" - + "oogle.cloud.securesourcemanager.v1.Issue" - + "\022\021OperationMetadata\332A\004name\202\323\344\223\002D\"?/v1/{n" - + "ame=projects/*/locations/*/repositories/" - + "*/issues/*}:close:\001*\022\371\001\n\025GetPullRequestC" - + "omment\022A.google.cloud.securesourcemanage" - + "r.v1.GetPullRequestCommentRequest\0327.goog" - + "le.cloud.securesourcemanager.v1.PullRequ" - + "estComment\"d\332A\004name\202\323\344\223\002W\022U/v1/{name=pro" - + "jects/*/locations/*/repositories/*/pullR" - + "equests/*/pullRequestComments/*}\022\214\002\n\027Lis" - + "tPullRequestComments\022C.google.cloud.secu" - + "resourcemanager.v1.ListPullRequestCommen" - + "tsRequest\032D.google.cloud.securesourceman" - + "ager.v1.ListPullRequestCommentsResponse\"" - + "f\332A\006parent\202\323\344\223\002W\022U/v1/{parent=projects/*" - + "/locations/*/repositories/*/pullRequests" - + "/*}/pullRequestComments\022\341\002\n\030CreatePullRe" - + "questComment\022D.google.cloud.securesource" - + "manager.v1.CreatePullRequestCommentReque" - + "st\032\035.google.longrunning.Operation\"\337\001\312AK\n" - + "6google.cloud.securesourcemanager.v1.Pul" - + "lRequestComment\022\021OperationMetadata\332A\033par" - + "ent,pull_request_comment\202\323\344\223\002m\"U/v1/{par" - + "ent=projects/*/locations/*/repositories/" - + "*/pullRequests/*}/pullRequestComments:\024p" - + "ull_request_comment\022\374\002\n\030UpdatePullReques" - + "tComment\022D.google.cloud.securesourcemana" - + "ger.v1.UpdatePullRequestCommentRequest\032\035" - + ".google.longrunning.Operation\"\372\001\312AK\n6goo" - + "gle.cloud.securesourcemanager.v1.PullReq" - + "uestComment\022\021OperationMetadata\332A pull_re" - + "quest_comment,update_mask\202\323\344\223\002\202\0012j/v1/{p" - + "ull_request_comment.name=projects/*/loca" - + "tions/*/repositories/*/pullRequests/*/pu" - + "llRequestComments/*}:\024pull_request_comme" - + "nt\022\223\002\n\030DeletePullRequestComment\022D.google" - + ".cloud.securesourcemanager.v1.DeletePull" - + "RequestCommentRequest\032\035.google.longrunni" - + "ng.Operation\"\221\001\312A*\n\025google.protobuf.Empt" - + "y\022\021OperationMetadata\332A\004name\202\323\344\223\002W*U/v1/{" - + "name=projects/*/locations/*/repositories" - + "/*/pullRequests/*/pullRequestComments/*}" - + "\022\312\002\n\036BatchCreatePullRequestComments\022J.go" - + "ogle.cloud.securesourcemanager.v1.BatchC" - + "reatePullRequestCommentsRequest\032\035.google" - + ".longrunning.Operation\"\274\001\312A;\n&BatchCreat" - + "ePullRequestCommentsResponse\022\021OperationM" - + "etadata\332A\017parent,requests\202\323\344\223\002f\"a/v1/{pa" - + "rent=projects/*/locations/*/repositories" - + "/*/pullRequests/*}/pullRequestComments:b" - + "atchCreate:\001*\022\267\002\n\032ResolvePullRequestComm" - + "ents\022F.google.cloud.securesourcemanager." - + "v1.ResolvePullRequestCommentsRequest\032\035.g" - + "oogle.longrunning.Operation\"\261\001\312A7\n\"Resol" - + "vePullRequestCommentsResponse\022\021Operation" - + "Metadata\332A\014parent,names\202\323\344\223\002b\"]/v1/{pare" - + "nt=projects/*/locations/*/repositories/*" - + "/pullRequests/*}/pullRequestComments:res" - + "olve:\001*\022\277\002\n\034UnresolvePullRequestComments" - + "\022H.google.cloud.securesourcemanager.v1.U" - + "nresolvePullRequestCommentsRequest\032\035.goo" - + "gle.longrunning.Operation\"\265\001\312A9\n$Unresol" - + "vePullRequestCommentsResponse\022\021Operation" - + "Metadata\332A\014parent,names\202\323\344\223\002d\"_/v1/{pare" - + "nt=projects/*/locations/*/repositories/*" - + "/pullRequests/*}/pullRequestComments:unr" - + "esolve:\001*\022\265\002\n\022CreateIssueComment\022>.googl" - + "e.cloud.securesourcemanager.v1.CreateIss" - + "ueCommentRequest\032\035.google.longrunning.Op" - + "eration\"\277\001\312AE\n0google.cloud.securesource" - + "manager.v1.IssueComment\022\021OperationMetada" - + "ta\332A\024parent,issue_comment\202\323\344\223\002Z\"I/v1/{pa" - + "rent=projects/*/locations/*/repositories" - + "/*/issues/*}/issueComments:\rissue_commen" - + "t\022\333\001\n\017GetIssueComment\022;.google.cloud.sec" - + "uresourcemanager.v1.GetIssueCommentReque" - + "st\0321.google.cloud.securesourcemanager.v1" - + ".IssueComment\"X\332A\004name\202\323\344\223\002K\022I/v1/{name=" - + "projects/*/locations/*/repositories/*/is" - + "sues/*/issueComments/*}\022\356\001\n\021ListIssueCom" - + "ments\022=.google.cloud.securesourcemanager" - + ".v1.ListIssueCommentsRequest\032>.google.cl" - + "oud.securesourcemanager.v1.ListIssueComm" - + "entsResponse\"Z\332A\006parent\202\323\344\223\002K\022I/v1/{pare" + + "tion\"\222\001\312A>\n)google.cloud.securesourceman" + + "ager.v1.Issue\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\002D\"?/v1/{name=projects/*/locations/*/" + + "repositories/*/issues/*}:close:\001*\022\371\001\n\025Ge" + + "tPullRequestComment\022A.google.cloud.secur" + + "esourcemanager.v1.GetPullRequestCommentR" + + "equest\0327.google.cloud.securesourcemanage" + + "r.v1.PullRequestComment\"d\332A\004name\202\323\344\223\002W\022U" + + "/v1/{name=projects/*/locations/*/reposit" + + "ories/*/pullRequests/*/pullRequestCommen" + + "ts/*}\022\214\002\n\027ListPullRequestComments\022C.goog" + + "le.cloud.securesourcemanager.v1.ListPull" + + "RequestCommentsRequest\032D.google.cloud.se" + + "curesourcemanager.v1.ListPullRequestComm" + + "entsResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1/{pare" + "nt=projects/*/locations/*/repositories/*" - + "/issues/*}/issueComments\022\310\002\n\022UpdateIssue" - + "Comment\022>.google.cloud.securesourcemanag" - + "er.v1.UpdateIssueCommentRequest\032\035.google" - + ".longrunning.Operation\"\322\001\312AE\n0google.clo" - + "ud.securesourcemanager.v1.IssueComment\022\021" - + "OperationMetadata\332A\031issue_comment,update" - + "_mask\202\323\344\223\002h2W/v1/{issue_comment.name=pro" - + "jects/*/locations/*/repositories/*/issue" - + "s/*/issueComments/*}:\rissue_comment\022\373\001\n\022" - + "DeleteIssueComment\022>.google.cloud.secure" - + "sourcemanager.v1.DeleteIssueCommentReque" - + "st\032\035.google.longrunning.Operation\"\205\001\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadat" - + "a\332A\004name\202\323\344\223\002K*I/v1/{name=projects/*/loc" - + "ations/*/repositories/*/issues/*/issueCo" - + "mments/*}\032V\312A\"securesourcemanager.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformB\351\004\n\'com.google.cloud.s" - + "ecuresourcemanager.v1B\030SecureSourceManag" - + "erProtoP\001ZYcloud.google.com/go/securesou" - + "rcemanager/apiv1/securesourcemanagerpb;s" - + "ecuresourcemanagerpb\252\002#Google.Cloud.Secu" - + "reSourceManager.V1\312\002#Google\\Cloud\\Secure" - + "SourceManager\\V1\352\002&Google::Cloud::Secure" - + "SourceManager::V1\352Ax\n!cloudkms.googleapi" - + "s.com/CryptoKey\022Sprojects/{project}/loca" - + "tions/{location}/keyRings/{key_ring}/cry" - + "ptoKeys/{crypto_key}\352A\\\n\037privateca.googl" - + "eapis.com/CaPool\0229projects/{project}/loc" - + "ations/{location}/caPools/{ca_pool}\352Aw\n(" - + "compute.googleapis.com/ServiceAttachment" - + "\022Kprojects/{project}/regions/{region}/se" - + "rviceAttachments/{service_attachment}b\006p" - + "roto3" + + "/pullRequests/*}/pullRequestComments\022\341\002\n" + + "\030CreatePullRequestComment\022D.google.cloud" + + ".securesourcemanager.v1.CreatePullReques" + + "tCommentRequest\032\035.google.longrunning.Ope" + + "ration\"\337\001\312AK\n6google.cloud.securesourcem" + + "anager.v1.PullRequestComment\022\021OperationM" + + "etadata\332A\033parent,pull_request_comment\202\323\344" + + "\223\002m\"U/v1/{parent=projects/*/locations/*/" + + "repositories/*/pullRequests/*}/pullReque" + + "stComments:\024pull_request_comment\022\374\002\n\030Upd" + + "atePullRequestComment\022D.google.cloud.sec" + + "uresourcemanager.v1.UpdatePullRequestCom" + + "mentRequest\032\035.google.longrunning.Operati" + + "on\"\372\001\312AK\n6google.cloud.securesourcemanag" + + "er.v1.PullRequestComment\022\021OperationMetad" + + "ata\332A pull_request_comment,update_mask\202\323" + + "\344\223\002\202\0012j/v1/{pull_request_comment.name=pr" + + "ojects/*/locations/*/repositories/*/pull" + + "Requests/*/pullRequestComments/*}:\024pull_" + + "request_comment\022\223\002\n\030DeletePullRequestCom" + + "ment\022D.google.cloud.securesourcemanager." + + "v1.DeletePullRequestCommentRequest\032\035.goo" + + "gle.longrunning.Operation\"\221\001\312A*\n\025google." + + "protobuf.Empty\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\002W*U/v1/{name=projects/*/locations/*" + + "/repositories/*/pullRequests/*/pullReque" + + "stComments/*}\022\312\002\n\036BatchCreatePullRequest" + + "Comments\022J.google.cloud.securesourcemana" + + "ger.v1.BatchCreatePullRequestCommentsReq" + + "uest\032\035.google.longrunning.Operation\"\274\001\312A" + + ";\n&BatchCreatePullRequestCommentsRespons" + + "e\022\021OperationMetadata\332A\017parent,requests\202\323" + + "\344\223\002f\"a/v1/{parent=projects/*/locations/*" + + "/repositories/*/pullRequests/*}/pullRequ" + + "estComments:batchCreate:\001*\022\267\002\n\032ResolvePu" + + "llRequestComments\022F.google.cloud.secures" + + "ourcemanager.v1.ResolvePullRequestCommen" + + "tsRequest\032\035.google.longrunning.Operation" + + "\"\261\001\312A7\n\"ResolvePullRequestCommentsRespon" + + "se\022\021OperationMetadata\332A\014parent,names\202\323\344\223" + + "\002b\"]/v1/{parent=projects/*/locations/*/r" + + "epositories/*/pullRequests/*}/pullReques" + + "tComments:resolve:\001*\022\277\002\n\034UnresolvePullRe" + + "questComments\022H.google.cloud.securesourc" + + "emanager.v1.UnresolvePullRequestComments" + + "Request\032\035.google.longrunning.Operation\"\265" + + "\001\312A9\n$UnresolvePullRequestCommentsRespon" + + "se\022\021OperationMetadata\332A\014parent,names\202\323\344\223" + + "\002d\"_/v1/{parent=projects/*/locations/*/r" + + "epositories/*/pullRequests/*}/pullReques" + + "tComments:unresolve:\001*\022\265\002\n\022CreateIssueCo" + + "mment\022>.google.cloud.securesourcemanager" + + ".v1.CreateIssueCommentRequest\032\035.google.l" + + "ongrunning.Operation\"\277\001\312AE\n0google.cloud" + + ".securesourcemanager.v1.IssueComment\022\021Op" + + "erationMetadata\332A\024parent,issue_comment\202\323" + + "\344\223\002Z\"I/v1/{parent=projects/*/locations/*" + + "/repositories/*/issues/*}/issueComments:" + + "\rissue_comment\022\333\001\n\017GetIssueComment\022;.goo" + + "gle.cloud.securesourcemanager.v1.GetIssu" + + "eCommentRequest\0321.google.cloud.securesou" + + "rcemanager.v1.IssueComment\"X\332A\004name\202\323\344\223\002" + + "K\022I/v1/{name=projects/*/locations/*/repo" + + "sitories/*/issues/*/issueComments/*}\022\356\001\n" + + "\021ListIssueComments\022=.google.cloud.secure" + + "sourcemanager.v1.ListIssueCommentsReques" + + "t\032>.google.cloud.securesourcemanager.v1." + + "ListIssueCommentsResponse\"Z\332A\006parent\202\323\344\223" + + "\002K\022I/v1/{parent=projects/*/locations/*/r" + + "epositories/*/issues/*}/issueComments\022\310\002" + + "\n\022UpdateIssueComment\022>.google.cloud.secu" + + "resourcemanager.v1.UpdateIssueCommentReq" + + "uest\032\035.google.longrunning.Operation\"\322\001\312A" + + "E\n0google.cloud.securesourcemanager.v1.I" + + "ssueComment\022\021OperationMetadata\332A\031issue_c" + + "omment,update_mask\202\323\344\223\002h2W/v1/{issue_com" + + "ment.name=projects/*/locations/*/reposit" + + "ories/*/issues/*/issueComments/*}:\rissue" + + "_comment\022\373\001\n\022DeleteIssueComment\022>.google" + + ".cloud.securesourcemanager.v1.DeleteIssu" + + "eCommentRequest\032\035.google.longrunning.Ope" + + "ration\"\205\001\312A*\n\025google.protobuf.Empty\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\002K*I/v1/{name=p" + + "rojects/*/locations/*/repositories/*/iss" + + "ues/*/issueComments/*}\032V\312A\"securesourcem" + + "anager.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB\351\004\n\'com.g" + + "oogle.cloud.securesourcemanager.v1B\030Secu" + + "reSourceManagerProtoP\001ZYcloud.google.com" + + "/go/securesourcemanager/apiv1/securesour" + + "cemanagerpb;securesourcemanagerpb\252\002#Goog" + + "le.Cloud.SecureSourceManager.V1\312\002#Google" + + "\\Cloud\\SecureSourceManager\\V1\352\002&Google::" + + "Cloud::SecureSourceManager::V1\352Ax\n!cloud" + + "kms.googleapis.com/CryptoKey\022Sprojects/{" + + "project}/locations/{location}/keyRings/{" + + "key_ring}/cryptoKeys/{crypto_key}\352A\\\n\037pr" + + "ivateca.googleapis.com/CaPool\0229projects/" + + "{project}/locations/{location}/caPools/{" + + "ca_pool}\352Aw\n(compute.googleapis.com/Serv" + + "iceAttachment\022Kprojects/{project}/region" + + "s/{region}/serviceAttachments/{service_a" + + "ttachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1272,6 +1283,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.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.iam.v1.IamPolicyProto.getDescriptor(), com.google.iam.v1.PolicyProto.getDescriptor(), @@ -1316,6 +1328,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HttpServiceAttachment", "SshServiceAttachment", "PscAllowedProjects", + "CustomHostConfig", + }); + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_descriptor = + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_securesourcemanager_v1_Instance_PrivateConfig_CustomHostConfig_descriptor, + new java.lang.String[] { + "Html", "Api", "GitSsh", "GitHttp", }); internal_static_google_cloud_securesourcemanager_v1_Instance_WorkforceIdentityFederationConfig_descriptor = internal_static_google_cloud_securesourcemanager_v1_Instance_descriptor.getNestedType(2); @@ -1406,6 +1428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequirePullRequest", "MinimumReviewsCount", "MinimumApprovalsCount", + "RequireCodeOwnerApproval", "RequireCommentsResolved", "AllowStaleReviews", "RequireLinearHistory", @@ -1557,7 +1580,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_securesourcemanager_v1_DeleteInstanceRequest_descriptor, new java.lang.String[] { - "Name", "RequestId", + "Name", "RequestId", "Force", }); internal_static_google_cloud_securesourcemanager_v1_OperationMetadata_descriptor = getDescriptor().getMessageType(14); @@ -2049,6 +2072,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.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.iam.v1.IamPolicyProto.getDescriptor(); com.google.iam.v1.PolicyProto.getDescriptor(); @@ -2060,6 +2084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequest.java index 9d31a9922905..35811e5d68ad 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequest.java @@ -137,14 +137,14 @@ public boolean getValidateOnly() { * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * branchRule resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -158,14 +158,14 @@ public boolean hasUpdateMask() { * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * branchRule resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -179,14 +179,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * branchRule resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -815,14 +815,14 @@ public Builder clearValidateOnly() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -835,14 +835,14 @@ public boolean hasUpdateMask() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -861,14 +861,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -889,14 +889,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -914,14 +914,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -947,14 +947,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -972,14 +972,14 @@ public Builder clearUpdateMask() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -992,14 +992,14 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1016,14 +1016,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * branchRule resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequestOrBuilder.java index d98a3d7e4db4..c4753ef04df3 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateBranchRuleRequestOrBuilder.java @@ -69,14 +69,14 @@ public interface UpdateBranchRuleRequestOrBuilder * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * branchRule resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -87,14 +87,14 @@ public interface UpdateBranchRuleRequestOrBuilder * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * branchRule resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -105,14 +105,14 @@ public interface UpdateBranchRuleRequestOrBuilder * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * branchRule resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateHookRequest.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateHookRequest.java index dfce6fce3987..e7dd2a34a4c6 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateHookRequest.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateHookRequest.java @@ -76,14 +76,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * hook resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -97,14 +97,14 @@ public boolean hasUpdateMask() { * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * hook resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -118,14 +118,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * hook resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -567,14 +567,14 @@ public Builder mergeFrom( * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -587,14 +587,14 @@ public boolean hasUpdateMask() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -613,14 +613,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -641,14 +641,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -666,14 +666,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -699,14 +699,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -724,14 +724,14 @@ public Builder clearUpdateMask() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -744,14 +744,14 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -768,14 +768,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
                                                                                              -     * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +     * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                    * hook resource by the update.
                                                                                                    * The fields specified in the update_mask are relative to the resource, not
                                                                                                    * the full request. A field will be overwritten if it is in the mask.
                                                                                                    * The special value "*" means full replacement.
                                                                                                    * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateHookRequestOrBuilder.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateHookRequestOrBuilder.java index a6bf123fe13d..3d24ff4c5ffa 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateHookRequestOrBuilder.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/UpdateHookRequestOrBuilder.java @@ -30,14 +30,14 @@ public interface UpdateHookRequestOrBuilder * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * hook resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -48,14 +48,14 @@ public interface UpdateHookRequestOrBuilder * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * hook resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -66,14 +66,14 @@ public interface UpdateHookRequestOrBuilder * * *
                                                                                              -   * Required. Field mask is used to specify the fields to be overwritten in the
                                                                                              +   * Optional. Field mask is used to specify the fields to be overwritten in the
                                                                                                  * hook resource by the update.
                                                                                                  * The fields specified in the update_mask are relative to the resource, not
                                                                                                  * the full request. A field will be overwritten if it is in the mask.
                                                                                                  * The special value "*" means full replacement.
                                                                                                  * 
                                                                                              * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto index b605df210440..1189e930e778 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/proto/google/cloud/securesourcemanager/v1/secure_source_manager.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ package google.cloud.securesourcemanager.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; @@ -560,7 +561,7 @@ service SecureSourceManager { // Batch creates pull request comments. This function is used to create // multiple PullRequestComments for code review. There needs to be exactly one // PullRequestComment of type Review, and at most 100 PullRequestComments of - // type Code per request. The Postition of the code comments must be unique + // type Code per request. The Position of the code comments must be unique // within the request. rpc BatchCreatePullRequestComments(BatchCreatePullRequestCommentsRequest) returns (google.longrunning.Operation) { @@ -727,6 +728,25 @@ message Instance { // PrivateConfig includes settings for private instance. message PrivateConfig { + // Custom host config for the instance. + message CustomHostConfig { + // Required. The custom UI hostname for the instance, e.g., + // "git.source.internal.mycompany.com" + string html = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The custom API hostname for the instance, e.g., + // "api.source.internal.mycompany.com" + string api = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The custom git ssh hostname for the instance, e.g., + // "ssh.source.internal.mycompany.com" + string git_ssh = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The custom git http hostname for the instance, e.g., + // "git.source.internal.mycompany.com" + string git_http = 4 [(google.api.field_behavior) = REQUIRED]; + } + // Required. Immutable. Indicate if it's private instance. bool is_private = 1 [ (google.api.field_behavior) = IMMUTABLE, @@ -766,6 +786,10 @@ message Instance { // included in this list. repeated string psc_allowed_projects = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom host config for the instance. + CustomHostConfig custom_host_config = 7 + [(google.api.field_behavior) = OPTIONAL]; } // WorkforceIdentityFederationConfig allows this instance to support users @@ -778,7 +802,7 @@ message Instance { ]; } - // Optional. A unique identifier for an instance. The name should be of the + // Identifier. A unique identifier for an instance. The name should be of the // format: // `projects/{project_number}/locations/{location_id}/instances/{instance_id}` // @@ -790,7 +814,7 @@ message Instance { // // `instance_id`: User provided name for the instance, must be unique for a // project_number and location_id combination. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Create timestamp. google.protobuf.Timestamp create_time = 2 @@ -801,6 +825,10 @@ message Instance { [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Labels as key value pairs. + // Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. + // For more information, see [Requirements for + // labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding). map labels = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Private settings for private instance. @@ -990,10 +1018,10 @@ message Repository { string readme = 4; } - // Optional. A unique identifier for a repository. The name should be of the + // Identifier. A unique identifier for a repository. The name should be of the // format: // `projects/{project}/locations/{location_id}/repositories/{repository_id}` - string name = 1 [(google.api.field_behavior) = OPTIONAL]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. Description of the repository, which cannot exceed 500 // characters. @@ -1013,7 +1041,10 @@ message Repository { ]; // Output only. Unique identifier of the repository. - string uid = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + string uid = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. Create timestamp. google.protobuf.Timestamp create_time = 5 @@ -1086,7 +1117,10 @@ message Hook { [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Unique identifier of the hook. - string uid = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + string uid = 7 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Optional. The trigger option for push events. PushOption push_option = 9 [(google.api.field_behavior) = OPTIONAL]; @@ -1109,13 +1143,16 @@ message BranchRule { string context = 1 [(google.api.field_behavior) = REQUIRED]; } - // Optional. A unique identifier for a BranchRule. The name should be of the + // Identifier. A unique identifier for a BranchRule. The name should be of the // format: // `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}` - string name = 1 [(google.api.field_behavior) = OPTIONAL]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Unique identifier of the repository. - string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + string uid = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. Create timestamp. google.protobuf.Timestamp create_time = 3 @@ -1155,6 +1192,11 @@ message BranchRule { // be matched. int32 minimum_approvals_count = 11 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Determines if code owners must approve before merging to the + // branch. + bool require_code_owner_approval = 16 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Determines if require comments resolved before merging to the // branch. bool require_comments_resolved = 12 [(google.api.field_behavior) = OPTIONAL]; @@ -1204,10 +1246,13 @@ message PullRequest { MERGED = 3; } - // Output only. A unique identifier for a PullRequest. The number appended at - // the end is generated by the server. Format: + // Output only. Identifier. A unique identifier for a PullRequest. The number + // appended at the end is generated by the server. Format: // `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Required. The pull request title. string title = 2 [(google.api.field_behavior) = REQUIRED]; @@ -1459,18 +1504,18 @@ message ListInstancesRequest { } ]; - // Requested page size. Server may return fewer items than requested. - // If unspecified, server will pick an appropriate default. - int32 page_size = 2; + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A token identifying a page of results the server should return. - string page_token = 3; + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Filter for filtering results. - string filter = 4; + // Optional. Filter for filtering results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Hint for how to order the results. - string order_by = 5; + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } message ListInstancesResponse { @@ -1524,7 +1569,10 @@ message CreateInstanceRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // DeleteInstanceRequest is the request for deleting an instance. @@ -1550,7 +1598,13 @@ message DeleteInstanceRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. If set to true, will force the deletion of the instance. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; } // Represents the metadata of the long-running operation. @@ -1593,12 +1647,12 @@ message ListRepositoriesRequest { } ]; - // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, server will pick an appropriate default. + // Optional. Requested page size. If unspecified, a default size of 30 will be + // used. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A token identifying a page of results the server should return. - string page_token = 3; + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Filter results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -1703,8 +1757,8 @@ message ListHooksRequest { } ]; - // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, server will pick an appropriate default. + // Optional. Requested page size. If unspecified, a default size of 30 will be + // used. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results the server should return. @@ -1757,13 +1811,13 @@ message CreateHookRequest { // UpdateHookRequest is the request to update a hook. message UpdateHookRequest { - // Required. Field mask is used to specify the fields to be overwritten in the + // Optional. Field mask is used to specify the fields to be overwritten in the // hook resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. // The special value "*" means full replacement. google.protobuf.FieldMask update_mask = 1 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; // Required. The hook being updated. Hook hook = 2 [(google.api.field_behavior) = REQUIRED]; @@ -1818,8 +1872,11 @@ message ListBranchRulesRequest { } ]; + // Optional. Requested page size. If unspecified, a default size of 30 will be + // used. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -1845,13 +1902,13 @@ message UpdateBranchRuleRequest { // actually post it. (https://google.aip.dev/163, for declarative friendly) bool validate_only = 2 [(google.api.field_behavior) = OPTIONAL]; - // Required. Field mask is used to specify the fields to be overwritten in the + // Optional. Field mask is used to specify the fields to be overwritten in the // branchRule resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. // The special value "*" means full replacement. google.protobuf.FieldMask update_mask = 3 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; } // ListBranchRulesResponse is the response to listing branchRules. @@ -1902,8 +1959,8 @@ message ListPullRequestsRequest { } ]; - // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, server will pick an appropriate default. + // Optional. Requested page size. If unspecified, a default size of 30 will be + // used. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results the server should return. @@ -1985,8 +2042,8 @@ message ListPullRequestFileDiffsRequest { } ]; - // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, server will pick an appropriate default. + // Optional. Requested page size. If unspecified, a default size of 30 will be + // used. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results the server should return. @@ -2042,8 +2099,8 @@ message ListIssuesRequest { } ]; - // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, server will pick an appropriate default. + // Optional. Requested page size. If unspecified, a default size of 30 will be + // used. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results the server should return. @@ -2238,9 +2295,8 @@ message ListPullRequestCommentsRequest { } ]; - // Optional. Requested page size. If unspecified, at most 100 pull request - // comments will be returned. The maximum value is 100; values above 100 will - // be coerced to 100. + // Optional. Requested page size. If unspecified, a default size of 30 will be + // used. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results the server should return. @@ -2447,8 +2503,8 @@ message ListIssueCommentsRequest { } ]; - // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, server will pick an appropriate default. + // Optional. Requested page size. If unspecified, a default size of 30 will be + // used. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results the server should return. diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/AsyncDeleteInstance.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/AsyncDeleteInstance.java index 3d9da0aaef8e..566f64c07096 100644 --- a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/AsyncDeleteInstance.java +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/AsyncDeleteInstance.java @@ -40,6 +40,7 @@ public static void asyncDeleteInstance() throws Exception { DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); ApiFuture future = secureSourceManagerClient.deleteInstanceCallable().futureCall(request); diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/AsyncDeleteInstanceLRO.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/AsyncDeleteInstanceLRO.java index 0d3b444dd7ad..eafb42764193 100644 --- a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/AsyncDeleteInstanceLRO.java @@ -41,6 +41,7 @@ public static void asyncDeleteInstanceLRO() throws Exception { DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); OperationFuture future = secureSourceManagerClient.deleteInstanceOperationCallable().futureCall(request); diff --git a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/SyncDeleteInstance.java b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/SyncDeleteInstance.java index 774a26ef0aab..d26d43e4049a 100644 --- a/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/SyncDeleteInstance.java +++ b/java-securesourcemanager/samples/snippets/generated/com/google/cloud/securesourcemanager/v1/securesourcemanager/deleteinstance/SyncDeleteInstance.java @@ -39,6 +39,7 @@ public static void syncDeleteInstance() throws Exception { DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); secureSourceManagerClient.deleteInstanceAsync(request).get(); }